blob: 035987bb21a1e7e054278eb5176f500ebaec9265 [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 )
Amit Ghoshe45d9972025-06-26 14:52:48 +0200104 self.DisableHWComponent = channel.unary_unary(
105 '/dmi.NativeHWManagementService/DisableHWComponent',
106 request_serializer=dmi_dot_hw__management__service__pb2.DisableHWComponentRequest.SerializeToString,
107 response_deserializer=dmi_dot_hw__management__service__pb2.DisableHWComponentResponse.FromString,
108 )
109 self.ResetHWComponent = channel.unary_unary(
110 '/dmi.NativeHWManagementService/ResetHWComponent',
111 request_serializer=dmi_dot_hw__management__service__pb2.ResetHWComponentRequest.SerializeToString,
112 response_deserializer=dmi_dot_hw__management__service__pb2.ResetHWComponentResponse.FromString,
113 )
114 self.EnableHWComponent = channel.unary_unary(
115 '/dmi.NativeHWManagementService/EnableHWComponent',
116 request_serializer=dmi_dot_hw__management__service__pb2.EnableHWComponentRequest.SerializeToString,
117 response_deserializer=dmi_dot_hw__management__service__pb2.EnableHWComponentResponse.FromString,
118 )
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200119
120
121class NativeHWManagementServiceServicer(object):
122 """Missing associated documentation comment in .proto file."""
123
124 def StartManagingDevice(self, request, context):
125 """Initializes context for a device and sets up required states
126 In the call to StartManagingDevice, the fields of ModifiableComponent which are relevant
127 and their meanings in this context is mentioned below:
128 name = The unique name that needs to be assigned to this hardware;
129 class = COMPONENT_TYPE_UNDEFINED;
130 parent = nil;
131 alias = Optional;
132 asset_id = Optional;
133 uri = IP Address of the Hardware;
134 """
135 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
136 context.set_details('Method not implemented!')
137 raise NotImplementedError('Method not implemented!')
138
139 def StopManagingDevice(self, request, context):
140 """Stop management of a device and clean up any context and caches for that device
amit.ghoshae473032021-01-10 11:59:10 +0100141 This rpc can be called at any time, even before the StartManagingDevice operation
142 has completed, and should be able to cleanup.
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200143 """
144 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
145 context.set_details('Method not implemented!')
146 raise NotImplementedError('Method not implemented!')
147
Andrea Campanellacb990bc2020-09-22 12:50:56 +0200148 def GetManagedDevices(self, request, context):
149 """Returns an object containing a list of devices managed by this entity
150 """
151 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
152 context.set_details('Method not implemented!')
153 raise NotImplementedError('Method not implemented!')
154
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200155 def GetPhysicalInventory(self, request, context):
156 """Get the HW inventory details of the Device
157 """
158 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
159 context.set_details('Method not implemented!')
160 raise NotImplementedError('Method not implemented!')
161
162 def GetHWComponentInfo(self, request, context):
163 """Get the details of a particular HW component
164 """
165 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
166 context.set_details('Method not implemented!')
167 raise NotImplementedError('Method not implemented!')
168
169 def SetHWComponentInfo(self, request, context):
170 """Sets the permissible attributes of a HW component
171 """
172 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
173 context.set_details('Method not implemented!')
174 raise NotImplementedError('Method not implemented!')
175
amit.ghosh188a84f2020-09-27 20:59:25 +0200176 def SetLoggingEndpoint(self, request, context):
177 """Sets the location to which logs need to be shipped
178 """
179 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
180 context.set_details('Method not implemented!')
181 raise NotImplementedError('Method not implemented!')
182
183 def GetLoggingEndpoint(self, request, context):
184 """Gets the configured location to which the logs are being shipped
185 """
186 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
187 context.set_details('Method not implemented!')
188 raise NotImplementedError('Method not implemented!')
189
190 def SetMsgBusEndpoint(self, request, context):
191 """Sets the location of the Message Bus to which events and metrics are shipped
192 """
193 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
194 context.set_details('Method not implemented!')
195 raise NotImplementedError('Method not implemented!')
196
197 def GetMsgBusEndpoint(self, request, context):
198 """Gets the configured location to which the events and metrics are being shipped
199 """
200 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
201 context.set_details('Method not implemented!')
202 raise NotImplementedError('Method not implemented!')
203
Andrea Campanellab91e9a42020-10-09 14:31:43 +0200204 def GetLoggableEntities(self, request, context):
205 """Gets the entities of a device on which log can be configured. A few are expected, like OS, PON Management etc.
206 In general an entity is any item within an hardware system that can emit logs, e.g. service, process, subsystem,
207 interface, package etc.
208 """
209 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
210 context.set_details('Method not implemented!')
211 raise NotImplementedError('Method not implemented!')
212
213 def SetLogLevel(self, request, context):
amit.ghosh5d97dba2020-11-12 16:45:27 +0100214 """Sets the log level of the device, for each given entity to a certain level.
Andrea Campanellab91e9a42020-10-09 14:31:43 +0200215 If only one EntitiesLogLevel is provided for the device and that request contains only a log level with
216 no entity in the list it's assumed that the caller wants to set that level for all the entities.
217 """
218 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
219 context.set_details('Method not implemented!')
220 raise NotImplementedError('Method not implemented!')
221
222 def GetLogLevel(self, request, context):
223 """Gets the configured log level for a certain entity on a certain device.
224 If no entity is specified in the request all the entities with their log level should be returned.
225 """
226 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
227 context.set_details('Method not implemented!')
228 raise NotImplementedError('Method not implemented!')
229
Chandrakanth Nalkudre Gowda415b83c2021-04-28 18:01:29 +0530230 def HeartbeatCheck(self, request, context):
231 """Performs the heartbeat check
232 """
233 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
234 context.set_details('Method not implemented!')
235 raise NotImplementedError('Method not implemented!')
236
Chandrakanth Nalkudre Gowda2f6066c2021-05-13 12:36:32 +0530237 def RebootDevice(self, request, context):
238 """Performs the reboot of the device
239 """
240 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
241 context.set_details('Method not implemented!')
242 raise NotImplementedError('Method not implemented!')
243
amit.ghosh93183512024-05-28 22:37:27 +0200244 def SetDmLogLevel(self, request, context):
245 """Sets the log level of the Device Manager itself
246 """
247 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
248 context.set_details('Method not implemented!')
249 raise NotImplementedError('Method not implemented!')
250
251 def GetDmLogLevel(self, request, context):
252 """Gets the log level at which the Device Manager is running
253 """
254 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
255 context.set_details('Method not implemented!')
256 raise NotImplementedError('Method not implemented!')
257
Amit Ghoshe45d9972025-06-26 14:52:48 +0200258 def DisableHWComponent(self, request, context):
259 """Disables a hardware component on a device.
260 """
261 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
262 context.set_details('Method not implemented!')
263 raise NotImplementedError('Method not implemented!')
264
265 def ResetHWComponent(self, request, context):
266 """Resets a hardware component on a device.
267 """
268 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
269 context.set_details('Method not implemented!')
270 raise NotImplementedError('Method not implemented!')
271
272 def EnableHWComponent(self, request, context):
273 """Enables a hardware component on a device.
274 """
275 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
276 context.set_details('Method not implemented!')
277 raise NotImplementedError('Method not implemented!')
278
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200279
280def add_NativeHWManagementServiceServicer_to_server(servicer, server):
281 rpc_method_handlers = {
282 'StartManagingDevice': grpc.unary_stream_rpc_method_handler(
283 servicer.StartManagingDevice,
284 request_deserializer=dmi_dot_hw__pb2.ModifiableComponent.FromString,
285 response_serializer=dmi_dot_hw__management__service__pb2.StartManagingDeviceResponse.SerializeToString,
286 ),
287 'StopManagingDevice': grpc.unary_unary_rpc_method_handler(
288 servicer.StopManagingDevice,
289 request_deserializer=dmi_dot_hw__management__service__pb2.StopManagingDeviceRequest.FromString,
290 response_serializer=dmi_dot_hw__management__service__pb2.StopManagingDeviceResponse.SerializeToString,
291 ),
Andrea Campanellacb990bc2020-09-22 12:50:56 +0200292 'GetManagedDevices': grpc.unary_unary_rpc_method_handler(
293 servicer.GetManagedDevices,
294 request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
295 response_serializer=dmi_dot_hw__management__service__pb2.ManagedDevicesResponse.SerializeToString,
296 ),
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200297 'GetPhysicalInventory': grpc.unary_stream_rpc_method_handler(
298 servicer.GetPhysicalInventory,
299 request_deserializer=dmi_dot_hw__management__service__pb2.PhysicalInventoryRequest.FromString,
300 response_serializer=dmi_dot_hw__management__service__pb2.PhysicalInventoryResponse.SerializeToString,
301 ),
302 'GetHWComponentInfo': grpc.unary_stream_rpc_method_handler(
303 servicer.GetHWComponentInfo,
304 request_deserializer=dmi_dot_hw__management__service__pb2.HWComponentInfoGetRequest.FromString,
aghoshc301dcd2020-09-03 16:55:34 +0100305 response_serializer=dmi_dot_hw__management__service__pb2.HWComponentInfoGetResponse.SerializeToString,
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200306 ),
307 'SetHWComponentInfo': grpc.unary_unary_rpc_method_handler(
308 servicer.SetHWComponentInfo,
309 request_deserializer=dmi_dot_hw__management__service__pb2.HWComponentInfoSetRequest.FromString,
310 response_serializer=dmi_dot_hw__management__service__pb2.HWComponentInfoSetResponse.SerializeToString,
311 ),
amit.ghosh188a84f2020-09-27 20:59:25 +0200312 'SetLoggingEndpoint': grpc.unary_unary_rpc_method_handler(
313 servicer.SetLoggingEndpoint,
314 request_deserializer=dmi_dot_hw__management__service__pb2.SetLoggingEndpointRequest.FromString,
315 response_serializer=dmi_dot_hw__management__service__pb2.SetRemoteEndpointResponse.SerializeToString,
316 ),
317 'GetLoggingEndpoint': grpc.unary_unary_rpc_method_handler(
318 servicer.GetLoggingEndpoint,
amit.ghosh5d97dba2020-11-12 16:45:27 +0100319 request_deserializer=dmi_dot_hw__pb2.HardwareID.FromString,
amit.ghosh188a84f2020-09-27 20:59:25 +0200320 response_serializer=dmi_dot_hw__management__service__pb2.GetLoggingEndpointResponse.SerializeToString,
321 ),
322 'SetMsgBusEndpoint': grpc.unary_unary_rpc_method_handler(
323 servicer.SetMsgBusEndpoint,
324 request_deserializer=dmi_dot_hw__management__service__pb2.SetMsgBusEndpointRequest.FromString,
325 response_serializer=dmi_dot_hw__management__service__pb2.SetRemoteEndpointResponse.SerializeToString,
326 ),
327 'GetMsgBusEndpoint': grpc.unary_unary_rpc_method_handler(
328 servicer.GetMsgBusEndpoint,
329 request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
330 response_serializer=dmi_dot_hw__management__service__pb2.GetMsgBusEndpointResponse.SerializeToString,
331 ),
Andrea Campanellab91e9a42020-10-09 14:31:43 +0200332 'GetLoggableEntities': grpc.unary_unary_rpc_method_handler(
333 servicer.GetLoggableEntities,
334 request_deserializer=dmi_dot_hw__management__service__pb2.GetLoggableEntitiesRequest.FromString,
335 response_serializer=dmi_dot_hw__management__service__pb2.GetLogLevelResponse.SerializeToString,
336 ),
337 'SetLogLevel': grpc.unary_unary_rpc_method_handler(
338 servicer.SetLogLevel,
339 request_deserializer=dmi_dot_hw__management__service__pb2.SetLogLevelRequest.FromString,
340 response_serializer=dmi_dot_hw__management__service__pb2.SetLogLevelResponse.SerializeToString,
341 ),
342 'GetLogLevel': grpc.unary_unary_rpc_method_handler(
343 servicer.GetLogLevel,
344 request_deserializer=dmi_dot_hw__management__service__pb2.GetLogLevelRequest.FromString,
345 response_serializer=dmi_dot_hw__management__service__pb2.GetLogLevelResponse.SerializeToString,
346 ),
Chandrakanth Nalkudre Gowda415b83c2021-04-28 18:01:29 +0530347 'HeartbeatCheck': grpc.unary_unary_rpc_method_handler(
348 servicer.HeartbeatCheck,
349 request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
350 response_serializer=dmi_dot_hw__management__service__pb2.Heartbeat.SerializeToString,
351 ),
Chandrakanth Nalkudre Gowda2f6066c2021-05-13 12:36:32 +0530352 'RebootDevice': grpc.unary_unary_rpc_method_handler(
353 servicer.RebootDevice,
354 request_deserializer=dmi_dot_hw__management__service__pb2.RebootDeviceRequest.FromString,
355 response_serializer=dmi_dot_hw__management__service__pb2.RebootDeviceResponse.SerializeToString,
356 ),
amit.ghosh93183512024-05-28 22:37:27 +0200357 'SetDmLogLevel': grpc.unary_unary_rpc_method_handler(
358 servicer.SetDmLogLevel,
359 request_deserializer=dmi_dot_hw__management__service__pb2.SetDmLogLevelRequest.FromString,
360 response_serializer=dmi_dot_hw__management__service__pb2.SetDmLogLevelResponse.SerializeToString,
361 ),
362 'GetDmLogLevel': grpc.unary_unary_rpc_method_handler(
363 servicer.GetDmLogLevel,
364 request_deserializer=dmi_dot_hw__management__service__pb2.GetDmLogLevelRequest.FromString,
365 response_serializer=dmi_dot_hw__management__service__pb2.GetDmLogLevelResponse.SerializeToString,
366 ),
Amit Ghoshe45d9972025-06-26 14:52:48 +0200367 'DisableHWComponent': grpc.unary_unary_rpc_method_handler(
368 servicer.DisableHWComponent,
369 request_deserializer=dmi_dot_hw__management__service__pb2.DisableHWComponentRequest.FromString,
370 response_serializer=dmi_dot_hw__management__service__pb2.DisableHWComponentResponse.SerializeToString,
371 ),
372 'ResetHWComponent': grpc.unary_unary_rpc_method_handler(
373 servicer.ResetHWComponent,
374 request_deserializer=dmi_dot_hw__management__service__pb2.ResetHWComponentRequest.FromString,
375 response_serializer=dmi_dot_hw__management__service__pb2.ResetHWComponentResponse.SerializeToString,
376 ),
377 'EnableHWComponent': grpc.unary_unary_rpc_method_handler(
378 servicer.EnableHWComponent,
379 request_deserializer=dmi_dot_hw__management__service__pb2.EnableHWComponentRequest.FromString,
380 response_serializer=dmi_dot_hw__management__service__pb2.EnableHWComponentResponse.SerializeToString,
381 ),
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200382 }
383 generic_handler = grpc.method_handlers_generic_handler(
384 'dmi.NativeHWManagementService', rpc_method_handlers)
385 server.add_generic_rpc_handlers((generic_handler,))
386
387
388 # This class is part of an EXPERIMENTAL API.
389class NativeHWManagementService(object):
390 """Missing associated documentation comment in .proto file."""
391
392 @staticmethod
393 def StartManagingDevice(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/StartManagingDevice',
404 dmi_dot_hw__pb2.ModifiableComponent.SerializeToString,
405 dmi_dot_hw__management__service__pb2.StartManagingDeviceResponse.FromString,
406 options, channel_credentials,
407 insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
408
409 @staticmethod
410 def StopManagingDevice(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/StopManagingDevice',
421 dmi_dot_hw__management__service__pb2.StopManagingDeviceRequest.SerializeToString,
422 dmi_dot_hw__management__service__pb2.StopManagingDeviceResponse.FromString,
423 options, channel_credentials,
424 insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
425
426 @staticmethod
Andrea Campanellacb990bc2020-09-22 12:50:56 +0200427 def GetManagedDevices(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/GetManagedDevices',
438 google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
439 dmi_dot_hw__management__service__pb2.ManagedDevicesResponse.FromString,
440 options, channel_credentials,
441 insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
442
443 @staticmethod
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200444 def GetPhysicalInventory(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_stream(request, target, '/dmi.NativeHWManagementService/GetPhysicalInventory',
455 dmi_dot_hw__management__service__pb2.PhysicalInventoryRequest.SerializeToString,
456 dmi_dot_hw__management__service__pb2.PhysicalInventoryResponse.FromString,
457 options, channel_credentials,
458 insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
459
460 @staticmethod
461 def GetHWComponentInfo(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_stream(request, target, '/dmi.NativeHWManagementService/GetHWComponentInfo',
472 dmi_dot_hw__management__service__pb2.HWComponentInfoGetRequest.SerializeToString,
aghoshc301dcd2020-09-03 16:55:34 +0100473 dmi_dot_hw__management__service__pb2.HWComponentInfoGetResponse.FromString,
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200474 options, channel_credentials,
475 insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
476
477 @staticmethod
478 def SetHWComponentInfo(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/SetHWComponentInfo',
489 dmi_dot_hw__management__service__pb2.HWComponentInfoSetRequest.SerializeToString,
490 dmi_dot_hw__management__service__pb2.HWComponentInfoSetResponse.FromString,
491 options, channel_credentials,
492 insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
amit.ghosh188a84f2020-09-27 20:59:25 +0200493
494 @staticmethod
495 def SetLoggingEndpoint(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/SetLoggingEndpoint',
506 dmi_dot_hw__management__service__pb2.SetLoggingEndpointRequest.SerializeToString,
507 dmi_dot_hw__management__service__pb2.SetRemoteEndpointResponse.FromString,
508 options, channel_credentials,
509 insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
510
511 @staticmethod
512 def GetLoggingEndpoint(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/GetLoggingEndpoint',
amit.ghosh5d97dba2020-11-12 16:45:27 +0100523 dmi_dot_hw__pb2.HardwareID.SerializeToString,
amit.ghosh188a84f2020-09-27 20:59:25 +0200524 dmi_dot_hw__management__service__pb2.GetLoggingEndpointResponse.FromString,
525 options, channel_credentials,
526 insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
527
528 @staticmethod
529 def SetMsgBusEndpoint(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/SetMsgBusEndpoint',
540 dmi_dot_hw__management__service__pb2.SetMsgBusEndpointRequest.SerializeToString,
541 dmi_dot_hw__management__service__pb2.SetRemoteEndpointResponse.FromString,
542 options, channel_credentials,
543 insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
544
545 @staticmethod
546 def GetMsgBusEndpoint(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/GetMsgBusEndpoint',
557 google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
558 dmi_dot_hw__management__service__pb2.GetMsgBusEndpointResponse.FromString,
559 options, channel_credentials,
560 insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
Andrea Campanellab91e9a42020-10-09 14:31:43 +0200561
562 @staticmethod
563 def GetLoggableEntities(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/GetLoggableEntities',
574 dmi_dot_hw__management__service__pb2.GetLoggableEntitiesRequest.SerializeToString,
575 dmi_dot_hw__management__service__pb2.GetLogLevelResponse.FromString,
576 options, channel_credentials,
577 insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
578
579 @staticmethod
580 def SetLogLevel(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/SetLogLevel',
591 dmi_dot_hw__management__service__pb2.SetLogLevelRequest.SerializeToString,
592 dmi_dot_hw__management__service__pb2.SetLogLevelResponse.FromString,
593 options, channel_credentials,
594 insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
595
596 @staticmethod
597 def GetLogLevel(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/GetLogLevel',
608 dmi_dot_hw__management__service__pb2.GetLogLevelRequest.SerializeToString,
609 dmi_dot_hw__management__service__pb2.GetLogLevelResponse.FromString,
610 options, channel_credentials,
611 insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
Chandrakanth Nalkudre Gowda415b83c2021-04-28 18:01:29 +0530612
613 @staticmethod
614 def HeartbeatCheck(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/HeartbeatCheck',
625 google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
626 dmi_dot_hw__management__service__pb2.Heartbeat.FromString,
627 options, channel_credentials,
628 insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
Chandrakanth Nalkudre Gowda2f6066c2021-05-13 12:36:32 +0530629
630 @staticmethod
631 def RebootDevice(request,
632 target,
633 options=(),
634 channel_credentials=None,
635 call_credentials=None,
636 insecure=False,
637 compression=None,
638 wait_for_ready=None,
639 timeout=None,
640 metadata=None):
641 return grpc.experimental.unary_unary(request, target, '/dmi.NativeHWManagementService/RebootDevice',
642 dmi_dot_hw__management__service__pb2.RebootDeviceRequest.SerializeToString,
643 dmi_dot_hw__management__service__pb2.RebootDeviceResponse.FromString,
644 options, channel_credentials,
645 insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
amit.ghosh93183512024-05-28 22:37:27 +0200646
647 @staticmethod
648 def SetDmLogLevel(request,
649 target,
650 options=(),
651 channel_credentials=None,
652 call_credentials=None,
653 insecure=False,
654 compression=None,
655 wait_for_ready=None,
656 timeout=None,
657 metadata=None):
658 return grpc.experimental.unary_unary(request, target, '/dmi.NativeHWManagementService/SetDmLogLevel',
659 dmi_dot_hw__management__service__pb2.SetDmLogLevelRequest.SerializeToString,
660 dmi_dot_hw__management__service__pb2.SetDmLogLevelResponse.FromString,
661 options, channel_credentials,
662 insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
663
664 @staticmethod
665 def GetDmLogLevel(request,
666 target,
667 options=(),
668 channel_credentials=None,
669 call_credentials=None,
670 insecure=False,
671 compression=None,
672 wait_for_ready=None,
673 timeout=None,
674 metadata=None):
675 return grpc.experimental.unary_unary(request, target, '/dmi.NativeHWManagementService/GetDmLogLevel',
676 dmi_dot_hw__management__service__pb2.GetDmLogLevelRequest.SerializeToString,
677 dmi_dot_hw__management__service__pb2.GetDmLogLevelResponse.FromString,
678 options, channel_credentials,
679 insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
Amit Ghoshe45d9972025-06-26 14:52:48 +0200680
681 @staticmethod
682 def DisableHWComponent(request,
683 target,
684 options=(),
685 channel_credentials=None,
686 call_credentials=None,
687 insecure=False,
688 compression=None,
689 wait_for_ready=None,
690 timeout=None,
691 metadata=None):
692 return grpc.experimental.unary_unary(request, target, '/dmi.NativeHWManagementService/DisableHWComponent',
693 dmi_dot_hw__management__service__pb2.DisableHWComponentRequest.SerializeToString,
694 dmi_dot_hw__management__service__pb2.DisableHWComponentResponse.FromString,
695 options, channel_credentials,
696 insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
697
698 @staticmethod
699 def ResetHWComponent(request,
700 target,
701 options=(),
702 channel_credentials=None,
703 call_credentials=None,
704 insecure=False,
705 compression=None,
706 wait_for_ready=None,
707 timeout=None,
708 metadata=None):
709 return grpc.experimental.unary_unary(request, target, '/dmi.NativeHWManagementService/ResetHWComponent',
710 dmi_dot_hw__management__service__pb2.ResetHWComponentRequest.SerializeToString,
711 dmi_dot_hw__management__service__pb2.ResetHWComponentResponse.FromString,
712 options, channel_credentials,
713 insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
714
715 @staticmethod
716 def EnableHWComponent(request,
717 target,
718 options=(),
719 channel_credentials=None,
720 call_credentials=None,
721 insecure=False,
722 compression=None,
723 wait_for_ready=None,
724 timeout=None,
725 metadata=None):
726 return grpc.experimental.unary_unary(request, target, '/dmi.NativeHWManagementService/EnableHWComponent',
727 dmi_dot_hw__management__service__pb2.EnableHWComponentRequest.SerializeToString,
728 dmi_dot_hw__management__service__pb2.EnableHWComponentResponse.FromString,
729 options, channel_credentials,
730 insecure, call_credentials, compression, wait_for_ready, timeout, metadata)