1 # Copyright © 2018-2019 AT&T Intellectual Property.
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
15 # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
18 from proto import BluePrintManagement_pb2 as BluePrintManagement__pb2
21 class BluePrintManagementServiceStub(object):
22 # missing associated documentation comment in .proto file
25 def __init__(self, channel):
29 channel: A grpc.Channel.
31 self.downloadBlueprint = channel.unary_unary(
32 '/org.onap.ccsdk.cds.controllerblueprints.management.api.BluePrintManagementService/downloadBlueprint',
33 request_serializer=BluePrintManagement__pb2.BluePrintDownloadInput.SerializeToString,
34 response_deserializer=BluePrintManagement__pb2.BluePrintManagementOutput.FromString,
36 self.uploadBlueprint = channel.unary_unary(
37 '/org.onap.ccsdk.cds.controllerblueprints.management.api.BluePrintManagementService/uploadBlueprint',
38 request_serializer=BluePrintManagement__pb2.BluePrintUploadInput.SerializeToString,
39 response_deserializer=BluePrintManagement__pb2.BluePrintManagementOutput.FromString,
41 self.removeBlueprint = channel.unary_unary(
42 '/org.onap.ccsdk.cds.controllerblueprints.management.api.BluePrintManagementService/removeBlueprint',
43 request_serializer=BluePrintManagement__pb2.BluePrintRemoveInput.SerializeToString,
44 response_deserializer=BluePrintManagement__pb2.BluePrintManagementOutput.FromString,
46 self.bootstrapBlueprint = channel.unary_unary(
47 '/org.onap.ccsdk.cds.controllerblueprints.management.api.BluePrintManagementService/bootstrapBlueprint',
48 request_serializer=BluePrintManagement__pb2.BluePrintBootstrapInput.SerializeToString,
49 response_deserializer=BluePrintManagement__pb2.BluePrintManagementOutput.FromString,
53 class BluePrintManagementServiceServicer(object):
54 # missing associated documentation comment in .proto file
57 def downloadBlueprint(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 uploadBlueprint(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!')
71 def removeBlueprint(self, request, context):
72 # missing associated documentation comment in .proto file
74 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
75 context.set_details('Method not implemented!')
76 raise NotImplementedError('Method not implemented!')
78 def bootstrapBlueprint(self, request, context):
79 # missing associated documentation comment in .proto file
81 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
82 context.set_details('Method not implemented!')
83 raise NotImplementedError('Method not implemented!')
86 def add_BluePrintManagementServiceServicer_to_server(servicer, server):
87 rpc_method_handlers = {
88 'downloadBlueprint': grpc.unary_unary_rpc_method_handler(
89 servicer.downloadBlueprint,
90 request_deserializer=BluePrintManagement__pb2.BluePrintDownloadInput.FromString,
91 response_serializer=BluePrintManagement__pb2.BluePrintManagementOutput.SerializeToString,
93 'uploadBlueprint': grpc.unary_unary_rpc_method_handler(
94 servicer.uploadBlueprint,
95 request_deserializer=BluePrintManagement__pb2.BluePrintUploadInput.FromString,
96 response_serializer=BluePrintManagement__pb2.BluePrintManagementOutput.SerializeToString,
98 'removeBlueprint': grpc.unary_unary_rpc_method_handler(
99 servicer.removeBlueprint,
100 request_deserializer=BluePrintManagement__pb2.BluePrintRemoveInput.FromString,
101 response_serializer=BluePrintManagement__pb2.BluePrintManagementOutput.SerializeToString,
103 'bootstrapBlueprint': grpc.unary_unary_rpc_method_handler(
104 servicer.bootstrapBlueprint,
105 request_deserializer=BluePrintManagement__pb2.BluePrintBootstrapInput.FromString,
106 response_serializer=BluePrintManagement__pb2.BluePrintManagementOutput.SerializeToString,
109 generic_handler = grpc.method_handlers_generic_handler(
110 'org.onap.ccsdk.cds.controllerblueprints.management.api.BluePrintManagementService', rpc_method_handlers)
111 server.add_generic_rpc_handlers((generic_handler,))