1 # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2 """Client and server classes corresponding to protobuf-defined services."""
5 import proto.BluePrintManagement_pb2 as BluePrintManagement__pb2
8 class BluePrintManagementServiceStub(object):
9 """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."""
42 def downloadBlueprint(self, request, context):
43 """Missing associated documentation comment in .proto file."""
44 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
45 context.set_details('Method not implemented!')
46 raise NotImplementedError('Method not implemented!')
48 def uploadBlueprint(self, request, context):
49 """Missing associated documentation comment in .proto file."""
50 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
51 context.set_details('Method not implemented!')
52 raise NotImplementedError('Method not implemented!')
54 def removeBlueprint(self, request, context):
55 """Missing associated documentation comment in .proto file."""
56 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
57 context.set_details('Method not implemented!')
58 raise NotImplementedError('Method not implemented!')
60 def bootstrapBlueprint(self, request, context):
61 """Missing associated documentation comment in .proto file."""
62 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
63 context.set_details('Method not implemented!')
64 raise NotImplementedError('Method not implemented!')
67 def add_BluePrintManagementServiceServicer_to_server(servicer, server):
68 rpc_method_handlers = {
69 'downloadBlueprint': grpc.unary_unary_rpc_method_handler(
70 servicer.downloadBlueprint,
71 request_deserializer=BluePrintManagement__pb2.BluePrintDownloadInput.FromString,
72 response_serializer=BluePrintManagement__pb2.BluePrintManagementOutput.SerializeToString,
74 'uploadBlueprint': grpc.unary_unary_rpc_method_handler(
75 servicer.uploadBlueprint,
76 request_deserializer=BluePrintManagement__pb2.BluePrintUploadInput.FromString,
77 response_serializer=BluePrintManagement__pb2.BluePrintManagementOutput.SerializeToString,
79 'removeBlueprint': grpc.unary_unary_rpc_method_handler(
80 servicer.removeBlueprint,
81 request_deserializer=BluePrintManagement__pb2.BluePrintRemoveInput.FromString,
82 response_serializer=BluePrintManagement__pb2.BluePrintManagementOutput.SerializeToString,
84 'bootstrapBlueprint': grpc.unary_unary_rpc_method_handler(
85 servicer.bootstrapBlueprint,
86 request_deserializer=BluePrintManagement__pb2.BluePrintBootstrapInput.FromString,
87 response_serializer=BluePrintManagement__pb2.BluePrintManagementOutput.SerializeToString,
90 generic_handler = grpc.method_handlers_generic_handler(
91 'org.onap.ccsdk.cds.controllerblueprints.management.api.BluePrintManagementService', rpc_method_handlers)
92 server.add_generic_rpc_handlers((generic_handler,))
95 # This class is part of an EXPERIMENTAL API.
96 class BluePrintManagementService(object):
97 """Missing associated documentation comment in .proto file."""
100 def downloadBlueprint(request,
103 channel_credentials=None,
104 call_credentials=None,
110 return grpc.experimental.unary_unary(request, target, '/org.onap.ccsdk.cds.controllerblueprints.management.api.BluePrintManagementService/downloadBlueprint',
111 BluePrintManagement__pb2.BluePrintDownloadInput.SerializeToString,
112 BluePrintManagement__pb2.BluePrintManagementOutput.FromString,
113 options, channel_credentials,
114 insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
117 def uploadBlueprint(request,
120 channel_credentials=None,
121 call_credentials=None,
127 return grpc.experimental.unary_unary(request, target, '/org.onap.ccsdk.cds.controllerblueprints.management.api.BluePrintManagementService/uploadBlueprint',
128 BluePrintManagement__pb2.BluePrintUploadInput.SerializeToString,
129 BluePrintManagement__pb2.BluePrintManagementOutput.FromString,
130 options, channel_credentials,
131 insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
134 def removeBlueprint(request,
137 channel_credentials=None,
138 call_credentials=None,
144 return grpc.experimental.unary_unary(request, target, '/org.onap.ccsdk.cds.controllerblueprints.management.api.BluePrintManagementService/removeBlueprint',
145 BluePrintManagement__pb2.BluePrintRemoveInput.SerializeToString,
146 BluePrintManagement__pb2.BluePrintManagementOutput.FromString,
147 options, channel_credentials,
148 insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
151 def bootstrapBlueprint(request,
154 channel_credentials=None,
155 call_credentials=None,
161 return grpc.experimental.unary_unary(request, target, '/org.onap.ccsdk.cds.controllerblueprints.management.api.BluePrintManagementService/bootstrapBlueprint',
162 BluePrintManagement__pb2.BluePrintBootstrapInput.SerializeToString,
163 BluePrintManagement__pb2.BluePrintManagementOutput.FromString,
164 options, channel_credentials,
165 insecure, call_credentials, compression, wait_for_ready, timeout, metadata)