Removed redundant timeout handling for executeCommand
[ccsdk/cds.git] / py-modules / common / proto / BlueprintManagement_pb2_grpc.py
1 # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2 import grpc
3
4 import proto.BlueprintManagement_pb2 as BlueprintManagement__pb2
5
6
7 class BlueprintManagementServiceStub(object):
8   # missing associated documentation comment in .proto file
9   pass
10
11   def __init__(self, channel):
12     """Constructor.
13
14     Args:
15       channel: A grpc.Channel.
16     """
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,
21         )
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,
26         )
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,
31         )
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,
36         )
37
38
39 class BlueprintManagementServiceServicer(object):
40   # missing associated documentation comment in .proto file
41   pass
42
43   def downloadBlueprint(self, request, context):
44     # missing associated documentation comment in .proto file
45     pass
46     context.set_code(grpc.StatusCode.UNIMPLEMENTED)
47     context.set_details('Method not implemented!')
48     raise NotImplementedError('Method not implemented!')
49
50   def uploadBlueprint(self, request, context):
51     # missing associated documentation comment in .proto file
52     pass
53     context.set_code(grpc.StatusCode.UNIMPLEMENTED)
54     context.set_details('Method not implemented!')
55     raise NotImplementedError('Method not implemented!')
56
57   def removeBlueprint(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 bootstrapBlueprint(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
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,
78       ),
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,
83       ),
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,
88       ),
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,
93       ),
94   }
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,))