|
3 | 3 | import grpc |
4 | 4 | import warnings |
5 | 5 |
|
| 6 | +from yandex.cloud.access import access_pb2 as yandex_dot_cloud_dot_access_dot_access__pb2 |
6 | 7 | from yandex.cloud.airflow.v1 import cluster_pb2 as yandex_dot_cloud_dot_airflow_dot_v1_dot_cluster__pb2 |
7 | 8 | from yandex.cloud.airflow.v1 import cluster_service_pb2 as yandex_dot_cloud_dot_airflow_dot_v1_dot_cluster__service__pb2 |
8 | 9 | from yandex.cloud.operation import operation_pb2 as yandex_dot_cloud_dot_operation_dot_operation__pb2 |
@@ -77,6 +78,21 @@ def __init__(self, channel): |
77 | 78 | request_serializer=yandex_dot_cloud_dot_airflow_dot_v1_dot_cluster__service__pb2.ListClusterOperationsRequest.SerializeToString, |
78 | 79 | response_deserializer=yandex_dot_cloud_dot_airflow_dot_v1_dot_cluster__service__pb2.ListClusterOperationsResponse.FromString, |
79 | 80 | _registered_method=True) |
| 81 | + self.ListAccessBindings = channel.unary_unary( |
| 82 | + '/yandex.cloud.airflow.v1.ClusterService/ListAccessBindings', |
| 83 | + request_serializer=yandex_dot_cloud_dot_access_dot_access__pb2.ListAccessBindingsRequest.SerializeToString, |
| 84 | + response_deserializer=yandex_dot_cloud_dot_access_dot_access__pb2.ListAccessBindingsResponse.FromString, |
| 85 | + _registered_method=True) |
| 86 | + self.SetAccessBindings = channel.unary_unary( |
| 87 | + '/yandex.cloud.airflow.v1.ClusterService/SetAccessBindings', |
| 88 | + request_serializer=yandex_dot_cloud_dot_access_dot_access__pb2.SetAccessBindingsRequest.SerializeToString, |
| 89 | + response_deserializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString, |
| 90 | + _registered_method=True) |
| 91 | + self.UpdateAccessBindings = channel.unary_unary( |
| 92 | + '/yandex.cloud.airflow.v1.ClusterService/UpdateAccessBindings', |
| 93 | + request_serializer=yandex_dot_cloud_dot_access_dot_access__pb2.UpdateAccessBindingsRequest.SerializeToString, |
| 94 | + response_deserializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString, |
| 95 | + _registered_method=True) |
80 | 96 |
|
81 | 97 |
|
82 | 98 | class ClusterServiceServicer(object): |
@@ -139,6 +155,27 @@ def ListOperations(self, request, context): |
139 | 155 | context.set_details('Method not implemented!') |
140 | 156 | raise NotImplementedError('Method not implemented!') |
141 | 157 |
|
| 158 | + def ListAccessBindings(self, request, context): |
| 159 | + """Retrieves a list of access bindings for the specified Apache Airflow cluster. |
| 160 | + """ |
| 161 | + context.set_code(grpc.StatusCode.UNIMPLEMENTED) |
| 162 | + context.set_details('Method not implemented!') |
| 163 | + raise NotImplementedError('Method not implemented!') |
| 164 | + |
| 165 | + def SetAccessBindings(self, request, context): |
| 166 | + """Sets access bindings for the specified Apache Airflow cluster. |
| 167 | + """ |
| 168 | + context.set_code(grpc.StatusCode.UNIMPLEMENTED) |
| 169 | + context.set_details('Method not implemented!') |
| 170 | + raise NotImplementedError('Method not implemented!') |
| 171 | + |
| 172 | + def UpdateAccessBindings(self, request, context): |
| 173 | + """Updates access bindings for the specified Apache Airflow cluster. |
| 174 | + """ |
| 175 | + context.set_code(grpc.StatusCode.UNIMPLEMENTED) |
| 176 | + context.set_details('Method not implemented!') |
| 177 | + raise NotImplementedError('Method not implemented!') |
| 178 | + |
142 | 179 |
|
143 | 180 | def add_ClusterServiceServicer_to_server(servicer, server): |
144 | 181 | rpc_method_handlers = { |
@@ -182,6 +219,21 @@ def add_ClusterServiceServicer_to_server(servicer, server): |
182 | 219 | request_deserializer=yandex_dot_cloud_dot_airflow_dot_v1_dot_cluster__service__pb2.ListClusterOperationsRequest.FromString, |
183 | 220 | response_serializer=yandex_dot_cloud_dot_airflow_dot_v1_dot_cluster__service__pb2.ListClusterOperationsResponse.SerializeToString, |
184 | 221 | ), |
| 222 | + 'ListAccessBindings': grpc.unary_unary_rpc_method_handler( |
| 223 | + servicer.ListAccessBindings, |
| 224 | + request_deserializer=yandex_dot_cloud_dot_access_dot_access__pb2.ListAccessBindingsRequest.FromString, |
| 225 | + response_serializer=yandex_dot_cloud_dot_access_dot_access__pb2.ListAccessBindingsResponse.SerializeToString, |
| 226 | + ), |
| 227 | + 'SetAccessBindings': grpc.unary_unary_rpc_method_handler( |
| 228 | + servicer.SetAccessBindings, |
| 229 | + request_deserializer=yandex_dot_cloud_dot_access_dot_access__pb2.SetAccessBindingsRequest.FromString, |
| 230 | + response_serializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.SerializeToString, |
| 231 | + ), |
| 232 | + 'UpdateAccessBindings': grpc.unary_unary_rpc_method_handler( |
| 233 | + servicer.UpdateAccessBindings, |
| 234 | + request_deserializer=yandex_dot_cloud_dot_access_dot_access__pb2.UpdateAccessBindingsRequest.FromString, |
| 235 | + response_serializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.SerializeToString, |
| 236 | + ), |
185 | 237 | } |
186 | 238 | generic_handler = grpc.method_handlers_generic_handler( |
187 | 239 | 'yandex.cloud.airflow.v1.ClusterService', rpc_method_handlers) |
@@ -409,3 +461,84 @@ def ListOperations(request, |
409 | 461 | timeout, |
410 | 462 | metadata, |
411 | 463 | _registered_method=True) |
| 464 | + |
| 465 | + @staticmethod |
| 466 | + def ListAccessBindings(request, |
| 467 | + target, |
| 468 | + options=(), |
| 469 | + channel_credentials=None, |
| 470 | + call_credentials=None, |
| 471 | + insecure=False, |
| 472 | + compression=None, |
| 473 | + wait_for_ready=None, |
| 474 | + timeout=None, |
| 475 | + metadata=None): |
| 476 | + return grpc.experimental.unary_unary( |
| 477 | + request, |
| 478 | + target, |
| 479 | + '/yandex.cloud.airflow.v1.ClusterService/ListAccessBindings', |
| 480 | + yandex_dot_cloud_dot_access_dot_access__pb2.ListAccessBindingsRequest.SerializeToString, |
| 481 | + yandex_dot_cloud_dot_access_dot_access__pb2.ListAccessBindingsResponse.FromString, |
| 482 | + options, |
| 483 | + channel_credentials, |
| 484 | + insecure, |
| 485 | + call_credentials, |
| 486 | + compression, |
| 487 | + wait_for_ready, |
| 488 | + timeout, |
| 489 | + metadata, |
| 490 | + _registered_method=True) |
| 491 | + |
| 492 | + @staticmethod |
| 493 | + def SetAccessBindings(request, |
| 494 | + target, |
| 495 | + options=(), |
| 496 | + channel_credentials=None, |
| 497 | + call_credentials=None, |
| 498 | + insecure=False, |
| 499 | + compression=None, |
| 500 | + wait_for_ready=None, |
| 501 | + timeout=None, |
| 502 | + metadata=None): |
| 503 | + return grpc.experimental.unary_unary( |
| 504 | + request, |
| 505 | + target, |
| 506 | + '/yandex.cloud.airflow.v1.ClusterService/SetAccessBindings', |
| 507 | + yandex_dot_cloud_dot_access_dot_access__pb2.SetAccessBindingsRequest.SerializeToString, |
| 508 | + yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString, |
| 509 | + options, |
| 510 | + channel_credentials, |
| 511 | + insecure, |
| 512 | + call_credentials, |
| 513 | + compression, |
| 514 | + wait_for_ready, |
| 515 | + timeout, |
| 516 | + metadata, |
| 517 | + _registered_method=True) |
| 518 | + |
| 519 | + @staticmethod |
| 520 | + def UpdateAccessBindings(request, |
| 521 | + target, |
| 522 | + options=(), |
| 523 | + channel_credentials=None, |
| 524 | + call_credentials=None, |
| 525 | + insecure=False, |
| 526 | + compression=None, |
| 527 | + wait_for_ready=None, |
| 528 | + timeout=None, |
| 529 | + metadata=None): |
| 530 | + return grpc.experimental.unary_unary( |
| 531 | + request, |
| 532 | + target, |
| 533 | + '/yandex.cloud.airflow.v1.ClusterService/UpdateAccessBindings', |
| 534 | + yandex_dot_cloud_dot_access_dot_access__pb2.UpdateAccessBindingsRequest.SerializeToString, |
| 535 | + yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString, |
| 536 | + options, |
| 537 | + channel_credentials, |
| 538 | + insecure, |
| 539 | + call_credentials, |
| 540 | + compression, |
| 541 | + wait_for_ready, |
| 542 | + timeout, |
| 543 | + metadata, |
| 544 | + _registered_method=True) |
0 commit comments