blob: 3e78fa13426d7fb9aa5387d25192f98f08e6cfc9 [file] [log] [blame]
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +02001# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2"""Client and server classes corresponding to protobuf-defined services."""
3import grpc
4
5from dmi import hw_management_service_pb2 as dmi_dot_hw__management__service__pb2
6from dmi import hw_pb2 as dmi_dot_hw__pb2
Andrea Campanellacb990bc2020-09-22 12:50:56 +02007from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +02008
9
10class NativeHWManagementServiceStub(object):
11 """Missing associated documentation comment in .proto file."""
12
13 def __init__(self, channel):
14 """Constructor.
15
16 Args:
17 channel: A grpc.Channel.
18 """
19 self.StartManagingDevice = channel.unary_stream(
20 '/dmi.NativeHWManagementService/StartManagingDevice',
21 request_serializer=dmi_dot_hw__pb2.ModifiableComponent.SerializeToString,
22 response_deserializer=dmi_dot_hw__management__service__pb2.StartManagingDeviceResponse.FromString,
23 )
24 self.StopManagingDevice = channel.unary_unary(
25 '/dmi.NativeHWManagementService/StopManagingDevice',
26 request_serializer=dmi_dot_hw__management__service__pb2.StopManagingDeviceRequest.SerializeToString,
27 response_deserializer=dmi_dot_hw__management__service__pb2.StopManagingDeviceResponse.FromString,
28 )
Andrea Campanellacb990bc2020-09-22 12:50:56 +020029 self.GetManagedDevices = channel.unary_unary(
30 '/dmi.NativeHWManagementService/GetManagedDevices',
31 request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
32 response_deserializer=dmi_dot_hw__management__service__pb2.ManagedDevicesResponse.FromString,
33 )
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +020034 self.GetPhysicalInventory = channel.unary_stream(
35 '/dmi.NativeHWManagementService/GetPhysicalInventory',
36 request_serializer=dmi_dot_hw__management__service__pb2.PhysicalInventoryRequest.SerializeToString,
37 response_deserializer=dmi_dot_hw__management__service__pb2.PhysicalInventoryResponse.FromString,
38 )
39 self.GetHWComponentInfo = channel.unary_stream(
40 '/dmi.NativeHWManagementService/GetHWComponentInfo',
41 request_serializer=dmi_dot_hw__management__service__pb2.HWComponentInfoGetRequest.SerializeToString,
aghoshc301dcd2020-09-03 16:55:34 +010042 response_deserializer=dmi_dot_hw__management__service__pb2.HWComponentInfoGetResponse.FromString,
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +020043 )
44 self.SetHWComponentInfo = channel.unary_unary(
45 '/dmi.NativeHWManagementService/SetHWComponentInfo',
46 request_serializer=dmi_dot_hw__management__service__pb2.HWComponentInfoSetRequest.SerializeToString,
47 response_deserializer=dmi_dot_hw__management__service__pb2.HWComponentInfoSetResponse.FromString,
48 )
amit.ghosh188a84f2020-09-27 20:59:25 +020049 self.SetLoggingEndpoint = channel.unary_unary(
50 '/dmi.NativeHWManagementService/SetLoggingEndpoint',
51 request_serializer=dmi_dot_hw__management__service__pb2.SetLoggingEndpointRequest.SerializeToString,
52 response_deserializer=dmi_dot_hw__management__service__pb2.SetRemoteEndpointResponse.FromString,
53 )
54 self.GetLoggingEndpoint = channel.unary_unary(
55 '/dmi.NativeHWManagementService/GetLoggingEndpoint',
amit.ghosh5d97dba2020-11-12 16:45:27 +010056 request_serializer=dmi_dot_hw__pb2.HardwareID.SerializeToString,
amit.ghosh188a84f2020-09-27 20:59:25 +020057 response_deserializer=dmi_dot_hw__management__service__pb2.GetLoggingEndpointResponse.FromString,
58 )
59 self.SetMsgBusEndpoint = channel.unary_unary(
60 '/dmi.NativeHWManagementService/SetMsgBusEndpoint',
61 request_serializer=dmi_dot_hw__management__service__pb2.SetMsgBusEndpointRequest.SerializeToString,
62 response_deserializer=dmi_dot_hw__management__service__pb2.SetRemoteEndpointResponse.FromString,
63 )
64 self.GetMsgBusEndpoint = channel.unary_unary(
65 '/dmi.NativeHWManagementService/GetMsgBusEndpoint',
66 request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
67 response_deserializer=dmi_dot_hw__management__service__pb2.GetMsgBusEndpointResponse.FromString,
68 )
Andrea Campanellab91e9a42020-10-09 14:31:43 +020069 self.GetLoggableEntities = channel.unary_unary(
70 '/dmi.NativeHWManagementService/GetLoggableEntities',
71 request_serializer=dmi_dot_hw__management__service__pb2.GetLoggableEntitiesRequest.SerializeToString,
72 response_deserializer=dmi_dot_hw__management__service__pb2.GetLogLevelResponse.FromString,
73 )
74 self.SetLogLevel = channel.unary_unary(
75 '/dmi.NativeHWManagementService/SetLogLevel',
76 request_serializer=dmi_dot_hw__management__service__pb2.SetLogLevelRequest.SerializeToString,
77 response_deserializer=dmi_dot_hw__management__service__pb2.SetLogLevelResponse.FromString,
78 )
79 self.GetLogLevel = channel.unary_unary(
80 '/dmi.NativeHWManagementService/GetLogLevel',
81 request_serializer=dmi_dot_hw__management__service__pb2.GetLogLevelRequest.SerializeToString,
82 response_deserializer=dmi_dot_hw__management__service__pb2.GetLogLevelResponse.FromString,
83 )
Chandrakanth Nalkudre Gowda415b83c2021-04-28 18:01:29 +053084 self.HeartbeatCheck = channel.unary_unary(
85 '/dmi.NativeHWManagementService/HeartbeatCheck',
86 request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
87 response_deserializer=dmi_dot_hw__management__service__pb2.Heartbeat.FromString,
88 )
Chandrakanth Nalkudre Gowda2f6066c2021-05-13 12:36:32 +053089 self.RebootDevice = channel.unary_unary(
90 '/dmi.NativeHWManagementService/RebootDevice',
91 request_serializer=dmi_dot_hw__management__service__pb2.RebootDeviceRequest.SerializeToString,
92 response_deserializer=dmi_dot_hw__management__service__pb2.RebootDeviceResponse.FromString,
93 )
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +020094
95
96class NativeHWManagementServiceServicer(object):
97 """Missing associated documentation comment in .proto file."""
98
99 def StartManagingDevice(self, request, context):
100 """Initializes context for a device and sets up required states
101 In the call to StartManagingDevice, the fields of ModifiableComponent which are relevant
102 and their meanings in this context is mentioned below:
103 name = The unique name that needs to be assigned to this hardware;
104 class = COMPONENT_TYPE_UNDEFINED;
105 parent = nil;
106 alias = Optional;
107 asset_id = Optional;
108 uri = IP Address of the Hardware;
109 """
110 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
111 context.set_details('Method not implemented!')
112 raise NotImplementedError('Method not implemented!')
113
114 def StopManagingDevice(self, request, context):
115 """Stop management of a device and clean up any context and caches for that device
amit.ghoshae473032021-01-10 11:59:10 +0100116 This rpc can be called at any time, even before the StartManagingDevice operation
117 has completed, and should be able to cleanup.
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200118 """
119 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
120 context.set_details('Method not implemented!')
121 raise NotImplementedError('Method not implemented!')
122
Andrea Campanellacb990bc2020-09-22 12:50:56 +0200123 def GetManagedDevices(self, request, context):
124 """Returns an object containing a list of devices managed by this entity
125 """
126 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
127 context.set_details('Method not implemented!')
128 raise NotImplementedError('Method not implemented!')
129
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200130 def GetPhysicalInventory(self, request, context):
131 """Get the HW inventory details of the Device
132 """
133 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
134 context.set_details('Method not implemented!')
135 raise NotImplementedError('Method not implemented!')
136
137 def GetHWComponentInfo(self, request, context):
138 """Get the details of a particular HW component
139 """
140 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
141 context.set_details('Method not implemented!')
142 raise NotImplementedError('Method not implemented!')
143
144 def SetHWComponentInfo(self, request, context):
145 """Sets the permissible attributes of a HW component
146 """
147 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
148 context.set_details('Method not implemented!')
149 raise NotImplementedError('Method not implemented!')
150
amit.ghosh188a84f2020-09-27 20:59:25 +0200151 def SetLoggingEndpoint(self, request, context):
152 """Sets the location to which logs need to be shipped
153 """
154 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
155 context.set_details('Method not implemented!')
156 raise NotImplementedError('Method not implemented!')
157
158 def GetLoggingEndpoint(self, request, context):
159 """Gets the configured location to which the logs are being shipped
160 """
161 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
162 context.set_details('Method not implemented!')
163 raise NotImplementedError('Method not implemented!')
164
165 def SetMsgBusEndpoint(self, request, context):
166 """Sets the location of the Message Bus to which events and metrics are shipped
167 """
168 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
169 context.set_details('Method not implemented!')
170 raise NotImplementedError('Method not implemented!')
171
172 def GetMsgBusEndpoint(self, request, context):
173 """Gets the configured location to which the events and metrics are being shipped
174 """
175 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
176 context.set_details('Method not implemented!')
177 raise NotImplementedError('Method not implemented!')
178
Andrea Campanellab91e9a42020-10-09 14:31:43 +0200179 def GetLoggableEntities(self, request, context):
180 """Gets the entities of a device on which log can be configured. A few are expected, like OS, PON Management etc.
181 In general an entity is any item within an hardware system that can emit logs, e.g. service, process, subsystem,
182 interface, package etc.
183 """
184 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
185 context.set_details('Method not implemented!')
186 raise NotImplementedError('Method not implemented!')
187
188 def SetLogLevel(self, request, context):
amit.ghosh5d97dba2020-11-12 16:45:27 +0100189 """Sets the log level of the device, for each given entity to a certain level.
Andrea Campanellab91e9a42020-10-09 14:31:43 +0200190 If only one EntitiesLogLevel is provided for the device and that request contains only a log level with
191 no entity in the list it's assumed that the caller wants to set that level for all the entities.
192 """
193 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
194 context.set_details('Method not implemented!')
195 raise NotImplementedError('Method not implemented!')
196
197 def GetLogLevel(self, request, context):
198 """Gets the configured log level for a certain entity on a certain device.
199 If no entity is specified in the request all the entities with their log level should be returned.
200 """
201 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
202 context.set_details('Method not implemented!')
203 raise NotImplementedError('Method not implemented!')
204
Chandrakanth Nalkudre Gowda415b83c2021-04-28 18:01:29 +0530205 def HeartbeatCheck(self, request, context):
206 """Performs the heartbeat check
207 """
208 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
209 context.set_details('Method not implemented!')
210 raise NotImplementedError('Method not implemented!')
211
Chandrakanth Nalkudre Gowda2f6066c2021-05-13 12:36:32 +0530212 def RebootDevice(self, request, context):
213 """Performs the reboot of the device
214 """
215 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
216 context.set_details('Method not implemented!')
217 raise NotImplementedError('Method not implemented!')
218
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200219
220def add_NativeHWManagementServiceServicer_to_server(servicer, server):
221 rpc_method_handlers = {
222 'StartManagingDevice': grpc.unary_stream_rpc_method_handler(
223 servicer.StartManagingDevice,
224 request_deserializer=dmi_dot_hw__pb2.ModifiableComponent.FromString,
225 response_serializer=dmi_dot_hw__management__service__pb2.StartManagingDeviceResponse.SerializeToString,
226 ),
227 'StopManagingDevice': grpc.unary_unary_rpc_method_handler(
228 servicer.StopManagingDevice,
229 request_deserializer=dmi_dot_hw__management__service__pb2.StopManagingDeviceRequest.FromString,
230 response_serializer=dmi_dot_hw__management__service__pb2.StopManagingDeviceResponse.SerializeToString,
231 ),
Andrea Campanellacb990bc2020-09-22 12:50:56 +0200232 'GetManagedDevices': grpc.unary_unary_rpc_method_handler(
233 servicer.GetManagedDevices,
234 request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
235 response_serializer=dmi_dot_hw__management__service__pb2.ManagedDevicesResponse.SerializeToString,
236 ),
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200237 'GetPhysicalInventory': grpc.unary_stream_rpc_method_handler(
238 servicer.GetPhysicalInventory,
239 request_deserializer=dmi_dot_hw__management__service__pb2.PhysicalInventoryRequest.FromString,
240 response_serializer=dmi_dot_hw__management__service__pb2.PhysicalInventoryResponse.SerializeToString,
241 ),
242 'GetHWComponentInfo': grpc.unary_stream_rpc_method_handler(
243 servicer.GetHWComponentInfo,
244 request_deserializer=dmi_dot_hw__management__service__pb2.HWComponentInfoGetRequest.FromString,
aghoshc301dcd2020-09-03 16:55:34 +0100245 response_serializer=dmi_dot_hw__management__service__pb2.HWComponentInfoGetResponse.SerializeToString,
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200246 ),
247 'SetHWComponentInfo': grpc.unary_unary_rpc_method_handler(
248 servicer.SetHWComponentInfo,
249 request_deserializer=dmi_dot_hw__management__service__pb2.HWComponentInfoSetRequest.FromString,
250 response_serializer=dmi_dot_hw__management__service__pb2.HWComponentInfoSetResponse.SerializeToString,
251 ),
amit.ghosh188a84f2020-09-27 20:59:25 +0200252 'SetLoggingEndpoint': grpc.unary_unary_rpc_method_handler(
253 servicer.SetLoggingEndpoint,
254 request_deserializer=dmi_dot_hw__management__service__pb2.SetLoggingEndpointRequest.FromString,
255 response_serializer=dmi_dot_hw__management__service__pb2.SetRemoteEndpointResponse.SerializeToString,
256 ),
257 'GetLoggingEndpoint': grpc.unary_unary_rpc_method_handler(
258 servicer.GetLoggingEndpoint,
amit.ghosh5d97dba2020-11-12 16:45:27 +0100259 request_deserializer=dmi_dot_hw__pb2.HardwareID.FromString,
amit.ghosh188a84f2020-09-27 20:59:25 +0200260 response_serializer=dmi_dot_hw__management__service__pb2.GetLoggingEndpointResponse.SerializeToString,
261 ),
262 'SetMsgBusEndpoint': grpc.unary_unary_rpc_method_handler(
263 servicer.SetMsgBusEndpoint,
264 request_deserializer=dmi_dot_hw__management__service__pb2.SetMsgBusEndpointRequest.FromString,
265 response_serializer=dmi_dot_hw__management__service__pb2.SetRemoteEndpointResponse.SerializeToString,
266 ),
267 'GetMsgBusEndpoint': grpc.unary_unary_rpc_method_handler(
268 servicer.GetMsgBusEndpoint,
269 request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
270 response_serializer=dmi_dot_hw__management__service__pb2.GetMsgBusEndpointResponse.SerializeToString,
271 ),
Andrea Campanellab91e9a42020-10-09 14:31:43 +0200272 'GetLoggableEntities': grpc.unary_unary_rpc_method_handler(
273 servicer.GetLoggableEntities,
274 request_deserializer=dmi_dot_hw__management__service__pb2.GetLoggableEntitiesRequest.FromString,
275 response_serializer=dmi_dot_hw__management__service__pb2.GetLogLevelResponse.SerializeToString,
276 ),
277 'SetLogLevel': grpc.unary_unary_rpc_method_handler(
278 servicer.SetLogLevel,
279 request_deserializer=dmi_dot_hw__management__service__pb2.SetLogLevelRequest.FromString,
280 response_serializer=dmi_dot_hw__management__service__pb2.SetLogLevelResponse.SerializeToString,
281 ),
282 'GetLogLevel': grpc.unary_unary_rpc_method_handler(
283 servicer.GetLogLevel,
284 request_deserializer=dmi_dot_hw__management__service__pb2.GetLogLevelRequest.FromString,
285 response_serializer=dmi_dot_hw__management__service__pb2.GetLogLevelResponse.SerializeToString,
286 ),
Chandrakanth Nalkudre Gowda415b83c2021-04-28 18:01:29 +0530287 'HeartbeatCheck': grpc.unary_unary_rpc_method_handler(
288 servicer.HeartbeatCheck,
289 request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
290 response_serializer=dmi_dot_hw__management__service__pb2.Heartbeat.SerializeToString,
291 ),
Chandrakanth Nalkudre Gowda2f6066c2021-05-13 12:36:32 +0530292 'RebootDevice': grpc.unary_unary_rpc_method_handler(
293 servicer.RebootDevice,
294 request_deserializer=dmi_dot_hw__management__service__pb2.RebootDeviceRequest.FromString,
295 response_serializer=dmi_dot_hw__management__service__pb2.RebootDeviceResponse.SerializeToString,
296 ),
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200297 }
298 generic_handler = grpc.method_handlers_generic_handler(
299 'dmi.NativeHWManagementService', rpc_method_handlers)
300 server.add_generic_rpc_handlers((generic_handler,))
301
302
303 # This class is part of an EXPERIMENTAL API.
304class NativeHWManagementService(object):
305 """Missing associated documentation comment in .proto file."""
306
307 @staticmethod
308 def StartManagingDevice(request,
309 target,
310 options=(),
311 channel_credentials=None,
312 call_credentials=None,
313 insecure=False,
314 compression=None,
315 wait_for_ready=None,
316 timeout=None,
317 metadata=None):
318 return grpc.experimental.unary_stream(request, target, '/dmi.NativeHWManagementService/StartManagingDevice',
319 dmi_dot_hw__pb2.ModifiableComponent.SerializeToString,
320 dmi_dot_hw__management__service__pb2.StartManagingDeviceResponse.FromString,
321 options, channel_credentials,
322 insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
323
324 @staticmethod
325 def StopManagingDevice(request,
326 target,
327 options=(),
328 channel_credentials=None,
329 call_credentials=None,
330 insecure=False,
331 compression=None,
332 wait_for_ready=None,
333 timeout=None,
334 metadata=None):
335 return grpc.experimental.unary_unary(request, target, '/dmi.NativeHWManagementService/StopManagingDevice',
336 dmi_dot_hw__management__service__pb2.StopManagingDeviceRequest.SerializeToString,
337 dmi_dot_hw__management__service__pb2.StopManagingDeviceResponse.FromString,
338 options, channel_credentials,
339 insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
340
341 @staticmethod
Andrea Campanellacb990bc2020-09-22 12:50:56 +0200342 def GetManagedDevices(request,
343 target,
344 options=(),
345 channel_credentials=None,
346 call_credentials=None,
347 insecure=False,
348 compression=None,
349 wait_for_ready=None,
350 timeout=None,
351 metadata=None):
352 return grpc.experimental.unary_unary(request, target, '/dmi.NativeHWManagementService/GetManagedDevices',
353 google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
354 dmi_dot_hw__management__service__pb2.ManagedDevicesResponse.FromString,
355 options, channel_credentials,
356 insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
357
358 @staticmethod
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200359 def GetPhysicalInventory(request,
360 target,
361 options=(),
362 channel_credentials=None,
363 call_credentials=None,
364 insecure=False,
365 compression=None,
366 wait_for_ready=None,
367 timeout=None,
368 metadata=None):
369 return grpc.experimental.unary_stream(request, target, '/dmi.NativeHWManagementService/GetPhysicalInventory',
370 dmi_dot_hw__management__service__pb2.PhysicalInventoryRequest.SerializeToString,
371 dmi_dot_hw__management__service__pb2.PhysicalInventoryResponse.FromString,
372 options, channel_credentials,
373 insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
374
375 @staticmethod
376 def GetHWComponentInfo(request,
377 target,
378 options=(),
379 channel_credentials=None,
380 call_credentials=None,
381 insecure=False,
382 compression=None,
383 wait_for_ready=None,
384 timeout=None,
385 metadata=None):
386 return grpc.experimental.unary_stream(request, target, '/dmi.NativeHWManagementService/GetHWComponentInfo',
387 dmi_dot_hw__management__service__pb2.HWComponentInfoGetRequest.SerializeToString,
aghoshc301dcd2020-09-03 16:55:34 +0100388 dmi_dot_hw__management__service__pb2.HWComponentInfoGetResponse.FromString,
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200389 options, channel_credentials,
390 insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
391
392 @staticmethod
393 def SetHWComponentInfo(request,
394 target,
395 options=(),
396 channel_credentials=None,
397 call_credentials=None,
398 insecure=False,
399 compression=None,
400 wait_for_ready=None,
401 timeout=None,
402 metadata=None):
403 return grpc.experimental.unary_unary(request, target, '/dmi.NativeHWManagementService/SetHWComponentInfo',
404 dmi_dot_hw__management__service__pb2.HWComponentInfoSetRequest.SerializeToString,
405 dmi_dot_hw__management__service__pb2.HWComponentInfoSetResponse.FromString,
406 options, channel_credentials,
407 insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
amit.ghosh188a84f2020-09-27 20:59:25 +0200408
409 @staticmethod
410 def SetLoggingEndpoint(request,
411 target,
412 options=(),
413 channel_credentials=None,
414 call_credentials=None,
415 insecure=False,
416 compression=None,
417 wait_for_ready=None,
418 timeout=None,
419 metadata=None):
420 return grpc.experimental.unary_unary(request, target, '/dmi.NativeHWManagementService/SetLoggingEndpoint',
421 dmi_dot_hw__management__service__pb2.SetLoggingEndpointRequest.SerializeToString,
422 dmi_dot_hw__management__service__pb2.SetRemoteEndpointResponse.FromString,
423 options, channel_credentials,
424 insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
425
426 @staticmethod
427 def GetLoggingEndpoint(request,
428 target,
429 options=(),
430 channel_credentials=None,
431 call_credentials=None,
432 insecure=False,
433 compression=None,
434 wait_for_ready=None,
435 timeout=None,
436 metadata=None):
437 return grpc.experimental.unary_unary(request, target, '/dmi.NativeHWManagementService/GetLoggingEndpoint',
amit.ghosh5d97dba2020-11-12 16:45:27 +0100438 dmi_dot_hw__pb2.HardwareID.SerializeToString,
amit.ghosh188a84f2020-09-27 20:59:25 +0200439 dmi_dot_hw__management__service__pb2.GetLoggingEndpointResponse.FromString,
440 options, channel_credentials,
441 insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
442
443 @staticmethod
444 def SetMsgBusEndpoint(request,
445 target,
446 options=(),
447 channel_credentials=None,
448 call_credentials=None,
449 insecure=False,
450 compression=None,
451 wait_for_ready=None,
452 timeout=None,
453 metadata=None):
454 return grpc.experimental.unary_unary(request, target, '/dmi.NativeHWManagementService/SetMsgBusEndpoint',
455 dmi_dot_hw__management__service__pb2.SetMsgBusEndpointRequest.SerializeToString,
456 dmi_dot_hw__management__service__pb2.SetRemoteEndpointResponse.FromString,
457 options, channel_credentials,
458 insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
459
460 @staticmethod
461 def GetMsgBusEndpoint(request,
462 target,
463 options=(),
464 channel_credentials=None,
465 call_credentials=None,
466 insecure=False,
467 compression=None,
468 wait_for_ready=None,
469 timeout=None,
470 metadata=None):
471 return grpc.experimental.unary_unary(request, target, '/dmi.NativeHWManagementService/GetMsgBusEndpoint',
472 google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
473 dmi_dot_hw__management__service__pb2.GetMsgBusEndpointResponse.FromString,
474 options, channel_credentials,
475 insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
Andrea Campanellab91e9a42020-10-09 14:31:43 +0200476
477 @staticmethod
478 def GetLoggableEntities(request,
479 target,
480 options=(),
481 channel_credentials=None,
482 call_credentials=None,
483 insecure=False,
484 compression=None,
485 wait_for_ready=None,
486 timeout=None,
487 metadata=None):
488 return grpc.experimental.unary_unary(request, target, '/dmi.NativeHWManagementService/GetLoggableEntities',
489 dmi_dot_hw__management__service__pb2.GetLoggableEntitiesRequest.SerializeToString,
490 dmi_dot_hw__management__service__pb2.GetLogLevelResponse.FromString,
491 options, channel_credentials,
492 insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
493
494 @staticmethod
495 def SetLogLevel(request,
496 target,
497 options=(),
498 channel_credentials=None,
499 call_credentials=None,
500 insecure=False,
501 compression=None,
502 wait_for_ready=None,
503 timeout=None,
504 metadata=None):
505 return grpc.experimental.unary_unary(request, target, '/dmi.NativeHWManagementService/SetLogLevel',
506 dmi_dot_hw__management__service__pb2.SetLogLevelRequest.SerializeToString,
507 dmi_dot_hw__management__service__pb2.SetLogLevelResponse.FromString,
508 options, channel_credentials,
509 insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
510
511 @staticmethod
512 def GetLogLevel(request,
513 target,
514 options=(),
515 channel_credentials=None,
516 call_credentials=None,
517 insecure=False,
518 compression=None,
519 wait_for_ready=None,
520 timeout=None,
521 metadata=None):
522 return grpc.experimental.unary_unary(request, target, '/dmi.NativeHWManagementService/GetLogLevel',
523 dmi_dot_hw__management__service__pb2.GetLogLevelRequest.SerializeToString,
524 dmi_dot_hw__management__service__pb2.GetLogLevelResponse.FromString,
525 options, channel_credentials,
526 insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
Chandrakanth Nalkudre Gowda415b83c2021-04-28 18:01:29 +0530527
528 @staticmethod
529 def HeartbeatCheck(request,
530 target,
531 options=(),
532 channel_credentials=None,
533 call_credentials=None,
534 insecure=False,
535 compression=None,
536 wait_for_ready=None,
537 timeout=None,
538 metadata=None):
539 return grpc.experimental.unary_unary(request, target, '/dmi.NativeHWManagementService/HeartbeatCheck',
540 google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
541 dmi_dot_hw__management__service__pb2.Heartbeat.FromString,
542 options, channel_credentials,
543 insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
Chandrakanth Nalkudre Gowda2f6066c2021-05-13 12:36:32 +0530544
545 @staticmethod
546 def RebootDevice(request,
547 target,
548 options=(),
549 channel_credentials=None,
550 call_credentials=None,
551 insecure=False,
552 compression=None,
553 wait_for_ready=None,
554 timeout=None,
555 metadata=None):
556 return grpc.experimental.unary_unary(request, target, '/dmi.NativeHWManagementService/RebootDevice',
557 dmi_dot_hw__management__service__pb2.RebootDeviceRequest.SerializeToString,
558 dmi_dot_hw__management__service__pb2.RebootDeviceResponse.FromString,
559 options, channel_credentials,
560 insecure, call_credentials, compression, wait_for_ready, timeout, metadata)