yandexcloud 0.316.0__py3-none-any.whl → 0.317.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of yandexcloud might be problematic. Click here for more details.
- yandex/cloud/backup/v1/resource_pb2.py +10 -10
- yandex/cloud/backup/v1/resource_pb2.pyi +5 -1
- yandex/cloud/datatransfer/v1/transfer_pb2.py +12 -10
- yandex/cloud/datatransfer/v1/transfer_pb2.pyi +17 -3
- yandex/cloud/loadtesting/agent/v1/agent_registration_service_pb2.py +18 -11
- yandex/cloud/loadtesting/agent/v1/agent_registration_service_pb2.pyi +23 -1
- yandex/cloud/loadtesting/api/v1/agent/agent_pb2.py +6 -5
- yandex/cloud/loadtesting/api/v1/agent/agent_pb2.pyi +9 -1
- yandex/cloud/loadtesting/api/v1/agent/log_settings_pb2.py +29 -0
- yandex/cloud/loadtesting/api/v1/agent/log_settings_pb2.pyi +27 -0
- yandex/cloud/loadtesting/api/v1/agent/log_settings_pb2_grpc.py +4 -0
- yandex/cloud/loadtesting/api/v1/agent/log_settings_pb2_grpc.pyi +17 -0
- yandex/cloud/loadtesting/api/v1/agent_service_pb2.py +27 -26
- yandex/cloud/loadtesting/api/v1/agent_service_pb2.pyi +9 -2
- yandex/cloud/loadtesting/api/v1/test/imbalance_point_pb2.py +2 -2
- yandex/cloud/loadtesting/api/v1/test/imbalance_point_pb2.pyi +5 -1
- yandex/cloud/mdb/mysql/v1/backup_service_pb2.py +17 -13
- yandex/cloud/mdb/mysql/v1/backup_service_pb2_grpc.py +35 -0
- yandex/cloud/mdb/mysql/v1/backup_service_pb2_grpc.pyi +21 -0
- yandex/cloud/mdb/opensearch/v1/auth_pb2.py +6 -5
- yandex/cloud/mdb/opensearch/v1/auth_pb2.pyi +9 -1
- yandex/cloud/mdb/opensearch/v1/cluster_pb2.py +50 -43
- yandex/cloud/mdb/opensearch/v1/cluster_pb2.pyi +40 -4
- yandex/cloud/mdb/opensearch/v1/cluster_service_pb2.py +61 -61
- yandex/cloud/mdb/opensearch/v1/cluster_service_pb2.pyi +32 -8
- yandex/cloud/monitoring/v3/chart_widget_pb2.py +46 -44
- yandex/cloud/monitoring/v3/chart_widget_pb2.pyi +28 -2
- yandex/cloud/serverless/eventrouter/__init__.py +0 -0
- yandex/cloud/serverless/eventrouter/v1/__init__.py +0 -0
- yandex/cloud/serverless/eventrouter/v1/bus_pb2.py +33 -0
- yandex/cloud/serverless/eventrouter/v1/bus_pb2.pyi +107 -0
- yandex/cloud/serverless/eventrouter/v1/bus_pb2_grpc.py +4 -0
- yandex/cloud/serverless/eventrouter/v1/bus_pb2_grpc.pyi +17 -0
- yandex/cloud/serverless/eventrouter/v1/bus_service_pb2.py +115 -0
- yandex/cloud/serverless/eventrouter/v1/bus_service_pb2.pyi +320 -0
- yandex/cloud/serverless/eventrouter/v1/bus_service_pb2_grpc.py +346 -0
- yandex/cloud/serverless/eventrouter/v1/bus_service_pb2_grpc.pyi +219 -0
- yandex/cloud/serverless/eventrouter/v1/connector_pb2.py +61 -0
- yandex/cloud/serverless/eventrouter/v1/connector_pb2.pyi +223 -0
- yandex/cloud/serverless/eventrouter/v1/connector_pb2_grpc.py +4 -0
- yandex/cloud/serverless/eventrouter/v1/connector_pb2_grpc.pyi +17 -0
- yandex/cloud/serverless/eventrouter/v1/connector_service_pb2.py +135 -0
- yandex/cloud/serverless/eventrouter/v1/connector_service_pb2.pyi +397 -0
- yandex/cloud/serverless/eventrouter/v1/connector_service_pb2_grpc.py +414 -0
- yandex/cloud/serverless/eventrouter/v1/connector_service_pb2_grpc.pyi +259 -0
- yandex/cloud/serverless/eventrouter/v1/event_service_pb2.py +37 -0
- yandex/cloud/serverless/eventrouter/v1/event_service_pb2.pyi +31 -0
- yandex/cloud/serverless/eventrouter/v1/event_service_pb2_grpc.py +71 -0
- yandex/cloud/serverless/eventrouter/v1/event_service_pb2_grpc.pyi +51 -0
- yandex/cloud/serverless/eventrouter/v1/rule_pb2.py +123 -0
- yandex/cloud/serverless/eventrouter/v1/rule_pb2.pyi +532 -0
- yandex/cloud/serverless/eventrouter/v1/rule_pb2_grpc.py +4 -0
- yandex/cloud/serverless/eventrouter/v1/rule_pb2_grpc.pyi +17 -0
- yandex/cloud/serverless/eventrouter/v1/rule_service_pb2.py +139 -0
- yandex/cloud/serverless/eventrouter/v1/rule_service_pb2.pyi +413 -0
- yandex/cloud/serverless/eventrouter/v1/rule_service_pb2_grpc.py +414 -0
- yandex/cloud/serverless/eventrouter/v1/rule_service_pb2_grpc.pyi +259 -0
- yandex/cloud/serverless/functions/v1/function_pb2.py +34 -34
- yandex/cloud/serverless/functions/v1/function_pb2.pyi +8 -0
- yandex/cloud/serverless/workflows/__init__.py +0 -0
- yandex/cloud/serverless/workflows/v1/__init__.py +0 -0
- yandex/cloud/serverless/workflows/v1/execution_pb2.py +43 -0
- yandex/cloud/serverless/workflows/v1/execution_pb2.pyi +203 -0
- yandex/cloud/serverless/workflows/v1/execution_pb2_grpc.py +4 -0
- yandex/cloud/serverless/workflows/v1/execution_pb2_grpc.pyi +17 -0
- yandex/cloud/serverless/workflows/v1/execution_service_pb2.py +74 -0
- yandex/cloud/serverless/workflows/v1/execution_service_pb2.pyi +231 -0
- yandex/cloud/serverless/workflows/v1/execution_service_pb2_grpc.py +206 -0
- yandex/cloud/serverless/workflows/v1/execution_service_pb2_grpc.pyi +130 -0
- yandex/cloud/serverless/workflows/v1/history_entry_pb2.py +41 -0
- yandex/cloud/serverless/workflows/v1/history_entry_pb2.pyi +174 -0
- yandex/cloud/serverless/workflows/v1/history_entry_pb2_grpc.py +4 -0
- yandex/cloud/serverless/workflows/v1/history_entry_pb2_grpc.pyi +17 -0
- yandex/cloud/serverless/workflows/v1/workflow_pb2.py +47 -0
- yandex/cloud/serverless/workflows/v1/workflow_pb2.pyi +260 -0
- yandex/cloud/serverless/workflows/v1/workflow_pb2_grpc.py +4 -0
- yandex/cloud/serverless/workflows/v1/workflow_pb2_grpc.pyi +17 -0
- yandex/cloud/serverless/workflows/v1/workflow_service_pb2.py +112 -0
- yandex/cloud/serverless/workflows/v1/workflow_service_pb2.pyi +395 -0
- yandex/cloud/serverless/workflows/v1/workflow_service_pb2_grpc.py +241 -0
- yandex/cloud/serverless/workflows/v1/workflow_service_pb2_grpc.pyi +151 -0
- yandex/cloud/smartwebsecurity/v1/advanced_rate_limiter/__init__.py +0 -0
- yandex/cloud/smartwebsecurity/v1/advanced_rate_limiter/advanced_rate_limiter_profile_pb2.py +77 -0
- yandex/cloud/smartwebsecurity/v1/advanced_rate_limiter/advanced_rate_limiter_profile_pb2.pyi +352 -0
- yandex/cloud/smartwebsecurity/v1/advanced_rate_limiter/advanced_rate_limiter_profile_pb2_grpc.py +4 -0
- yandex/cloud/smartwebsecurity/v1/advanced_rate_limiter/advanced_rate_limiter_profile_pb2_grpc.pyi +17 -0
- yandex/cloud/smartwebsecurity/v1/advanced_rate_limiter/advanced_rate_limiter_profile_service_pb2.py +78 -0
- yandex/cloud/smartwebsecurity/v1/advanced_rate_limiter/advanced_rate_limiter_profile_service_pb2.pyi +244 -0
- yandex/cloud/smartwebsecurity/v1/advanced_rate_limiter/advanced_rate_limiter_profile_service_pb2_grpc.py +208 -0
- yandex/cloud/smartwebsecurity/v1/advanced_rate_limiter/advanced_rate_limiter_profile_service_pb2_grpc.pyi +132 -0
- yandex/cloud/smartwebsecurity/v1/waf/__init__.py +0 -0
- yandex/cloud/smartwebsecurity/v1/waf/rule_set_descriptor_pb2.py +35 -0
- yandex/cloud/smartwebsecurity/v1/waf/rule_set_descriptor_pb2.pyi +71 -0
- yandex/cloud/smartwebsecurity/v1/waf/rule_set_descriptor_pb2_grpc.py +4 -0
- yandex/cloud/smartwebsecurity/v1/waf/rule_set_descriptor_pb2_grpc.pyi +17 -0
- yandex/cloud/smartwebsecurity/v1/waf/rule_set_descriptor_service_pb2.py +37 -0
- yandex/cloud/smartwebsecurity/v1/waf/rule_set_descriptor_service_pb2.pyi +31 -0
- yandex/cloud/smartwebsecurity/v1/waf/rule_set_descriptor_service_pb2_grpc.py +71 -0
- yandex/cloud/smartwebsecurity/v1/waf/rule_set_descriptor_service_pb2_grpc.pyi +51 -0
- yandex/cloud/smartwebsecurity/v1/waf/waf_profile_pb2.py +81 -0
- yandex/cloud/smartwebsecurity/v1/waf/waf_profile_pb2.pyi +296 -0
- yandex/cloud/smartwebsecurity/v1/waf/waf_profile_pb2_grpc.py +4 -0
- yandex/cloud/smartwebsecurity/v1/waf/waf_profile_pb2_grpc.pyi +17 -0
- yandex/cloud/smartwebsecurity/v1/waf/waf_profile_service_pb2.py +76 -0
- yandex/cloud/smartwebsecurity/v1/waf/waf_profile_service_pb2.pyi +283 -0
- yandex/cloud/smartwebsecurity/v1/waf/waf_profile_service_pb2_grpc.py +208 -0
- yandex/cloud/smartwebsecurity/v1/waf/waf_profile_service_pb2_grpc.pyi +132 -0
- yandex/cloud/speechsense/v1/analysis/summarization_pb2.py +32 -0
- yandex/cloud/speechsense/v1/analysis/summarization_pb2.pyi +95 -0
- yandex/cloud/speechsense/v1/analysis/summarization_pb2_grpc.py +4 -0
- yandex/cloud/speechsense/v1/analysis/summarization_pb2_grpc.pyi +17 -0
- yandex/cloud/speechsense/v1/project_pb2.py +29 -0
- yandex/cloud/speechsense/v1/project_pb2.pyi +79 -0
- yandex/cloud/speechsense/v1/project_pb2_grpc.py +4 -0
- yandex/cloud/speechsense/v1/project_pb2_grpc.pyi +17 -0
- yandex/cloud/speechsense/v1/project_service_pb2.py +35 -0
- yandex/cloud/speechsense/v1/project_service_pb2.pyi +59 -0
- yandex/cloud/speechsense/v1/project_service_pb2_grpc.py +68 -0
- yandex/cloud/speechsense/v1/project_service_pb2_grpc.pyi +45 -0
- yandex/cloud/speechsense/v1/talk_pb2.py +8 -7
- yandex/cloud/speechsense/v1/talk_pb2.pyi +7 -2
- yandex/cloud/video/v1/channel_service_pb2.py +33 -28
- yandex/cloud/video/v1/episode_service_pb2.py +56 -47
- yandex/cloud/video/v1/stream_line_service_pb2.py +67 -60
- yandex/cloud/video/v1/stream_service_pb2.py +46 -41
- yandex/cloud/video/v1/thumbnail_service_pb2.py +29 -22
- yandex/cloud/video/v1/video_service_pb2.py +62 -53
- {yandexcloud-0.316.0.dist-info → yandexcloud-0.317.0.dist-info}/METADATA +1 -1
- {yandexcloud-0.316.0.dist-info → yandexcloud-0.317.0.dist-info}/RECORD +133 -39
- {yandexcloud-0.316.0.dist-info → yandexcloud-0.317.0.dist-info}/WHEEL +1 -1
- {yandexcloud-0.316.0.dist-info → yandexcloud-0.317.0.dist-info}/AUTHORS +0 -0
- {yandexcloud-0.316.0.dist-info → yandexcloud-0.317.0.dist-info}/LICENSE +0 -0
- {yandexcloud-0.316.0.dist-info → yandexcloud-0.317.0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,414 @@
|
|
|
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.access import access_pb2 as yandex_dot_cloud_dot_access_dot_access__pb2
|
|
6
|
+
from yandex.cloud.operation import operation_pb2 as yandex_dot_cloud_dot_operation_dot_operation__pb2
|
|
7
|
+
from yandex.cloud.serverless.eventrouter.v1 import rule_pb2 as yandex_dot_cloud_dot_serverless_dot_eventrouter_dot_v1_dot_rule__pb2
|
|
8
|
+
from yandex.cloud.serverless.eventrouter.v1 import rule_service_pb2 as yandex_dot_cloud_dot_serverless_dot_eventrouter_dot_v1_dot_rule__service__pb2
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class RuleServiceStub(object):
|
|
12
|
+
"""A set of methods for managing rules for serverless eventrouter.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
def __init__(self, channel):
|
|
16
|
+
"""Constructor.
|
|
17
|
+
|
|
18
|
+
Args:
|
|
19
|
+
channel: A grpc.Channel.
|
|
20
|
+
"""
|
|
21
|
+
self.Get = channel.unary_unary(
|
|
22
|
+
'/yandex.cloud.serverless.eventrouter.v1.RuleService/Get',
|
|
23
|
+
request_serializer=yandex_dot_cloud_dot_serverless_dot_eventrouter_dot_v1_dot_rule__service__pb2.GetRuleRequest.SerializeToString,
|
|
24
|
+
response_deserializer=yandex_dot_cloud_dot_serverless_dot_eventrouter_dot_v1_dot_rule__pb2.Rule.FromString,
|
|
25
|
+
)
|
|
26
|
+
self.List = channel.unary_unary(
|
|
27
|
+
'/yandex.cloud.serverless.eventrouter.v1.RuleService/List',
|
|
28
|
+
request_serializer=yandex_dot_cloud_dot_serverless_dot_eventrouter_dot_v1_dot_rule__service__pb2.ListRulesRequest.SerializeToString,
|
|
29
|
+
response_deserializer=yandex_dot_cloud_dot_serverless_dot_eventrouter_dot_v1_dot_rule__service__pb2.ListRulesResponse.FromString,
|
|
30
|
+
)
|
|
31
|
+
self.Create = channel.unary_unary(
|
|
32
|
+
'/yandex.cloud.serverless.eventrouter.v1.RuleService/Create',
|
|
33
|
+
request_serializer=yandex_dot_cloud_dot_serverless_dot_eventrouter_dot_v1_dot_rule__service__pb2.CreateRuleRequest.SerializeToString,
|
|
34
|
+
response_deserializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
35
|
+
)
|
|
36
|
+
self.Update = channel.unary_unary(
|
|
37
|
+
'/yandex.cloud.serverless.eventrouter.v1.RuleService/Update',
|
|
38
|
+
request_serializer=yandex_dot_cloud_dot_serverless_dot_eventrouter_dot_v1_dot_rule__service__pb2.UpdateRuleRequest.SerializeToString,
|
|
39
|
+
response_deserializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
40
|
+
)
|
|
41
|
+
self.Delete = channel.unary_unary(
|
|
42
|
+
'/yandex.cloud.serverless.eventrouter.v1.RuleService/Delete',
|
|
43
|
+
request_serializer=yandex_dot_cloud_dot_serverless_dot_eventrouter_dot_v1_dot_rule__service__pb2.DeleteRuleRequest.SerializeToString,
|
|
44
|
+
response_deserializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
45
|
+
)
|
|
46
|
+
self.Enable = channel.unary_unary(
|
|
47
|
+
'/yandex.cloud.serverless.eventrouter.v1.RuleService/Enable',
|
|
48
|
+
request_serializer=yandex_dot_cloud_dot_serverless_dot_eventrouter_dot_v1_dot_rule__service__pb2.EnableRuleRequest.SerializeToString,
|
|
49
|
+
response_deserializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
50
|
+
)
|
|
51
|
+
self.Disable = channel.unary_unary(
|
|
52
|
+
'/yandex.cloud.serverless.eventrouter.v1.RuleService/Disable',
|
|
53
|
+
request_serializer=yandex_dot_cloud_dot_serverless_dot_eventrouter_dot_v1_dot_rule__service__pb2.DisableRuleRequest.SerializeToString,
|
|
54
|
+
response_deserializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
55
|
+
)
|
|
56
|
+
self.ListAccessBindings = channel.unary_unary(
|
|
57
|
+
'/yandex.cloud.serverless.eventrouter.v1.RuleService/ListAccessBindings',
|
|
58
|
+
request_serializer=yandex_dot_cloud_dot_access_dot_access__pb2.ListAccessBindingsRequest.SerializeToString,
|
|
59
|
+
response_deserializer=yandex_dot_cloud_dot_access_dot_access__pb2.ListAccessBindingsResponse.FromString,
|
|
60
|
+
)
|
|
61
|
+
self.SetAccessBindings = channel.unary_unary(
|
|
62
|
+
'/yandex.cloud.serverless.eventrouter.v1.RuleService/SetAccessBindings',
|
|
63
|
+
request_serializer=yandex_dot_cloud_dot_access_dot_access__pb2.SetAccessBindingsRequest.SerializeToString,
|
|
64
|
+
response_deserializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
65
|
+
)
|
|
66
|
+
self.UpdateAccessBindings = channel.unary_unary(
|
|
67
|
+
'/yandex.cloud.serverless.eventrouter.v1.RuleService/UpdateAccessBindings',
|
|
68
|
+
request_serializer=yandex_dot_cloud_dot_access_dot_access__pb2.UpdateAccessBindingsRequest.SerializeToString,
|
|
69
|
+
response_deserializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
70
|
+
)
|
|
71
|
+
self.ListOperations = channel.unary_unary(
|
|
72
|
+
'/yandex.cloud.serverless.eventrouter.v1.RuleService/ListOperations',
|
|
73
|
+
request_serializer=yandex_dot_cloud_dot_serverless_dot_eventrouter_dot_v1_dot_rule__service__pb2.ListRuleOperationsRequest.SerializeToString,
|
|
74
|
+
response_deserializer=yandex_dot_cloud_dot_serverless_dot_eventrouter_dot_v1_dot_rule__service__pb2.ListRuleOperationsResponse.FromString,
|
|
75
|
+
)
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
class RuleServiceServicer(object):
|
|
79
|
+
"""A set of methods for managing rules for serverless eventrouter.
|
|
80
|
+
"""
|
|
81
|
+
|
|
82
|
+
def Get(self, request, context):
|
|
83
|
+
"""Returns the specified rules.
|
|
84
|
+
To get the list of all available buses, make a [List] request.
|
|
85
|
+
"""
|
|
86
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
87
|
+
context.set_details('Method not implemented!')
|
|
88
|
+
raise NotImplementedError('Method not implemented!')
|
|
89
|
+
|
|
90
|
+
def List(self, request, context):
|
|
91
|
+
"""Retrieves the list of rules in the specified folder.
|
|
92
|
+
"""
|
|
93
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
94
|
+
context.set_details('Method not implemented!')
|
|
95
|
+
raise NotImplementedError('Method not implemented!')
|
|
96
|
+
|
|
97
|
+
def Create(self, request, context):
|
|
98
|
+
"""Creates a rule in the specified folder.
|
|
99
|
+
"""
|
|
100
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
101
|
+
context.set_details('Method not implemented!')
|
|
102
|
+
raise NotImplementedError('Method not implemented!')
|
|
103
|
+
|
|
104
|
+
def Update(self, request, context):
|
|
105
|
+
"""Updates the specified rule.
|
|
106
|
+
"""
|
|
107
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
108
|
+
context.set_details('Method not implemented!')
|
|
109
|
+
raise NotImplementedError('Method not implemented!')
|
|
110
|
+
|
|
111
|
+
def Delete(self, request, context):
|
|
112
|
+
"""Deletes the specified rule.
|
|
113
|
+
"""
|
|
114
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
115
|
+
context.set_details('Method not implemented!')
|
|
116
|
+
raise NotImplementedError('Method not implemented!')
|
|
117
|
+
|
|
118
|
+
def Enable(self, request, context):
|
|
119
|
+
"""Enables the specified rule.
|
|
120
|
+
"""
|
|
121
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
122
|
+
context.set_details('Method not implemented!')
|
|
123
|
+
raise NotImplementedError('Method not implemented!')
|
|
124
|
+
|
|
125
|
+
def Disable(self, request, context):
|
|
126
|
+
"""Disables the specified rule.
|
|
127
|
+
"""
|
|
128
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
129
|
+
context.set_details('Method not implemented!')
|
|
130
|
+
raise NotImplementedError('Method not implemented!')
|
|
131
|
+
|
|
132
|
+
def ListAccessBindings(self, request, context):
|
|
133
|
+
"""Lists existing access bindings for the specified rule.
|
|
134
|
+
"""
|
|
135
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
136
|
+
context.set_details('Method not implemented!')
|
|
137
|
+
raise NotImplementedError('Method not implemented!')
|
|
138
|
+
|
|
139
|
+
def SetAccessBindings(self, request, context):
|
|
140
|
+
"""Sets access bindings for the rule.
|
|
141
|
+
"""
|
|
142
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
143
|
+
context.set_details('Method not implemented!')
|
|
144
|
+
raise NotImplementedError('Method not implemented!')
|
|
145
|
+
|
|
146
|
+
def UpdateAccessBindings(self, request, context):
|
|
147
|
+
"""Updates access bindings for the specified rule.
|
|
148
|
+
"""
|
|
149
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
150
|
+
context.set_details('Method not implemented!')
|
|
151
|
+
raise NotImplementedError('Method not implemented!')
|
|
152
|
+
|
|
153
|
+
def ListOperations(self, request, context):
|
|
154
|
+
"""Lists operations for the specified rule.
|
|
155
|
+
"""
|
|
156
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
157
|
+
context.set_details('Method not implemented!')
|
|
158
|
+
raise NotImplementedError('Method not implemented!')
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
def add_RuleServiceServicer_to_server(servicer, server):
|
|
162
|
+
rpc_method_handlers = {
|
|
163
|
+
'Get': grpc.unary_unary_rpc_method_handler(
|
|
164
|
+
servicer.Get,
|
|
165
|
+
request_deserializer=yandex_dot_cloud_dot_serverless_dot_eventrouter_dot_v1_dot_rule__service__pb2.GetRuleRequest.FromString,
|
|
166
|
+
response_serializer=yandex_dot_cloud_dot_serverless_dot_eventrouter_dot_v1_dot_rule__pb2.Rule.SerializeToString,
|
|
167
|
+
),
|
|
168
|
+
'List': grpc.unary_unary_rpc_method_handler(
|
|
169
|
+
servicer.List,
|
|
170
|
+
request_deserializer=yandex_dot_cloud_dot_serverless_dot_eventrouter_dot_v1_dot_rule__service__pb2.ListRulesRequest.FromString,
|
|
171
|
+
response_serializer=yandex_dot_cloud_dot_serverless_dot_eventrouter_dot_v1_dot_rule__service__pb2.ListRulesResponse.SerializeToString,
|
|
172
|
+
),
|
|
173
|
+
'Create': grpc.unary_unary_rpc_method_handler(
|
|
174
|
+
servicer.Create,
|
|
175
|
+
request_deserializer=yandex_dot_cloud_dot_serverless_dot_eventrouter_dot_v1_dot_rule__service__pb2.CreateRuleRequest.FromString,
|
|
176
|
+
response_serializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.SerializeToString,
|
|
177
|
+
),
|
|
178
|
+
'Update': grpc.unary_unary_rpc_method_handler(
|
|
179
|
+
servicer.Update,
|
|
180
|
+
request_deserializer=yandex_dot_cloud_dot_serverless_dot_eventrouter_dot_v1_dot_rule__service__pb2.UpdateRuleRequest.FromString,
|
|
181
|
+
response_serializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.SerializeToString,
|
|
182
|
+
),
|
|
183
|
+
'Delete': grpc.unary_unary_rpc_method_handler(
|
|
184
|
+
servicer.Delete,
|
|
185
|
+
request_deserializer=yandex_dot_cloud_dot_serverless_dot_eventrouter_dot_v1_dot_rule__service__pb2.DeleteRuleRequest.FromString,
|
|
186
|
+
response_serializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.SerializeToString,
|
|
187
|
+
),
|
|
188
|
+
'Enable': grpc.unary_unary_rpc_method_handler(
|
|
189
|
+
servicer.Enable,
|
|
190
|
+
request_deserializer=yandex_dot_cloud_dot_serverless_dot_eventrouter_dot_v1_dot_rule__service__pb2.EnableRuleRequest.FromString,
|
|
191
|
+
response_serializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.SerializeToString,
|
|
192
|
+
),
|
|
193
|
+
'Disable': grpc.unary_unary_rpc_method_handler(
|
|
194
|
+
servicer.Disable,
|
|
195
|
+
request_deserializer=yandex_dot_cloud_dot_serverless_dot_eventrouter_dot_v1_dot_rule__service__pb2.DisableRuleRequest.FromString,
|
|
196
|
+
response_serializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.SerializeToString,
|
|
197
|
+
),
|
|
198
|
+
'ListAccessBindings': grpc.unary_unary_rpc_method_handler(
|
|
199
|
+
servicer.ListAccessBindings,
|
|
200
|
+
request_deserializer=yandex_dot_cloud_dot_access_dot_access__pb2.ListAccessBindingsRequest.FromString,
|
|
201
|
+
response_serializer=yandex_dot_cloud_dot_access_dot_access__pb2.ListAccessBindingsResponse.SerializeToString,
|
|
202
|
+
),
|
|
203
|
+
'SetAccessBindings': grpc.unary_unary_rpc_method_handler(
|
|
204
|
+
servicer.SetAccessBindings,
|
|
205
|
+
request_deserializer=yandex_dot_cloud_dot_access_dot_access__pb2.SetAccessBindingsRequest.FromString,
|
|
206
|
+
response_serializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.SerializeToString,
|
|
207
|
+
),
|
|
208
|
+
'UpdateAccessBindings': grpc.unary_unary_rpc_method_handler(
|
|
209
|
+
servicer.UpdateAccessBindings,
|
|
210
|
+
request_deserializer=yandex_dot_cloud_dot_access_dot_access__pb2.UpdateAccessBindingsRequest.FromString,
|
|
211
|
+
response_serializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.SerializeToString,
|
|
212
|
+
),
|
|
213
|
+
'ListOperations': grpc.unary_unary_rpc_method_handler(
|
|
214
|
+
servicer.ListOperations,
|
|
215
|
+
request_deserializer=yandex_dot_cloud_dot_serverless_dot_eventrouter_dot_v1_dot_rule__service__pb2.ListRuleOperationsRequest.FromString,
|
|
216
|
+
response_serializer=yandex_dot_cloud_dot_serverless_dot_eventrouter_dot_v1_dot_rule__service__pb2.ListRuleOperationsResponse.SerializeToString,
|
|
217
|
+
),
|
|
218
|
+
}
|
|
219
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
220
|
+
'yandex.cloud.serverless.eventrouter.v1.RuleService', rpc_method_handlers)
|
|
221
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
# This class is part of an EXPERIMENTAL API.
|
|
225
|
+
class RuleService(object):
|
|
226
|
+
"""A set of methods for managing rules for serverless eventrouter.
|
|
227
|
+
"""
|
|
228
|
+
|
|
229
|
+
@staticmethod
|
|
230
|
+
def Get(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.serverless.eventrouter.v1.RuleService/Get',
|
|
241
|
+
yandex_dot_cloud_dot_serverless_dot_eventrouter_dot_v1_dot_rule__service__pb2.GetRuleRequest.SerializeToString,
|
|
242
|
+
yandex_dot_cloud_dot_serverless_dot_eventrouter_dot_v1_dot_rule__pb2.Rule.FromString,
|
|
243
|
+
options, channel_credentials,
|
|
244
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
245
|
+
|
|
246
|
+
@staticmethod
|
|
247
|
+
def List(request,
|
|
248
|
+
target,
|
|
249
|
+
options=(),
|
|
250
|
+
channel_credentials=None,
|
|
251
|
+
call_credentials=None,
|
|
252
|
+
insecure=False,
|
|
253
|
+
compression=None,
|
|
254
|
+
wait_for_ready=None,
|
|
255
|
+
timeout=None,
|
|
256
|
+
metadata=None):
|
|
257
|
+
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.serverless.eventrouter.v1.RuleService/List',
|
|
258
|
+
yandex_dot_cloud_dot_serverless_dot_eventrouter_dot_v1_dot_rule__service__pb2.ListRulesRequest.SerializeToString,
|
|
259
|
+
yandex_dot_cloud_dot_serverless_dot_eventrouter_dot_v1_dot_rule__service__pb2.ListRulesResponse.FromString,
|
|
260
|
+
options, channel_credentials,
|
|
261
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
262
|
+
|
|
263
|
+
@staticmethod
|
|
264
|
+
def Create(request,
|
|
265
|
+
target,
|
|
266
|
+
options=(),
|
|
267
|
+
channel_credentials=None,
|
|
268
|
+
call_credentials=None,
|
|
269
|
+
insecure=False,
|
|
270
|
+
compression=None,
|
|
271
|
+
wait_for_ready=None,
|
|
272
|
+
timeout=None,
|
|
273
|
+
metadata=None):
|
|
274
|
+
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.serverless.eventrouter.v1.RuleService/Create',
|
|
275
|
+
yandex_dot_cloud_dot_serverless_dot_eventrouter_dot_v1_dot_rule__service__pb2.CreateRuleRequest.SerializeToString,
|
|
276
|
+
yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
277
|
+
options, channel_credentials,
|
|
278
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
279
|
+
|
|
280
|
+
@staticmethod
|
|
281
|
+
def Update(request,
|
|
282
|
+
target,
|
|
283
|
+
options=(),
|
|
284
|
+
channel_credentials=None,
|
|
285
|
+
call_credentials=None,
|
|
286
|
+
insecure=False,
|
|
287
|
+
compression=None,
|
|
288
|
+
wait_for_ready=None,
|
|
289
|
+
timeout=None,
|
|
290
|
+
metadata=None):
|
|
291
|
+
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.serverless.eventrouter.v1.RuleService/Update',
|
|
292
|
+
yandex_dot_cloud_dot_serverless_dot_eventrouter_dot_v1_dot_rule__service__pb2.UpdateRuleRequest.SerializeToString,
|
|
293
|
+
yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
294
|
+
options, channel_credentials,
|
|
295
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
296
|
+
|
|
297
|
+
@staticmethod
|
|
298
|
+
def Delete(request,
|
|
299
|
+
target,
|
|
300
|
+
options=(),
|
|
301
|
+
channel_credentials=None,
|
|
302
|
+
call_credentials=None,
|
|
303
|
+
insecure=False,
|
|
304
|
+
compression=None,
|
|
305
|
+
wait_for_ready=None,
|
|
306
|
+
timeout=None,
|
|
307
|
+
metadata=None):
|
|
308
|
+
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.serverless.eventrouter.v1.RuleService/Delete',
|
|
309
|
+
yandex_dot_cloud_dot_serverless_dot_eventrouter_dot_v1_dot_rule__service__pb2.DeleteRuleRequest.SerializeToString,
|
|
310
|
+
yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
311
|
+
options, channel_credentials,
|
|
312
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
313
|
+
|
|
314
|
+
@staticmethod
|
|
315
|
+
def Enable(request,
|
|
316
|
+
target,
|
|
317
|
+
options=(),
|
|
318
|
+
channel_credentials=None,
|
|
319
|
+
call_credentials=None,
|
|
320
|
+
insecure=False,
|
|
321
|
+
compression=None,
|
|
322
|
+
wait_for_ready=None,
|
|
323
|
+
timeout=None,
|
|
324
|
+
metadata=None):
|
|
325
|
+
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.serverless.eventrouter.v1.RuleService/Enable',
|
|
326
|
+
yandex_dot_cloud_dot_serverless_dot_eventrouter_dot_v1_dot_rule__service__pb2.EnableRuleRequest.SerializeToString,
|
|
327
|
+
yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
328
|
+
options, channel_credentials,
|
|
329
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
330
|
+
|
|
331
|
+
@staticmethod
|
|
332
|
+
def Disable(request,
|
|
333
|
+
target,
|
|
334
|
+
options=(),
|
|
335
|
+
channel_credentials=None,
|
|
336
|
+
call_credentials=None,
|
|
337
|
+
insecure=False,
|
|
338
|
+
compression=None,
|
|
339
|
+
wait_for_ready=None,
|
|
340
|
+
timeout=None,
|
|
341
|
+
metadata=None):
|
|
342
|
+
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.serverless.eventrouter.v1.RuleService/Disable',
|
|
343
|
+
yandex_dot_cloud_dot_serverless_dot_eventrouter_dot_v1_dot_rule__service__pb2.DisableRuleRequest.SerializeToString,
|
|
344
|
+
yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
345
|
+
options, channel_credentials,
|
|
346
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
347
|
+
|
|
348
|
+
@staticmethod
|
|
349
|
+
def ListAccessBindings(request,
|
|
350
|
+
target,
|
|
351
|
+
options=(),
|
|
352
|
+
channel_credentials=None,
|
|
353
|
+
call_credentials=None,
|
|
354
|
+
insecure=False,
|
|
355
|
+
compression=None,
|
|
356
|
+
wait_for_ready=None,
|
|
357
|
+
timeout=None,
|
|
358
|
+
metadata=None):
|
|
359
|
+
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.serverless.eventrouter.v1.RuleService/ListAccessBindings',
|
|
360
|
+
yandex_dot_cloud_dot_access_dot_access__pb2.ListAccessBindingsRequest.SerializeToString,
|
|
361
|
+
yandex_dot_cloud_dot_access_dot_access__pb2.ListAccessBindingsResponse.FromString,
|
|
362
|
+
options, channel_credentials,
|
|
363
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
364
|
+
|
|
365
|
+
@staticmethod
|
|
366
|
+
def SetAccessBindings(request,
|
|
367
|
+
target,
|
|
368
|
+
options=(),
|
|
369
|
+
channel_credentials=None,
|
|
370
|
+
call_credentials=None,
|
|
371
|
+
insecure=False,
|
|
372
|
+
compression=None,
|
|
373
|
+
wait_for_ready=None,
|
|
374
|
+
timeout=None,
|
|
375
|
+
metadata=None):
|
|
376
|
+
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.serverless.eventrouter.v1.RuleService/SetAccessBindings',
|
|
377
|
+
yandex_dot_cloud_dot_access_dot_access__pb2.SetAccessBindingsRequest.SerializeToString,
|
|
378
|
+
yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
379
|
+
options, channel_credentials,
|
|
380
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
381
|
+
|
|
382
|
+
@staticmethod
|
|
383
|
+
def UpdateAccessBindings(request,
|
|
384
|
+
target,
|
|
385
|
+
options=(),
|
|
386
|
+
channel_credentials=None,
|
|
387
|
+
call_credentials=None,
|
|
388
|
+
insecure=False,
|
|
389
|
+
compression=None,
|
|
390
|
+
wait_for_ready=None,
|
|
391
|
+
timeout=None,
|
|
392
|
+
metadata=None):
|
|
393
|
+
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.serverless.eventrouter.v1.RuleService/UpdateAccessBindings',
|
|
394
|
+
yandex_dot_cloud_dot_access_dot_access__pb2.UpdateAccessBindingsRequest.SerializeToString,
|
|
395
|
+
yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
396
|
+
options, channel_credentials,
|
|
397
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
398
|
+
|
|
399
|
+
@staticmethod
|
|
400
|
+
def ListOperations(request,
|
|
401
|
+
target,
|
|
402
|
+
options=(),
|
|
403
|
+
channel_credentials=None,
|
|
404
|
+
call_credentials=None,
|
|
405
|
+
insecure=False,
|
|
406
|
+
compression=None,
|
|
407
|
+
wait_for_ready=None,
|
|
408
|
+
timeout=None,
|
|
409
|
+
metadata=None):
|
|
410
|
+
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.serverless.eventrouter.v1.RuleService/ListOperations',
|
|
411
|
+
yandex_dot_cloud_dot_serverless_dot_eventrouter_dot_v1_dot_rule__service__pb2.ListRuleOperationsRequest.SerializeToString,
|
|
412
|
+
yandex_dot_cloud_dot_serverless_dot_eventrouter_dot_v1_dot_rule__service__pb2.ListRuleOperationsResponse.FromString,
|
|
413
|
+
options, channel_credentials,
|
|
414
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
@@ -0,0 +1,259 @@
|
|
|
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.access.access_pb2
|
|
12
|
+
import yandex.cloud.operation.operation_pb2
|
|
13
|
+
import yandex.cloud.serverless.eventrouter.v1.rule_pb2
|
|
14
|
+
import yandex.cloud.serverless.eventrouter.v1.rule_service_pb2
|
|
15
|
+
|
|
16
|
+
_T = typing.TypeVar("_T")
|
|
17
|
+
|
|
18
|
+
class _MaybeAsyncIterator(collections.abc.AsyncIterator[_T], collections.abc.Iterator[_T], metaclass=abc.ABCMeta): ...
|
|
19
|
+
|
|
20
|
+
class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore[misc, type-arg]
|
|
21
|
+
...
|
|
22
|
+
|
|
23
|
+
class RuleServiceStub:
|
|
24
|
+
"""A set of methods for managing rules for serverless eventrouter."""
|
|
25
|
+
|
|
26
|
+
def __init__(self, channel: typing.Union[grpc.Channel, grpc.aio.Channel]) -> None: ...
|
|
27
|
+
Get: grpc.UnaryUnaryMultiCallable[
|
|
28
|
+
yandex.cloud.serverless.eventrouter.v1.rule_service_pb2.GetRuleRequest,
|
|
29
|
+
yandex.cloud.serverless.eventrouter.v1.rule_pb2.Rule,
|
|
30
|
+
]
|
|
31
|
+
"""Returns the specified rules.
|
|
32
|
+
To get the list of all available buses, make a [List] request.
|
|
33
|
+
"""
|
|
34
|
+
|
|
35
|
+
List: grpc.UnaryUnaryMultiCallable[
|
|
36
|
+
yandex.cloud.serverless.eventrouter.v1.rule_service_pb2.ListRulesRequest,
|
|
37
|
+
yandex.cloud.serverless.eventrouter.v1.rule_service_pb2.ListRulesResponse,
|
|
38
|
+
]
|
|
39
|
+
"""Retrieves the list of rules in the specified folder."""
|
|
40
|
+
|
|
41
|
+
Create: grpc.UnaryUnaryMultiCallable[
|
|
42
|
+
yandex.cloud.serverless.eventrouter.v1.rule_service_pb2.CreateRuleRequest,
|
|
43
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
44
|
+
]
|
|
45
|
+
"""Creates a rule in the specified folder."""
|
|
46
|
+
|
|
47
|
+
Update: grpc.UnaryUnaryMultiCallable[
|
|
48
|
+
yandex.cloud.serverless.eventrouter.v1.rule_service_pb2.UpdateRuleRequest,
|
|
49
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
50
|
+
]
|
|
51
|
+
"""Updates the specified rule."""
|
|
52
|
+
|
|
53
|
+
Delete: grpc.UnaryUnaryMultiCallable[
|
|
54
|
+
yandex.cloud.serverless.eventrouter.v1.rule_service_pb2.DeleteRuleRequest,
|
|
55
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
56
|
+
]
|
|
57
|
+
"""Deletes the specified rule."""
|
|
58
|
+
|
|
59
|
+
Enable: grpc.UnaryUnaryMultiCallable[
|
|
60
|
+
yandex.cloud.serverless.eventrouter.v1.rule_service_pb2.EnableRuleRequest,
|
|
61
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
62
|
+
]
|
|
63
|
+
"""Enables the specified rule."""
|
|
64
|
+
|
|
65
|
+
Disable: grpc.UnaryUnaryMultiCallable[
|
|
66
|
+
yandex.cloud.serverless.eventrouter.v1.rule_service_pb2.DisableRuleRequest,
|
|
67
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
68
|
+
]
|
|
69
|
+
"""Disables the specified rule."""
|
|
70
|
+
|
|
71
|
+
ListAccessBindings: grpc.UnaryUnaryMultiCallable[
|
|
72
|
+
yandex.cloud.access.access_pb2.ListAccessBindingsRequest,
|
|
73
|
+
yandex.cloud.access.access_pb2.ListAccessBindingsResponse,
|
|
74
|
+
]
|
|
75
|
+
"""Lists existing access bindings for the specified rule."""
|
|
76
|
+
|
|
77
|
+
SetAccessBindings: grpc.UnaryUnaryMultiCallable[
|
|
78
|
+
yandex.cloud.access.access_pb2.SetAccessBindingsRequest,
|
|
79
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
80
|
+
]
|
|
81
|
+
"""Sets access bindings for the rule."""
|
|
82
|
+
|
|
83
|
+
UpdateAccessBindings: grpc.UnaryUnaryMultiCallable[
|
|
84
|
+
yandex.cloud.access.access_pb2.UpdateAccessBindingsRequest,
|
|
85
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
86
|
+
]
|
|
87
|
+
"""Updates access bindings for the specified rule."""
|
|
88
|
+
|
|
89
|
+
ListOperations: grpc.UnaryUnaryMultiCallable[
|
|
90
|
+
yandex.cloud.serverless.eventrouter.v1.rule_service_pb2.ListRuleOperationsRequest,
|
|
91
|
+
yandex.cloud.serverless.eventrouter.v1.rule_service_pb2.ListRuleOperationsResponse,
|
|
92
|
+
]
|
|
93
|
+
"""Lists operations for the specified rule."""
|
|
94
|
+
|
|
95
|
+
class RuleServiceAsyncStub:
|
|
96
|
+
"""A set of methods for managing rules for serverless eventrouter."""
|
|
97
|
+
|
|
98
|
+
Get: grpc.aio.UnaryUnaryMultiCallable[
|
|
99
|
+
yandex.cloud.serverless.eventrouter.v1.rule_service_pb2.GetRuleRequest,
|
|
100
|
+
yandex.cloud.serverless.eventrouter.v1.rule_pb2.Rule,
|
|
101
|
+
]
|
|
102
|
+
"""Returns the specified rules.
|
|
103
|
+
To get the list of all available buses, make a [List] request.
|
|
104
|
+
"""
|
|
105
|
+
|
|
106
|
+
List: grpc.aio.UnaryUnaryMultiCallable[
|
|
107
|
+
yandex.cloud.serverless.eventrouter.v1.rule_service_pb2.ListRulesRequest,
|
|
108
|
+
yandex.cloud.serverless.eventrouter.v1.rule_service_pb2.ListRulesResponse,
|
|
109
|
+
]
|
|
110
|
+
"""Retrieves the list of rules in the specified folder."""
|
|
111
|
+
|
|
112
|
+
Create: grpc.aio.UnaryUnaryMultiCallable[
|
|
113
|
+
yandex.cloud.serverless.eventrouter.v1.rule_service_pb2.CreateRuleRequest,
|
|
114
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
115
|
+
]
|
|
116
|
+
"""Creates a rule in the specified folder."""
|
|
117
|
+
|
|
118
|
+
Update: grpc.aio.UnaryUnaryMultiCallable[
|
|
119
|
+
yandex.cloud.serverless.eventrouter.v1.rule_service_pb2.UpdateRuleRequest,
|
|
120
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
121
|
+
]
|
|
122
|
+
"""Updates the specified rule."""
|
|
123
|
+
|
|
124
|
+
Delete: grpc.aio.UnaryUnaryMultiCallable[
|
|
125
|
+
yandex.cloud.serverless.eventrouter.v1.rule_service_pb2.DeleteRuleRequest,
|
|
126
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
127
|
+
]
|
|
128
|
+
"""Deletes the specified rule."""
|
|
129
|
+
|
|
130
|
+
Enable: grpc.aio.UnaryUnaryMultiCallable[
|
|
131
|
+
yandex.cloud.serverless.eventrouter.v1.rule_service_pb2.EnableRuleRequest,
|
|
132
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
133
|
+
]
|
|
134
|
+
"""Enables the specified rule."""
|
|
135
|
+
|
|
136
|
+
Disable: grpc.aio.UnaryUnaryMultiCallable[
|
|
137
|
+
yandex.cloud.serverless.eventrouter.v1.rule_service_pb2.DisableRuleRequest,
|
|
138
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
139
|
+
]
|
|
140
|
+
"""Disables the specified rule."""
|
|
141
|
+
|
|
142
|
+
ListAccessBindings: grpc.aio.UnaryUnaryMultiCallable[
|
|
143
|
+
yandex.cloud.access.access_pb2.ListAccessBindingsRequest,
|
|
144
|
+
yandex.cloud.access.access_pb2.ListAccessBindingsResponse,
|
|
145
|
+
]
|
|
146
|
+
"""Lists existing access bindings for the specified rule."""
|
|
147
|
+
|
|
148
|
+
SetAccessBindings: grpc.aio.UnaryUnaryMultiCallable[
|
|
149
|
+
yandex.cloud.access.access_pb2.SetAccessBindingsRequest,
|
|
150
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
151
|
+
]
|
|
152
|
+
"""Sets access bindings for the rule."""
|
|
153
|
+
|
|
154
|
+
UpdateAccessBindings: grpc.aio.UnaryUnaryMultiCallable[
|
|
155
|
+
yandex.cloud.access.access_pb2.UpdateAccessBindingsRequest,
|
|
156
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
157
|
+
]
|
|
158
|
+
"""Updates access bindings for the specified rule."""
|
|
159
|
+
|
|
160
|
+
ListOperations: grpc.aio.UnaryUnaryMultiCallable[
|
|
161
|
+
yandex.cloud.serverless.eventrouter.v1.rule_service_pb2.ListRuleOperationsRequest,
|
|
162
|
+
yandex.cloud.serverless.eventrouter.v1.rule_service_pb2.ListRuleOperationsResponse,
|
|
163
|
+
]
|
|
164
|
+
"""Lists operations for the specified rule."""
|
|
165
|
+
|
|
166
|
+
class RuleServiceServicer(metaclass=abc.ABCMeta):
|
|
167
|
+
"""A set of methods for managing rules for serverless eventrouter."""
|
|
168
|
+
|
|
169
|
+
@abc.abstractmethod
|
|
170
|
+
def Get(
|
|
171
|
+
self,
|
|
172
|
+
request: yandex.cloud.serverless.eventrouter.v1.rule_service_pb2.GetRuleRequest,
|
|
173
|
+
context: _ServicerContext,
|
|
174
|
+
) -> typing.Union[yandex.cloud.serverless.eventrouter.v1.rule_pb2.Rule, collections.abc.Awaitable[yandex.cloud.serverless.eventrouter.v1.rule_pb2.Rule]]:
|
|
175
|
+
"""Returns the specified rules.
|
|
176
|
+
To get the list of all available buses, make a [List] request.
|
|
177
|
+
"""
|
|
178
|
+
|
|
179
|
+
@abc.abstractmethod
|
|
180
|
+
def List(
|
|
181
|
+
self,
|
|
182
|
+
request: yandex.cloud.serverless.eventrouter.v1.rule_service_pb2.ListRulesRequest,
|
|
183
|
+
context: _ServicerContext,
|
|
184
|
+
) -> typing.Union[yandex.cloud.serverless.eventrouter.v1.rule_service_pb2.ListRulesResponse, collections.abc.Awaitable[yandex.cloud.serverless.eventrouter.v1.rule_service_pb2.ListRulesResponse]]:
|
|
185
|
+
"""Retrieves the list of rules in the specified folder."""
|
|
186
|
+
|
|
187
|
+
@abc.abstractmethod
|
|
188
|
+
def Create(
|
|
189
|
+
self,
|
|
190
|
+
request: yandex.cloud.serverless.eventrouter.v1.rule_service_pb2.CreateRuleRequest,
|
|
191
|
+
context: _ServicerContext,
|
|
192
|
+
) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
|
|
193
|
+
"""Creates a rule in the specified folder."""
|
|
194
|
+
|
|
195
|
+
@abc.abstractmethod
|
|
196
|
+
def Update(
|
|
197
|
+
self,
|
|
198
|
+
request: yandex.cloud.serverless.eventrouter.v1.rule_service_pb2.UpdateRuleRequest,
|
|
199
|
+
context: _ServicerContext,
|
|
200
|
+
) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
|
|
201
|
+
"""Updates the specified rule."""
|
|
202
|
+
|
|
203
|
+
@abc.abstractmethod
|
|
204
|
+
def Delete(
|
|
205
|
+
self,
|
|
206
|
+
request: yandex.cloud.serverless.eventrouter.v1.rule_service_pb2.DeleteRuleRequest,
|
|
207
|
+
context: _ServicerContext,
|
|
208
|
+
) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
|
|
209
|
+
"""Deletes the specified rule."""
|
|
210
|
+
|
|
211
|
+
@abc.abstractmethod
|
|
212
|
+
def Enable(
|
|
213
|
+
self,
|
|
214
|
+
request: yandex.cloud.serverless.eventrouter.v1.rule_service_pb2.EnableRuleRequest,
|
|
215
|
+
context: _ServicerContext,
|
|
216
|
+
) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
|
|
217
|
+
"""Enables the specified rule."""
|
|
218
|
+
|
|
219
|
+
@abc.abstractmethod
|
|
220
|
+
def Disable(
|
|
221
|
+
self,
|
|
222
|
+
request: yandex.cloud.serverless.eventrouter.v1.rule_service_pb2.DisableRuleRequest,
|
|
223
|
+
context: _ServicerContext,
|
|
224
|
+
) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
|
|
225
|
+
"""Disables the specified rule."""
|
|
226
|
+
|
|
227
|
+
@abc.abstractmethod
|
|
228
|
+
def ListAccessBindings(
|
|
229
|
+
self,
|
|
230
|
+
request: yandex.cloud.access.access_pb2.ListAccessBindingsRequest,
|
|
231
|
+
context: _ServicerContext,
|
|
232
|
+
) -> typing.Union[yandex.cloud.access.access_pb2.ListAccessBindingsResponse, collections.abc.Awaitable[yandex.cloud.access.access_pb2.ListAccessBindingsResponse]]:
|
|
233
|
+
"""Lists existing access bindings for the specified rule."""
|
|
234
|
+
|
|
235
|
+
@abc.abstractmethod
|
|
236
|
+
def SetAccessBindings(
|
|
237
|
+
self,
|
|
238
|
+
request: yandex.cloud.access.access_pb2.SetAccessBindingsRequest,
|
|
239
|
+
context: _ServicerContext,
|
|
240
|
+
) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
|
|
241
|
+
"""Sets access bindings for the rule."""
|
|
242
|
+
|
|
243
|
+
@abc.abstractmethod
|
|
244
|
+
def UpdateAccessBindings(
|
|
245
|
+
self,
|
|
246
|
+
request: yandex.cloud.access.access_pb2.UpdateAccessBindingsRequest,
|
|
247
|
+
context: _ServicerContext,
|
|
248
|
+
) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
|
|
249
|
+
"""Updates access bindings for the specified rule."""
|
|
250
|
+
|
|
251
|
+
@abc.abstractmethod
|
|
252
|
+
def ListOperations(
|
|
253
|
+
self,
|
|
254
|
+
request: yandex.cloud.serverless.eventrouter.v1.rule_service_pb2.ListRuleOperationsRequest,
|
|
255
|
+
context: _ServicerContext,
|
|
256
|
+
) -> typing.Union[yandex.cloud.serverless.eventrouter.v1.rule_service_pb2.ListRuleOperationsResponse, collections.abc.Awaitable[yandex.cloud.serverless.eventrouter.v1.rule_service_pb2.ListRuleOperationsResponse]]:
|
|
257
|
+
"""Lists operations for the specified rule."""
|
|
258
|
+
|
|
259
|
+
def add_RuleServiceServicer_to_server(servicer: RuleServiceServicer, server: typing.Union[grpc.Server, grpc.aio.Server]) -> None: ...
|