yandexcloud 0.352.0__py3-none-any.whl → 0.354.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of yandexcloud might be problematic. Click here for more details.
- yandex/cloud/ai/foundation_models/v1/text_generation/text_generation_service_pb2.py +18 -18
- yandex/cloud/ai/foundation_models/v1/text_generation/text_generation_service_pb2.pyi +18 -2
- yandex/cloud/baremetal/v1alpha/disk_pb2.py +2 -2
- yandex/cloud/baremetal/v1alpha/disk_pb2.pyi +8 -4
- yandex/cloud/baremetal/v1alpha/server_pb2.py +13 -11
- yandex/cloud/connectionmanager/__init__.py +0 -0
- yandex/cloud/connectionmanager/v1/__init__.py +0 -0
- yandex/cloud/connectionmanager/v1/clickhouse_pb2.py +46 -0
- yandex/cloud/connectionmanager/v1/clickhouse_pb2.pyi +138 -0
- yandex/cloud/connectionmanager/v1/clickhouse_pb2_grpc.py +24 -0
- yandex/cloud/connectionmanager/v1/clickhouse_pb2_grpc.pyi +17 -0
- yandex/cloud/connectionmanager/v1/common_pb2.py +49 -0
- yandex/cloud/connectionmanager/v1/common_pb2.pyi +187 -0
- yandex/cloud/connectionmanager/v1/common_pb2_grpc.py +24 -0
- yandex/cloud/connectionmanager/v1/common_pb2_grpc.pyi +17 -0
- yandex/cloud/connectionmanager/v1/connection_pb2.py +58 -0
- yandex/cloud/connectionmanager/v1/connection_pb2.pyi +205 -0
- yandex/cloud/connectionmanager/v1/connection_pb2_grpc.py +24 -0
- yandex/cloud/connectionmanager/v1/connection_pb2_grpc.pyi +17 -0
- yandex/cloud/connectionmanager/v1/connection_service_pb2.py +91 -0
- yandex/cloud/connectionmanager/v1/connection_service_pb2.pyi +320 -0
- yandex/cloud/connectionmanager/v1/connection_service_pb2_grpc.py +371 -0
- yandex/cloud/connectionmanager/v1/connection_service_pb2_grpc.pyi +187 -0
- yandex/cloud/connectionmanager/v1/greenplum_pb2.py +48 -0
- yandex/cloud/connectionmanager/v1/greenplum_pb2.pyi +151 -0
- yandex/cloud/connectionmanager/v1/greenplum_pb2_grpc.py +24 -0
- yandex/cloud/connectionmanager/v1/greenplum_pb2_grpc.pyi +17 -0
- yandex/cloud/connectionmanager/v1/mongodb_pb2.py +50 -0
- yandex/cloud/connectionmanager/v1/mongodb_pb2.pyi +169 -0
- yandex/cloud/connectionmanager/v1/mongodb_pb2_grpc.py +24 -0
- yandex/cloud/connectionmanager/v1/mongodb_pb2_grpc.pyi +17 -0
- yandex/cloud/connectionmanager/v1/mysql_pb2.py +48 -0
- yandex/cloud/connectionmanager/v1/mysql_pb2.pyi +151 -0
- yandex/cloud/connectionmanager/v1/mysql_pb2_grpc.py +24 -0
- yandex/cloud/connectionmanager/v1/mysql_pb2_grpc.pyi +17 -0
- yandex/cloud/connectionmanager/v1/opensearch_pb2.py +48 -0
- yandex/cloud/connectionmanager/v1/opensearch_pb2.pyi +148 -0
- yandex/cloud/connectionmanager/v1/opensearch_pb2_grpc.py +24 -0
- yandex/cloud/connectionmanager/v1/opensearch_pb2_grpc.pyi +17 -0
- yandex/cloud/connectionmanager/v1/package_options_pb2.py +35 -0
- yandex/cloud/connectionmanager/v1/package_options_pb2.pyi +8 -0
- yandex/cloud/connectionmanager/v1/package_options_pb2_grpc.py +24 -0
- yandex/cloud/connectionmanager/v1/package_options_pb2_grpc.pyi +17 -0
- yandex/cloud/connectionmanager/v1/postgresql_pb2.py +50 -0
- yandex/cloud/connectionmanager/v1/postgresql_pb2.pyi +171 -0
- yandex/cloud/connectionmanager/v1/postgresql_pb2_grpc.py +24 -0
- yandex/cloud/connectionmanager/v1/postgresql_pb2_grpc.pyi +17 -0
- yandex/cloud/connectionmanager/v1/redis_pb2.py +50 -0
- yandex/cloud/connectionmanager/v1/redis_pb2.pyi +163 -0
- yandex/cloud/connectionmanager/v1/redis_pb2_grpc.py +24 -0
- yandex/cloud/connectionmanager/v1/redis_pb2_grpc.pyi +17 -0
- yandex/cloud/connectionmanager/v1/trino_pb2.py +44 -0
- yandex/cloud/connectionmanager/v1/trino_pb2.pyi +88 -0
- yandex/cloud/connectionmanager/v1/trino_pb2_grpc.py +24 -0
- yandex/cloud/connectionmanager/v1/trino_pb2_grpc.pyi +17 -0
- yandex/cloud/connectionmanager/v1/valkey_pb2.py +50 -0
- yandex/cloud/connectionmanager/v1/valkey_pb2.pyi +173 -0
- yandex/cloud/connectionmanager/v1/valkey_pb2_grpc.py +24 -0
- yandex/cloud/connectionmanager/v1/valkey_pb2_grpc.pyi +17 -0
- yandex/cloud/mdb/mongodb/v1/config/mongodb_pb2.py +94 -76
- yandex/cloud/mdb/mongodb/v1/config/mongodb_pb2.pyi +239 -14
- yandex/cloud/organizationmanager/v1/group_pb2.py +3 -3
- yandex/cloud/organizationmanager/v1/group_pb2.pyi +9 -1
- yandex/cloud/organizationmanager/v1/group_service_pb2.py +95 -37
- yandex/cloud/organizationmanager/v1/group_service_pb2.pyi +276 -0
- yandex/cloud/organizationmanager/v1/group_service_pb2_grpc.py +220 -0
- yandex/cloud/organizationmanager/v1/group_service_pb2_grpc.pyi +100 -0
- yandex/cloud/organizationmanager/v1/saml/federation_pb2.py +17 -3
- yandex/cloud/organizationmanager/v1/saml/federation_pb2.pyi +209 -0
- yandex/cloud/organizationmanager/v1/saml/federation_service_pb2.py +55 -3
- yandex/cloud/organizationmanager/v1/saml/federation_service_pb2.pyi +231 -0
- yandex/cloud/organizationmanager/v1/saml/federation_service_pb2_grpc.py +222 -0
- yandex/cloud/organizationmanager/v1/saml/federation_service_pb2_grpc.pyi +109 -0
- yandexcloud/__init__.py +1 -1
- {yandexcloud-0.352.0.dist-info → yandexcloud-0.354.0.dist-info}/METADATA +1 -1
- {yandexcloud-0.352.0.dist-info → yandexcloud-0.354.0.dist-info}/RECORD +80 -26
- {yandexcloud-0.352.0.dist-info → yandexcloud-0.354.0.dist-info}/AUTHORS +0 -0
- {yandexcloud-0.352.0.dist-info → yandexcloud-0.354.0.dist-info}/LICENSE +0 -0
- {yandexcloud-0.352.0.dist-info → yandexcloud-0.354.0.dist-info}/WHEEL +0 -0
- {yandexcloud-0.352.0.dist-info → yandexcloud-0.354.0.dist-info}/top_level.txt +0 -0
|
@@ -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
|
|
@@ -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/common_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,58 @@
|
|
|
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/connection.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/connection.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
|
26
|
+
from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2
|
|
27
|
+
from yandex.cloud.connectionmanager.v1 import mysql_pb2 as yandex_dot_cloud_dot_connectionmanager_dot_v1_dot_mysql__pb2
|
|
28
|
+
from yandex.cloud.connectionmanager.v1 import postgresql_pb2 as yandex_dot_cloud_dot_connectionmanager_dot_v1_dot_postgresql__pb2
|
|
29
|
+
from yandex.cloud.connectionmanager.v1 import mongodb_pb2 as yandex_dot_cloud_dot_connectionmanager_dot_v1_dot_mongodb__pb2
|
|
30
|
+
from yandex.cloud.connectionmanager.v1 import clickhouse_pb2 as yandex_dot_cloud_dot_connectionmanager_dot_v1_dot_clickhouse__pb2
|
|
31
|
+
from yandex.cloud.connectionmanager.v1 import redis_pb2 as yandex_dot_cloud_dot_connectionmanager_dot_v1_dot_redis__pb2
|
|
32
|
+
from yandex.cloud.connectionmanager.v1 import trino_pb2 as yandex_dot_cloud_dot_connectionmanager_dot_v1_dot_trino__pb2
|
|
33
|
+
from yandex.cloud.connectionmanager.v1 import valkey_pb2 as yandex_dot_cloud_dot_connectionmanager_dot_v1_dot_valkey__pb2
|
|
34
|
+
from yandex.cloud.connectionmanager.v1 import opensearch_pb2 as yandex_dot_cloud_dot_connectionmanager_dot_v1_dot_opensearch__pb2
|
|
35
|
+
from yandex.cloud.connectionmanager.v1 import greenplum_pb2 as yandex_dot_cloud_dot_connectionmanager_dot_v1_dot_greenplum__pb2
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n2yandex/cloud/connectionmanager/v1/connection.proto\x12!yandex.cloud.connectionmanager.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a-yandex/cloud/connectionmanager/v1/mysql.proto\x1a\x32yandex/cloud/connectionmanager/v1/postgresql.proto\x1a/yandex/cloud/connectionmanager/v1/mongodb.proto\x1a\x32yandex/cloud/connectionmanager/v1/clickhouse.proto\x1a-yandex/cloud/connectionmanager/v1/redis.proto\x1a-yandex/cloud/connectionmanager/v1/trino.proto\x1a.yandex/cloud/connectionmanager/v1/valkey.proto\x1a\x32yandex/cloud/connectionmanager/v1/opensearch.proto\x1a\x31yandex/cloud/connectionmanager/v1/greenplum.proto\"\xb9\x05\n\x10\x43onnectionParams\x12M\n\npostgresql\x18\x01 \x01(\x0b\x32\x37.yandex.cloud.connectionmanager.v1.PostgreSQLConnectionH\x00\x12\x43\n\x05mysql\x18\x02 \x01(\x0b\x32\x32.yandex.cloud.connectionmanager.v1.MySQLConnectionH\x00\x12G\n\x07mongodb\x18\x03 \x01(\x0b\x32\x34.yandex.cloud.connectionmanager.v1.MongoDBConnectionH\x00\x12M\n\nclickhouse\x18\x04 \x01(\x0b\x32\x37.yandex.cloud.connectionmanager.v1.ClickHouseConnectionH\x00\x12\x43\n\x05redis\x18\x06 \x01(\x0b\x32\x32.yandex.cloud.connectionmanager.v1.RedisConnectionH\x00\x12M\n\nopensearch\x18\x07 \x01(\x0b\x32\x37.yandex.cloud.connectionmanager.v1.OpenSearchConnectionH\x00\x12\x43\n\x05trino\x18\x08 \x01(\x0b\x32\x32.yandex.cloud.connectionmanager.v1.TrinoConnectionH\x00\x12\x45\n\x06valkey\x18\t \x01(\x0b\x32\x33.yandex.cloud.connectionmanager.v1.ValkeyConnectionH\x00\x12K\n\tgreenplum\x18\n \x01(\x0b\x32\x36.yandex.cloud.connectionmanager.v1.GreenplumConnectionH\x00\x42\x06\n\x04typeJ\x04\x08\x05\x10\x06\"D\n\rLockboxSecret\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\t\x12\x16\n\x0enewest_version\x18\x03 \x01(\t\"\x9e\x04\n\nConnection\x12\n\n\x02id\x18\x01 \x01(\t\x12\x11\n\tfolder_id\x18\x02 \x01(\t\x12.\n\ncreated_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nupdated_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0c\n\x04name\x18\x05 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x06 \x01(\t\x12I\n\x06labels\x18\x07 \x03(\x0b\x32\x39.yandex.cloud.connectionmanager.v1.Connection.LabelsEntry\x12\x12\n\ncreated_by\x18\x08 \x01(\t\x12\x43\n\x06params\x18\t \x01(\x0b\x32\x33.yandex.cloud.connectionmanager.v1.ConnectionParams\x12J\n\x0elockbox_secret\x18\n \x01(\x0b\x32\x30.yandex.cloud.connectionmanager.v1.LockboxSecretH\x00\x12\x12\n\nis_managed\x18\x0c \x01(\x08\x12+\n\x07\x63\x61n_use\x18\r \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x08\n\x06secretJ\x04\x08\x0b\x10\x0c*\xa0\x01\n\x06\x44\x42Type\x12\x17\n\x13\x44\x42_TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nPOSTGRESQL\x10\x01\x12\t\n\x05MYSQL\x10\x02\x12\x0e\n\nCLICKHOUSE\x10\x03\x12\x0b\n\x07MONGODB\x10\x04\x12\t\n\x05REDIS\x10\x06\x12\x0e\n\nOPENSEARCH\x10\x07\x12\t\n\x05TRINO\x10\x08\x12\n\n\x06VALKEY\x10\t\x12\r\n\tGREENPLUM\x10\n\"\x04\x08\x05\x10\x05\x42\x80\x01\n%yandex.cloud.api.connectionmanager.v1ZWgithub.com/yandex-cloud/go-genproto/yandex/cloud/connectionmanager/v1;connectionmanagerb\x06proto3')
|
|
39
|
+
|
|
40
|
+
_globals = globals()
|
|
41
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
42
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'yandex.cloud.connectionmanager.v1.connection_pb2', _globals)
|
|
43
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
44
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
45
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n%yandex.cloud.api.connectionmanager.v1ZWgithub.com/yandex-cloud/go-genproto/yandex/cloud/connectionmanager/v1;connectionmanager'
|
|
46
|
+
_globals['_CONNECTION_LABELSENTRY']._loaded_options = None
|
|
47
|
+
_globals['_CONNECTION_LABELSENTRY']._serialized_options = b'8\001'
|
|
48
|
+
_globals['_DBTYPE']._serialized_start=1915
|
|
49
|
+
_globals['_DBTYPE']._serialized_end=2075
|
|
50
|
+
_globals['_CONNECTIONPARAMS']._serialized_start=600
|
|
51
|
+
_globals['_CONNECTIONPARAMS']._serialized_end=1297
|
|
52
|
+
_globals['_LOCKBOXSECRET']._serialized_start=1299
|
|
53
|
+
_globals['_LOCKBOXSECRET']._serialized_end=1367
|
|
54
|
+
_globals['_CONNECTION']._serialized_start=1370
|
|
55
|
+
_globals['_CONNECTION']._serialized_end=1912
|
|
56
|
+
_globals['_CONNECTION_LABELSENTRY']._serialized_start=1851
|
|
57
|
+
_globals['_CONNECTION_LABELSENTRY']._serialized_end=1896
|
|
58
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,205 @@
|
|
|
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 google.protobuf.timestamp_pb2
|
|
13
|
+
import google.protobuf.wrappers_pb2
|
|
14
|
+
import sys
|
|
15
|
+
import typing
|
|
16
|
+
import yandex.cloud.connectionmanager.v1.clickhouse_pb2
|
|
17
|
+
import yandex.cloud.connectionmanager.v1.greenplum_pb2
|
|
18
|
+
import yandex.cloud.connectionmanager.v1.mongodb_pb2
|
|
19
|
+
import yandex.cloud.connectionmanager.v1.mysql_pb2
|
|
20
|
+
import yandex.cloud.connectionmanager.v1.opensearch_pb2
|
|
21
|
+
import yandex.cloud.connectionmanager.v1.postgresql_pb2
|
|
22
|
+
import yandex.cloud.connectionmanager.v1.redis_pb2
|
|
23
|
+
import yandex.cloud.connectionmanager.v1.trino_pb2
|
|
24
|
+
import yandex.cloud.connectionmanager.v1.valkey_pb2
|
|
25
|
+
|
|
26
|
+
if sys.version_info >= (3, 10):
|
|
27
|
+
import typing as typing_extensions
|
|
28
|
+
else:
|
|
29
|
+
import typing_extensions
|
|
30
|
+
|
|
31
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
32
|
+
|
|
33
|
+
class _DBType:
|
|
34
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
|
35
|
+
V: typing_extensions.TypeAlias = ValueType
|
|
36
|
+
|
|
37
|
+
class _DBTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_DBType.ValueType], builtins.type):
|
|
38
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
39
|
+
DB_TYPE_UNSPECIFIED: _DBType.ValueType # 0
|
|
40
|
+
POSTGRESQL: _DBType.ValueType # 1
|
|
41
|
+
MYSQL: _DBType.ValueType # 2
|
|
42
|
+
CLICKHOUSE: _DBType.ValueType # 3
|
|
43
|
+
MONGODB: _DBType.ValueType # 4
|
|
44
|
+
REDIS: _DBType.ValueType # 6
|
|
45
|
+
OPENSEARCH: _DBType.ValueType # 7
|
|
46
|
+
TRINO: _DBType.ValueType # 8
|
|
47
|
+
VALKEY: _DBType.ValueType # 9
|
|
48
|
+
GREENPLUM: _DBType.ValueType # 10
|
|
49
|
+
|
|
50
|
+
class DBType(_DBType, metaclass=_DBTypeEnumTypeWrapper): ...
|
|
51
|
+
|
|
52
|
+
DB_TYPE_UNSPECIFIED: DBType.ValueType # 0
|
|
53
|
+
POSTGRESQL: DBType.ValueType # 1
|
|
54
|
+
MYSQL: DBType.ValueType # 2
|
|
55
|
+
CLICKHOUSE: DBType.ValueType # 3
|
|
56
|
+
MONGODB: DBType.ValueType # 4
|
|
57
|
+
REDIS: DBType.ValueType # 6
|
|
58
|
+
OPENSEARCH: DBType.ValueType # 7
|
|
59
|
+
TRINO: DBType.ValueType # 8
|
|
60
|
+
VALKEY: DBType.ValueType # 9
|
|
61
|
+
GREENPLUM: DBType.ValueType # 10
|
|
62
|
+
global___DBType = DBType
|
|
63
|
+
|
|
64
|
+
@typing.final
|
|
65
|
+
class ConnectionParams(google.protobuf.message.Message):
|
|
66
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
67
|
+
|
|
68
|
+
POSTGRESQL_FIELD_NUMBER: builtins.int
|
|
69
|
+
MYSQL_FIELD_NUMBER: builtins.int
|
|
70
|
+
MONGODB_FIELD_NUMBER: builtins.int
|
|
71
|
+
CLICKHOUSE_FIELD_NUMBER: builtins.int
|
|
72
|
+
REDIS_FIELD_NUMBER: builtins.int
|
|
73
|
+
OPENSEARCH_FIELD_NUMBER: builtins.int
|
|
74
|
+
TRINO_FIELD_NUMBER: builtins.int
|
|
75
|
+
VALKEY_FIELD_NUMBER: builtins.int
|
|
76
|
+
GREENPLUM_FIELD_NUMBER: builtins.int
|
|
77
|
+
@property
|
|
78
|
+
def postgresql(self) -> yandex.cloud.connectionmanager.v1.postgresql_pb2.PostgreSQLConnection: ...
|
|
79
|
+
@property
|
|
80
|
+
def mysql(self) -> yandex.cloud.connectionmanager.v1.mysql_pb2.MySQLConnection: ...
|
|
81
|
+
@property
|
|
82
|
+
def mongodb(self) -> yandex.cloud.connectionmanager.v1.mongodb_pb2.MongoDBConnection: ...
|
|
83
|
+
@property
|
|
84
|
+
def clickhouse(self) -> yandex.cloud.connectionmanager.v1.clickhouse_pb2.ClickHouseConnection: ...
|
|
85
|
+
@property
|
|
86
|
+
def redis(self) -> yandex.cloud.connectionmanager.v1.redis_pb2.RedisConnection: ...
|
|
87
|
+
@property
|
|
88
|
+
def opensearch(self) -> yandex.cloud.connectionmanager.v1.opensearch_pb2.OpenSearchConnection: ...
|
|
89
|
+
@property
|
|
90
|
+
def trino(self) -> yandex.cloud.connectionmanager.v1.trino_pb2.TrinoConnection: ...
|
|
91
|
+
@property
|
|
92
|
+
def valkey(self) -> yandex.cloud.connectionmanager.v1.valkey_pb2.ValkeyConnection: ...
|
|
93
|
+
@property
|
|
94
|
+
def greenplum(self) -> yandex.cloud.connectionmanager.v1.greenplum_pb2.GreenplumConnection: ...
|
|
95
|
+
def __init__(
|
|
96
|
+
self,
|
|
97
|
+
*,
|
|
98
|
+
postgresql: yandex.cloud.connectionmanager.v1.postgresql_pb2.PostgreSQLConnection | None = ...,
|
|
99
|
+
mysql: yandex.cloud.connectionmanager.v1.mysql_pb2.MySQLConnection | None = ...,
|
|
100
|
+
mongodb: yandex.cloud.connectionmanager.v1.mongodb_pb2.MongoDBConnection | None = ...,
|
|
101
|
+
clickhouse: yandex.cloud.connectionmanager.v1.clickhouse_pb2.ClickHouseConnection | None = ...,
|
|
102
|
+
redis: yandex.cloud.connectionmanager.v1.redis_pb2.RedisConnection | None = ...,
|
|
103
|
+
opensearch: yandex.cloud.connectionmanager.v1.opensearch_pb2.OpenSearchConnection | None = ...,
|
|
104
|
+
trino: yandex.cloud.connectionmanager.v1.trino_pb2.TrinoConnection | None = ...,
|
|
105
|
+
valkey: yandex.cloud.connectionmanager.v1.valkey_pb2.ValkeyConnection | None = ...,
|
|
106
|
+
greenplum: yandex.cloud.connectionmanager.v1.greenplum_pb2.GreenplumConnection | None = ...,
|
|
107
|
+
) -> None: ...
|
|
108
|
+
def HasField(self, field_name: typing.Literal["clickhouse", b"clickhouse", "greenplum", b"greenplum", "mongodb", b"mongodb", "mysql", b"mysql", "opensearch", b"opensearch", "postgresql", b"postgresql", "redis", b"redis", "trino", b"trino", "type", b"type", "valkey", b"valkey"]) -> builtins.bool: ...
|
|
109
|
+
def ClearField(self, field_name: typing.Literal["clickhouse", b"clickhouse", "greenplum", b"greenplum", "mongodb", b"mongodb", "mysql", b"mysql", "opensearch", b"opensearch", "postgresql", b"postgresql", "redis", b"redis", "trino", b"trino", "type", b"type", "valkey", b"valkey"]) -> None: ...
|
|
110
|
+
def WhichOneof(self, oneof_group: typing.Literal["type", b"type"]) -> typing.Literal["postgresql", "mysql", "mongodb", "clickhouse", "redis", "opensearch", "trino", "valkey", "greenplum"] | None: ...
|
|
111
|
+
|
|
112
|
+
global___ConnectionParams = ConnectionParams
|
|
113
|
+
|
|
114
|
+
@typing.final
|
|
115
|
+
class LockboxSecret(google.protobuf.message.Message):
|
|
116
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
117
|
+
|
|
118
|
+
ID_FIELD_NUMBER: builtins.int
|
|
119
|
+
VERSION_FIELD_NUMBER: builtins.int
|
|
120
|
+
NEWEST_VERSION_FIELD_NUMBER: builtins.int
|
|
121
|
+
id: builtins.str
|
|
122
|
+
version: builtins.str
|
|
123
|
+
newest_version: builtins.str
|
|
124
|
+
def __init__(
|
|
125
|
+
self,
|
|
126
|
+
*,
|
|
127
|
+
id: builtins.str = ...,
|
|
128
|
+
version: builtins.str = ...,
|
|
129
|
+
newest_version: builtins.str = ...,
|
|
130
|
+
) -> None: ...
|
|
131
|
+
def ClearField(self, field_name: typing.Literal["id", b"id", "newest_version", b"newest_version", "version", b"version"]) -> None: ...
|
|
132
|
+
|
|
133
|
+
global___LockboxSecret = LockboxSecret
|
|
134
|
+
|
|
135
|
+
@typing.final
|
|
136
|
+
class Connection(google.protobuf.message.Message):
|
|
137
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
138
|
+
|
|
139
|
+
@typing.final
|
|
140
|
+
class LabelsEntry(google.protobuf.message.Message):
|
|
141
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
142
|
+
|
|
143
|
+
KEY_FIELD_NUMBER: builtins.int
|
|
144
|
+
VALUE_FIELD_NUMBER: builtins.int
|
|
145
|
+
key: builtins.str
|
|
146
|
+
value: builtins.str
|
|
147
|
+
def __init__(
|
|
148
|
+
self,
|
|
149
|
+
*,
|
|
150
|
+
key: builtins.str = ...,
|
|
151
|
+
value: builtins.str = ...,
|
|
152
|
+
) -> None: ...
|
|
153
|
+
def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
|
|
154
|
+
|
|
155
|
+
ID_FIELD_NUMBER: builtins.int
|
|
156
|
+
FOLDER_ID_FIELD_NUMBER: builtins.int
|
|
157
|
+
CREATED_AT_FIELD_NUMBER: builtins.int
|
|
158
|
+
UPDATED_AT_FIELD_NUMBER: builtins.int
|
|
159
|
+
NAME_FIELD_NUMBER: builtins.int
|
|
160
|
+
DESCRIPTION_FIELD_NUMBER: builtins.int
|
|
161
|
+
LABELS_FIELD_NUMBER: builtins.int
|
|
162
|
+
CREATED_BY_FIELD_NUMBER: builtins.int
|
|
163
|
+
PARAMS_FIELD_NUMBER: builtins.int
|
|
164
|
+
LOCKBOX_SECRET_FIELD_NUMBER: builtins.int
|
|
165
|
+
IS_MANAGED_FIELD_NUMBER: builtins.int
|
|
166
|
+
CAN_USE_FIELD_NUMBER: builtins.int
|
|
167
|
+
id: builtins.str
|
|
168
|
+
folder_id: builtins.str
|
|
169
|
+
name: builtins.str
|
|
170
|
+
description: builtins.str
|
|
171
|
+
created_by: builtins.str
|
|
172
|
+
is_managed: builtins.bool
|
|
173
|
+
@property
|
|
174
|
+
def created_at(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
|
|
175
|
+
@property
|
|
176
|
+
def updated_at(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
|
|
177
|
+
@property
|
|
178
|
+
def labels(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ...
|
|
179
|
+
@property
|
|
180
|
+
def params(self) -> global___ConnectionParams: ...
|
|
181
|
+
@property
|
|
182
|
+
def lockbox_secret(self) -> global___LockboxSecret: ...
|
|
183
|
+
@property
|
|
184
|
+
def can_use(self) -> google.protobuf.wrappers_pb2.BoolValue: ...
|
|
185
|
+
def __init__(
|
|
186
|
+
self,
|
|
187
|
+
*,
|
|
188
|
+
id: builtins.str = ...,
|
|
189
|
+
folder_id: builtins.str = ...,
|
|
190
|
+
created_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
|
|
191
|
+
updated_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
|
|
192
|
+
name: builtins.str = ...,
|
|
193
|
+
description: builtins.str = ...,
|
|
194
|
+
labels: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
|
|
195
|
+
created_by: builtins.str = ...,
|
|
196
|
+
params: global___ConnectionParams | None = ...,
|
|
197
|
+
lockbox_secret: global___LockboxSecret | None = ...,
|
|
198
|
+
is_managed: builtins.bool = ...,
|
|
199
|
+
can_use: google.protobuf.wrappers_pb2.BoolValue | None = ...,
|
|
200
|
+
) -> None: ...
|
|
201
|
+
def HasField(self, field_name: typing.Literal["can_use", b"can_use", "created_at", b"created_at", "lockbox_secret", b"lockbox_secret", "params", b"params", "secret", b"secret", "updated_at", b"updated_at"]) -> builtins.bool: ...
|
|
202
|
+
def ClearField(self, field_name: typing.Literal["can_use", b"can_use", "created_at", b"created_at", "created_by", b"created_by", "description", b"description", "folder_id", b"folder_id", "id", b"id", "is_managed", b"is_managed", "labels", b"labels", "lockbox_secret", b"lockbox_secret", "name", b"name", "params", b"params", "secret", b"secret", "updated_at", b"updated_at"]) -> None: ...
|
|
203
|
+
def WhichOneof(self, oneof_group: typing.Literal["secret", b"secret"]) -> typing.Literal["lockbox_secret"] | None: ...
|
|
204
|
+
|
|
205
|
+
global___Connection = Connection
|
|
@@ -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/connection_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,91 @@
|
|
|
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/connection_service.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/connection_service.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
|
|
26
|
+
from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2
|
|
27
|
+
from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2
|
|
28
|
+
from yandex.cloud.api import operation_pb2 as yandex_dot_cloud_dot_api_dot_operation__pb2
|
|
29
|
+
from yandex.cloud.operation import operation_pb2 as yandex_dot_cloud_dot_operation_dot_operation__pb2
|
|
30
|
+
from yandex.cloud.connectionmanager.v1 import connection_pb2 as yandex_dot_cloud_dot_connectionmanager_dot_v1_dot_connection__pb2
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n:yandex/cloud/connectionmanager/v1/connection_service.proto\x12!yandex.cloud.connectionmanager.v1\x1a\x1cgoogle/api/annotations.proto\x1a google/protobuf/field_mask.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a yandex/cloud/api/operation.proto\x1a&yandex/cloud/operation/operation.proto\x1a\x32yandex/cloud/connectionmanager/v1/connection.proto\"\xa1\x02\n\x17\x43reateConnectionRequest\x12\x11\n\tfolder_id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12V\n\x06labels\x18\x04 \x03(\x0b\x32\x46.yandex.cloud.connectionmanager.v1.CreateConnectionRequest.LabelsEntry\x12\x43\n\x06params\x18\x05 \x01(\x0b\x32\x33.yandex.cloud.connectionmanager.v1.ConnectionParams\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01J\x04\x08\x06\x10\x0b\"1\n\x18\x43reateConnectionMetadata\x12\x15\n\rconnection_id\x18\x01 \x01(\t\"\xd6\x02\n\x17UpdateConnectionRequest\x12\x15\n\rconnection_id\x18\x01 \x01(\t\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x04 \x01(\t\x12V\n\x06labels\x18\x05 \x03(\x0b\x32\x46.yandex.cloud.connectionmanager.v1.UpdateConnectionRequest.LabelsEntry\x12\x43\n\x06params\x18\x06 \x01(\x0b\x32\x33.yandex.cloud.connectionmanager.v1.ConnectionParams\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01J\x04\x08\x07\x10\n\"1\n\x18UpdateConnectionMetadata\x12\x15\n\rconnection_id\x18\x01 \x01(\t\"0\n\x17\x44\x65leteConnectionRequest\x12\x15\n\rconnection_id\x18\x01 \x01(\t\"\x1a\n\x18\x44\x65leteConnectionMetadata\"\xd1\x02\n\x15ListConnectionRequest\x12\x11\n\tfolder_id\x18\x01 \x01(\t\x12\x16\n\x0emdb_cluster_id\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x04 \x01(\x03\x12\x12\n\npage_token\x18\x05 \x01(\t\x12\x1a\n\x12name_pattern_or_id\x18\x06 \x01(\t\x12\x11\n\tauthor_id\x18\x07 \x01(\t\x12\x14\n\x0cwith_can_use\x18\x08 \x01(\x08\x12\x30\n\x0cis_onpremise\x18\t \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12-\n\tis_manual\x18\n \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12:\n\x07\x64\x62_type\x18\x0b \x01(\x0e\x32).yandex.cloud.connectionmanager.v1.DBTypeJ\x04\x08\x03\x10\x04\"t\n\x16ListConnectionResponse\x12\x41\n\nconnection\x18\x01 \x03(\x0b\x32-.yandex.cloud.connectionmanager.v1.Connection\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"9\n\x14GetConnectionRequest\x12\x15\n\rconnection_id\x18\x01 \x01(\tJ\x04\x08\x02\x10\x03J\x04\x08\x03\x10\x04\"4\n\x15ResolveClusterRequest\x12\x15\n\rconnection_id\x18\x01 \x01(\tJ\x04\x08\x02\x10\x03\"B\n\x15\x44\x65leteVersionMetadata\x12\x15\n\rconnection_id\x18\x01 \x01(\t\x12\x12\n\nversion_id\x18\x02 \x01(\t\"U\n\x15ListOperationsRequest\x12\x15\n\rconnection_id\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x03\x12\x12\n\npage_token\x18\x03 \x01(\t\"h\n\x16ListOperationsResponse\x12\x35\n\noperations\x18\x01 \x03(\x0b\x32!.yandex.cloud.operation.Operation\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t2\xca\t\n\x11\x43onnectionService\x12\x95\x01\n\x03Get\x12\x37.yandex.cloud.connectionmanager.v1.GetConnectionRequest\x1a-.yandex.cloud.connectionmanager.v1.Connection\"&\x82\xd3\xe4\x93\x02 \x12\x1e/v1/connection/{connection_id}\x12\xb0\x01\n\x0eResolveCluster\x12\x38.yandex.cloud.connectionmanager.v1.ResolveClusterRequest\x1a-.yandex.cloud.connectionmanager.v1.Connection\"5\x82\xd3\xe4\x93\x02/\x12-/v1/connection/resolveCluster/{connection_id}\x12\x94\x01\n\x04List\x12\x38.yandex.cloud.connectionmanager.v1.ListConnectionRequest\x1a\x39.yandex.cloud.connectionmanager.v1.ListConnectionResponse\"\x17\x82\xd3\xe4\x93\x02\x11\x12\x0f/v1/connections\x12\xac\x01\n\x06\x43reate\x12:.yandex.cloud.connectionmanager.v1.CreateConnectionRequest\x1a!.yandex.cloud.operation.Operation\"C\xb2\xd2*&\n\x18\x43reateConnectionMetadata\x12\nConnection\x82\xd3\xe4\x93\x02\x13\"\x0e/v1/connection:\x01*\x12\xbc\x01\n\x06Update\x12:.yandex.cloud.connectionmanager.v1.UpdateConnectionRequest\x1a!.yandex.cloud.operation.Operation\"S\xb2\xd2*&\n\x18UpdateConnectionMetadata\x12\nConnection\x82\xd3\xe4\x93\x02#2\x1e/v1/connection/{connection_id}:\x01*\x12\xc4\x01\n\x06\x44\x65lete\x12:.yandex.cloud.connectionmanager.v1.DeleteConnectionRequest\x1a!.yandex.cloud.operation.Operation\"[\xb2\xd2*1\n\x18\x44\x65leteConnectionMetadata\x12\x15google.protobuf.Empty\x82\xd3\xe4\x93\x02 *\x1e/v1/connection/{connection_id}\x12\x9d\x01\n\x0eListOperations\x12\x38.yandex.cloud.connectionmanager.v1.ListOperationsRequest\x1a\x39.yandex.cloud.connectionmanager.v1.ListOperationsResponse\"\x16\x82\xd3\xe4\x93\x02\x10\x12\x0e/v1/operationsB\x80\x01\n%yandex.cloud.api.connectionmanager.v1ZWgithub.com/yandex-cloud/go-genproto/yandex/cloud/connectionmanager/v1;connectionmanagerb\x06proto3')
|
|
34
|
+
|
|
35
|
+
_globals = globals()
|
|
36
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
37
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'yandex.cloud.connectionmanager.v1.connection_service_pb2', _globals)
|
|
38
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
39
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
40
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n%yandex.cloud.api.connectionmanager.v1ZWgithub.com/yandex-cloud/go-genproto/yandex/cloud/connectionmanager/v1;connectionmanager'
|
|
41
|
+
_globals['_CREATECONNECTIONREQUEST_LABELSENTRY']._loaded_options = None
|
|
42
|
+
_globals['_CREATECONNECTIONREQUEST_LABELSENTRY']._serialized_options = b'8\001'
|
|
43
|
+
_globals['_UPDATECONNECTIONREQUEST_LABELSENTRY']._loaded_options = None
|
|
44
|
+
_globals['_UPDATECONNECTIONREQUEST_LABELSENTRY']._serialized_options = b'8\001'
|
|
45
|
+
_globals['_CONNECTIONSERVICE'].methods_by_name['Get']._loaded_options = None
|
|
46
|
+
_globals['_CONNECTIONSERVICE'].methods_by_name['Get']._serialized_options = b'\202\323\344\223\002 \022\036/v1/connection/{connection_id}'
|
|
47
|
+
_globals['_CONNECTIONSERVICE'].methods_by_name['ResolveCluster']._loaded_options = None
|
|
48
|
+
_globals['_CONNECTIONSERVICE'].methods_by_name['ResolveCluster']._serialized_options = b'\202\323\344\223\002/\022-/v1/connection/resolveCluster/{connection_id}'
|
|
49
|
+
_globals['_CONNECTIONSERVICE'].methods_by_name['List']._loaded_options = None
|
|
50
|
+
_globals['_CONNECTIONSERVICE'].methods_by_name['List']._serialized_options = b'\202\323\344\223\002\021\022\017/v1/connections'
|
|
51
|
+
_globals['_CONNECTIONSERVICE'].methods_by_name['Create']._loaded_options = None
|
|
52
|
+
_globals['_CONNECTIONSERVICE'].methods_by_name['Create']._serialized_options = b'\262\322*&\n\030CreateConnectionMetadata\022\nConnection\202\323\344\223\002\023\"\016/v1/connection:\001*'
|
|
53
|
+
_globals['_CONNECTIONSERVICE'].methods_by_name['Update']._loaded_options = None
|
|
54
|
+
_globals['_CONNECTIONSERVICE'].methods_by_name['Update']._serialized_options = b'\262\322*&\n\030UpdateConnectionMetadata\022\nConnection\202\323\344\223\002#2\036/v1/connection/{connection_id}:\001*'
|
|
55
|
+
_globals['_CONNECTIONSERVICE'].methods_by_name['Delete']._loaded_options = None
|
|
56
|
+
_globals['_CONNECTIONSERVICE'].methods_by_name['Delete']._serialized_options = b'\262\322*1\n\030DeleteConnectionMetadata\022\025google.protobuf.Empty\202\323\344\223\002 *\036/v1/connection/{connection_id}'
|
|
57
|
+
_globals['_CONNECTIONSERVICE'].methods_by_name['ListOperations']._loaded_options = None
|
|
58
|
+
_globals['_CONNECTIONSERVICE'].methods_by_name['ListOperations']._serialized_options = b'\202\323\344\223\002\020\022\016/v1/operations'
|
|
59
|
+
_globals['_CREATECONNECTIONREQUEST']._serialized_start=320
|
|
60
|
+
_globals['_CREATECONNECTIONREQUEST']._serialized_end=609
|
|
61
|
+
_globals['_CREATECONNECTIONREQUEST_LABELSENTRY']._serialized_start=558
|
|
62
|
+
_globals['_CREATECONNECTIONREQUEST_LABELSENTRY']._serialized_end=603
|
|
63
|
+
_globals['_CREATECONNECTIONMETADATA']._serialized_start=611
|
|
64
|
+
_globals['_CREATECONNECTIONMETADATA']._serialized_end=660
|
|
65
|
+
_globals['_UPDATECONNECTIONREQUEST']._serialized_start=663
|
|
66
|
+
_globals['_UPDATECONNECTIONREQUEST']._serialized_end=1005
|
|
67
|
+
_globals['_UPDATECONNECTIONREQUEST_LABELSENTRY']._serialized_start=558
|
|
68
|
+
_globals['_UPDATECONNECTIONREQUEST_LABELSENTRY']._serialized_end=603
|
|
69
|
+
_globals['_UPDATECONNECTIONMETADATA']._serialized_start=1007
|
|
70
|
+
_globals['_UPDATECONNECTIONMETADATA']._serialized_end=1056
|
|
71
|
+
_globals['_DELETECONNECTIONREQUEST']._serialized_start=1058
|
|
72
|
+
_globals['_DELETECONNECTIONREQUEST']._serialized_end=1106
|
|
73
|
+
_globals['_DELETECONNECTIONMETADATA']._serialized_start=1108
|
|
74
|
+
_globals['_DELETECONNECTIONMETADATA']._serialized_end=1134
|
|
75
|
+
_globals['_LISTCONNECTIONREQUEST']._serialized_start=1137
|
|
76
|
+
_globals['_LISTCONNECTIONREQUEST']._serialized_end=1474
|
|
77
|
+
_globals['_LISTCONNECTIONRESPONSE']._serialized_start=1476
|
|
78
|
+
_globals['_LISTCONNECTIONRESPONSE']._serialized_end=1592
|
|
79
|
+
_globals['_GETCONNECTIONREQUEST']._serialized_start=1594
|
|
80
|
+
_globals['_GETCONNECTIONREQUEST']._serialized_end=1651
|
|
81
|
+
_globals['_RESOLVECLUSTERREQUEST']._serialized_start=1653
|
|
82
|
+
_globals['_RESOLVECLUSTERREQUEST']._serialized_end=1705
|
|
83
|
+
_globals['_DELETEVERSIONMETADATA']._serialized_start=1707
|
|
84
|
+
_globals['_DELETEVERSIONMETADATA']._serialized_end=1773
|
|
85
|
+
_globals['_LISTOPERATIONSREQUEST']._serialized_start=1775
|
|
86
|
+
_globals['_LISTOPERATIONSREQUEST']._serialized_end=1860
|
|
87
|
+
_globals['_LISTOPERATIONSRESPONSE']._serialized_start=1862
|
|
88
|
+
_globals['_LISTOPERATIONSRESPONSE']._serialized_end=1966
|
|
89
|
+
_globals['_CONNECTIONSERVICE']._serialized_start=1969
|
|
90
|
+
_globals['_CONNECTIONSERVICE']._serialized_end=3195
|
|
91
|
+
# @@protoc_insertion_point(module_scope)
|