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.

Files changed (133) hide show
  1. yandex/cloud/backup/v1/resource_pb2.py +10 -10
  2. yandex/cloud/backup/v1/resource_pb2.pyi +5 -1
  3. yandex/cloud/datatransfer/v1/transfer_pb2.py +12 -10
  4. yandex/cloud/datatransfer/v1/transfer_pb2.pyi +17 -3
  5. yandex/cloud/loadtesting/agent/v1/agent_registration_service_pb2.py +18 -11
  6. yandex/cloud/loadtesting/agent/v1/agent_registration_service_pb2.pyi +23 -1
  7. yandex/cloud/loadtesting/api/v1/agent/agent_pb2.py +6 -5
  8. yandex/cloud/loadtesting/api/v1/agent/agent_pb2.pyi +9 -1
  9. yandex/cloud/loadtesting/api/v1/agent/log_settings_pb2.py +29 -0
  10. yandex/cloud/loadtesting/api/v1/agent/log_settings_pb2.pyi +27 -0
  11. yandex/cloud/loadtesting/api/v1/agent/log_settings_pb2_grpc.py +4 -0
  12. yandex/cloud/loadtesting/api/v1/agent/log_settings_pb2_grpc.pyi +17 -0
  13. yandex/cloud/loadtesting/api/v1/agent_service_pb2.py +27 -26
  14. yandex/cloud/loadtesting/api/v1/agent_service_pb2.pyi +9 -2
  15. yandex/cloud/loadtesting/api/v1/test/imbalance_point_pb2.py +2 -2
  16. yandex/cloud/loadtesting/api/v1/test/imbalance_point_pb2.pyi +5 -1
  17. yandex/cloud/mdb/mysql/v1/backup_service_pb2.py +17 -13
  18. yandex/cloud/mdb/mysql/v1/backup_service_pb2_grpc.py +35 -0
  19. yandex/cloud/mdb/mysql/v1/backup_service_pb2_grpc.pyi +21 -0
  20. yandex/cloud/mdb/opensearch/v1/auth_pb2.py +6 -5
  21. yandex/cloud/mdb/opensearch/v1/auth_pb2.pyi +9 -1
  22. yandex/cloud/mdb/opensearch/v1/cluster_pb2.py +50 -43
  23. yandex/cloud/mdb/opensearch/v1/cluster_pb2.pyi +40 -4
  24. yandex/cloud/mdb/opensearch/v1/cluster_service_pb2.py +61 -61
  25. yandex/cloud/mdb/opensearch/v1/cluster_service_pb2.pyi +32 -8
  26. yandex/cloud/monitoring/v3/chart_widget_pb2.py +46 -44
  27. yandex/cloud/monitoring/v3/chart_widget_pb2.pyi +28 -2
  28. yandex/cloud/serverless/eventrouter/__init__.py +0 -0
  29. yandex/cloud/serverless/eventrouter/v1/__init__.py +0 -0
  30. yandex/cloud/serverless/eventrouter/v1/bus_pb2.py +33 -0
  31. yandex/cloud/serverless/eventrouter/v1/bus_pb2.pyi +107 -0
  32. yandex/cloud/serverless/eventrouter/v1/bus_pb2_grpc.py +4 -0
  33. yandex/cloud/serverless/eventrouter/v1/bus_pb2_grpc.pyi +17 -0
  34. yandex/cloud/serverless/eventrouter/v1/bus_service_pb2.py +115 -0
  35. yandex/cloud/serverless/eventrouter/v1/bus_service_pb2.pyi +320 -0
  36. yandex/cloud/serverless/eventrouter/v1/bus_service_pb2_grpc.py +346 -0
  37. yandex/cloud/serverless/eventrouter/v1/bus_service_pb2_grpc.pyi +219 -0
  38. yandex/cloud/serverless/eventrouter/v1/connector_pb2.py +61 -0
  39. yandex/cloud/serverless/eventrouter/v1/connector_pb2.pyi +223 -0
  40. yandex/cloud/serverless/eventrouter/v1/connector_pb2_grpc.py +4 -0
  41. yandex/cloud/serverless/eventrouter/v1/connector_pb2_grpc.pyi +17 -0
  42. yandex/cloud/serverless/eventrouter/v1/connector_service_pb2.py +135 -0
  43. yandex/cloud/serverless/eventrouter/v1/connector_service_pb2.pyi +397 -0
  44. yandex/cloud/serverless/eventrouter/v1/connector_service_pb2_grpc.py +414 -0
  45. yandex/cloud/serverless/eventrouter/v1/connector_service_pb2_grpc.pyi +259 -0
  46. yandex/cloud/serverless/eventrouter/v1/event_service_pb2.py +37 -0
  47. yandex/cloud/serverless/eventrouter/v1/event_service_pb2.pyi +31 -0
  48. yandex/cloud/serverless/eventrouter/v1/event_service_pb2_grpc.py +71 -0
  49. yandex/cloud/serverless/eventrouter/v1/event_service_pb2_grpc.pyi +51 -0
  50. yandex/cloud/serverless/eventrouter/v1/rule_pb2.py +123 -0
  51. yandex/cloud/serverless/eventrouter/v1/rule_pb2.pyi +532 -0
  52. yandex/cloud/serverless/eventrouter/v1/rule_pb2_grpc.py +4 -0
  53. yandex/cloud/serverless/eventrouter/v1/rule_pb2_grpc.pyi +17 -0
  54. yandex/cloud/serverless/eventrouter/v1/rule_service_pb2.py +139 -0
  55. yandex/cloud/serverless/eventrouter/v1/rule_service_pb2.pyi +413 -0
  56. yandex/cloud/serverless/eventrouter/v1/rule_service_pb2_grpc.py +414 -0
  57. yandex/cloud/serverless/eventrouter/v1/rule_service_pb2_grpc.pyi +259 -0
  58. yandex/cloud/serverless/functions/v1/function_pb2.py +34 -34
  59. yandex/cloud/serverless/functions/v1/function_pb2.pyi +8 -0
  60. yandex/cloud/serverless/workflows/__init__.py +0 -0
  61. yandex/cloud/serverless/workflows/v1/__init__.py +0 -0
  62. yandex/cloud/serverless/workflows/v1/execution_pb2.py +43 -0
  63. yandex/cloud/serverless/workflows/v1/execution_pb2.pyi +203 -0
  64. yandex/cloud/serverless/workflows/v1/execution_pb2_grpc.py +4 -0
  65. yandex/cloud/serverless/workflows/v1/execution_pb2_grpc.pyi +17 -0
  66. yandex/cloud/serverless/workflows/v1/execution_service_pb2.py +74 -0
  67. yandex/cloud/serverless/workflows/v1/execution_service_pb2.pyi +231 -0
  68. yandex/cloud/serverless/workflows/v1/execution_service_pb2_grpc.py +206 -0
  69. yandex/cloud/serverless/workflows/v1/execution_service_pb2_grpc.pyi +130 -0
  70. yandex/cloud/serverless/workflows/v1/history_entry_pb2.py +41 -0
  71. yandex/cloud/serverless/workflows/v1/history_entry_pb2.pyi +174 -0
  72. yandex/cloud/serverless/workflows/v1/history_entry_pb2_grpc.py +4 -0
  73. yandex/cloud/serverless/workflows/v1/history_entry_pb2_grpc.pyi +17 -0
  74. yandex/cloud/serverless/workflows/v1/workflow_pb2.py +47 -0
  75. yandex/cloud/serverless/workflows/v1/workflow_pb2.pyi +260 -0
  76. yandex/cloud/serverless/workflows/v1/workflow_pb2_grpc.py +4 -0
  77. yandex/cloud/serverless/workflows/v1/workflow_pb2_grpc.pyi +17 -0
  78. yandex/cloud/serverless/workflows/v1/workflow_service_pb2.py +112 -0
  79. yandex/cloud/serverless/workflows/v1/workflow_service_pb2.pyi +395 -0
  80. yandex/cloud/serverless/workflows/v1/workflow_service_pb2_grpc.py +241 -0
  81. yandex/cloud/serverless/workflows/v1/workflow_service_pb2_grpc.pyi +151 -0
  82. yandex/cloud/smartwebsecurity/v1/advanced_rate_limiter/__init__.py +0 -0
  83. yandex/cloud/smartwebsecurity/v1/advanced_rate_limiter/advanced_rate_limiter_profile_pb2.py +77 -0
  84. yandex/cloud/smartwebsecurity/v1/advanced_rate_limiter/advanced_rate_limiter_profile_pb2.pyi +352 -0
  85. yandex/cloud/smartwebsecurity/v1/advanced_rate_limiter/advanced_rate_limiter_profile_pb2_grpc.py +4 -0
  86. yandex/cloud/smartwebsecurity/v1/advanced_rate_limiter/advanced_rate_limiter_profile_pb2_grpc.pyi +17 -0
  87. yandex/cloud/smartwebsecurity/v1/advanced_rate_limiter/advanced_rate_limiter_profile_service_pb2.py +78 -0
  88. yandex/cloud/smartwebsecurity/v1/advanced_rate_limiter/advanced_rate_limiter_profile_service_pb2.pyi +244 -0
  89. yandex/cloud/smartwebsecurity/v1/advanced_rate_limiter/advanced_rate_limiter_profile_service_pb2_grpc.py +208 -0
  90. yandex/cloud/smartwebsecurity/v1/advanced_rate_limiter/advanced_rate_limiter_profile_service_pb2_grpc.pyi +132 -0
  91. yandex/cloud/smartwebsecurity/v1/waf/__init__.py +0 -0
  92. yandex/cloud/smartwebsecurity/v1/waf/rule_set_descriptor_pb2.py +35 -0
  93. yandex/cloud/smartwebsecurity/v1/waf/rule_set_descriptor_pb2.pyi +71 -0
  94. yandex/cloud/smartwebsecurity/v1/waf/rule_set_descriptor_pb2_grpc.py +4 -0
  95. yandex/cloud/smartwebsecurity/v1/waf/rule_set_descriptor_pb2_grpc.pyi +17 -0
  96. yandex/cloud/smartwebsecurity/v1/waf/rule_set_descriptor_service_pb2.py +37 -0
  97. yandex/cloud/smartwebsecurity/v1/waf/rule_set_descriptor_service_pb2.pyi +31 -0
  98. yandex/cloud/smartwebsecurity/v1/waf/rule_set_descriptor_service_pb2_grpc.py +71 -0
  99. yandex/cloud/smartwebsecurity/v1/waf/rule_set_descriptor_service_pb2_grpc.pyi +51 -0
  100. yandex/cloud/smartwebsecurity/v1/waf/waf_profile_pb2.py +81 -0
  101. yandex/cloud/smartwebsecurity/v1/waf/waf_profile_pb2.pyi +296 -0
  102. yandex/cloud/smartwebsecurity/v1/waf/waf_profile_pb2_grpc.py +4 -0
  103. yandex/cloud/smartwebsecurity/v1/waf/waf_profile_pb2_grpc.pyi +17 -0
  104. yandex/cloud/smartwebsecurity/v1/waf/waf_profile_service_pb2.py +76 -0
  105. yandex/cloud/smartwebsecurity/v1/waf/waf_profile_service_pb2.pyi +283 -0
  106. yandex/cloud/smartwebsecurity/v1/waf/waf_profile_service_pb2_grpc.py +208 -0
  107. yandex/cloud/smartwebsecurity/v1/waf/waf_profile_service_pb2_grpc.pyi +132 -0
  108. yandex/cloud/speechsense/v1/analysis/summarization_pb2.py +32 -0
  109. yandex/cloud/speechsense/v1/analysis/summarization_pb2.pyi +95 -0
  110. yandex/cloud/speechsense/v1/analysis/summarization_pb2_grpc.py +4 -0
  111. yandex/cloud/speechsense/v1/analysis/summarization_pb2_grpc.pyi +17 -0
  112. yandex/cloud/speechsense/v1/project_pb2.py +29 -0
  113. yandex/cloud/speechsense/v1/project_pb2.pyi +79 -0
  114. yandex/cloud/speechsense/v1/project_pb2_grpc.py +4 -0
  115. yandex/cloud/speechsense/v1/project_pb2_grpc.pyi +17 -0
  116. yandex/cloud/speechsense/v1/project_service_pb2.py +35 -0
  117. yandex/cloud/speechsense/v1/project_service_pb2.pyi +59 -0
  118. yandex/cloud/speechsense/v1/project_service_pb2_grpc.py +68 -0
  119. yandex/cloud/speechsense/v1/project_service_pb2_grpc.pyi +45 -0
  120. yandex/cloud/speechsense/v1/talk_pb2.py +8 -7
  121. yandex/cloud/speechsense/v1/talk_pb2.pyi +7 -2
  122. yandex/cloud/video/v1/channel_service_pb2.py +33 -28
  123. yandex/cloud/video/v1/episode_service_pb2.py +56 -47
  124. yandex/cloud/video/v1/stream_line_service_pb2.py +67 -60
  125. yandex/cloud/video/v1/stream_service_pb2.py +46 -41
  126. yandex/cloud/video/v1/thumbnail_service_pb2.py +29 -22
  127. yandex/cloud/video/v1/video_service_pb2.py +62 -53
  128. {yandexcloud-0.316.0.dist-info → yandexcloud-0.317.0.dist-info}/METADATA +1 -1
  129. {yandexcloud-0.316.0.dist-info → yandexcloud-0.317.0.dist-info}/RECORD +133 -39
  130. {yandexcloud-0.316.0.dist-info → yandexcloud-0.317.0.dist-info}/WHEEL +1 -1
  131. {yandexcloud-0.316.0.dist-info → yandexcloud-0.317.0.dist-info}/AUTHORS +0 -0
  132. {yandexcloud-0.316.0.dist-info → yandexcloud-0.317.0.dist-info}/LICENSE +0 -0
  133. {yandexcloud-0.316.0.dist-info → yandexcloud-0.317.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,296 @@
1
+ """
2
+ @generated by mypy-protobuf. Do not edit manually!
3
+ isort:skip_file
4
+ """
5
+
6
+ import builtins
7
+ import collections.abc
8
+ import google.protobuf.descriptor
9
+ import google.protobuf.internal.containers
10
+ import google.protobuf.internal.enum_type_wrapper
11
+ import google.protobuf.message
12
+ import google.protobuf.timestamp_pb2
13
+ import sys
14
+ import typing
15
+ import yandex.cloud.smartwebsecurity.v1.security_profile_pb2
16
+
17
+ if sys.version_info >= (3, 10):
18
+ import typing as typing_extensions
19
+ else:
20
+ import typing_extensions
21
+
22
+ DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
23
+
24
+ @typing.final
25
+ class WafProfile(google.protobuf.message.Message):
26
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
27
+
28
+ @typing.final
29
+ class LabelsEntry(google.protobuf.message.Message):
30
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
31
+
32
+ KEY_FIELD_NUMBER: builtins.int
33
+ VALUE_FIELD_NUMBER: builtins.int
34
+ key: builtins.str
35
+ value: builtins.str
36
+ def __init__(
37
+ self,
38
+ *,
39
+ key: builtins.str = ...,
40
+ value: builtins.str = ...,
41
+ ) -> None: ...
42
+ def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
43
+
44
+ @typing.final
45
+ class CoreRuleSet(google.protobuf.message.Message):
46
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
47
+
48
+ INBOUND_ANOMALY_SCORE_FIELD_NUMBER: builtins.int
49
+ PARANOIA_LEVEL_FIELD_NUMBER: builtins.int
50
+ RULE_SET_FIELD_NUMBER: builtins.int
51
+ inbound_anomaly_score: builtins.int
52
+ """Anomaly score.
53
+ Enter an integer within the range of 2 and 10000.
54
+ The higher this value, the more likely it is that the request that satisfies the rule is an attack.
55
+ See [Rules](/docs/smartwebsecurity/concepts/waf#anomaly) for more details.
56
+ """
57
+ paranoia_level: builtins.int
58
+ """Paranoia level.
59
+ Enter an integer within the range of 1 and 4.
60
+ Paranoia level classifies rules according to their aggression. The higher the paranoia level, the better your protection,
61
+ but also the higher the probability of WAF false positives.
62
+ See [Rules](/docs/smartwebsecurity/concepts/waf#paranoia) for more details.
63
+ NOTE: this option has no effect on enabling or disabling rules.
64
+ it is used only as recommendation for user to enable all rules with paranoia_level <= this value.
65
+ """
66
+ @property
67
+ def rule_set(self) -> global___RuleSet:
68
+ """Rule set."""
69
+
70
+ def __init__(
71
+ self,
72
+ *,
73
+ inbound_anomaly_score: builtins.int = ...,
74
+ paranoia_level: builtins.int = ...,
75
+ rule_set: global___RuleSet | None = ...,
76
+ ) -> None: ...
77
+ def HasField(self, field_name: typing.Literal["rule_set", b"rule_set"]) -> builtins.bool: ...
78
+ def ClearField(self, field_name: typing.Literal["inbound_anomaly_score", b"inbound_anomaly_score", "paranoia_level", b"paranoia_level", "rule_set", b"rule_set"]) -> None: ...
79
+
80
+ @typing.final
81
+ class AnalyzeRequestBody(google.protobuf.message.Message):
82
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
83
+
84
+ class _Action:
85
+ ValueType = typing.NewType("ValueType", builtins.int)
86
+ V: typing_extensions.TypeAlias = ValueType
87
+
88
+ class _ActionEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[WafProfile.AnalyzeRequestBody._Action.ValueType], builtins.type):
89
+ DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
90
+ ACTION_UNSPECIFIED: WafProfile.AnalyzeRequestBody._Action.ValueType # 0
91
+ IGNORE: WafProfile.AnalyzeRequestBody._Action.ValueType # 1
92
+ """Ignore request."""
93
+ DENY: WafProfile.AnalyzeRequestBody._Action.ValueType # 2
94
+ """Deny request."""
95
+
96
+ class Action(_Action, metaclass=_ActionEnumTypeWrapper):
97
+ """Action to perform if maximum size of body exceeded."""
98
+
99
+ ACTION_UNSPECIFIED: WafProfile.AnalyzeRequestBody.Action.ValueType # 0
100
+ IGNORE: WafProfile.AnalyzeRequestBody.Action.ValueType # 1
101
+ """Ignore request."""
102
+ DENY: WafProfile.AnalyzeRequestBody.Action.ValueType # 2
103
+ """Deny request."""
104
+
105
+ IS_ENABLED_FIELD_NUMBER: builtins.int
106
+ SIZE_LIMIT_FIELD_NUMBER: builtins.int
107
+ SIZE_LIMIT_ACTION_FIELD_NUMBER: builtins.int
108
+ is_enabled: builtins.bool
109
+ """Possible to turn analyzer on and turn if off."""
110
+ size_limit: builtins.int
111
+ """Maximum size of body to pass to analyzer. In kilobytes."""
112
+ size_limit_action: global___WafProfile.AnalyzeRequestBody.Action.ValueType
113
+ """Action to perform if maximum size of body exceeded."""
114
+ def __init__(
115
+ self,
116
+ *,
117
+ is_enabled: builtins.bool = ...,
118
+ size_limit: builtins.int = ...,
119
+ size_limit_action: global___WafProfile.AnalyzeRequestBody.Action.ValueType = ...,
120
+ ) -> None: ...
121
+ def ClearField(self, field_name: typing.Literal["is_enabled", b"is_enabled", "size_limit", b"size_limit", "size_limit_action", b"size_limit_action"]) -> None: ...
122
+
123
+ ID_FIELD_NUMBER: builtins.int
124
+ FOLDER_ID_FIELD_NUMBER: builtins.int
125
+ CLOUD_ID_FIELD_NUMBER: builtins.int
126
+ NAME_FIELD_NUMBER: builtins.int
127
+ DESCRIPTION_FIELD_NUMBER: builtins.int
128
+ LABELS_FIELD_NUMBER: builtins.int
129
+ CREATED_AT_FIELD_NUMBER: builtins.int
130
+ RULES_FIELD_NUMBER: builtins.int
131
+ EXCLUSION_RULES_FIELD_NUMBER: builtins.int
132
+ CORE_RULE_SET_FIELD_NUMBER: builtins.int
133
+ ANALYZE_REQUEST_BODY_FIELD_NUMBER: builtins.int
134
+ id: builtins.str
135
+ """ID of the WAF profile."""
136
+ folder_id: builtins.str
137
+ """ID of the folder that the WAF profile belongs to."""
138
+ cloud_id: builtins.str
139
+ """ID of the cloud that the WAF profile belongs to."""
140
+ name: builtins.str
141
+ """Name of the WAF profile. The name is unique within the folder. 1-50 characters long."""
142
+ description: builtins.str
143
+ """Optional description of the WAF profile."""
144
+ @property
145
+ def labels(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]:
146
+ """Labels as `` key:value `` pairs. Maximum of 64 per resource."""
147
+
148
+ @property
149
+ def created_at(self) -> google.protobuf.timestamp_pb2.Timestamp:
150
+ """Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format."""
151
+
152
+ @property
153
+ def rules(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___WafProfileRule]:
154
+ """Settings for each rule in rule set."""
155
+
156
+ @property
157
+ def exclusion_rules(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___WafProfileExclusionRule]:
158
+ """List of exclusion rules. See [Rules](/docs/smartwebsecurity/concepts/waf#exclusion-rules)."""
159
+
160
+ @property
161
+ def core_rule_set(self) -> global___WafProfile.CoreRuleSet:
162
+ """Core rule set settings. See [Basic rule set](/docs/smartwebsecurity/concepts/waf#rules-set) for details."""
163
+
164
+ @property
165
+ def analyze_request_body(self) -> global___WafProfile.AnalyzeRequestBody:
166
+ """Parameters for request body analyzer."""
167
+
168
+ def __init__(
169
+ self,
170
+ *,
171
+ id: builtins.str = ...,
172
+ folder_id: builtins.str = ...,
173
+ cloud_id: builtins.str = ...,
174
+ name: builtins.str = ...,
175
+ description: builtins.str = ...,
176
+ labels: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
177
+ created_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
178
+ rules: collections.abc.Iterable[global___WafProfileRule] | None = ...,
179
+ exclusion_rules: collections.abc.Iterable[global___WafProfileExclusionRule] | None = ...,
180
+ core_rule_set: global___WafProfile.CoreRuleSet | None = ...,
181
+ analyze_request_body: global___WafProfile.AnalyzeRequestBody | None = ...,
182
+ ) -> None: ...
183
+ def HasField(self, field_name: typing.Literal["analyze_request_body", b"analyze_request_body", "core_rule_set", b"core_rule_set", "created_at", b"created_at", "rule_set", b"rule_set"]) -> builtins.bool: ...
184
+ def ClearField(self, field_name: typing.Literal["analyze_request_body", b"analyze_request_body", "cloud_id", b"cloud_id", "core_rule_set", b"core_rule_set", "created_at", b"created_at", "description", b"description", "exclusion_rules", b"exclusion_rules", "folder_id", b"folder_id", "id", b"id", "labels", b"labels", "name", b"name", "rule_set", b"rule_set", "rules", b"rules"]) -> None: ...
185
+ def WhichOneof(self, oneof_group: typing.Literal["rule_set", b"rule_set"]) -> typing.Literal["core_rule_set"] | None: ...
186
+
187
+ global___WafProfile = WafProfile
188
+
189
+ @typing.final
190
+ class WafProfileRule(google.protobuf.message.Message):
191
+ """WafProfileRule object. Determines settings for each rule_id in rule set."""
192
+
193
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
194
+
195
+ RULE_ID_FIELD_NUMBER: builtins.int
196
+ IS_ENABLED_FIELD_NUMBER: builtins.int
197
+ IS_BLOCKING_FIELD_NUMBER: builtins.int
198
+ rule_id: builtins.str
199
+ """Rule ID."""
200
+ is_enabled: builtins.bool
201
+ """Determines is it rule enabled or not."""
202
+ is_blocking: builtins.bool
203
+ """Determines is it rule blocking or not."""
204
+ def __init__(
205
+ self,
206
+ *,
207
+ rule_id: builtins.str = ...,
208
+ is_enabled: builtins.bool = ...,
209
+ is_blocking: builtins.bool = ...,
210
+ ) -> None: ...
211
+ def ClearField(self, field_name: typing.Literal["is_blocking", b"is_blocking", "is_enabled", b"is_enabled", "rule_id", b"rule_id"]) -> None: ...
212
+
213
+ global___WafProfileRule = WafProfileRule
214
+
215
+ @typing.final
216
+ class WafProfileExclusionRule(google.protobuf.message.Message):
217
+ """A WafProfileExclusionRule object. See [Exclusion rules](/docs/smartwebsecurity/concepts/waf#exclusion-rules)."""
218
+
219
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
220
+
221
+ @typing.final
222
+ class ExcludeRules(google.protobuf.message.Message):
223
+ """Determines list of excluded rules."""
224
+
225
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
226
+
227
+ EXCLUDE_ALL_FIELD_NUMBER: builtins.int
228
+ RULE_IDS_FIELD_NUMBER: builtins.int
229
+ exclude_all: builtins.bool
230
+ """Set this option true to exclude all rules."""
231
+ @property
232
+ def rule_ids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
233
+ """List of rules to exclude."""
234
+
235
+ def __init__(
236
+ self,
237
+ *,
238
+ exclude_all: builtins.bool = ...,
239
+ rule_ids: collections.abc.Iterable[builtins.str] | None = ...,
240
+ ) -> None: ...
241
+ def ClearField(self, field_name: typing.Literal["exclude_all", b"exclude_all", "rule_ids", b"rule_ids"]) -> None: ...
242
+
243
+ NAME_FIELD_NUMBER: builtins.int
244
+ DESCRIPTION_FIELD_NUMBER: builtins.int
245
+ CONDITION_FIELD_NUMBER: builtins.int
246
+ EXCLUDE_RULES_FIELD_NUMBER: builtins.int
247
+ LOG_EXCLUDED_FIELD_NUMBER: builtins.int
248
+ name: builtins.str
249
+ """Name of exclusion rule."""
250
+ description: builtins.str
251
+ """Optional description of the rule. 0-512 characters long."""
252
+ log_excluded: builtins.bool
253
+ """Records the fact that an exception rule is triggered."""
254
+ @property
255
+ def condition(self) -> yandex.cloud.smartwebsecurity.v1.security_profile_pb2.Condition:
256
+ """The condition for matching traffic."""
257
+
258
+ @property
259
+ def exclude_rules(self) -> global___WafProfileExclusionRule.ExcludeRules:
260
+ """Exclude rules."""
261
+
262
+ def __init__(
263
+ self,
264
+ *,
265
+ name: builtins.str = ...,
266
+ description: builtins.str = ...,
267
+ condition: yandex.cloud.smartwebsecurity.v1.security_profile_pb2.Condition | None = ...,
268
+ exclude_rules: global___WafProfileExclusionRule.ExcludeRules | None = ...,
269
+ log_excluded: builtins.bool = ...,
270
+ ) -> None: ...
271
+ def HasField(self, field_name: typing.Literal["condition", b"condition", "exclude_rules", b"exclude_rules"]) -> builtins.bool: ...
272
+ def ClearField(self, field_name: typing.Literal["condition", b"condition", "description", b"description", "exclude_rules", b"exclude_rules", "log_excluded", b"log_excluded", "name", b"name"]) -> None: ...
273
+
274
+ global___WafProfileExclusionRule = WafProfileExclusionRule
275
+
276
+ @typing.final
277
+ class RuleSet(google.protobuf.message.Message):
278
+ """A RuleSet object. Determines name and version of rule set."""
279
+
280
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
281
+
282
+ NAME_FIELD_NUMBER: builtins.int
283
+ VERSION_FIELD_NUMBER: builtins.int
284
+ name: builtins.str
285
+ """Name of rule set."""
286
+ version: builtins.str
287
+ """Version of rule set."""
288
+ def __init__(
289
+ self,
290
+ *,
291
+ name: builtins.str = ...,
292
+ version: builtins.str = ...,
293
+ ) -> None: ...
294
+ def ClearField(self, field_name: typing.Literal["name", b"name", "version", b"version"]) -> None: ...
295
+
296
+ global___RuleSet = RuleSet
@@ -0,0 +1,4 @@
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
+
@@ -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/smartwebsecurity/v1/waf/waf_profile_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.operation import operation_pb2 as yandex_dot_cloud_dot_operation_dot_operation__pb2
18
+ from yandex.cloud.smartwebsecurity.v1.waf import waf_profile_pb2 as yandex_dot_cloud_dot_smartwebsecurity_dot_v1_dot_waf_dot_waf__profile__pb2
19
+ from yandex.cloud import validation_pb2 as yandex_dot_cloud_dot_validation__pb2
20
+
21
+
22
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n>yandex/cloud/smartwebsecurity/v1/waf/waf_profile_service.proto\x12$yandex.cloud.smartwebsecurity.v1.waf\x1a\x1cgoogle/api/annotations.proto\x1a google/protobuf/field_mask.proto\x1a yandex/cloud/api/operation.proto\x1a&yandex/cloud/operation/operation.proto\x1a\x36yandex/cloud/smartwebsecurity/v1/waf/waf_profile.proto\x1a\x1dyandex/cloud/validation.proto\"4\n\x14GetWafProfileRequest\x12\x1c\n\x0ewaf_profile_id\x18\x01 \x01(\tB\x04\xe8\xc7\x31\x01\"1\n\x16ListWafProfilesRequest\x12\x17\n\tfolder_id\x18\x01 \x01(\tB\x04\xe8\xc7\x31\x01\"a\n\x17ListWafProfilesResponse\x12\x46\n\x0cwaf_profiles\x18\x01 \x03(\x0b\x32\x30.yandex.cloud.smartwebsecurity.v1.waf.WafProfile\"\xbc\x04\n\x17\x43reateWafProfileRequest\x12\x11\n\tfolder_id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12Y\n\x06labels\x18\x04 \x03(\x0b\x32I.yandex.cloud.smartwebsecurity.v1.waf.CreateWafProfileRequest.LabelsEntry\x12\x43\n\x05rules\x18\x05 \x03(\x0b\x32\x34.yandex.cloud.smartwebsecurity.v1.waf.WafProfileRule\x12V\n\x0f\x65xclusion_rules\x18\x06 \x03(\x0b\x32=.yandex.cloud.smartwebsecurity.v1.waf.WafProfileExclusionRule\x12U\n\rcore_rule_set\x18\x07 \x01(\x0b\x32<.yandex.cloud.smartwebsecurity.v1.waf.WafProfile.CoreRuleSetH\x00\x12\x61\n\x14\x61nalyze_request_body\x18\x08 \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\x42\n\n\x08rule_set\"2\n\x18\x43reateWafProfileMetadata\x12\x16\n\x0ewaf_profile_id\x18\x01 \x01(\t\"\xf8\x04\n\x17UpdateWafProfileRequest\x12\x1c\n\x0ewaf_profile_id\x18\x01 \x01(\tB\x04\xe8\xc7\x31\x01\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x04 \x01(\t\x12Y\n\x06labels\x18\x05 \x03(\x0b\x32I.yandex.cloud.smartwebsecurity.v1.waf.UpdateWafProfileRequest.LabelsEntry\x12\x43\n\x05rules\x18\x06 \x03(\x0b\x32\x34.yandex.cloud.smartwebsecurity.v1.waf.WafProfileRule\x12V\n\x0f\x65xclusion_rules\x18\x07 \x03(\x0b\x32=.yandex.cloud.smartwebsecurity.v1.waf.WafProfileExclusionRule\x12U\n\rcore_rule_set\x18\x08 \x01(\x0b\x32<.yandex.cloud.smartwebsecurity.v1.waf.WafProfile.CoreRuleSetH\x00\x12\x61\n\x14\x61nalyze_request_body\x18\t \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\x42\n\n\x08rule_set\"2\n\x18UpdateWafProfileMetadata\x12\x16\n\x0ewaf_profile_id\x18\x01 \x01(\t\"7\n\x17\x44\x65leteWafProfileRequest\x12\x1c\n\x0ewaf_profile_id\x18\x01 \x01(\tB\x04\xe8\xc7\x31\x01\"2\n\x18\x44\x65leteWafProfileMetadata\x12\x16\n\x0ewaf_profile_id\x18\x01 \x01(\t2\xea\x07\n\x11WafProfileService\x12\xae\x01\n\x03Get\x12:.yandex.cloud.smartwebsecurity.v1.waf.GetWafProfileRequest\x1a\x30.yandex.cloud.smartwebsecurity.v1.waf.WafProfile\"9\x82\xd3\xe4\x93\x02\x33\x12\x31/smartwebsecurity/v1/wafProfiles/{waf_profile_id}\x12\xad\x01\n\x04List\x12<.yandex.cloud.smartwebsecurity.v1.waf.ListWafProfilesRequest\x1a=.yandex.cloud.smartwebsecurity.v1.waf.ListWafProfilesResponse\"(\x82\xd3\xe4\x93\x02\"\x12 /smartwebsecurity/v1/wafProfiles\x12\xc1\x01\n\x06\x43reate\x12=.yandex.cloud.smartwebsecurity.v1.waf.CreateWafProfileRequest\x1a!.yandex.cloud.operation.Operation\"U\xb2\xd2*&\n\x18\x43reateWafProfileMetadata\x12\nWafProfile\x82\xd3\xe4\x93\x02%\" /smartwebsecurity/v1/wafProfiles:\x01*\x12\xd2\x01\n\x06Update\x12=.yandex.cloud.smartwebsecurity.v1.waf.UpdateWafProfileRequest\x1a!.yandex.cloud.operation.Operation\"f\xb2\xd2*&\n\x18UpdateWafProfileMetadata\x12\nWafProfile\x82\xd3\xe4\x93\x02\x36\x32\x31/smartwebsecurity/v1/wafProfiles/{waf_profile_id}:\x01*\x12\xda\x01\n\x06\x44\x65lete\x12=.yandex.cloud.smartwebsecurity.v1.waf.DeleteWafProfileRequest\x1a!.yandex.cloud.operation.Operation\"n\xb2\xd2*1\n\x18\x44\x65leteWafProfileMetadata\x12\x15google.protobuf.Empty\x82\xd3\xe4\x93\x02\x33*1/smartwebsecurity/v1/wafProfiles/{waf_profile_id}B\x85\x01\n(yandex.cloud.api.smartwebsecurity.v1.wafZYgithub.com/yandex-cloud/go-genproto/yandex/cloud/smartwebsecurity/v1/waf;smartwebsecurityb\x06proto3')
23
+
24
+ _globals = globals()
25
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
26
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'yandex.cloud.smartwebsecurity.v1.waf.waf_profile_service_pb2', _globals)
27
+ if _descriptor._USE_C_DESCRIPTORS == False:
28
+ DESCRIPTOR._options = None
29
+ DESCRIPTOR._serialized_options = b'\n(yandex.cloud.api.smartwebsecurity.v1.wafZYgithub.com/yandex-cloud/go-genproto/yandex/cloud/smartwebsecurity/v1/waf;smartwebsecurity'
30
+ _GETWAFPROFILEREQUEST.fields_by_name['waf_profile_id']._options = None
31
+ _GETWAFPROFILEREQUEST.fields_by_name['waf_profile_id']._serialized_options = b'\350\3071\001'
32
+ _LISTWAFPROFILESREQUEST.fields_by_name['folder_id']._options = None
33
+ _LISTWAFPROFILESREQUEST.fields_by_name['folder_id']._serialized_options = b'\350\3071\001'
34
+ _CREATEWAFPROFILEREQUEST_LABELSENTRY._options = None
35
+ _CREATEWAFPROFILEREQUEST_LABELSENTRY._serialized_options = b'8\001'
36
+ _UPDATEWAFPROFILEREQUEST_LABELSENTRY._options = None
37
+ _UPDATEWAFPROFILEREQUEST_LABELSENTRY._serialized_options = b'8\001'
38
+ _UPDATEWAFPROFILEREQUEST.fields_by_name['waf_profile_id']._options = None
39
+ _UPDATEWAFPROFILEREQUEST.fields_by_name['waf_profile_id']._serialized_options = b'\350\3071\001'
40
+ _DELETEWAFPROFILEREQUEST.fields_by_name['waf_profile_id']._options = None
41
+ _DELETEWAFPROFILEREQUEST.fields_by_name['waf_profile_id']._serialized_options = b'\350\3071\001'
42
+ _WAFPROFILESERVICE.methods_by_name['Get']._options = None
43
+ _WAFPROFILESERVICE.methods_by_name['Get']._serialized_options = b'\202\323\344\223\0023\0221/smartwebsecurity/v1/wafProfiles/{waf_profile_id}'
44
+ _WAFPROFILESERVICE.methods_by_name['List']._options = None
45
+ _WAFPROFILESERVICE.methods_by_name['List']._serialized_options = b'\202\323\344\223\002\"\022 /smartwebsecurity/v1/wafProfiles'
46
+ _WAFPROFILESERVICE.methods_by_name['Create']._options = None
47
+ _WAFPROFILESERVICE.methods_by_name['Create']._serialized_options = b'\262\322*&\n\030CreateWafProfileMetadata\022\nWafProfile\202\323\344\223\002%\" /smartwebsecurity/v1/wafProfiles:\001*'
48
+ _WAFPROFILESERVICE.methods_by_name['Update']._options = None
49
+ _WAFPROFILESERVICE.methods_by_name['Update']._serialized_options = b'\262\322*&\n\030UpdateWafProfileMetadata\022\nWafProfile\202\323\344\223\002621/smartwebsecurity/v1/wafProfiles/{waf_profile_id}:\001*'
50
+ _WAFPROFILESERVICE.methods_by_name['Delete']._options = None
51
+ _WAFPROFILESERVICE.methods_by_name['Delete']._serialized_options = b'\262\322*1\n\030DeleteWafProfileMetadata\022\025google.protobuf.Empty\202\323\344\223\0023*1/smartwebsecurity/v1/wafProfiles/{waf_profile_id}'
52
+ _globals['_GETWAFPROFILEREQUEST']._serialized_start=329
53
+ _globals['_GETWAFPROFILEREQUEST']._serialized_end=381
54
+ _globals['_LISTWAFPROFILESREQUEST']._serialized_start=383
55
+ _globals['_LISTWAFPROFILESREQUEST']._serialized_end=432
56
+ _globals['_LISTWAFPROFILESRESPONSE']._serialized_start=434
57
+ _globals['_LISTWAFPROFILESRESPONSE']._serialized_end=531
58
+ _globals['_CREATEWAFPROFILEREQUEST']._serialized_start=534
59
+ _globals['_CREATEWAFPROFILEREQUEST']._serialized_end=1106
60
+ _globals['_CREATEWAFPROFILEREQUEST_LABELSENTRY']._serialized_start=1049
61
+ _globals['_CREATEWAFPROFILEREQUEST_LABELSENTRY']._serialized_end=1094
62
+ _globals['_CREATEWAFPROFILEMETADATA']._serialized_start=1108
63
+ _globals['_CREATEWAFPROFILEMETADATA']._serialized_end=1158
64
+ _globals['_UPDATEWAFPROFILEREQUEST']._serialized_start=1161
65
+ _globals['_UPDATEWAFPROFILEREQUEST']._serialized_end=1793
66
+ _globals['_UPDATEWAFPROFILEREQUEST_LABELSENTRY']._serialized_start=1049
67
+ _globals['_UPDATEWAFPROFILEREQUEST_LABELSENTRY']._serialized_end=1094
68
+ _globals['_UPDATEWAFPROFILEMETADATA']._serialized_start=1795
69
+ _globals['_UPDATEWAFPROFILEMETADATA']._serialized_end=1845
70
+ _globals['_DELETEWAFPROFILEREQUEST']._serialized_start=1847
71
+ _globals['_DELETEWAFPROFILEREQUEST']._serialized_end=1902
72
+ _globals['_DELETEWAFPROFILEMETADATA']._serialized_start=1904
73
+ _globals['_DELETEWAFPROFILEMETADATA']._serialized_end=1954
74
+ _globals['_WAFPROFILESERVICE']._serialized_start=1957
75
+ _globals['_WAFPROFILESERVICE']._serialized_end=2959
76
+ # @@protoc_insertion_point(module_scope)