blob: 9c25fe3031e00709e63341a234050923d5a6297a [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 )
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +020084
85
86class NativeHWManagementServiceServicer(object):
87 """Missing associated documentation comment in .proto file."""
88
89 def StartManagingDevice(self, request, context):
90 """Initializes context for a device and sets up required states
91 In the call to StartManagingDevice, the fields of ModifiableComponent which are relevant
92 and their meanings in this context is mentioned below:
93 name = The unique name that needs to be assigned to this hardware;
94 class = COMPONENT_TYPE_UNDEFINED;
95 parent = nil;
96 alias = Optional;
97 asset_id = Optional;
98 uri = IP Address of the Hardware;
99 """
100 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
101 context.set_details('Method not implemented!')
102 raise NotImplementedError('Method not implemented!')
103
104 def StopManagingDevice(self, request, context):
105 """Stop management of a device and clean up any context and caches for that device
amit.ghoshae473032021-01-10 11:59:10 +0100106 This rpc can be called at any time, even before the StartManagingDevice operation
107 has completed, and should be able to cleanup.
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200108 """
109 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
110 context.set_details('Method not implemented!')
111 raise NotImplementedError('Method not implemented!')
112
Andrea Campanellacb990bc2020-09-22 12:50:56 +0200113 def GetManagedDevices(self, request, context):
114 """Returns an object containing a list of devices managed by this entity
115 """
116 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
117 context.set_details('Method not implemented!')
118 raise NotImplementedError('Method not implemented!')
119
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200120 def GetPhysicalInventory(self, request, context):
121 """Get the HW inventory details of the Device
122 """
123 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
124 context.set_details('Method not implemented!')
125 raise NotImplementedError('Method not implemented!')
126
127 def GetHWComponentInfo(self, request, context):
128 """Get the details of a particular HW component
129 """
130 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
131 context.set_details('Method not implemented!')
132 raise NotImplementedError('Method not implemented!')
133
134 def SetHWComponentInfo(self, request, context):
135 """Sets the permissible attributes of a HW component
136 """
137 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
138 context.set_details('Method not implemented!')
139 raise NotImplementedError('Method not implemented!')
140
amit.ghosh188a84f2020-09-27 20:59:25 +0200141 def SetLoggingEndpoint(self, request, context):
142 """Sets the location to which logs need to be shipped
143 """
144 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
145 context.set_details('Method not implemented!')
146 raise NotImplementedError('Method not implemented!')
147
148 def GetLoggingEndpoint(self, request, context):
149 """Gets the configured location to which the logs are being shipped
150 """
151 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
152 context.set_details('Method not implemented!')
153 raise NotImplementedError('Method not implemented!')
154
155 def SetMsgBusEndpoint(self, request, context):
156 """Sets the location of the Message Bus to which events and metrics are shipped
157 """
158 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
159 context.set_details('Method not implemented!')
160 raise NotImplementedError('Method not implemented!')
161
162 def GetMsgBusEndpoint(self, request, context):
163 """Gets the configured location to which the events and metrics are being shipped
164 """
165 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
166 context.set_details('Method not implemented!')
167 raise NotImplementedError('Method not implemented!')
168
Andrea Campanellab91e9a42020-10-09 14:31:43 +0200169 def GetLoggableEntities(self, request, context):
170 """Gets the entities of a device on which log can be configured. A few are expected, like OS, PON Management etc.
171 In general an entity is any item within an hardware system that can emit logs, e.g. service, process, subsystem,
172 interface, package etc.
173 """
174 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
175 context.set_details('Method not implemented!')
176 raise NotImplementedError('Method not implemented!')
177
178 def SetLogLevel(self, request, context):
amit.ghosh5d97dba2020-11-12 16:45:27 +0100179 """Sets the log level of the device, for each given entity to a certain level.
Andrea Campanellab91e9a42020-10-09 14:31:43 +0200180 If only one EntitiesLogLevel is provided for the device and that request contains only a log level with
181 no entity in the list it's assumed that the caller wants to set that level for all the entities.
182 """
183 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
184 context.set_details('Method not implemented!')
185 raise NotImplementedError('Method not implemented!')
186
187 def GetLogLevel(self, request, context):
188 """Gets the configured log level for a certain entity on a certain device.
189 If no entity is specified in the request all the entities with their log level should be returned.
190 """
191 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
192 context.set_details('Method not implemented!')
193 raise NotImplementedError('Method not implemented!')
194
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200195
196def add_NativeHWManagementServiceServicer_to_server(servicer, server):
197 rpc_method_handlers = {
198 'StartManagingDevice': grpc.unary_stream_rpc_method_handler(
199 servicer.StartManagingDevice,
200 request_deserializer=dmi_dot_hw__pb2.ModifiableComponent.FromString,
201 response_serializer=dmi_dot_hw__management__service__pb2.StartManagingDeviceResponse.SerializeToString,
202 ),
203 'StopManagingDevice': grpc.unary_unary_rpc_method_handler(
204 servicer.StopManagingDevice,
205 request_deserializer=dmi_dot_hw__management__service__pb2.StopManagingDeviceRequest.FromString,
206 response_serializer=dmi_dot_hw__management__service__pb2.StopManagingDeviceResponse.SerializeToString,
207 ),
Andrea Campanellacb990bc2020-09-22 12:50:56 +0200208 'GetManagedDevices': grpc.unary_unary_rpc_method_handler(
209 servicer.GetManagedDevices,
210 request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
211 response_serializer=dmi_dot_hw__management__service__pb2.ManagedDevicesResponse.SerializeToString,
212 ),
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200213 'GetPhysicalInventory': grpc.unary_stream_rpc_method_handler(
214 servicer.GetPhysicalInventory,
215 request_deserializer=dmi_dot_hw__management__service__pb2.PhysicalInventoryRequest.FromString,
216 response_serializer=dmi_dot_hw__management__service__pb2.PhysicalInventoryResponse.SerializeToString,
217 ),
218 'GetHWComponentInfo': grpc.unary_stream_rpc_method_handler(
219 servicer.GetHWComponentInfo,
220 request_deserializer=dmi_dot_hw__management__service__pb2.HWComponentInfoGetRequest.FromString,
aghoshc301dcd2020-09-03 16:55:34 +0100221 response_serializer=dmi_dot_hw__management__service__pb2.HWComponentInfoGetResponse.SerializeToString,
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200222 ),
223 'SetHWComponentInfo': grpc.unary_unary_rpc_method_handler(
224 servicer.SetHWComponentInfo,
225 request_deserializer=dmi_dot_hw__management__service__pb2.HWComponentInfoSetRequest.FromString,
226 response_serializer=dmi_dot_hw__management__service__pb2.HWComponentInfoSetResponse.SerializeToString,
227 ),
amit.ghosh188a84f2020-09-27 20:59:25 +0200228 'SetLoggingEndpoint': grpc.unary_unary_rpc_method_handler(
229 servicer.SetLoggingEndpoint,
230 request_deserializer=dmi_dot_hw__management__service__pb2.SetLoggingEndpointRequest.FromString,
231 response_serializer=dmi_dot_hw__management__service__pb2.SetRemoteEndpointResponse.SerializeToString,
232 ),
233 'GetLoggingEndpoint': grpc.unary_unary_rpc_method_handler(
234 servicer.GetLoggingEndpoint,
amit.ghosh5d97dba2020-11-12 16:45:27 +0100235 request_deserializer=dmi_dot_hw__pb2.HardwareID.FromString,
amit.ghosh188a84f2020-09-27 20:59:25 +0200236 response_serializer=dmi_dot_hw__management__service__pb2.GetLoggingEndpointResponse.SerializeToString,
237 ),
238 'SetMsgBusEndpoint': grpc.unary_unary_rpc_method_handler(
239 servicer.SetMsgBusEndpoint,
240 request_deserializer=dmi_dot_hw__management__service__pb2.SetMsgBusEndpointRequest.FromString,
241 response_serializer=dmi_dot_hw__management__service__pb2.SetRemoteEndpointResponse.SerializeToString,
242 ),
243 'GetMsgBusEndpoint': grpc.unary_unary_rpc_method_handler(
244 servicer.GetMsgBusEndpoint,
245 request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
246 response_serializer=dmi_dot_hw__management__service__pb2.GetMsgBusEndpointResponse.SerializeToString,
247 ),
Andrea Campanellab91e9a42020-10-09 14:31:43 +0200248 'GetLoggableEntities': grpc.unary_unary_rpc_method_handler(
249 servicer.GetLoggableEntities,
250 request_deserializer=dmi_dot_hw__management__service__pb2.GetLoggableEntitiesRequest.FromString,
251 response_serializer=dmi_dot_hw__management__service__pb2.GetLogLevelResponse.SerializeToString,
252 ),
253 'SetLogLevel': grpc.unary_unary_rpc_method_handler(
254 servicer.SetLogLevel,
255 request_deserializer=dmi_dot_hw__management__service__pb2.SetLogLevelRequest.FromString,
256 response_serializer=dmi_dot_hw__management__service__pb2.SetLogLevelResponse.SerializeToString,
257 ),
258 'GetLogLevel': grpc.unary_unary_rpc_method_handler(
259 servicer.GetLogLevel,
260 request_deserializer=dmi_dot_hw__management__service__pb2.GetLogLevelRequest.FromString,
261 response_serializer=dmi_dot_hw__management__service__pb2.GetLogLevelResponse.SerializeToString,
262 ),
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200263 }
264 generic_handler = grpc.method_handlers_generic_handler(
265 'dmi.NativeHWManagementService', rpc_method_handlers)
266 server.add_generic_rpc_handlers((generic_handler,))
267
268
269 # This class is part of an EXPERIMENTAL API.
270class NativeHWManagementService(object):
271 """Missing associated documentation comment in .proto file."""
272
273 @staticmethod
274 def StartManagingDevice(request,
275 target,
276 options=(),
277 channel_credentials=None,
278 call_credentials=None,
279 insecure=False,
280 compression=None,
281 wait_for_ready=None,
282 timeout=None,
283 metadata=None):
284 return grpc.experimental.unary_stream(request, target, '/dmi.NativeHWManagementService/StartManagingDevice',
285 dmi_dot_hw__pb2.ModifiableComponent.SerializeToString,
286 dmi_dot_hw__management__service__pb2.StartManagingDeviceResponse.FromString,
287 options, channel_credentials,
288 insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
289
290 @staticmethod
291 def StopManagingDevice(request,
292 target,
293 options=(),
294 channel_credentials=None,
295 call_credentials=None,
296 insecure=False,
297 compression=None,
298 wait_for_ready=None,
299 timeout=None,
300 metadata=None):
301 return grpc.experimental.unary_unary(request, target, '/dmi.NativeHWManagementService/StopManagingDevice',
302 dmi_dot_hw__management__service__pb2.StopManagingDeviceRequest.SerializeToString,
303 dmi_dot_hw__management__service__pb2.StopManagingDeviceResponse.FromString,
304 options, channel_credentials,
305 insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
306
307 @staticmethod
Andrea Campanellacb990bc2020-09-22 12:50:56 +0200308 def GetManagedDevices(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_unary(request, target, '/dmi.NativeHWManagementService/GetManagedDevices',
319 google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
320 dmi_dot_hw__management__service__pb2.ManagedDevicesResponse.FromString,
321 options, channel_credentials,
322 insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
323
324 @staticmethod
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200325 def GetPhysicalInventory(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_stream(request, target, '/dmi.NativeHWManagementService/GetPhysicalInventory',
336 dmi_dot_hw__management__service__pb2.PhysicalInventoryRequest.SerializeToString,
337 dmi_dot_hw__management__service__pb2.PhysicalInventoryResponse.FromString,
338 options, channel_credentials,
339 insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
340
341 @staticmethod
342 def GetHWComponentInfo(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/GetHWComponentInfo',
353 dmi_dot_hw__management__service__pb2.HWComponentInfoGetRequest.SerializeToString,
aghoshc301dcd2020-09-03 16:55:34 +0100354 dmi_dot_hw__management__service__pb2.HWComponentInfoGetResponse.FromString,
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200355 options, channel_credentials,
356 insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
357
358 @staticmethod
359 def SetHWComponentInfo(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/SetHWComponentInfo',
370 dmi_dot_hw__management__service__pb2.HWComponentInfoSetRequest.SerializeToString,
371 dmi_dot_hw__management__service__pb2.HWComponentInfoSetResponse.FromString,
372 options, channel_credentials,
373 insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
amit.ghosh188a84f2020-09-27 20:59:25 +0200374
375 @staticmethod
376 def SetLoggingEndpoint(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/SetLoggingEndpoint',
387 dmi_dot_hw__management__service__pb2.SetLoggingEndpointRequest.SerializeToString,
388 dmi_dot_hw__management__service__pb2.SetRemoteEndpointResponse.FromString,
389 options, channel_credentials,
390 insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
391
392 @staticmethod
393 def GetLoggingEndpoint(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/GetLoggingEndpoint',
amit.ghosh5d97dba2020-11-12 16:45:27 +0100404 dmi_dot_hw__pb2.HardwareID.SerializeToString,
amit.ghosh188a84f2020-09-27 20:59:25 +0200405 dmi_dot_hw__management__service__pb2.GetLoggingEndpointResponse.FromString,
406 options, channel_credentials,
407 insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
408
409 @staticmethod
410 def SetMsgBusEndpoint(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/SetMsgBusEndpoint',
421 dmi_dot_hw__management__service__pb2.SetMsgBusEndpointRequest.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 GetMsgBusEndpoint(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/GetMsgBusEndpoint',
438 google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
439 dmi_dot_hw__management__service__pb2.GetMsgBusEndpointResponse.FromString,
440 options, channel_credentials,
441 insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
Andrea Campanellab91e9a42020-10-09 14:31:43 +0200442
443 @staticmethod
444 def GetLoggableEntities(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/GetLoggableEntities',
455 dmi_dot_hw__management__service__pb2.GetLoggableEntitiesRequest.SerializeToString,
456 dmi_dot_hw__management__service__pb2.GetLogLevelResponse.FromString,
457 options, channel_credentials,
458 insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
459
460 @staticmethod
461 def SetLogLevel(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/SetLogLevel',
472 dmi_dot_hw__management__service__pb2.SetLogLevelRequest.SerializeToString,
473 dmi_dot_hw__management__service__pb2.SetLogLevelResponse.FromString,
474 options, channel_credentials,
475 insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
476
477 @staticmethod
478 def GetLogLevel(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/GetLogLevel',
489 dmi_dot_hw__management__service__pb2.GetLogLevelRequest.SerializeToString,
490 dmi_dot_hw__management__service__pb2.GetLogLevelResponse.FromString,
491 options, channel_credentials,
492 insecure, call_credentials, compression, wait_for_ready, timeout, metadata)