blob: 055acd762bc95b362f603e9592dd9ba9f978c700 [file] [log] [blame]
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc
from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
from resource import ResourceService_pb2 as resource_dot_ResourceService__pb2
class GenericResourceServiceStub(object):
"""Missing associated documentation comment in .proto file."""
def __init__(self, channel):
"""Constructor.
Args:
channel: A grpc.Channel.
"""
self.getGenericResource = channel.unary_unary(
'/org.apache.airavata.mft.resource.stubs.common.GenericResourceService/getGenericResource',
request_serializer=resource_dot_ResourceService__pb2.GenericResourceGetRequest.SerializeToString,
response_deserializer=resource_dot_ResourceService__pb2.GenericResource.FromString,
)
self.createGenericResource = channel.unary_unary(
'/org.apache.airavata.mft.resource.stubs.common.GenericResourceService/createGenericResource',
request_serializer=resource_dot_ResourceService__pb2.GenericResourceCreateRequest.SerializeToString,
response_deserializer=resource_dot_ResourceService__pb2.GenericResource.FromString,
)
self.updateGenericResource = channel.unary_unary(
'/org.apache.airavata.mft.resource.stubs.common.GenericResourceService/updateGenericResource',
request_serializer=resource_dot_ResourceService__pb2.GenericResourceUpdateRequest.SerializeToString,
response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
)
self.deleteGenericResource = channel.unary_unary(
'/org.apache.airavata.mft.resource.stubs.common.GenericResourceService/deleteGenericResource',
request_serializer=resource_dot_ResourceService__pb2.GenericResourceDeleteRequest.SerializeToString,
response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
)
class GenericResourceServiceServicer(object):
"""Missing associated documentation comment in .proto file."""
def getGenericResource(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 createGenericResource(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 updateGenericResource(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 deleteGenericResource(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_GenericResourceServiceServicer_to_server(servicer, server):
rpc_method_handlers = {
'getGenericResource': grpc.unary_unary_rpc_method_handler(
servicer.getGenericResource,
request_deserializer=resource_dot_ResourceService__pb2.GenericResourceGetRequest.FromString,
response_serializer=resource_dot_ResourceService__pb2.GenericResource.SerializeToString,
),
'createGenericResource': grpc.unary_unary_rpc_method_handler(
servicer.createGenericResource,
request_deserializer=resource_dot_ResourceService__pb2.GenericResourceCreateRequest.FromString,
response_serializer=resource_dot_ResourceService__pb2.GenericResource.SerializeToString,
),
'updateGenericResource': grpc.unary_unary_rpc_method_handler(
servicer.updateGenericResource,
request_deserializer=resource_dot_ResourceService__pb2.GenericResourceUpdateRequest.FromString,
response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
),
'deleteGenericResource': grpc.unary_unary_rpc_method_handler(
servicer.deleteGenericResource,
request_deserializer=resource_dot_ResourceService__pb2.GenericResourceDeleteRequest.FromString,
response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
),
}
generic_handler = grpc.method_handlers_generic_handler(
'org.apache.airavata.mft.resource.stubs.common.GenericResourceService', rpc_method_handlers)
server.add_generic_rpc_handlers((generic_handler,))
# This class is part of an EXPERIMENTAL API.
class GenericResourceService(object):
"""Missing associated documentation comment in .proto file."""
@staticmethod
def getGenericResource(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.stubs.common.GenericResourceService/getGenericResource',
resource_dot_ResourceService__pb2.GenericResourceGetRequest.SerializeToString,
resource_dot_ResourceService__pb2.GenericResource.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def createGenericResource(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.stubs.common.GenericResourceService/createGenericResource',
resource_dot_ResourceService__pb2.GenericResourceCreateRequest.SerializeToString,
resource_dot_ResourceService__pb2.GenericResource.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def updateGenericResource(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.stubs.common.GenericResourceService/updateGenericResource',
resource_dot_ResourceService__pb2.GenericResourceUpdateRequest.SerializeToString,
google_dot_protobuf_dot_empty__pb2.Empty.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def deleteGenericResource(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.stubs.common.GenericResourceService/deleteGenericResource',
resource_dot_ResourceService__pb2.GenericResourceDeleteRequest.SerializeToString,
google_dot_protobuf_dot_empty__pb2.Empty.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)