yandexcloud 0.354.0__py3-none-any.whl → 0.356.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of yandexcloud might be problematic. Click here for more details.
- yandex/cloud/ai/assistants/v1/common_pb2.py +58 -30
- yandex/cloud/ai/assistants/v1/common_pb2.pyi +178 -3
- yandex/cloud/airflow/v1/cluster_pb2.py +12 -8
- yandex/cloud/airflow/v1/cluster_pb2.pyi +4 -0
- yandex/cloud/apploadbalancer/v1/virtual_host_pb2.py +32 -32
- yandex/cloud/apploadbalancer/v1/virtual_host_pb2.pyi +5 -1
- yandex/cloud/apploadbalancer/v1/virtual_host_service_pb2.py +6 -6
- yandex/cloud/apploadbalancer/v1/virtual_host_service_pb2.pyi +5 -1
- yandex/cloud/backup/v1/backup_service_pb2.py +46 -40
- yandex/cloud/backup/v1/backup_service_pb2.pyi +26 -4
- yandex/cloud/backup/v1/resource_pb2.py +2 -2
- yandex/cloud/backup/v1/resource_pb2.pyi +8 -0
- yandex/cloud/baremetal/v1alpha/configuration_service_pb2.py +18 -9
- yandex/cloud/baremetal/v1alpha/configuration_service_pb2.pyi +16 -2
- yandex/cloud/baremetal/v1alpha/hardware_pool_service_pb2.py +14 -9
- yandex/cloud/baremetal/v1alpha/image_service_pb2.py +39 -32
- yandex/cloud/baremetal/v1alpha/private_cloud_connection_service_pb2.py +29 -24
- yandex/cloud/baremetal/v1alpha/private_subnet_service_pb2.py +43 -36
- yandex/cloud/baremetal/v1alpha/public_subnet_service_pb2.py +39 -32
- yandex/cloud/baremetal/v1alpha/public_subnet_service_pb2.pyi +3 -2
- yandex/cloud/baremetal/v1alpha/server_service_pb2.py +83 -76
- yandex/cloud/baremetal/v1alpha/storage_service_pb2.py +16 -11
- yandex/cloud/baremetal/v1alpha/vrf_service_pb2.py +39 -32
- yandex/cloud/baremetal/v1alpha/zone_service_pb2.py +14 -9
- yandex/cloud/compute/v1/maintenance_service_pb2.py +47 -0
- yandex/cloud/compute/v1/maintenance_service_pb2.pyi +8 -0
- yandex/cloud/compute/v1/maintenance_service_pb2_grpc.py +190 -0
- yandex/cloud/compute/v1/maintenance_service_pb2_grpc.pyi +91 -0
- yandex/cloud/compute/v1/reserved_instance_pool_pb2.py +8 -4
- yandex/cloud/compute/v1/reserved_instance_pool_pb2.pyi +69 -2
- yandex/cloud/compute/v1/reserved_instance_pool_service_pb2.py +44 -20
- yandex/cloud/compute/v1/reserved_instance_pool_service_pb2.pyi +138 -2
- yandex/cloud/compute/v1/reserved_instance_pool_service_pb2_grpc.py +88 -0
- yandex/cloud/compute/v1/reserved_instance_pool_service_pb2_grpc.pyi +40 -0
- yandex/cloud/datatransfer/v1/transfer_pb2.py +50 -48
- yandex/cloud/datatransfer/v1/transfer_pb2.pyi +23 -4
- yandex/cloud/datatransfer/v1/transfer_service_pb2.py +32 -32
- yandex/cloud/datatransfer/v1/transfer_service_pb2.pyi +12 -4
- yandex/cloud/iam/v1/oauth_client_pb2.py +39 -0
- yandex/cloud/iam/v1/oauth_client_pb2.pyi +85 -0
- yandex/cloud/iam/v1/oauth_client_pb2_grpc.py +24 -0
- yandex/cloud/iam/v1/oauth_client_pb2_grpc.pyi +17 -0
- yandex/cloud/iam/v1/oauth_client_secret_pb2.py +38 -0
- yandex/cloud/iam/v1/oauth_client_secret_pb2.pyi +49 -0
- yandex/cloud/iam/v1/oauth_client_secret_pb2_grpc.py +24 -0
- yandex/cloud/iam/v1/oauth_client_secret_pb2_grpc.pyi +17 -0
- yandex/cloud/iam/v1/oauth_client_secret_service_pb2.py +80 -0
- yandex/cloud/iam/v1/oauth_client_secret_service_pb2.pyi +188 -0
- yandex/cloud/iam/v1/oauth_client_secret_service_pb2_grpc.py +237 -0
- yandex/cloud/iam/v1/oauth_client_secret_service_pb2_grpc.pyi +121 -0
- yandex/cloud/iam/v1/oauth_client_service_pb2.py +99 -0
- yandex/cloud/iam/v1/oauth_client_service_pb2.pyi +257 -0
- yandex/cloud/iam/v1/oauth_client_service_pb2_grpc.py +281 -0
- yandex/cloud/iam/v1/oauth_client_service_pb2_grpc.pyi +141 -0
- yandex/cloud/iot/broker/v1/broker_service_pb2.py +50 -50
- yandex/cloud/iot/devices/v1/device_service_pb2.py +61 -61
- yandex/cloud/iot/devices/v1/registry_service_pb2.py +82 -82
- yandex/cloud/maintenance/__init__.py +0 -0
- yandex/cloud/maintenance/v2/__init__.py +0 -0
- yandex/cloud/maintenance/v2/common_pb2.py +73 -0
- yandex/cloud/maintenance/v2/common_pb2.pyi +324 -0
- yandex/cloud/maintenance/v2/common_pb2_grpc.py +24 -0
- yandex/cloud/maintenance/v2/common_pb2_grpc.pyi +17 -0
- yandex/cloud/mdb/clickhouse/v1/config/clickhouse_pb2.py +196 -152
- yandex/cloud/mdb/clickhouse/v1/config/clickhouse_pb2.pyi +1779 -1066
- yandex/cloud/mdb/clickhouse/v1/user_pb2.py +98 -86
- yandex/cloud/mdb/clickhouse/v1/user_pb2.pyi +1248 -792
- yandex/cloud/mdb/opensearch/v1/backup_pb2.py +14 -14
- yandex/cloud/mdb/opensearch/v1/backup_pb2.pyi +13 -1
- yandex/cloud/mdb/spqr/v1/cluster_service_pb2.py +76 -76
- yandex/cloud/mdb/spqr/v1/cluster_service_pb2.pyi +4 -0
- yandex/cloud/metastore/v1/cluster_pb2.py +18 -16
- yandex/cloud/metastore/v1/cluster_pb2.pyi +31 -1
- yandex/cloud/searchapi/v2/gen_search_service_pb2.py +22 -22
- yandex/cloud/searchapi/v2/gen_search_service_pb2.pyi +12 -2
- yandex/cloud/serverless/containers/v1/container_pb2.py +46 -44
- yandex/cloud/serverless/containers/v1/container_pb2.pyi +25 -3
- yandex/cloud/smartwebsecurity/v1/waf/waf_profile_pb2.py +50 -18
- yandex/cloud/smartwebsecurity/v1/waf/waf_profile_pb2.pyi +241 -2
- yandex/cloud/smartwebsecurity/v1/waf/waf_profile_service_pb2.py +18 -18
- yandex/cloud/smartwebsecurity/v1/waf/waf_profile_service_pb2.pyi +22 -2
- yandex/cloud/storage/v1/presign_service_pb2.py +47 -0
- yandex/cloud/storage/v1/presign_service_pb2.pyi +117 -0
- yandex/cloud/storage/v1/presign_service_pb2_grpc.py +101 -0
- yandex/cloud/storage/v1/presign_service_pb2_grpc.pyi +50 -0
- yandex/cloud/trino/v1/access_control_pb2.py +212 -0
- yandex/cloud/trino/v1/access_control_pb2.pyi +926 -0
- yandex/cloud/trino/v1/access_control_pb2_grpc.py +24 -0
- yandex/cloud/trino/v1/access_control_pb2_grpc.pyi +17 -0
- yandex/cloud/trino/v1/cluster_pb2.py +44 -43
- yandex/cloud/trino/v1/cluster_pb2.pyi +9 -2
- yandex/cloud/trino/v1/cluster_service_pb2.py +50 -49
- yandex/cloud/trino/v1/cluster_service_pb2.pyi +29 -4
- yandex/cloud/ytsaurus/v1/cluster_pb2.py +40 -37
- yandex/cloud/ytsaurus/v1/cluster_pb2.pyi +32 -18
- yandexcloud/__init__.py +1 -1
- {yandexcloud-0.354.0.dist-info → yandexcloud-0.356.0.dist-info}/METADATA +1 -1
- {yandexcloud-0.354.0.dist-info → yandexcloud-0.356.0.dist-info}/RECORD +102 -68
- {yandexcloud-0.354.0.dist-info → yandexcloud-0.356.0.dist-info}/AUTHORS +0 -0
- {yandexcloud-0.354.0.dist-info → yandexcloud-0.356.0.dist-info}/LICENSE +0 -0
- {yandexcloud-0.354.0.dist-info → yandexcloud-0.356.0.dist-info}/WHEEL +0 -0
- {yandexcloud-0.354.0.dist-info → yandexcloud-0.356.0.dist-info}/top_level.txt +0 -0
|
@@ -120,6 +120,202 @@ class WafProfile(google.protobuf.message.Message):
|
|
|
120
120
|
) -> None: ...
|
|
121
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
122
|
|
|
123
|
+
@typing.final
|
|
124
|
+
class WafProfileRuleSet(google.protobuf.message.Message):
|
|
125
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
126
|
+
|
|
127
|
+
class _RuleSetAction:
|
|
128
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
|
129
|
+
V: typing_extensions.TypeAlias = ValueType
|
|
130
|
+
|
|
131
|
+
class _RuleSetActionEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[WafProfile.WafProfileRuleSet._RuleSetAction.ValueType], builtins.type):
|
|
132
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
133
|
+
RULE_SET_ACTION_UNSPECIFIED: WafProfile.WafProfileRuleSet._RuleSetAction.ValueType # 0
|
|
134
|
+
DENY: WafProfile.WafProfileRuleSet._RuleSetAction.ValueType # 1
|
|
135
|
+
"""Deny request."""
|
|
136
|
+
CAPTCHA: WafProfile.WafProfileRuleSet._RuleSetAction.ValueType # 2
|
|
137
|
+
"""Show captcha."""
|
|
138
|
+
|
|
139
|
+
class RuleSetAction(_RuleSetAction, metaclass=_RuleSetActionEnumTypeWrapper):
|
|
140
|
+
"""Types on actions on rule set match."""
|
|
141
|
+
|
|
142
|
+
RULE_SET_ACTION_UNSPECIFIED: WafProfile.WafProfileRuleSet.RuleSetAction.ValueType # 0
|
|
143
|
+
DENY: WafProfile.WafProfileRuleSet.RuleSetAction.ValueType # 1
|
|
144
|
+
"""Deny request."""
|
|
145
|
+
CAPTCHA: WafProfile.WafProfileRuleSet.RuleSetAction.ValueType # 2
|
|
146
|
+
"""Show captcha."""
|
|
147
|
+
|
|
148
|
+
@typing.final
|
|
149
|
+
class RuleGroup(google.protobuf.message.Message):
|
|
150
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
151
|
+
|
|
152
|
+
class _Action:
|
|
153
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
|
154
|
+
V: typing_extensions.TypeAlias = ValueType
|
|
155
|
+
|
|
156
|
+
class _ActionEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[WafProfile.WafProfileRuleSet.RuleGroup._Action.ValueType], builtins.type):
|
|
157
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
158
|
+
ACTION_UNSPECIFIED: WafProfile.WafProfileRuleSet.RuleGroup._Action.ValueType # 0
|
|
159
|
+
DENY: WafProfile.WafProfileRuleSet.RuleGroup._Action.ValueType # 1
|
|
160
|
+
"""Deny request."""
|
|
161
|
+
LOG: WafProfile.WafProfileRuleSet.RuleGroup._Action.ValueType # 2
|
|
162
|
+
"""Log request."""
|
|
163
|
+
IGNORE: WafProfile.WafProfileRuleSet.RuleGroup._Action.ValueType # 3
|
|
164
|
+
"""Ignore request."""
|
|
165
|
+
|
|
166
|
+
class Action(_Action, metaclass=_ActionEnumTypeWrapper):
|
|
167
|
+
"""Types on actions on rule group match."""
|
|
168
|
+
|
|
169
|
+
ACTION_UNSPECIFIED: WafProfile.WafProfileRuleSet.RuleGroup.Action.ValueType # 0
|
|
170
|
+
DENY: WafProfile.WafProfileRuleSet.RuleGroup.Action.ValueType # 1
|
|
171
|
+
"""Deny request."""
|
|
172
|
+
LOG: WafProfile.WafProfileRuleSet.RuleGroup.Action.ValueType # 2
|
|
173
|
+
"""Log request."""
|
|
174
|
+
IGNORE: WafProfile.WafProfileRuleSet.RuleGroup.Action.ValueType # 3
|
|
175
|
+
"""Ignore request."""
|
|
176
|
+
|
|
177
|
+
ID_FIELD_NUMBER: builtins.int
|
|
178
|
+
ACTION_FIELD_NUMBER: builtins.int
|
|
179
|
+
INBOUND_ANOMALY_SCORE_FIELD_NUMBER: builtins.int
|
|
180
|
+
IS_ENABLED_FIELD_NUMBER: builtins.int
|
|
181
|
+
id: builtins.str
|
|
182
|
+
"""ID of the rule group."""
|
|
183
|
+
action: global___WafProfile.WafProfileRuleSet.RuleGroup.Action.ValueType
|
|
184
|
+
"""Action to perfome on rule group match."""
|
|
185
|
+
inbound_anomaly_score: builtins.int
|
|
186
|
+
"""Anomaly score."""
|
|
187
|
+
is_enabled: builtins.bool
|
|
188
|
+
"""Determines is it rule group enabled or not."""
|
|
189
|
+
def __init__(
|
|
190
|
+
self,
|
|
191
|
+
*,
|
|
192
|
+
id: builtins.str = ...,
|
|
193
|
+
action: global___WafProfile.WafProfileRuleSet.RuleGroup.Action.ValueType = ...,
|
|
194
|
+
inbound_anomaly_score: builtins.int = ...,
|
|
195
|
+
is_enabled: builtins.bool = ...,
|
|
196
|
+
) -> None: ...
|
|
197
|
+
def ClearField(self, field_name: typing.Literal["action", b"action", "id", b"id", "inbound_anomaly_score", b"inbound_anomaly_score", "is_enabled", b"is_enabled"]) -> None: ...
|
|
198
|
+
|
|
199
|
+
@typing.final
|
|
200
|
+
class WafProfileCoreRuleSet(google.protobuf.message.Message):
|
|
201
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
202
|
+
|
|
203
|
+
RULE_SET_FIELD_NUMBER: builtins.int
|
|
204
|
+
INBOUND_ANOMALY_SCORE_FIELD_NUMBER: builtins.int
|
|
205
|
+
PARANOIA_LEVEL_FIELD_NUMBER: builtins.int
|
|
206
|
+
inbound_anomaly_score: builtins.int
|
|
207
|
+
"""Anomaly score.
|
|
208
|
+
Enter an integer within the range of 2 and 10000.
|
|
209
|
+
The higher this value, the more likely it is that the request that satisfies the rule is an attack.
|
|
210
|
+
See [Rules](/docs/smartwebsecurity/concepts/waf#anomaly) for more details.
|
|
211
|
+
"""
|
|
212
|
+
paranoia_level: builtins.int
|
|
213
|
+
"""Paranoia level.
|
|
214
|
+
Enter an integer within the range of 1 and 4.
|
|
215
|
+
Paranoia level classifies rules according to their aggression. The higher the paranoia level, the better your protection,
|
|
216
|
+
but also the higher the probability of WAF false positives.
|
|
217
|
+
See [Rules](/docs/smartwebsecurity/concepts/waf#paranoia) for more details.
|
|
218
|
+
NOTE: this option has no effect on enabling or disabling rules.
|
|
219
|
+
it is used only as recommendation for user to enable all rules with paranoia_level <= this value.
|
|
220
|
+
"""
|
|
221
|
+
@property
|
|
222
|
+
def rule_set(self) -> global___RuleSet:
|
|
223
|
+
"""Rule set."""
|
|
224
|
+
|
|
225
|
+
def __init__(
|
|
226
|
+
self,
|
|
227
|
+
*,
|
|
228
|
+
rule_set: global___RuleSet | None = ...,
|
|
229
|
+
inbound_anomaly_score: builtins.int = ...,
|
|
230
|
+
paranoia_level: builtins.int = ...,
|
|
231
|
+
) -> None: ...
|
|
232
|
+
def HasField(self, field_name: typing.Literal["rule_set", b"rule_set"]) -> builtins.bool: ...
|
|
233
|
+
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: ...
|
|
234
|
+
|
|
235
|
+
@typing.final
|
|
236
|
+
class WafProfileYaRuleSet(google.protobuf.message.Message):
|
|
237
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
238
|
+
|
|
239
|
+
RULE_SET_FIELD_NUMBER: builtins.int
|
|
240
|
+
RULE_GROUPS_FIELD_NUMBER: builtins.int
|
|
241
|
+
@property
|
|
242
|
+
def rule_set(self) -> global___RuleSet:
|
|
243
|
+
"""Rule set."""
|
|
244
|
+
|
|
245
|
+
@property
|
|
246
|
+
def rule_groups(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___WafProfile.WafProfileRuleSet.RuleGroup]:
|
|
247
|
+
"""List of rule groups."""
|
|
248
|
+
|
|
249
|
+
def __init__(
|
|
250
|
+
self,
|
|
251
|
+
*,
|
|
252
|
+
rule_set: global___RuleSet | None = ...,
|
|
253
|
+
rule_groups: collections.abc.Iterable[global___WafProfile.WafProfileRuleSet.RuleGroup] | None = ...,
|
|
254
|
+
) -> None: ...
|
|
255
|
+
def HasField(self, field_name: typing.Literal["rule_set", b"rule_set"]) -> builtins.bool: ...
|
|
256
|
+
def ClearField(self, field_name: typing.Literal["rule_groups", b"rule_groups", "rule_set", b"rule_set"]) -> None: ...
|
|
257
|
+
|
|
258
|
+
@typing.final
|
|
259
|
+
class WafProfileMlRuleSet(google.protobuf.message.Message):
|
|
260
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
261
|
+
|
|
262
|
+
RULE_SET_FIELD_NUMBER: builtins.int
|
|
263
|
+
RULE_GROUPS_FIELD_NUMBER: builtins.int
|
|
264
|
+
@property
|
|
265
|
+
def rule_set(self) -> global___RuleSet:
|
|
266
|
+
"""Rule set."""
|
|
267
|
+
|
|
268
|
+
@property
|
|
269
|
+
def rule_groups(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___WafProfile.WafProfileRuleSet.RuleGroup]:
|
|
270
|
+
"""List of rule groups."""
|
|
271
|
+
|
|
272
|
+
def __init__(
|
|
273
|
+
self,
|
|
274
|
+
*,
|
|
275
|
+
rule_set: global___RuleSet | None = ...,
|
|
276
|
+
rule_groups: collections.abc.Iterable[global___WafProfile.WafProfileRuleSet.RuleGroup] | None = ...,
|
|
277
|
+
) -> None: ...
|
|
278
|
+
def HasField(self, field_name: typing.Literal["rule_set", b"rule_set"]) -> builtins.bool: ...
|
|
279
|
+
def ClearField(self, field_name: typing.Literal["rule_groups", b"rule_groups", "rule_set", b"rule_set"]) -> None: ...
|
|
280
|
+
|
|
281
|
+
CORE_RULE_SET_FIELD_NUMBER: builtins.int
|
|
282
|
+
YA_RULE_SET_FIELD_NUMBER: builtins.int
|
|
283
|
+
ML_RULE_SET_FIELD_NUMBER: builtins.int
|
|
284
|
+
PRIORITY_FIELD_NUMBER: builtins.int
|
|
285
|
+
IS_ENABLED_FIELD_NUMBER: builtins.int
|
|
286
|
+
ACTION_FIELD_NUMBER: builtins.int
|
|
287
|
+
priority: builtins.int
|
|
288
|
+
"""Priority of rule set."""
|
|
289
|
+
is_enabled: builtins.bool
|
|
290
|
+
"""Determines is it rule set enabled or not."""
|
|
291
|
+
action: global___WafProfile.WafProfileRuleSet.RuleSetAction.ValueType
|
|
292
|
+
"""Action to perfome on rule set match."""
|
|
293
|
+
@property
|
|
294
|
+
def core_rule_set(self) -> global___WafProfile.WafProfileRuleSet.WafProfileCoreRuleSet:
|
|
295
|
+
"""Core rule set settings. See [Basic rule set](/docs/smartwebsecurity/concepts/waf#rules-set) for details."""
|
|
296
|
+
|
|
297
|
+
@property
|
|
298
|
+
def ya_rule_set(self) -> global___WafProfile.WafProfileRuleSet.WafProfileYaRuleSet:
|
|
299
|
+
"""Yandex rule set settings."""
|
|
300
|
+
|
|
301
|
+
@property
|
|
302
|
+
def ml_rule_set(self) -> global___WafProfile.WafProfileRuleSet.WafProfileMlRuleSet:
|
|
303
|
+
"""Yandex Machine learning rule set settings."""
|
|
304
|
+
|
|
305
|
+
def __init__(
|
|
306
|
+
self,
|
|
307
|
+
*,
|
|
308
|
+
core_rule_set: global___WafProfile.WafProfileRuleSet.WafProfileCoreRuleSet | None = ...,
|
|
309
|
+
ya_rule_set: global___WafProfile.WafProfileRuleSet.WafProfileYaRuleSet | None = ...,
|
|
310
|
+
ml_rule_set: global___WafProfile.WafProfileRuleSet.WafProfileMlRuleSet | None = ...,
|
|
311
|
+
priority: builtins.int = ...,
|
|
312
|
+
is_enabled: builtins.bool = ...,
|
|
313
|
+
action: global___WafProfile.WafProfileRuleSet.RuleSetAction.ValueType = ...,
|
|
314
|
+
) -> None: ...
|
|
315
|
+
def HasField(self, field_name: typing.Literal["core_rule_set", b"core_rule_set", "ml_rule_set", b"ml_rule_set", "rule_set", b"rule_set", "ya_rule_set", b"ya_rule_set"]) -> builtins.bool: ...
|
|
316
|
+
def ClearField(self, field_name: typing.Literal["action", b"action", "core_rule_set", b"core_rule_set", "is_enabled", b"is_enabled", "ml_rule_set", b"ml_rule_set", "priority", b"priority", "rule_set", b"rule_set", "ya_rule_set", b"ya_rule_set"]) -> None: ...
|
|
317
|
+
def WhichOneof(self, oneof_group: typing.Literal["rule_set", b"rule_set"]) -> typing.Literal["core_rule_set", "ya_rule_set", "ml_rule_set"] | None: ...
|
|
318
|
+
|
|
123
319
|
ID_FIELD_NUMBER: builtins.int
|
|
124
320
|
FOLDER_ID_FIELD_NUMBER: builtins.int
|
|
125
321
|
CLOUD_ID_FIELD_NUMBER: builtins.int
|
|
@@ -131,6 +327,8 @@ class WafProfile(google.protobuf.message.Message):
|
|
|
131
327
|
EXCLUSION_RULES_FIELD_NUMBER: builtins.int
|
|
132
328
|
CORE_RULE_SET_FIELD_NUMBER: builtins.int
|
|
133
329
|
ANALYZE_REQUEST_BODY_FIELD_NUMBER: builtins.int
|
|
330
|
+
RULE_SETS_FIELD_NUMBER: builtins.int
|
|
331
|
+
MATCH_ALL_RULE_SETS_FIELD_NUMBER: builtins.int
|
|
134
332
|
id: builtins.str
|
|
135
333
|
"""ID of the WAF profile."""
|
|
136
334
|
folder_id: builtins.str
|
|
@@ -141,6 +339,8 @@ class WafProfile(google.protobuf.message.Message):
|
|
|
141
339
|
"""Name of the WAF profile. The name is unique within the folder. 1-50 characters long."""
|
|
142
340
|
description: builtins.str
|
|
143
341
|
"""Optional description of the WAF profile."""
|
|
342
|
+
match_all_rule_sets: builtins.bool
|
|
343
|
+
"""Determines"""
|
|
144
344
|
@property
|
|
145
345
|
def labels(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]:
|
|
146
346
|
"""Labels as `` key:value `` pairs. Maximum of 64 per resource."""
|
|
@@ -165,6 +365,10 @@ class WafProfile(google.protobuf.message.Message):
|
|
|
165
365
|
def analyze_request_body(self) -> global___WafProfile.AnalyzeRequestBody:
|
|
166
366
|
"""The parameter is deprecated. Parameters for request body analyzer."""
|
|
167
367
|
|
|
368
|
+
@property
|
|
369
|
+
def rule_sets(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___WafProfile.WafProfileRuleSet]:
|
|
370
|
+
"""List of rule sets."""
|
|
371
|
+
|
|
168
372
|
def __init__(
|
|
169
373
|
self,
|
|
170
374
|
*,
|
|
@@ -179,9 +383,11 @@ class WafProfile(google.protobuf.message.Message):
|
|
|
179
383
|
exclusion_rules: collections.abc.Iterable[global___WafProfileExclusionRule] | None = ...,
|
|
180
384
|
core_rule_set: global___WafProfile.CoreRuleSet | None = ...,
|
|
181
385
|
analyze_request_body: global___WafProfile.AnalyzeRequestBody | None = ...,
|
|
386
|
+
rule_sets: collections.abc.Iterable[global___WafProfile.WafProfileRuleSet] | None = ...,
|
|
387
|
+
match_all_rule_sets: builtins.bool = ...,
|
|
182
388
|
) -> None: ...
|
|
183
389
|
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: ...
|
|
390
|
+
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", "match_all_rule_sets", b"match_all_rule_sets", "name", b"name", "rule_set", b"rule_set", "rule_sets", b"rule_sets", "rules", b"rules"]) -> None: ...
|
|
185
391
|
def WhichOneof(self, oneof_group: typing.Literal["rule_set", b"rule_set"]) -> typing.Literal["core_rule_set"] | None: ...
|
|
186
392
|
|
|
187
393
|
global___WafProfile = WafProfile
|
|
@@ -279,18 +485,51 @@ class RuleSet(google.protobuf.message.Message):
|
|
|
279
485
|
|
|
280
486
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
281
487
|
|
|
488
|
+
class _RuleSetType:
|
|
489
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
|
490
|
+
V: typing_extensions.TypeAlias = ValueType
|
|
491
|
+
|
|
492
|
+
class _RuleSetTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[RuleSet._RuleSetType.ValueType], builtins.type):
|
|
493
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
494
|
+
RULE_SET_TYPE_UNSPECIFIED: RuleSet._RuleSetType.ValueType # 0
|
|
495
|
+
CORE: RuleSet._RuleSetType.ValueType # 1
|
|
496
|
+
"""Core rule set."""
|
|
497
|
+
YA: RuleSet._RuleSetType.ValueType # 2
|
|
498
|
+
"""Yandex rule set."""
|
|
499
|
+
ML: RuleSet._RuleSetType.ValueType # 3
|
|
500
|
+
"""Yandex machine learning rule set."""
|
|
501
|
+
|
|
502
|
+
class RuleSetType(_RuleSetType, metaclass=_RuleSetTypeEnumTypeWrapper):
|
|
503
|
+
"""Type of rule set."""
|
|
504
|
+
|
|
505
|
+
RULE_SET_TYPE_UNSPECIFIED: RuleSet.RuleSetType.ValueType # 0
|
|
506
|
+
CORE: RuleSet.RuleSetType.ValueType # 1
|
|
507
|
+
"""Core rule set."""
|
|
508
|
+
YA: RuleSet.RuleSetType.ValueType # 2
|
|
509
|
+
"""Yandex rule set."""
|
|
510
|
+
ML: RuleSet.RuleSetType.ValueType # 3
|
|
511
|
+
"""Yandex machine learning rule set."""
|
|
512
|
+
|
|
282
513
|
NAME_FIELD_NUMBER: builtins.int
|
|
283
514
|
VERSION_FIELD_NUMBER: builtins.int
|
|
515
|
+
TYPE_FIELD_NUMBER: builtins.int
|
|
516
|
+
ID_FIELD_NUMBER: builtins.int
|
|
284
517
|
name: builtins.str
|
|
285
518
|
"""Name of rule set."""
|
|
286
519
|
version: builtins.str
|
|
287
520
|
"""Version of rule set."""
|
|
521
|
+
type: global___RuleSet.RuleSetType.ValueType
|
|
522
|
+
"""Type of rule set."""
|
|
523
|
+
id: builtins.str
|
|
524
|
+
"""ID of rule set."""
|
|
288
525
|
def __init__(
|
|
289
526
|
self,
|
|
290
527
|
*,
|
|
291
528
|
name: builtins.str = ...,
|
|
292
529
|
version: builtins.str = ...,
|
|
530
|
+
type: global___RuleSet.RuleSetType.ValueType = ...,
|
|
531
|
+
id: builtins.str = ...,
|
|
293
532
|
) -> None: ...
|
|
294
|
-
def ClearField(self, field_name: typing.Literal["name", b"name", "version", b"version"]) -> None: ...
|
|
533
|
+
def ClearField(self, field_name: typing.Literal["id", b"id", "name", b"name", "type", b"type", "version", b"version"]) -> None: ...
|
|
295
534
|
|
|
296
535
|
global___RuleSet = RuleSet
|
|
@@ -30,7 +30,7 @@ from yandex.cloud.smartwebsecurity.v1.waf import waf_profile_pb2 as yandex_dot_c
|
|
|
30
30
|
from yandex.cloud import validation_pb2 as yandex_dot_cloud_dot_validation__pb2
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
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\"\
|
|
33
|
+
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\"\xb0\x05\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\x12U\n\trule_sets\x18\t \x03(\x0b\x32\x42.yandex.cloud.smartwebsecurity.v1.waf.WafProfile.WafProfileRuleSet\x12\x1b\n\x13match_all_rule_sets\x18\n \x01(\x08\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\"\xec\x05\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\x12U\n\trule_sets\x18\n \x03(\x0b\x32\x42.yandex.cloud.smartwebsecurity.v1.waf.WafProfile.WafProfileRuleSet\x12\x1b\n\x13match_all_rule_sets\x18\x0b \x01(\x08\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')
|
|
34
34
|
|
|
35
35
|
_globals = globals()
|
|
36
36
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
@@ -67,21 +67,21 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
|
67
67
|
_globals['_LISTWAFPROFILESRESPONSE']._serialized_start=434
|
|
68
68
|
_globals['_LISTWAFPROFILESRESPONSE']._serialized_end=531
|
|
69
69
|
_globals['_CREATEWAFPROFILEREQUEST']._serialized_start=534
|
|
70
|
-
_globals['_CREATEWAFPROFILEREQUEST']._serialized_end=
|
|
71
|
-
_globals['_CREATEWAFPROFILEREQUEST_LABELSENTRY']._serialized_start=
|
|
72
|
-
_globals['_CREATEWAFPROFILEREQUEST_LABELSENTRY']._serialized_end=
|
|
73
|
-
_globals['_CREATEWAFPROFILEMETADATA']._serialized_start=
|
|
74
|
-
_globals['_CREATEWAFPROFILEMETADATA']._serialized_end=
|
|
75
|
-
_globals['_UPDATEWAFPROFILEREQUEST']._serialized_start=
|
|
76
|
-
_globals['_UPDATEWAFPROFILEREQUEST']._serialized_end=
|
|
77
|
-
_globals['_UPDATEWAFPROFILEREQUEST_LABELSENTRY']._serialized_start=
|
|
78
|
-
_globals['_UPDATEWAFPROFILEREQUEST_LABELSENTRY']._serialized_end=
|
|
79
|
-
_globals['_UPDATEWAFPROFILEMETADATA']._serialized_start=
|
|
80
|
-
_globals['_UPDATEWAFPROFILEMETADATA']._serialized_end=
|
|
81
|
-
_globals['_DELETEWAFPROFILEREQUEST']._serialized_start=
|
|
82
|
-
_globals['_DELETEWAFPROFILEREQUEST']._serialized_end=
|
|
83
|
-
_globals['_DELETEWAFPROFILEMETADATA']._serialized_start=
|
|
84
|
-
_globals['_DELETEWAFPROFILEMETADATA']._serialized_end=
|
|
85
|
-
_globals['_WAFPROFILESERVICE']._serialized_start=
|
|
86
|
-
_globals['_WAFPROFILESERVICE']._serialized_end=
|
|
70
|
+
_globals['_CREATEWAFPROFILEREQUEST']._serialized_end=1222
|
|
71
|
+
_globals['_CREATEWAFPROFILEREQUEST_LABELSENTRY']._serialized_start=1165
|
|
72
|
+
_globals['_CREATEWAFPROFILEREQUEST_LABELSENTRY']._serialized_end=1210
|
|
73
|
+
_globals['_CREATEWAFPROFILEMETADATA']._serialized_start=1224
|
|
74
|
+
_globals['_CREATEWAFPROFILEMETADATA']._serialized_end=1274
|
|
75
|
+
_globals['_UPDATEWAFPROFILEREQUEST']._serialized_start=1277
|
|
76
|
+
_globals['_UPDATEWAFPROFILEREQUEST']._serialized_end=2025
|
|
77
|
+
_globals['_UPDATEWAFPROFILEREQUEST_LABELSENTRY']._serialized_start=1165
|
|
78
|
+
_globals['_UPDATEWAFPROFILEREQUEST_LABELSENTRY']._serialized_end=1210
|
|
79
|
+
_globals['_UPDATEWAFPROFILEMETADATA']._serialized_start=2027
|
|
80
|
+
_globals['_UPDATEWAFPROFILEMETADATA']._serialized_end=2077
|
|
81
|
+
_globals['_DELETEWAFPROFILEREQUEST']._serialized_start=2079
|
|
82
|
+
_globals['_DELETEWAFPROFILEREQUEST']._serialized_end=2134
|
|
83
|
+
_globals['_DELETEWAFPROFILEMETADATA']._serialized_start=2136
|
|
84
|
+
_globals['_DELETEWAFPROFILEMETADATA']._serialized_end=2186
|
|
85
|
+
_globals['_WAFPROFILESERVICE']._serialized_start=2189
|
|
86
|
+
_globals['_WAFPROFILESERVICE']._serialized_end=3191
|
|
87
87
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -96,12 +96,16 @@ class CreateWafProfileRequest(google.protobuf.message.Message):
|
|
|
96
96
|
EXCLUSION_RULES_FIELD_NUMBER: builtins.int
|
|
97
97
|
CORE_RULE_SET_FIELD_NUMBER: builtins.int
|
|
98
98
|
ANALYZE_REQUEST_BODY_FIELD_NUMBER: builtins.int
|
|
99
|
+
RULE_SETS_FIELD_NUMBER: builtins.int
|
|
100
|
+
MATCH_ALL_RULE_SETS_FIELD_NUMBER: builtins.int
|
|
99
101
|
folder_id: builtins.str
|
|
100
102
|
"""ID of the folder to create a WAF profile in."""
|
|
101
103
|
name: builtins.str
|
|
102
104
|
"""Name of the WAF profile. The name is unique within the folder. 1-50 characters long."""
|
|
103
105
|
description: builtins.str
|
|
104
106
|
"""Optional description of the WAF profile."""
|
|
107
|
+
match_all_rule_sets: builtins.bool
|
|
108
|
+
"""Parameter determines should all rule sets be matched."""
|
|
105
109
|
@property
|
|
106
110
|
def labels(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]:
|
|
107
111
|
"""Labels as `` key:value `` pairs. Maximum of 64 per resource."""
|
|
@@ -122,6 +126,10 @@ class CreateWafProfileRequest(google.protobuf.message.Message):
|
|
|
122
126
|
def analyze_request_body(self) -> yandex.cloud.smartwebsecurity.v1.waf.waf_profile_pb2.WafProfile.AnalyzeRequestBody:
|
|
123
127
|
"""Parameters for request body analyzer."""
|
|
124
128
|
|
|
129
|
+
@property
|
|
130
|
+
def rule_sets(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[yandex.cloud.smartwebsecurity.v1.waf.waf_profile_pb2.WafProfile.WafProfileRuleSet]:
|
|
131
|
+
"""List of rule sets. See [Rules](/docs/smartwebsecurity/concepts/waf#rules-set)."""
|
|
132
|
+
|
|
125
133
|
def __init__(
|
|
126
134
|
self,
|
|
127
135
|
*,
|
|
@@ -133,9 +141,11 @@ class CreateWafProfileRequest(google.protobuf.message.Message):
|
|
|
133
141
|
exclusion_rules: collections.abc.Iterable[yandex.cloud.smartwebsecurity.v1.waf.waf_profile_pb2.WafProfileExclusionRule] | None = ...,
|
|
134
142
|
core_rule_set: yandex.cloud.smartwebsecurity.v1.waf.waf_profile_pb2.WafProfile.CoreRuleSet | None = ...,
|
|
135
143
|
analyze_request_body: yandex.cloud.smartwebsecurity.v1.waf.waf_profile_pb2.WafProfile.AnalyzeRequestBody | None = ...,
|
|
144
|
+
rule_sets: collections.abc.Iterable[yandex.cloud.smartwebsecurity.v1.waf.waf_profile_pb2.WafProfile.WafProfileRuleSet] | None = ...,
|
|
145
|
+
match_all_rule_sets: builtins.bool = ...,
|
|
136
146
|
) -> None: ...
|
|
137
147
|
def HasField(self, field_name: typing.Literal["analyze_request_body", b"analyze_request_body", "core_rule_set", b"core_rule_set", "rule_set", b"rule_set"]) -> builtins.bool: ...
|
|
138
|
-
def ClearField(self, field_name: typing.Literal["analyze_request_body", b"analyze_request_body", "core_rule_set", b"core_rule_set", "description", b"description", "exclusion_rules", b"exclusion_rules", "folder_id", b"folder_id", "labels", b"labels", "name", b"name", "rule_set", b"rule_set", "rules", b"rules"]) -> None: ...
|
|
148
|
+
def ClearField(self, field_name: typing.Literal["analyze_request_body", b"analyze_request_body", "core_rule_set", b"core_rule_set", "description", b"description", "exclusion_rules", b"exclusion_rules", "folder_id", b"folder_id", "labels", b"labels", "match_all_rule_sets", b"match_all_rule_sets", "name", b"name", "rule_set", b"rule_set", "rule_sets", b"rule_sets", "rules", b"rules"]) -> None: ...
|
|
139
149
|
def WhichOneof(self, oneof_group: typing.Literal["rule_set", b"rule_set"]) -> typing.Literal["core_rule_set"] | None: ...
|
|
140
150
|
|
|
141
151
|
global___CreateWafProfileRequest = CreateWafProfileRequest
|
|
@@ -185,12 +195,16 @@ class UpdateWafProfileRequest(google.protobuf.message.Message):
|
|
|
185
195
|
EXCLUSION_RULES_FIELD_NUMBER: builtins.int
|
|
186
196
|
CORE_RULE_SET_FIELD_NUMBER: builtins.int
|
|
187
197
|
ANALYZE_REQUEST_BODY_FIELD_NUMBER: builtins.int
|
|
198
|
+
RULE_SETS_FIELD_NUMBER: builtins.int
|
|
199
|
+
MATCH_ALL_RULE_SETS_FIELD_NUMBER: builtins.int
|
|
188
200
|
waf_profile_id: builtins.str
|
|
189
201
|
"""ID of the WAF profile to update."""
|
|
190
202
|
name: builtins.str
|
|
191
203
|
"""Name of the WAF profile. The name is unique within the folder. 1-50 characters long."""
|
|
192
204
|
description: builtins.str
|
|
193
205
|
"""Optional description of the WAF profile."""
|
|
206
|
+
match_all_rule_sets: builtins.bool
|
|
207
|
+
"""Parameter determines should all rule sets be matched."""
|
|
194
208
|
@property
|
|
195
209
|
def update_mask(self) -> google.protobuf.field_mask_pb2.FieldMask:
|
|
196
210
|
"""Field mask that specifies which fields of the WafProfile resource are going to be updated."""
|
|
@@ -215,6 +229,10 @@ class UpdateWafProfileRequest(google.protobuf.message.Message):
|
|
|
215
229
|
def analyze_request_body(self) -> yandex.cloud.smartwebsecurity.v1.waf.waf_profile_pb2.WafProfile.AnalyzeRequestBody:
|
|
216
230
|
"""Parameters for request body analyzer."""
|
|
217
231
|
|
|
232
|
+
@property
|
|
233
|
+
def rule_sets(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[yandex.cloud.smartwebsecurity.v1.waf.waf_profile_pb2.WafProfile.WafProfileRuleSet]:
|
|
234
|
+
"""List of rule sets. See [Rules](/docs/smartwebsecurity/concepts/waf#rules-set)."""
|
|
235
|
+
|
|
218
236
|
def __init__(
|
|
219
237
|
self,
|
|
220
238
|
*,
|
|
@@ -227,9 +245,11 @@ class UpdateWafProfileRequest(google.protobuf.message.Message):
|
|
|
227
245
|
exclusion_rules: collections.abc.Iterable[yandex.cloud.smartwebsecurity.v1.waf.waf_profile_pb2.WafProfileExclusionRule] | None = ...,
|
|
228
246
|
core_rule_set: yandex.cloud.smartwebsecurity.v1.waf.waf_profile_pb2.WafProfile.CoreRuleSet | None = ...,
|
|
229
247
|
analyze_request_body: yandex.cloud.smartwebsecurity.v1.waf.waf_profile_pb2.WafProfile.AnalyzeRequestBody | None = ...,
|
|
248
|
+
rule_sets: collections.abc.Iterable[yandex.cloud.smartwebsecurity.v1.waf.waf_profile_pb2.WafProfile.WafProfileRuleSet] | None = ...,
|
|
249
|
+
match_all_rule_sets: builtins.bool = ...,
|
|
230
250
|
) -> None: ...
|
|
231
251
|
def HasField(self, field_name: typing.Literal["analyze_request_body", b"analyze_request_body", "core_rule_set", b"core_rule_set", "rule_set", b"rule_set", "update_mask", b"update_mask"]) -> builtins.bool: ...
|
|
232
|
-
def ClearField(self, field_name: typing.Literal["analyze_request_body", b"analyze_request_body", "core_rule_set", b"core_rule_set", "description", b"description", "exclusion_rules", b"exclusion_rules", "labels", b"labels", "name", b"name", "rule_set", b"rule_set", "rules", b"rules", "update_mask", b"update_mask", "waf_profile_id", b"waf_profile_id"]) -> None: ...
|
|
252
|
+
def ClearField(self, field_name: typing.Literal["analyze_request_body", b"analyze_request_body", "core_rule_set", b"core_rule_set", "description", b"description", "exclusion_rules", b"exclusion_rules", "labels", b"labels", "match_all_rule_sets", b"match_all_rule_sets", "name", b"name", "rule_set", b"rule_set", "rule_sets", b"rule_sets", "rules", b"rules", "update_mask", b"update_mask", "waf_profile_id", b"waf_profile_id"]) -> None: ...
|
|
233
253
|
def WhichOneof(self, oneof_group: typing.Literal["rule_set", b"rule_set"]) -> typing.Literal["core_rule_set"] | None: ...
|
|
234
254
|
|
|
235
255
|
global___UpdateWafProfileRequest = UpdateWafProfileRequest
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: yandex/cloud/storage/v1/presign_service.proto
|
|
5
|
+
# Protobuf Python Version: 5.29.0
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
+
from google.protobuf.internal import builder as _builder
|
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
5,
|
|
15
|
+
29,
|
|
16
|
+
0,
|
|
17
|
+
'',
|
|
18
|
+
'yandex/cloud/storage/v1/presign_service.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n-yandex/cloud/storage/v1/presign_service.proto\x12\x17yandex.cloud.storage.v1\"\xed\x01\n\x14PresignObjectRequest\x12\x0f\n\x07\x65xpires\x18\x01 \x01(\x03\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x0e\n\x06method\x18\x03 \x01(\t\x12K\n\x07headers\x18\x04 \x03(\x0b\x32:.yandex.cloud.storage.v1.PresignObjectRequest.HeadersEntry\x12\x12\n\nversion_id\x18\x05 \x01(\t\x12\x15\n\ras_attachment\x18\x06 \x01(\x08\x1a.\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x7f\n\x12PresignURLsRequest\x12\x13\n\x0b\x62ucket_name\x18\x01 \x01(\t\x12\x14\n\x0cpresign_host\x18\x02 \x01(\t\x12>\n\x07objects\x18\x03 \x03(\x0b\x32-.yandex.cloud.storage.v1.PresignObjectRequest\"#\n\x13PresignURLsResponse\x12\x0c\n\x04urls\x18\x01 \x03(\t2u\n\x0ePresignService\x12\x63\n\x06\x43reate\x12+.yandex.cloud.storage.v1.PresignURLsRequest\x1a,.yandex.cloud.storage.v1.PresignURLsResponseBb\n\x1byandex.cloud.api.storage.v1ZCgithub.com/yandex-cloud/go-genproto/yandex/cloud/storage/v1;storageb\x06proto3')
|
|
28
|
+
|
|
29
|
+
_globals = globals()
|
|
30
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
31
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'yandex.cloud.storage.v1.presign_service_pb2', _globals)
|
|
32
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
33
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
34
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\033yandex.cloud.api.storage.v1ZCgithub.com/yandex-cloud/go-genproto/yandex/cloud/storage/v1;storage'
|
|
35
|
+
_globals['_PRESIGNOBJECTREQUEST_HEADERSENTRY']._loaded_options = None
|
|
36
|
+
_globals['_PRESIGNOBJECTREQUEST_HEADERSENTRY']._serialized_options = b'8\001'
|
|
37
|
+
_globals['_PRESIGNOBJECTREQUEST']._serialized_start=75
|
|
38
|
+
_globals['_PRESIGNOBJECTREQUEST']._serialized_end=312
|
|
39
|
+
_globals['_PRESIGNOBJECTREQUEST_HEADERSENTRY']._serialized_start=266
|
|
40
|
+
_globals['_PRESIGNOBJECTREQUEST_HEADERSENTRY']._serialized_end=312
|
|
41
|
+
_globals['_PRESIGNURLSREQUEST']._serialized_start=314
|
|
42
|
+
_globals['_PRESIGNURLSREQUEST']._serialized_end=441
|
|
43
|
+
_globals['_PRESIGNURLSRESPONSE']._serialized_start=443
|
|
44
|
+
_globals['_PRESIGNURLSRESPONSE']._serialized_end=478
|
|
45
|
+
_globals['_PRESIGNSERVICE']._serialized_start=480
|
|
46
|
+
_globals['_PRESIGNSERVICE']._serialized_end=597
|
|
47
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,117 @@
|
|
|
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 PresignObjectRequest(google.protobuf.message.Message):
|
|
17
|
+
"""PresignObjectRequest represents a single object presign request"""
|
|
18
|
+
|
|
19
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
20
|
+
|
|
21
|
+
@typing.final
|
|
22
|
+
class HeadersEntry(google.protobuf.message.Message):
|
|
23
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
24
|
+
|
|
25
|
+
KEY_FIELD_NUMBER: builtins.int
|
|
26
|
+
VALUE_FIELD_NUMBER: builtins.int
|
|
27
|
+
key: builtins.str
|
|
28
|
+
value: builtins.str
|
|
29
|
+
def __init__(
|
|
30
|
+
self,
|
|
31
|
+
*,
|
|
32
|
+
key: builtins.str = ...,
|
|
33
|
+
value: builtins.str = ...,
|
|
34
|
+
) -> None: ...
|
|
35
|
+
def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
|
|
36
|
+
|
|
37
|
+
EXPIRES_FIELD_NUMBER: builtins.int
|
|
38
|
+
NAME_FIELD_NUMBER: builtins.int
|
|
39
|
+
METHOD_FIELD_NUMBER: builtins.int
|
|
40
|
+
HEADERS_FIELD_NUMBER: builtins.int
|
|
41
|
+
VERSION_ID_FIELD_NUMBER: builtins.int
|
|
42
|
+
AS_ATTACHMENT_FIELD_NUMBER: builtins.int
|
|
43
|
+
expires: builtins.int
|
|
44
|
+
"""Expiration time in seconds (1-604800, max 7 days)"""
|
|
45
|
+
name: builtins.str
|
|
46
|
+
"""Object name/key"""
|
|
47
|
+
method: builtins.str
|
|
48
|
+
"""HTTP method (GET, PUT, HEAD)"""
|
|
49
|
+
version_id: builtins.str
|
|
50
|
+
"""Object version ID (optional)"""
|
|
51
|
+
as_attachment: builtins.bool
|
|
52
|
+
"""Whether to force download as attachment"""
|
|
53
|
+
@property
|
|
54
|
+
def headers(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]:
|
|
55
|
+
"""Additional HTTP headers"""
|
|
56
|
+
|
|
57
|
+
def __init__(
|
|
58
|
+
self,
|
|
59
|
+
*,
|
|
60
|
+
expires: builtins.int = ...,
|
|
61
|
+
name: builtins.str = ...,
|
|
62
|
+
method: builtins.str = ...,
|
|
63
|
+
headers: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
|
|
64
|
+
version_id: builtins.str = ...,
|
|
65
|
+
as_attachment: builtins.bool = ...,
|
|
66
|
+
) -> None: ...
|
|
67
|
+
def ClearField(self, field_name: typing.Literal["as_attachment", b"as_attachment", "expires", b"expires", "headers", b"headers", "method", b"method", "name", b"name", "version_id", b"version_id"]) -> None: ...
|
|
68
|
+
|
|
69
|
+
global___PresignObjectRequest = PresignObjectRequest
|
|
70
|
+
|
|
71
|
+
@typing.final
|
|
72
|
+
class PresignURLsRequest(google.protobuf.message.Message):
|
|
73
|
+
"""PresignURLsRequest represents the request for presigning URLs"""
|
|
74
|
+
|
|
75
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
76
|
+
|
|
77
|
+
BUCKET_NAME_FIELD_NUMBER: builtins.int
|
|
78
|
+
PRESIGN_HOST_FIELD_NUMBER: builtins.int
|
|
79
|
+
OBJECTS_FIELD_NUMBER: builtins.int
|
|
80
|
+
bucket_name: builtins.str
|
|
81
|
+
"""Bucket name"""
|
|
82
|
+
presign_host: builtins.str
|
|
83
|
+
"""Custom presign host (optional)"""
|
|
84
|
+
@property
|
|
85
|
+
def objects(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___PresignObjectRequest]:
|
|
86
|
+
"""List of objects to presign"""
|
|
87
|
+
|
|
88
|
+
def __init__(
|
|
89
|
+
self,
|
|
90
|
+
*,
|
|
91
|
+
bucket_name: builtins.str = ...,
|
|
92
|
+
presign_host: builtins.str = ...,
|
|
93
|
+
objects: collections.abc.Iterable[global___PresignObjectRequest] | None = ...,
|
|
94
|
+
) -> None: ...
|
|
95
|
+
def ClearField(self, field_name: typing.Literal["bucket_name", b"bucket_name", "objects", b"objects", "presign_host", b"presign_host"]) -> None: ...
|
|
96
|
+
|
|
97
|
+
global___PresignURLsRequest = PresignURLsRequest
|
|
98
|
+
|
|
99
|
+
@typing.final
|
|
100
|
+
class PresignURLsResponse(google.protobuf.message.Message):
|
|
101
|
+
"""PresignURLsResponse represents the response with presigned URLs"""
|
|
102
|
+
|
|
103
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
104
|
+
|
|
105
|
+
URLS_FIELD_NUMBER: builtins.int
|
|
106
|
+
@property
|
|
107
|
+
def urls(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
|
|
108
|
+
"""List of presigned URLs corresponding to the requested objects"""
|
|
109
|
+
|
|
110
|
+
def __init__(
|
|
111
|
+
self,
|
|
112
|
+
*,
|
|
113
|
+
urls: collections.abc.Iterable[builtins.str] | None = ...,
|
|
114
|
+
) -> None: ...
|
|
115
|
+
def ClearField(self, field_name: typing.Literal["urls", b"urls"]) -> None: ...
|
|
116
|
+
|
|
117
|
+
global___PresignURLsResponse = PresignURLsResponse
|