yandexcloud 0.294.0__py3-none-any.whl → 0.296.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/image_generation/image_generation_pb2.py +5 -3
- yandex/cloud/ai/foundation_models/v1/image_generation/image_generation_pb2.pyi +28 -1
- yandex/cloud/backup/v1/resource_pb2.py +16 -14
- yandex/cloud/backup/v1/resource_pb2.pyi +38 -1
- yandex/cloud/billing/v1/customer_service_pb2.pyi +1 -1
- yandex/cloud/billing/v1/sku_service_pb2.pyi +1 -0
- yandex/cloud/compute/v1/instance_pb2.pyi +1 -3
- yandex/cloud/compute/v1/instance_service_pb2.py +26 -26
- yandex/cloud/compute/v1/instance_service_pb2.pyi +5 -1
- yandex/cloud/datasphere/v2/jobs/jobs_pb2.py +40 -32
- yandex/cloud/datasphere/v2/jobs/jobs_pb2.pyi +78 -1
- yandex/cloud/datasphere/v2/jobs/project_job_service_pb2.py +56 -54
- yandex/cloud/datasphere/v2/jobs/project_job_service_pb2.pyi +21 -6
- yandex/cloud/datasphere/v2/project_service_pb2.py +34 -30
- yandex/cloud/datasphere/v2/project_service_pb2.pyi +13 -3
- yandex/cloud/iam/v1/api_key_service_pb2.py +13 -3
- yandex/cloud/iam/v1/api_key_service_pb2.pyi +53 -0
- yandex/cloud/iam/v1/api_key_service_pb2_grpc.py +34 -0
- yandex/cloud/iam/v1/api_key_service_pb2_grpc.pyi +20 -0
- yandex/cloud/iot/devices/v1/registry_pb2.py +13 -13
- yandex/cloud/iot/devices/v1/registry_pb2.pyi +4 -0
- yandex/cloud/iot/devices/v1/registry_service_pb2.py +23 -3
- yandex/cloud/iot/devices/v1/registry_service_pb2.pyi +64 -0
- yandex/cloud/iot/devices/v1/registry_service_pb2_grpc.py +68 -0
- yandex/cloud/iot/devices/v1/registry_service_pb2_grpc.pyi +40 -0
- yandex/cloud/mdb/greenplum/v1/pxf_pb2.pyi +226 -52
- yandex/cloud/mdb/kafka/v1/cluster_pb2.py +42 -35
- yandex/cloud/mdb/kafka/v1/cluster_pb2.pyi +32 -2
- yandex/cloud/mdb/mongodb/v1/cluster_service_pb2.pyi +13 -7
- yandex/cloud/mdb/postgresql/v1/user_pb2.pyi +33 -16
- yandex/cloud/organizationmanager/v1/os_login_service_pb2.py +20 -20
- yandex/cloud/organizationmanager/v1/os_login_service_pb2.pyi +2 -2
- yandex/cloud/serverless/functions/v1/function_pb2.py +30 -28
- yandex/cloud/serverless/functions/v1/function_pb2.pyi +5 -1
- yandex/cloud/serverless/functions/v1/function_service_pb2.py +38 -36
- yandex/cloud/serverless/functions/v1/function_service_pb2.pyi +5 -1
- yandex/cloud/smartcaptcha/__init__.py +0 -0
- yandex/cloud/smartcaptcha/v1/__init__.py +0 -0
- yandex/cloud/smartcaptcha/v1/captcha_pb2.py +100 -0
- yandex/cloud/smartcaptcha/v1/captcha_pb2.pyi +500 -0
- yandex/cloud/smartcaptcha/v1/captcha_pb2_grpc.py +4 -0
- yandex/cloud/smartcaptcha/v1/captcha_pb2_grpc.pyi +17 -0
- yandex/cloud/smartcaptcha/v1/captcha_service_pb2.py +76 -0
- yandex/cloud/smartcaptcha/v1/captcha_service_pb2.pyi +268 -0
- yandex/cloud/smartcaptcha/v1/captcha_service_pb2_grpc.py +242 -0
- yandex/cloud/smartcaptcha/v1/captcha_service_pb2_grpc.pyi +152 -0
- yandex/cloud/smartwebsecurity/__init__.py +0 -0
- yandex/cloud/smartwebsecurity/v1/__init__.py +0 -0
- yandex/cloud/smartwebsecurity/v1/security_profile_pb2.py +110 -0
- yandex/cloud/smartwebsecurity/v1/security_profile_pb2.pyi +520 -0
- yandex/cloud/smartwebsecurity/v1/security_profile_pb2_grpc.py +4 -0
- yandex/cloud/smartwebsecurity/v1/security_profile_pb2_grpc.pyi +17 -0
- yandex/cloud/smartwebsecurity/v1/security_profile_service_pb2.py +78 -0
- yandex/cloud/smartwebsecurity/v1/security_profile_service_pb2.pyi +260 -0
- yandex/cloud/smartwebsecurity/v1/security_profile_service_pb2_grpc.py +208 -0
- yandex/cloud/smartwebsecurity/v1/security_profile_service_pb2_grpc.pyi +132 -0
- yandex/cloud/speechsense/v1/analysis/__init__.py +0 -0
- yandex/cloud/speechsense/v1/analysis/conversation_statistics_pb2.py +28 -0
- yandex/cloud/speechsense/v1/analysis/conversation_statistics_pb2.pyi +40 -0
- yandex/cloud/speechsense/v1/analysis/conversation_statistics_pb2_grpc.py +4 -0
- yandex/cloud/speechsense/v1/analysis/conversation_statistics_pb2_grpc.pyi +17 -0
- yandex/cloud/speechsense/v1/analysis/interrupts_statistics_pb2.py +29 -0
- yandex/cloud/speechsense/v1/analysis/interrupts_statistics_pb2.pyi +66 -0
- yandex/cloud/speechsense/v1/analysis/interrupts_statistics_pb2_grpc.py +4 -0
- yandex/cloud/speechsense/v1/analysis/interrupts_statistics_pb2_grpc.pyi +17 -0
- yandex/cloud/speechsense/v1/analysis/points_pb2.py +29 -0
- yandex/cloud/speechsense/v1/analysis/points_pb2.pyi +53 -0
- yandex/cloud/speechsense/v1/analysis/points_pb2_grpc.py +4 -0
- yandex/cloud/speechsense/v1/analysis/points_pb2_grpc.pyi +17 -0
- yandex/cloud/speechsense/v1/analysis/predefined_classifiers_pb2.py +30 -0
- yandex/cloud/speechsense/v1/analysis/predefined_classifiers_pb2.pyi +93 -0
- yandex/cloud/speechsense/v1/analysis/predefined_classifiers_pb2_grpc.py +4 -0
- yandex/cloud/speechsense/v1/analysis/predefined_classifiers_pb2_grpc.pyi +17 -0
- yandex/cloud/speechsense/v1/analysis/silence_statistics_pb2.py +27 -0
- yandex/cloud/speechsense/v1/analysis/silence_statistics_pb2.pyi +41 -0
- yandex/cloud/speechsense/v1/analysis/silence_statistics_pb2_grpc.py +4 -0
- yandex/cloud/speechsense/v1/analysis/silence_statistics_pb2_grpc.pyi +17 -0
- yandex/cloud/speechsense/v1/analysis/speaker_statistics_pb2.py +28 -0
- yandex/cloud/speechsense/v1/analysis/speaker_statistics_pb2.pyi +58 -0
- yandex/cloud/speechsense/v1/analysis/speaker_statistics_pb2_grpc.py +4 -0
- yandex/cloud/speechsense/v1/analysis/speaker_statistics_pb2_grpc.pyi +17 -0
- yandex/cloud/speechsense/v1/analysis/speech_statistics_pb2.py +27 -0
- yandex/cloud/speechsense/v1/analysis/speech_statistics_pb2.pyi +43 -0
- yandex/cloud/speechsense/v1/analysis/speech_statistics_pb2_grpc.py +4 -0
- yandex/cloud/speechsense/v1/analysis/speech_statistics_pb2_grpc.pyi +17 -0
- yandex/cloud/speechsense/v1/analysis/statistics_common_pb2.py +30 -0
- yandex/cloud/speechsense/v1/analysis/statistics_common_pb2.pyi +91 -0
- yandex/cloud/speechsense/v1/analysis/statistics_common_pb2_grpc.py +4 -0
- yandex/cloud/speechsense/v1/analysis/statistics_common_pb2_grpc.pyi +17 -0
- yandex/cloud/speechsense/v1/analysis/text_classifiers_pb2.py +33 -0
- yandex/cloud/speechsense/v1/analysis/text_classifiers_pb2.pyi +102 -0
- yandex/cloud/speechsense/v1/analysis/text_classifiers_pb2_grpc.py +4 -0
- yandex/cloud/speechsense/v1/analysis/text_classifiers_pb2_grpc.pyi +17 -0
- yandex/cloud/speechsense/v1/analysis/transcription_pb2.py +41 -0
- yandex/cloud/speechsense/v1/analysis/transcription_pb2.pyi +186 -0
- yandex/cloud/speechsense/v1/analysis/transcription_pb2_grpc.py +4 -0
- yandex/cloud/speechsense/v1/analysis/transcription_pb2_grpc.pyi +17 -0
- yandex/cloud/speechsense/v1/analysis/utterance_statistics_pb2.py +27 -0
- yandex/cloud/speechsense/v1/analysis/utterance_statistics_pb2.pyi +70 -0
- yandex/cloud/speechsense/v1/analysis/utterance_statistics_pb2_grpc.py +4 -0
- yandex/cloud/speechsense/v1/analysis/utterance_statistics_pb2_grpc.pyi +17 -0
- yandex/cloud/speechsense/v1/search_pb2.py +51 -0
- yandex/cloud/speechsense/v1/search_pb2.pyi +324 -0
- yandex/cloud/speechsense/v1/search_pb2_grpc.py +4 -0
- yandex/cloud/speechsense/v1/search_pb2_grpc.pyi +17 -0
- yandex/cloud/speechsense/v1/talk_pb2.py +38 -0
- yandex/cloud/speechsense/v1/talk_pb2.pyi +161 -0
- yandex/cloud/speechsense/v1/talk_pb2_grpc.py +4 -0
- yandex/cloud/speechsense/v1/talk_pb2_grpc.pyi +17 -0
- yandex/cloud/speechsense/v1/talk_service_pb2.py +34 -18
- yandex/cloud/speechsense/v1/talk_service_pb2.pyi +143 -0
- yandex/cloud/speechsense/v1/talk_service_pb2_grpc.py +68 -0
- yandex/cloud/speechsense/v1/talk_service_pb2_grpc.pyi +40 -0
- {yandexcloud-0.294.0.dist-info → yandexcloud-0.296.0.dist-info}/METADATA +8 -8
- {yandexcloud-0.294.0.dist-info → yandexcloud-0.296.0.dist-info}/RECORD +119 -46
- {yandexcloud-0.294.0.dist-info → yandexcloud-0.296.0.dist-info}/AUTHORS +0 -0
- {yandexcloud-0.294.0.dist-info → yandexcloud-0.296.0.dist-info}/LICENSE +0 -0
- {yandexcloud-0.294.0.dist-info → yandexcloud-0.296.0.dist-info}/WHEEL +0 -0
- {yandexcloud-0.294.0.dist-info → yandexcloud-0.296.0.dist-info}/top_level.txt +0 -0
|
@@ -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,76 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: yandex/cloud/smartcaptcha/v1/captcha_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 google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
|
|
15
|
+
from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2
|
|
16
|
+
from yandex.cloud.api import operation_pb2 as yandex_dot_cloud_dot_api_dot_operation__pb2
|
|
17
|
+
from yandex.cloud import validation_pb2 as yandex_dot_cloud_dot_validation__pb2
|
|
18
|
+
from yandex.cloud.operation import operation_pb2 as yandex_dot_cloud_dot_operation_dot_operation__pb2
|
|
19
|
+
from yandex.cloud.smartcaptcha.v1 import captcha_pb2 as yandex_dot_cloud_dot_smartcaptcha_dot_v1_dot_captcha__pb2
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n2yandex/cloud/smartcaptcha/v1/captcha_service.proto\x12\x1cyandex.cloud.smartcaptcha.v1\x1a\x1cgoogle/api/annotations.proto\x1a google/protobuf/field_mask.proto\x1a yandex/cloud/api/operation.proto\x1a\x1dyandex/cloud/validation.proto\x1a&yandex/cloud/operation/operation.proto\x1a*yandex/cloud/smartcaptcha/v1/captcha.proto\"5\n\x11GetCaptchaRequest\x12 \n\ncaptcha_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\"6\n\x13ListCaptchasRequest\x12\x1f\n\tfolder_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\"\\\n\x14ListCaptchasResponse\x12\x38\n\tresources\x18\x03 \x03(\x0b\x32%.yandex.cloud.smartcaptcha.v1.CaptchaJ\x04\x08\x01\x10\x02J\x04\x08\x02\x10\x03\"\xca\x04\n\x14\x43reateCaptchaRequest\x12\x1f\n\tfolder_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\x12\x32\n\x04name\x18\x02 \x01(\tB$\xf2\xc7\x31 |[a-z]([-a-z0-9]{0,61}[a-z0-9])?\x12\x15\n\rallowed_sites\x18\x03 \x03(\t\x12\x43\n\ncomplexity\x18\x04 \x01(\x0e\x32/.yandex.cloud.smartcaptcha.v1.CaptchaComplexity\x12\x12\n\nstyle_json\x18\x05 \x01(\t\x12\x1f\n\x17turn_off_hostname_check\x18\x06 \x01(\x08\x12I\n\x0epre_check_type\x18\x08 \x01(\x0e\x32\x31.yandex.cloud.smartcaptcha.v1.CaptchaPreCheckType\x12J\n\x0e\x63hallenge_type\x18\t \x01(\x0e\x32\x32.yandex.cloud.smartcaptcha.v1.CaptchaChallengeType\x12\x42\n\x0esecurity_rules\x18\x0b \x03(\x0b\x32*.yandex.cloud.smartcaptcha.v1.SecurityRule\x12\x1b\n\x13\x64\x65letion_protection\x18\x0c \x01(\x08\x12H\n\x11override_variants\x18\r \x03(\x0b\x32-.yandex.cloud.smartcaptcha.v1.OverrideVariantJ\x04\x08\x07\x10\x08J\x04\x08\n\x10\x0b\"+\n\x15\x43reateCaptchaMetadata\x12\x12\n\ncaptcha_id\x18\x01 \x01(\t\"8\n\x14\x44\x65leteCaptchaRequest\x12 \n\ncaptcha_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\"+\n\x15\x44\x65leteCaptchaMetadata\x12\x12\n\ncaptcha_id\x18\x01 \x01(\t\"\xfc\x04\n\x14UpdateCaptchaRequest\x12 \n\ncaptcha_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x32\n\x04name\x18\x03 \x01(\tB$\xf2\xc7\x31 |[a-z]([-a-z0-9]{0,61}[a-z0-9])?\x12\x15\n\rallowed_sites\x18\x04 \x03(\t\x12\x43\n\ncomplexity\x18\x05 \x01(\x0e\x32/.yandex.cloud.smartcaptcha.v1.CaptchaComplexity\x12\x12\n\nstyle_json\x18\x06 \x01(\t\x12\x1f\n\x17turn_off_hostname_check\x18\x07 \x01(\x08\x12I\n\x0epre_check_type\x18\t \x01(\x0e\x32\x31.yandex.cloud.smartcaptcha.v1.CaptchaPreCheckType\x12J\n\x0e\x63hallenge_type\x18\n \x01(\x0e\x32\x32.yandex.cloud.smartcaptcha.v1.CaptchaChallengeType\x12\x42\n\x0esecurity_rules\x18\x0c \x03(\x0b\x32*.yandex.cloud.smartcaptcha.v1.SecurityRule\x12\x1b\n\x13\x64\x65letion_protection\x18\r \x01(\x08\x12H\n\x11override_variants\x18\x0e \x03(\x0b\x32-.yandex.cloud.smartcaptcha.v1.OverrideVariantJ\x04\x08\x08\x10\tJ\x04\x08\x0b\x10\x0c\"+\n\x15UpdateCaptchaMetadata\x12\x12\n\ncaptcha_id\x18\x01 \x01(\t2\x8b\x08\n\x0e\x43\x61ptchaService\x12\x8d\x01\n\x03Get\x12/.yandex.cloud.smartcaptcha.v1.GetCaptchaRequest\x1a%.yandex.cloud.smartcaptcha.v1.Captcha\".\x82\xd3\xe4\x93\x02(\x12&/smartcaptcha/v1/captchas/{captcha_id}\x12\xac\x01\n\x0cGetSecretKey\x12/.yandex.cloud.smartcaptcha.v1.GetCaptchaRequest\x1a..yandex.cloud.smartcaptcha.v1.CaptchaSecretKey\";\x82\xd3\xe4\x93\x02\x35\x12\x33/smartcaptcha/v1/captchas/{captcha_id}:getSecretKey\x12\x90\x01\n\x04List\x12\x31.yandex.cloud.smartcaptcha.v1.ListCaptchasRequest\x1a\x32.yandex.cloud.smartcaptcha.v1.ListCaptchasResponse\"!\x82\xd3\xe4\x93\x02\x1b\x12\x19/smartcaptcha/v1/captchas\x12\xa9\x01\n\x06\x43reate\x12\x32.yandex.cloud.smartcaptcha.v1.CreateCaptchaRequest\x1a!.yandex.cloud.operation.Operation\"H\xb2\xd2* \n\x15\x43reateCaptchaMetadata\x12\x07\x43\x61ptcha\x82\xd3\xe4\x93\x02\x1e\"\x19/smartcaptcha/v1/captchas:\x01*\x12\xb6\x01\n\x06Update\x12\x32.yandex.cloud.smartcaptcha.v1.UpdateCaptchaRequest\x1a!.yandex.cloud.operation.Operation\"U\xb2\xd2* \n\x15UpdateCaptchaMetadata\x12\x07\x43\x61ptcha\x82\xd3\xe4\x93\x02+2&/smartcaptcha/v1/captchas/{captcha_id}:\x01*\x12\xc1\x01\n\x06\x44\x65lete\x12\x32.yandex.cloud.smartcaptcha.v1.DeleteCaptchaRequest\x1a!.yandex.cloud.operation.Operation\"`\xb2\xd2*.\n\x15\x44\x65leteCaptchaMetadata\x12\x15google.protobuf.Empty\x82\xd3\xe4\x93\x02(*&/smartcaptcha/v1/captchas/{captcha_id}Bq\n yandex.cloud.api.smartcaptcha.v1ZMgithub.com/yandex-cloud/go-genproto/yandex/cloud/smartcaptcha/v1;smartcaptchab\x06proto3')
|
|
23
|
+
|
|
24
|
+
_globals = globals()
|
|
25
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
26
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'yandex.cloud.smartcaptcha.v1.captcha_service_pb2', _globals)
|
|
27
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
28
|
+
DESCRIPTOR._options = None
|
|
29
|
+
DESCRIPTOR._serialized_options = b'\n yandex.cloud.api.smartcaptcha.v1ZMgithub.com/yandex-cloud/go-genproto/yandex/cloud/smartcaptcha/v1;smartcaptcha'
|
|
30
|
+
_GETCAPTCHAREQUEST.fields_by_name['captcha_id']._options = None
|
|
31
|
+
_GETCAPTCHAREQUEST.fields_by_name['captcha_id']._serialized_options = b'\350\3071\001\212\3101\004<=50'
|
|
32
|
+
_LISTCAPTCHASREQUEST.fields_by_name['folder_id']._options = None
|
|
33
|
+
_LISTCAPTCHASREQUEST.fields_by_name['folder_id']._serialized_options = b'\350\3071\001\212\3101\004<=50'
|
|
34
|
+
_CREATECAPTCHAREQUEST.fields_by_name['folder_id']._options = None
|
|
35
|
+
_CREATECAPTCHAREQUEST.fields_by_name['folder_id']._serialized_options = b'\350\3071\001\212\3101\004<=50'
|
|
36
|
+
_CREATECAPTCHAREQUEST.fields_by_name['name']._options = None
|
|
37
|
+
_CREATECAPTCHAREQUEST.fields_by_name['name']._serialized_options = b'\362\3071 |[a-z]([-a-z0-9]{0,61}[a-z0-9])?'
|
|
38
|
+
_DELETECAPTCHAREQUEST.fields_by_name['captcha_id']._options = None
|
|
39
|
+
_DELETECAPTCHAREQUEST.fields_by_name['captcha_id']._serialized_options = b'\350\3071\001\212\3101\004<=50'
|
|
40
|
+
_UPDATECAPTCHAREQUEST.fields_by_name['captcha_id']._options = None
|
|
41
|
+
_UPDATECAPTCHAREQUEST.fields_by_name['captcha_id']._serialized_options = b'\350\3071\001\212\3101\004<=50'
|
|
42
|
+
_UPDATECAPTCHAREQUEST.fields_by_name['name']._options = None
|
|
43
|
+
_UPDATECAPTCHAREQUEST.fields_by_name['name']._serialized_options = b'\362\3071 |[a-z]([-a-z0-9]{0,61}[a-z0-9])?'
|
|
44
|
+
_CAPTCHASERVICE.methods_by_name['Get']._options = None
|
|
45
|
+
_CAPTCHASERVICE.methods_by_name['Get']._serialized_options = b'\202\323\344\223\002(\022&/smartcaptcha/v1/captchas/{captcha_id}'
|
|
46
|
+
_CAPTCHASERVICE.methods_by_name['GetSecretKey']._options = None
|
|
47
|
+
_CAPTCHASERVICE.methods_by_name['GetSecretKey']._serialized_options = b'\202\323\344\223\0025\0223/smartcaptcha/v1/captchas/{captcha_id}:getSecretKey'
|
|
48
|
+
_CAPTCHASERVICE.methods_by_name['List']._options = None
|
|
49
|
+
_CAPTCHASERVICE.methods_by_name['List']._serialized_options = b'\202\323\344\223\002\033\022\031/smartcaptcha/v1/captchas'
|
|
50
|
+
_CAPTCHASERVICE.methods_by_name['Create']._options = None
|
|
51
|
+
_CAPTCHASERVICE.methods_by_name['Create']._serialized_options = b'\262\322* \n\025CreateCaptchaMetadata\022\007Captcha\202\323\344\223\002\036\"\031/smartcaptcha/v1/captchas:\001*'
|
|
52
|
+
_CAPTCHASERVICE.methods_by_name['Update']._options = None
|
|
53
|
+
_CAPTCHASERVICE.methods_by_name['Update']._serialized_options = b'\262\322* \n\025UpdateCaptchaMetadata\022\007Captcha\202\323\344\223\002+2&/smartcaptcha/v1/captchas/{captcha_id}:\001*'
|
|
54
|
+
_CAPTCHASERVICE.methods_by_name['Delete']._options = None
|
|
55
|
+
_CAPTCHASERVICE.methods_by_name['Delete']._serialized_options = b'\262\322*.\n\025DeleteCaptchaMetadata\022\025google.protobuf.Empty\202\323\344\223\002(*&/smartcaptcha/v1/captchas/{captcha_id}'
|
|
56
|
+
_globals['_GETCAPTCHAREQUEST']._serialized_start=297
|
|
57
|
+
_globals['_GETCAPTCHAREQUEST']._serialized_end=350
|
|
58
|
+
_globals['_LISTCAPTCHASREQUEST']._serialized_start=352
|
|
59
|
+
_globals['_LISTCAPTCHASREQUEST']._serialized_end=406
|
|
60
|
+
_globals['_LISTCAPTCHASRESPONSE']._serialized_start=408
|
|
61
|
+
_globals['_LISTCAPTCHASRESPONSE']._serialized_end=500
|
|
62
|
+
_globals['_CREATECAPTCHAREQUEST']._serialized_start=503
|
|
63
|
+
_globals['_CREATECAPTCHAREQUEST']._serialized_end=1089
|
|
64
|
+
_globals['_CREATECAPTCHAMETADATA']._serialized_start=1091
|
|
65
|
+
_globals['_CREATECAPTCHAMETADATA']._serialized_end=1134
|
|
66
|
+
_globals['_DELETECAPTCHAREQUEST']._serialized_start=1136
|
|
67
|
+
_globals['_DELETECAPTCHAREQUEST']._serialized_end=1192
|
|
68
|
+
_globals['_DELETECAPTCHAMETADATA']._serialized_start=1194
|
|
69
|
+
_globals['_DELETECAPTCHAMETADATA']._serialized_end=1237
|
|
70
|
+
_globals['_UPDATECAPTCHAREQUEST']._serialized_start=1240
|
|
71
|
+
_globals['_UPDATECAPTCHAREQUEST']._serialized_end=1876
|
|
72
|
+
_globals['_UPDATECAPTCHAMETADATA']._serialized_start=1878
|
|
73
|
+
_globals['_UPDATECAPTCHAMETADATA']._serialized_end=1921
|
|
74
|
+
_globals['_CAPTCHASERVICE']._serialized_start=1924
|
|
75
|
+
_globals['_CAPTCHASERVICE']._serialized_end=2959
|
|
76
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,268 @@
|
|
|
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.field_mask_pb2
|
|
10
|
+
import google.protobuf.internal.containers
|
|
11
|
+
import google.protobuf.message
|
|
12
|
+
import typing
|
|
13
|
+
import yandex.cloud.smartcaptcha.v1.captcha_pb2
|
|
14
|
+
|
|
15
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
16
|
+
|
|
17
|
+
@typing.final
|
|
18
|
+
class GetCaptchaRequest(google.protobuf.message.Message):
|
|
19
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
20
|
+
|
|
21
|
+
CAPTCHA_ID_FIELD_NUMBER: builtins.int
|
|
22
|
+
captcha_id: builtins.str
|
|
23
|
+
"""ID of the Captcha resource to return."""
|
|
24
|
+
def __init__(
|
|
25
|
+
self,
|
|
26
|
+
*,
|
|
27
|
+
captcha_id: builtins.str = ...,
|
|
28
|
+
) -> None: ...
|
|
29
|
+
def ClearField(self, field_name: typing.Literal["captcha_id", b"captcha_id"]) -> None: ...
|
|
30
|
+
|
|
31
|
+
global___GetCaptchaRequest = GetCaptchaRequest
|
|
32
|
+
|
|
33
|
+
@typing.final
|
|
34
|
+
class ListCaptchasRequest(google.protobuf.message.Message):
|
|
35
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
36
|
+
|
|
37
|
+
FOLDER_ID_FIELD_NUMBER: builtins.int
|
|
38
|
+
folder_id: builtins.str
|
|
39
|
+
"""ID of the folder that the captcha belongs to.
|
|
40
|
+
Currently page_size, page_token, filter and order_by are not supported and List method will return all captchas in the folder.
|
|
41
|
+
"""
|
|
42
|
+
def __init__(
|
|
43
|
+
self,
|
|
44
|
+
*,
|
|
45
|
+
folder_id: builtins.str = ...,
|
|
46
|
+
) -> None: ...
|
|
47
|
+
def ClearField(self, field_name: typing.Literal["folder_id", b"folder_id"]) -> None: ...
|
|
48
|
+
|
|
49
|
+
global___ListCaptchasRequest = ListCaptchasRequest
|
|
50
|
+
|
|
51
|
+
@typing.final
|
|
52
|
+
class ListCaptchasResponse(google.protobuf.message.Message):
|
|
53
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
54
|
+
|
|
55
|
+
RESOURCES_FIELD_NUMBER: builtins.int
|
|
56
|
+
@property
|
|
57
|
+
def resources(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[yandex.cloud.smartcaptcha.v1.captcha_pb2.Captcha]:
|
|
58
|
+
"""List of Captcha resources.
|
|
59
|
+
Currently next_page_token is not supported and List method will return all captchas in the folder.
|
|
60
|
+
"""
|
|
61
|
+
|
|
62
|
+
def __init__(
|
|
63
|
+
self,
|
|
64
|
+
*,
|
|
65
|
+
resources: collections.abc.Iterable[yandex.cloud.smartcaptcha.v1.captcha_pb2.Captcha] | None = ...,
|
|
66
|
+
) -> None: ...
|
|
67
|
+
def ClearField(self, field_name: typing.Literal["resources", b"resources"]) -> None: ...
|
|
68
|
+
|
|
69
|
+
global___ListCaptchasResponse = ListCaptchasResponse
|
|
70
|
+
|
|
71
|
+
@typing.final
|
|
72
|
+
class CreateCaptchaRequest(google.protobuf.message.Message):
|
|
73
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
74
|
+
|
|
75
|
+
FOLDER_ID_FIELD_NUMBER: builtins.int
|
|
76
|
+
NAME_FIELD_NUMBER: builtins.int
|
|
77
|
+
ALLOWED_SITES_FIELD_NUMBER: builtins.int
|
|
78
|
+
COMPLEXITY_FIELD_NUMBER: builtins.int
|
|
79
|
+
STYLE_JSON_FIELD_NUMBER: builtins.int
|
|
80
|
+
TURN_OFF_HOSTNAME_CHECK_FIELD_NUMBER: builtins.int
|
|
81
|
+
PRE_CHECK_TYPE_FIELD_NUMBER: builtins.int
|
|
82
|
+
CHALLENGE_TYPE_FIELD_NUMBER: builtins.int
|
|
83
|
+
SECURITY_RULES_FIELD_NUMBER: builtins.int
|
|
84
|
+
DELETION_PROTECTION_FIELD_NUMBER: builtins.int
|
|
85
|
+
OVERRIDE_VARIANTS_FIELD_NUMBER: builtins.int
|
|
86
|
+
folder_id: builtins.str
|
|
87
|
+
"""ID of the folder to create a captcha in."""
|
|
88
|
+
name: builtins.str
|
|
89
|
+
"""Name of the captcha.
|
|
90
|
+
The name must be unique within the folder.
|
|
91
|
+
"""
|
|
92
|
+
complexity: yandex.cloud.smartcaptcha.v1.captcha_pb2.CaptchaComplexity.ValueType
|
|
93
|
+
"""Complexity of the captcha."""
|
|
94
|
+
style_json: builtins.str
|
|
95
|
+
"""JSON with variables to define the captcha appearance. For more details see generated JSON in cloud console."""
|
|
96
|
+
turn_off_hostname_check: builtins.bool
|
|
97
|
+
"""Turn off host name check, see [Domain validation](/docs/smartcaptcha/concepts/domain-validation)."""
|
|
98
|
+
pre_check_type: yandex.cloud.smartcaptcha.v1.captcha_pb2.CaptchaPreCheckType.ValueType
|
|
99
|
+
"""Basic check type of the captcha."""
|
|
100
|
+
challenge_type: yandex.cloud.smartcaptcha.v1.captcha_pb2.CaptchaChallengeType.ValueType
|
|
101
|
+
"""Additional task type of the captcha."""
|
|
102
|
+
deletion_protection: builtins.bool
|
|
103
|
+
"""Determines whether captcha is protected from being deleted."""
|
|
104
|
+
@property
|
|
105
|
+
def allowed_sites(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
|
|
106
|
+
"""List of allowed host names, see [Domain validation](/docs/smartcaptcha/concepts/domain-validation)."""
|
|
107
|
+
|
|
108
|
+
@property
|
|
109
|
+
def security_rules(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[yandex.cloud.smartcaptcha.v1.captcha_pb2.SecurityRule]:
|
|
110
|
+
"""List of security rules."""
|
|
111
|
+
|
|
112
|
+
@property
|
|
113
|
+
def override_variants(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[yandex.cloud.smartcaptcha.v1.captcha_pb2.OverrideVariant]:
|
|
114
|
+
"""List of variants to use in security_rules"""
|
|
115
|
+
|
|
116
|
+
def __init__(
|
|
117
|
+
self,
|
|
118
|
+
*,
|
|
119
|
+
folder_id: builtins.str = ...,
|
|
120
|
+
name: builtins.str = ...,
|
|
121
|
+
allowed_sites: collections.abc.Iterable[builtins.str] | None = ...,
|
|
122
|
+
complexity: yandex.cloud.smartcaptcha.v1.captcha_pb2.CaptchaComplexity.ValueType = ...,
|
|
123
|
+
style_json: builtins.str = ...,
|
|
124
|
+
turn_off_hostname_check: builtins.bool = ...,
|
|
125
|
+
pre_check_type: yandex.cloud.smartcaptcha.v1.captcha_pb2.CaptchaPreCheckType.ValueType = ...,
|
|
126
|
+
challenge_type: yandex.cloud.smartcaptcha.v1.captcha_pb2.CaptchaChallengeType.ValueType = ...,
|
|
127
|
+
security_rules: collections.abc.Iterable[yandex.cloud.smartcaptcha.v1.captcha_pb2.SecurityRule] | None = ...,
|
|
128
|
+
deletion_protection: builtins.bool = ...,
|
|
129
|
+
override_variants: collections.abc.Iterable[yandex.cloud.smartcaptcha.v1.captcha_pb2.OverrideVariant] | None = ...,
|
|
130
|
+
) -> None: ...
|
|
131
|
+
def ClearField(self, field_name: typing.Literal["allowed_sites", b"allowed_sites", "challenge_type", b"challenge_type", "complexity", b"complexity", "deletion_protection", b"deletion_protection", "folder_id", b"folder_id", "name", b"name", "override_variants", b"override_variants", "pre_check_type", b"pre_check_type", "security_rules", b"security_rules", "style_json", b"style_json", "turn_off_hostname_check", b"turn_off_hostname_check"]) -> None: ...
|
|
132
|
+
|
|
133
|
+
global___CreateCaptchaRequest = CreateCaptchaRequest
|
|
134
|
+
|
|
135
|
+
@typing.final
|
|
136
|
+
class CreateCaptchaMetadata(google.protobuf.message.Message):
|
|
137
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
138
|
+
|
|
139
|
+
CAPTCHA_ID_FIELD_NUMBER: builtins.int
|
|
140
|
+
captcha_id: builtins.str
|
|
141
|
+
"""ID of the captcha that is being created."""
|
|
142
|
+
def __init__(
|
|
143
|
+
self,
|
|
144
|
+
*,
|
|
145
|
+
captcha_id: builtins.str = ...,
|
|
146
|
+
) -> None: ...
|
|
147
|
+
def ClearField(self, field_name: typing.Literal["captcha_id", b"captcha_id"]) -> None: ...
|
|
148
|
+
|
|
149
|
+
global___CreateCaptchaMetadata = CreateCaptchaMetadata
|
|
150
|
+
|
|
151
|
+
@typing.final
|
|
152
|
+
class DeleteCaptchaRequest(google.protobuf.message.Message):
|
|
153
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
154
|
+
|
|
155
|
+
CAPTCHA_ID_FIELD_NUMBER: builtins.int
|
|
156
|
+
captcha_id: builtins.str
|
|
157
|
+
"""ID of the captcha to delete."""
|
|
158
|
+
def __init__(
|
|
159
|
+
self,
|
|
160
|
+
*,
|
|
161
|
+
captcha_id: builtins.str = ...,
|
|
162
|
+
) -> None: ...
|
|
163
|
+
def ClearField(self, field_name: typing.Literal["captcha_id", b"captcha_id"]) -> None: ...
|
|
164
|
+
|
|
165
|
+
global___DeleteCaptchaRequest = DeleteCaptchaRequest
|
|
166
|
+
|
|
167
|
+
@typing.final
|
|
168
|
+
class DeleteCaptchaMetadata(google.protobuf.message.Message):
|
|
169
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
170
|
+
|
|
171
|
+
CAPTCHA_ID_FIELD_NUMBER: builtins.int
|
|
172
|
+
captcha_id: builtins.str
|
|
173
|
+
"""ID of the Captcha resource that is being deleted."""
|
|
174
|
+
def __init__(
|
|
175
|
+
self,
|
|
176
|
+
*,
|
|
177
|
+
captcha_id: builtins.str = ...,
|
|
178
|
+
) -> None: ...
|
|
179
|
+
def ClearField(self, field_name: typing.Literal["captcha_id", b"captcha_id"]) -> None: ...
|
|
180
|
+
|
|
181
|
+
global___DeleteCaptchaMetadata = DeleteCaptchaMetadata
|
|
182
|
+
|
|
183
|
+
@typing.final
|
|
184
|
+
class UpdateCaptchaRequest(google.protobuf.message.Message):
|
|
185
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
186
|
+
|
|
187
|
+
CAPTCHA_ID_FIELD_NUMBER: builtins.int
|
|
188
|
+
UPDATE_MASK_FIELD_NUMBER: builtins.int
|
|
189
|
+
NAME_FIELD_NUMBER: builtins.int
|
|
190
|
+
ALLOWED_SITES_FIELD_NUMBER: builtins.int
|
|
191
|
+
COMPLEXITY_FIELD_NUMBER: builtins.int
|
|
192
|
+
STYLE_JSON_FIELD_NUMBER: builtins.int
|
|
193
|
+
TURN_OFF_HOSTNAME_CHECK_FIELD_NUMBER: builtins.int
|
|
194
|
+
PRE_CHECK_TYPE_FIELD_NUMBER: builtins.int
|
|
195
|
+
CHALLENGE_TYPE_FIELD_NUMBER: builtins.int
|
|
196
|
+
SECURITY_RULES_FIELD_NUMBER: builtins.int
|
|
197
|
+
DELETION_PROTECTION_FIELD_NUMBER: builtins.int
|
|
198
|
+
OVERRIDE_VARIANTS_FIELD_NUMBER: builtins.int
|
|
199
|
+
captcha_id: builtins.str
|
|
200
|
+
"""ID of the captcha to update."""
|
|
201
|
+
name: builtins.str
|
|
202
|
+
"""Name of the captcha.
|
|
203
|
+
The name must be unique within the folder.
|
|
204
|
+
"""
|
|
205
|
+
complexity: yandex.cloud.smartcaptcha.v1.captcha_pb2.CaptchaComplexity.ValueType
|
|
206
|
+
"""Complexity of the captcha."""
|
|
207
|
+
style_json: builtins.str
|
|
208
|
+
"""JSON with variables to define the captcha appearance. For more details see generated JSON in cloud console."""
|
|
209
|
+
turn_off_hostname_check: builtins.bool
|
|
210
|
+
"""Turn off host name check, see [Domain validation](/docs/smartcaptcha/concepts/domain-validation)."""
|
|
211
|
+
pre_check_type: yandex.cloud.smartcaptcha.v1.captcha_pb2.CaptchaPreCheckType.ValueType
|
|
212
|
+
"""Basic check type of the captcha."""
|
|
213
|
+
challenge_type: yandex.cloud.smartcaptcha.v1.captcha_pb2.CaptchaChallengeType.ValueType
|
|
214
|
+
"""Additional task type of the captcha."""
|
|
215
|
+
deletion_protection: builtins.bool
|
|
216
|
+
"""Determines whether captcha is protected from being deleted."""
|
|
217
|
+
@property
|
|
218
|
+
def update_mask(self) -> google.protobuf.field_mask_pb2.FieldMask:
|
|
219
|
+
"""Field mask that specifies which fields of the Captcha resource are going to be updated."""
|
|
220
|
+
|
|
221
|
+
@property
|
|
222
|
+
def allowed_sites(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
|
|
223
|
+
"""List of allowed host names, see [Domain validation](/docs/smartcaptcha/concepts/domain-validation)."""
|
|
224
|
+
|
|
225
|
+
@property
|
|
226
|
+
def security_rules(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[yandex.cloud.smartcaptcha.v1.captcha_pb2.SecurityRule]:
|
|
227
|
+
"""List of security rules."""
|
|
228
|
+
|
|
229
|
+
@property
|
|
230
|
+
def override_variants(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[yandex.cloud.smartcaptcha.v1.captcha_pb2.OverrideVariant]:
|
|
231
|
+
"""List of variants to use in security_rules"""
|
|
232
|
+
|
|
233
|
+
def __init__(
|
|
234
|
+
self,
|
|
235
|
+
*,
|
|
236
|
+
captcha_id: builtins.str = ...,
|
|
237
|
+
update_mask: google.protobuf.field_mask_pb2.FieldMask | None = ...,
|
|
238
|
+
name: builtins.str = ...,
|
|
239
|
+
allowed_sites: collections.abc.Iterable[builtins.str] | None = ...,
|
|
240
|
+
complexity: yandex.cloud.smartcaptcha.v1.captcha_pb2.CaptchaComplexity.ValueType = ...,
|
|
241
|
+
style_json: builtins.str = ...,
|
|
242
|
+
turn_off_hostname_check: builtins.bool = ...,
|
|
243
|
+
pre_check_type: yandex.cloud.smartcaptcha.v1.captcha_pb2.CaptchaPreCheckType.ValueType = ...,
|
|
244
|
+
challenge_type: yandex.cloud.smartcaptcha.v1.captcha_pb2.CaptchaChallengeType.ValueType = ...,
|
|
245
|
+
security_rules: collections.abc.Iterable[yandex.cloud.smartcaptcha.v1.captcha_pb2.SecurityRule] | None = ...,
|
|
246
|
+
deletion_protection: builtins.bool = ...,
|
|
247
|
+
override_variants: collections.abc.Iterable[yandex.cloud.smartcaptcha.v1.captcha_pb2.OverrideVariant] | None = ...,
|
|
248
|
+
) -> None: ...
|
|
249
|
+
def HasField(self, field_name: typing.Literal["update_mask", b"update_mask"]) -> builtins.bool: ...
|
|
250
|
+
def ClearField(self, field_name: typing.Literal["allowed_sites", b"allowed_sites", "captcha_id", b"captcha_id", "challenge_type", b"challenge_type", "complexity", b"complexity", "deletion_protection", b"deletion_protection", "name", b"name", "override_variants", b"override_variants", "pre_check_type", b"pre_check_type", "security_rules", b"security_rules", "style_json", b"style_json", "turn_off_hostname_check", b"turn_off_hostname_check", "update_mask", b"update_mask"]) -> None: ...
|
|
251
|
+
|
|
252
|
+
global___UpdateCaptchaRequest = UpdateCaptchaRequest
|
|
253
|
+
|
|
254
|
+
@typing.final
|
|
255
|
+
class UpdateCaptchaMetadata(google.protobuf.message.Message):
|
|
256
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
257
|
+
|
|
258
|
+
CAPTCHA_ID_FIELD_NUMBER: builtins.int
|
|
259
|
+
captcha_id: builtins.str
|
|
260
|
+
"""ID of the Captcha resource that is being updated."""
|
|
261
|
+
def __init__(
|
|
262
|
+
self,
|
|
263
|
+
*,
|
|
264
|
+
captcha_id: builtins.str = ...,
|
|
265
|
+
) -> None: ...
|
|
266
|
+
def ClearField(self, field_name: typing.Literal["captcha_id", b"captcha_id"]) -> None: ...
|
|
267
|
+
|
|
268
|
+
global___UpdateCaptchaMetadata = UpdateCaptchaMetadata
|
|
@@ -0,0 +1,242 @@
|
|
|
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
|
+
|
|
5
|
+
from yandex.cloud.operation import operation_pb2 as yandex_dot_cloud_dot_operation_dot_operation__pb2
|
|
6
|
+
from yandex.cloud.smartcaptcha.v1 import captcha_pb2 as yandex_dot_cloud_dot_smartcaptcha_dot_v1_dot_captcha__pb2
|
|
7
|
+
from yandex.cloud.smartcaptcha.v1 import captcha_service_pb2 as yandex_dot_cloud_dot_smartcaptcha_dot_v1_dot_captcha__service__pb2
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class CaptchaServiceStub(object):
|
|
11
|
+
"""A set of methods for managing Captcha resources.
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
def __init__(self, channel):
|
|
15
|
+
"""Constructor.
|
|
16
|
+
|
|
17
|
+
Args:
|
|
18
|
+
channel: A grpc.Channel.
|
|
19
|
+
"""
|
|
20
|
+
self.Get = channel.unary_unary(
|
|
21
|
+
'/yandex.cloud.smartcaptcha.v1.CaptchaService/Get',
|
|
22
|
+
request_serializer=yandex_dot_cloud_dot_smartcaptcha_dot_v1_dot_captcha__service__pb2.GetCaptchaRequest.SerializeToString,
|
|
23
|
+
response_deserializer=yandex_dot_cloud_dot_smartcaptcha_dot_v1_dot_captcha__pb2.Captcha.FromString,
|
|
24
|
+
)
|
|
25
|
+
self.GetSecretKey = channel.unary_unary(
|
|
26
|
+
'/yandex.cloud.smartcaptcha.v1.CaptchaService/GetSecretKey',
|
|
27
|
+
request_serializer=yandex_dot_cloud_dot_smartcaptcha_dot_v1_dot_captcha__service__pb2.GetCaptchaRequest.SerializeToString,
|
|
28
|
+
response_deserializer=yandex_dot_cloud_dot_smartcaptcha_dot_v1_dot_captcha__pb2.CaptchaSecretKey.FromString,
|
|
29
|
+
)
|
|
30
|
+
self.List = channel.unary_unary(
|
|
31
|
+
'/yandex.cloud.smartcaptcha.v1.CaptchaService/List',
|
|
32
|
+
request_serializer=yandex_dot_cloud_dot_smartcaptcha_dot_v1_dot_captcha__service__pb2.ListCaptchasRequest.SerializeToString,
|
|
33
|
+
response_deserializer=yandex_dot_cloud_dot_smartcaptcha_dot_v1_dot_captcha__service__pb2.ListCaptchasResponse.FromString,
|
|
34
|
+
)
|
|
35
|
+
self.Create = channel.unary_unary(
|
|
36
|
+
'/yandex.cloud.smartcaptcha.v1.CaptchaService/Create',
|
|
37
|
+
request_serializer=yandex_dot_cloud_dot_smartcaptcha_dot_v1_dot_captcha__service__pb2.CreateCaptchaRequest.SerializeToString,
|
|
38
|
+
response_deserializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
39
|
+
)
|
|
40
|
+
self.Update = channel.unary_unary(
|
|
41
|
+
'/yandex.cloud.smartcaptcha.v1.CaptchaService/Update',
|
|
42
|
+
request_serializer=yandex_dot_cloud_dot_smartcaptcha_dot_v1_dot_captcha__service__pb2.UpdateCaptchaRequest.SerializeToString,
|
|
43
|
+
response_deserializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
44
|
+
)
|
|
45
|
+
self.Delete = channel.unary_unary(
|
|
46
|
+
'/yandex.cloud.smartcaptcha.v1.CaptchaService/Delete',
|
|
47
|
+
request_serializer=yandex_dot_cloud_dot_smartcaptcha_dot_v1_dot_captcha__service__pb2.DeleteCaptchaRequest.SerializeToString,
|
|
48
|
+
response_deserializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
49
|
+
)
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
class CaptchaServiceServicer(object):
|
|
53
|
+
"""A set of methods for managing Captcha resources.
|
|
54
|
+
"""
|
|
55
|
+
|
|
56
|
+
def Get(self, request, context):
|
|
57
|
+
"""Returns the specified Captcha resource.
|
|
58
|
+
"""
|
|
59
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
60
|
+
context.set_details('Method not implemented!')
|
|
61
|
+
raise NotImplementedError('Method not implemented!')
|
|
62
|
+
|
|
63
|
+
def GetSecretKey(self, request, context):
|
|
64
|
+
"""Returns the secret data of specified Captcha resource.
|
|
65
|
+
"""
|
|
66
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
67
|
+
context.set_details('Method not implemented!')
|
|
68
|
+
raise NotImplementedError('Method not implemented!')
|
|
69
|
+
|
|
70
|
+
def List(self, request, context):
|
|
71
|
+
"""Retrieves the list of Captcha resources in the specified folder.
|
|
72
|
+
"""
|
|
73
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
74
|
+
context.set_details('Method not implemented!')
|
|
75
|
+
raise NotImplementedError('Method not implemented!')
|
|
76
|
+
|
|
77
|
+
def Create(self, request, context):
|
|
78
|
+
"""Creates a captcha in the specified folder using the data specified in the request.
|
|
79
|
+
"""
|
|
80
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
81
|
+
context.set_details('Method not implemented!')
|
|
82
|
+
raise NotImplementedError('Method not implemented!')
|
|
83
|
+
|
|
84
|
+
def Update(self, request, context):
|
|
85
|
+
"""Updates the specified captcha.
|
|
86
|
+
"""
|
|
87
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
88
|
+
context.set_details('Method not implemented!')
|
|
89
|
+
raise NotImplementedError('Method not implemented!')
|
|
90
|
+
|
|
91
|
+
def Delete(self, request, context):
|
|
92
|
+
"""Deletes the specified captcha.
|
|
93
|
+
"""
|
|
94
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
95
|
+
context.set_details('Method not implemented!')
|
|
96
|
+
raise NotImplementedError('Method not implemented!')
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
def add_CaptchaServiceServicer_to_server(servicer, server):
|
|
100
|
+
rpc_method_handlers = {
|
|
101
|
+
'Get': grpc.unary_unary_rpc_method_handler(
|
|
102
|
+
servicer.Get,
|
|
103
|
+
request_deserializer=yandex_dot_cloud_dot_smartcaptcha_dot_v1_dot_captcha__service__pb2.GetCaptchaRequest.FromString,
|
|
104
|
+
response_serializer=yandex_dot_cloud_dot_smartcaptcha_dot_v1_dot_captcha__pb2.Captcha.SerializeToString,
|
|
105
|
+
),
|
|
106
|
+
'GetSecretKey': grpc.unary_unary_rpc_method_handler(
|
|
107
|
+
servicer.GetSecretKey,
|
|
108
|
+
request_deserializer=yandex_dot_cloud_dot_smartcaptcha_dot_v1_dot_captcha__service__pb2.GetCaptchaRequest.FromString,
|
|
109
|
+
response_serializer=yandex_dot_cloud_dot_smartcaptcha_dot_v1_dot_captcha__pb2.CaptchaSecretKey.SerializeToString,
|
|
110
|
+
),
|
|
111
|
+
'List': grpc.unary_unary_rpc_method_handler(
|
|
112
|
+
servicer.List,
|
|
113
|
+
request_deserializer=yandex_dot_cloud_dot_smartcaptcha_dot_v1_dot_captcha__service__pb2.ListCaptchasRequest.FromString,
|
|
114
|
+
response_serializer=yandex_dot_cloud_dot_smartcaptcha_dot_v1_dot_captcha__service__pb2.ListCaptchasResponse.SerializeToString,
|
|
115
|
+
),
|
|
116
|
+
'Create': grpc.unary_unary_rpc_method_handler(
|
|
117
|
+
servicer.Create,
|
|
118
|
+
request_deserializer=yandex_dot_cloud_dot_smartcaptcha_dot_v1_dot_captcha__service__pb2.CreateCaptchaRequest.FromString,
|
|
119
|
+
response_serializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.SerializeToString,
|
|
120
|
+
),
|
|
121
|
+
'Update': grpc.unary_unary_rpc_method_handler(
|
|
122
|
+
servicer.Update,
|
|
123
|
+
request_deserializer=yandex_dot_cloud_dot_smartcaptcha_dot_v1_dot_captcha__service__pb2.UpdateCaptchaRequest.FromString,
|
|
124
|
+
response_serializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.SerializeToString,
|
|
125
|
+
),
|
|
126
|
+
'Delete': grpc.unary_unary_rpc_method_handler(
|
|
127
|
+
servicer.Delete,
|
|
128
|
+
request_deserializer=yandex_dot_cloud_dot_smartcaptcha_dot_v1_dot_captcha__service__pb2.DeleteCaptchaRequest.FromString,
|
|
129
|
+
response_serializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.SerializeToString,
|
|
130
|
+
),
|
|
131
|
+
}
|
|
132
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
133
|
+
'yandex.cloud.smartcaptcha.v1.CaptchaService', rpc_method_handlers)
|
|
134
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
# This class is part of an EXPERIMENTAL API.
|
|
138
|
+
class CaptchaService(object):
|
|
139
|
+
"""A set of methods for managing Captcha resources.
|
|
140
|
+
"""
|
|
141
|
+
|
|
142
|
+
@staticmethod
|
|
143
|
+
def Get(request,
|
|
144
|
+
target,
|
|
145
|
+
options=(),
|
|
146
|
+
channel_credentials=None,
|
|
147
|
+
call_credentials=None,
|
|
148
|
+
insecure=False,
|
|
149
|
+
compression=None,
|
|
150
|
+
wait_for_ready=None,
|
|
151
|
+
timeout=None,
|
|
152
|
+
metadata=None):
|
|
153
|
+
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.smartcaptcha.v1.CaptchaService/Get',
|
|
154
|
+
yandex_dot_cloud_dot_smartcaptcha_dot_v1_dot_captcha__service__pb2.GetCaptchaRequest.SerializeToString,
|
|
155
|
+
yandex_dot_cloud_dot_smartcaptcha_dot_v1_dot_captcha__pb2.Captcha.FromString,
|
|
156
|
+
options, channel_credentials,
|
|
157
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
158
|
+
|
|
159
|
+
@staticmethod
|
|
160
|
+
def GetSecretKey(request,
|
|
161
|
+
target,
|
|
162
|
+
options=(),
|
|
163
|
+
channel_credentials=None,
|
|
164
|
+
call_credentials=None,
|
|
165
|
+
insecure=False,
|
|
166
|
+
compression=None,
|
|
167
|
+
wait_for_ready=None,
|
|
168
|
+
timeout=None,
|
|
169
|
+
metadata=None):
|
|
170
|
+
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.smartcaptcha.v1.CaptchaService/GetSecretKey',
|
|
171
|
+
yandex_dot_cloud_dot_smartcaptcha_dot_v1_dot_captcha__service__pb2.GetCaptchaRequest.SerializeToString,
|
|
172
|
+
yandex_dot_cloud_dot_smartcaptcha_dot_v1_dot_captcha__pb2.CaptchaSecretKey.FromString,
|
|
173
|
+
options, channel_credentials,
|
|
174
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
175
|
+
|
|
176
|
+
@staticmethod
|
|
177
|
+
def List(request,
|
|
178
|
+
target,
|
|
179
|
+
options=(),
|
|
180
|
+
channel_credentials=None,
|
|
181
|
+
call_credentials=None,
|
|
182
|
+
insecure=False,
|
|
183
|
+
compression=None,
|
|
184
|
+
wait_for_ready=None,
|
|
185
|
+
timeout=None,
|
|
186
|
+
metadata=None):
|
|
187
|
+
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.smartcaptcha.v1.CaptchaService/List',
|
|
188
|
+
yandex_dot_cloud_dot_smartcaptcha_dot_v1_dot_captcha__service__pb2.ListCaptchasRequest.SerializeToString,
|
|
189
|
+
yandex_dot_cloud_dot_smartcaptcha_dot_v1_dot_captcha__service__pb2.ListCaptchasResponse.FromString,
|
|
190
|
+
options, channel_credentials,
|
|
191
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
192
|
+
|
|
193
|
+
@staticmethod
|
|
194
|
+
def Create(request,
|
|
195
|
+
target,
|
|
196
|
+
options=(),
|
|
197
|
+
channel_credentials=None,
|
|
198
|
+
call_credentials=None,
|
|
199
|
+
insecure=False,
|
|
200
|
+
compression=None,
|
|
201
|
+
wait_for_ready=None,
|
|
202
|
+
timeout=None,
|
|
203
|
+
metadata=None):
|
|
204
|
+
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.smartcaptcha.v1.CaptchaService/Create',
|
|
205
|
+
yandex_dot_cloud_dot_smartcaptcha_dot_v1_dot_captcha__service__pb2.CreateCaptchaRequest.SerializeToString,
|
|
206
|
+
yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
207
|
+
options, channel_credentials,
|
|
208
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
209
|
+
|
|
210
|
+
@staticmethod
|
|
211
|
+
def Update(request,
|
|
212
|
+
target,
|
|
213
|
+
options=(),
|
|
214
|
+
channel_credentials=None,
|
|
215
|
+
call_credentials=None,
|
|
216
|
+
insecure=False,
|
|
217
|
+
compression=None,
|
|
218
|
+
wait_for_ready=None,
|
|
219
|
+
timeout=None,
|
|
220
|
+
metadata=None):
|
|
221
|
+
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.smartcaptcha.v1.CaptchaService/Update',
|
|
222
|
+
yandex_dot_cloud_dot_smartcaptcha_dot_v1_dot_captcha__service__pb2.UpdateCaptchaRequest.SerializeToString,
|
|
223
|
+
yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
224
|
+
options, channel_credentials,
|
|
225
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
226
|
+
|
|
227
|
+
@staticmethod
|
|
228
|
+
def Delete(request,
|
|
229
|
+
target,
|
|
230
|
+
options=(),
|
|
231
|
+
channel_credentials=None,
|
|
232
|
+
call_credentials=None,
|
|
233
|
+
insecure=False,
|
|
234
|
+
compression=None,
|
|
235
|
+
wait_for_ready=None,
|
|
236
|
+
timeout=None,
|
|
237
|
+
metadata=None):
|
|
238
|
+
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.smartcaptcha.v1.CaptchaService/Delete',
|
|
239
|
+
yandex_dot_cloud_dot_smartcaptcha_dot_v1_dot_captcha__service__pb2.DeleteCaptchaRequest.SerializeToString,
|
|
240
|
+
yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
241
|
+
options, channel_credentials,
|
|
242
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|