uwe ottrembka | 5ea5c0a | 2020-08-31 10:37:35 +0200 | [diff] [blame] | 1 | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! |
| 2 | """Client and server classes corresponding to protobuf-defined services.""" |
| 3 | import grpc |
| 4 | |
| 5 | from dmi import hw_management_service_pb2 as dmi_dot_hw__management__service__pb2 |
| 6 | from dmi import hw_pb2 as dmi_dot_hw__pb2 |
Andrea Campanella | cb990bc | 2020-09-22 12:50:56 +0200 | [diff] [blame] | 7 | from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 |
uwe ottrembka | 5ea5c0a | 2020-08-31 10:37:35 +0200 | [diff] [blame] | 8 | |
| 9 | |
| 10 | class 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 Campanella | cb990bc | 2020-09-22 12:50:56 +0200 | [diff] [blame] | 29 | 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 ottrembka | 5ea5c0a | 2020-08-31 10:37:35 +0200 | [diff] [blame] | 34 | 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, |
aghosh | c301dcd | 2020-09-03 16:55:34 +0100 | [diff] [blame] | 42 | response_deserializer=dmi_dot_hw__management__service__pb2.HWComponentInfoGetResponse.FromString, |
uwe ottrembka | 5ea5c0a | 2020-08-31 10:37:35 +0200 | [diff] [blame] | 43 | ) |
| 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.ghosh | 188a84f | 2020-09-27 20:59:25 +0200 | [diff] [blame] | 49 | 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.ghosh | 5d97dba | 2020-11-12 16:45:27 +0100 | [diff] [blame] | 56 | request_serializer=dmi_dot_hw__pb2.HardwareID.SerializeToString, |
amit.ghosh | 188a84f | 2020-09-27 20:59:25 +0200 | [diff] [blame] | 57 | 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 Campanella | b91e9a4 | 2020-10-09 14:31:43 +0200 | [diff] [blame] | 69 | 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 Gowda | 415b83c | 2021-04-28 18:01:29 +0530 | [diff] [blame] | 84 | 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 Gowda | 2f6066c | 2021-05-13 12:36:32 +0530 | [diff] [blame] | 89 | 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.ghosh | 9318351 | 2024-05-28 22:37:27 +0200 | [diff] [blame^] | 94 | 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 ottrembka | 5ea5c0a | 2020-08-31 10:37:35 +0200 | [diff] [blame] | 104 | |
| 105 | |
| 106 | class 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.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 126 | This rpc can be called at any time, even before the StartManagingDevice operation
|
| 127 | has completed, and should be able to cleanup.
|
uwe ottrembka | 5ea5c0a | 2020-08-31 10:37:35 +0200 | [diff] [blame] | 128 | """ |
| 129 | context.set_code(grpc.StatusCode.UNIMPLEMENTED) |
| 130 | context.set_details('Method not implemented!') |
| 131 | raise NotImplementedError('Method not implemented!') |
| 132 | |
Andrea Campanella | cb990bc | 2020-09-22 12:50:56 +0200 | [diff] [blame] | 133 | 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 ottrembka | 5ea5c0a | 2020-08-31 10:37:35 +0200 | [diff] [blame] | 140 | 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.ghosh | 188a84f | 2020-09-27 20:59:25 +0200 | [diff] [blame] | 161 | 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 Campanella | b91e9a4 | 2020-10-09 14:31:43 +0200 | [diff] [blame] | 189 | 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.ghosh | 5d97dba | 2020-11-12 16:45:27 +0100 | [diff] [blame] | 199 | """Sets the log level of the device, for each given entity to a certain level.
|
Andrea Campanella | b91e9a4 | 2020-10-09 14:31:43 +0200 | [diff] [blame] | 200 | 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 Gowda | 415b83c | 2021-04-28 18:01:29 +0530 | [diff] [blame] | 215 | 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 Gowda | 2f6066c | 2021-05-13 12:36:32 +0530 | [diff] [blame] | 222 | 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.ghosh | 9318351 | 2024-05-28 22:37:27 +0200 | [diff] [blame^] | 229 | 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 ottrembka | 5ea5c0a | 2020-08-31 10:37:35 +0200 | [diff] [blame] | 243 | |
| 244 | def 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 Campanella | cb990bc | 2020-09-22 12:50:56 +0200 | [diff] [blame] | 256 | '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 ottrembka | 5ea5c0a | 2020-08-31 10:37:35 +0200 | [diff] [blame] | 261 | '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, |
aghosh | c301dcd | 2020-09-03 16:55:34 +0100 | [diff] [blame] | 269 | response_serializer=dmi_dot_hw__management__service__pb2.HWComponentInfoGetResponse.SerializeToString, |
uwe ottrembka | 5ea5c0a | 2020-08-31 10:37:35 +0200 | [diff] [blame] | 270 | ), |
| 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.ghosh | 188a84f | 2020-09-27 20:59:25 +0200 | [diff] [blame] | 276 | '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.ghosh | 5d97dba | 2020-11-12 16:45:27 +0100 | [diff] [blame] | 283 | request_deserializer=dmi_dot_hw__pb2.HardwareID.FromString, |
amit.ghosh | 188a84f | 2020-09-27 20:59:25 +0200 | [diff] [blame] | 284 | 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 Campanella | b91e9a4 | 2020-10-09 14:31:43 +0200 | [diff] [blame] | 296 | '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 Gowda | 415b83c | 2021-04-28 18:01:29 +0530 | [diff] [blame] | 311 | '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 Gowda | 2f6066c | 2021-05-13 12:36:32 +0530 | [diff] [blame] | 316 | '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.ghosh | 9318351 | 2024-05-28 22:37:27 +0200 | [diff] [blame^] | 321 | '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 ottrembka | 5ea5c0a | 2020-08-31 10:37:35 +0200 | [diff] [blame] | 331 | } |
| 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. |
| 338 | class 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 Campanella | cb990bc | 2020-09-22 12:50:56 +0200 | [diff] [blame] | 376 | 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 ottrembka | 5ea5c0a | 2020-08-31 10:37:35 +0200 | [diff] [blame] | 393 | 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, |
aghosh | c301dcd | 2020-09-03 16:55:34 +0100 | [diff] [blame] | 422 | dmi_dot_hw__management__service__pb2.HWComponentInfoGetResponse.FromString, |
uwe ottrembka | 5ea5c0a | 2020-08-31 10:37:35 +0200 | [diff] [blame] | 423 | 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.ghosh | 188a84f | 2020-09-27 20:59:25 +0200 | [diff] [blame] | 442 | |
| 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.ghosh | 5d97dba | 2020-11-12 16:45:27 +0100 | [diff] [blame] | 472 | dmi_dot_hw__pb2.HardwareID.SerializeToString, |
amit.ghosh | 188a84f | 2020-09-27 20:59:25 +0200 | [diff] [blame] | 473 | 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 Campanella | b91e9a4 | 2020-10-09 14:31:43 +0200 | [diff] [blame] | 510 | |
| 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 Gowda | 415b83c | 2021-04-28 18:01:29 +0530 | [diff] [blame] | 561 | |
| 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 Gowda | 2f6066c | 2021-05-13 12:36:32 +0530 | [diff] [blame] | 578 | |
| 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.ghosh | 9318351 | 2024-05-28 22:37:27 +0200 | [diff] [blame^] | 595 | |
| 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) |