yandexcloud 0.309.0__py3-none-any.whl → 0.311.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of yandexcloud might be problematic. Click here for more details.
- yandex/cloud/backup/v1/resource_pb2.pyi +1 -1
- yandex/cloud/backup/v1/resource_service_pb2.py +35 -35
- yandex/cloud/backup/v1/resource_service_pb2.pyi +5 -1
- yandex/cloud/compute/v1/instance_service_pb2.py +127 -127
- yandex/cloud/compute/v1/instance_service_pb2.pyi +0 -1
- yandex/cloud/compute/v1/instancegroup/instance_group_pb2.py +77 -77
- yandex/cloud/compute/v1/instancegroup/instance_group_pb2.pyi +1 -3
- yandex/cloud/datasphere/v2/jobs/project_job_service_pb2.py +50 -50
- yandex/cloud/datasphere/v2/jobs/project_job_service_pb2.pyi +5 -1
- yandex/cloud/datatransfer/v1/endpoint/clickhouse_pb2.py +6 -6
- yandex/cloud/datatransfer/v1/endpoint/clickhouse_pb2.pyi +6 -1
- yandex/cloud/iam/v1/service_control_service_pb2.py +9 -29
- yandex/cloud/iam/v1/service_control_service_pb2.pyi +0 -105
- yandex/cloud/iam/v1/service_control_service_pb2_grpc.py +0 -68
- yandex/cloud/iam/v1/service_control_service_pb2_grpc.pyi +0 -40
- yandex/cloud/loadtesting/agent/v1/agent_service_pb2.py +35 -9
- yandex/cloud/loadtesting/agent/v1/agent_service_pb2.pyi +99 -0
- yandex/cloud/loadtesting/agent/v1/agent_service_pb2_grpc.py +33 -0
- yandex/cloud/loadtesting/agent/v1/agent_service_pb2_grpc.pyi +17 -0
- yandex/cloud/vpc/v1/route_table_pb2.pyi +2 -2
- {yandexcloud-0.309.0.dist-info → yandexcloud-0.311.0.dist-info}/METADATA +8 -8
- {yandexcloud-0.309.0.dist-info → yandexcloud-0.311.0.dist-info}/RECORD +26 -26
- {yandexcloud-0.309.0.dist-info → yandexcloud-0.311.0.dist-info}/WHEEL +1 -1
- {yandexcloud-0.309.0.dist-info → yandexcloud-0.311.0.dist-info}/AUTHORS +0 -0
- {yandexcloud-0.309.0.dist-info → yandexcloud-0.311.0.dist-info}/LICENSE +0 -0
- {yandexcloud-0.309.0.dist-info → yandexcloud-0.311.0.dist-info}/top_level.txt +0 -0
|
@@ -19,7 +19,7 @@ from yandex.cloud.operation import operation_pb2 as yandex_dot_cloud_dot_operati
|
|
|
19
19
|
from yandex.cloud import validation_pb2 as yandex_dot_cloud_dot_validation__pb2
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n1yandex/cloud/iam/v1/service_control_service.proto\x12\x13yandex.cloud.iam.v1\x1a\x1cgoogle/api/annotations.proto\x1a yandex/cloud/api/operation.proto\x1a\"yandex/cloud/iam/v1/resource.proto\x1a)yandex/cloud/iam/v1/service_control.proto\x1a&yandex/cloud/operation/operation.proto\x1a\x1dyandex/cloud/validation.proto\"l\n\x11GetServiceRequest\x12 \n\nservice_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\x12\x35\n\x08resource\x18\x02 \x01(\x0b\x32\x1d.yandex.cloud.iam.v1.ResourceB\x04\xe8\xc7\x31\x01\"\x8b\x01\n\x13ListServicesRequest\x12\x35\n\x08resource\x18\x01 \x01(\x0b\x32\x1d.yandex.cloud.iam.v1.ResourceB\x04\xe8\xc7\x31\x01\x12\x1d\n\tpage_size\x18\x02 \x01(\x03\x42\n\xfa\xc7\x31\x06\x30-1000\x12\x1e\n\npage_token\x18\x03 \x01(\tB\n\x8a\xc8\x31\x06<=2000\"_\n\x14ListServicesResponse\x12.\n\x08services\x18\x01 \x03(\x0b\x32\x1c.yandex.cloud.iam.v1.Service\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"o\n\x14\x45nableServiceRequest\x12 \n\nservice_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\x12\x35\n\x08resource\x18\x02 \x01(\x0b\x32\x1d.yandex.cloud.iam.v1.ResourceB\x04\xe8\xc7\x31\x01\"\\\n\x15\x45nableServiceMetadata\x12\x12\n\nservice_id\x18\x01 \x01(\t\x12/\n\x08resource\x18\x02 \x01(\x0b\x32\x1d.yandex.cloud.iam.v1.Resource\"
|
|
22
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n1yandex/cloud/iam/v1/service_control_service.proto\x12\x13yandex.cloud.iam.v1\x1a\x1cgoogle/api/annotations.proto\x1a yandex/cloud/api/operation.proto\x1a\"yandex/cloud/iam/v1/resource.proto\x1a)yandex/cloud/iam/v1/service_control.proto\x1a&yandex/cloud/operation/operation.proto\x1a\x1dyandex/cloud/validation.proto\"l\n\x11GetServiceRequest\x12 \n\nservice_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\x12\x35\n\x08resource\x18\x02 \x01(\x0b\x32\x1d.yandex.cloud.iam.v1.ResourceB\x04\xe8\xc7\x31\x01\"\x8b\x01\n\x13ListServicesRequest\x12\x35\n\x08resource\x18\x01 \x01(\x0b\x32\x1d.yandex.cloud.iam.v1.ResourceB\x04\xe8\xc7\x31\x01\x12\x1d\n\tpage_size\x18\x02 \x01(\x03\x42\n\xfa\xc7\x31\x06\x30-1000\x12\x1e\n\npage_token\x18\x03 \x01(\tB\n\x8a\xc8\x31\x06<=2000\"_\n\x14ListServicesResponse\x12.\n\x08services\x18\x01 \x03(\x0b\x32\x1c.yandex.cloud.iam.v1.Service\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"o\n\x14\x45nableServiceRequest\x12 \n\nservice_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\x12\x35\n\x08resource\x18\x02 \x01(\x0b\x32\x1d.yandex.cloud.iam.v1.ResourceB\x04\xe8\xc7\x31\x01\"\\\n\x15\x45nableServiceMetadata\x12\x12\n\nservice_id\x18\x01 \x01(\t\x12/\n\x08resource\x18\x02 \x01(\x0b\x32\x1d.yandex.cloud.iam.v1.Resource\"p\n\x15\x44isableServiceRequest\x12 \n\nservice_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\x12\x35\n\x08resource\x18\x02 \x01(\x0b\x32\x1d.yandex.cloud.iam.v1.ResourceB\x04\xe8\xc7\x31\x01\"]\n\x16\x44isableServiceMetadata\x12\x12\n\nservice_id\x18\x01 \x01(\t\x12/\n\x08resource\x18\x02 \x01(\x0b\x32\x1d.yandex.cloud.iam.v1.Resource\"\x98\x01\n\x1aResolveServiceAgentRequest\x12 \n\nservice_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\x12!\n\x0fmicroservice_id\x18\x02 \x01(\tB\x08\x8a\xc8\x31\x04<=50\x12\x35\n\x08resource\x18\x03 \x01(\x0b\x32\x1d.yandex.cloud.iam.v1.ResourceB\x04\xe8\xc7\x31\x01\x32\x8a\x06\n\x15ServiceControlService\x12r\n\x03Get\x12&.yandex.cloud.iam.v1.GetServiceRequest\x1a\x1c.yandex.cloud.iam.v1.Service\"%\x82\xd3\xe4\x93\x02\x1f\x12\x1d/iam/v1/services/{service_id}\x12u\n\x04List\x12(.yandex.cloud.iam.v1.ListServicesRequest\x1a).yandex.cloud.iam.v1.ListServicesResponse\"\x18\x82\xd3\xe4\x93\x02\x12\x12\x10/iam/v1/services\x12\xaa\x01\n\x06\x45nable\x12).yandex.cloud.iam.v1.EnableServiceRequest\x1a!.yandex.cloud.operation.Operation\"R\xb2\xd2* \n\x15\x45nableServiceMetadata\x12\x07Service\x82\xd3\xe4\x93\x02(\"#/iam/v1/service/{service_id}:enable:\x01*\x12\xae\x01\n\x07\x44isable\x12*.yandex.cloud.iam.v1.DisableServiceRequest\x1a!.yandex.cloud.operation.Operation\"T\xb2\xd2*!\n\x16\x44isableServiceMetadata\x12\x07Service\x82\xd3\xe4\x93\x02)\"$/iam/v1/service/{service_id}:disable:\x01*\x12\xa7\x01\n\x0cResolveAgent\x12/.yandex.cloud.iam.v1.ResolveServiceAgentRequest\x1a!.yandex.cloud.iam.v1.ServiceAgent\"C\x82\xd3\xe4\x93\x02=\x12;/iam/v1/service/{service_id}/microservice/{microservice_id}BV\n\x17yandex.cloud.api.iam.v1Z;github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1;iamb\x06proto3')
|
|
23
23
|
|
|
24
24
|
_globals = globals()
|
|
25
25
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
@@ -41,14 +41,6 @@ if _descriptor._USE_C_DESCRIPTORS == False:
|
|
|
41
41
|
_ENABLESERVICEREQUEST.fields_by_name['service_id']._serialized_options = b'\350\3071\001\212\3101\004<=50'
|
|
42
42
|
_ENABLESERVICEREQUEST.fields_by_name['resource']._options = None
|
|
43
43
|
_ENABLESERVICEREQUEST.fields_by_name['resource']._serialized_options = b'\350\3071\001'
|
|
44
|
-
_RESUMESERVICEREQUEST.fields_by_name['service_id']._options = None
|
|
45
|
-
_RESUMESERVICEREQUEST.fields_by_name['service_id']._serialized_options = b'\350\3071\001\212\3101\004<=50'
|
|
46
|
-
_RESUMESERVICEREQUEST.fields_by_name['resource']._options = None
|
|
47
|
-
_RESUMESERVICEREQUEST.fields_by_name['resource']._serialized_options = b'\350\3071\001'
|
|
48
|
-
_PAUSESERVICEREQUEST.fields_by_name['service_id']._options = None
|
|
49
|
-
_PAUSESERVICEREQUEST.fields_by_name['service_id']._serialized_options = b'\350\3071\001\212\3101\004<=50'
|
|
50
|
-
_PAUSESERVICEREQUEST.fields_by_name['resource']._options = None
|
|
51
|
-
_PAUSESERVICEREQUEST.fields_by_name['resource']._serialized_options = b'\350\3071\001'
|
|
52
44
|
_DISABLESERVICEREQUEST.fields_by_name['service_id']._options = None
|
|
53
45
|
_DISABLESERVICEREQUEST.fields_by_name['service_id']._serialized_options = b'\350\3071\001\212\3101\004<=50'
|
|
54
46
|
_DISABLESERVICEREQUEST.fields_by_name['resource']._options = None
|
|
@@ -65,10 +57,6 @@ if _descriptor._USE_C_DESCRIPTORS == False:
|
|
|
65
57
|
_SERVICECONTROLSERVICE.methods_by_name['List']._serialized_options = b'\202\323\344\223\002\022\022\020/iam/v1/services'
|
|
66
58
|
_SERVICECONTROLSERVICE.methods_by_name['Enable']._options = None
|
|
67
59
|
_SERVICECONTROLSERVICE.methods_by_name['Enable']._serialized_options = b'\262\322* \n\025EnableServiceMetadata\022\007Service\202\323\344\223\002(\"#/iam/v1/service/{service_id}:enable:\001*'
|
|
68
|
-
_SERVICECONTROLSERVICE.methods_by_name['Resume']._options = None
|
|
69
|
-
_SERVICECONTROLSERVICE.methods_by_name['Resume']._serialized_options = b'\262\322* \n\025ResumeServiceMetadata\022\007Service\202\323\344\223\002(\"#/iam/v1/service/{service_id}:resume:\001*'
|
|
70
|
-
_SERVICECONTROLSERVICE.methods_by_name['Pause']._options = None
|
|
71
|
-
_SERVICECONTROLSERVICE.methods_by_name['Pause']._serialized_options = b'\262\322*\037\n\024PauseServiceMetadata\022\007Service\202\323\344\223\002\'\"\"/iam/v1/service/{service_id}:pause:\001*'
|
|
72
60
|
_SERVICECONTROLSERVICE.methods_by_name['Disable']._options = None
|
|
73
61
|
_SERVICECONTROLSERVICE.methods_by_name['Disable']._serialized_options = b'\262\322*!\n\026DisableServiceMetadata\022\007Service\202\323\344\223\002)\"$/iam/v1/service/{service_id}:disable:\001*'
|
|
74
62
|
_SERVICECONTROLSERVICE.methods_by_name['ResolveAgent']._options = None
|
|
@@ -83,20 +71,12 @@ if _descriptor._USE_C_DESCRIPTORS == False:
|
|
|
83
71
|
_globals['_ENABLESERVICEREQUEST']._serialized_end=748
|
|
84
72
|
_globals['_ENABLESERVICEMETADATA']._serialized_start=750
|
|
85
73
|
_globals['_ENABLESERVICEMETADATA']._serialized_end=842
|
|
86
|
-
_globals['
|
|
87
|
-
_globals['
|
|
88
|
-
_globals['
|
|
89
|
-
_globals['
|
|
90
|
-
_globals['
|
|
91
|
-
_globals['
|
|
92
|
-
_globals['
|
|
93
|
-
_globals['
|
|
94
|
-
_globals['_DISABLESERVICEREQUEST']._serialized_start=1271
|
|
95
|
-
_globals['_DISABLESERVICEREQUEST']._serialized_end=1383
|
|
96
|
-
_globals['_DISABLESERVICEMETADATA']._serialized_start=1385
|
|
97
|
-
_globals['_DISABLESERVICEMETADATA']._serialized_end=1478
|
|
98
|
-
_globals['_RESOLVESERVICEAGENTREQUEST']._serialized_start=1481
|
|
99
|
-
_globals['_RESOLVESERVICEAGENTREQUEST']._serialized_end=1633
|
|
100
|
-
_globals['_SERVICECONTROLSERVICE']._serialized_start=1636
|
|
101
|
-
_globals['_SERVICECONTROLSERVICE']._serialized_end=2756
|
|
74
|
+
_globals['_DISABLESERVICEREQUEST']._serialized_start=844
|
|
75
|
+
_globals['_DISABLESERVICEREQUEST']._serialized_end=956
|
|
76
|
+
_globals['_DISABLESERVICEMETADATA']._serialized_start=958
|
|
77
|
+
_globals['_DISABLESERVICEMETADATA']._serialized_end=1051
|
|
78
|
+
_globals['_RESOLVESERVICEAGENTREQUEST']._serialized_start=1054
|
|
79
|
+
_globals['_RESOLVESERVICEAGENTREQUEST']._serialized_end=1206
|
|
80
|
+
_globals['_SERVICECONTROLSERVICE']._serialized_start=1209
|
|
81
|
+
_globals['_SERVICECONTROLSERVICE']._serialized_end=1987
|
|
102
82
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -155,111 +155,6 @@ class EnableServiceMetadata(google.protobuf.message.Message):
|
|
|
155
155
|
|
|
156
156
|
global___EnableServiceMetadata = EnableServiceMetadata
|
|
157
157
|
|
|
158
|
-
@typing.final
|
|
159
|
-
class ResumeServiceRequest(google.protobuf.message.Message):
|
|
160
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
161
|
-
|
|
162
|
-
SERVICE_ID_FIELD_NUMBER: builtins.int
|
|
163
|
-
RESOURCE_FIELD_NUMBER: builtins.int
|
|
164
|
-
service_id: builtins.str
|
|
165
|
-
"""ID of the Service."""
|
|
166
|
-
@property
|
|
167
|
-
def resource(self) -> yandex.cloud.iam.v1.resource_pb2.Resource:
|
|
168
|
-
"""Resource container to resume a service in.
|
|
169
|
-
|
|
170
|
-
It is supported only resource-manager.cloud resource container now.
|
|
171
|
-
"""
|
|
172
|
-
|
|
173
|
-
def __init__(
|
|
174
|
-
self,
|
|
175
|
-
*,
|
|
176
|
-
service_id: builtins.str = ...,
|
|
177
|
-
resource: yandex.cloud.iam.v1.resource_pb2.Resource | None = ...,
|
|
178
|
-
) -> None: ...
|
|
179
|
-
def HasField(self, field_name: typing.Literal["resource", b"resource"]) -> builtins.bool: ...
|
|
180
|
-
def ClearField(self, field_name: typing.Literal["resource", b"resource", "service_id", b"service_id"]) -> None: ...
|
|
181
|
-
|
|
182
|
-
global___ResumeServiceRequest = ResumeServiceRequest
|
|
183
|
-
|
|
184
|
-
@typing.final
|
|
185
|
-
class ResumeServiceMetadata(google.protobuf.message.Message):
|
|
186
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
187
|
-
|
|
188
|
-
SERVICE_ID_FIELD_NUMBER: builtins.int
|
|
189
|
-
RESOURCE_FIELD_NUMBER: builtins.int
|
|
190
|
-
service_id: builtins.str
|
|
191
|
-
"""ID of the Service."""
|
|
192
|
-
@property
|
|
193
|
-
def resource(self) -> yandex.cloud.iam.v1.resource_pb2.Resource:
|
|
194
|
-
"""Resource container."""
|
|
195
|
-
|
|
196
|
-
def __init__(
|
|
197
|
-
self,
|
|
198
|
-
*,
|
|
199
|
-
service_id: builtins.str = ...,
|
|
200
|
-
resource: yandex.cloud.iam.v1.resource_pb2.Resource | None = ...,
|
|
201
|
-
) -> None: ...
|
|
202
|
-
def HasField(self, field_name: typing.Literal["resource", b"resource"]) -> builtins.bool: ...
|
|
203
|
-
def ClearField(self, field_name: typing.Literal["resource", b"resource", "service_id", b"service_id"]) -> None: ...
|
|
204
|
-
|
|
205
|
-
global___ResumeServiceMetadata = ResumeServiceMetadata
|
|
206
|
-
|
|
207
|
-
@typing.final
|
|
208
|
-
class PauseServiceRequest(google.protobuf.message.Message):
|
|
209
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
210
|
-
|
|
211
|
-
SERVICE_ID_FIELD_NUMBER: builtins.int
|
|
212
|
-
RESOURCE_FIELD_NUMBER: builtins.int
|
|
213
|
-
FORCE_FIELD_NUMBER: builtins.int
|
|
214
|
-
service_id: builtins.str
|
|
215
|
-
"""ID of the Service."""
|
|
216
|
-
force: builtins.bool
|
|
217
|
-
"""Force pause.
|
|
218
|
-
|
|
219
|
-
It will pause service even if there is service resources that will be broke.
|
|
220
|
-
"""
|
|
221
|
-
@property
|
|
222
|
-
def resource(self) -> yandex.cloud.iam.v1.resource_pb2.Resource:
|
|
223
|
-
"""Resource container to pause a service in.
|
|
224
|
-
|
|
225
|
-
It is supported only resource-manager.cloud resource container now.
|
|
226
|
-
"""
|
|
227
|
-
|
|
228
|
-
def __init__(
|
|
229
|
-
self,
|
|
230
|
-
*,
|
|
231
|
-
service_id: builtins.str = ...,
|
|
232
|
-
resource: yandex.cloud.iam.v1.resource_pb2.Resource | None = ...,
|
|
233
|
-
force: builtins.bool = ...,
|
|
234
|
-
) -> None: ...
|
|
235
|
-
def HasField(self, field_name: typing.Literal["resource", b"resource"]) -> builtins.bool: ...
|
|
236
|
-
def ClearField(self, field_name: typing.Literal["force", b"force", "resource", b"resource", "service_id", b"service_id"]) -> None: ...
|
|
237
|
-
|
|
238
|
-
global___PauseServiceRequest = PauseServiceRequest
|
|
239
|
-
|
|
240
|
-
@typing.final
|
|
241
|
-
class PauseServiceMetadata(google.protobuf.message.Message):
|
|
242
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
243
|
-
|
|
244
|
-
SERVICE_ID_FIELD_NUMBER: builtins.int
|
|
245
|
-
RESOURCE_FIELD_NUMBER: builtins.int
|
|
246
|
-
service_id: builtins.str
|
|
247
|
-
"""ID of the Service."""
|
|
248
|
-
@property
|
|
249
|
-
def resource(self) -> yandex.cloud.iam.v1.resource_pb2.Resource:
|
|
250
|
-
"""Resource container."""
|
|
251
|
-
|
|
252
|
-
def __init__(
|
|
253
|
-
self,
|
|
254
|
-
*,
|
|
255
|
-
service_id: builtins.str = ...,
|
|
256
|
-
resource: yandex.cloud.iam.v1.resource_pb2.Resource | None = ...,
|
|
257
|
-
) -> None: ...
|
|
258
|
-
def HasField(self, field_name: typing.Literal["resource", b"resource"]) -> builtins.bool: ...
|
|
259
|
-
def ClearField(self, field_name: typing.Literal["resource", b"resource", "service_id", b"service_id"]) -> None: ...
|
|
260
|
-
|
|
261
|
-
global___PauseServiceMetadata = PauseServiceMetadata
|
|
262
|
-
|
|
263
158
|
@typing.final
|
|
264
159
|
class DisableServiceRequest(google.protobuf.message.Message):
|
|
265
160
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
@@ -32,16 +32,6 @@ class ServiceControlServiceStub(object):
|
|
|
32
32
|
request_serializer=yandex_dot_cloud_dot_iam_dot_v1_dot_service__control__service__pb2.EnableServiceRequest.SerializeToString,
|
|
33
33
|
response_deserializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
34
34
|
)
|
|
35
|
-
self.Resume = channel.unary_unary(
|
|
36
|
-
'/yandex.cloud.iam.v1.ServiceControlService/Resume',
|
|
37
|
-
request_serializer=yandex_dot_cloud_dot_iam_dot_v1_dot_service__control__service__pb2.ResumeServiceRequest.SerializeToString,
|
|
38
|
-
response_deserializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
39
|
-
)
|
|
40
|
-
self.Pause = channel.unary_unary(
|
|
41
|
-
'/yandex.cloud.iam.v1.ServiceControlService/Pause',
|
|
42
|
-
request_serializer=yandex_dot_cloud_dot_iam_dot_v1_dot_service__control__service__pb2.PauseServiceRequest.SerializeToString,
|
|
43
|
-
response_deserializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
44
|
-
)
|
|
45
35
|
self.Disable = channel.unary_unary(
|
|
46
36
|
'/yandex.cloud.iam.v1.ServiceControlService/Disable',
|
|
47
37
|
request_serializer=yandex_dot_cloud_dot_iam_dot_v1_dot_service__control__service__pb2.DisableServiceRequest.SerializeToString,
|
|
@@ -81,20 +71,6 @@ class ServiceControlServiceServicer(object):
|
|
|
81
71
|
context.set_details('Method not implemented!')
|
|
82
72
|
raise NotImplementedError('Method not implemented!')
|
|
83
73
|
|
|
84
|
-
def Resume(self, request, context):
|
|
85
|
-
"""Resume a service in the specified resource container.
|
|
86
|
-
"""
|
|
87
|
-
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
88
|
-
context.set_details('Method not implemented!')
|
|
89
|
-
raise NotImplementedError('Method not implemented!')
|
|
90
|
-
|
|
91
|
-
def Pause(self, request, context):
|
|
92
|
-
"""Pause a service in the specified resource container.
|
|
93
|
-
"""
|
|
94
|
-
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
95
|
-
context.set_details('Method not implemented!')
|
|
96
|
-
raise NotImplementedError('Method not implemented!')
|
|
97
|
-
|
|
98
74
|
def Disable(self, request, context):
|
|
99
75
|
"""Disable a service in the specified resource container.
|
|
100
76
|
"""
|
|
@@ -127,16 +103,6 @@ def add_ServiceControlServiceServicer_to_server(servicer, server):
|
|
|
127
103
|
request_deserializer=yandex_dot_cloud_dot_iam_dot_v1_dot_service__control__service__pb2.EnableServiceRequest.FromString,
|
|
128
104
|
response_serializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.SerializeToString,
|
|
129
105
|
),
|
|
130
|
-
'Resume': grpc.unary_unary_rpc_method_handler(
|
|
131
|
-
servicer.Resume,
|
|
132
|
-
request_deserializer=yandex_dot_cloud_dot_iam_dot_v1_dot_service__control__service__pb2.ResumeServiceRequest.FromString,
|
|
133
|
-
response_serializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.SerializeToString,
|
|
134
|
-
),
|
|
135
|
-
'Pause': grpc.unary_unary_rpc_method_handler(
|
|
136
|
-
servicer.Pause,
|
|
137
|
-
request_deserializer=yandex_dot_cloud_dot_iam_dot_v1_dot_service__control__service__pb2.PauseServiceRequest.FromString,
|
|
138
|
-
response_serializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.SerializeToString,
|
|
139
|
-
),
|
|
140
106
|
'Disable': grpc.unary_unary_rpc_method_handler(
|
|
141
107
|
servicer.Disable,
|
|
142
108
|
request_deserializer=yandex_dot_cloud_dot_iam_dot_v1_dot_service__control__service__pb2.DisableServiceRequest.FromString,
|
|
@@ -209,40 +175,6 @@ class ServiceControlService(object):
|
|
|
209
175
|
options, channel_credentials,
|
|
210
176
|
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
211
177
|
|
|
212
|
-
@staticmethod
|
|
213
|
-
def Resume(request,
|
|
214
|
-
target,
|
|
215
|
-
options=(),
|
|
216
|
-
channel_credentials=None,
|
|
217
|
-
call_credentials=None,
|
|
218
|
-
insecure=False,
|
|
219
|
-
compression=None,
|
|
220
|
-
wait_for_ready=None,
|
|
221
|
-
timeout=None,
|
|
222
|
-
metadata=None):
|
|
223
|
-
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.iam.v1.ServiceControlService/Resume',
|
|
224
|
-
yandex_dot_cloud_dot_iam_dot_v1_dot_service__control__service__pb2.ResumeServiceRequest.SerializeToString,
|
|
225
|
-
yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
226
|
-
options, channel_credentials,
|
|
227
|
-
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
228
|
-
|
|
229
|
-
@staticmethod
|
|
230
|
-
def Pause(request,
|
|
231
|
-
target,
|
|
232
|
-
options=(),
|
|
233
|
-
channel_credentials=None,
|
|
234
|
-
call_credentials=None,
|
|
235
|
-
insecure=False,
|
|
236
|
-
compression=None,
|
|
237
|
-
wait_for_ready=None,
|
|
238
|
-
timeout=None,
|
|
239
|
-
metadata=None):
|
|
240
|
-
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.iam.v1.ServiceControlService/Pause',
|
|
241
|
-
yandex_dot_cloud_dot_iam_dot_v1_dot_service__control__service__pb2.PauseServiceRequest.SerializeToString,
|
|
242
|
-
yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
243
|
-
options, channel_credentials,
|
|
244
|
-
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
245
|
-
|
|
246
178
|
@staticmethod
|
|
247
179
|
def Disable(request,
|
|
248
180
|
target,
|
|
@@ -44,18 +44,6 @@ class ServiceControlServiceStub:
|
|
|
44
44
|
]
|
|
45
45
|
"""Enable a service in the specified resource container."""
|
|
46
46
|
|
|
47
|
-
Resume: grpc.UnaryUnaryMultiCallable[
|
|
48
|
-
yandex.cloud.iam.v1.service_control_service_pb2.ResumeServiceRequest,
|
|
49
|
-
yandex.cloud.operation.operation_pb2.Operation,
|
|
50
|
-
]
|
|
51
|
-
"""Resume a service in the specified resource container."""
|
|
52
|
-
|
|
53
|
-
Pause: grpc.UnaryUnaryMultiCallable[
|
|
54
|
-
yandex.cloud.iam.v1.service_control_service_pb2.PauseServiceRequest,
|
|
55
|
-
yandex.cloud.operation.operation_pb2.Operation,
|
|
56
|
-
]
|
|
57
|
-
"""Pause a service in the specified resource container."""
|
|
58
|
-
|
|
59
47
|
Disable: grpc.UnaryUnaryMultiCallable[
|
|
60
48
|
yandex.cloud.iam.v1.service_control_service_pb2.DisableServiceRequest,
|
|
61
49
|
yandex.cloud.operation.operation_pb2.Operation,
|
|
@@ -92,18 +80,6 @@ class ServiceControlServiceAsyncStub:
|
|
|
92
80
|
]
|
|
93
81
|
"""Enable a service in the specified resource container."""
|
|
94
82
|
|
|
95
|
-
Resume: grpc.aio.UnaryUnaryMultiCallable[
|
|
96
|
-
yandex.cloud.iam.v1.service_control_service_pb2.ResumeServiceRequest,
|
|
97
|
-
yandex.cloud.operation.operation_pb2.Operation,
|
|
98
|
-
]
|
|
99
|
-
"""Resume a service in the specified resource container."""
|
|
100
|
-
|
|
101
|
-
Pause: grpc.aio.UnaryUnaryMultiCallable[
|
|
102
|
-
yandex.cloud.iam.v1.service_control_service_pb2.PauseServiceRequest,
|
|
103
|
-
yandex.cloud.operation.operation_pb2.Operation,
|
|
104
|
-
]
|
|
105
|
-
"""Pause a service in the specified resource container."""
|
|
106
|
-
|
|
107
83
|
Disable: grpc.aio.UnaryUnaryMultiCallable[
|
|
108
84
|
yandex.cloud.iam.v1.service_control_service_pb2.DisableServiceRequest,
|
|
109
85
|
yandex.cloud.operation.operation_pb2.Operation,
|
|
@@ -146,22 +122,6 @@ class ServiceControlServiceServicer(metaclass=abc.ABCMeta):
|
|
|
146
122
|
) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
|
|
147
123
|
"""Enable a service in the specified resource container."""
|
|
148
124
|
|
|
149
|
-
@abc.abstractmethod
|
|
150
|
-
def Resume(
|
|
151
|
-
self,
|
|
152
|
-
request: yandex.cloud.iam.v1.service_control_service_pb2.ResumeServiceRequest,
|
|
153
|
-
context: _ServicerContext,
|
|
154
|
-
) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
|
|
155
|
-
"""Resume a service in the specified resource container."""
|
|
156
|
-
|
|
157
|
-
@abc.abstractmethod
|
|
158
|
-
def Pause(
|
|
159
|
-
self,
|
|
160
|
-
request: yandex.cloud.iam.v1.service_control_service_pb2.PauseServiceRequest,
|
|
161
|
-
context: _ServicerContext,
|
|
162
|
-
) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
|
|
163
|
-
"""Pause a service in the specified resource container."""
|
|
164
|
-
|
|
165
125
|
@abc.abstractmethod
|
|
166
126
|
def Disable(
|
|
167
127
|
self,
|
|
@@ -12,9 +12,11 @@ _sym_db = _symbol_database.Default()
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
|
|
15
|
+
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
|
16
|
+
from yandex.cloud import validation_pb2 as yandex_dot_cloud_dot_validation__pb2
|
|
15
17
|
|
|
16
18
|
|
|
17
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n5yandex/cloud/loadtesting/agent/v1/agent_service.proto\x12!yandex.cloud.loadtesting.agent.v1\x1a\x1cgoogle/api/annotations.proto\"\xb9\x02\n\x17\x43laimAgentStatusRequest\x12\x19\n\x11\x61gent_instance_id\x18\x01 \x01(\t\x12Q\n\x06status\x18\x02 \x01(\x0e\x32\x41.yandex.cloud.loadtesting.agent.v1.ClaimAgentStatusRequest.Status\x12\x16\n\x0estatus_message\x18\x03 \x01(\t\"\x97\x01\n\x06Status\x12\x16\n\x12STATUS_UNSPECIFIED\x10\x00\x12\x12\n\x0eREADY_FOR_TEST\x10\x01\x12\x12\n\x0ePREPARING_TEST\x10\x02\x12\x0b\n\x07TESTING\x10\x03\x12\x0f\n\x0bTANK_FAILED\x10\x04\x12\x0b\n\x07STOPPED\x10\x05\x12\x17\n\x13UPLOADING_ARTIFACTS\x10\x06\x12\t\n\x05\x45RROR\x10\x07\"(\n\x18\x43laimAgentStatusResponse\x12\x0c\n\x04\x63ode\x18\x01 \x01(\x03\x32\
|
|
19
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n5yandex/cloud/loadtesting/agent/v1/agent_service.proto\x12!yandex.cloud.loadtesting.agent.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1dyandex/cloud/validation.proto\"\xb9\x02\n\x17\x43laimAgentStatusRequest\x12\x19\n\x11\x61gent_instance_id\x18\x01 \x01(\t\x12Q\n\x06status\x18\x02 \x01(\x0e\x32\x41.yandex.cloud.loadtesting.agent.v1.ClaimAgentStatusRequest.Status\x12\x16\n\x0estatus_message\x18\x03 \x01(\t\"\x97\x01\n\x06Status\x12\x16\n\x12STATUS_UNSPECIFIED\x10\x00\x12\x12\n\x0eREADY_FOR_TEST\x10\x01\x12\x12\n\x0ePREPARING_TEST\x10\x02\x12\x0b\n\x07TESTING\x10\x03\x12\x0f\n\x0bTANK_FAILED\x10\x04\x12\x0b\n\x07STOPPED\x10\x05\x12\x17\n\x13UPLOADING_ARTIFACTS\x10\x06\x12\t\n\x05\x45RROR\x10\x07\"(\n\x18\x43laimAgentStatusResponse\x12\x0c\n\x04\x63ode\x18\x01 \x01(\x03\"\xb1\x01\n\x16ReportEventLogsRequest\x12\'\n\x11\x61gent_instance_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\x12%\n\x0fidempotency_key\x18\x02 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=36\x12G\n\x06\x65vents\x18\x03 \x03(\x0b\x32+.yandex.cloud.loadtesting.agent.v1.EventLogB\n\x82\xc8\x31\x06<=1000\"\x19\n\x17ReportEventLogsResponse\"\x84\x03\n\x08\x45ventLog\x12\x1f\n\x07message\x18\x01 \x01(\tB\x0e\xe8\xc7\x31\x01\x8a\xc8\x31\x06<=2000\x12\x46\n\x08severity\x18\x02 \x01(\x0e\x32\x34.yandex.cloud.loadtesting.agent.v1.EventLog.Severity\x12\x33\n\ttimestamp\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe8\xc7\x31\x01\x12K\n\x08metadata\x18\x04 \x03(\x0b\x32\x39.yandex.cloud.loadtesting.agent.v1.EventLog.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\\\n\x08Severity\x12\x18\n\x14SEVERITY_UNSPECIFIED\x10\x00\x12\t\n\x05\x44\x45\x42UG\x10\x01\x12\x08\n\x04INFO\x10\x02\x12\x0b\n\x07WARNING\x10\x03\x12\t\n\x05\x45RROR\x10\x04\x12\t\n\x05\x46\x41TAL\x10\x05\x32\xb8\x03\n\x0c\x41gentService\x12\xcf\x01\n\x0b\x43laimStatus\x12:.yandex.cloud.loadtesting.agent.v1.ClaimAgentStatusRequest\x1a;.yandex.cloud.loadtesting.agent.v1.ClaimAgentStatusResponse\"G\x82\xd3\xe4\x93\x02\x41\"</loadtesting/agent/v1/agents/{agent_instance_id}/claimStatus:\x01*\x12\xd5\x01\n\x0fReportEventLogs\x12\x39.yandex.cloud.loadtesting.agent.v1.ReportEventLogsRequest\x1a:.yandex.cloud.loadtesting.agent.v1.ReportEventLogsResponse\"K\x82\xd3\xe4\x93\x02\x45\"@/loadtesting/agent/v1/agents/{agent_instance_id}/reportEventLogs:\x01*Bt\n%yandex.cloud.api.loadtesting.agent.v1ZKgithub.com/yandex-cloud/go-genproto/yandex/cloud/loadtesting/agent/v1;agentb\x06proto3')
|
|
18
20
|
|
|
19
21
|
_globals = globals()
|
|
20
22
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
@@ -22,14 +24,38 @@ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'yandex.cloud.loadtesting.ag
|
|
|
22
24
|
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
23
25
|
DESCRIPTOR._options = None
|
|
24
26
|
DESCRIPTOR._serialized_options = b'\n%yandex.cloud.api.loadtesting.agent.v1ZKgithub.com/yandex-cloud/go-genproto/yandex/cloud/loadtesting/agent/v1;agent'
|
|
27
|
+
_REPORTEVENTLOGSREQUEST.fields_by_name['agent_instance_id']._options = None
|
|
28
|
+
_REPORTEVENTLOGSREQUEST.fields_by_name['agent_instance_id']._serialized_options = b'\350\3071\001\212\3101\004<=50'
|
|
29
|
+
_REPORTEVENTLOGSREQUEST.fields_by_name['idempotency_key']._options = None
|
|
30
|
+
_REPORTEVENTLOGSREQUEST.fields_by_name['idempotency_key']._serialized_options = b'\350\3071\001\212\3101\004<=36'
|
|
31
|
+
_REPORTEVENTLOGSREQUEST.fields_by_name['events']._options = None
|
|
32
|
+
_REPORTEVENTLOGSREQUEST.fields_by_name['events']._serialized_options = b'\202\3101\006<=1000'
|
|
33
|
+
_EVENTLOG_METADATAENTRY._options = None
|
|
34
|
+
_EVENTLOG_METADATAENTRY._serialized_options = b'8\001'
|
|
35
|
+
_EVENTLOG.fields_by_name['message']._options = None
|
|
36
|
+
_EVENTLOG.fields_by_name['message']._serialized_options = b'\350\3071\001\212\3101\006<=2000'
|
|
37
|
+
_EVENTLOG.fields_by_name['timestamp']._options = None
|
|
38
|
+
_EVENTLOG.fields_by_name['timestamp']._serialized_options = b'\350\3071\001'
|
|
25
39
|
_AGENTSERVICE.methods_by_name['ClaimStatus']._options = None
|
|
26
40
|
_AGENTSERVICE.methods_by_name['ClaimStatus']._serialized_options = b'\202\323\344\223\002A\"</loadtesting/agent/v1/agents/{agent_instance_id}/claimStatus:\001*'
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
_globals['
|
|
30
|
-
_globals['
|
|
31
|
-
_globals['
|
|
32
|
-
_globals['
|
|
33
|
-
_globals['
|
|
34
|
-
_globals['
|
|
41
|
+
_AGENTSERVICE.methods_by_name['ReportEventLogs']._options = None
|
|
42
|
+
_AGENTSERVICE.methods_by_name['ReportEventLogs']._serialized_options = b'\202\323\344\223\002E\"@/loadtesting/agent/v1/agents/{agent_instance_id}/reportEventLogs:\001*'
|
|
43
|
+
_globals['_CLAIMAGENTSTATUSREQUEST']._serialized_start=187
|
|
44
|
+
_globals['_CLAIMAGENTSTATUSREQUEST']._serialized_end=500
|
|
45
|
+
_globals['_CLAIMAGENTSTATUSREQUEST_STATUS']._serialized_start=349
|
|
46
|
+
_globals['_CLAIMAGENTSTATUSREQUEST_STATUS']._serialized_end=500
|
|
47
|
+
_globals['_CLAIMAGENTSTATUSRESPONSE']._serialized_start=502
|
|
48
|
+
_globals['_CLAIMAGENTSTATUSRESPONSE']._serialized_end=542
|
|
49
|
+
_globals['_REPORTEVENTLOGSREQUEST']._serialized_start=545
|
|
50
|
+
_globals['_REPORTEVENTLOGSREQUEST']._serialized_end=722
|
|
51
|
+
_globals['_REPORTEVENTLOGSRESPONSE']._serialized_start=724
|
|
52
|
+
_globals['_REPORTEVENTLOGSRESPONSE']._serialized_end=749
|
|
53
|
+
_globals['_EVENTLOG']._serialized_start=752
|
|
54
|
+
_globals['_EVENTLOG']._serialized_end=1140
|
|
55
|
+
_globals['_EVENTLOG_METADATAENTRY']._serialized_start=999
|
|
56
|
+
_globals['_EVENTLOG_METADATAENTRY']._serialized_end=1046
|
|
57
|
+
_globals['_EVENTLOG_SEVERITY']._serialized_start=1048
|
|
58
|
+
_globals['_EVENTLOG_SEVERITY']._serialized_end=1140
|
|
59
|
+
_globals['_AGENTSERVICE']._serialized_start=1143
|
|
60
|
+
_globals['_AGENTSERVICE']._serialized_end=1583
|
|
35
61
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -4,9 +4,12 @@ isort:skip_file
|
|
|
4
4
|
"""
|
|
5
5
|
|
|
6
6
|
import builtins
|
|
7
|
+
import collections.abc
|
|
7
8
|
import google.protobuf.descriptor
|
|
9
|
+
import google.protobuf.internal.containers
|
|
8
10
|
import google.protobuf.internal.enum_type_wrapper
|
|
9
11
|
import google.protobuf.message
|
|
12
|
+
import google.protobuf.timestamp_pb2
|
|
10
13
|
import sys
|
|
11
14
|
import typing
|
|
12
15
|
|
|
@@ -77,3 +80,99 @@ class ClaimAgentStatusResponse(google.protobuf.message.Message):
|
|
|
77
80
|
def ClearField(self, field_name: typing.Literal["code", b"code"]) -> None: ...
|
|
78
81
|
|
|
79
82
|
global___ClaimAgentStatusResponse = ClaimAgentStatusResponse
|
|
83
|
+
|
|
84
|
+
@typing.final
|
|
85
|
+
class ReportEventLogsRequest(google.protobuf.message.Message):
|
|
86
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
87
|
+
|
|
88
|
+
AGENT_INSTANCE_ID_FIELD_NUMBER: builtins.int
|
|
89
|
+
IDEMPOTENCY_KEY_FIELD_NUMBER: builtins.int
|
|
90
|
+
EVENTS_FIELD_NUMBER: builtins.int
|
|
91
|
+
agent_instance_id: builtins.str
|
|
92
|
+
idempotency_key: builtins.str
|
|
93
|
+
@property
|
|
94
|
+
def events(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___EventLog]: ...
|
|
95
|
+
def __init__(
|
|
96
|
+
self,
|
|
97
|
+
*,
|
|
98
|
+
agent_instance_id: builtins.str = ...,
|
|
99
|
+
idempotency_key: builtins.str = ...,
|
|
100
|
+
events: collections.abc.Iterable[global___EventLog] | None = ...,
|
|
101
|
+
) -> None: ...
|
|
102
|
+
def ClearField(self, field_name: typing.Literal["agent_instance_id", b"agent_instance_id", "events", b"events", "idempotency_key", b"idempotency_key"]) -> None: ...
|
|
103
|
+
|
|
104
|
+
global___ReportEventLogsRequest = ReportEventLogsRequest
|
|
105
|
+
|
|
106
|
+
@typing.final
|
|
107
|
+
class ReportEventLogsResponse(google.protobuf.message.Message):
|
|
108
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
109
|
+
|
|
110
|
+
def __init__(
|
|
111
|
+
self,
|
|
112
|
+
) -> None: ...
|
|
113
|
+
|
|
114
|
+
global___ReportEventLogsResponse = ReportEventLogsResponse
|
|
115
|
+
|
|
116
|
+
@typing.final
|
|
117
|
+
class EventLog(google.protobuf.message.Message):
|
|
118
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
119
|
+
|
|
120
|
+
class _Severity:
|
|
121
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
|
122
|
+
V: typing_extensions.TypeAlias = ValueType
|
|
123
|
+
|
|
124
|
+
class _SeverityEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[EventLog._Severity.ValueType], builtins.type):
|
|
125
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
126
|
+
SEVERITY_UNSPECIFIED: EventLog._Severity.ValueType # 0
|
|
127
|
+
DEBUG: EventLog._Severity.ValueType # 1
|
|
128
|
+
INFO: EventLog._Severity.ValueType # 2
|
|
129
|
+
WARNING: EventLog._Severity.ValueType # 3
|
|
130
|
+
ERROR: EventLog._Severity.ValueType # 4
|
|
131
|
+
FATAL: EventLog._Severity.ValueType # 5
|
|
132
|
+
|
|
133
|
+
class Severity(_Severity, metaclass=_SeverityEnumTypeWrapper): ...
|
|
134
|
+
SEVERITY_UNSPECIFIED: EventLog.Severity.ValueType # 0
|
|
135
|
+
DEBUG: EventLog.Severity.ValueType # 1
|
|
136
|
+
INFO: EventLog.Severity.ValueType # 2
|
|
137
|
+
WARNING: EventLog.Severity.ValueType # 3
|
|
138
|
+
ERROR: EventLog.Severity.ValueType # 4
|
|
139
|
+
FATAL: EventLog.Severity.ValueType # 5
|
|
140
|
+
|
|
141
|
+
@typing.final
|
|
142
|
+
class MetadataEntry(google.protobuf.message.Message):
|
|
143
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
144
|
+
|
|
145
|
+
KEY_FIELD_NUMBER: builtins.int
|
|
146
|
+
VALUE_FIELD_NUMBER: builtins.int
|
|
147
|
+
key: builtins.str
|
|
148
|
+
value: builtins.str
|
|
149
|
+
def __init__(
|
|
150
|
+
self,
|
|
151
|
+
*,
|
|
152
|
+
key: builtins.str = ...,
|
|
153
|
+
value: builtins.str = ...,
|
|
154
|
+
) -> None: ...
|
|
155
|
+
def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
|
|
156
|
+
|
|
157
|
+
MESSAGE_FIELD_NUMBER: builtins.int
|
|
158
|
+
SEVERITY_FIELD_NUMBER: builtins.int
|
|
159
|
+
TIMESTAMP_FIELD_NUMBER: builtins.int
|
|
160
|
+
METADATA_FIELD_NUMBER: builtins.int
|
|
161
|
+
message: builtins.str
|
|
162
|
+
severity: global___EventLog.Severity.ValueType
|
|
163
|
+
@property
|
|
164
|
+
def timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
|
|
165
|
+
@property
|
|
166
|
+
def metadata(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ...
|
|
167
|
+
def __init__(
|
|
168
|
+
self,
|
|
169
|
+
*,
|
|
170
|
+
message: builtins.str = ...,
|
|
171
|
+
severity: global___EventLog.Severity.ValueType = ...,
|
|
172
|
+
timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ...,
|
|
173
|
+
metadata: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
|
|
174
|
+
) -> None: ...
|
|
175
|
+
def HasField(self, field_name: typing.Literal["timestamp", b"timestamp"]) -> builtins.bool: ...
|
|
176
|
+
def ClearField(self, field_name: typing.Literal["message", b"message", "metadata", b"metadata", "severity", b"severity", "timestamp", b"timestamp"]) -> None: ...
|
|
177
|
+
|
|
178
|
+
global___EventLog = EventLog
|
|
@@ -19,6 +19,11 @@ class AgentServiceStub(object):
|
|
|
19
19
|
request_serializer=yandex_dot_cloud_dot_loadtesting_dot_agent_dot_v1_dot_agent__service__pb2.ClaimAgentStatusRequest.SerializeToString,
|
|
20
20
|
response_deserializer=yandex_dot_cloud_dot_loadtesting_dot_agent_dot_v1_dot_agent__service__pb2.ClaimAgentStatusResponse.FromString,
|
|
21
21
|
)
|
|
22
|
+
self.ReportEventLogs = channel.unary_unary(
|
|
23
|
+
'/yandex.cloud.loadtesting.agent.v1.AgentService/ReportEventLogs',
|
|
24
|
+
request_serializer=yandex_dot_cloud_dot_loadtesting_dot_agent_dot_v1_dot_agent__service__pb2.ReportEventLogsRequest.SerializeToString,
|
|
25
|
+
response_deserializer=yandex_dot_cloud_dot_loadtesting_dot_agent_dot_v1_dot_agent__service__pb2.ReportEventLogsResponse.FromString,
|
|
26
|
+
)
|
|
22
27
|
|
|
23
28
|
|
|
24
29
|
class AgentServiceServicer(object):
|
|
@@ -31,6 +36,12 @@ class AgentServiceServicer(object):
|
|
|
31
36
|
context.set_details('Method not implemented!')
|
|
32
37
|
raise NotImplementedError('Method not implemented!')
|
|
33
38
|
|
|
39
|
+
def ReportEventLogs(self, request, context):
|
|
40
|
+
"""Missing associated documentation comment in .proto file."""
|
|
41
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
42
|
+
context.set_details('Method not implemented!')
|
|
43
|
+
raise NotImplementedError('Method not implemented!')
|
|
44
|
+
|
|
34
45
|
|
|
35
46
|
def add_AgentServiceServicer_to_server(servicer, server):
|
|
36
47
|
rpc_method_handlers = {
|
|
@@ -39,6 +50,11 @@ def add_AgentServiceServicer_to_server(servicer, server):
|
|
|
39
50
|
request_deserializer=yandex_dot_cloud_dot_loadtesting_dot_agent_dot_v1_dot_agent__service__pb2.ClaimAgentStatusRequest.FromString,
|
|
40
51
|
response_serializer=yandex_dot_cloud_dot_loadtesting_dot_agent_dot_v1_dot_agent__service__pb2.ClaimAgentStatusResponse.SerializeToString,
|
|
41
52
|
),
|
|
53
|
+
'ReportEventLogs': grpc.unary_unary_rpc_method_handler(
|
|
54
|
+
servicer.ReportEventLogs,
|
|
55
|
+
request_deserializer=yandex_dot_cloud_dot_loadtesting_dot_agent_dot_v1_dot_agent__service__pb2.ReportEventLogsRequest.FromString,
|
|
56
|
+
response_serializer=yandex_dot_cloud_dot_loadtesting_dot_agent_dot_v1_dot_agent__service__pb2.ReportEventLogsResponse.SerializeToString,
|
|
57
|
+
),
|
|
42
58
|
}
|
|
43
59
|
generic_handler = grpc.method_handlers_generic_handler(
|
|
44
60
|
'yandex.cloud.loadtesting.agent.v1.AgentService', rpc_method_handlers)
|
|
@@ -65,3 +81,20 @@ class AgentService(object):
|
|
|
65
81
|
yandex_dot_cloud_dot_loadtesting_dot_agent_dot_v1_dot_agent__service__pb2.ClaimAgentStatusResponse.FromString,
|
|
66
82
|
options, channel_credentials,
|
|
67
83
|
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
84
|
+
|
|
85
|
+
@staticmethod
|
|
86
|
+
def ReportEventLogs(request,
|
|
87
|
+
target,
|
|
88
|
+
options=(),
|
|
89
|
+
channel_credentials=None,
|
|
90
|
+
call_credentials=None,
|
|
91
|
+
insecure=False,
|
|
92
|
+
compression=None,
|
|
93
|
+
wait_for_ready=None,
|
|
94
|
+
timeout=None,
|
|
95
|
+
metadata=None):
|
|
96
|
+
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.loadtesting.agent.v1.AgentService/ReportEventLogs',
|
|
97
|
+
yandex_dot_cloud_dot_loadtesting_dot_agent_dot_v1_dot_agent__service__pb2.ReportEventLogsRequest.SerializeToString,
|
|
98
|
+
yandex_dot_cloud_dot_loadtesting_dot_agent_dot_v1_dot_agent__service__pb2.ReportEventLogsResponse.FromString,
|
|
99
|
+
options, channel_credentials,
|
|
100
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
@@ -25,6 +25,11 @@ class AgentServiceStub:
|
|
|
25
25
|
]
|
|
26
26
|
"""Claims status for the specified agent."""
|
|
27
27
|
|
|
28
|
+
ReportEventLogs: grpc.UnaryUnaryMultiCallable[
|
|
29
|
+
yandex.cloud.loadtesting.agent.v1.agent_service_pb2.ReportEventLogsRequest,
|
|
30
|
+
yandex.cloud.loadtesting.agent.v1.agent_service_pb2.ReportEventLogsResponse,
|
|
31
|
+
]
|
|
32
|
+
|
|
28
33
|
class AgentServiceAsyncStub:
|
|
29
34
|
ClaimStatus: grpc.aio.UnaryUnaryMultiCallable[
|
|
30
35
|
yandex.cloud.loadtesting.agent.v1.agent_service_pb2.ClaimAgentStatusRequest,
|
|
@@ -32,6 +37,11 @@ class AgentServiceAsyncStub:
|
|
|
32
37
|
]
|
|
33
38
|
"""Claims status for the specified agent."""
|
|
34
39
|
|
|
40
|
+
ReportEventLogs: grpc.aio.UnaryUnaryMultiCallable[
|
|
41
|
+
yandex.cloud.loadtesting.agent.v1.agent_service_pb2.ReportEventLogsRequest,
|
|
42
|
+
yandex.cloud.loadtesting.agent.v1.agent_service_pb2.ReportEventLogsResponse,
|
|
43
|
+
]
|
|
44
|
+
|
|
35
45
|
class AgentServiceServicer(metaclass=abc.ABCMeta):
|
|
36
46
|
@abc.abstractmethod
|
|
37
47
|
def ClaimStatus(
|
|
@@ -41,4 +51,11 @@ class AgentServiceServicer(metaclass=abc.ABCMeta):
|
|
|
41
51
|
) -> typing.Union[yandex.cloud.loadtesting.agent.v1.agent_service_pb2.ClaimAgentStatusResponse, collections.abc.Awaitable[yandex.cloud.loadtesting.agent.v1.agent_service_pb2.ClaimAgentStatusResponse]]:
|
|
42
52
|
"""Claims status for the specified agent."""
|
|
43
53
|
|
|
54
|
+
@abc.abstractmethod
|
|
55
|
+
def ReportEventLogs(
|
|
56
|
+
self,
|
|
57
|
+
request: yandex.cloud.loadtesting.agent.v1.agent_service_pb2.ReportEventLogsRequest,
|
|
58
|
+
context: _ServicerContext,
|
|
59
|
+
) -> typing.Union[yandex.cloud.loadtesting.agent.v1.agent_service_pb2.ReportEventLogsResponse, collections.abc.Awaitable[yandex.cloud.loadtesting.agent.v1.agent_service_pb2.ReportEventLogsResponse]]: ...
|
|
60
|
+
|
|
44
61
|
def add_AgentServiceServicer_to_server(servicer: AgentServiceServicer, server: typing.Union[grpc.Server, grpc.aio.Server]) -> None: ...
|
|
@@ -15,7 +15,7 @@ DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
|
15
15
|
|
|
16
16
|
@typing.final
|
|
17
17
|
class RouteTable(google.protobuf.message.Message):
|
|
18
|
-
"""A RouteTable resource. For more information, see [Static Routes](/docs/vpc/concepts/
|
|
18
|
+
"""A RouteTable resource. For more information, see [Static Routes](/docs/vpc/concepts/routing)."""
|
|
19
19
|
|
|
20
20
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
21
21
|
|
|
@@ -92,7 +92,7 @@ global___RouteTable = RouteTable
|
|
|
92
92
|
|
|
93
93
|
@typing.final
|
|
94
94
|
class StaticRoute(google.protobuf.message.Message):
|
|
95
|
-
"""A StaticRoute resource. For more information, see [Static Routes](/docs/vpc/concepts/
|
|
95
|
+
"""A StaticRoute resource. For more information, see [Static Routes](/docs/vpc/concepts/routing)."""
|
|
96
96
|
|
|
97
97
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
98
98
|
|