yandexcloud 0.324.0__py3-none-any.whl → 0.326.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of yandexcloud might be problematic. Click here for more details.
- yandex/cloud/ai/assistants/v1/searchindex/common_pb2.py +18 -5
- yandex/cloud/ai/assistants/v1/searchindex/common_pb2.pyi +149 -0
- yandex/cloud/ai/assistants/v1/searchindex/search_index_file_pb2.py +3 -4
- yandex/cloud/ai/assistants/v1/searchindex/search_index_file_pb2.pyi +2 -7
- yandex/cloud/ai/assistants/v1/searchindex/search_index_pb2.py +10 -8
- yandex/cloud/ai/assistants/v1/searchindex/search_index_pb2.pyi +63 -5
- yandex/cloud/ai/assistants/v1/searchindex/search_index_service_pb2.py +20 -20
- yandex/cloud/ai/assistants/v1/searchindex/search_index_service_pb2.pyi +9 -3
- yandex/cloud/ai/foundation_models/v1/embedding/embedding_service_pb2.pyi +1 -1
- yandex/cloud/ai/foundation_models/v1/image_generation/image_generation_pb2.pyi +4 -2
- yandex/cloud/ai/foundation_models/v1/image_generation/image_generation_service_pb2.pyi +6 -3
- yandex/cloud/ai/foundation_models/v1/image_generation/image_generation_service_pb2_grpc.py +3 -3
- yandex/cloud/ai/foundation_models/v1/image_generation/image_generation_service_pb2_grpc.pyi +3 -3
- yandex/cloud/ai/foundation_models/v1/text_classification/text_classification_pb2.pyi +3 -3
- yandex/cloud/ai/foundation_models/v1/text_classification/text_classification_service_pb2.pyi +25 -10
- yandex/cloud/ai/foundation_models/v1/text_classification/text_classification_service_pb2_grpc.py +11 -5
- yandex/cloud/ai/foundation_models/v1/text_classification/text_classification_service_pb2_grpc.pyi +33 -9
- yandex/cloud/ai/foundation_models/v1/text_common_pb2.pyi +3 -3
- yandex/cloud/ai/stt/v3/stt_pb2.py +5 -3
- yandex/cloud/ai/stt/v3/stt_pb2.pyi +15 -0
- yandex/cloud/ai/stt/v3/stt_service_pb2.py +10 -7
- yandex/cloud/ai/stt/v3/stt_service_pb2_grpc.py +34 -0
- yandex/cloud/ai/stt/v3/stt_service_pb2_grpc.pyi +18 -0
- yandex/cloud/apploadbalancer/v1/backend_group_pb2.py +28 -26
- yandex/cloud/apploadbalancer/v1/backend_group_pb2.pyi +16 -2
- yandex/cloud/backup/v1/policy_pb2.pyi +1 -1
- yandex/cloud/cdn/v1/resource_service_pb2.py +14 -14
- yandex/cloud/cdn/v1/resource_service_pb2.pyi +5 -1
- yandex/cloud/cloudapps/workload/v1/cloud_application_service_pb2.py +14 -9
- yandex/cloud/cloudregistry/v1/artifact_pb2.pyi +2 -0
- yandex/cloud/cloudregistry/v1/artifact_service_pb2.pyi +3 -3
- yandex/cloud/cloudregistry/v1/artifact_service_pb2_grpc.py +9 -6
- yandex/cloud/cloudregistry/v1/artifact_service_pb2_grpc.pyi +15 -9
- yandex/cloud/cloudregistry/v1/registry_pb2.pyi +1 -1
- yandex/cloud/cloudregistry/v1/registry_service_pb2.py +42 -38
- yandex/cloud/cloudregistry/v1/registry_service_pb2_grpc.py +2 -2
- yandex/cloud/cloudregistry/v1/registry_service_pb2_grpc.pyi +6 -6
- yandex/cloud/datasphere/v2/jobs/jobs_pb2.py +9 -5
- yandex/cloud/datasphere/v2/jobs/jobs_pb2.pyi +96 -0
- yandex/cloud/datasphere/v2/jobs/project_job_service_pb2.py +55 -53
- yandex/cloud/datasphere/v2/jobs/project_job_service_pb2.pyi +14 -2
- yandex/cloud/iam/v1/user_account_pb2.py +12 -11
- yandex/cloud/iam/v1/user_account_pb2.pyi +9 -4
- yandex/cloud/iam/v1/user_account_service_pb2_grpc.py +3 -3
- yandex/cloud/iam/v1/user_account_service_pb2_grpc.pyi +3 -3
- yandex/cloud/mdb/redis/v1/backup_pb2.py +4 -2
- yandex/cloud/mdb/redis/v1/backup_pb2.pyi +31 -1
- yandex/cloud/mdb/redis/v1/config/redis_pb2.py +8 -8
- yandex/cloud/mdb/redis/v1/config/redis_pb2.pyi +14 -2
- yandex/cloud/organizationmanager/v1/user_account_pb2.pyi +2 -2
- yandex/cloud/searchapi/__init__.py +0 -0
- yandex/cloud/searchapi/v2/__init__.py +0 -0
- yandex/cloud/searchapi/v2/search_query_pb2.py +37 -0
- yandex/cloud/searchapi/v2/search_query_pb2.pyi +100 -0
- yandex/cloud/searchapi/v2/search_query_pb2_grpc.py +4 -0
- yandex/cloud/searchapi/v2/search_query_pb2_grpc.pyi +17 -0
- yandex/cloud/searchapi/v2/search_service_pb2.py +61 -0
- yandex/cloud/searchapi/v2/search_service_pb2.pyi +218 -0
- yandex/cloud/searchapi/v2/search_service_pb2_grpc.py +70 -0
- yandex/cloud/searchapi/v2/search_service_pb2_grpc.pyi +48 -0
- yandex/cloud/serverless/containers/v1/container_pb2.py +42 -34
- yandex/cloud/serverless/containers/v1/container_pb2.pyi +52 -2
- yandex/cloud/serverless/containers/v1/container_service_pb2.py +18 -18
- yandex/cloud/serverless/containers/v1/container_service_pb2.pyi +8 -2
- yandex/cloud/serverless/eventrouter/v1/connector_pb2.py +9 -9
- yandex/cloud/serverless/eventrouter/v1/connector_pb2.pyi +8 -0
- yandex/cloud/serverless/eventrouter/v1/rule_pb2.py +31 -31
- yandex/cloud/serverless/eventrouter/v1/rule_pb2.pyi +4 -0
- yandex/cloud/serverless/workflows/v1/execution_service_pb2.py +23 -15
- yandex/cloud/serverless/workflows/v1/execution_service_pb2.pyi +32 -0
- yandex/cloud/serverless/workflows/v1/execution_service_pb2_grpc.py +34 -0
- yandex/cloud/serverless/workflows/v1/execution_service_pb2_grpc.pyi +20 -0
- yandex/cloud/smartwebsecurity/v1/security_profile_pb2.py +46 -40
- yandex/cloud/smartwebsecurity/v1/security_profile_pb2.pyi +47 -2
- yandex/cloud/smartwebsecurity/v1/security_profile_service_pb2.py +18 -18
- yandex/cloud/smartwebsecurity/v1/security_profile_service_pb2.pyi +16 -3
- yandex/cloud/speechsense/v1/talk_pb2.py +14 -6
- yandex/cloud/speechsense/v1/talk_pb2.pyi +89 -2
- yandex/cloud/speechsense/v1/talk_service_pb2.py +2 -6
- yandex/cloud/video/v1/channel_pb2.py +1 -1
- yandex/cloud/video/v1/channel_service_pb2.py +58 -25
- yandex/cloud/video/v1/channel_service_pb2.pyi +40 -0
- yandex/cloud/video/v1/channel_service_pb2_grpc.py +34 -0
- yandex/cloud/video/v1/channel_service_pb2_grpc.pyi +20 -0
- yandex/cloud/video/v1/episode_pb2.py +10 -8
- yandex/cloud/video/v1/episode_pb2.pyi +19 -3
- yandex/cloud/video/v1/episode_service_pb2.py +96 -43
- yandex/cloud/video/v1/episode_service_pb2.pyi +68 -6
- yandex/cloud/video/v1/episode_service_pb2_grpc.py +34 -0
- yandex/cloud/video/v1/episode_service_pb2_grpc.pyi +20 -0
- yandex/cloud/video/v1/manifest_pb2.py +3 -3
- yandex/cloud/video/v1/manifest_pb2.pyi +1 -5
- yandex/cloud/video/v1/playlist_pb2.py +29 -0
- yandex/cloud/video/v1/playlist_pb2.pyi +89 -0
- yandex/cloud/video/v1/playlist_pb2_grpc.py +4 -0
- yandex/cloud/video/v1/playlist_pb2_grpc.pyi +17 -0
- yandex/cloud/video/v1/playlist_service_pb2.py +102 -0
- yandex/cloud/video/v1/playlist_service_pb2.pyi +331 -0
- yandex/cloud/video/v1/playlist_service_pb2_grpc.py +276 -0
- yandex/cloud/video/v1/playlist_service_pb2_grpc.pyi +172 -0
- yandex/cloud/video/v1/stream_line_pb2.py +1 -1
- yandex/cloud/video/v1/stream_line_service_pb2.py +122 -55
- yandex/cloud/video/v1/stream_line_service_pb2.pyi +80 -0
- yandex/cloud/video/v1/stream_line_service_pb2_grpc.py +68 -0
- yandex/cloud/video/v1/stream_line_service_pb2_grpc.pyi +40 -0
- yandex/cloud/video/v1/stream_pb2.py +1 -1
- yandex/cloud/video/v1/stream_service_pb2.py +98 -37
- yandex/cloud/video/v1/stream_service_pb2.pyi +80 -0
- yandex/cloud/video/v1/stream_service_pb2_grpc.py +68 -0
- yandex/cloud/video/v1/stream_service_pb2_grpc.pyi +40 -0
- yandex/cloud/video/v1/subtitle_pb2.py +29 -0
- yandex/cloud/video/v1/subtitle_pb2.pyi +90 -0
- yandex/cloud/video/v1/subtitle_pb2_grpc.py +4 -0
- yandex/cloud/video/v1/subtitle_pb2_grpc.pyi +17 -0
- yandex/cloud/video/v1/subtitle_service_pb2.py +83 -0
- yandex/cloud/video/v1/subtitle_service_pb2.pyi +212 -0
- yandex/cloud/video/v1/subtitle_service_pb2_grpc.py +208 -0
- yandex/cloud/video/v1/subtitle_service_pb2_grpc.pyi +132 -0
- yandex/cloud/video/v1/thumbnail_service_pb2.py +50 -21
- yandex/cloud/video/v1/thumbnail_service_pb2.pyi +48 -0
- yandex/cloud/video/v1/thumbnail_service_pb2_grpc.py +69 -0
- yandex/cloud/video/v1/thumbnail_service_pb2_grpc.pyi +41 -0
- yandex/cloud/video/v1/video_pb2.py +18 -14
- yandex/cloud/video/v1/video_pb2.pyi +55 -3
- yandex/cloud/video/v1/video_service_pb2.py +118 -49
- yandex/cloud/video/v1/video_service_pb2.pyi +161 -6
- yandex/cloud/video/v1/video_service_pb2_grpc.py +102 -0
- yandex/cloud/video/v1/video_service_pb2_grpc.pyi +60 -0
- {yandexcloud-0.324.0.dist-info → yandexcloud-0.326.0.dist-info}/METADATA +1 -1
- {yandexcloud-0.324.0.dist-info → yandexcloud-0.326.0.dist-info}/RECORD +134 -108
- {yandexcloud-0.324.0.dist-info → yandexcloud-0.326.0.dist-info}/WHEEL +1 -1
- {yandexcloud-0.324.0.dist-info → yandexcloud-0.326.0.dist-info}/AUTHORS +0 -0
- {yandexcloud-0.324.0.dist-info → yandexcloud-0.326.0.dist-info}/LICENSE +0 -0
- {yandexcloud-0.324.0.dist-info → yandexcloud-0.326.0.dist-info}/top_level.txt +0 -0
|
@@ -8,19 +8,21 @@ import collections.abc
|
|
|
8
8
|
import google.protobuf.descriptor
|
|
9
9
|
import google.protobuf.internal.containers
|
|
10
10
|
import google.protobuf.message
|
|
11
|
+
import google.protobuf.timestamp_pb2
|
|
11
12
|
import typing
|
|
12
13
|
|
|
13
14
|
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
14
15
|
|
|
15
16
|
@typing.final
|
|
16
17
|
class UserAccount(google.protobuf.message.Message):
|
|
17
|
-
"""Currently represents only [Yandex account](/docs/iam/concepts
|
|
18
|
+
"""Currently represents only [Yandex account](/docs/iam/concepts/users/accounts#passport)."""
|
|
18
19
|
|
|
19
20
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
20
21
|
|
|
21
22
|
ID_FIELD_NUMBER: builtins.int
|
|
22
23
|
YANDEX_PASSPORT_USER_ACCOUNT_FIELD_NUMBER: builtins.int
|
|
23
24
|
SAML_USER_ACCOUNT_FIELD_NUMBER: builtins.int
|
|
25
|
+
LAST_AUTHENTICATED_AT_FIELD_NUMBER: builtins.int
|
|
24
26
|
id: builtins.str
|
|
25
27
|
"""ID of the user account."""
|
|
26
28
|
@property
|
|
@@ -31,15 +33,18 @@ class UserAccount(google.protobuf.message.Message):
|
|
|
31
33
|
def saml_user_account(self) -> global___SamlUserAccount:
|
|
32
34
|
"""A SAML federated user."""
|
|
33
35
|
|
|
36
|
+
@property
|
|
37
|
+
def last_authenticated_at(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
|
|
34
38
|
def __init__(
|
|
35
39
|
self,
|
|
36
40
|
*,
|
|
37
41
|
id: builtins.str = ...,
|
|
38
42
|
yandex_passport_user_account: global___YandexPassportUserAccount | None = ...,
|
|
39
43
|
saml_user_account: global___SamlUserAccount | None = ...,
|
|
44
|
+
last_authenticated_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
|
|
40
45
|
) -> None: ...
|
|
41
|
-
def HasField(self, field_name: typing.Literal["saml_user_account", b"saml_user_account", "user_account", b"user_account", "yandex_passport_user_account", b"yandex_passport_user_account"]) -> builtins.bool: ...
|
|
42
|
-
def ClearField(self, field_name: typing.Literal["id", b"id", "saml_user_account", b"saml_user_account", "user_account", b"user_account", "yandex_passport_user_account", b"yandex_passport_user_account"]) -> None: ...
|
|
46
|
+
def HasField(self, field_name: typing.Literal["last_authenticated_at", b"last_authenticated_at", "saml_user_account", b"saml_user_account", "user_account", b"user_account", "yandex_passport_user_account", b"yandex_passport_user_account"]) -> builtins.bool: ...
|
|
47
|
+
def ClearField(self, field_name: typing.Literal["id", b"id", "last_authenticated_at", b"last_authenticated_at", "saml_user_account", b"saml_user_account", "user_account", b"user_account", "yandex_passport_user_account", b"yandex_passport_user_account"]) -> None: ...
|
|
43
48
|
def WhichOneof(self, oneof_group: typing.Literal["user_account", b"user_account"]) -> typing.Literal["yandex_passport_user_account", "saml_user_account"] | None: ...
|
|
44
49
|
|
|
45
50
|
global___UserAccount = UserAccount
|
|
@@ -47,7 +52,7 @@ global___UserAccount = UserAccount
|
|
|
47
52
|
@typing.final
|
|
48
53
|
class YandexPassportUserAccount(google.protobuf.message.Message):
|
|
49
54
|
"""A YandexPassportUserAccount resource.
|
|
50
|
-
For more information, see [Yandex account](/docs/iam/concepts
|
|
55
|
+
For more information, see [Yandex account](/docs/iam/concepts/users/accounts#passport).
|
|
51
56
|
"""
|
|
52
57
|
|
|
53
58
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
@@ -7,7 +7,7 @@ from yandex.cloud.iam.v1 import user_account_service_pb2 as yandex_dot_cloud_dot
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
class UserAccountServiceStub(object):
|
|
10
|
-
"""A set of methods for managing user accounts. Currently applicable only for [Yandex accounts](/docs/iam/concepts
|
|
10
|
+
"""A set of methods for managing user accounts. Currently applicable only for [Yandex accounts](/docs/iam/concepts/users/accounts#passport).
|
|
11
11
|
"""
|
|
12
12
|
|
|
13
13
|
def __init__(self, channel):
|
|
@@ -24,7 +24,7 @@ class UserAccountServiceStub(object):
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
class UserAccountServiceServicer(object):
|
|
27
|
-
"""A set of methods for managing user accounts. Currently applicable only for [Yandex accounts](/docs/iam/concepts
|
|
27
|
+
"""A set of methods for managing user accounts. Currently applicable only for [Yandex accounts](/docs/iam/concepts/users/accounts#passport).
|
|
28
28
|
"""
|
|
29
29
|
|
|
30
30
|
def Get(self, request, context):
|
|
@@ -50,7 +50,7 @@ def add_UserAccountServiceServicer_to_server(servicer, server):
|
|
|
50
50
|
|
|
51
51
|
# This class is part of an EXPERIMENTAL API.
|
|
52
52
|
class UserAccountService(object):
|
|
53
|
-
"""A set of methods for managing user accounts. Currently applicable only for [Yandex accounts](/docs/iam/concepts
|
|
53
|
+
"""A set of methods for managing user accounts. Currently applicable only for [Yandex accounts](/docs/iam/concepts/users/accounts#passport).
|
|
54
54
|
"""
|
|
55
55
|
|
|
56
56
|
@staticmethod
|
|
@@ -19,7 +19,7 @@ class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type:
|
|
|
19
19
|
...
|
|
20
20
|
|
|
21
21
|
class UserAccountServiceStub:
|
|
22
|
-
"""A set of methods for managing user accounts. Currently applicable only for [Yandex accounts](/docs/iam/concepts
|
|
22
|
+
"""A set of methods for managing user accounts. Currently applicable only for [Yandex accounts](/docs/iam/concepts/users/accounts#passport)."""
|
|
23
23
|
|
|
24
24
|
def __init__(self, channel: typing.Union[grpc.Channel, grpc.aio.Channel]) -> None: ...
|
|
25
25
|
Get: grpc.UnaryUnaryMultiCallable[
|
|
@@ -29,7 +29,7 @@ class UserAccountServiceStub:
|
|
|
29
29
|
"""Returns the specified UserAccount resource."""
|
|
30
30
|
|
|
31
31
|
class UserAccountServiceAsyncStub:
|
|
32
|
-
"""A set of methods for managing user accounts. Currently applicable only for [Yandex accounts](/docs/iam/concepts
|
|
32
|
+
"""A set of methods for managing user accounts. Currently applicable only for [Yandex accounts](/docs/iam/concepts/users/accounts#passport)."""
|
|
33
33
|
|
|
34
34
|
Get: grpc.aio.UnaryUnaryMultiCallable[
|
|
35
35
|
yandex.cloud.iam.v1.user_account_service_pb2.GetUserAccountRequest,
|
|
@@ -38,7 +38,7 @@ class UserAccountServiceAsyncStub:
|
|
|
38
38
|
"""Returns the specified UserAccount resource."""
|
|
39
39
|
|
|
40
40
|
class UserAccountServiceServicer(metaclass=abc.ABCMeta):
|
|
41
|
-
"""A set of methods for managing user accounts. Currently applicable only for [Yandex accounts](/docs/iam/concepts
|
|
41
|
+
"""A set of methods for managing user accounts. Currently applicable only for [Yandex accounts](/docs/iam/concepts/users/accounts#passport)."""
|
|
42
42
|
|
|
43
43
|
@abc.abstractmethod
|
|
44
44
|
def Get(
|
|
@@ -14,7 +14,7 @@ _sym_db = _symbol_database.Default()
|
|
|
14
14
|
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n&yandex/cloud/mdb/redis/v1/backup.proto\x12\x19yandex.cloud.mdb.redis.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"\
|
|
17
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n&yandex/cloud/mdb/redis/v1/backup.proto\x12\x19yandex.cloud.mdb.redis.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"\xc0\x02\n\x06\x42\x61\x63kup\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\x19\n\x11source_cluster_id\x18\x04 \x01(\t\x12.\n\nstarted_at\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x1a\n\x12source_shard_names\x18\x06 \x03(\t\x12:\n\x04type\x18\x07 \x01(\x0e\x32,.yandex.cloud.mdb.redis.v1.Backup.BackupType\"D\n\nBackupType\x12\x1b\n\x17\x42\x41\x43KUP_TYPE_UNSPECIFIED\x10\x00\x12\r\n\tAUTOMATED\x10\x01\x12\n\n\x06MANUAL\x10\x02\x42\x64\n\x1dyandex.cloud.api.mdb.redis.v1ZCgithub.com/yandex-cloud/go-genproto/yandex/cloud/mdb/redis/v1;redisb\x06proto3')
|
|
18
18
|
|
|
19
19
|
_globals = globals()
|
|
20
20
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
@@ -23,5 +23,7 @@ if _descriptor._USE_C_DESCRIPTORS == False:
|
|
|
23
23
|
DESCRIPTOR._options = None
|
|
24
24
|
DESCRIPTOR._serialized_options = b'\n\035yandex.cloud.api.mdb.redis.v1ZCgithub.com/yandex-cloud/go-genproto/yandex/cloud/mdb/redis/v1;redis'
|
|
25
25
|
_globals['_BACKUP']._serialized_start=103
|
|
26
|
-
_globals['_BACKUP']._serialized_end=
|
|
26
|
+
_globals['_BACKUP']._serialized_end=423
|
|
27
|
+
_globals['_BACKUP_BACKUPTYPE']._serialized_start=355
|
|
28
|
+
_globals['_BACKUP_BACKUPTYPE']._serialized_end=423
|
|
27
29
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -7,10 +7,17 @@ import builtins
|
|
|
7
7
|
import collections.abc
|
|
8
8
|
import google.protobuf.descriptor
|
|
9
9
|
import google.protobuf.internal.containers
|
|
10
|
+
import google.protobuf.internal.enum_type_wrapper
|
|
10
11
|
import google.protobuf.message
|
|
11
12
|
import google.protobuf.timestamp_pb2
|
|
13
|
+
import sys
|
|
12
14
|
import typing
|
|
13
15
|
|
|
16
|
+
if sys.version_info >= (3, 10):
|
|
17
|
+
import typing as typing_extensions
|
|
18
|
+
else:
|
|
19
|
+
import typing_extensions
|
|
20
|
+
|
|
14
21
|
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
15
22
|
|
|
16
23
|
@typing.final
|
|
@@ -21,18 +28,40 @@ class Backup(google.protobuf.message.Message):
|
|
|
21
28
|
|
|
22
29
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
23
30
|
|
|
31
|
+
class _BackupType:
|
|
32
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
|
33
|
+
V: typing_extensions.TypeAlias = ValueType
|
|
34
|
+
|
|
35
|
+
class _BackupTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Backup._BackupType.ValueType], builtins.type):
|
|
36
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
37
|
+
BACKUP_TYPE_UNSPECIFIED: Backup._BackupType.ValueType # 0
|
|
38
|
+
AUTOMATED: Backup._BackupType.ValueType # 1
|
|
39
|
+
"""Backup created by automated daily schedule"""
|
|
40
|
+
MANUAL: Backup._BackupType.ValueType # 2
|
|
41
|
+
"""Backup created by user request"""
|
|
42
|
+
|
|
43
|
+
class BackupType(_BackupType, metaclass=_BackupTypeEnumTypeWrapper): ...
|
|
44
|
+
BACKUP_TYPE_UNSPECIFIED: Backup.BackupType.ValueType # 0
|
|
45
|
+
AUTOMATED: Backup.BackupType.ValueType # 1
|
|
46
|
+
"""Backup created by automated daily schedule"""
|
|
47
|
+
MANUAL: Backup.BackupType.ValueType # 2
|
|
48
|
+
"""Backup created by user request"""
|
|
49
|
+
|
|
24
50
|
ID_FIELD_NUMBER: builtins.int
|
|
25
51
|
FOLDER_ID_FIELD_NUMBER: builtins.int
|
|
26
52
|
CREATED_AT_FIELD_NUMBER: builtins.int
|
|
27
53
|
SOURCE_CLUSTER_ID_FIELD_NUMBER: builtins.int
|
|
28
54
|
STARTED_AT_FIELD_NUMBER: builtins.int
|
|
29
55
|
SOURCE_SHARD_NAMES_FIELD_NUMBER: builtins.int
|
|
56
|
+
TYPE_FIELD_NUMBER: builtins.int
|
|
30
57
|
id: builtins.str
|
|
31
58
|
"""ID of the backup."""
|
|
32
59
|
folder_id: builtins.str
|
|
33
60
|
"""ID of the folder that the backup belongs to."""
|
|
34
61
|
source_cluster_id: builtins.str
|
|
35
62
|
"""ID of the Redis cluster that the backup was created for."""
|
|
63
|
+
type: global___Backup.BackupType.ValueType
|
|
64
|
+
"""How this backup was created (manual/automatic/etc...)"""
|
|
36
65
|
@property
|
|
37
66
|
def created_at(self) -> google.protobuf.timestamp_pb2.Timestamp:
|
|
38
67
|
"""Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format
|
|
@@ -58,8 +87,9 @@ class Backup(google.protobuf.message.Message):
|
|
|
58
87
|
source_cluster_id: builtins.str = ...,
|
|
59
88
|
started_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
|
|
60
89
|
source_shard_names: collections.abc.Iterable[builtins.str] | None = ...,
|
|
90
|
+
type: global___Backup.BackupType.ValueType = ...,
|
|
61
91
|
) -> None: ...
|
|
62
92
|
def HasField(self, field_name: typing.Literal["created_at", b"created_at", "started_at", b"started_at"]) -> builtins.bool: ...
|
|
63
|
-
def ClearField(self, field_name: typing.Literal["created_at", b"created_at", "folder_id", b"folder_id", "id", b"id", "source_cluster_id", b"source_cluster_id", "source_shard_names", b"source_shard_names", "started_at", b"started_at"]) -> None: ...
|
|
93
|
+
def ClearField(self, field_name: typing.Literal["created_at", b"created_at", "folder_id", b"folder_id", "id", b"id", "source_cluster_id", b"source_cluster_id", "source_shard_names", b"source_shard_names", "started_at", b"started_at", "type", b"type"]) -> None: ...
|
|
64
94
|
|
|
65
95
|
global___Backup = Backup
|
|
@@ -15,7 +15,7 @@ from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb
|
|
|
15
15
|
from yandex.cloud import validation_pb2 as yandex_dot_cloud_dot_validation__pb2
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n,yandex/cloud/mdb/redis/v1/config/redis.proto\x12 yandex.cloud.mdb.redis.v1.config\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1dyandex/cloud/validation.proto\"\
|
|
18
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n,yandex/cloud/mdb/redis/v1/config/redis.proto\x12 yandex.cloud.mdb.redis.v1.config\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1dyandex/cloud/validation.proto\"\xb6\x0e\n\x0bRedisConfig\x12W\n\x10maxmemory_policy\x18\x01 \x01(\x0e\x32=.yandex.cloud.mdb.redis.v1.config.RedisConfig.MaxmemoryPolicy\x12,\n\x07timeout\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x38\n\x08password\x18\x03 \x01(\tB&\xf2\xc7\x31\"[a-zA-Z0-9@=+?*.,!&#$^<>_-]{8,128}\x12\x36\n\tdatabases\x18\x04 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x06\xfa\xc7\x31\x02>0\x12\x45\n\x17slowlog_log_slower_than\x18\x05 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x07\xfa\xc7\x31\x03>=0\x12=\n\x0fslowlog_max_len\x18\x06 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x07\xfa\xc7\x31\x03>=0\x12\x39\n\x16notify_keyspace_events\x18\x07 \x01(\tB\x19\xf2\xc7\x31\x15[KEg$lshzxeAtm]{0,13}\x12p\n!client_output_buffer_limit_pubsub\x18\x08 \x01(\x0b\x32\x45.yandex.cloud.mdb.redis.v1.config.RedisConfig.ClientOutputBufferLimit\x12p\n!client_output_buffer_limit_normal\x18\t \x01(\x0b\x32\x45.yandex.cloud.mdb.redis.v1.config.RedisConfig.ClientOutputBufferLimit\x12@\n\x11maxmemory_percent\x18\n \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x08\xfa\xc7\x31\x04\x31-75\x12<\n\x0elua_time_limit\x18\x0b \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x07\xfa\xc7\x31\x03>=0\x12\x46\n\x19repl_backlog_size_percent\x18\x0c \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x06\xfa\xc7\x31\x02>0\x12\x41\n\x1d\x63luster_require_full_coverage\x18\r \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12\x41\n\x1d\x63luster_allow_reads_when_down\x18\x0e \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12G\n#cluster_allow_pubsubshard_when_down\x18\x0f \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12<\n\x0elfu_decay_time\x18\x10 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x07\xfa\xc7\x31\x03>=0\x12<\n\x0elfu_log_factor\x18\x11 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x07\xfa\xc7\x31\x03>=0\x12:\n\x16turn_before_switchover\x18\x12 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12\x33\n\x0f\x61llow_data_loss\x18\x13 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12.\n\nuse_luajit\x18\x14 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12\x36\n\x12io_threads_allowed\x18\x15 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x1a\xd5\x01\n\x17\x43lientOutputBufferLimit\x12\x38\n\nhard_limit\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x07\xfa\xc7\x31\x03>=0\x12\x38\n\nsoft_limit\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x07\xfa\xc7\x31\x03>=0\x12:\n\x0csoft_seconds\x18\x05 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x07\xfa\xc7\x31\x03>=0J\x04\x08\x04\x10\x05J\x04\x08\x02\x10\x03\"\xc4\x01\n\x0fMaxmemoryPolicy\x12 \n\x1cMAXMEMORY_POLICY_UNSPECIFIED\x10\x00\x12\x10\n\x0cVOLATILE_LRU\x10\x01\x12\x0f\n\x0b\x41LLKEYS_LRU\x10\x02\x12\x10\n\x0cVOLATILE_LFU\x10\x03\x12\x0f\n\x0b\x41LLKEYS_LFU\x10\x04\x12\x13\n\x0fVOLATILE_RANDOM\x10\x05\x12\x12\n\x0e\x41LLKEYS_RANDOM\x10\x06\x12\x10\n\x0cVOLATILE_TTL\x10\x07\x12\x0e\n\nNOEVICTION\x10\x08\"\xe4\x01\n\x0eRedisConfigSet\x12G\n\x10\x65\x66\x66\x65\x63tive_config\x18\x01 \x01(\x0b\x32-.yandex.cloud.mdb.redis.v1.config.RedisConfig\x12\x42\n\x0buser_config\x18\x02 \x01(\x0b\x32-.yandex.cloud.mdb.redis.v1.config.RedisConfig\x12\x45\n\x0e\x64\x65\x66\x61ult_config\x18\x03 \x01(\x0b\x32-.yandex.cloud.mdb.redis.v1.config.RedisConfigBr\n$yandex.cloud.api.mdb.redis.v1.configZJgithub.com/yandex-cloud/go-genproto/yandex/cloud/mdb/redis/v1/config;redisb\x06proto3')
|
|
19
19
|
|
|
20
20
|
_globals = globals()
|
|
21
21
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
@@ -50,11 +50,11 @@ if _descriptor._USE_C_DESCRIPTORS == False:
|
|
|
50
50
|
_REDISCONFIG.fields_by_name['lfu_log_factor']._options = None
|
|
51
51
|
_REDISCONFIG.fields_by_name['lfu_log_factor']._serialized_options = b'\372\3071\003>=0'
|
|
52
52
|
_globals['_REDISCONFIG']._serialized_start=146
|
|
53
|
-
_globals['_REDISCONFIG']._serialized_end=
|
|
54
|
-
_globals['_REDISCONFIG_CLIENTOUTPUTBUFFERLIMIT']._serialized_start=
|
|
55
|
-
_globals['_REDISCONFIG_CLIENTOUTPUTBUFFERLIMIT']._serialized_end=
|
|
56
|
-
_globals['_REDISCONFIG_MAXMEMORYPOLICY']._serialized_start=
|
|
57
|
-
_globals['_REDISCONFIG_MAXMEMORYPOLICY']._serialized_end=
|
|
58
|
-
_globals['_REDISCONFIGSET']._serialized_start=
|
|
59
|
-
_globals['_REDISCONFIGSET']._serialized_end=
|
|
53
|
+
_globals['_REDISCONFIG']._serialized_end=1992
|
|
54
|
+
_globals['_REDISCONFIG_CLIENTOUTPUTBUFFERLIMIT']._serialized_start=1580
|
|
55
|
+
_globals['_REDISCONFIG_CLIENTOUTPUTBUFFERLIMIT']._serialized_end=1793
|
|
56
|
+
_globals['_REDISCONFIG_MAXMEMORYPOLICY']._serialized_start=1796
|
|
57
|
+
_globals['_REDISCONFIG_MAXMEMORYPOLICY']._serialized_end=1992
|
|
58
|
+
_globals['_REDISCONFIGSET']._serialized_start=1995
|
|
59
|
+
_globals['_REDISCONFIGSET']._serialized_end=2223
|
|
60
60
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -125,6 +125,8 @@ class RedisConfig(google.protobuf.message.Message):
|
|
|
125
125
|
LFU_LOG_FACTOR_FIELD_NUMBER: builtins.int
|
|
126
126
|
TURN_BEFORE_SWITCHOVER_FIELD_NUMBER: builtins.int
|
|
127
127
|
ALLOW_DATA_LOSS_FIELD_NUMBER: builtins.int
|
|
128
|
+
USE_LUAJIT_FIELD_NUMBER: builtins.int
|
|
129
|
+
IO_THREADS_ALLOWED_FIELD_NUMBER: builtins.int
|
|
128
130
|
maxmemory_policy: global___RedisConfig.MaxmemoryPolicy.ValueType
|
|
129
131
|
"""Redis key eviction policy for a dataset that reaches maximum memory,
|
|
130
132
|
available to the host. Redis maxmemory setting depends on Managed
|
|
@@ -202,6 +204,14 @@ class RedisConfig(google.protobuf.message.Message):
|
|
|
202
204
|
def allow_data_loss(self) -> google.protobuf.wrappers_pb2.BoolValue:
|
|
203
205
|
"""Allows some data to be lost in favor of faster switchover/restart"""
|
|
204
206
|
|
|
207
|
+
@property
|
|
208
|
+
def use_luajit(self) -> google.protobuf.wrappers_pb2.BoolValue:
|
|
209
|
+
"""Use JIT for lua scripts and functions"""
|
|
210
|
+
|
|
211
|
+
@property
|
|
212
|
+
def io_threads_allowed(self) -> google.protobuf.wrappers_pb2.BoolValue:
|
|
213
|
+
"""Allow redis to use io-threads"""
|
|
214
|
+
|
|
205
215
|
def __init__(
|
|
206
216
|
self,
|
|
207
217
|
*,
|
|
@@ -224,9 +234,11 @@ class RedisConfig(google.protobuf.message.Message):
|
|
|
224
234
|
lfu_log_factor: google.protobuf.wrappers_pb2.Int64Value | None = ...,
|
|
225
235
|
turn_before_switchover: google.protobuf.wrappers_pb2.BoolValue | None = ...,
|
|
226
236
|
allow_data_loss: google.protobuf.wrappers_pb2.BoolValue | None = ...,
|
|
237
|
+
use_luajit: google.protobuf.wrappers_pb2.BoolValue | None = ...,
|
|
238
|
+
io_threads_allowed: google.protobuf.wrappers_pb2.BoolValue | None = ...,
|
|
227
239
|
) -> None: ...
|
|
228
|
-
def HasField(self, field_name: typing.Literal["allow_data_loss", b"allow_data_loss", "client_output_buffer_limit_normal", b"client_output_buffer_limit_normal", "client_output_buffer_limit_pubsub", b"client_output_buffer_limit_pubsub", "cluster_allow_pubsubshard_when_down", b"cluster_allow_pubsubshard_when_down", "cluster_allow_reads_when_down", b"cluster_allow_reads_when_down", "cluster_require_full_coverage", b"cluster_require_full_coverage", "databases", b"databases", "lfu_decay_time", b"lfu_decay_time", "lfu_log_factor", b"lfu_log_factor", "lua_time_limit", b"lua_time_limit", "maxmemory_percent", b"maxmemory_percent", "repl_backlog_size_percent", b"repl_backlog_size_percent", "slowlog_log_slower_than", b"slowlog_log_slower_than", "slowlog_max_len", b"slowlog_max_len", "timeout", b"timeout", "turn_before_switchover", b"turn_before_switchover"]) -> builtins.bool: ...
|
|
229
|
-
def ClearField(self, field_name: typing.Literal["allow_data_loss", b"allow_data_loss", "client_output_buffer_limit_normal", b"client_output_buffer_limit_normal", "client_output_buffer_limit_pubsub", b"client_output_buffer_limit_pubsub", "cluster_allow_pubsubshard_when_down", b"cluster_allow_pubsubshard_when_down", "cluster_allow_reads_when_down", b"cluster_allow_reads_when_down", "cluster_require_full_coverage", b"cluster_require_full_coverage", "databases", b"databases", "lfu_decay_time", b"lfu_decay_time", "lfu_log_factor", b"lfu_log_factor", "lua_time_limit", b"lua_time_limit", "maxmemory_percent", b"maxmemory_percent", "maxmemory_policy", b"maxmemory_policy", "notify_keyspace_events", b"notify_keyspace_events", "password", b"password", "repl_backlog_size_percent", b"repl_backlog_size_percent", "slowlog_log_slower_than", b"slowlog_log_slower_than", "slowlog_max_len", b"slowlog_max_len", "timeout", b"timeout", "turn_before_switchover", b"turn_before_switchover"]) -> None: ...
|
|
240
|
+
def HasField(self, field_name: typing.Literal["allow_data_loss", b"allow_data_loss", "client_output_buffer_limit_normal", b"client_output_buffer_limit_normal", "client_output_buffer_limit_pubsub", b"client_output_buffer_limit_pubsub", "cluster_allow_pubsubshard_when_down", b"cluster_allow_pubsubshard_when_down", "cluster_allow_reads_when_down", b"cluster_allow_reads_when_down", "cluster_require_full_coverage", b"cluster_require_full_coverage", "databases", b"databases", "io_threads_allowed", b"io_threads_allowed", "lfu_decay_time", b"lfu_decay_time", "lfu_log_factor", b"lfu_log_factor", "lua_time_limit", b"lua_time_limit", "maxmemory_percent", b"maxmemory_percent", "repl_backlog_size_percent", b"repl_backlog_size_percent", "slowlog_log_slower_than", b"slowlog_log_slower_than", "slowlog_max_len", b"slowlog_max_len", "timeout", b"timeout", "turn_before_switchover", b"turn_before_switchover", "use_luajit", b"use_luajit"]) -> builtins.bool: ...
|
|
241
|
+
def ClearField(self, field_name: typing.Literal["allow_data_loss", b"allow_data_loss", "client_output_buffer_limit_normal", b"client_output_buffer_limit_normal", "client_output_buffer_limit_pubsub", b"client_output_buffer_limit_pubsub", "cluster_allow_pubsubshard_when_down", b"cluster_allow_pubsubshard_when_down", "cluster_allow_reads_when_down", b"cluster_allow_reads_when_down", "cluster_require_full_coverage", b"cluster_require_full_coverage", "databases", b"databases", "io_threads_allowed", b"io_threads_allowed", "lfu_decay_time", b"lfu_decay_time", "lfu_log_factor", b"lfu_log_factor", "lua_time_limit", b"lua_time_limit", "maxmemory_percent", b"maxmemory_percent", "maxmemory_policy", b"maxmemory_policy", "notify_keyspace_events", b"notify_keyspace_events", "password", b"password", "repl_backlog_size_percent", b"repl_backlog_size_percent", "slowlog_log_slower_than", b"slowlog_log_slower_than", "slowlog_max_len", b"slowlog_max_len", "timeout", b"timeout", "turn_before_switchover", b"turn_before_switchover", "use_luajit", b"use_luajit"]) -> None: ...
|
|
230
242
|
|
|
231
243
|
global___RedisConfig = RedisConfig
|
|
232
244
|
|
|
@@ -14,7 +14,7 @@ DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
|
14
14
|
|
|
15
15
|
@typing.final
|
|
16
16
|
class UserAccount(google.protobuf.message.Message):
|
|
17
|
-
"""Currently represents only [Yandex account](/docs/iam/concepts
|
|
17
|
+
"""Currently represents only [Yandex account](/docs/iam/concepts/users/accounts#passport)."""
|
|
18
18
|
|
|
19
19
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
20
20
|
|
|
@@ -47,7 +47,7 @@ global___UserAccount = UserAccount
|
|
|
47
47
|
@typing.final
|
|
48
48
|
class YandexPassportUserAccount(google.protobuf.message.Message):
|
|
49
49
|
"""A YandexPassportUserAccount resource.
|
|
50
|
-
For more information, see [Yandex account](/docs/iam/concepts
|
|
50
|
+
For more information, see [Yandex account](/docs/iam/concepts/users/accounts#passport).
|
|
51
51
|
"""
|
|
52
52
|
|
|
53
53
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: yandex/cloud/searchapi/v2/search_query.proto
|
|
4
|
+
"""Generated protocol buffer code."""
|
|
5
|
+
from google.protobuf import descriptor as _descriptor
|
|
6
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
7
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
8
|
+
from google.protobuf.internal import builder as _builder
|
|
9
|
+
# @@protoc_insertion_point(imports)
|
|
10
|
+
|
|
11
|
+
_sym_db = _symbol_database.Default()
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
from yandex.cloud import validation_pb2 as yandex_dot_cloud_dot_validation__pb2
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n,yandex/cloud/searchapi/v2/search_query.proto\x12\x19yandex.cloud.searchapi.v2\x1a\x1dyandex/cloud/validation.proto\"\xb8\x03\n\x0bSearchQuery\x12L\n\x0bsearch_type\x18\x01 \x01(\x0e\x32\x31.yandex.cloud.searchapi.v2.SearchQuery.SearchTypeB\x04\xe8\xc7\x31\x01\x12!\n\nquery_text\x18\x02 \x01(\tB\r\xe8\xc7\x31\x01\x8a\xc8\x31\x05<=400\x12\x46\n\x0b\x66\x61mily_mode\x18\x03 \x01(\x0e\x32\x31.yandex.cloud.searchapi.v2.SearchQuery.FamilyMode\x12\x15\n\x04page\x18\x04 \x01(\x03\x42\x07\xfa\xc7\x31\x03>=0\"f\n\nSearchType\x12\x1b\n\x17SEARCH_TYPE_UNSPECIFIED\x10\x00\x12\x12\n\x0eSEARCH_TYPE_RU\x10\x01\x12\x12\n\x0eSEARCH_TYPE_TR\x10\x02\x12\x13\n\x0fSEARCH_TYPE_COM\x10\x03\"q\n\nFamilyMode\x12\x1b\n\x17\x46\x41MILY_MODE_UNSPECIFIED\x10\x00\x12\x14\n\x10\x46\x41MILY_MODE_NONE\x10\x01\x12\x18\n\x14\x46\x41MILY_MODE_MODERATE\x10\x02\x12\x16\n\x12\x46\x41MILY_MODE_STRICT\x10\x03\x42\x65\n\x1ayandex.cloud.api.search.v2ZGgithub.com/yandex-cloud/go-genproto/yandex/cloud/searchapi/v2;searchapib\x06proto3')
|
|
18
|
+
|
|
19
|
+
_globals = globals()
|
|
20
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
21
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'yandex.cloud.searchapi.v2.search_query_pb2', _globals)
|
|
22
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
23
|
+
DESCRIPTOR._options = None
|
|
24
|
+
DESCRIPTOR._serialized_options = b'\n\032yandex.cloud.api.search.v2ZGgithub.com/yandex-cloud/go-genproto/yandex/cloud/searchapi/v2;searchapi'
|
|
25
|
+
_SEARCHQUERY.fields_by_name['search_type']._options = None
|
|
26
|
+
_SEARCHQUERY.fields_by_name['search_type']._serialized_options = b'\350\3071\001'
|
|
27
|
+
_SEARCHQUERY.fields_by_name['query_text']._options = None
|
|
28
|
+
_SEARCHQUERY.fields_by_name['query_text']._serialized_options = b'\350\3071\001\212\3101\005<=400'
|
|
29
|
+
_SEARCHQUERY.fields_by_name['page']._options = None
|
|
30
|
+
_SEARCHQUERY.fields_by_name['page']._serialized_options = b'\372\3071\003>=0'
|
|
31
|
+
_globals['_SEARCHQUERY']._serialized_start=107
|
|
32
|
+
_globals['_SEARCHQUERY']._serialized_end=547
|
|
33
|
+
_globals['_SEARCHQUERY_SEARCHTYPE']._serialized_start=330
|
|
34
|
+
_globals['_SEARCHQUERY_SEARCHTYPE']._serialized_end=432
|
|
35
|
+
_globals['_SEARCHQUERY_FAMILYMODE']._serialized_start=434
|
|
36
|
+
_globals['_SEARCHQUERY_FAMILYMODE']._serialized_end=547
|
|
37
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,100 @@
|
|
|
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.internal.enum_type_wrapper
|
|
9
|
+
import google.protobuf.message
|
|
10
|
+
import sys
|
|
11
|
+
import typing
|
|
12
|
+
|
|
13
|
+
if sys.version_info >= (3, 10):
|
|
14
|
+
import typing as typing_extensions
|
|
15
|
+
else:
|
|
16
|
+
import typing_extensions
|
|
17
|
+
|
|
18
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
19
|
+
|
|
20
|
+
@typing.final
|
|
21
|
+
class SearchQuery(google.protobuf.message.Message):
|
|
22
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
23
|
+
|
|
24
|
+
class _SearchType:
|
|
25
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
|
26
|
+
V: typing_extensions.TypeAlias = ValueType
|
|
27
|
+
|
|
28
|
+
class _SearchTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[SearchQuery._SearchType.ValueType], builtins.type):
|
|
29
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
30
|
+
SEARCH_TYPE_UNSPECIFIED: SearchQuery._SearchType.ValueType # 0
|
|
31
|
+
SEARCH_TYPE_RU: SearchQuery._SearchType.ValueType # 1
|
|
32
|
+
"""Russian search type (default), yandex.ru search domain name will be used."""
|
|
33
|
+
SEARCH_TYPE_TR: SearchQuery._SearchType.ValueType # 2
|
|
34
|
+
"""Turkish search type, yandex.tr search domain name will be used."""
|
|
35
|
+
SEARCH_TYPE_COM: SearchQuery._SearchType.ValueType # 3
|
|
36
|
+
"""International search type, yandex.com search domain name will be used."""
|
|
37
|
+
|
|
38
|
+
class SearchType(_SearchType, metaclass=_SearchTypeEnumTypeWrapper): ...
|
|
39
|
+
SEARCH_TYPE_UNSPECIFIED: SearchQuery.SearchType.ValueType # 0
|
|
40
|
+
SEARCH_TYPE_RU: SearchQuery.SearchType.ValueType # 1
|
|
41
|
+
"""Russian search type (default), yandex.ru search domain name will be used."""
|
|
42
|
+
SEARCH_TYPE_TR: SearchQuery.SearchType.ValueType # 2
|
|
43
|
+
"""Turkish search type, yandex.tr search domain name will be used."""
|
|
44
|
+
SEARCH_TYPE_COM: SearchQuery.SearchType.ValueType # 3
|
|
45
|
+
"""International search type, yandex.com search domain name will be used."""
|
|
46
|
+
|
|
47
|
+
class _FamilyMode:
|
|
48
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
|
49
|
+
V: typing_extensions.TypeAlias = ValueType
|
|
50
|
+
|
|
51
|
+
class _FamilyModeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[SearchQuery._FamilyMode.ValueType], builtins.type):
|
|
52
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
53
|
+
FAMILY_MODE_UNSPECIFIED: SearchQuery._FamilyMode.ValueType # 0
|
|
54
|
+
FAMILY_MODE_NONE: SearchQuery._FamilyMode.ValueType # 1
|
|
55
|
+
"""Filtering is disabled. Search results include any documents regardless of their contents."""
|
|
56
|
+
FAMILY_MODE_MODERATE: SearchQuery._FamilyMode.ValueType # 2
|
|
57
|
+
"""Moderate filter (default value). Documents of the Adult category are excluded from search results
|
|
58
|
+
unless a query is explicitly made for searching resources of this category.
|
|
59
|
+
"""
|
|
60
|
+
FAMILY_MODE_STRICT: SearchQuery._FamilyMode.ValueType # 3
|
|
61
|
+
"""Regardless of a search query, documents of the Adult category
|
|
62
|
+
and those with profanity are excluded from search results.
|
|
63
|
+
"""
|
|
64
|
+
|
|
65
|
+
class FamilyMode(_FamilyMode, metaclass=_FamilyModeEnumTypeWrapper): ...
|
|
66
|
+
FAMILY_MODE_UNSPECIFIED: SearchQuery.FamilyMode.ValueType # 0
|
|
67
|
+
FAMILY_MODE_NONE: SearchQuery.FamilyMode.ValueType # 1
|
|
68
|
+
"""Filtering is disabled. Search results include any documents regardless of their contents."""
|
|
69
|
+
FAMILY_MODE_MODERATE: SearchQuery.FamilyMode.ValueType # 2
|
|
70
|
+
"""Moderate filter (default value). Documents of the Adult category are excluded from search results
|
|
71
|
+
unless a query is explicitly made for searching resources of this category.
|
|
72
|
+
"""
|
|
73
|
+
FAMILY_MODE_STRICT: SearchQuery.FamilyMode.ValueType # 3
|
|
74
|
+
"""Regardless of a search query, documents of the Adult category
|
|
75
|
+
and those with profanity are excluded from search results.
|
|
76
|
+
"""
|
|
77
|
+
|
|
78
|
+
SEARCH_TYPE_FIELD_NUMBER: builtins.int
|
|
79
|
+
QUERY_TEXT_FIELD_NUMBER: builtins.int
|
|
80
|
+
FAMILY_MODE_FIELD_NUMBER: builtins.int
|
|
81
|
+
PAGE_FIELD_NUMBER: builtins.int
|
|
82
|
+
search_type: global___SearchQuery.SearchType.ValueType
|
|
83
|
+
"""Search type that determines the domain name that will be used for the search queries."""
|
|
84
|
+
query_text: builtins.str
|
|
85
|
+
"""Search query text"""
|
|
86
|
+
family_mode: global___SearchQuery.FamilyMode.ValueType
|
|
87
|
+
"""Rule for filtering search results and determines whether any documents should be excluded."""
|
|
88
|
+
page: builtins.int
|
|
89
|
+
"""The number of a requested page with search results"""
|
|
90
|
+
def __init__(
|
|
91
|
+
self,
|
|
92
|
+
*,
|
|
93
|
+
search_type: global___SearchQuery.SearchType.ValueType = ...,
|
|
94
|
+
query_text: builtins.str = ...,
|
|
95
|
+
family_mode: global___SearchQuery.FamilyMode.ValueType = ...,
|
|
96
|
+
page: builtins.int = ...,
|
|
97
|
+
) -> None: ...
|
|
98
|
+
def ClearField(self, field_name: typing.Literal["family_mode", b"family_mode", "page", b"page", "query_text", b"query_text", "search_type", b"search_type"]) -> None: ...
|
|
99
|
+
|
|
100
|
+
global___SearchQuery = SearchQuery
|
|
@@ -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,61 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: yandex/cloud/searchapi/v2/search_service.proto
|
|
4
|
+
"""Generated protocol buffer code."""
|
|
5
|
+
from google.protobuf import descriptor as _descriptor
|
|
6
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
7
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
8
|
+
from google.protobuf.internal import builder as _builder
|
|
9
|
+
# @@protoc_insertion_point(imports)
|
|
10
|
+
|
|
11
|
+
_sym_db = _symbol_database.Default()
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
from yandex.cloud.api import operation_pb2 as yandex_dot_cloud_dot_api_dot_operation__pb2
|
|
15
|
+
from yandex.cloud.operation import operation_pb2 as yandex_dot_cloud_dot_operation_dot_operation__pb2
|
|
16
|
+
from yandex.cloud import validation_pb2 as yandex_dot_cloud_dot_validation__pb2
|
|
17
|
+
from yandex.cloud.searchapi.v2 import search_query_pb2 as yandex_dot_cloud_dot_searchapi_dot_v2_dot_search__query__pb2
|
|
18
|
+
from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n.yandex/cloud/searchapi/v2/search_service.proto\x12\x19yandex.cloud.searchapi.v2\x1a yandex/cloud/api/operation.proto\x1a&yandex/cloud/operation/operation.proto\x1a\x1dyandex/cloud/validation.proto\x1a,yandex/cloud/searchapi/v2/search_query.proto\x1a\x1cgoogle/api/annotations.proto\"\xba\x02\n\x08SortSpec\x12?\n\tsort_mode\x18\x01 \x01(\x0e\x32,.yandex.cloud.searchapi.v2.SortSpec.SortMode\x12\x41\n\nsort_order\x18\x02 \x01(\x0e\x32-.yandex.cloud.searchapi.v2.SortSpec.SortOrder\"P\n\tSortOrder\x12\x1a\n\x16SORT_ORDER_UNSPECIFIED\x10\x00\x12\x12\n\x0eSORT_ORDER_ASC\x10\x01\x12\x13\n\x0fSORT_ORDER_DESC\x10\x02\"X\n\x08SortMode\x12\x19\n\x15SORT_MODE_UNSPECIFIED\x10\x00\x12\x1a\n\x16SORT_MODE_BY_RELEVANCE\x10\x01\x12\x15\n\x11SORT_MODE_BY_TIME\x10\x02\"\xe5\x01\n\tGroupSpec\x12\x42\n\ngroup_mode\x18\x01 \x01(\x0e\x32..yandex.cloud.searchapi.v2.GroupSpec.GroupMode\x12!\n\x0egroups_on_page\x18\x02 \x01(\x03\x42\t\xfa\xc7\x31\x05\x31-100\x12\x1e\n\rdocs_in_group\x18\x03 \x01(\x03\x42\x07\xfa\xc7\x31\x03\x31-3\"Q\n\tGroupMode\x12\x1a\n\x16GROUP_MODE_UNSPECIFIED\x10\x00\x12\x13\n\x0fGROUP_MODE_FLAT\x10\x01\x12\x13\n\x0fGROUP_MODE_DEEP\x10\x02\"\x82\x04\n\x10WebSearchRequest\x12;\n\x05query\x18\x01 \x01(\x0b\x32&.yandex.cloud.searchapi.v2.SearchQueryB\x04\xe8\xc7\x31\x01\x12\x36\n\tsort_spec\x18\x02 \x01(\x0b\x32#.yandex.cloud.searchapi.v2.SortSpec\x12\x38\n\ngroup_spec\x18\x03 \x01(\x0b\x32$.yandex.cloud.searchapi.v2.GroupSpec\x12\x1d\n\x0cmax_passages\x18\x04 \x01(\x03\x42\x07\xfa\xc7\x31\x03\x31-5\x12\x0e\n\x06region\x18\x05 \x01(\t\x12\x46\n\x04l10n\x18\x06 \x01(\x0e\x32\x38.yandex.cloud.searchapi.v2.WebSearchRequest.Localization\x12\x1b\n\tfolder_id\x18\x07 \x01(\tB\x08\x8a\xc8\x31\x04<=50\"\xaa\x01\n\x0cLocalization\x12\x1c\n\x18LOCALIZATION_UNSPECIFIED\x10\x00\x12\x13\n\x0fLOCALIZATION_RU\x10\x01\x12\x13\n\x0fLOCALIZATION_UK\x10\x02\x12\x13\n\x0fLOCALIZATION_BE\x10\x03\x12\x13\n\x0fLOCALIZATION_KK\x10\x04\x12\x13\n\x0fLOCALIZATION_TR\x10\x05\x12\x13\n\x0fLOCALIZATION_EN\x10\x06\"+\n\x11WebSearchResponse\x12\x16\n\x08raw_data\x18\x01 \x01(\x0c\x42\x04\xe8\xc7\x31\x01\x32\xa9\x01\n\x15WebSearchAsyncService\x12\x8f\x01\n\x06Search\x12+.yandex.cloud.searchapi.v2.WebSearchRequest\x1a!.yandex.cloud.operation.Operation\"5\xb2\xd2*\x13\x12\x11WebSearchResponse\x82\xd3\xe4\x93\x02\x18\"\x13/v2/web/searchAsync:\x01*Be\n\x1ayandex.cloud.api.search.v2ZGgithub.com/yandex-cloud/go-genproto/yandex/cloud/searchapi/v2;searchapib\x06proto3')
|
|
22
|
+
|
|
23
|
+
_globals = globals()
|
|
24
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
25
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'yandex.cloud.searchapi.v2.search_service_pb2', _globals)
|
|
26
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
27
|
+
DESCRIPTOR._options = None
|
|
28
|
+
DESCRIPTOR._serialized_options = b'\n\032yandex.cloud.api.search.v2ZGgithub.com/yandex-cloud/go-genproto/yandex/cloud/searchapi/v2;searchapi'
|
|
29
|
+
_GROUPSPEC.fields_by_name['groups_on_page']._options = None
|
|
30
|
+
_GROUPSPEC.fields_by_name['groups_on_page']._serialized_options = b'\372\3071\0051-100'
|
|
31
|
+
_GROUPSPEC.fields_by_name['docs_in_group']._options = None
|
|
32
|
+
_GROUPSPEC.fields_by_name['docs_in_group']._serialized_options = b'\372\3071\0031-3'
|
|
33
|
+
_WEBSEARCHREQUEST.fields_by_name['query']._options = None
|
|
34
|
+
_WEBSEARCHREQUEST.fields_by_name['query']._serialized_options = b'\350\3071\001'
|
|
35
|
+
_WEBSEARCHREQUEST.fields_by_name['max_passages']._options = None
|
|
36
|
+
_WEBSEARCHREQUEST.fields_by_name['max_passages']._serialized_options = b'\372\3071\0031-5'
|
|
37
|
+
_WEBSEARCHREQUEST.fields_by_name['folder_id']._options = None
|
|
38
|
+
_WEBSEARCHREQUEST.fields_by_name['folder_id']._serialized_options = b'\212\3101\004<=50'
|
|
39
|
+
_WEBSEARCHRESPONSE.fields_by_name['raw_data']._options = None
|
|
40
|
+
_WEBSEARCHRESPONSE.fields_by_name['raw_data']._serialized_options = b'\350\3071\001'
|
|
41
|
+
_WEBSEARCHASYNCSERVICE.methods_by_name['Search']._options = None
|
|
42
|
+
_WEBSEARCHASYNCSERVICE.methods_by_name['Search']._serialized_options = b'\262\322*\023\022\021WebSearchResponse\202\323\344\223\002\030\"\023/v2/web/searchAsync:\001*'
|
|
43
|
+
_globals['_SORTSPEC']._serialized_start=259
|
|
44
|
+
_globals['_SORTSPEC']._serialized_end=573
|
|
45
|
+
_globals['_SORTSPEC_SORTORDER']._serialized_start=403
|
|
46
|
+
_globals['_SORTSPEC_SORTORDER']._serialized_end=483
|
|
47
|
+
_globals['_SORTSPEC_SORTMODE']._serialized_start=485
|
|
48
|
+
_globals['_SORTSPEC_SORTMODE']._serialized_end=573
|
|
49
|
+
_globals['_GROUPSPEC']._serialized_start=576
|
|
50
|
+
_globals['_GROUPSPEC']._serialized_end=805
|
|
51
|
+
_globals['_GROUPSPEC_GROUPMODE']._serialized_start=724
|
|
52
|
+
_globals['_GROUPSPEC_GROUPMODE']._serialized_end=805
|
|
53
|
+
_globals['_WEBSEARCHREQUEST']._serialized_start=808
|
|
54
|
+
_globals['_WEBSEARCHREQUEST']._serialized_end=1322
|
|
55
|
+
_globals['_WEBSEARCHREQUEST_LOCALIZATION']._serialized_start=1152
|
|
56
|
+
_globals['_WEBSEARCHREQUEST_LOCALIZATION']._serialized_end=1322
|
|
57
|
+
_globals['_WEBSEARCHRESPONSE']._serialized_start=1324
|
|
58
|
+
_globals['_WEBSEARCHRESPONSE']._serialized_end=1367
|
|
59
|
+
_globals['_WEBSEARCHASYNCSERVICE']._serialized_start=1370
|
|
60
|
+
_globals['_WEBSEARCHASYNCSERVICE']._serialized_end=1539
|
|
61
|
+
# @@protoc_insertion_point(module_scope)
|