Fixing Blueprint Typo's and docs
[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,))