yandexcloud 0.294.0__py3-none-any.whl → 0.296.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of yandexcloud might be problematic. Click here for more details.
- yandex/cloud/ai/foundation_models/v1/image_generation/image_generation_pb2.py +5 -3
- yandex/cloud/ai/foundation_models/v1/image_generation/image_generation_pb2.pyi +28 -1
- yandex/cloud/backup/v1/resource_pb2.py +16 -14
- yandex/cloud/backup/v1/resource_pb2.pyi +38 -1
- yandex/cloud/billing/v1/customer_service_pb2.pyi +1 -1
- yandex/cloud/billing/v1/sku_service_pb2.pyi +1 -0
- yandex/cloud/compute/v1/instance_pb2.pyi +1 -3
- yandex/cloud/compute/v1/instance_service_pb2.py +26 -26
- yandex/cloud/compute/v1/instance_service_pb2.pyi +5 -1
- yandex/cloud/datasphere/v2/jobs/jobs_pb2.py +40 -32
- yandex/cloud/datasphere/v2/jobs/jobs_pb2.pyi +78 -1
- yandex/cloud/datasphere/v2/jobs/project_job_service_pb2.py +56 -54
- yandex/cloud/datasphere/v2/jobs/project_job_service_pb2.pyi +21 -6
- yandex/cloud/datasphere/v2/project_service_pb2.py +34 -30
- yandex/cloud/datasphere/v2/project_service_pb2.pyi +13 -3
- yandex/cloud/iam/v1/api_key_service_pb2.py +13 -3
- yandex/cloud/iam/v1/api_key_service_pb2.pyi +53 -0
- yandex/cloud/iam/v1/api_key_service_pb2_grpc.py +34 -0
- yandex/cloud/iam/v1/api_key_service_pb2_grpc.pyi +20 -0
- yandex/cloud/iot/devices/v1/registry_pb2.py +13 -13
- yandex/cloud/iot/devices/v1/registry_pb2.pyi +4 -0
- yandex/cloud/iot/devices/v1/registry_service_pb2.py +23 -3
- yandex/cloud/iot/devices/v1/registry_service_pb2.pyi +64 -0
- yandex/cloud/iot/devices/v1/registry_service_pb2_grpc.py +68 -0
- yandex/cloud/iot/devices/v1/registry_service_pb2_grpc.pyi +40 -0
- yandex/cloud/mdb/greenplum/v1/pxf_pb2.pyi +226 -52
- yandex/cloud/mdb/kafka/v1/cluster_pb2.py +42 -35
- yandex/cloud/mdb/kafka/v1/cluster_pb2.pyi +32 -2
- yandex/cloud/mdb/mongodb/v1/cluster_service_pb2.pyi +13 -7
- yandex/cloud/mdb/postgresql/v1/user_pb2.pyi +33 -16
- yandex/cloud/organizationmanager/v1/os_login_service_pb2.py +20 -20
- yandex/cloud/organizationmanager/v1/os_login_service_pb2.pyi +2 -2
- yandex/cloud/serverless/functions/v1/function_pb2.py +30 -28
- yandex/cloud/serverless/functions/v1/function_pb2.pyi +5 -1
- yandex/cloud/serverless/functions/v1/function_service_pb2.py +38 -36
- yandex/cloud/serverless/functions/v1/function_service_pb2.pyi +5 -1
- yandex/cloud/smartcaptcha/__init__.py +0 -0
- yandex/cloud/smartcaptcha/v1/__init__.py +0 -0
- yandex/cloud/smartcaptcha/v1/captcha_pb2.py +100 -0
- yandex/cloud/smartcaptcha/v1/captcha_pb2.pyi +500 -0
- yandex/cloud/smartcaptcha/v1/captcha_pb2_grpc.py +4 -0
- yandex/cloud/smartcaptcha/v1/captcha_pb2_grpc.pyi +17 -0
- yandex/cloud/smartcaptcha/v1/captcha_service_pb2.py +76 -0
- yandex/cloud/smartcaptcha/v1/captcha_service_pb2.pyi +268 -0
- yandex/cloud/smartcaptcha/v1/captcha_service_pb2_grpc.py +242 -0
- yandex/cloud/smartcaptcha/v1/captcha_service_pb2_grpc.pyi +152 -0
- yandex/cloud/smartwebsecurity/__init__.py +0 -0
- yandex/cloud/smartwebsecurity/v1/__init__.py +0 -0
- yandex/cloud/smartwebsecurity/v1/security_profile_pb2.py +110 -0
- yandex/cloud/smartwebsecurity/v1/security_profile_pb2.pyi +520 -0
- yandex/cloud/smartwebsecurity/v1/security_profile_pb2_grpc.py +4 -0
- yandex/cloud/smartwebsecurity/v1/security_profile_pb2_grpc.pyi +17 -0
- yandex/cloud/smartwebsecurity/v1/security_profile_service_pb2.py +78 -0
- yandex/cloud/smartwebsecurity/v1/security_profile_service_pb2.pyi +260 -0
- yandex/cloud/smartwebsecurity/v1/security_profile_service_pb2_grpc.py +208 -0
- yandex/cloud/smartwebsecurity/v1/security_profile_service_pb2_grpc.pyi +132 -0
- yandex/cloud/speechsense/v1/analysis/__init__.py +0 -0
- yandex/cloud/speechsense/v1/analysis/conversation_statistics_pb2.py +28 -0
- yandex/cloud/speechsense/v1/analysis/conversation_statistics_pb2.pyi +40 -0
- yandex/cloud/speechsense/v1/analysis/conversation_statistics_pb2_grpc.py +4 -0
- yandex/cloud/speechsense/v1/analysis/conversation_statistics_pb2_grpc.pyi +17 -0
- yandex/cloud/speechsense/v1/analysis/interrupts_statistics_pb2.py +29 -0
- yandex/cloud/speechsense/v1/analysis/interrupts_statistics_pb2.pyi +66 -0
- yandex/cloud/speechsense/v1/analysis/interrupts_statistics_pb2_grpc.py +4 -0
- yandex/cloud/speechsense/v1/analysis/interrupts_statistics_pb2_grpc.pyi +17 -0
- yandex/cloud/speechsense/v1/analysis/points_pb2.py +29 -0
- yandex/cloud/speechsense/v1/analysis/points_pb2.pyi +53 -0
- yandex/cloud/speechsense/v1/analysis/points_pb2_grpc.py +4 -0
- yandex/cloud/speechsense/v1/analysis/points_pb2_grpc.pyi +17 -0
- yandex/cloud/speechsense/v1/analysis/predefined_classifiers_pb2.py +30 -0
- yandex/cloud/speechsense/v1/analysis/predefined_classifiers_pb2.pyi +93 -0
- yandex/cloud/speechsense/v1/analysis/predefined_classifiers_pb2_grpc.py +4 -0
- yandex/cloud/speechsense/v1/analysis/predefined_classifiers_pb2_grpc.pyi +17 -0
- yandex/cloud/speechsense/v1/analysis/silence_statistics_pb2.py +27 -0
- yandex/cloud/speechsense/v1/analysis/silence_statistics_pb2.pyi +41 -0
- yandex/cloud/speechsense/v1/analysis/silence_statistics_pb2_grpc.py +4 -0
- yandex/cloud/speechsense/v1/analysis/silence_statistics_pb2_grpc.pyi +17 -0
- yandex/cloud/speechsense/v1/analysis/speaker_statistics_pb2.py +28 -0
- yandex/cloud/speechsense/v1/analysis/speaker_statistics_pb2.pyi +58 -0
- yandex/cloud/speechsense/v1/analysis/speaker_statistics_pb2_grpc.py +4 -0
- yandex/cloud/speechsense/v1/analysis/speaker_statistics_pb2_grpc.pyi +17 -0
- yandex/cloud/speechsense/v1/analysis/speech_statistics_pb2.py +27 -0
- yandex/cloud/speechsense/v1/analysis/speech_statistics_pb2.pyi +43 -0
- yandex/cloud/speechsense/v1/analysis/speech_statistics_pb2_grpc.py +4 -0
- yandex/cloud/speechsense/v1/analysis/speech_statistics_pb2_grpc.pyi +17 -0
- yandex/cloud/speechsense/v1/analysis/statistics_common_pb2.py +30 -0
- yandex/cloud/speechsense/v1/analysis/statistics_common_pb2.pyi +91 -0
- yandex/cloud/speechsense/v1/analysis/statistics_common_pb2_grpc.py +4 -0
- yandex/cloud/speechsense/v1/analysis/statistics_common_pb2_grpc.pyi +17 -0
- yandex/cloud/speechsense/v1/analysis/text_classifiers_pb2.py +33 -0
- yandex/cloud/speechsense/v1/analysis/text_classifiers_pb2.pyi +102 -0
- yandex/cloud/speechsense/v1/analysis/text_classifiers_pb2_grpc.py +4 -0
- yandex/cloud/speechsense/v1/analysis/text_classifiers_pb2_grpc.pyi +17 -0
- yandex/cloud/speechsense/v1/analysis/transcription_pb2.py +41 -0
- yandex/cloud/speechsense/v1/analysis/transcription_pb2.pyi +186 -0
- yandex/cloud/speechsense/v1/analysis/transcription_pb2_grpc.py +4 -0
- yandex/cloud/speechsense/v1/analysis/transcription_pb2_grpc.pyi +17 -0
- yandex/cloud/speechsense/v1/analysis/utterance_statistics_pb2.py +27 -0
- yandex/cloud/speechsense/v1/analysis/utterance_statistics_pb2.pyi +70 -0
- yandex/cloud/speechsense/v1/analysis/utterance_statistics_pb2_grpc.py +4 -0
- yandex/cloud/speechsense/v1/analysis/utterance_statistics_pb2_grpc.pyi +17 -0
- yandex/cloud/speechsense/v1/search_pb2.py +51 -0
- yandex/cloud/speechsense/v1/search_pb2.pyi +324 -0
- yandex/cloud/speechsense/v1/search_pb2_grpc.py +4 -0
- yandex/cloud/speechsense/v1/search_pb2_grpc.pyi +17 -0
- yandex/cloud/speechsense/v1/talk_pb2.py +38 -0
- yandex/cloud/speechsense/v1/talk_pb2.pyi +161 -0
- yandex/cloud/speechsense/v1/talk_pb2_grpc.py +4 -0
- yandex/cloud/speechsense/v1/talk_pb2_grpc.pyi +17 -0
- yandex/cloud/speechsense/v1/talk_service_pb2.py +34 -18
- yandex/cloud/speechsense/v1/talk_service_pb2.pyi +143 -0
- yandex/cloud/speechsense/v1/talk_service_pb2_grpc.py +68 -0
- yandex/cloud/speechsense/v1/talk_service_pb2_grpc.pyi +40 -0
- {yandexcloud-0.294.0.dist-info → yandexcloud-0.296.0.dist-info}/METADATA +8 -8
- {yandexcloud-0.294.0.dist-info → yandexcloud-0.296.0.dist-info}/RECORD +119 -46
- {yandexcloud-0.294.0.dist-info → yandexcloud-0.296.0.dist-info}/AUTHORS +0 -0
- {yandexcloud-0.294.0.dist-info → yandexcloud-0.296.0.dist-info}/LICENSE +0 -0
- {yandexcloud-0.294.0.dist-info → yandexcloud-0.296.0.dist-info}/WHEEL +0 -0
- {yandexcloud-0.294.0.dist-info → yandexcloud-0.296.0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
"""
|
|
2
|
+
@generated by mypy-protobuf. Do not edit manually!
|
|
3
|
+
isort:skip_file
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
import builtins
|
|
7
|
+
import collections.abc
|
|
8
|
+
import google.protobuf.descriptor
|
|
9
|
+
import google.protobuf.field_mask_pb2
|
|
10
|
+
import google.protobuf.internal.containers
|
|
11
|
+
import google.protobuf.message
|
|
12
|
+
import typing
|
|
13
|
+
import yandex.cloud.smartwebsecurity.v1.security_profile_pb2
|
|
14
|
+
|
|
15
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
16
|
+
|
|
17
|
+
@typing.final
|
|
18
|
+
class GetSecurityProfileRequest(google.protobuf.message.Message):
|
|
19
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
20
|
+
|
|
21
|
+
SECURITY_PROFILE_ID_FIELD_NUMBER: builtins.int
|
|
22
|
+
security_profile_id: builtins.str
|
|
23
|
+
"""ID of the SecurityProfile resource to return."""
|
|
24
|
+
def __init__(
|
|
25
|
+
self,
|
|
26
|
+
*,
|
|
27
|
+
security_profile_id: builtins.str = ...,
|
|
28
|
+
) -> None: ...
|
|
29
|
+
def ClearField(self, field_name: typing.Literal["security_profile_id", b"security_profile_id"]) -> None: ...
|
|
30
|
+
|
|
31
|
+
global___GetSecurityProfileRequest = GetSecurityProfileRequest
|
|
32
|
+
|
|
33
|
+
@typing.final
|
|
34
|
+
class ListSecurityProfilesRequest(google.protobuf.message.Message):
|
|
35
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
36
|
+
|
|
37
|
+
FOLDER_ID_FIELD_NUMBER: builtins.int
|
|
38
|
+
folder_id: builtins.str
|
|
39
|
+
"""ID of the folder that the security profile belongs to.
|
|
40
|
+
Currently page_size, page_token, filter and order_by are not supported and List method will return all security profiles in the folder.
|
|
41
|
+
"""
|
|
42
|
+
def __init__(
|
|
43
|
+
self,
|
|
44
|
+
*,
|
|
45
|
+
folder_id: builtins.str = ...,
|
|
46
|
+
) -> None: ...
|
|
47
|
+
def ClearField(self, field_name: typing.Literal["folder_id", b"folder_id"]) -> None: ...
|
|
48
|
+
|
|
49
|
+
global___ListSecurityProfilesRequest = ListSecurityProfilesRequest
|
|
50
|
+
|
|
51
|
+
@typing.final
|
|
52
|
+
class ListSecurityProfilesResponse(google.protobuf.message.Message):
|
|
53
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
54
|
+
|
|
55
|
+
SECURITY_PROFILES_FIELD_NUMBER: builtins.int
|
|
56
|
+
@property
|
|
57
|
+
def security_profiles(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[yandex.cloud.smartwebsecurity.v1.security_profile_pb2.SecurityProfile]:
|
|
58
|
+
"""List of SecurityProfile resources.
|
|
59
|
+
Currently next_page_token is not supported and List method will return all security profiles in the folder.
|
|
60
|
+
"""
|
|
61
|
+
|
|
62
|
+
def __init__(
|
|
63
|
+
self,
|
|
64
|
+
*,
|
|
65
|
+
security_profiles: collections.abc.Iterable[yandex.cloud.smartwebsecurity.v1.security_profile_pb2.SecurityProfile] | None = ...,
|
|
66
|
+
) -> None: ...
|
|
67
|
+
def ClearField(self, field_name: typing.Literal["security_profiles", b"security_profiles"]) -> None: ...
|
|
68
|
+
|
|
69
|
+
global___ListSecurityProfilesResponse = ListSecurityProfilesResponse
|
|
70
|
+
|
|
71
|
+
@typing.final
|
|
72
|
+
class CreateSecurityProfileRequest(google.protobuf.message.Message):
|
|
73
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
74
|
+
|
|
75
|
+
@typing.final
|
|
76
|
+
class LabelsEntry(google.protobuf.message.Message):
|
|
77
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
78
|
+
|
|
79
|
+
KEY_FIELD_NUMBER: builtins.int
|
|
80
|
+
VALUE_FIELD_NUMBER: builtins.int
|
|
81
|
+
key: builtins.str
|
|
82
|
+
value: builtins.str
|
|
83
|
+
def __init__(
|
|
84
|
+
self,
|
|
85
|
+
*,
|
|
86
|
+
key: builtins.str = ...,
|
|
87
|
+
value: builtins.str = ...,
|
|
88
|
+
) -> None: ...
|
|
89
|
+
def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
|
|
90
|
+
|
|
91
|
+
FOLDER_ID_FIELD_NUMBER: builtins.int
|
|
92
|
+
LABELS_FIELD_NUMBER: builtins.int
|
|
93
|
+
NAME_FIELD_NUMBER: builtins.int
|
|
94
|
+
DESCRIPTION_FIELD_NUMBER: builtins.int
|
|
95
|
+
DEFAULT_ACTION_FIELD_NUMBER: builtins.int
|
|
96
|
+
SECURITY_RULES_FIELD_NUMBER: builtins.int
|
|
97
|
+
CAPTCHA_ID_FIELD_NUMBER: builtins.int
|
|
98
|
+
folder_id: builtins.str
|
|
99
|
+
"""ID of the folder to create a security profile in."""
|
|
100
|
+
name: builtins.str
|
|
101
|
+
"""Name of the security profile. The name is unique within the folder. 1-50 characters long."""
|
|
102
|
+
description: builtins.str
|
|
103
|
+
"""Optional description of the security profile."""
|
|
104
|
+
default_action: yandex.cloud.smartwebsecurity.v1.security_profile_pb2.SecurityProfile.DefaultAction.ValueType
|
|
105
|
+
"""Action to perform if none of rules matched."""
|
|
106
|
+
captcha_id: builtins.str
|
|
107
|
+
"""Captcha ID to use with this security profile. Set empty to use default."""
|
|
108
|
+
@property
|
|
109
|
+
def labels(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]:
|
|
110
|
+
"""Labels as `` key:value `` pairs. Maximum of 64 per resource."""
|
|
111
|
+
|
|
112
|
+
@property
|
|
113
|
+
def security_rules(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[yandex.cloud.smartwebsecurity.v1.security_profile_pb2.SecurityRule]:
|
|
114
|
+
"""List of security rules."""
|
|
115
|
+
|
|
116
|
+
def __init__(
|
|
117
|
+
self,
|
|
118
|
+
*,
|
|
119
|
+
folder_id: builtins.str = ...,
|
|
120
|
+
labels: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
|
|
121
|
+
name: builtins.str = ...,
|
|
122
|
+
description: builtins.str = ...,
|
|
123
|
+
default_action: yandex.cloud.smartwebsecurity.v1.security_profile_pb2.SecurityProfile.DefaultAction.ValueType = ...,
|
|
124
|
+
security_rules: collections.abc.Iterable[yandex.cloud.smartwebsecurity.v1.security_profile_pb2.SecurityRule] | None = ...,
|
|
125
|
+
captcha_id: builtins.str = ...,
|
|
126
|
+
) -> None: ...
|
|
127
|
+
def ClearField(self, field_name: typing.Literal["captcha_id", b"captcha_id", "default_action", b"default_action", "description", b"description", "folder_id", b"folder_id", "labels", b"labels", "name", b"name", "security_rules", b"security_rules"]) -> None: ...
|
|
128
|
+
|
|
129
|
+
global___CreateSecurityProfileRequest = CreateSecurityProfileRequest
|
|
130
|
+
|
|
131
|
+
@typing.final
|
|
132
|
+
class CreateSecurityProfileMetadata(google.protobuf.message.Message):
|
|
133
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
134
|
+
|
|
135
|
+
SECURITY_PROFILE_ID_FIELD_NUMBER: builtins.int
|
|
136
|
+
security_profile_id: builtins.str
|
|
137
|
+
"""ID of the security profile that is being created."""
|
|
138
|
+
def __init__(
|
|
139
|
+
self,
|
|
140
|
+
*,
|
|
141
|
+
security_profile_id: builtins.str = ...,
|
|
142
|
+
) -> None: ...
|
|
143
|
+
def ClearField(self, field_name: typing.Literal["security_profile_id", b"security_profile_id"]) -> None: ...
|
|
144
|
+
|
|
145
|
+
global___CreateSecurityProfileMetadata = CreateSecurityProfileMetadata
|
|
146
|
+
|
|
147
|
+
@typing.final
|
|
148
|
+
class UpdateSecurityProfileRequest(google.protobuf.message.Message):
|
|
149
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
150
|
+
|
|
151
|
+
@typing.final
|
|
152
|
+
class LabelsEntry(google.protobuf.message.Message):
|
|
153
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
154
|
+
|
|
155
|
+
KEY_FIELD_NUMBER: builtins.int
|
|
156
|
+
VALUE_FIELD_NUMBER: builtins.int
|
|
157
|
+
key: builtins.str
|
|
158
|
+
value: builtins.str
|
|
159
|
+
def __init__(
|
|
160
|
+
self,
|
|
161
|
+
*,
|
|
162
|
+
key: builtins.str = ...,
|
|
163
|
+
value: builtins.str = ...,
|
|
164
|
+
) -> None: ...
|
|
165
|
+
def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
|
|
166
|
+
|
|
167
|
+
SECURITY_PROFILE_ID_FIELD_NUMBER: builtins.int
|
|
168
|
+
UPDATE_MASK_FIELD_NUMBER: builtins.int
|
|
169
|
+
LABELS_FIELD_NUMBER: builtins.int
|
|
170
|
+
NAME_FIELD_NUMBER: builtins.int
|
|
171
|
+
DESCRIPTION_FIELD_NUMBER: builtins.int
|
|
172
|
+
DEFAULT_ACTION_FIELD_NUMBER: builtins.int
|
|
173
|
+
SECURITY_RULES_FIELD_NUMBER: builtins.int
|
|
174
|
+
CAPTCHA_ID_FIELD_NUMBER: builtins.int
|
|
175
|
+
security_profile_id: builtins.str
|
|
176
|
+
"""ID of the security profile to update."""
|
|
177
|
+
name: builtins.str
|
|
178
|
+
"""Name of the security profile. The name is unique within the folder. 1-50 characters long."""
|
|
179
|
+
description: builtins.str
|
|
180
|
+
"""Optional description of the security profile."""
|
|
181
|
+
default_action: yandex.cloud.smartwebsecurity.v1.security_profile_pb2.SecurityProfile.DefaultAction.ValueType
|
|
182
|
+
"""Action to perform if none of rules matched."""
|
|
183
|
+
captcha_id: builtins.str
|
|
184
|
+
"""Captcha ID to use with this security profile. Set empty to use default."""
|
|
185
|
+
@property
|
|
186
|
+
def update_mask(self) -> google.protobuf.field_mask_pb2.FieldMask:
|
|
187
|
+
"""Field mask that specifies which fields of the SecurityProfile resource are going to be updated."""
|
|
188
|
+
|
|
189
|
+
@property
|
|
190
|
+
def labels(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]:
|
|
191
|
+
"""Labels as `` key:value `` pairs. Maximum of 64 per resource."""
|
|
192
|
+
|
|
193
|
+
@property
|
|
194
|
+
def security_rules(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[yandex.cloud.smartwebsecurity.v1.security_profile_pb2.SecurityRule]:
|
|
195
|
+
"""List of security rules."""
|
|
196
|
+
|
|
197
|
+
def __init__(
|
|
198
|
+
self,
|
|
199
|
+
*,
|
|
200
|
+
security_profile_id: builtins.str = ...,
|
|
201
|
+
update_mask: google.protobuf.field_mask_pb2.FieldMask | None = ...,
|
|
202
|
+
labels: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
|
|
203
|
+
name: builtins.str = ...,
|
|
204
|
+
description: builtins.str = ...,
|
|
205
|
+
default_action: yandex.cloud.smartwebsecurity.v1.security_profile_pb2.SecurityProfile.DefaultAction.ValueType = ...,
|
|
206
|
+
security_rules: collections.abc.Iterable[yandex.cloud.smartwebsecurity.v1.security_profile_pb2.SecurityRule] | None = ...,
|
|
207
|
+
captcha_id: builtins.str = ...,
|
|
208
|
+
) -> None: ...
|
|
209
|
+
def HasField(self, field_name: typing.Literal["update_mask", b"update_mask"]) -> builtins.bool: ...
|
|
210
|
+
def ClearField(self, field_name: typing.Literal["captcha_id", b"captcha_id", "default_action", b"default_action", "description", b"description", "labels", b"labels", "name", b"name", "security_profile_id", b"security_profile_id", "security_rules", b"security_rules", "update_mask", b"update_mask"]) -> None: ...
|
|
211
|
+
|
|
212
|
+
global___UpdateSecurityProfileRequest = UpdateSecurityProfileRequest
|
|
213
|
+
|
|
214
|
+
@typing.final
|
|
215
|
+
class UpdateSecurityProfileMetadata(google.protobuf.message.Message):
|
|
216
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
217
|
+
|
|
218
|
+
SECURITY_PROFILE_ID_FIELD_NUMBER: builtins.int
|
|
219
|
+
security_profile_id: builtins.str
|
|
220
|
+
"""ID of the SecurityProfile resource that is being updated."""
|
|
221
|
+
def __init__(
|
|
222
|
+
self,
|
|
223
|
+
*,
|
|
224
|
+
security_profile_id: builtins.str = ...,
|
|
225
|
+
) -> None: ...
|
|
226
|
+
def ClearField(self, field_name: typing.Literal["security_profile_id", b"security_profile_id"]) -> None: ...
|
|
227
|
+
|
|
228
|
+
global___UpdateSecurityProfileMetadata = UpdateSecurityProfileMetadata
|
|
229
|
+
|
|
230
|
+
@typing.final
|
|
231
|
+
class DeleteSecurityProfileRequest(google.protobuf.message.Message):
|
|
232
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
233
|
+
|
|
234
|
+
SECURITY_PROFILE_ID_FIELD_NUMBER: builtins.int
|
|
235
|
+
security_profile_id: builtins.str
|
|
236
|
+
"""ID of the security profile to delete."""
|
|
237
|
+
def __init__(
|
|
238
|
+
self,
|
|
239
|
+
*,
|
|
240
|
+
security_profile_id: builtins.str = ...,
|
|
241
|
+
) -> None: ...
|
|
242
|
+
def ClearField(self, field_name: typing.Literal["security_profile_id", b"security_profile_id"]) -> None: ...
|
|
243
|
+
|
|
244
|
+
global___DeleteSecurityProfileRequest = DeleteSecurityProfileRequest
|
|
245
|
+
|
|
246
|
+
@typing.final
|
|
247
|
+
class DeleteSecurityProfileMetadata(google.protobuf.message.Message):
|
|
248
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
249
|
+
|
|
250
|
+
SECURITY_PROFILE_ID_FIELD_NUMBER: builtins.int
|
|
251
|
+
security_profile_id: builtins.str
|
|
252
|
+
"""ID of the SecurityProfile resource that is being deleted."""
|
|
253
|
+
def __init__(
|
|
254
|
+
self,
|
|
255
|
+
*,
|
|
256
|
+
security_profile_id: builtins.str = ...,
|
|
257
|
+
) -> None: ...
|
|
258
|
+
def ClearField(self, field_name: typing.Literal["security_profile_id", b"security_profile_id"]) -> None: ...
|
|
259
|
+
|
|
260
|
+
global___DeleteSecurityProfileMetadata = DeleteSecurityProfileMetadata
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
2
|
+
"""Client and server classes corresponding to protobuf-defined services."""
|
|
3
|
+
import grpc
|
|
4
|
+
|
|
5
|
+
from yandex.cloud.operation import operation_pb2 as yandex_dot_cloud_dot_operation_dot_operation__pb2
|
|
6
|
+
from yandex.cloud.smartwebsecurity.v1 import security_profile_pb2 as yandex_dot_cloud_dot_smartwebsecurity_dot_v1_dot_security__profile__pb2
|
|
7
|
+
from yandex.cloud.smartwebsecurity.v1 import security_profile_service_pb2 as yandex_dot_cloud_dot_smartwebsecurity_dot_v1_dot_security__profile__service__pb2
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class SecurityProfileServiceStub(object):
|
|
11
|
+
"""A set of methods for managing SecurityProfile resources.
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
def __init__(self, channel):
|
|
15
|
+
"""Constructor.
|
|
16
|
+
|
|
17
|
+
Args:
|
|
18
|
+
channel: A grpc.Channel.
|
|
19
|
+
"""
|
|
20
|
+
self.Get = channel.unary_unary(
|
|
21
|
+
'/yandex.cloud.smartwebsecurity.v1.SecurityProfileService/Get',
|
|
22
|
+
request_serializer=yandex_dot_cloud_dot_smartwebsecurity_dot_v1_dot_security__profile__service__pb2.GetSecurityProfileRequest.SerializeToString,
|
|
23
|
+
response_deserializer=yandex_dot_cloud_dot_smartwebsecurity_dot_v1_dot_security__profile__pb2.SecurityProfile.FromString,
|
|
24
|
+
)
|
|
25
|
+
self.List = channel.unary_unary(
|
|
26
|
+
'/yandex.cloud.smartwebsecurity.v1.SecurityProfileService/List',
|
|
27
|
+
request_serializer=yandex_dot_cloud_dot_smartwebsecurity_dot_v1_dot_security__profile__service__pb2.ListSecurityProfilesRequest.SerializeToString,
|
|
28
|
+
response_deserializer=yandex_dot_cloud_dot_smartwebsecurity_dot_v1_dot_security__profile__service__pb2.ListSecurityProfilesResponse.FromString,
|
|
29
|
+
)
|
|
30
|
+
self.Create = channel.unary_unary(
|
|
31
|
+
'/yandex.cloud.smartwebsecurity.v1.SecurityProfileService/Create',
|
|
32
|
+
request_serializer=yandex_dot_cloud_dot_smartwebsecurity_dot_v1_dot_security__profile__service__pb2.CreateSecurityProfileRequest.SerializeToString,
|
|
33
|
+
response_deserializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
34
|
+
)
|
|
35
|
+
self.Update = channel.unary_unary(
|
|
36
|
+
'/yandex.cloud.smartwebsecurity.v1.SecurityProfileService/Update',
|
|
37
|
+
request_serializer=yandex_dot_cloud_dot_smartwebsecurity_dot_v1_dot_security__profile__service__pb2.UpdateSecurityProfileRequest.SerializeToString,
|
|
38
|
+
response_deserializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
39
|
+
)
|
|
40
|
+
self.Delete = channel.unary_unary(
|
|
41
|
+
'/yandex.cloud.smartwebsecurity.v1.SecurityProfileService/Delete',
|
|
42
|
+
request_serializer=yandex_dot_cloud_dot_smartwebsecurity_dot_v1_dot_security__profile__service__pb2.DeleteSecurityProfileRequest.SerializeToString,
|
|
43
|
+
response_deserializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
44
|
+
)
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
class SecurityProfileServiceServicer(object):
|
|
48
|
+
"""A set of methods for managing SecurityProfile resources.
|
|
49
|
+
"""
|
|
50
|
+
|
|
51
|
+
def Get(self, request, context):
|
|
52
|
+
"""Returns the specified SecurityProfile resource.
|
|
53
|
+
"""
|
|
54
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
55
|
+
context.set_details('Method not implemented!')
|
|
56
|
+
raise NotImplementedError('Method not implemented!')
|
|
57
|
+
|
|
58
|
+
def List(self, request, context):
|
|
59
|
+
"""Retrieves the list of SecurityProfile resources in the specified folder.
|
|
60
|
+
"""
|
|
61
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
62
|
+
context.set_details('Method not implemented!')
|
|
63
|
+
raise NotImplementedError('Method not implemented!')
|
|
64
|
+
|
|
65
|
+
def Create(self, request, context):
|
|
66
|
+
"""Creates a security profile in the specified folder using the data specified in the request.
|
|
67
|
+
"""
|
|
68
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
69
|
+
context.set_details('Method not implemented!')
|
|
70
|
+
raise NotImplementedError('Method not implemented!')
|
|
71
|
+
|
|
72
|
+
def Update(self, request, context):
|
|
73
|
+
"""Updates the specified security profile.
|
|
74
|
+
"""
|
|
75
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
76
|
+
context.set_details('Method not implemented!')
|
|
77
|
+
raise NotImplementedError('Method not implemented!')
|
|
78
|
+
|
|
79
|
+
def Delete(self, request, context):
|
|
80
|
+
"""Deletes the specified security profile.
|
|
81
|
+
"""
|
|
82
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
83
|
+
context.set_details('Method not implemented!')
|
|
84
|
+
raise NotImplementedError('Method not implemented!')
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
def add_SecurityProfileServiceServicer_to_server(servicer, server):
|
|
88
|
+
rpc_method_handlers = {
|
|
89
|
+
'Get': grpc.unary_unary_rpc_method_handler(
|
|
90
|
+
servicer.Get,
|
|
91
|
+
request_deserializer=yandex_dot_cloud_dot_smartwebsecurity_dot_v1_dot_security__profile__service__pb2.GetSecurityProfileRequest.FromString,
|
|
92
|
+
response_serializer=yandex_dot_cloud_dot_smartwebsecurity_dot_v1_dot_security__profile__pb2.SecurityProfile.SerializeToString,
|
|
93
|
+
),
|
|
94
|
+
'List': grpc.unary_unary_rpc_method_handler(
|
|
95
|
+
servicer.List,
|
|
96
|
+
request_deserializer=yandex_dot_cloud_dot_smartwebsecurity_dot_v1_dot_security__profile__service__pb2.ListSecurityProfilesRequest.FromString,
|
|
97
|
+
response_serializer=yandex_dot_cloud_dot_smartwebsecurity_dot_v1_dot_security__profile__service__pb2.ListSecurityProfilesResponse.SerializeToString,
|
|
98
|
+
),
|
|
99
|
+
'Create': grpc.unary_unary_rpc_method_handler(
|
|
100
|
+
servicer.Create,
|
|
101
|
+
request_deserializer=yandex_dot_cloud_dot_smartwebsecurity_dot_v1_dot_security__profile__service__pb2.CreateSecurityProfileRequest.FromString,
|
|
102
|
+
response_serializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.SerializeToString,
|
|
103
|
+
),
|
|
104
|
+
'Update': grpc.unary_unary_rpc_method_handler(
|
|
105
|
+
servicer.Update,
|
|
106
|
+
request_deserializer=yandex_dot_cloud_dot_smartwebsecurity_dot_v1_dot_security__profile__service__pb2.UpdateSecurityProfileRequest.FromString,
|
|
107
|
+
response_serializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.SerializeToString,
|
|
108
|
+
),
|
|
109
|
+
'Delete': grpc.unary_unary_rpc_method_handler(
|
|
110
|
+
servicer.Delete,
|
|
111
|
+
request_deserializer=yandex_dot_cloud_dot_smartwebsecurity_dot_v1_dot_security__profile__service__pb2.DeleteSecurityProfileRequest.FromString,
|
|
112
|
+
response_serializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.SerializeToString,
|
|
113
|
+
),
|
|
114
|
+
}
|
|
115
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
116
|
+
'yandex.cloud.smartwebsecurity.v1.SecurityProfileService', rpc_method_handlers)
|
|
117
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
# This class is part of an EXPERIMENTAL API.
|
|
121
|
+
class SecurityProfileService(object):
|
|
122
|
+
"""A set of methods for managing SecurityProfile resources.
|
|
123
|
+
"""
|
|
124
|
+
|
|
125
|
+
@staticmethod
|
|
126
|
+
def Get(request,
|
|
127
|
+
target,
|
|
128
|
+
options=(),
|
|
129
|
+
channel_credentials=None,
|
|
130
|
+
call_credentials=None,
|
|
131
|
+
insecure=False,
|
|
132
|
+
compression=None,
|
|
133
|
+
wait_for_ready=None,
|
|
134
|
+
timeout=None,
|
|
135
|
+
metadata=None):
|
|
136
|
+
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.smartwebsecurity.v1.SecurityProfileService/Get',
|
|
137
|
+
yandex_dot_cloud_dot_smartwebsecurity_dot_v1_dot_security__profile__service__pb2.GetSecurityProfileRequest.SerializeToString,
|
|
138
|
+
yandex_dot_cloud_dot_smartwebsecurity_dot_v1_dot_security__profile__pb2.SecurityProfile.FromString,
|
|
139
|
+
options, channel_credentials,
|
|
140
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
141
|
+
|
|
142
|
+
@staticmethod
|
|
143
|
+
def List(request,
|
|
144
|
+
target,
|
|
145
|
+
options=(),
|
|
146
|
+
channel_credentials=None,
|
|
147
|
+
call_credentials=None,
|
|
148
|
+
insecure=False,
|
|
149
|
+
compression=None,
|
|
150
|
+
wait_for_ready=None,
|
|
151
|
+
timeout=None,
|
|
152
|
+
metadata=None):
|
|
153
|
+
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.smartwebsecurity.v1.SecurityProfileService/List',
|
|
154
|
+
yandex_dot_cloud_dot_smartwebsecurity_dot_v1_dot_security__profile__service__pb2.ListSecurityProfilesRequest.SerializeToString,
|
|
155
|
+
yandex_dot_cloud_dot_smartwebsecurity_dot_v1_dot_security__profile__service__pb2.ListSecurityProfilesResponse.FromString,
|
|
156
|
+
options, channel_credentials,
|
|
157
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
158
|
+
|
|
159
|
+
@staticmethod
|
|
160
|
+
def Create(request,
|
|
161
|
+
target,
|
|
162
|
+
options=(),
|
|
163
|
+
channel_credentials=None,
|
|
164
|
+
call_credentials=None,
|
|
165
|
+
insecure=False,
|
|
166
|
+
compression=None,
|
|
167
|
+
wait_for_ready=None,
|
|
168
|
+
timeout=None,
|
|
169
|
+
metadata=None):
|
|
170
|
+
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.smartwebsecurity.v1.SecurityProfileService/Create',
|
|
171
|
+
yandex_dot_cloud_dot_smartwebsecurity_dot_v1_dot_security__profile__service__pb2.CreateSecurityProfileRequest.SerializeToString,
|
|
172
|
+
yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
173
|
+
options, channel_credentials,
|
|
174
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
175
|
+
|
|
176
|
+
@staticmethod
|
|
177
|
+
def Update(request,
|
|
178
|
+
target,
|
|
179
|
+
options=(),
|
|
180
|
+
channel_credentials=None,
|
|
181
|
+
call_credentials=None,
|
|
182
|
+
insecure=False,
|
|
183
|
+
compression=None,
|
|
184
|
+
wait_for_ready=None,
|
|
185
|
+
timeout=None,
|
|
186
|
+
metadata=None):
|
|
187
|
+
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.smartwebsecurity.v1.SecurityProfileService/Update',
|
|
188
|
+
yandex_dot_cloud_dot_smartwebsecurity_dot_v1_dot_security__profile__service__pb2.UpdateSecurityProfileRequest.SerializeToString,
|
|
189
|
+
yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
190
|
+
options, channel_credentials,
|
|
191
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
192
|
+
|
|
193
|
+
@staticmethod
|
|
194
|
+
def Delete(request,
|
|
195
|
+
target,
|
|
196
|
+
options=(),
|
|
197
|
+
channel_credentials=None,
|
|
198
|
+
call_credentials=None,
|
|
199
|
+
insecure=False,
|
|
200
|
+
compression=None,
|
|
201
|
+
wait_for_ready=None,
|
|
202
|
+
timeout=None,
|
|
203
|
+
metadata=None):
|
|
204
|
+
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.smartwebsecurity.v1.SecurityProfileService/Delete',
|
|
205
|
+
yandex_dot_cloud_dot_smartwebsecurity_dot_v1_dot_security__profile__service__pb2.DeleteSecurityProfileRequest.SerializeToString,
|
|
206
|
+
yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
207
|
+
options, channel_credentials,
|
|
208
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
@@ -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.security_profile_pb2
|
|
13
|
+
import yandex.cloud.smartwebsecurity.v1.security_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 SecurityProfileServiceStub:
|
|
23
|
+
"""A set of methods for managing SecurityProfile resources."""
|
|
24
|
+
|
|
25
|
+
def __init__(self, channel: typing.Union[grpc.Channel, grpc.aio.Channel]) -> None: ...
|
|
26
|
+
Get: grpc.UnaryUnaryMultiCallable[
|
|
27
|
+
yandex.cloud.smartwebsecurity.v1.security_profile_service_pb2.GetSecurityProfileRequest,
|
|
28
|
+
yandex.cloud.smartwebsecurity.v1.security_profile_pb2.SecurityProfile,
|
|
29
|
+
]
|
|
30
|
+
"""Returns the specified SecurityProfile resource."""
|
|
31
|
+
|
|
32
|
+
List: grpc.UnaryUnaryMultiCallable[
|
|
33
|
+
yandex.cloud.smartwebsecurity.v1.security_profile_service_pb2.ListSecurityProfilesRequest,
|
|
34
|
+
yandex.cloud.smartwebsecurity.v1.security_profile_service_pb2.ListSecurityProfilesResponse,
|
|
35
|
+
]
|
|
36
|
+
"""Retrieves the list of SecurityProfile resources in the specified folder."""
|
|
37
|
+
|
|
38
|
+
Create: grpc.UnaryUnaryMultiCallable[
|
|
39
|
+
yandex.cloud.smartwebsecurity.v1.security_profile_service_pb2.CreateSecurityProfileRequest,
|
|
40
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
41
|
+
]
|
|
42
|
+
"""Creates a security profile in the specified folder using the data specified in the request."""
|
|
43
|
+
|
|
44
|
+
Update: grpc.UnaryUnaryMultiCallable[
|
|
45
|
+
yandex.cloud.smartwebsecurity.v1.security_profile_service_pb2.UpdateSecurityProfileRequest,
|
|
46
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
47
|
+
]
|
|
48
|
+
"""Updates the specified security profile."""
|
|
49
|
+
|
|
50
|
+
Delete: grpc.UnaryUnaryMultiCallable[
|
|
51
|
+
yandex.cloud.smartwebsecurity.v1.security_profile_service_pb2.DeleteSecurityProfileRequest,
|
|
52
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
53
|
+
]
|
|
54
|
+
"""Deletes the specified security profile."""
|
|
55
|
+
|
|
56
|
+
class SecurityProfileServiceAsyncStub:
|
|
57
|
+
"""A set of methods for managing SecurityProfile resources."""
|
|
58
|
+
|
|
59
|
+
Get: grpc.aio.UnaryUnaryMultiCallable[
|
|
60
|
+
yandex.cloud.smartwebsecurity.v1.security_profile_service_pb2.GetSecurityProfileRequest,
|
|
61
|
+
yandex.cloud.smartwebsecurity.v1.security_profile_pb2.SecurityProfile,
|
|
62
|
+
]
|
|
63
|
+
"""Returns the specified SecurityProfile resource."""
|
|
64
|
+
|
|
65
|
+
List: grpc.aio.UnaryUnaryMultiCallable[
|
|
66
|
+
yandex.cloud.smartwebsecurity.v1.security_profile_service_pb2.ListSecurityProfilesRequest,
|
|
67
|
+
yandex.cloud.smartwebsecurity.v1.security_profile_service_pb2.ListSecurityProfilesResponse,
|
|
68
|
+
]
|
|
69
|
+
"""Retrieves the list of SecurityProfile resources in the specified folder."""
|
|
70
|
+
|
|
71
|
+
Create: grpc.aio.UnaryUnaryMultiCallable[
|
|
72
|
+
yandex.cloud.smartwebsecurity.v1.security_profile_service_pb2.CreateSecurityProfileRequest,
|
|
73
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
74
|
+
]
|
|
75
|
+
"""Creates a security profile in the specified folder using the data specified in the request."""
|
|
76
|
+
|
|
77
|
+
Update: grpc.aio.UnaryUnaryMultiCallable[
|
|
78
|
+
yandex.cloud.smartwebsecurity.v1.security_profile_service_pb2.UpdateSecurityProfileRequest,
|
|
79
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
80
|
+
]
|
|
81
|
+
"""Updates the specified security profile."""
|
|
82
|
+
|
|
83
|
+
Delete: grpc.aio.UnaryUnaryMultiCallable[
|
|
84
|
+
yandex.cloud.smartwebsecurity.v1.security_profile_service_pb2.DeleteSecurityProfileRequest,
|
|
85
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
86
|
+
]
|
|
87
|
+
"""Deletes the specified security profile."""
|
|
88
|
+
|
|
89
|
+
class SecurityProfileServiceServicer(metaclass=abc.ABCMeta):
|
|
90
|
+
"""A set of methods for managing SecurityProfile resources."""
|
|
91
|
+
|
|
92
|
+
@abc.abstractmethod
|
|
93
|
+
def Get(
|
|
94
|
+
self,
|
|
95
|
+
request: yandex.cloud.smartwebsecurity.v1.security_profile_service_pb2.GetSecurityProfileRequest,
|
|
96
|
+
context: _ServicerContext,
|
|
97
|
+
) -> typing.Union[yandex.cloud.smartwebsecurity.v1.security_profile_pb2.SecurityProfile, collections.abc.Awaitable[yandex.cloud.smartwebsecurity.v1.security_profile_pb2.SecurityProfile]]:
|
|
98
|
+
"""Returns the specified SecurityProfile resource."""
|
|
99
|
+
|
|
100
|
+
@abc.abstractmethod
|
|
101
|
+
def List(
|
|
102
|
+
self,
|
|
103
|
+
request: yandex.cloud.smartwebsecurity.v1.security_profile_service_pb2.ListSecurityProfilesRequest,
|
|
104
|
+
context: _ServicerContext,
|
|
105
|
+
) -> typing.Union[yandex.cloud.smartwebsecurity.v1.security_profile_service_pb2.ListSecurityProfilesResponse, collections.abc.Awaitable[yandex.cloud.smartwebsecurity.v1.security_profile_service_pb2.ListSecurityProfilesResponse]]:
|
|
106
|
+
"""Retrieves the list of SecurityProfile resources in the specified folder."""
|
|
107
|
+
|
|
108
|
+
@abc.abstractmethod
|
|
109
|
+
def Create(
|
|
110
|
+
self,
|
|
111
|
+
request: yandex.cloud.smartwebsecurity.v1.security_profile_service_pb2.CreateSecurityProfileRequest,
|
|
112
|
+
context: _ServicerContext,
|
|
113
|
+
) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
|
|
114
|
+
"""Creates a security 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.security_profile_service_pb2.UpdateSecurityProfileRequest,
|
|
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 security profile."""
|
|
123
|
+
|
|
124
|
+
@abc.abstractmethod
|
|
125
|
+
def Delete(
|
|
126
|
+
self,
|
|
127
|
+
request: yandex.cloud.smartwebsecurity.v1.security_profile_service_pb2.DeleteSecurityProfileRequest,
|
|
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 security profile."""
|
|
131
|
+
|
|
132
|
+
def add_SecurityProfileServiceServicer_to_server(servicer: SecurityProfileServiceServicer, server: typing.Union[grpc.Server, grpc.aio.Server]) -> None: ...
|
|
File without changes
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: yandex/cloud/speechsense/v1/analysis/conversation_statistics.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.speechsense.v1.analysis import statistics_common_pb2 as yandex_dot_cloud_dot_speechsense_dot_v1_dot_analysis_dot_statistics__common__pb2
|
|
15
|
+
from yandex.cloud.speechsense.v1.analysis import speaker_statistics_pb2 as yandex_dot_cloud_dot_speechsense_dot_v1_dot_analysis_dot_speaker__statistics__pb2
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\nByandex/cloud/speechsense/v1/analysis/conversation_statistics.proto\x12$yandex.cloud.speechsense.v1.analysis\x1a<yandex/cloud/speechsense/v1/analysis/statistics_common.proto\x1a=yandex/cloud/speechsense/v1/analysis/speaker_statistics.proto\"\xcc\x01\n\x16\x43onversationStatistics\x12]\n\x17\x63onversation_boundaries\x18\x01 \x01(\x0b\x32<.yandex.cloud.speechsense.v1.analysis.AudioSegmentBoundaries\x12S\n\x12speaker_statistics\x18\x02 \x03(\x0b\x32\x37.yandex.cloud.speechsense.v1.analysis.SpeakerStatisticsB\x9d\x01\n(yandex.cloud.api.speechsense.v1.analysisB\x1b\x43onversationStatisticsProtoZTgithub.com/yandex-cloud/go-genproto/yandex/cloud/speechsense/v1/analysis;speechsenseb\x06proto3')
|
|
19
|
+
|
|
20
|
+
_globals = globals()
|
|
21
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
22
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'yandex.cloud.speechsense.v1.analysis.conversation_statistics_pb2', _globals)
|
|
23
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
24
|
+
DESCRIPTOR._options = None
|
|
25
|
+
DESCRIPTOR._serialized_options = b'\n(yandex.cloud.api.speechsense.v1.analysisB\033ConversationStatisticsProtoZTgithub.com/yandex-cloud/go-genproto/yandex/cloud/speechsense/v1/analysis;speechsense'
|
|
26
|
+
_globals['_CONVERSATIONSTATISTICS']._serialized_start=234
|
|
27
|
+
_globals['_CONVERSATIONSTATISTICS']._serialized_end=438
|
|
28
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,40 @@
|
|
|
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
|
+
import yandex.cloud.speechsense.v1.analysis.speaker_statistics_pb2
|
|
13
|
+
import yandex.cloud.speechsense.v1.analysis.statistics_common_pb2
|
|
14
|
+
|
|
15
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
16
|
+
|
|
17
|
+
@typing.final
|
|
18
|
+
class ConversationStatistics(google.protobuf.message.Message):
|
|
19
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
20
|
+
|
|
21
|
+
CONVERSATION_BOUNDARIES_FIELD_NUMBER: builtins.int
|
|
22
|
+
SPEAKER_STATISTICS_FIELD_NUMBER: builtins.int
|
|
23
|
+
@property
|
|
24
|
+
def conversation_boundaries(self) -> yandex.cloud.speechsense.v1.analysis.statistics_common_pb2.AudioSegmentBoundaries:
|
|
25
|
+
"""Audio segment boundaries"""
|
|
26
|
+
|
|
27
|
+
@property
|
|
28
|
+
def speaker_statistics(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[yandex.cloud.speechsense.v1.analysis.speaker_statistics_pb2.SpeakerStatistics]:
|
|
29
|
+
"""Average statistics for each speaker"""
|
|
30
|
+
|
|
31
|
+
def __init__(
|
|
32
|
+
self,
|
|
33
|
+
*,
|
|
34
|
+
conversation_boundaries: yandex.cloud.speechsense.v1.analysis.statistics_common_pb2.AudioSegmentBoundaries | None = ...,
|
|
35
|
+
speaker_statistics: collections.abc.Iterable[yandex.cloud.speechsense.v1.analysis.speaker_statistics_pb2.SpeakerStatistics] | None = ...,
|
|
36
|
+
) -> None: ...
|
|
37
|
+
def HasField(self, field_name: typing.Literal["conversation_boundaries", b"conversation_boundaries"]) -> builtins.bool: ...
|
|
38
|
+
def ClearField(self, field_name: typing.Literal["conversation_boundaries", b"conversation_boundaries", "speaker_statistics", b"speaker_statistics"]) -> None: ...
|
|
39
|
+
|
|
40
|
+
global___ConversationStatistics = ConversationStatistics
|