yandexcloud 0.316.0__py3-none-any.whl → 0.317.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/backup/v1/resource_pb2.py +10 -10
- yandex/cloud/backup/v1/resource_pb2.pyi +5 -1
- yandex/cloud/datatransfer/v1/transfer_pb2.py +12 -10
- yandex/cloud/datatransfer/v1/transfer_pb2.pyi +17 -3
- yandex/cloud/loadtesting/agent/v1/agent_registration_service_pb2.py +18 -11
- yandex/cloud/loadtesting/agent/v1/agent_registration_service_pb2.pyi +23 -1
- yandex/cloud/loadtesting/api/v1/agent/agent_pb2.py +6 -5
- yandex/cloud/loadtesting/api/v1/agent/agent_pb2.pyi +9 -1
- yandex/cloud/loadtesting/api/v1/agent/log_settings_pb2.py +29 -0
- yandex/cloud/loadtesting/api/v1/agent/log_settings_pb2.pyi +27 -0
- yandex/cloud/loadtesting/api/v1/agent/log_settings_pb2_grpc.py +4 -0
- yandex/cloud/loadtesting/api/v1/agent/log_settings_pb2_grpc.pyi +17 -0
- yandex/cloud/loadtesting/api/v1/agent_service_pb2.py +27 -26
- yandex/cloud/loadtesting/api/v1/agent_service_pb2.pyi +9 -2
- yandex/cloud/loadtesting/api/v1/test/imbalance_point_pb2.py +2 -2
- yandex/cloud/loadtesting/api/v1/test/imbalance_point_pb2.pyi +5 -1
- yandex/cloud/mdb/mysql/v1/backup_service_pb2.py +17 -13
- yandex/cloud/mdb/mysql/v1/backup_service_pb2_grpc.py +35 -0
- yandex/cloud/mdb/mysql/v1/backup_service_pb2_grpc.pyi +21 -0
- yandex/cloud/mdb/opensearch/v1/auth_pb2.py +6 -5
- yandex/cloud/mdb/opensearch/v1/auth_pb2.pyi +9 -1
- yandex/cloud/mdb/opensearch/v1/cluster_pb2.py +50 -43
- yandex/cloud/mdb/opensearch/v1/cluster_pb2.pyi +40 -4
- yandex/cloud/mdb/opensearch/v1/cluster_service_pb2.py +61 -61
- yandex/cloud/mdb/opensearch/v1/cluster_service_pb2.pyi +32 -8
- yandex/cloud/monitoring/v3/chart_widget_pb2.py +46 -44
- yandex/cloud/monitoring/v3/chart_widget_pb2.pyi +28 -2
- yandex/cloud/serverless/eventrouter/__init__.py +0 -0
- yandex/cloud/serverless/eventrouter/v1/__init__.py +0 -0
- yandex/cloud/serverless/eventrouter/v1/bus_pb2.py +33 -0
- yandex/cloud/serverless/eventrouter/v1/bus_pb2.pyi +107 -0
- yandex/cloud/serverless/eventrouter/v1/bus_pb2_grpc.py +4 -0
- yandex/cloud/serverless/eventrouter/v1/bus_pb2_grpc.pyi +17 -0
- yandex/cloud/serverless/eventrouter/v1/bus_service_pb2.py +115 -0
- yandex/cloud/serverless/eventrouter/v1/bus_service_pb2.pyi +320 -0
- yandex/cloud/serverless/eventrouter/v1/bus_service_pb2_grpc.py +346 -0
- yandex/cloud/serverless/eventrouter/v1/bus_service_pb2_grpc.pyi +219 -0
- yandex/cloud/serverless/eventrouter/v1/connector_pb2.py +61 -0
- yandex/cloud/serverless/eventrouter/v1/connector_pb2.pyi +223 -0
- yandex/cloud/serverless/eventrouter/v1/connector_pb2_grpc.py +4 -0
- yandex/cloud/serverless/eventrouter/v1/connector_pb2_grpc.pyi +17 -0
- yandex/cloud/serverless/eventrouter/v1/connector_service_pb2.py +135 -0
- yandex/cloud/serverless/eventrouter/v1/connector_service_pb2.pyi +397 -0
- yandex/cloud/serverless/eventrouter/v1/connector_service_pb2_grpc.py +414 -0
- yandex/cloud/serverless/eventrouter/v1/connector_service_pb2_grpc.pyi +259 -0
- yandex/cloud/serverless/eventrouter/v1/event_service_pb2.py +37 -0
- yandex/cloud/serverless/eventrouter/v1/event_service_pb2.pyi +31 -0
- yandex/cloud/serverless/eventrouter/v1/event_service_pb2_grpc.py +71 -0
- yandex/cloud/serverless/eventrouter/v1/event_service_pb2_grpc.pyi +51 -0
- yandex/cloud/serverless/eventrouter/v1/rule_pb2.py +123 -0
- yandex/cloud/serverless/eventrouter/v1/rule_pb2.pyi +532 -0
- yandex/cloud/serverless/eventrouter/v1/rule_pb2_grpc.py +4 -0
- yandex/cloud/serverless/eventrouter/v1/rule_pb2_grpc.pyi +17 -0
- yandex/cloud/serverless/eventrouter/v1/rule_service_pb2.py +139 -0
- yandex/cloud/serverless/eventrouter/v1/rule_service_pb2.pyi +413 -0
- yandex/cloud/serverless/eventrouter/v1/rule_service_pb2_grpc.py +414 -0
- yandex/cloud/serverless/eventrouter/v1/rule_service_pb2_grpc.pyi +259 -0
- yandex/cloud/serverless/functions/v1/function_pb2.py +34 -34
- yandex/cloud/serverless/functions/v1/function_pb2.pyi +8 -0
- yandex/cloud/serverless/workflows/__init__.py +0 -0
- yandex/cloud/serverless/workflows/v1/__init__.py +0 -0
- yandex/cloud/serverless/workflows/v1/execution_pb2.py +43 -0
- yandex/cloud/serverless/workflows/v1/execution_pb2.pyi +203 -0
- yandex/cloud/serverless/workflows/v1/execution_pb2_grpc.py +4 -0
- yandex/cloud/serverless/workflows/v1/execution_pb2_grpc.pyi +17 -0
- yandex/cloud/serverless/workflows/v1/execution_service_pb2.py +74 -0
- yandex/cloud/serverless/workflows/v1/execution_service_pb2.pyi +231 -0
- yandex/cloud/serverless/workflows/v1/execution_service_pb2_grpc.py +206 -0
- yandex/cloud/serverless/workflows/v1/execution_service_pb2_grpc.pyi +130 -0
- yandex/cloud/serverless/workflows/v1/history_entry_pb2.py +41 -0
- yandex/cloud/serverless/workflows/v1/history_entry_pb2.pyi +174 -0
- yandex/cloud/serverless/workflows/v1/history_entry_pb2_grpc.py +4 -0
- yandex/cloud/serverless/workflows/v1/history_entry_pb2_grpc.pyi +17 -0
- yandex/cloud/serverless/workflows/v1/workflow_pb2.py +47 -0
- yandex/cloud/serverless/workflows/v1/workflow_pb2.pyi +260 -0
- yandex/cloud/serverless/workflows/v1/workflow_pb2_grpc.py +4 -0
- yandex/cloud/serverless/workflows/v1/workflow_pb2_grpc.pyi +17 -0
- yandex/cloud/serverless/workflows/v1/workflow_service_pb2.py +112 -0
- yandex/cloud/serverless/workflows/v1/workflow_service_pb2.pyi +395 -0
- yandex/cloud/serverless/workflows/v1/workflow_service_pb2_grpc.py +241 -0
- yandex/cloud/serverless/workflows/v1/workflow_service_pb2_grpc.pyi +151 -0
- yandex/cloud/smartwebsecurity/v1/advanced_rate_limiter/__init__.py +0 -0
- yandex/cloud/smartwebsecurity/v1/advanced_rate_limiter/advanced_rate_limiter_profile_pb2.py +77 -0
- yandex/cloud/smartwebsecurity/v1/advanced_rate_limiter/advanced_rate_limiter_profile_pb2.pyi +352 -0
- yandex/cloud/smartwebsecurity/v1/advanced_rate_limiter/advanced_rate_limiter_profile_pb2_grpc.py +4 -0
- yandex/cloud/smartwebsecurity/v1/advanced_rate_limiter/advanced_rate_limiter_profile_pb2_grpc.pyi +17 -0
- yandex/cloud/smartwebsecurity/v1/advanced_rate_limiter/advanced_rate_limiter_profile_service_pb2.py +78 -0
- yandex/cloud/smartwebsecurity/v1/advanced_rate_limiter/advanced_rate_limiter_profile_service_pb2.pyi +244 -0
- yandex/cloud/smartwebsecurity/v1/advanced_rate_limiter/advanced_rate_limiter_profile_service_pb2_grpc.py +208 -0
- yandex/cloud/smartwebsecurity/v1/advanced_rate_limiter/advanced_rate_limiter_profile_service_pb2_grpc.pyi +132 -0
- yandex/cloud/smartwebsecurity/v1/waf/__init__.py +0 -0
- yandex/cloud/smartwebsecurity/v1/waf/rule_set_descriptor_pb2.py +35 -0
- yandex/cloud/smartwebsecurity/v1/waf/rule_set_descriptor_pb2.pyi +71 -0
- yandex/cloud/smartwebsecurity/v1/waf/rule_set_descriptor_pb2_grpc.py +4 -0
- yandex/cloud/smartwebsecurity/v1/waf/rule_set_descriptor_pb2_grpc.pyi +17 -0
- yandex/cloud/smartwebsecurity/v1/waf/rule_set_descriptor_service_pb2.py +37 -0
- yandex/cloud/smartwebsecurity/v1/waf/rule_set_descriptor_service_pb2.pyi +31 -0
- yandex/cloud/smartwebsecurity/v1/waf/rule_set_descriptor_service_pb2_grpc.py +71 -0
- yandex/cloud/smartwebsecurity/v1/waf/rule_set_descriptor_service_pb2_grpc.pyi +51 -0
- yandex/cloud/smartwebsecurity/v1/waf/waf_profile_pb2.py +81 -0
- yandex/cloud/smartwebsecurity/v1/waf/waf_profile_pb2.pyi +296 -0
- yandex/cloud/smartwebsecurity/v1/waf/waf_profile_pb2_grpc.py +4 -0
- yandex/cloud/smartwebsecurity/v1/waf/waf_profile_pb2_grpc.pyi +17 -0
- yandex/cloud/smartwebsecurity/v1/waf/waf_profile_service_pb2.py +76 -0
- yandex/cloud/smartwebsecurity/v1/waf/waf_profile_service_pb2.pyi +283 -0
- yandex/cloud/smartwebsecurity/v1/waf/waf_profile_service_pb2_grpc.py +208 -0
- yandex/cloud/smartwebsecurity/v1/waf/waf_profile_service_pb2_grpc.pyi +132 -0
- yandex/cloud/speechsense/v1/analysis/summarization_pb2.py +32 -0
- yandex/cloud/speechsense/v1/analysis/summarization_pb2.pyi +95 -0
- yandex/cloud/speechsense/v1/analysis/summarization_pb2_grpc.py +4 -0
- yandex/cloud/speechsense/v1/analysis/summarization_pb2_grpc.pyi +17 -0
- yandex/cloud/speechsense/v1/project_pb2.py +29 -0
- yandex/cloud/speechsense/v1/project_pb2.pyi +79 -0
- yandex/cloud/speechsense/v1/project_pb2_grpc.py +4 -0
- yandex/cloud/speechsense/v1/project_pb2_grpc.pyi +17 -0
- yandex/cloud/speechsense/v1/project_service_pb2.py +35 -0
- yandex/cloud/speechsense/v1/project_service_pb2.pyi +59 -0
- yandex/cloud/speechsense/v1/project_service_pb2_grpc.py +68 -0
- yandex/cloud/speechsense/v1/project_service_pb2_grpc.pyi +45 -0
- yandex/cloud/speechsense/v1/talk_pb2.py +8 -7
- yandex/cloud/speechsense/v1/talk_pb2.pyi +7 -2
- yandex/cloud/video/v1/channel_service_pb2.py +33 -28
- yandex/cloud/video/v1/episode_service_pb2.py +56 -47
- yandex/cloud/video/v1/stream_line_service_pb2.py +67 -60
- yandex/cloud/video/v1/stream_service_pb2.py +46 -41
- yandex/cloud/video/v1/thumbnail_service_pb2.py +29 -22
- yandex/cloud/video/v1/video_service_pb2.py +62 -53
- {yandexcloud-0.316.0.dist-info → yandexcloud-0.317.0.dist-info}/METADATA +1 -1
- {yandexcloud-0.316.0.dist-info → yandexcloud-0.317.0.dist-info}/RECORD +133 -39
- {yandexcloud-0.316.0.dist-info → yandexcloud-0.317.0.dist-info}/WHEEL +1 -1
- {yandexcloud-0.316.0.dist-info → yandexcloud-0.317.0.dist-info}/AUTHORS +0 -0
- {yandexcloud-0.316.0.dist-info → yandexcloud-0.317.0.dist-info}/LICENSE +0 -0
- {yandexcloud-0.316.0.dist-info → yandexcloud-0.317.0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,132 @@
|
|
|
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
|
+
import yandex.cloud.operation.operation_pb2
|
|
12
|
+
import yandex.cloud.smartwebsecurity.v1.advanced_rate_limiter.advanced_rate_limiter_profile_pb2
|
|
13
|
+
import yandex.cloud.smartwebsecurity.v1.advanced_rate_limiter.advanced_rate_limiter_profile_service_pb2
|
|
14
|
+
|
|
15
|
+
_T = typing.TypeVar("_T")
|
|
16
|
+
|
|
17
|
+
class _MaybeAsyncIterator(collections.abc.AsyncIterator[_T], collections.abc.Iterator[_T], metaclass=abc.ABCMeta): ...
|
|
18
|
+
|
|
19
|
+
class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore[misc, type-arg]
|
|
20
|
+
...
|
|
21
|
+
|
|
22
|
+
class AdvancedRateLimiterProfileServiceStub:
|
|
23
|
+
"""A set of methods for managing AdvancedRateLimiterProfile resources."""
|
|
24
|
+
|
|
25
|
+
def __init__(self, channel: typing.Union[grpc.Channel, grpc.aio.Channel]) -> None: ...
|
|
26
|
+
Get: grpc.UnaryUnaryMultiCallable[
|
|
27
|
+
yandex.cloud.smartwebsecurity.v1.advanced_rate_limiter.advanced_rate_limiter_profile_service_pb2.GetAdvancedRateLimiterProfileRequest,
|
|
28
|
+
yandex.cloud.smartwebsecurity.v1.advanced_rate_limiter.advanced_rate_limiter_profile_pb2.AdvancedRateLimiterProfile,
|
|
29
|
+
]
|
|
30
|
+
"""Returns the specified AdvancedRateLimiterProfile resource."""
|
|
31
|
+
|
|
32
|
+
List: grpc.UnaryUnaryMultiCallable[
|
|
33
|
+
yandex.cloud.smartwebsecurity.v1.advanced_rate_limiter.advanced_rate_limiter_profile_service_pb2.ListAdvancedRateLimiterProfilesRequest,
|
|
34
|
+
yandex.cloud.smartwebsecurity.v1.advanced_rate_limiter.advanced_rate_limiter_profile_service_pb2.ListAdvancedRateLimiterProfilesResponse,
|
|
35
|
+
]
|
|
36
|
+
"""Retrieves the list of AdvancedRateLimiterProfile resources in the specified folder."""
|
|
37
|
+
|
|
38
|
+
Create: grpc.UnaryUnaryMultiCallable[
|
|
39
|
+
yandex.cloud.smartwebsecurity.v1.advanced_rate_limiter.advanced_rate_limiter_profile_service_pb2.CreateAdvancedRateLimiterProfileRequest,
|
|
40
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
41
|
+
]
|
|
42
|
+
"""Creates a ARL profile in the specified folder using the data specified in the request."""
|
|
43
|
+
|
|
44
|
+
Update: grpc.UnaryUnaryMultiCallable[
|
|
45
|
+
yandex.cloud.smartwebsecurity.v1.advanced_rate_limiter.advanced_rate_limiter_profile_service_pb2.UpdateAdvancedRateLimiterProfileRequest,
|
|
46
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
47
|
+
]
|
|
48
|
+
"""Updates the specified ARL profile."""
|
|
49
|
+
|
|
50
|
+
Delete: grpc.UnaryUnaryMultiCallable[
|
|
51
|
+
yandex.cloud.smartwebsecurity.v1.advanced_rate_limiter.advanced_rate_limiter_profile_service_pb2.DeleteAdvancedRateLimiterProfileRequest,
|
|
52
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
53
|
+
]
|
|
54
|
+
"""Deletes the specified ARL profile."""
|
|
55
|
+
|
|
56
|
+
class AdvancedRateLimiterProfileServiceAsyncStub:
|
|
57
|
+
"""A set of methods for managing AdvancedRateLimiterProfile resources."""
|
|
58
|
+
|
|
59
|
+
Get: grpc.aio.UnaryUnaryMultiCallable[
|
|
60
|
+
yandex.cloud.smartwebsecurity.v1.advanced_rate_limiter.advanced_rate_limiter_profile_service_pb2.GetAdvancedRateLimiterProfileRequest,
|
|
61
|
+
yandex.cloud.smartwebsecurity.v1.advanced_rate_limiter.advanced_rate_limiter_profile_pb2.AdvancedRateLimiterProfile,
|
|
62
|
+
]
|
|
63
|
+
"""Returns the specified AdvancedRateLimiterProfile resource."""
|
|
64
|
+
|
|
65
|
+
List: grpc.aio.UnaryUnaryMultiCallable[
|
|
66
|
+
yandex.cloud.smartwebsecurity.v1.advanced_rate_limiter.advanced_rate_limiter_profile_service_pb2.ListAdvancedRateLimiterProfilesRequest,
|
|
67
|
+
yandex.cloud.smartwebsecurity.v1.advanced_rate_limiter.advanced_rate_limiter_profile_service_pb2.ListAdvancedRateLimiterProfilesResponse,
|
|
68
|
+
]
|
|
69
|
+
"""Retrieves the list of AdvancedRateLimiterProfile resources in the specified folder."""
|
|
70
|
+
|
|
71
|
+
Create: grpc.aio.UnaryUnaryMultiCallable[
|
|
72
|
+
yandex.cloud.smartwebsecurity.v1.advanced_rate_limiter.advanced_rate_limiter_profile_service_pb2.CreateAdvancedRateLimiterProfileRequest,
|
|
73
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
74
|
+
]
|
|
75
|
+
"""Creates a ARL profile in the specified folder using the data specified in the request."""
|
|
76
|
+
|
|
77
|
+
Update: grpc.aio.UnaryUnaryMultiCallable[
|
|
78
|
+
yandex.cloud.smartwebsecurity.v1.advanced_rate_limiter.advanced_rate_limiter_profile_service_pb2.UpdateAdvancedRateLimiterProfileRequest,
|
|
79
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
80
|
+
]
|
|
81
|
+
"""Updates the specified ARL profile."""
|
|
82
|
+
|
|
83
|
+
Delete: grpc.aio.UnaryUnaryMultiCallable[
|
|
84
|
+
yandex.cloud.smartwebsecurity.v1.advanced_rate_limiter.advanced_rate_limiter_profile_service_pb2.DeleteAdvancedRateLimiterProfileRequest,
|
|
85
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
86
|
+
]
|
|
87
|
+
"""Deletes the specified ARL profile."""
|
|
88
|
+
|
|
89
|
+
class AdvancedRateLimiterProfileServiceServicer(metaclass=abc.ABCMeta):
|
|
90
|
+
"""A set of methods for managing AdvancedRateLimiterProfile resources."""
|
|
91
|
+
|
|
92
|
+
@abc.abstractmethod
|
|
93
|
+
def Get(
|
|
94
|
+
self,
|
|
95
|
+
request: yandex.cloud.smartwebsecurity.v1.advanced_rate_limiter.advanced_rate_limiter_profile_service_pb2.GetAdvancedRateLimiterProfileRequest,
|
|
96
|
+
context: _ServicerContext,
|
|
97
|
+
) -> typing.Union[yandex.cloud.smartwebsecurity.v1.advanced_rate_limiter.advanced_rate_limiter_profile_pb2.AdvancedRateLimiterProfile, collections.abc.Awaitable[yandex.cloud.smartwebsecurity.v1.advanced_rate_limiter.advanced_rate_limiter_profile_pb2.AdvancedRateLimiterProfile]]:
|
|
98
|
+
"""Returns the specified AdvancedRateLimiterProfile resource."""
|
|
99
|
+
|
|
100
|
+
@abc.abstractmethod
|
|
101
|
+
def List(
|
|
102
|
+
self,
|
|
103
|
+
request: yandex.cloud.smartwebsecurity.v1.advanced_rate_limiter.advanced_rate_limiter_profile_service_pb2.ListAdvancedRateLimiterProfilesRequest,
|
|
104
|
+
context: _ServicerContext,
|
|
105
|
+
) -> typing.Union[yandex.cloud.smartwebsecurity.v1.advanced_rate_limiter.advanced_rate_limiter_profile_service_pb2.ListAdvancedRateLimiterProfilesResponse, collections.abc.Awaitable[yandex.cloud.smartwebsecurity.v1.advanced_rate_limiter.advanced_rate_limiter_profile_service_pb2.ListAdvancedRateLimiterProfilesResponse]]:
|
|
106
|
+
"""Retrieves the list of AdvancedRateLimiterProfile resources in the specified folder."""
|
|
107
|
+
|
|
108
|
+
@abc.abstractmethod
|
|
109
|
+
def Create(
|
|
110
|
+
self,
|
|
111
|
+
request: yandex.cloud.smartwebsecurity.v1.advanced_rate_limiter.advanced_rate_limiter_profile_service_pb2.CreateAdvancedRateLimiterProfileRequest,
|
|
112
|
+
context: _ServicerContext,
|
|
113
|
+
) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
|
|
114
|
+
"""Creates a ARL profile in the specified folder using the data specified in the request."""
|
|
115
|
+
|
|
116
|
+
@abc.abstractmethod
|
|
117
|
+
def Update(
|
|
118
|
+
self,
|
|
119
|
+
request: yandex.cloud.smartwebsecurity.v1.advanced_rate_limiter.advanced_rate_limiter_profile_service_pb2.UpdateAdvancedRateLimiterProfileRequest,
|
|
120
|
+
context: _ServicerContext,
|
|
121
|
+
) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
|
|
122
|
+
"""Updates the specified ARL profile."""
|
|
123
|
+
|
|
124
|
+
@abc.abstractmethod
|
|
125
|
+
def Delete(
|
|
126
|
+
self,
|
|
127
|
+
request: yandex.cloud.smartwebsecurity.v1.advanced_rate_limiter.advanced_rate_limiter_profile_service_pb2.DeleteAdvancedRateLimiterProfileRequest,
|
|
128
|
+
context: _ServicerContext,
|
|
129
|
+
) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
|
|
130
|
+
"""Deletes the specified ARL profile."""
|
|
131
|
+
|
|
132
|
+
def add_AdvancedRateLimiterProfileServiceServicer_to_server(servicer: AdvancedRateLimiterProfileServiceServicer, server: typing.Union[grpc.Server, grpc.aio.Server]) -> None: ...
|
|
File without changes
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: yandex/cloud/smartwebsecurity/v1/waf/rule_set_descriptor.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/smartwebsecurity/v1/waf/rule_set_descriptor.proto\x12$yandex.cloud.smartwebsecurity.v1.waf\x1a\x1dyandex/cloud/validation.proto\"\xa0\x02\n\x11RuleSetDescriptor\x12\x12\n\x04name\x18\x01 \x01(\tB\x04\xe8\xc7\x31\x01\x12\x15\n\x07version\x18\x02 \x01(\tB\x04\xe8\xc7\x31\x01\x12\x10\n\x02id\x18\x03 \x01(\tB\x04\xe8\xc7\x31\x01\x12V\n\x05rules\x18\x04 \x03(\x0b\x32G.yandex.cloud.smartwebsecurity.v1.waf.RuleSetDescriptor.RuleDescription\x1av\n\x0fRuleDescription\x12\n\n\x02id\x18\x01 \x01(\t\x12\x15\n\ranomaly_score\x18\x08 \x01(\x03\x12\x16\n\x0eparanoia_level\x18\t \x01(\x03J\x04\x08\x02\x10\x03J\x04\x08\x03\x10\x04J\x04\x08\x04\x10\x05J\x04\x08\x05\x10\x06J\x04\x08\x06\x10\x07J\x04\x08\x07\x10\x08J\x04\x08\n\x10\x0b\x42\x85\x01\n(yandex.cloud.api.smartwebsecurity.v1.wafZYgithub.com/yandex-cloud/go-genproto/yandex/cloud/smartwebsecurity/v1/waf;smartwebsecurityb\x06proto3')
|
|
18
|
+
|
|
19
|
+
_globals = globals()
|
|
20
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
21
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'yandex.cloud.smartwebsecurity.v1.waf.rule_set_descriptor_pb2', _globals)
|
|
22
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
23
|
+
DESCRIPTOR._options = None
|
|
24
|
+
DESCRIPTOR._serialized_options = b'\n(yandex.cloud.api.smartwebsecurity.v1.wafZYgithub.com/yandex-cloud/go-genproto/yandex/cloud/smartwebsecurity/v1/waf;smartwebsecurity'
|
|
25
|
+
_RULESETDESCRIPTOR.fields_by_name['name']._options = None
|
|
26
|
+
_RULESETDESCRIPTOR.fields_by_name['name']._serialized_options = b'\350\3071\001'
|
|
27
|
+
_RULESETDESCRIPTOR.fields_by_name['version']._options = None
|
|
28
|
+
_RULESETDESCRIPTOR.fields_by_name['version']._serialized_options = b'\350\3071\001'
|
|
29
|
+
_RULESETDESCRIPTOR.fields_by_name['id']._options = None
|
|
30
|
+
_RULESETDESCRIPTOR.fields_by_name['id']._serialized_options = b'\350\3071\001'
|
|
31
|
+
_globals['_RULESETDESCRIPTOR']._serialized_start=136
|
|
32
|
+
_globals['_RULESETDESCRIPTOR']._serialized_end=424
|
|
33
|
+
_globals['_RULESETDESCRIPTOR_RULEDESCRIPTION']._serialized_start=306
|
|
34
|
+
_globals['_RULESETDESCRIPTOR_RULEDESCRIPTION']._serialized_end=424
|
|
35
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"""
|
|
2
|
+
@generated by mypy-protobuf. Do not edit manually!
|
|
3
|
+
isort:skip_file
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
import builtins
|
|
7
|
+
import collections.abc
|
|
8
|
+
import google.protobuf.descriptor
|
|
9
|
+
import google.protobuf.internal.containers
|
|
10
|
+
import google.protobuf.message
|
|
11
|
+
import typing
|
|
12
|
+
|
|
13
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
14
|
+
|
|
15
|
+
@typing.final
|
|
16
|
+
class RuleSetDescriptor(google.protobuf.message.Message):
|
|
17
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
18
|
+
|
|
19
|
+
@typing.final
|
|
20
|
+
class RuleDescription(google.protobuf.message.Message):
|
|
21
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
22
|
+
|
|
23
|
+
ID_FIELD_NUMBER: builtins.int
|
|
24
|
+
ANOMALY_SCORE_FIELD_NUMBER: builtins.int
|
|
25
|
+
PARANOIA_LEVEL_FIELD_NUMBER: builtins.int
|
|
26
|
+
id: builtins.str
|
|
27
|
+
"""ID of the rule"""
|
|
28
|
+
anomaly_score: builtins.int
|
|
29
|
+
"""Numeric anomaly value, i.e., a potential attack indicator.
|
|
30
|
+
The higher this value, the more likely it is that the request that satisfies the rule is an attack.
|
|
31
|
+
See [documentation](/docs/smartwebsecurity/concepts/waf#anomaly).
|
|
32
|
+
"""
|
|
33
|
+
paranoia_level: builtins.int
|
|
34
|
+
"""Paranoia level classifies rules according to their aggression.
|
|
35
|
+
The higher the paranoia level, the better your protection, but also the higher the probability of WAF false positives.
|
|
36
|
+
See [documentation](/docs/smartwebsecurity/concepts/waf#paranoia).
|
|
37
|
+
"""
|
|
38
|
+
def __init__(
|
|
39
|
+
self,
|
|
40
|
+
*,
|
|
41
|
+
id: builtins.str = ...,
|
|
42
|
+
anomaly_score: builtins.int = ...,
|
|
43
|
+
paranoia_level: builtins.int = ...,
|
|
44
|
+
) -> None: ...
|
|
45
|
+
def ClearField(self, field_name: typing.Literal["anomaly_score", b"anomaly_score", "id", b"id", "paranoia_level", b"paranoia_level"]) -> None: ...
|
|
46
|
+
|
|
47
|
+
NAME_FIELD_NUMBER: builtins.int
|
|
48
|
+
VERSION_FIELD_NUMBER: builtins.int
|
|
49
|
+
ID_FIELD_NUMBER: builtins.int
|
|
50
|
+
RULES_FIELD_NUMBER: builtins.int
|
|
51
|
+
name: builtins.str
|
|
52
|
+
"""Name of the rule set"""
|
|
53
|
+
version: builtins.str
|
|
54
|
+
"""Version of the rule set"""
|
|
55
|
+
id: builtins.str
|
|
56
|
+
"""ID of the rule set"""
|
|
57
|
+
@property
|
|
58
|
+
def rules(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___RuleSetDescriptor.RuleDescription]:
|
|
59
|
+
"""List of rules"""
|
|
60
|
+
|
|
61
|
+
def __init__(
|
|
62
|
+
self,
|
|
63
|
+
*,
|
|
64
|
+
name: builtins.str = ...,
|
|
65
|
+
version: builtins.str = ...,
|
|
66
|
+
id: builtins.str = ...,
|
|
67
|
+
rules: collections.abc.Iterable[global___RuleSetDescriptor.RuleDescription] | None = ...,
|
|
68
|
+
) -> None: ...
|
|
69
|
+
def ClearField(self, field_name: typing.Literal["id", b"id", "name", b"name", "rules", b"rules", "version", b"version"]) -> None: ...
|
|
70
|
+
|
|
71
|
+
global___RuleSetDescriptor = RuleSetDescriptor
|
|
@@ -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,37 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: yandex/cloud/smartwebsecurity/v1/waf/rule_set_descriptor_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.smartwebsecurity.v1.waf import rule_set_descriptor_pb2 as yandex_dot_cloud_dot_smartwebsecurity_dot_v1_dot_waf_dot_rule__set__descriptor__pb2
|
|
15
|
+
from yandex.cloud import validation_pb2 as yandex_dot_cloud_dot_validation__pb2
|
|
16
|
+
from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\nFyandex/cloud/smartwebsecurity/v1/waf/rule_set_descriptor_service.proto\x12$yandex.cloud.smartwebsecurity.v1.waf\x1a>yandex/cloud/smartwebsecurity/v1/waf/rule_set_descriptor.proto\x1a\x1dyandex/cloud/validation.proto\x1a\x1cgoogle/api/annotations.proto\"H\n\x1bGetRuleSetDescriptorRequest\x12\x12\n\x04name\x18\x01 \x01(\tB\x04\xe8\xc7\x31\x01\x12\x15\n\x07version\x18\x02 \x01(\tB\x04\xe8\xc7\x31\x01\x32\xe3\x01\n\x18RuleSetDescriptorService\x12\xc6\x01\n\x03Get\x12\x41.yandex.cloud.smartwebsecurity.v1.waf.GetRuleSetDescriptorRequest\x1a\x37.yandex.cloud.smartwebsecurity.v1.waf.RuleSetDescriptor\"C\x82\xd3\xe4\x93\x02=\x12;/smartwebsecurity/v1/wafRuleSetDescriptors/{name}/{version}B\x85\x01\n(yandex.cloud.api.smartwebsecurity.v1.wafZYgithub.com/yandex-cloud/go-genproto/yandex/cloud/smartwebsecurity/v1/waf;smartwebsecurityb\x06proto3')
|
|
20
|
+
|
|
21
|
+
_globals = globals()
|
|
22
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
23
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'yandex.cloud.smartwebsecurity.v1.waf.rule_set_descriptor_service_pb2', _globals)
|
|
24
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
25
|
+
DESCRIPTOR._options = None
|
|
26
|
+
DESCRIPTOR._serialized_options = b'\n(yandex.cloud.api.smartwebsecurity.v1.wafZYgithub.com/yandex-cloud/go-genproto/yandex/cloud/smartwebsecurity/v1/waf;smartwebsecurity'
|
|
27
|
+
_GETRULESETDESCRIPTORREQUEST.fields_by_name['name']._options = None
|
|
28
|
+
_GETRULESETDESCRIPTORREQUEST.fields_by_name['name']._serialized_options = b'\350\3071\001'
|
|
29
|
+
_GETRULESETDESCRIPTORREQUEST.fields_by_name['version']._options = None
|
|
30
|
+
_GETRULESETDESCRIPTORREQUEST.fields_by_name['version']._serialized_options = b'\350\3071\001'
|
|
31
|
+
_RULESETDESCRIPTORSERVICE.methods_by_name['Get']._options = None
|
|
32
|
+
_RULESETDESCRIPTORSERVICE.methods_by_name['Get']._serialized_options = b'\202\323\344\223\002=\022;/smartwebsecurity/v1/wafRuleSetDescriptors/{name}/{version}'
|
|
33
|
+
_globals['_GETRULESETDESCRIPTORREQUEST']._serialized_start=237
|
|
34
|
+
_globals['_GETRULESETDESCRIPTORREQUEST']._serialized_end=309
|
|
35
|
+
_globals['_RULESETDESCRIPTORSERVICE']._serialized_start=312
|
|
36
|
+
_globals['_RULESETDESCRIPTORSERVICE']._serialized_end=539
|
|
37
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,31 @@
|
|
|
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.message
|
|
9
|
+
import typing
|
|
10
|
+
|
|
11
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
12
|
+
|
|
13
|
+
@typing.final
|
|
14
|
+
class GetRuleSetDescriptorRequest(google.protobuf.message.Message):
|
|
15
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
16
|
+
|
|
17
|
+
NAME_FIELD_NUMBER: builtins.int
|
|
18
|
+
VERSION_FIELD_NUMBER: builtins.int
|
|
19
|
+
name: builtins.str
|
|
20
|
+
"""Name of the RuleSetDescriptor resource to return."""
|
|
21
|
+
version: builtins.str
|
|
22
|
+
"""Version of the RuleSetDescriptor resource to return."""
|
|
23
|
+
def __init__(
|
|
24
|
+
self,
|
|
25
|
+
*,
|
|
26
|
+
name: builtins.str = ...,
|
|
27
|
+
version: builtins.str = ...,
|
|
28
|
+
) -> None: ...
|
|
29
|
+
def ClearField(self, field_name: typing.Literal["name", b"name", "version", b"version"]) -> None: ...
|
|
30
|
+
|
|
31
|
+
global___GetRuleSetDescriptorRequest = GetRuleSetDescriptorRequest
|
|
@@ -0,0 +1,71 @@
|
|
|
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.smartwebsecurity.v1.waf import rule_set_descriptor_pb2 as yandex_dot_cloud_dot_smartwebsecurity_dot_v1_dot_waf_dot_rule__set__descriptor__pb2
|
|
6
|
+
from yandex.cloud.smartwebsecurity.v1.waf import rule_set_descriptor_service_pb2 as yandex_dot_cloud_dot_smartwebsecurity_dot_v1_dot_waf_dot_rule__set__descriptor__service__pb2
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class RuleSetDescriptorServiceStub(object):
|
|
10
|
+
"""A set of methods for managing RuleSetDescriptor resources.
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
def __init__(self, channel):
|
|
14
|
+
"""Constructor.
|
|
15
|
+
|
|
16
|
+
Args:
|
|
17
|
+
channel: A grpc.Channel.
|
|
18
|
+
"""
|
|
19
|
+
self.Get = channel.unary_unary(
|
|
20
|
+
'/yandex.cloud.smartwebsecurity.v1.waf.RuleSetDescriptorService/Get',
|
|
21
|
+
request_serializer=yandex_dot_cloud_dot_smartwebsecurity_dot_v1_dot_waf_dot_rule__set__descriptor__service__pb2.GetRuleSetDescriptorRequest.SerializeToString,
|
|
22
|
+
response_deserializer=yandex_dot_cloud_dot_smartwebsecurity_dot_v1_dot_waf_dot_rule__set__descriptor__pb2.RuleSetDescriptor.FromString,
|
|
23
|
+
)
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
class RuleSetDescriptorServiceServicer(object):
|
|
27
|
+
"""A set of methods for managing RuleSetDescriptor resources.
|
|
28
|
+
"""
|
|
29
|
+
|
|
30
|
+
def Get(self, request, context):
|
|
31
|
+
"""Returns the specified RuleSetDescriptor resource.
|
|
32
|
+
"""
|
|
33
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
34
|
+
context.set_details('Method not implemented!')
|
|
35
|
+
raise NotImplementedError('Method not implemented!')
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
def add_RuleSetDescriptorServiceServicer_to_server(servicer, server):
|
|
39
|
+
rpc_method_handlers = {
|
|
40
|
+
'Get': grpc.unary_unary_rpc_method_handler(
|
|
41
|
+
servicer.Get,
|
|
42
|
+
request_deserializer=yandex_dot_cloud_dot_smartwebsecurity_dot_v1_dot_waf_dot_rule__set__descriptor__service__pb2.GetRuleSetDescriptorRequest.FromString,
|
|
43
|
+
response_serializer=yandex_dot_cloud_dot_smartwebsecurity_dot_v1_dot_waf_dot_rule__set__descriptor__pb2.RuleSetDescriptor.SerializeToString,
|
|
44
|
+
),
|
|
45
|
+
}
|
|
46
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
47
|
+
'yandex.cloud.smartwebsecurity.v1.waf.RuleSetDescriptorService', rpc_method_handlers)
|
|
48
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
# This class is part of an EXPERIMENTAL API.
|
|
52
|
+
class RuleSetDescriptorService(object):
|
|
53
|
+
"""A set of methods for managing RuleSetDescriptor resources.
|
|
54
|
+
"""
|
|
55
|
+
|
|
56
|
+
@staticmethod
|
|
57
|
+
def Get(request,
|
|
58
|
+
target,
|
|
59
|
+
options=(),
|
|
60
|
+
channel_credentials=None,
|
|
61
|
+
call_credentials=None,
|
|
62
|
+
insecure=False,
|
|
63
|
+
compression=None,
|
|
64
|
+
wait_for_ready=None,
|
|
65
|
+
timeout=None,
|
|
66
|
+
metadata=None):
|
|
67
|
+
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.smartwebsecurity.v1.waf.RuleSetDescriptorService/Get',
|
|
68
|
+
yandex_dot_cloud_dot_smartwebsecurity_dot_v1_dot_waf_dot_rule__set__descriptor__service__pb2.GetRuleSetDescriptorRequest.SerializeToString,
|
|
69
|
+
yandex_dot_cloud_dot_smartwebsecurity_dot_v1_dot_waf_dot_rule__set__descriptor__pb2.RuleSetDescriptor.FromString,
|
|
70
|
+
options, channel_credentials,
|
|
71
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
@@ -0,0 +1,51 @@
|
|
|
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
|
+
import yandex.cloud.smartwebsecurity.v1.waf.rule_set_descriptor_pb2
|
|
12
|
+
import yandex.cloud.smartwebsecurity.v1.waf.rule_set_descriptor_service_pb2
|
|
13
|
+
|
|
14
|
+
_T = typing.TypeVar("_T")
|
|
15
|
+
|
|
16
|
+
class _MaybeAsyncIterator(collections.abc.AsyncIterator[_T], collections.abc.Iterator[_T], metaclass=abc.ABCMeta): ...
|
|
17
|
+
|
|
18
|
+
class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore[misc, type-arg]
|
|
19
|
+
...
|
|
20
|
+
|
|
21
|
+
class RuleSetDescriptorServiceStub:
|
|
22
|
+
"""A set of methods for managing RuleSetDescriptor resources."""
|
|
23
|
+
|
|
24
|
+
def __init__(self, channel: typing.Union[grpc.Channel, grpc.aio.Channel]) -> None: ...
|
|
25
|
+
Get: grpc.UnaryUnaryMultiCallable[
|
|
26
|
+
yandex.cloud.smartwebsecurity.v1.waf.rule_set_descriptor_service_pb2.GetRuleSetDescriptorRequest,
|
|
27
|
+
yandex.cloud.smartwebsecurity.v1.waf.rule_set_descriptor_pb2.RuleSetDescriptor,
|
|
28
|
+
]
|
|
29
|
+
"""Returns the specified RuleSetDescriptor resource."""
|
|
30
|
+
|
|
31
|
+
class RuleSetDescriptorServiceAsyncStub:
|
|
32
|
+
"""A set of methods for managing RuleSetDescriptor resources."""
|
|
33
|
+
|
|
34
|
+
Get: grpc.aio.UnaryUnaryMultiCallable[
|
|
35
|
+
yandex.cloud.smartwebsecurity.v1.waf.rule_set_descriptor_service_pb2.GetRuleSetDescriptorRequest,
|
|
36
|
+
yandex.cloud.smartwebsecurity.v1.waf.rule_set_descriptor_pb2.RuleSetDescriptor,
|
|
37
|
+
]
|
|
38
|
+
"""Returns the specified RuleSetDescriptor resource."""
|
|
39
|
+
|
|
40
|
+
class RuleSetDescriptorServiceServicer(metaclass=abc.ABCMeta):
|
|
41
|
+
"""A set of methods for managing RuleSetDescriptor resources."""
|
|
42
|
+
|
|
43
|
+
@abc.abstractmethod
|
|
44
|
+
def Get(
|
|
45
|
+
self,
|
|
46
|
+
request: yandex.cloud.smartwebsecurity.v1.waf.rule_set_descriptor_service_pb2.GetRuleSetDescriptorRequest,
|
|
47
|
+
context: _ServicerContext,
|
|
48
|
+
) -> typing.Union[yandex.cloud.smartwebsecurity.v1.waf.rule_set_descriptor_pb2.RuleSetDescriptor, collections.abc.Awaitable[yandex.cloud.smartwebsecurity.v1.waf.rule_set_descriptor_pb2.RuleSetDescriptor]]:
|
|
49
|
+
"""Returns the specified RuleSetDescriptor resource."""
|
|
50
|
+
|
|
51
|
+
def add_RuleSetDescriptorServiceServicer_to_server(servicer: RuleSetDescriptorServiceServicer, server: typing.Union[grpc.Server, grpc.aio.Server]) -> None: ...
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: yandex/cloud/smartwebsecurity/v1/waf/waf_profile.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.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
|
15
|
+
from yandex.cloud import validation_pb2 as yandex_dot_cloud_dot_validation__pb2
|
|
16
|
+
from yandex.cloud.smartwebsecurity.v1 import security_profile_pb2 as yandex_dot_cloud_dot_smartwebsecurity_dot_v1_dot_security__profile__pb2
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n6yandex/cloud/smartwebsecurity/v1/waf/waf_profile.proto\x12$yandex.cloud.smartwebsecurity.v1.waf\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1dyandex/cloud/validation.proto\x1a\x37yandex/cloud/smartwebsecurity/v1/security_profile.proto\"\xa7\t\n\nWafProfile\x12\x10\n\x02id\x18\x01 \x01(\tB\x04\xe8\xc7\x31\x01\x12\x17\n\tfolder_id\x18\x02 \x01(\tB\x04\xe8\xc7\x31\x01\x12\x16\n\x08\x63loud_id\x18\x03 \x01(\tB\x04\xe8\xc7\x31\x01\x12\x38\n\x04name\x18\x04 \x01(\tB*\xe8\xc7\x31\x01\xf2\xc7\x31\x1a[a-zA-Z0-9][a-zA-Z0-9-_.]*\x8a\xc8\x31\x04\x31-50\x12\x1e\n\x0b\x64\x65scription\x18\x05 \x01(\tB\t\x8a\xc8\x31\x05<=512\x12\x89\x01\n\x06labels\x18\x06 \x03(\x0b\x32<.yandex.cloud.smartwebsecurity.v1.waf.WafProfile.LabelsEntryB;\xf2\xc7\x31\x0b[-_0-9a-z]*\x82\xc8\x31\x04<=64\x8a\xc8\x31\x04<=63\xb2\xc8\x31\x18\x12\x10[a-z][-_0-9a-z]*\x1a\x04\x31-63\x12.\n\ncreated_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x43\n\x05rules\x18\t \x03(\x0b\x32\x34.yandex.cloud.smartwebsecurity.v1.waf.WafProfileRule\x12V\n\x0f\x65xclusion_rules\x18\n \x03(\x0b\x32=.yandex.cloud.smartwebsecurity.v1.waf.WafProfileExclusionRule\x12U\n\rcore_rule_set\x18\x0b \x01(\x0b\x32<.yandex.cloud.smartwebsecurity.v1.waf.WafProfile.CoreRuleSetH\x00\x12\x61\n\x14\x61nalyze_request_body\x18\x0c \x01(\x0b\x32\x43.yandex.cloud.smartwebsecurity.v1.waf.WafProfile.AnalyzeRequestBody\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\xa5\x01\n\x0b\x43oreRuleSet\x12*\n\x15inbound_anomaly_score\x18\x01 \x01(\x03\x42\x0b\xfa\xc7\x31\x07\x32-10000\x12#\n\x0eparanoia_level\x18\x02 \x01(\x03\x42\x0b\xfa\xc7\x31\x07\x31,2,3,4\x12\x45\n\x08rule_set\x18\x03 \x01(\x0b\x32-.yandex.cloud.smartwebsecurity.v1.waf.RuleSetB\x04\xe8\xc7\x31\x01\x1a\xf9\x01\n\x12\x41nalyzeRequestBody\x12\x12\n\nis_enabled\x18\x01 \x01(\x08\x12\x30\n\nsize_limit\x18\x02 \x01(\x03\x42\x1c\xfa\xc7\x31\x18\x30,8,16,32,64,128,256,512\x12\x65\n\x11size_limit_action\x18\x03 \x01(\x0e\x32J.yandex.cloud.smartwebsecurity.v1.waf.WafProfile.AnalyzeRequestBody.Action\"6\n\x06\x41\x63tion\x12\x16\n\x12\x41\x43TION_UNSPECIFIED\x10\x00\x12\n\n\x06IGNORE\x10\x01\x12\x08\n\x04\x44\x45NY\x10\x02\x42\x10\n\x08rule_set\x12\x04\xc0\xc1\x31\x01J\x04\x08\x08\x10\t\"P\n\x0eWafProfileRule\x12\x15\n\x07rule_id\x18\x01 \x01(\tB\x04\xe8\xc7\x31\x01\x12\x12\n\nis_enabled\x18\x02 \x01(\x08\x12\x13\n\x0bis_blocking\x18\x03 \x01(\x08\"\xc3\x02\n\x17WafProfileExclusionRule\x12\x12\n\x04name\x18\x01 \x01(\tB\x04\xe8\xc7\x31\x01\x12\x1e\n\x0b\x64\x65scription\x18\x02 \x01(\tB\t\x8a\xc8\x31\x05<=512\x12>\n\tcondition\x18\x03 \x01(\x0b\x32+.yandex.cloud.smartwebsecurity.v1.Condition\x12g\n\rexclude_rules\x18\x04 \x01(\x0b\x32J.yandex.cloud.smartwebsecurity.v1.waf.WafProfileExclusionRule.ExcludeRulesB\x04\xe8\xc7\x31\x01\x12\x14\n\x0clog_excluded\x18\x05 \x01(\x08\x1a\x35\n\x0c\x45xcludeRules\x12\x13\n\x0b\x65xclude_all\x18\x01 \x01(\x08\x12\x10\n\x08rule_ids\x18\x02 \x03(\t\"4\n\x07RuleSet\x12\x12\n\x04name\x18\x01 \x01(\tB\x04\xe8\xc7\x31\x01\x12\x15\n\x07version\x18\x02 \x01(\tB\x04\xe8\xc7\x31\x01\x42\x85\x01\n(yandex.cloud.api.smartwebsecurity.v1.wafZYgithub.com/yandex-cloud/go-genproto/yandex/cloud/smartwebsecurity/v1/waf;smartwebsecurityb\x06proto3')
|
|
20
|
+
|
|
21
|
+
_globals = globals()
|
|
22
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
23
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'yandex.cloud.smartwebsecurity.v1.waf.waf_profile_pb2', _globals)
|
|
24
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
25
|
+
DESCRIPTOR._options = None
|
|
26
|
+
DESCRIPTOR._serialized_options = b'\n(yandex.cloud.api.smartwebsecurity.v1.wafZYgithub.com/yandex-cloud/go-genproto/yandex/cloud/smartwebsecurity/v1/waf;smartwebsecurity'
|
|
27
|
+
_WAFPROFILE_LABELSENTRY._options = None
|
|
28
|
+
_WAFPROFILE_LABELSENTRY._serialized_options = b'8\001'
|
|
29
|
+
_WAFPROFILE_CORERULESET.fields_by_name['inbound_anomaly_score']._options = None
|
|
30
|
+
_WAFPROFILE_CORERULESET.fields_by_name['inbound_anomaly_score']._serialized_options = b'\372\3071\0072-10000'
|
|
31
|
+
_WAFPROFILE_CORERULESET.fields_by_name['paranoia_level']._options = None
|
|
32
|
+
_WAFPROFILE_CORERULESET.fields_by_name['paranoia_level']._serialized_options = b'\372\3071\0071,2,3,4'
|
|
33
|
+
_WAFPROFILE_CORERULESET.fields_by_name['rule_set']._options = None
|
|
34
|
+
_WAFPROFILE_CORERULESET.fields_by_name['rule_set']._serialized_options = b'\350\3071\001'
|
|
35
|
+
_WAFPROFILE_ANALYZEREQUESTBODY.fields_by_name['size_limit']._options = None
|
|
36
|
+
_WAFPROFILE_ANALYZEREQUESTBODY.fields_by_name['size_limit']._serialized_options = b'\372\3071\0300,8,16,32,64,128,256,512'
|
|
37
|
+
_WAFPROFILE.oneofs_by_name['rule_set']._options = None
|
|
38
|
+
_WAFPROFILE.oneofs_by_name['rule_set']._serialized_options = b'\300\3011\001'
|
|
39
|
+
_WAFPROFILE.fields_by_name['id']._options = None
|
|
40
|
+
_WAFPROFILE.fields_by_name['id']._serialized_options = b'\350\3071\001'
|
|
41
|
+
_WAFPROFILE.fields_by_name['folder_id']._options = None
|
|
42
|
+
_WAFPROFILE.fields_by_name['folder_id']._serialized_options = b'\350\3071\001'
|
|
43
|
+
_WAFPROFILE.fields_by_name['cloud_id']._options = None
|
|
44
|
+
_WAFPROFILE.fields_by_name['cloud_id']._serialized_options = b'\350\3071\001'
|
|
45
|
+
_WAFPROFILE.fields_by_name['name']._options = None
|
|
46
|
+
_WAFPROFILE.fields_by_name['name']._serialized_options = b'\350\3071\001\362\3071\032[a-zA-Z0-9][a-zA-Z0-9-_.]*\212\3101\0041-50'
|
|
47
|
+
_WAFPROFILE.fields_by_name['description']._options = None
|
|
48
|
+
_WAFPROFILE.fields_by_name['description']._serialized_options = b'\212\3101\005<=512'
|
|
49
|
+
_WAFPROFILE.fields_by_name['labels']._options = None
|
|
50
|
+
_WAFPROFILE.fields_by_name['labels']._serialized_options = b'\362\3071\013[-_0-9a-z]*\202\3101\004<=64\212\3101\004<=63\262\3101\030\022\020[a-z][-_0-9a-z]*\032\0041-63'
|
|
51
|
+
_WAFPROFILERULE.fields_by_name['rule_id']._options = None
|
|
52
|
+
_WAFPROFILERULE.fields_by_name['rule_id']._serialized_options = b'\350\3071\001'
|
|
53
|
+
_WAFPROFILEEXCLUSIONRULE.fields_by_name['name']._options = None
|
|
54
|
+
_WAFPROFILEEXCLUSIONRULE.fields_by_name['name']._serialized_options = b'\350\3071\001'
|
|
55
|
+
_WAFPROFILEEXCLUSIONRULE.fields_by_name['description']._options = None
|
|
56
|
+
_WAFPROFILEEXCLUSIONRULE.fields_by_name['description']._serialized_options = b'\212\3101\005<=512'
|
|
57
|
+
_WAFPROFILEEXCLUSIONRULE.fields_by_name['exclude_rules']._options = None
|
|
58
|
+
_WAFPROFILEEXCLUSIONRULE.fields_by_name['exclude_rules']._serialized_options = b'\350\3071\001'
|
|
59
|
+
_RULESET.fields_by_name['name']._options = None
|
|
60
|
+
_RULESET.fields_by_name['name']._serialized_options = b'\350\3071\001'
|
|
61
|
+
_RULESET.fields_by_name['version']._options = None
|
|
62
|
+
_RULESET.fields_by_name['version']._serialized_options = b'\350\3071\001'
|
|
63
|
+
_globals['_WAFPROFILE']._serialized_start=218
|
|
64
|
+
_globals['_WAFPROFILE']._serialized_end=1409
|
|
65
|
+
_globals['_WAFPROFILE_LABELSENTRY']._serialized_start=920
|
|
66
|
+
_globals['_WAFPROFILE_LABELSENTRY']._serialized_end=965
|
|
67
|
+
_globals['_WAFPROFILE_CORERULESET']._serialized_start=968
|
|
68
|
+
_globals['_WAFPROFILE_CORERULESET']._serialized_end=1133
|
|
69
|
+
_globals['_WAFPROFILE_ANALYZEREQUESTBODY']._serialized_start=1136
|
|
70
|
+
_globals['_WAFPROFILE_ANALYZEREQUESTBODY']._serialized_end=1385
|
|
71
|
+
_globals['_WAFPROFILE_ANALYZEREQUESTBODY_ACTION']._serialized_start=1331
|
|
72
|
+
_globals['_WAFPROFILE_ANALYZEREQUESTBODY_ACTION']._serialized_end=1385
|
|
73
|
+
_globals['_WAFPROFILERULE']._serialized_start=1411
|
|
74
|
+
_globals['_WAFPROFILERULE']._serialized_end=1491
|
|
75
|
+
_globals['_WAFPROFILEEXCLUSIONRULE']._serialized_start=1494
|
|
76
|
+
_globals['_WAFPROFILEEXCLUSIONRULE']._serialized_end=1817
|
|
77
|
+
_globals['_WAFPROFILEEXCLUSIONRULE_EXCLUDERULES']._serialized_start=1764
|
|
78
|
+
_globals['_WAFPROFILEEXCLUSIONRULE_EXCLUDERULES']._serialized_end=1817
|
|
79
|
+
_globals['_RULESET']._serialized_start=1819
|
|
80
|
+
_globals['_RULESET']._serialized_end=1871
|
|
81
|
+
# @@protoc_insertion_point(module_scope)
|