Merge "Use released version 1.5.1 of CCSDK parent poms"
[ccsdk/cds.git] / py-modules / common / proto / BluePrintManagement_pb2_grpc.py
1 #  Copyright © 2018-2019 AT&T Intellectual Property.
2 #
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
6 #
7 #      http://www.apache.org/licenses/LICENSE-2.0
8 #
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.
14
15 # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
16 import grpc
17
18 from proto import BluePrintManagement_pb2 as BluePrintManagement__pb2
19
20
21 class BluePrintManagementServiceStub(object):
22   # missing associated documentation comment in .proto file
23   pass
24
25   def __init__(self, channel):
26     """Constructor.
27
28     Args:
29       channel: A grpc.Channel.
30     """
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,
35         )
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,
40         )
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,
45         )
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,
50         )
51
52
53 class BluePrintManagementServiceServicer(object):
54   # missing associated documentation comment in .proto file
55   pass
56
57   def downloadBlueprint(self, request, context):
58     # missing associated documentation comment in .proto file
59     pass
60     context.set_code(grpc.StatusCode.UNIMPLEMENTED)
61     context.set_details('Method not implemented!')
62     raise NotImplementedError('Method not implemented!')
63
64   def uploadBlueprint(self, request, context):
65     # missing associated documentation comment in .proto file
66     pass
67     context.set_code(grpc.StatusCode.UNIMPLEMENTED)
68     context.set_details('Method not implemented!')
69     raise NotImplementedError('Method not implemented!')
70
71   def removeBlueprint(self, request, context):
72     # missing associated documentation comment in .proto file
73     pass
74     context.set_code(grpc.StatusCode.UNIMPLEMENTED)
75     context.set_details('Method not implemented!')
76     raise NotImplementedError('Method not implemented!')
77
78   def bootstrapBlueprint(self, request, context):
79     # missing associated documentation comment in .proto file
80     pass
81     context.set_code(grpc.StatusCode.UNIMPLEMENTED)
82     context.set_details('Method not implemented!')
83     raise NotImplementedError('Method not implemented!')
84
85
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,
92       ),
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,
97       ),
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,
102       ),
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,
107       ),
108   }
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,))