| # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! |
| """Client and server classes corresponding to protobuf-defined services.""" |
| import grpc |
| |
| from airavata_mft_sdk.swift import SwiftStorage_pb2 as swift_dot_SwiftStorage__pb2 |
| |
| |
| class SwiftStorageServiceStub(object): |
| """Missing associated documentation comment in .proto file.""" |
| |
| def __init__(self, channel): |
| """Constructor. |
| |
| Args: |
| channel: A grpc.Channel. |
| """ |
| self.listSwiftStorage = channel.unary_unary( |
| '/org.apache.airavata.mft.resource.service.swift.SwiftStorageService/listSwiftStorage', |
| request_serializer=swift_dot_SwiftStorage__pb2.SwiftStorageListRequest.SerializeToString, |
| response_deserializer=swift_dot_SwiftStorage__pb2.SwiftStorageListResponse.FromString, |
| ) |
| self.getSwiftStorage = channel.unary_unary( |
| '/org.apache.airavata.mft.resource.service.swift.SwiftStorageService/getSwiftStorage', |
| request_serializer=swift_dot_SwiftStorage__pb2.SwiftStorageGetRequest.SerializeToString, |
| response_deserializer=swift_dot_SwiftStorage__pb2.SwiftStorage.FromString, |
| ) |
| self.createSwiftStorage = channel.unary_unary( |
| '/org.apache.airavata.mft.resource.service.swift.SwiftStorageService/createSwiftStorage', |
| request_serializer=swift_dot_SwiftStorage__pb2.SwiftStorageCreateRequest.SerializeToString, |
| response_deserializer=swift_dot_SwiftStorage__pb2.SwiftStorage.FromString, |
| ) |
| self.updateSwiftStorage = channel.unary_unary( |
| '/org.apache.airavata.mft.resource.service.swift.SwiftStorageService/updateSwiftStorage', |
| request_serializer=swift_dot_SwiftStorage__pb2.SwiftStorageUpdateRequest.SerializeToString, |
| response_deserializer=swift_dot_SwiftStorage__pb2.SwiftStorageUpdateResponse.FromString, |
| ) |
| self.deleteSwiftStorage = channel.unary_unary( |
| '/org.apache.airavata.mft.resource.service.swift.SwiftStorageService/deleteSwiftStorage', |
| request_serializer=swift_dot_SwiftStorage__pb2.SwiftStorageDeleteRequest.SerializeToString, |
| response_deserializer=swift_dot_SwiftStorage__pb2.SwiftStorageDeleteResponse.FromString, |
| ) |
| |
| |
| class SwiftStorageServiceServicer(object): |
| """Missing associated documentation comment in .proto file.""" |
| |
| def listSwiftStorage(self, request, context): |
| """Storage |
| |
| """ |
| context.set_code(grpc.StatusCode.UNIMPLEMENTED) |
| context.set_details('Method not implemented!') |
| raise NotImplementedError('Method not implemented!') |
| |
| def getSwiftStorage(self, request, context): |
| """Missing associated documentation comment in .proto file.""" |
| context.set_code(grpc.StatusCode.UNIMPLEMENTED) |
| context.set_details('Method not implemented!') |
| raise NotImplementedError('Method not implemented!') |
| |
| def createSwiftStorage(self, request, context): |
| """Missing associated documentation comment in .proto file.""" |
| context.set_code(grpc.StatusCode.UNIMPLEMENTED) |
| context.set_details('Method not implemented!') |
| raise NotImplementedError('Method not implemented!') |
| |
| def updateSwiftStorage(self, request, context): |
| """Missing associated documentation comment in .proto file.""" |
| context.set_code(grpc.StatusCode.UNIMPLEMENTED) |
| context.set_details('Method not implemented!') |
| raise NotImplementedError('Method not implemented!') |
| |
| def deleteSwiftStorage(self, request, context): |
| """Missing associated documentation comment in .proto file.""" |
| context.set_code(grpc.StatusCode.UNIMPLEMENTED) |
| context.set_details('Method not implemented!') |
| raise NotImplementedError('Method not implemented!') |
| |
| |
| def add_SwiftStorageServiceServicer_to_server(servicer, server): |
| rpc_method_handlers = { |
| 'listSwiftStorage': grpc.unary_unary_rpc_method_handler( |
| servicer.listSwiftStorage, |
| request_deserializer=swift_dot_SwiftStorage__pb2.SwiftStorageListRequest.FromString, |
| response_serializer=swift_dot_SwiftStorage__pb2.SwiftStorageListResponse.SerializeToString, |
| ), |
| 'getSwiftStorage': grpc.unary_unary_rpc_method_handler( |
| servicer.getSwiftStorage, |
| request_deserializer=swift_dot_SwiftStorage__pb2.SwiftStorageGetRequest.FromString, |
| response_serializer=swift_dot_SwiftStorage__pb2.SwiftStorage.SerializeToString, |
| ), |
| 'createSwiftStorage': grpc.unary_unary_rpc_method_handler( |
| servicer.createSwiftStorage, |
| request_deserializer=swift_dot_SwiftStorage__pb2.SwiftStorageCreateRequest.FromString, |
| response_serializer=swift_dot_SwiftStorage__pb2.SwiftStorage.SerializeToString, |
| ), |
| 'updateSwiftStorage': grpc.unary_unary_rpc_method_handler( |
| servicer.updateSwiftStorage, |
| request_deserializer=swift_dot_SwiftStorage__pb2.SwiftStorageUpdateRequest.FromString, |
| response_serializer=swift_dot_SwiftStorage__pb2.SwiftStorageUpdateResponse.SerializeToString, |
| ), |
| 'deleteSwiftStorage': grpc.unary_unary_rpc_method_handler( |
| servicer.deleteSwiftStorage, |
| request_deserializer=swift_dot_SwiftStorage__pb2.SwiftStorageDeleteRequest.FromString, |
| response_serializer=swift_dot_SwiftStorage__pb2.SwiftStorageDeleteResponse.SerializeToString, |
| ), |
| } |
| generic_handler = grpc.method_handlers_generic_handler( |
| 'org.apache.airavata.mft.resource.service.swift.SwiftStorageService', rpc_method_handlers) |
| server.add_generic_rpc_handlers((generic_handler,)) |
| |
| |
| # This class is part of an EXPERIMENTAL API. |
| class SwiftStorageService(object): |
| """Missing associated documentation comment in .proto file.""" |
| |
| @staticmethod |
| def listSwiftStorage(request, |
| target, |
| options=(), |
| channel_credentials=None, |
| call_credentials=None, |
| insecure=False, |
| compression=None, |
| wait_for_ready=None, |
| timeout=None, |
| metadata=None): |
| return grpc.experimental.unary_unary(request, target, '/org.apache.airavata.mft.resource.service.swift.SwiftStorageService/listSwiftStorage', |
| swift_dot_SwiftStorage__pb2.SwiftStorageListRequest.SerializeToString, |
| swift_dot_SwiftStorage__pb2.SwiftStorageListResponse.FromString, |
| options, channel_credentials, |
| insecure, call_credentials, compression, wait_for_ready, timeout, metadata) |
| |
| @staticmethod |
| def getSwiftStorage(request, |
| target, |
| options=(), |
| channel_credentials=None, |
| call_credentials=None, |
| insecure=False, |
| compression=None, |
| wait_for_ready=None, |
| timeout=None, |
| metadata=None): |
| return grpc.experimental.unary_unary(request, target, '/org.apache.airavata.mft.resource.service.swift.SwiftStorageService/getSwiftStorage', |
| swift_dot_SwiftStorage__pb2.SwiftStorageGetRequest.SerializeToString, |
| swift_dot_SwiftStorage__pb2.SwiftStorage.FromString, |
| options, channel_credentials, |
| insecure, call_credentials, compression, wait_for_ready, timeout, metadata) |
| |
| @staticmethod |
| def createSwiftStorage(request, |
| target, |
| options=(), |
| channel_credentials=None, |
| call_credentials=None, |
| insecure=False, |
| compression=None, |
| wait_for_ready=None, |
| timeout=None, |
| metadata=None): |
| return grpc.experimental.unary_unary(request, target, '/org.apache.airavata.mft.resource.service.swift.SwiftStorageService/createSwiftStorage', |
| swift_dot_SwiftStorage__pb2.SwiftStorageCreateRequest.SerializeToString, |
| swift_dot_SwiftStorage__pb2.SwiftStorage.FromString, |
| options, channel_credentials, |
| insecure, call_credentials, compression, wait_for_ready, timeout, metadata) |
| |
| @staticmethod |
| def updateSwiftStorage(request, |
| target, |
| options=(), |
| channel_credentials=None, |
| call_credentials=None, |
| insecure=False, |
| compression=None, |
| wait_for_ready=None, |
| timeout=None, |
| metadata=None): |
| return grpc.experimental.unary_unary(request, target, '/org.apache.airavata.mft.resource.service.swift.SwiftStorageService/updateSwiftStorage', |
| swift_dot_SwiftStorage__pb2.SwiftStorageUpdateRequest.SerializeToString, |
| swift_dot_SwiftStorage__pb2.SwiftStorageUpdateResponse.FromString, |
| options, channel_credentials, |
| insecure, call_credentials, compression, wait_for_ready, timeout, metadata) |
| |
| @staticmethod |
| def deleteSwiftStorage(request, |
| target, |
| options=(), |
| channel_credentials=None, |
| call_credentials=None, |
| insecure=False, |
| compression=None, |
| wait_for_ready=None, |
| timeout=None, |
| metadata=None): |
| return grpc.experimental.unary_unary(request, target, '/org.apache.airavata.mft.resource.service.swift.SwiftStorageService/deleteSwiftStorage', |
| swift_dot_SwiftStorage__pb2.SwiftStorageDeleteRequest.SerializeToString, |
| swift_dot_SwiftStorage__pb2.SwiftStorageDeleteResponse.FromString, |
| options, channel_credentials, |
| insecure, call_credentials, compression, wait_for_ready, timeout, metadata) |