blob: 574490a9c1b70e9f00ea1c2956ecaeb3f77edefd [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 )
amit.ghosh93183512024-05-28 22:37:27 +020094 self.SetDmLogLevel = channel.unary_unary(
95 '/dmi.NativeHWManagementService/SetDmLogLevel',
96 request_serializer=dmi_dot_hw__management__service__pb2.SetDmLogLevelRequest.SerializeToString,
97 response_deserializer=dmi_dot_hw__management__service__pb2.SetDmLogLevelResponse.FromString,
98 )
99 self.GetDmLogLevel = channel.unary_unary(
100 '/dmi.NativeHWManagementService/GetDmLogLevel',
101 request_serializer=dmi_dot_hw__management__service__pb2.GetDmLogLevelRequest.SerializeToString,
102 response_deserializer=dmi_dot_hw__management__service__pb2.GetDmLogLevelResponse.FromString,
103 )
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200104
105
106class NativeHWManagementServiceServicer(object):
107 """Missing associated documentation comment in .proto file."""
108
109 def StartManagingDevice(self, request, context):
110 """Initializes context for a device and sets up required states
111 In the call to StartManagingDevice, the fields of ModifiableComponent which are relevant
112 and their meanings in this context is mentioned below:
113 name = The unique name that needs to be assigned to this hardware;
114 class = COMPONENT_TYPE_UNDEFINED;
115 parent = nil;
116 alias = Optional;
117 asset_id = Optional;
118 uri = IP Address of the Hardware;
119 """
120 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
121 context.set_details('Method not implemented!')
122 raise NotImplementedError('Method not implemented!')
123
124 def StopManagingDevice(self, request, context):
125 """Stop management of a device and clean up any context and caches for that device
amit.ghoshae473032021-01-10 11:59:10 +0100126 This rpc can be called at any time, even before the StartManagingDevice operation
127 has completed, and should be able to cleanup.
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200128 """
129 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
130 context.set_details('Method not implemented!')
131 raise NotImplementedError('Method not implemented!')
132
Andrea Campanellacb990bc2020-09-22 12:50:56 +0200133 def GetManagedDevices(self, request, context):
134 """Returns an object containing a list of devices managed by this entity
135 """
136 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
137 context.set_details('Method not implemented!')
138 raise NotImplementedError('Method not implemented!')
139
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200140 def GetPhysicalInventory(self, request, context):
141 """Get the HW inventory details of the Device
142 """
143 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
144 context.set_details('Method not implemented!')
145 raise NotImplementedError('Method not implemented!')
146
147 def GetHWComponentInfo(self, request, context):
148 """Get the details of a particular HW component
149 """
150 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
151 context.set_details('Method not implemented!')
152 raise NotImplementedError('Method not implemented!')
153
154 def SetHWComponentInfo(self, request, context):
155 """Sets the permissible attributes of a HW component
156 """
157 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
158 context.set_details('Method not implemented!')
159 raise NotImplementedError('Method not implemented!')
160
amit.ghosh188a84f2020-09-27 20:59:25 +0200161 def SetLoggingEndpoint(self, request, context):
162 """Sets the location to which logs need to be shipped
163 """
164 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
165 context.set_details('Method not implemented!')
166 raise NotImplementedError('Method not implemented!')
167
168 def GetLoggingEndpoint(self, request, context):
169 """Gets the configured location to which the logs are being shipped
170 """
171 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
172 context.set_details('Method not implemented!')
173 raise NotImplementedError('Method not implemented!')
174
175 def SetMsgBusEndpoint(self, request, context):
176 """Sets the location of the Message Bus to which events and metrics are shipped
177 """
178 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
179 context.set_details('Method not implemented!')
180 raise NotImplementedError('Method not implemented!')
181
182 def GetMsgBusEndpoint(self, request, context):
183 """Gets the configured location to which the events and metrics are being shipped
184 """
185 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
186 context.set_details('Method not implemented!')
187 raise NotImplementedError('Method not implemented!')
188
Andrea Campanellab91e9a42020-10-09 14:31:43 +0200189 def GetLoggableEntities(self, request, context):
190 """Gets the entities of a device on which log can be configured. A few are expected, like OS, PON Management etc.
191 In general an entity is any item within an hardware system that can emit logs, e.g. service, process, subsystem,
192 interface, package etc.
193 """
194 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
195 context.set_details('Method not implemented!')
196 raise NotImplementedError('Method not implemented!')
197
198 def SetLogLevel(self, request, context):
amit.ghosh5d97dba2020-11-12 16:45:27 +0100199 """Sets the log level of the device, for each given entity to a certain level.
Andrea Campanellab91e9a42020-10-09 14:31:43 +0200200 If only one EntitiesLogLevel is provided for the device and that request contains only a log level with
201 no entity in the list it's assumed that the caller wants to set that level for all the entities.
202 """
203 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
204 context.set_details('Method not implemented!')
205 raise NotImplementedError('Method not implemented!')
206
207 def GetLogLevel(self, request, context):
208 """Gets the configured log level for a certain entity on a certain device.
209 If no entity is specified in the request all the entities with their log level should be returned.
210 """
211 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
212 context.set_details('Method not implemented!')
213 raise NotImplementedError('Method not implemented!')
214
Chandrakanth Nalkudre Gowda415b83c2021-04-28 18:01:29 +0530215 def HeartbeatCheck(self, request, context):
216 """Performs the heartbeat check
217 """
218 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
219 context.set_details('Method not implemented!')
220 raise NotImplementedError('Method not implemented!')
221
Chandrakanth Nalkudre Gowda2f6066c2021-05-13 12:36:32 +0530222 def RebootDevice(self, request, context):
223 """Performs the reboot of the device
224 """
225 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
226 context.set_details('Method not implemented!')
227 raise NotImplementedError('Method not implemented!')
228
amit.ghosh93183512024-05-28 22:37:27 +0200229 def SetDmLogLevel(self, request, context):
230 """Sets the log level of the Device Manager itself
231 """
232 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
233 context.set_details('Method not implemented!')
234 raise NotImplementedError('Method not implemented!')
235
236 def GetDmLogLevel(self, request, context):
237 """Gets the log level at which the Device Manager is running
238 """
239 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
240 context.set_details('Method not implemented!')
241 raise NotImplementedError('Method not implemented!')
242
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200243
244def add_NativeHWManagementServiceServicer_to_server(servicer, server):
245 rpc_method_handlers = {
246 'StartManagingDevice': grpc.unary_stream_rpc_method_handler(
247 servicer.StartManagingDevice,
248 request_deserializer=dmi_dot_hw__pb2.ModifiableComponent.FromString,
249 response_serializer=dmi_dot_hw__management__service__pb2.StartManagingDeviceResponse.SerializeToString,
250 ),
251 'StopManagingDevice': grpc.unary_unary_rpc_method_handler(
252 servicer.StopManagingDevice,
253 request_deserializer=dmi_dot_hw__management__service__pb2.StopManagingDeviceRequest.FromString,
254 response_serializer=dmi_dot_hw__management__service__pb2.StopManagingDeviceResponse.SerializeToString,
255 ),
Andrea Campanellacb990bc2020-09-22 12:50:56 +0200256 'GetManagedDevices': grpc.unary_unary_rpc_method_handler(
257 servicer.GetManagedDevices,
258 request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
259 response_serializer=dmi_dot_hw__management__service__pb2.ManagedDevicesResponse.SerializeToString,
260 ),
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200261 'GetPhysicalInventory': grpc.unary_stream_rpc_method_handler(
262 servicer.GetPhysicalInventory,
263 request_deserializer=dmi_dot_hw__management__service__pb2.PhysicalInventoryRequest.FromString,
264 response_serializer=dmi_dot_hw__management__service__pb2.PhysicalInventoryResponse.SerializeToString,
265 ),
266 'GetHWComponentInfo': grpc.unary_stream_rpc_method_handler(
267 servicer.GetHWComponentInfo,
268 request_deserializer=dmi_dot_hw__management__service__pb2.HWComponentInfoGetRequest.FromString,
aghoshc301dcd2020-09-03 16:55:34 +0100269 response_serializer=dmi_dot_hw__management__service__pb2.HWComponentInfoGetResponse.SerializeToString,
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200270 ),
271 'SetHWComponentInfo': grpc.unary_unary_rpc_method_handler(
272 servicer.SetHWComponentInfo,
273 request_deserializer=dmi_dot_hw__management__service__pb2.HWComponentInfoSetRequest.FromString,
274 response_serializer=dmi_dot_hw__management__service__pb2.HWComponentInfoSetResponse.SerializeToString,
275 ),
amit.ghosh188a84f2020-09-27 20:59:25 +0200276 'SetLoggingEndpoint': grpc.unary_unary_rpc_method_handler(
277 servicer.SetLoggingEndpoint,
278 request_deserializer=dmi_dot_hw__management__service__pb2.SetLoggingEndpointRequest.FromString,
279 response_serializer=dmi_dot_hw__management__service__pb2.SetRemoteEndpointResponse.SerializeToString,
280 ),
281 'GetLoggingEndpoint': grpc.unary_unary_rpc_method_handler(
282 servicer.GetLoggingEndpoint,
amit.ghosh5d97dba2020-11-12 16:45:27 +0100283 request_deserializer=dmi_dot_hw__pb2.HardwareID.FromString,
amit.ghosh188a84f2020-09-27 20:59:25 +0200284 response_serializer=dmi_dot_hw__management__service__pb2.GetLoggingEndpointResponse.SerializeToString,
285 ),
286 'SetMsgBusEndpoint': grpc.unary_unary_rpc_method_handler(
287 servicer.SetMsgBusEndpoint,
288 request_deserializer=dmi_dot_hw__management__service__pb2.SetMsgBusEndpointRequest.FromString,
289 response_serializer=dmi_dot_hw__management__service__pb2.SetRemoteEndpointResponse.SerializeToString,
290 ),
291 'GetMsgBusEndpoint': grpc.unary_unary_rpc_method_handler(
292 servicer.GetMsgBusEndpoint,
293 request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
294 response_serializer=dmi_dot_hw__management__service__pb2.GetMsgBusEndpointResponse.SerializeToString,
295 ),
Andrea Campanellab91e9a42020-10-09 14:31:43 +0200296 'GetLoggableEntities': grpc.unary_unary_rpc_method_handler(
297 servicer.GetLoggableEntities,
298 request_deserializer=dmi_dot_hw__management__service__pb2.GetLoggableEntitiesRequest.FromString,
299 response_serializer=dmi_dot_hw__management__service__pb2.GetLogLevelResponse.SerializeToString,
300 ),
301 'SetLogLevel': grpc.unary_unary_rpc_method_handler(
302 servicer.SetLogLevel,
303 request_deserializer=dmi_dot_hw__management__service__pb2.SetLogLevelRequest.FromString,
304 response_serializer=dmi_dot_hw__management__service__pb2.SetLogLevelResponse.SerializeToString,
305 ),
306 'GetLogLevel': grpc.unary_unary_rpc_method_handler(
307 servicer.GetLogLevel,
308 request_deserializer=dmi_dot_hw__management__service__pb2.GetLogLevelRequest.FromString,
309 response_serializer=dmi_dot_hw__management__service__pb2.GetLogLevelResponse.SerializeToString,
310 ),
Chandrakanth Nalkudre Gowda415b83c2021-04-28 18:01:29 +0530311 'HeartbeatCheck': grpc.unary_unary_rpc_method_handler(
312 servicer.HeartbeatCheck,
313 request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
314 response_serializer=dmi_dot_hw__management__service__pb2.Heartbeat.SerializeToString,
315 ),
Chandrakanth Nalkudre Gowda2f6066c2021-05-13 12:36:32 +0530316 'RebootDevice': grpc.unary_unary_rpc_method_handler(
317 servicer.RebootDevice,
318 request_deserializer=dmi_dot_hw__management__service__pb2.RebootDeviceRequest.FromString,
319 response_serializer=dmi_dot_hw__management__service__pb2.RebootDeviceResponse.SerializeToString,
320 ),
amit.ghosh93183512024-05-28 22:37:27 +0200321 'SetDmLogLevel': grpc.unary_unary_rpc_method_handler(
322 servicer.SetDmLogLevel,
323 request_deserializer=dmi_dot_hw__management__service__pb2.SetDmLogLevelRequest.FromString,
324 response_serializer=dmi_dot_hw__management__service__pb2.SetDmLogLevelResponse.SerializeToString,
325 ),
326 'GetDmLogLevel': grpc.unary_unary_rpc_method_handler(
327 servicer.GetDmLogLevel,
328 request_deserializer=dmi_dot_hw__management__service__pb2.GetDmLogLevelRequest.FromString,
329 response_serializer=dmi_dot_hw__management__service__pb2.GetDmLogLevelResponse.SerializeToString,
330 ),
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200331 }
332 generic_handler = grpc.method_handlers_generic_handler(
333 'dmi.NativeHWManagementService', rpc_method_handlers)
334 server.add_generic_rpc_handlers((generic_handler,))
335
336
337 # This class is part of an EXPERIMENTAL API.
338class NativeHWManagementService(object):
339 """Missing associated documentation comment in .proto file."""
340
341 @staticmethod
342 def StartManagingDevice(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_stream(request, target, '/dmi.NativeHWManagementService/StartManagingDevice',
353 dmi_dot_hw__pb2.ModifiableComponent.SerializeToString,
354 dmi_dot_hw__management__service__pb2.StartManagingDeviceResponse.FromString,
355 options, channel_credentials,
356 insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
357
358 @staticmethod
359 def StopManagingDevice(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_unary(request, target, '/dmi.NativeHWManagementService/StopManagingDevice',
370 dmi_dot_hw__management__service__pb2.StopManagingDeviceRequest.SerializeToString,
371 dmi_dot_hw__management__service__pb2.StopManagingDeviceResponse.FromString,
372 options, channel_credentials,
373 insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
374
375 @staticmethod
Andrea Campanellacb990bc2020-09-22 12:50:56 +0200376 def GetManagedDevices(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_unary(request, target, '/dmi.NativeHWManagementService/GetManagedDevices',
387 google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
388 dmi_dot_hw__management__service__pb2.ManagedDevicesResponse.FromString,
389 options, channel_credentials,
390 insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
391
392 @staticmethod
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200393 def GetPhysicalInventory(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_stream(request, target, '/dmi.NativeHWManagementService/GetPhysicalInventory',
404 dmi_dot_hw__management__service__pb2.PhysicalInventoryRequest.SerializeToString,
405 dmi_dot_hw__management__service__pb2.PhysicalInventoryResponse.FromString,
406 options, channel_credentials,
407 insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
408
409 @staticmethod
410 def GetHWComponentInfo(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_stream(request, target, '/dmi.NativeHWManagementService/GetHWComponentInfo',
421 dmi_dot_hw__management__service__pb2.HWComponentInfoGetRequest.SerializeToString,
aghoshc301dcd2020-09-03 16:55:34 +0100422 dmi_dot_hw__management__service__pb2.HWComponentInfoGetResponse.FromString,
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200423 options, channel_credentials,
424 insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
425
426 @staticmethod
427 def SetHWComponentInfo(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/SetHWComponentInfo',
438 dmi_dot_hw__management__service__pb2.HWComponentInfoSetRequest.SerializeToString,
439 dmi_dot_hw__management__service__pb2.HWComponentInfoSetResponse.FromString,
440 options, channel_credentials,
441 insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
amit.ghosh188a84f2020-09-27 20:59:25 +0200442
443 @staticmethod
444 def SetLoggingEndpoint(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/SetLoggingEndpoint',
455 dmi_dot_hw__management__service__pb2.SetLoggingEndpointRequest.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 GetLoggingEndpoint(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/GetLoggingEndpoint',
amit.ghosh5d97dba2020-11-12 16:45:27 +0100472 dmi_dot_hw__pb2.HardwareID.SerializeToString,
amit.ghosh188a84f2020-09-27 20:59:25 +0200473 dmi_dot_hw__management__service__pb2.GetLoggingEndpointResponse.FromString,
474 options, channel_credentials,
475 insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
476
477 @staticmethod
478 def SetMsgBusEndpoint(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/SetMsgBusEndpoint',
489 dmi_dot_hw__management__service__pb2.SetMsgBusEndpointRequest.SerializeToString,
490 dmi_dot_hw__management__service__pb2.SetRemoteEndpointResponse.FromString,
491 options, channel_credentials,
492 insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
493
494 @staticmethod
495 def GetMsgBusEndpoint(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/GetMsgBusEndpoint',
506 google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
507 dmi_dot_hw__management__service__pb2.GetMsgBusEndpointResponse.FromString,
508 options, channel_credentials,
509 insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
Andrea Campanellab91e9a42020-10-09 14:31:43 +0200510
511 @staticmethod
512 def GetLoggableEntities(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/GetLoggableEntities',
523 dmi_dot_hw__management__service__pb2.GetLoggableEntitiesRequest.SerializeToString,
524 dmi_dot_hw__management__service__pb2.GetLogLevelResponse.FromString,
525 options, channel_credentials,
526 insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
527
528 @staticmethod
529 def SetLogLevel(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/SetLogLevel',
540 dmi_dot_hw__management__service__pb2.SetLogLevelRequest.SerializeToString,
541 dmi_dot_hw__management__service__pb2.SetLogLevelResponse.FromString,
542 options, channel_credentials,
543 insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
544
545 @staticmethod
546 def GetLogLevel(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/GetLogLevel',
557 dmi_dot_hw__management__service__pb2.GetLogLevelRequest.SerializeToString,
558 dmi_dot_hw__management__service__pb2.GetLogLevelResponse.FromString,
559 options, channel_credentials,
560 insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
Chandrakanth Nalkudre Gowda415b83c2021-04-28 18:01:29 +0530561
562 @staticmethod
563 def HeartbeatCheck(request,
564 target,
565 options=(),
566 channel_credentials=None,
567 call_credentials=None,
568 insecure=False,
569 compression=None,
570 wait_for_ready=None,
571 timeout=None,
572 metadata=None):
573 return grpc.experimental.unary_unary(request, target, '/dmi.NativeHWManagementService/HeartbeatCheck',
574 google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
575 dmi_dot_hw__management__service__pb2.Heartbeat.FromString,
576 options, channel_credentials,
577 insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
Chandrakanth Nalkudre Gowda2f6066c2021-05-13 12:36:32 +0530578
579 @staticmethod
580 def RebootDevice(request,
581 target,
582 options=(),
583 channel_credentials=None,
584 call_credentials=None,
585 insecure=False,
586 compression=None,
587 wait_for_ready=None,
588 timeout=None,
589 metadata=None):
590 return grpc.experimental.unary_unary(request, target, '/dmi.NativeHWManagementService/RebootDevice',
591 dmi_dot_hw__management__service__pb2.RebootDeviceRequest.SerializeToString,
592 dmi_dot_hw__management__service__pb2.RebootDeviceResponse.FromString,
593 options, channel_credentials,
594 insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
amit.ghosh93183512024-05-28 22:37:27 +0200595
596 @staticmethod
597 def SetDmLogLevel(request,
598 target,
599 options=(),
600 channel_credentials=None,
601 call_credentials=None,
602 insecure=False,
603 compression=None,
604 wait_for_ready=None,
605 timeout=None,
606 metadata=None):
607 return grpc.experimental.unary_unary(request, target, '/dmi.NativeHWManagementService/SetDmLogLevel',
608 dmi_dot_hw__management__service__pb2.SetDmLogLevelRequest.SerializeToString,
609 dmi_dot_hw__management__service__pb2.SetDmLogLevelResponse.FromString,
610 options, channel_credentials,
611 insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
612
613 @staticmethod
614 def GetDmLogLevel(request,
615 target,
616 options=(),
617 channel_credentials=None,
618 call_credentials=None,
619 insecure=False,
620 compression=None,
621 wait_for_ready=None,
622 timeout=None,
623 metadata=None):
624 return grpc.experimental.unary_unary(request, target, '/dmi.NativeHWManagementService/GetDmLogLevel',
625 dmi_dot_hw__management__service__pb2.GetDmLogLevelRequest.SerializeToString,
626 dmi_dot_hw__management__service__pb2.GetDmLogLevelResponse.FromString,
627 options, channel_credentials,
628 insecure, call_credentials, compression, wait_for_ready, timeout, metadata)