blob: 0e92c7ecaf2d3bd22fc10201715e65f5beade32f [file] [log] [blame]
Jozsef Csongvaidaab14b2021-07-26 12:00:59 -04001# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2"""Client and server classes corresponding to protobuf-defined services."""
3import grpc
4
5import proto.BluePrintManagement_pb2 as BluePrintManagement__pb2
6
7
8class BluePrintManagementServiceStub(object):
9 """Missing associated documentation comment in .proto file."""
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
39class BluePrintManagementServiceServicer(object):
40 """Missing associated documentation comment in .proto file."""
41
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!')
47
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!')
53
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!')
59
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!')
65
66
67def 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,
73 ),
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,
78 ),
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,
83 ),
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,
88 ),
89 }
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,))
93
94
95# This class is part of an EXPERIMENTAL API.
96class BluePrintManagementService(object):
97 """Missing associated documentation comment in .proto file."""
98
99 @staticmethod
100 def downloadBlueprint(request,
101 target,
102 options=(),
103 channel_credentials=None,
104 call_credentials=None,
105 insecure=False,
106 compression=None,
107 wait_for_ready=None,
108 timeout=None,
109 metadata=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)
115
116 @staticmethod
117 def uploadBlueprint(request,
118 target,
119 options=(),
120 channel_credentials=None,
121 call_credentials=None,
122 insecure=False,
123 compression=None,
124 wait_for_ready=None,
125 timeout=None,
126 metadata=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)
132
133 @staticmethod
134 def removeBlueprint(request,
135 target,
136 options=(),
137 channel_credentials=None,
138 call_credentials=None,
139 insecure=False,
140 compression=None,
141 wait_for_ready=None,
142 timeout=None,
143 metadata=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)
149
150 @staticmethod
151 def bootstrapBlueprint(request,
152 target,
153 options=(),
154 channel_credentials=None,
155 call_credentials=None,
156 insecure=False,
157 compression=None,
158 wait_for_ready=None,
159 timeout=None,
160 metadata=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)