1 # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
4 import proto.BlueprintManagement_pb2 as BlueprintManagement__pb2
7 class BlueprintManagementServiceStub(object):
8 # missing associated documentation comment in .proto file
11 def __init__(self, channel):
15 channel: A grpc.Channel.
17 self.downloadBlueprint = channel.unary_unary(
18 '/org.onap.ccsdk.cds.controllerblueprints.management.api.BlueprintManagementService/downloadBlueprint',
19 request_serializer=BlueprintManagement__pb2.BlueprintDownloadInput.SerializeToString,
20 response_deserializer=BlueprintManagement__pb2.BlueprintManagementOutput.FromString,
22 self.uploadBlueprint = channel.unary_unary(
23 '/org.onap.ccsdk.cds.controllerblueprints.management.api.BlueprintManagementService/uploadBlueprint',
24 request_serializer=BlueprintManagement__pb2.BlueprintUploadInput.SerializeToString,
25 response_deserializer=BlueprintManagement__pb2.BlueprintManagementOutput.FromString,
27 self.removeBlueprint = channel.unary_unary(
28 '/org.onap.ccsdk.cds.controllerblueprints.management.api.BlueprintManagementService/removeBlueprint',
29 request_serializer=BlueprintManagement__pb2.BlueprintRemoveInput.SerializeToString,
30 response_deserializer=BlueprintManagement__pb2.BlueprintManagementOutput.FromString,
32 self.bootstrapBlueprint = channel.unary_unary(
33 '/org.onap.ccsdk.cds.controllerblueprints.management.api.BlueprintManagementService/bootstrapBlueprint',
34 request_serializer=BlueprintManagement__pb2.BlueprintBootstrapInput.SerializeToString,
35 response_deserializer=BlueprintManagement__pb2.BlueprintManagementOutput.FromString,
39 class BlueprintManagementServiceServicer(object):
40 # missing associated documentation comment in .proto file
43 def downloadBlueprint(self, request, context):
44 # missing associated documentation comment in .proto file
46 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
47 context.set_details('Method not implemented!')
48 raise NotImplementedError('Method not implemented!')
50 def uploadBlueprint(self, request, context):
51 # missing associated documentation comment in .proto file
53 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
54 context.set_details('Method not implemented!')
55 raise NotImplementedError('Method not implemented!')
57 def removeBlueprint(self, request, context):
58 # missing associated documentation comment in .proto file
60 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
61 context.set_details('Method not implemented!')
62 raise NotImplementedError('Method not implemented!')
64 def bootstrapBlueprint(self, request, context):
65 # missing associated documentation comment in .proto file
67 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
68 context.set_details('Method not implemented!')
69 raise NotImplementedError('Method not implemented!')
72 def add_BlueprintManagementServiceServicer_to_server(servicer, server):
73 rpc_method_handlers = {
74 'downloadBlueprint': grpc.unary_unary_rpc_method_handler(
75 servicer.downloadBlueprint,
76 request_deserializer=BlueprintManagement__pb2.BlueprintDownloadInput.FromString,
77 response_serializer=BlueprintManagement__pb2.BlueprintManagementOutput.SerializeToString,
79 'uploadBlueprint': grpc.unary_unary_rpc_method_handler(
80 servicer.uploadBlueprint,
81 request_deserializer=BlueprintManagement__pb2.BlueprintUploadInput.FromString,
82 response_serializer=BlueprintManagement__pb2.BlueprintManagementOutput.SerializeToString,
84 'removeBlueprint': grpc.unary_unary_rpc_method_handler(
85 servicer.removeBlueprint,
86 request_deserializer=BlueprintManagement__pb2.BlueprintRemoveInput.FromString,
87 response_serializer=BlueprintManagement__pb2.BlueprintManagementOutput.SerializeToString,
89 'bootstrapBlueprint': grpc.unary_unary_rpc_method_handler(
90 servicer.bootstrapBlueprint,
91 request_deserializer=BlueprintManagement__pb2.BlueprintBootstrapInput.FromString,
92 response_serializer=BlueprintManagement__pb2.BlueprintManagementOutput.SerializeToString,
95 generic_handler = grpc.method_handlers_generic_handler(
96 'org.onap.ccsdk.cds.controllerblueprints.management.api.BlueprintManagementService', rpc_method_handlers)
97 server.add_generic_rpc_handlers((generic_handler,))