yandexcloud 0.351.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.
- 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/ai/tuning/v1/tuning_service_pb2.py +13 -3
- yandex/cloud/ai/tuning/v1/tuning_service_pb2.pyi +40 -0
- yandex/cloud/ai/tuning/v1/tuning_service_pb2_grpc.py +43 -0
- yandex/cloud/ai/tuning/v1/tuning_service_pb2_grpc.pyi +17 -0
- yandex/cloud/ai/tuning/v1/tuning_task_pb2.py +3 -3
- yandex/cloud/ai/tuning/v1/tuning_task_pb2.pyi +2 -0
- yandex/cloud/baremetal/v1alpha/server_pb2.py +13 -11
- yandex/cloud/cdn/v1/origin_group_pb2.py +3 -3
- yandex/cloud/cdn/v1/origin_group_pb2.pyi +5 -1
- yandex/cloud/cdn/v1/origin_group_service_pb2.py +14 -14
- yandex/cloud/cdn/v1/origin_group_service_pb2.pyi +5 -1
- yandex/cloud/cdn/v1/origin_pb2.py +10 -10
- yandex/cloud/cdn/v1/origin_pb2.pyi +5 -1
- yandex/cloud/cdn/v1/origin_service_pb2.py +14 -14
- yandex/cloud/cdn/v1/origin_service_pb2.pyi +5 -1
- yandex/cloud/cdn/v1/resource_pb2.py +64 -64
- yandex/cloud/cdn/v1/resource_pb2.pyi +9 -1
- yandex/cloud/cdn/v1/resource_service_pb2.py +26 -26
- yandex/cloud/cdn/v1/resource_service_pb2.pyi +5 -1
- 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 +362 -0
- yandex/cloud/connectionmanager/v1/connection_service_pb2_grpc.pyi +163 -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/iot/broker/v1/broker_service_pb2.py +50 -50
- yandex/cloud/iot/devices/v1/device_service_pb2.py +61 -61
- yandex/cloud/iot/devices/v1/registry_service_pb2.py +82 -82
- yandex/cloud/mdb/greenplum/v1/hba_rule_pb2.py +9 -5
- yandex/cloud/mdb/mongodb/v1/config/mongodb_pb2.py +94 -76
- yandex/cloud/mdb/mongodb/v1/config/mongodb_pb2.pyi +239 -14
- yandex/cloud/mdb/mysql/v1/cluster_service_pb2.py +74 -76
- yandex/cloud/metastore/v1/cluster_pb2.py +19 -19
- yandex/cloud/metastore/v1/cluster_pb2.pyi +39 -32
- yandex/cloud/metastore/v1/cluster_service_pb2.py +47 -47
- yandex/cloud/metastore/v1/cluster_service_pb2.pyi +90 -91
- yandex/cloud/metastore/v1/cluster_service_pb2_grpc.py +63 -66
- yandex/cloud/metastore/v1/cluster_service_pb2_grpc.pyi +62 -77
- 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
- yandex/cloud/quotamanager/v1/quota_request_service_pb2.py +3 -3
- yandex/cloud/serverless/eventrouter/v1/connector_pb2.py +12 -10
- yandex/cloud/serverless/eventrouter/v1/connector_pb2.pyi +17 -3
- yandex/cloud/video/v1/channel_pb2.py +12 -12
- yandex/cloud/video/v1/channel_pb2.pyi +88 -22
- yandex/cloud/video/v1/channel_service_pb2.py +14 -14
- yandex/cloud/video/v1/channel_service_pb2.pyi +77 -41
- yandex/cloud/video/v1/channel_service_pb2_grpc.py +26 -9
- yandex/cloud/video/v1/channel_service_pb2_grpc.pyi +87 -30
- yandex/cloud/video/v1/episode_pb2.py +8 -10
- yandex/cloud/video/v1/episode_pb2.pyi +52 -36
- yandex/cloud/video/v1/episode_service_pb2.py +44 -42
- yandex/cloud/video/v1/episode_service_pb2.pyi +131 -82
- yandex/cloud/video/v1/episode_service_pb2_grpc.py +30 -10
- yandex/cloud/video/v1/episode_service_pb2_grpc.pyi +102 -33
- yandex/cloud/video/v1/manifest_pb2.pyi +24 -1
- yandex/cloud/video/v1/playlist_pb2.py +4 -6
- yandex/cloud/video/v1/playlist_pb2.pyi +24 -12
- yandex/cloud/video/v1/playlist_service_pb2.py +28 -24
- yandex/cloud/video/v1/playlist_service_pb2.pyi +99 -47
- yandex/cloud/video/v1/playlist_service_pb2_grpc.py +20 -7
- yandex/cloud/video/v1/playlist_service_pb2_grpc.pyi +75 -24
- yandex/cloud/video/v1/stream_line_pb2.py +16 -16
- yandex/cloud/video/v1/stream_line_pb2.pyi +11 -12
- yandex/cloud/video/v1/stream_line_service_pb2.py +54 -56
- yandex/cloud/video/v1/stream_line_service_pb2.pyi +110 -65
- yandex/cloud/video/v1/stream_line_service_pb2_grpc.py +25 -10
- yandex/cloud/video/v1/stream_line_service_pb2_grpc.pyi +96 -33
- yandex/cloud/video/v1/stream_pb2.pyi +49 -36
- yandex/cloud/video/v1/stream_service_pb2.pyi +123 -52
- yandex/cloud/video/v1/stream_service_pb2_grpc.py +25 -8
- yandex/cloud/video/v1/stream_service_pb2_grpc.pyi +84 -27
- yandex/cloud/video/v1/style_preset_pb2.py +49 -0
- yandex/cloud/video/v1/style_preset_pb2.pyi +200 -0
- yandex/cloud/video/v1/style_preset_pb2_grpc.py +24 -0
- yandex/cloud/video/v1/style_preset_pb2_grpc.pyi +17 -0
- yandex/cloud/video/v1/style_preset_service_pb2.py +141 -0
- yandex/cloud/video/v1/style_preset_service_pb2.pyi +348 -0
- yandex/cloud/video/v1/style_preset_service_pb2_grpc.py +290 -0
- yandex/cloud/video/v1/style_preset_service_pb2_grpc.pyi +171 -0
- yandex/cloud/video/v1/subtitle_pb2.pyi +32 -23
- yandex/cloud/video/v1/subtitle_service_pb2.py +17 -17
- yandex/cloud/video/v1/subtitle_service_pb2.pyi +25 -13
- yandex/cloud/video/v1/subtitle_service_pb2_grpc.py +18 -5
- yandex/cloud/video/v1/subtitle_service_pb2_grpc.pyi +63 -18
- yandex/cloud/video/v1/thumbnail_pb2.py +3 -3
- yandex/cloud/video/v1/thumbnail_pb2.pyi +18 -5
- yandex/cloud/video/v1/thumbnail_service_pb2.py +39 -31
- yandex/cloud/video/v1/thumbnail_service_pb2.pyi +94 -33
- yandex/cloud/video/v1/thumbnail_service_pb2_grpc.py +21 -6
- yandex/cloud/video/v1/thumbnail_service_pb2_grpc.pyi +75 -21
- yandex/cloud/video/v1/video_pb2.py +24 -24
- yandex/cloud/video/v1/video_pb2.pyi +105 -64
- yandex/cloud/video/v1/video_service_pb2.py +80 -74
- yandex/cloud/video/v1/video_service_pb2.pyi +193 -90
- yandex/cloud/video/v1/video_service_pb2_grpc.py +35 -12
- yandex/cloud/video/v1/video_service_pb2_grpc.pyi +123 -39
- yandex/cloud/ytsaurus/v1/package_options_pb2.py +35 -0
- yandex/cloud/ytsaurus/v1/package_options_pb2.pyi +8 -0
- yandex/cloud/ytsaurus/v1/package_options_pb2_grpc.py +24 -0
- yandex/cloud/ytsaurus/v1/package_options_pb2_grpc.pyi +17 -0
- yandexcloud/__init__.py +1 -1
- yandexcloud/_wrappers/dataproc/__init__.py +4 -0
- {yandexcloud-0.351.0.dist-info → yandexcloud-0.353.0.dist-info}/METADATA +1 -1
- {yandexcloud-0.351.0.dist-info → yandexcloud-0.353.0.dist-info}/RECORD +163 -97
- {yandexcloud-0.351.0.dist-info → yandexcloud-0.353.0.dist-info}/AUTHORS +0 -0
- {yandexcloud-0.351.0.dist-info → yandexcloud-0.353.0.dist-info}/LICENSE +0 -0
- {yandexcloud-0.351.0.dist-info → yandexcloud-0.353.0.dist-info}/WHEEL +0 -0
- {yandexcloud-0.351.0.dist-info → yandexcloud-0.353.0.dist-info}/top_level.txt +0 -0
|
@@ -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/mysql_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,48 @@
|
|
|
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/opensearch.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/opensearch.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/opensearch.proto\x12!yandex.cloud.connectionmanager.v1\x1a.yandex/cloud/connectionmanager/v1/common.proto\"j\n\x0eOpenSearchAuth\x12L\n\ruser_password\x18\x01 \x01(\x0b\x32\x33.yandex.cloud.connectionmanager.v1.UserPasswordAuthH\x00\x42\n\n\x08security\"\x8f\x04\n\x11OpenSearchCluster\x12H\n\x05hosts\x18\x01 \x03(\x0b\x32\x39.yandex.cloud.connectionmanager.v1.OpenSearchCluster.Host\x12@\n\ntls_params\x18\x02 \x01(\x0b\x32,.yandex.cloud.connectionmanager.v1.TLSParams\x1a\xed\x02\n\x04Host\x12\x0c\n\x04host\x18\x03 \x01(\t\x12\x0c\n\x04port\x18\x04 \x01(\x03\x12P\n\x06health\x18\x06 \x01(\x0e\x32@.yandex.cloud.connectionmanager.v1.OpenSearchCluster.Host.Health\x12R\n\x05roles\x18\x07 \x03(\x0e\x32\x43.yandex.cloud.connectionmanager.v1.OpenSearchCluster.Host.GroupRole\">\n\tGroupRole\x12\x1a\n\x16GROUP_ROLE_UNSPECIFIED\x10\x00\x12\x08\n\x04\x44\x41TA\x10\x01\x12\x0b\n\x07MANAGER\x10\x02\"Q\n\x06Health\x12\x16\n\x12HEALTH_UNSPECIFIED\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\x03\x12\x0c\n\x08READONLY\x10\x04J\x04\x08\x01\x10\x02J\x04\x08\x02\x10\x03J\x04\x08\x05\x10\x06\"\xc0\x01\n\x14OpenSearchConnection\x12\x45\n\x07\x63luster\x18\x01 \x01(\x0b\x32\x34.yandex.cloud.connectionmanager.v1.OpenSearchCluster\x12\x1a\n\x12managed_cluster_id\x18\x02 \x01(\t\x12?\n\x04\x61uth\x18\x04 \x01(\x0b\x32\x31.yandex.cloud.connectionmanager.v1.OpenSearchAuthJ\x04\x08\x03\x10\x04\x42\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.opensearch_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['_OPENSEARCHAUTH']._serialized_start=137
|
|
37
|
+
_globals['_OPENSEARCHAUTH']._serialized_end=243
|
|
38
|
+
_globals['_OPENSEARCHCLUSTER']._serialized_start=246
|
|
39
|
+
_globals['_OPENSEARCHCLUSTER']._serialized_end=773
|
|
40
|
+
_globals['_OPENSEARCHCLUSTER_HOST']._serialized_start=408
|
|
41
|
+
_globals['_OPENSEARCHCLUSTER_HOST']._serialized_end=773
|
|
42
|
+
_globals['_OPENSEARCHCLUSTER_HOST_GROUPROLE']._serialized_start=610
|
|
43
|
+
_globals['_OPENSEARCHCLUSTER_HOST_GROUPROLE']._serialized_end=672
|
|
44
|
+
_globals['_OPENSEARCHCLUSTER_HOST_HEALTH']._serialized_start=674
|
|
45
|
+
_globals['_OPENSEARCHCLUSTER_HOST_HEALTH']._serialized_end=755
|
|
46
|
+
_globals['_OPENSEARCHCONNECTION']._serialized_start=776
|
|
47
|
+
_globals['_OPENSEARCHCONNECTION']._serialized_end=968
|
|
48
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,148 @@
|
|
|
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 OpenSearchAuth(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___OpenSearchAuth = OpenSearchAuth
|
|
40
|
+
|
|
41
|
+
@typing.final
|
|
42
|
+
class OpenSearchCluster(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 _GroupRole:
|
|
50
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
|
51
|
+
V: typing_extensions.TypeAlias = ValueType
|
|
52
|
+
|
|
53
|
+
class _GroupRoleEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[OpenSearchCluster.Host._GroupRole.ValueType], builtins.type):
|
|
54
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
55
|
+
GROUP_ROLE_UNSPECIFIED: OpenSearchCluster.Host._GroupRole.ValueType # 0
|
|
56
|
+
DATA: OpenSearchCluster.Host._GroupRole.ValueType # 1
|
|
57
|
+
MANAGER: OpenSearchCluster.Host._GroupRole.ValueType # 2
|
|
58
|
+
|
|
59
|
+
class GroupRole(_GroupRole, metaclass=_GroupRoleEnumTypeWrapper): ...
|
|
60
|
+
GROUP_ROLE_UNSPECIFIED: OpenSearchCluster.Host.GroupRole.ValueType # 0
|
|
61
|
+
DATA: OpenSearchCluster.Host.GroupRole.ValueType # 1
|
|
62
|
+
MANAGER: OpenSearchCluster.Host.GroupRole.ValueType # 2
|
|
63
|
+
|
|
64
|
+
class _Health:
|
|
65
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
|
66
|
+
V: typing_extensions.TypeAlias = ValueType
|
|
67
|
+
|
|
68
|
+
class _HealthEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[OpenSearchCluster.Host._Health.ValueType], builtins.type):
|
|
69
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
70
|
+
HEALTH_UNSPECIFIED: OpenSearchCluster.Host._Health.ValueType # 0
|
|
71
|
+
ALIVE: OpenSearchCluster.Host._Health.ValueType # 1
|
|
72
|
+
DEAD: OpenSearchCluster.Host._Health.ValueType # 2
|
|
73
|
+
DEGRADED: OpenSearchCluster.Host._Health.ValueType # 3
|
|
74
|
+
READONLY: OpenSearchCluster.Host._Health.ValueType # 4
|
|
75
|
+
|
|
76
|
+
class Health(_Health, metaclass=_HealthEnumTypeWrapper): ...
|
|
77
|
+
HEALTH_UNSPECIFIED: OpenSearchCluster.Host.Health.ValueType # 0
|
|
78
|
+
ALIVE: OpenSearchCluster.Host.Health.ValueType # 1
|
|
79
|
+
DEAD: OpenSearchCluster.Host.Health.ValueType # 2
|
|
80
|
+
DEGRADED: OpenSearchCluster.Host.Health.ValueType # 3
|
|
81
|
+
READONLY: OpenSearchCluster.Host.Health.ValueType # 4
|
|
82
|
+
|
|
83
|
+
HOST_FIELD_NUMBER: builtins.int
|
|
84
|
+
PORT_FIELD_NUMBER: builtins.int
|
|
85
|
+
HEALTH_FIELD_NUMBER: builtins.int
|
|
86
|
+
ROLES_FIELD_NUMBER: builtins.int
|
|
87
|
+
host: builtins.str
|
|
88
|
+
port: builtins.int
|
|
89
|
+
health: global___OpenSearchCluster.Host.Health.ValueType
|
|
90
|
+
@property
|
|
91
|
+
def roles(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___OpenSearchCluster.Host.GroupRole.ValueType]: ...
|
|
92
|
+
def __init__(
|
|
93
|
+
self,
|
|
94
|
+
*,
|
|
95
|
+
host: builtins.str = ...,
|
|
96
|
+
port: builtins.int = ...,
|
|
97
|
+
health: global___OpenSearchCluster.Host.Health.ValueType = ...,
|
|
98
|
+
roles: collections.abc.Iterable[global___OpenSearchCluster.Host.GroupRole.ValueType] | None = ...,
|
|
99
|
+
) -> None: ...
|
|
100
|
+
def ClearField(self, field_name: typing.Literal["health", b"health", "host", b"host", "port", b"port", "roles", b"roles"]) -> None: ...
|
|
101
|
+
|
|
102
|
+
HOSTS_FIELD_NUMBER: builtins.int
|
|
103
|
+
TLS_PARAMS_FIELD_NUMBER: builtins.int
|
|
104
|
+
@property
|
|
105
|
+
def hosts(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___OpenSearchCluster.Host]: ...
|
|
106
|
+
@property
|
|
107
|
+
def tls_params(self) -> yandex.cloud.connectionmanager.v1.common_pb2.TLSParams: ...
|
|
108
|
+
def __init__(
|
|
109
|
+
self,
|
|
110
|
+
*,
|
|
111
|
+
hosts: collections.abc.Iterable[global___OpenSearchCluster.Host] | None = ...,
|
|
112
|
+
tls_params: yandex.cloud.connectionmanager.v1.common_pb2.TLSParams | None = ...,
|
|
113
|
+
) -> None: ...
|
|
114
|
+
def HasField(self, field_name: typing.Literal["tls_params", b"tls_params"]) -> builtins.bool: ...
|
|
115
|
+
def ClearField(self, field_name: typing.Literal["hosts", b"hosts", "tls_params", b"tls_params"]) -> None: ...
|
|
116
|
+
|
|
117
|
+
global___OpenSearchCluster = OpenSearchCluster
|
|
118
|
+
|
|
119
|
+
@typing.final
|
|
120
|
+
class OpenSearchConnection(google.protobuf.message.Message):
|
|
121
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
122
|
+
|
|
123
|
+
CLUSTER_FIELD_NUMBER: builtins.int
|
|
124
|
+
MANAGED_CLUSTER_ID_FIELD_NUMBER: builtins.int
|
|
125
|
+
AUTH_FIELD_NUMBER: builtins.int
|
|
126
|
+
managed_cluster_id: builtins.str
|
|
127
|
+
"""When creating/updating Connection, the field "managed_cluster_id" is
|
|
128
|
+
mutually exclusive with "cluster".
|
|
129
|
+
"""
|
|
130
|
+
@property
|
|
131
|
+
def cluster(self) -> global___OpenSearchCluster:
|
|
132
|
+
"""When creating/updating Connection, the field "cluster" is mutually
|
|
133
|
+
exclusive with "managed_cluster_id".
|
|
134
|
+
"""
|
|
135
|
+
|
|
136
|
+
@property
|
|
137
|
+
def auth(self) -> global___OpenSearchAuth: ...
|
|
138
|
+
def __init__(
|
|
139
|
+
self,
|
|
140
|
+
*,
|
|
141
|
+
cluster: global___OpenSearchCluster | None = ...,
|
|
142
|
+
managed_cluster_id: builtins.str = ...,
|
|
143
|
+
auth: global___OpenSearchAuth | None = ...,
|
|
144
|
+
) -> None: ...
|
|
145
|
+
def HasField(self, field_name: typing.Literal["auth", b"auth", "cluster", b"cluster"]) -> builtins.bool: ...
|
|
146
|
+
def ClearField(self, field_name: typing.Literal["auth", b"auth", "cluster", b"cluster", "managed_cluster_id", b"managed_cluster_id"]) -> None: ...
|
|
147
|
+
|
|
148
|
+
global___OpenSearchConnection = OpenSearchConnection
|
|
@@ -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/opensearch_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,35 @@
|
|
|
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/package_options.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/package_options.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n7yandex/cloud/connectionmanager/v1/package_options.proto\x12!yandex.cloud.connectionmanager.v1BYZWgithub.com/yandex-cloud/go-genproto/yandex/cloud/connectionmanager/v1;connectionmanagerb\x06proto3')
|
|
28
|
+
|
|
29
|
+
_globals = globals()
|
|
30
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
31
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'yandex.cloud.connectionmanager.v1.package_options_pb2', _globals)
|
|
32
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
33
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
34
|
+
_globals['DESCRIPTOR']._serialized_options = b'ZWgithub.com/yandex-cloud/go-genproto/yandex/cloud/connectionmanager/v1;connectionmanager'
|
|
35
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -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/package_options_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,50 @@
|
|
|
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/postgresql.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/postgresql.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/postgresql.proto\x12!yandex.cloud.connectionmanager.v1\x1a.yandex/cloud/connectionmanager/v1/common.proto\"j\n\x0ePostgreSQLAuth\x12L\n\ruser_password\x18\x01 \x01(\x0b\x32\x33.yandex.cloud.connectionmanager.v1.UserPasswordAuthH\x00\x42\n\n\x08security\"\xa5\x05\n\x11PostgreSQLCluster\x12H\n\x05hosts\x18\x04 \x03(\x0b\x32\x39.yandex.cloud.connectionmanager.v1.PostgreSQLCluster.Host\x12@\n\ntls_params\x18\x03 \x01(\x0b\x32,.yandex.cloud.connectionmanager.v1.TLSParams\x1a\xf7\x03\n\x04Host\x12\x0c\n\x04host\x18\x01 \x01(\t\x12\x0c\n\x04port\x18\x02 \x01(\x03\x12L\n\x04role\x18\x03 \x01(\x0e\x32>.yandex.cloud.connectionmanager.v1.PostgreSQLCluster.Host.Role\x12[\n\x0creplica_type\x18\x04 \x01(\x0e\x32\x45.yandex.cloud.connectionmanager.v1.PostgreSQLCluster.Host.ReplicaType\x12P\n\x06health\x18\x05 \x01(\x0e\x32@.yandex.cloud.connectionmanager.v1.PostgreSQLCluster.Host.Health\"5\n\x04Role\x12\x14\n\x10ROLE_UNSPECIFIED\x10\x00\x12\n\n\x06MASTER\x10\x01\x12\x0b\n\x07REPLICA\x10\x02\"L\n\x0bReplicaType\x12\x1c\n\x18REPLICA_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05\x41SYNC\x10\x01\x12\x08\n\x04SYNC\x10\x02\x12\n\n\x06QUORUM\x10\x03\"Q\n\x06Health\x12\x16\n\x12HEALTH_UNSPECIFIED\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\x03\x12\x0c\n\x08READONLY\x10\x04J\x04\x08\x01\x10\x02J\x04\x08\x02\x10\x03\"\xd3\x01\n\x14PostgreSQLConnection\x12\x45\n\x07\x63luster\x18\x01 \x01(\x0b\x32\x34.yandex.cloud.connectionmanager.v1.PostgreSQLCluster\x12\x1a\n\x12managed_cluster_id\x18\x02 \x01(\t\x12?\n\x04\x61uth\x18\x04 \x01(\x0b\x32\x31.yandex.cloud.connectionmanager.v1.PostgreSQLAuth\x12\x11\n\tdatabases\x18\x05 \x03(\tJ\x04\x08\x03\x10\x04\x42\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.postgresql_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['_POSTGRESQLAUTH']._serialized_start=137
|
|
37
|
+
_globals['_POSTGRESQLAUTH']._serialized_end=243
|
|
38
|
+
_globals['_POSTGRESQLCLUSTER']._serialized_start=246
|
|
39
|
+
_globals['_POSTGRESQLCLUSTER']._serialized_end=923
|
|
40
|
+
_globals['_POSTGRESQLCLUSTER_HOST']._serialized_start=408
|
|
41
|
+
_globals['_POSTGRESQLCLUSTER_HOST']._serialized_end=911
|
|
42
|
+
_globals['_POSTGRESQLCLUSTER_HOST_ROLE']._serialized_start=697
|
|
43
|
+
_globals['_POSTGRESQLCLUSTER_HOST_ROLE']._serialized_end=750
|
|
44
|
+
_globals['_POSTGRESQLCLUSTER_HOST_REPLICATYPE']._serialized_start=752
|
|
45
|
+
_globals['_POSTGRESQLCLUSTER_HOST_REPLICATYPE']._serialized_end=828
|
|
46
|
+
_globals['_POSTGRESQLCLUSTER_HOST_HEALTH']._serialized_start=830
|
|
47
|
+
_globals['_POSTGRESQLCLUSTER_HOST_HEALTH']._serialized_end=911
|
|
48
|
+
_globals['_POSTGRESQLCONNECTION']._serialized_start=926
|
|
49
|
+
_globals['_POSTGRESQLCONNECTION']._serialized_end=1137
|
|
50
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,171 @@
|
|
|
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 PostgreSQLAuth(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___PostgreSQLAuth = PostgreSQLAuth
|
|
40
|
+
|
|
41
|
+
@typing.final
|
|
42
|
+
class PostgreSQLCluster(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 _Role:
|
|
50
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
|
51
|
+
V: typing_extensions.TypeAlias = ValueType
|
|
52
|
+
|
|
53
|
+
class _RoleEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[PostgreSQLCluster.Host._Role.ValueType], builtins.type):
|
|
54
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
55
|
+
ROLE_UNSPECIFIED: PostgreSQLCluster.Host._Role.ValueType # 0
|
|
56
|
+
MASTER: PostgreSQLCluster.Host._Role.ValueType # 1
|
|
57
|
+
REPLICA: PostgreSQLCluster.Host._Role.ValueType # 2
|
|
58
|
+
|
|
59
|
+
class Role(_Role, metaclass=_RoleEnumTypeWrapper): ...
|
|
60
|
+
ROLE_UNSPECIFIED: PostgreSQLCluster.Host.Role.ValueType # 0
|
|
61
|
+
MASTER: PostgreSQLCluster.Host.Role.ValueType # 1
|
|
62
|
+
REPLICA: PostgreSQLCluster.Host.Role.ValueType # 2
|
|
63
|
+
|
|
64
|
+
class _ReplicaType:
|
|
65
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
|
66
|
+
V: typing_extensions.TypeAlias = ValueType
|
|
67
|
+
|
|
68
|
+
class _ReplicaTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[PostgreSQLCluster.Host._ReplicaType.ValueType], builtins.type):
|
|
69
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
70
|
+
REPLICA_TYPE_UNSPECIFIED: PostgreSQLCluster.Host._ReplicaType.ValueType # 0
|
|
71
|
+
ASYNC: PostgreSQLCluster.Host._ReplicaType.ValueType # 1
|
|
72
|
+
SYNC: PostgreSQLCluster.Host._ReplicaType.ValueType # 2
|
|
73
|
+
QUORUM: PostgreSQLCluster.Host._ReplicaType.ValueType # 3
|
|
74
|
+
|
|
75
|
+
class ReplicaType(_ReplicaType, metaclass=_ReplicaTypeEnumTypeWrapper): ...
|
|
76
|
+
REPLICA_TYPE_UNSPECIFIED: PostgreSQLCluster.Host.ReplicaType.ValueType # 0
|
|
77
|
+
ASYNC: PostgreSQLCluster.Host.ReplicaType.ValueType # 1
|
|
78
|
+
SYNC: PostgreSQLCluster.Host.ReplicaType.ValueType # 2
|
|
79
|
+
QUORUM: PostgreSQLCluster.Host.ReplicaType.ValueType # 3
|
|
80
|
+
|
|
81
|
+
class _Health:
|
|
82
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
|
83
|
+
V: typing_extensions.TypeAlias = ValueType
|
|
84
|
+
|
|
85
|
+
class _HealthEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[PostgreSQLCluster.Host._Health.ValueType], builtins.type):
|
|
86
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
87
|
+
HEALTH_UNSPECIFIED: PostgreSQLCluster.Host._Health.ValueType # 0
|
|
88
|
+
ALIVE: PostgreSQLCluster.Host._Health.ValueType # 1
|
|
89
|
+
DEAD: PostgreSQLCluster.Host._Health.ValueType # 2
|
|
90
|
+
DEGRADED: PostgreSQLCluster.Host._Health.ValueType # 3
|
|
91
|
+
READONLY: PostgreSQLCluster.Host._Health.ValueType # 4
|
|
92
|
+
|
|
93
|
+
class Health(_Health, metaclass=_HealthEnumTypeWrapper): ...
|
|
94
|
+
HEALTH_UNSPECIFIED: PostgreSQLCluster.Host.Health.ValueType # 0
|
|
95
|
+
ALIVE: PostgreSQLCluster.Host.Health.ValueType # 1
|
|
96
|
+
DEAD: PostgreSQLCluster.Host.Health.ValueType # 2
|
|
97
|
+
DEGRADED: PostgreSQLCluster.Host.Health.ValueType # 3
|
|
98
|
+
READONLY: PostgreSQLCluster.Host.Health.ValueType # 4
|
|
99
|
+
|
|
100
|
+
HOST_FIELD_NUMBER: builtins.int
|
|
101
|
+
PORT_FIELD_NUMBER: builtins.int
|
|
102
|
+
ROLE_FIELD_NUMBER: builtins.int
|
|
103
|
+
REPLICA_TYPE_FIELD_NUMBER: builtins.int
|
|
104
|
+
HEALTH_FIELD_NUMBER: builtins.int
|
|
105
|
+
host: builtins.str
|
|
106
|
+
port: builtins.int
|
|
107
|
+
role: global___PostgreSQLCluster.Host.Role.ValueType
|
|
108
|
+
replica_type: global___PostgreSQLCluster.Host.ReplicaType.ValueType
|
|
109
|
+
health: global___PostgreSQLCluster.Host.Health.ValueType
|
|
110
|
+
def __init__(
|
|
111
|
+
self,
|
|
112
|
+
*,
|
|
113
|
+
host: builtins.str = ...,
|
|
114
|
+
port: builtins.int = ...,
|
|
115
|
+
role: global___PostgreSQLCluster.Host.Role.ValueType = ...,
|
|
116
|
+
replica_type: global___PostgreSQLCluster.Host.ReplicaType.ValueType = ...,
|
|
117
|
+
health: global___PostgreSQLCluster.Host.Health.ValueType = ...,
|
|
118
|
+
) -> None: ...
|
|
119
|
+
def ClearField(self, field_name: typing.Literal["health", b"health", "host", b"host", "port", b"port", "replica_type", b"replica_type", "role", b"role"]) -> None: ...
|
|
120
|
+
|
|
121
|
+
HOSTS_FIELD_NUMBER: builtins.int
|
|
122
|
+
TLS_PARAMS_FIELD_NUMBER: builtins.int
|
|
123
|
+
@property
|
|
124
|
+
def hosts(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___PostgreSQLCluster.Host]: ...
|
|
125
|
+
@property
|
|
126
|
+
def tls_params(self) -> yandex.cloud.connectionmanager.v1.common_pb2.TLSParams: ...
|
|
127
|
+
def __init__(
|
|
128
|
+
self,
|
|
129
|
+
*,
|
|
130
|
+
hosts: collections.abc.Iterable[global___PostgreSQLCluster.Host] | None = ...,
|
|
131
|
+
tls_params: yandex.cloud.connectionmanager.v1.common_pb2.TLSParams | None = ...,
|
|
132
|
+
) -> None: ...
|
|
133
|
+
def HasField(self, field_name: typing.Literal["tls_params", b"tls_params"]) -> builtins.bool: ...
|
|
134
|
+
def ClearField(self, field_name: typing.Literal["hosts", b"hosts", "tls_params", b"tls_params"]) -> None: ...
|
|
135
|
+
|
|
136
|
+
global___PostgreSQLCluster = PostgreSQLCluster
|
|
137
|
+
|
|
138
|
+
@typing.final
|
|
139
|
+
class PostgreSQLConnection(google.protobuf.message.Message):
|
|
140
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
141
|
+
|
|
142
|
+
CLUSTER_FIELD_NUMBER: builtins.int
|
|
143
|
+
MANAGED_CLUSTER_ID_FIELD_NUMBER: builtins.int
|
|
144
|
+
AUTH_FIELD_NUMBER: builtins.int
|
|
145
|
+
DATABASES_FIELD_NUMBER: builtins.int
|
|
146
|
+
managed_cluster_id: builtins.str
|
|
147
|
+
"""When creating/updating Connection, the field "managed_cluster_id" is
|
|
148
|
+
mutually exclusive with "cluster".
|
|
149
|
+
"""
|
|
150
|
+
@property
|
|
151
|
+
def cluster(self) -> global___PostgreSQLCluster:
|
|
152
|
+
"""When creating/updating Connection, the field "cluster" is mutually
|
|
153
|
+
exclusive with "managed_cluster_id".
|
|
154
|
+
"""
|
|
155
|
+
|
|
156
|
+
@property
|
|
157
|
+
def auth(self) -> global___PostgreSQLAuth: ...
|
|
158
|
+
@property
|
|
159
|
+
def databases(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
|
|
160
|
+
def __init__(
|
|
161
|
+
self,
|
|
162
|
+
*,
|
|
163
|
+
cluster: global___PostgreSQLCluster | None = ...,
|
|
164
|
+
managed_cluster_id: builtins.str = ...,
|
|
165
|
+
auth: global___PostgreSQLAuth | None = ...,
|
|
166
|
+
databases: collections.abc.Iterable[builtins.str] | None = ...,
|
|
167
|
+
) -> None: ...
|
|
168
|
+
def HasField(self, field_name: typing.Literal["auth", b"auth", "cluster", b"cluster"]) -> builtins.bool: ...
|
|
169
|
+
def ClearField(self, field_name: typing.Literal["auth", b"auth", "cluster", b"cluster", "databases", b"databases", "managed_cluster_id", b"managed_cluster_id"]) -> None: ...
|
|
170
|
+
|
|
171
|
+
global___PostgreSQLConnection = PostgreSQLConnection
|
|
@@ -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/postgresql_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
|
+
...
|