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 | ) |
uwe ottrembka | 5ea5c0a | 2020-08-31 10:37:35 +0200 | [diff] [blame] | 94 | |
| 95 | |
| 96 | class NativeHWManagementServiceServicer(object): |
| 97 | """Missing associated documentation comment in .proto file.""" |
| 98 | |
| 99 | def StartManagingDevice(self, request, context): |
| 100 | """Initializes context for a device and sets up required states
|
| 101 | In the call to StartManagingDevice, the fields of ModifiableComponent which are relevant
|
| 102 | and their meanings in this context is mentioned below:
|
| 103 | name = The unique name that needs to be assigned to this hardware;
|
| 104 | class = COMPONENT_TYPE_UNDEFINED;
|
| 105 | parent = nil;
|
| 106 | alias = Optional;
|
| 107 | asset_id = Optional;
|
| 108 | uri = IP Address of the Hardware;
|
| 109 | """ |
| 110 | context.set_code(grpc.StatusCode.UNIMPLEMENTED) |
| 111 | context.set_details('Method not implemented!') |
| 112 | raise NotImplementedError('Method not implemented!') |
| 113 | |
| 114 | def StopManagingDevice(self, request, context): |
| 115 | """Stop management of a device and clean up any context and caches for that device
|
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 116 | This rpc can be called at any time, even before the StartManagingDevice operation
|
| 117 | has completed, and should be able to cleanup.
|
uwe ottrembka | 5ea5c0a | 2020-08-31 10:37:35 +0200 | [diff] [blame] | 118 | """ |
| 119 | context.set_code(grpc.StatusCode.UNIMPLEMENTED) |
| 120 | context.set_details('Method not implemented!') |
| 121 | raise NotImplementedError('Method not implemented!') |
| 122 | |
Andrea Campanella | cb990bc | 2020-09-22 12:50:56 +0200 | [diff] [blame] | 123 | def GetManagedDevices(self, request, context): |
| 124 | """Returns an object containing a list of devices managed by this entity
|
| 125 | """ |
| 126 | context.set_code(grpc.StatusCode.UNIMPLEMENTED) |
| 127 | context.set_details('Method not implemented!') |
| 128 | raise NotImplementedError('Method not implemented!') |
| 129 | |
uwe ottrembka | 5ea5c0a | 2020-08-31 10:37:35 +0200 | [diff] [blame] | 130 | def GetPhysicalInventory(self, request, context): |
| 131 | """Get the HW inventory details of the Device
|
| 132 | """ |
| 133 | context.set_code(grpc.StatusCode.UNIMPLEMENTED) |
| 134 | context.set_details('Method not implemented!') |
| 135 | raise NotImplementedError('Method not implemented!') |
| 136 | |
| 137 | def GetHWComponentInfo(self, request, context): |
| 138 | """Get the details of a particular HW component
|
| 139 | """ |
| 140 | context.set_code(grpc.StatusCode.UNIMPLEMENTED) |
| 141 | context.set_details('Method not implemented!') |
| 142 | raise NotImplementedError('Method not implemented!') |
| 143 | |
| 144 | def SetHWComponentInfo(self, request, context): |
| 145 | """Sets the permissible attributes of a HW component
|
| 146 | """ |
| 147 | context.set_code(grpc.StatusCode.UNIMPLEMENTED) |
| 148 | context.set_details('Method not implemented!') |
| 149 | raise NotImplementedError('Method not implemented!') |
| 150 | |
amit.ghosh | 188a84f | 2020-09-27 20:59:25 +0200 | [diff] [blame] | 151 | def SetLoggingEndpoint(self, request, context): |
| 152 | """Sets the location to which logs need to be shipped
|
| 153 | """ |
| 154 | context.set_code(grpc.StatusCode.UNIMPLEMENTED) |
| 155 | context.set_details('Method not implemented!') |
| 156 | raise NotImplementedError('Method not implemented!') |
| 157 | |
| 158 | def GetLoggingEndpoint(self, request, context): |
| 159 | """Gets the configured location to which the logs are being shipped
|
| 160 | """ |
| 161 | context.set_code(grpc.StatusCode.UNIMPLEMENTED) |
| 162 | context.set_details('Method not implemented!') |
| 163 | raise NotImplementedError('Method not implemented!') |
| 164 | |
| 165 | def SetMsgBusEndpoint(self, request, context): |
| 166 | """Sets the location of the Message Bus to which events and metrics are shipped
|
| 167 | """ |
| 168 | context.set_code(grpc.StatusCode.UNIMPLEMENTED) |
| 169 | context.set_details('Method not implemented!') |
| 170 | raise NotImplementedError('Method not implemented!') |
| 171 | |
| 172 | def GetMsgBusEndpoint(self, request, context): |
| 173 | """Gets the configured location to which the events and metrics are being shipped
|
| 174 | """ |
| 175 | context.set_code(grpc.StatusCode.UNIMPLEMENTED) |
| 176 | context.set_details('Method not implemented!') |
| 177 | raise NotImplementedError('Method not implemented!') |
| 178 | |
Andrea Campanella | b91e9a4 | 2020-10-09 14:31:43 +0200 | [diff] [blame] | 179 | def GetLoggableEntities(self, request, context): |
| 180 | """Gets the entities of a device on which log can be configured. A few are expected, like OS, PON Management etc.
|
| 181 | In general an entity is any item within an hardware system that can emit logs, e.g. service, process, subsystem,
|
| 182 | interface, package etc.
|
| 183 | """ |
| 184 | context.set_code(grpc.StatusCode.UNIMPLEMENTED) |
| 185 | context.set_details('Method not implemented!') |
| 186 | raise NotImplementedError('Method not implemented!') |
| 187 | |
| 188 | def SetLogLevel(self, request, context): |
amit.ghosh | 5d97dba | 2020-11-12 16:45:27 +0100 | [diff] [blame] | 189 | """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] | 190 | If only one EntitiesLogLevel is provided for the device and that request contains only a log level with
|
| 191 | no entity in the list it's assumed that the caller wants to set that level for all the entities.
|
| 192 | """ |
| 193 | context.set_code(grpc.StatusCode.UNIMPLEMENTED) |
| 194 | context.set_details('Method not implemented!') |
| 195 | raise NotImplementedError('Method not implemented!') |
| 196 | |
| 197 | def GetLogLevel(self, request, context): |
| 198 | """Gets the configured log level for a certain entity on a certain device.
|
| 199 | If no entity is specified in the request all the entities with their log level should be returned.
|
| 200 | """ |
| 201 | context.set_code(grpc.StatusCode.UNIMPLEMENTED) |
| 202 | context.set_details('Method not implemented!') |
| 203 | raise NotImplementedError('Method not implemented!') |
| 204 | |
Chandrakanth Nalkudre Gowda | 415b83c | 2021-04-28 18:01:29 +0530 | [diff] [blame] | 205 | def HeartbeatCheck(self, request, context): |
| 206 | """Performs the heartbeat check
|
| 207 | """ |
| 208 | context.set_code(grpc.StatusCode.UNIMPLEMENTED) |
| 209 | context.set_details('Method not implemented!') |
| 210 | raise NotImplementedError('Method not implemented!') |
| 211 | |
Chandrakanth Nalkudre Gowda | 2f6066c | 2021-05-13 12:36:32 +0530 | [diff] [blame] | 212 | def RebootDevice(self, request, context): |
| 213 | """Performs the reboot of the device
|
| 214 | """ |
| 215 | context.set_code(grpc.StatusCode.UNIMPLEMENTED) |
| 216 | context.set_details('Method not implemented!') |
| 217 | raise NotImplementedError('Method not implemented!') |
| 218 | |
uwe ottrembka | 5ea5c0a | 2020-08-31 10:37:35 +0200 | [diff] [blame] | 219 | |
| 220 | def add_NativeHWManagementServiceServicer_to_server(servicer, server): |
| 221 | rpc_method_handlers = { |
| 222 | 'StartManagingDevice': grpc.unary_stream_rpc_method_handler( |
| 223 | servicer.StartManagingDevice, |
| 224 | request_deserializer=dmi_dot_hw__pb2.ModifiableComponent.FromString, |
| 225 | response_serializer=dmi_dot_hw__management__service__pb2.StartManagingDeviceResponse.SerializeToString, |
| 226 | ), |
| 227 | 'StopManagingDevice': grpc.unary_unary_rpc_method_handler( |
| 228 | servicer.StopManagingDevice, |
| 229 | request_deserializer=dmi_dot_hw__management__service__pb2.StopManagingDeviceRequest.FromString, |
| 230 | response_serializer=dmi_dot_hw__management__service__pb2.StopManagingDeviceResponse.SerializeToString, |
| 231 | ), |
Andrea Campanella | cb990bc | 2020-09-22 12:50:56 +0200 | [diff] [blame] | 232 | 'GetManagedDevices': grpc.unary_unary_rpc_method_handler( |
| 233 | servicer.GetManagedDevices, |
| 234 | request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, |
| 235 | response_serializer=dmi_dot_hw__management__service__pb2.ManagedDevicesResponse.SerializeToString, |
| 236 | ), |
uwe ottrembka | 5ea5c0a | 2020-08-31 10:37:35 +0200 | [diff] [blame] | 237 | 'GetPhysicalInventory': grpc.unary_stream_rpc_method_handler( |
| 238 | servicer.GetPhysicalInventory, |
| 239 | request_deserializer=dmi_dot_hw__management__service__pb2.PhysicalInventoryRequest.FromString, |
| 240 | response_serializer=dmi_dot_hw__management__service__pb2.PhysicalInventoryResponse.SerializeToString, |
| 241 | ), |
| 242 | 'GetHWComponentInfo': grpc.unary_stream_rpc_method_handler( |
| 243 | servicer.GetHWComponentInfo, |
| 244 | request_deserializer=dmi_dot_hw__management__service__pb2.HWComponentInfoGetRequest.FromString, |
aghosh | c301dcd | 2020-09-03 16:55:34 +0100 | [diff] [blame] | 245 | response_serializer=dmi_dot_hw__management__service__pb2.HWComponentInfoGetResponse.SerializeToString, |
uwe ottrembka | 5ea5c0a | 2020-08-31 10:37:35 +0200 | [diff] [blame] | 246 | ), |
| 247 | 'SetHWComponentInfo': grpc.unary_unary_rpc_method_handler( |
| 248 | servicer.SetHWComponentInfo, |
| 249 | request_deserializer=dmi_dot_hw__management__service__pb2.HWComponentInfoSetRequest.FromString, |
| 250 | response_serializer=dmi_dot_hw__management__service__pb2.HWComponentInfoSetResponse.SerializeToString, |
| 251 | ), |
amit.ghosh | 188a84f | 2020-09-27 20:59:25 +0200 | [diff] [blame] | 252 | 'SetLoggingEndpoint': grpc.unary_unary_rpc_method_handler( |
| 253 | servicer.SetLoggingEndpoint, |
| 254 | request_deserializer=dmi_dot_hw__management__service__pb2.SetLoggingEndpointRequest.FromString, |
| 255 | response_serializer=dmi_dot_hw__management__service__pb2.SetRemoteEndpointResponse.SerializeToString, |
| 256 | ), |
| 257 | 'GetLoggingEndpoint': grpc.unary_unary_rpc_method_handler( |
| 258 | servicer.GetLoggingEndpoint, |
amit.ghosh | 5d97dba | 2020-11-12 16:45:27 +0100 | [diff] [blame] | 259 | request_deserializer=dmi_dot_hw__pb2.HardwareID.FromString, |
amit.ghosh | 188a84f | 2020-09-27 20:59:25 +0200 | [diff] [blame] | 260 | response_serializer=dmi_dot_hw__management__service__pb2.GetLoggingEndpointResponse.SerializeToString, |
| 261 | ), |
| 262 | 'SetMsgBusEndpoint': grpc.unary_unary_rpc_method_handler( |
| 263 | servicer.SetMsgBusEndpoint, |
| 264 | request_deserializer=dmi_dot_hw__management__service__pb2.SetMsgBusEndpointRequest.FromString, |
| 265 | response_serializer=dmi_dot_hw__management__service__pb2.SetRemoteEndpointResponse.SerializeToString, |
| 266 | ), |
| 267 | 'GetMsgBusEndpoint': grpc.unary_unary_rpc_method_handler( |
| 268 | servicer.GetMsgBusEndpoint, |
| 269 | request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, |
| 270 | response_serializer=dmi_dot_hw__management__service__pb2.GetMsgBusEndpointResponse.SerializeToString, |
| 271 | ), |
Andrea Campanella | b91e9a4 | 2020-10-09 14:31:43 +0200 | [diff] [blame] | 272 | 'GetLoggableEntities': grpc.unary_unary_rpc_method_handler( |
| 273 | servicer.GetLoggableEntities, |
| 274 | request_deserializer=dmi_dot_hw__management__service__pb2.GetLoggableEntitiesRequest.FromString, |
| 275 | response_serializer=dmi_dot_hw__management__service__pb2.GetLogLevelResponse.SerializeToString, |
| 276 | ), |
| 277 | 'SetLogLevel': grpc.unary_unary_rpc_method_handler( |
| 278 | servicer.SetLogLevel, |
| 279 | request_deserializer=dmi_dot_hw__management__service__pb2.SetLogLevelRequest.FromString, |
| 280 | response_serializer=dmi_dot_hw__management__service__pb2.SetLogLevelResponse.SerializeToString, |
| 281 | ), |
| 282 | 'GetLogLevel': grpc.unary_unary_rpc_method_handler( |
| 283 | servicer.GetLogLevel, |
| 284 | request_deserializer=dmi_dot_hw__management__service__pb2.GetLogLevelRequest.FromString, |
| 285 | response_serializer=dmi_dot_hw__management__service__pb2.GetLogLevelResponse.SerializeToString, |
| 286 | ), |
Chandrakanth Nalkudre Gowda | 415b83c | 2021-04-28 18:01:29 +0530 | [diff] [blame] | 287 | 'HeartbeatCheck': grpc.unary_unary_rpc_method_handler( |
| 288 | servicer.HeartbeatCheck, |
| 289 | request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, |
| 290 | response_serializer=dmi_dot_hw__management__service__pb2.Heartbeat.SerializeToString, |
| 291 | ), |
Chandrakanth Nalkudre Gowda | 2f6066c | 2021-05-13 12:36:32 +0530 | [diff] [blame] | 292 | 'RebootDevice': grpc.unary_unary_rpc_method_handler( |
| 293 | servicer.RebootDevice, |
| 294 | request_deserializer=dmi_dot_hw__management__service__pb2.RebootDeviceRequest.FromString, |
| 295 | response_serializer=dmi_dot_hw__management__service__pb2.RebootDeviceResponse.SerializeToString, |
| 296 | ), |
uwe ottrembka | 5ea5c0a | 2020-08-31 10:37:35 +0200 | [diff] [blame] | 297 | } |
| 298 | generic_handler = grpc.method_handlers_generic_handler( |
| 299 | 'dmi.NativeHWManagementService', rpc_method_handlers) |
| 300 | server.add_generic_rpc_handlers((generic_handler,)) |
| 301 | |
| 302 | |
| 303 | # This class is part of an EXPERIMENTAL API. |
| 304 | class NativeHWManagementService(object): |
| 305 | """Missing associated documentation comment in .proto file.""" |
| 306 | |
| 307 | @staticmethod |
| 308 | def StartManagingDevice(request, |
| 309 | target, |
| 310 | options=(), |
| 311 | channel_credentials=None, |
| 312 | call_credentials=None, |
| 313 | insecure=False, |
| 314 | compression=None, |
| 315 | wait_for_ready=None, |
| 316 | timeout=None, |
| 317 | metadata=None): |
| 318 | return grpc.experimental.unary_stream(request, target, '/dmi.NativeHWManagementService/StartManagingDevice', |
| 319 | dmi_dot_hw__pb2.ModifiableComponent.SerializeToString, |
| 320 | dmi_dot_hw__management__service__pb2.StartManagingDeviceResponse.FromString, |
| 321 | options, channel_credentials, |
| 322 | insecure, call_credentials, compression, wait_for_ready, timeout, metadata) |
| 323 | |
| 324 | @staticmethod |
| 325 | def StopManagingDevice(request, |
| 326 | target, |
| 327 | options=(), |
| 328 | channel_credentials=None, |
| 329 | call_credentials=None, |
| 330 | insecure=False, |
| 331 | compression=None, |
| 332 | wait_for_ready=None, |
| 333 | timeout=None, |
| 334 | metadata=None): |
| 335 | return grpc.experimental.unary_unary(request, target, '/dmi.NativeHWManagementService/StopManagingDevice', |
| 336 | dmi_dot_hw__management__service__pb2.StopManagingDeviceRequest.SerializeToString, |
| 337 | dmi_dot_hw__management__service__pb2.StopManagingDeviceResponse.FromString, |
| 338 | options, channel_credentials, |
| 339 | insecure, call_credentials, compression, wait_for_ready, timeout, metadata) |
| 340 | |
| 341 | @staticmethod |
Andrea Campanella | cb990bc | 2020-09-22 12:50:56 +0200 | [diff] [blame] | 342 | def GetManagedDevices(request, |
| 343 | target, |
| 344 | options=(), |
| 345 | channel_credentials=None, |
| 346 | call_credentials=None, |
| 347 | insecure=False, |
| 348 | compression=None, |
| 349 | wait_for_ready=None, |
| 350 | timeout=None, |
| 351 | metadata=None): |
| 352 | return grpc.experimental.unary_unary(request, target, '/dmi.NativeHWManagementService/GetManagedDevices', |
| 353 | google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, |
| 354 | dmi_dot_hw__management__service__pb2.ManagedDevicesResponse.FromString, |
| 355 | options, channel_credentials, |
| 356 | insecure, call_credentials, compression, wait_for_ready, timeout, metadata) |
| 357 | |
| 358 | @staticmethod |
uwe ottrembka | 5ea5c0a | 2020-08-31 10:37:35 +0200 | [diff] [blame] | 359 | def GetPhysicalInventory(request, |
| 360 | target, |
| 361 | options=(), |
| 362 | channel_credentials=None, |
| 363 | call_credentials=None, |
| 364 | insecure=False, |
| 365 | compression=None, |
| 366 | wait_for_ready=None, |
| 367 | timeout=None, |
| 368 | metadata=None): |
| 369 | return grpc.experimental.unary_stream(request, target, '/dmi.NativeHWManagementService/GetPhysicalInventory', |
| 370 | dmi_dot_hw__management__service__pb2.PhysicalInventoryRequest.SerializeToString, |
| 371 | dmi_dot_hw__management__service__pb2.PhysicalInventoryResponse.FromString, |
| 372 | options, channel_credentials, |
| 373 | insecure, call_credentials, compression, wait_for_ready, timeout, metadata) |
| 374 | |
| 375 | @staticmethod |
| 376 | def GetHWComponentInfo(request, |
| 377 | target, |
| 378 | options=(), |
| 379 | channel_credentials=None, |
| 380 | call_credentials=None, |
| 381 | insecure=False, |
| 382 | compression=None, |
| 383 | wait_for_ready=None, |
| 384 | timeout=None, |
| 385 | metadata=None): |
| 386 | return grpc.experimental.unary_stream(request, target, '/dmi.NativeHWManagementService/GetHWComponentInfo', |
| 387 | dmi_dot_hw__management__service__pb2.HWComponentInfoGetRequest.SerializeToString, |
aghosh | c301dcd | 2020-09-03 16:55:34 +0100 | [diff] [blame] | 388 | dmi_dot_hw__management__service__pb2.HWComponentInfoGetResponse.FromString, |
uwe ottrembka | 5ea5c0a | 2020-08-31 10:37:35 +0200 | [diff] [blame] | 389 | options, channel_credentials, |
| 390 | insecure, call_credentials, compression, wait_for_ready, timeout, metadata) |
| 391 | |
| 392 | @staticmethod |
| 393 | def SetHWComponentInfo(request, |
| 394 | target, |
| 395 | options=(), |
| 396 | channel_credentials=None, |
| 397 | call_credentials=None, |
| 398 | insecure=False, |
| 399 | compression=None, |
| 400 | wait_for_ready=None, |
| 401 | timeout=None, |
| 402 | metadata=None): |
| 403 | return grpc.experimental.unary_unary(request, target, '/dmi.NativeHWManagementService/SetHWComponentInfo', |
| 404 | dmi_dot_hw__management__service__pb2.HWComponentInfoSetRequest.SerializeToString, |
| 405 | dmi_dot_hw__management__service__pb2.HWComponentInfoSetResponse.FromString, |
| 406 | options, channel_credentials, |
| 407 | insecure, call_credentials, compression, wait_for_ready, timeout, metadata) |
amit.ghosh | 188a84f | 2020-09-27 20:59:25 +0200 | [diff] [blame] | 408 | |
| 409 | @staticmethod |
| 410 | def SetLoggingEndpoint(request, |
| 411 | target, |
| 412 | options=(), |
| 413 | channel_credentials=None, |
| 414 | call_credentials=None, |
| 415 | insecure=False, |
| 416 | compression=None, |
| 417 | wait_for_ready=None, |
| 418 | timeout=None, |
| 419 | metadata=None): |
| 420 | return grpc.experimental.unary_unary(request, target, '/dmi.NativeHWManagementService/SetLoggingEndpoint', |
| 421 | dmi_dot_hw__management__service__pb2.SetLoggingEndpointRequest.SerializeToString, |
| 422 | dmi_dot_hw__management__service__pb2.SetRemoteEndpointResponse.FromString, |
| 423 | options, channel_credentials, |
| 424 | insecure, call_credentials, compression, wait_for_ready, timeout, metadata) |
| 425 | |
| 426 | @staticmethod |
| 427 | def GetLoggingEndpoint(request, |
| 428 | target, |
| 429 | options=(), |
| 430 | channel_credentials=None, |
| 431 | call_credentials=None, |
| 432 | insecure=False, |
| 433 | compression=None, |
| 434 | wait_for_ready=None, |
| 435 | timeout=None, |
| 436 | metadata=None): |
| 437 | return grpc.experimental.unary_unary(request, target, '/dmi.NativeHWManagementService/GetLoggingEndpoint', |
amit.ghosh | 5d97dba | 2020-11-12 16:45:27 +0100 | [diff] [blame] | 438 | dmi_dot_hw__pb2.HardwareID.SerializeToString, |
amit.ghosh | 188a84f | 2020-09-27 20:59:25 +0200 | [diff] [blame] | 439 | dmi_dot_hw__management__service__pb2.GetLoggingEndpointResponse.FromString, |
| 440 | options, channel_credentials, |
| 441 | insecure, call_credentials, compression, wait_for_ready, timeout, metadata) |
| 442 | |
| 443 | @staticmethod |
| 444 | def SetMsgBusEndpoint(request, |
| 445 | target, |
| 446 | options=(), |
| 447 | channel_credentials=None, |
| 448 | call_credentials=None, |
| 449 | insecure=False, |
| 450 | compression=None, |
| 451 | wait_for_ready=None, |
| 452 | timeout=None, |
| 453 | metadata=None): |
| 454 | return grpc.experimental.unary_unary(request, target, '/dmi.NativeHWManagementService/SetMsgBusEndpoint', |
| 455 | dmi_dot_hw__management__service__pb2.SetMsgBusEndpointRequest.SerializeToString, |
| 456 | dmi_dot_hw__management__service__pb2.SetRemoteEndpointResponse.FromString, |
| 457 | options, channel_credentials, |
| 458 | insecure, call_credentials, compression, wait_for_ready, timeout, metadata) |
| 459 | |
| 460 | @staticmethod |
| 461 | def GetMsgBusEndpoint(request, |
| 462 | target, |
| 463 | options=(), |
| 464 | channel_credentials=None, |
| 465 | call_credentials=None, |
| 466 | insecure=False, |
| 467 | compression=None, |
| 468 | wait_for_ready=None, |
| 469 | timeout=None, |
| 470 | metadata=None): |
| 471 | return grpc.experimental.unary_unary(request, target, '/dmi.NativeHWManagementService/GetMsgBusEndpoint', |
| 472 | google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, |
| 473 | dmi_dot_hw__management__service__pb2.GetMsgBusEndpointResponse.FromString, |
| 474 | options, channel_credentials, |
| 475 | insecure, call_credentials, compression, wait_for_ready, timeout, metadata) |
Andrea Campanella | b91e9a4 | 2020-10-09 14:31:43 +0200 | [diff] [blame] | 476 | |
| 477 | @staticmethod |
| 478 | def GetLoggableEntities(request, |
| 479 | target, |
| 480 | options=(), |
| 481 | channel_credentials=None, |
| 482 | call_credentials=None, |
| 483 | insecure=False, |
| 484 | compression=None, |
| 485 | wait_for_ready=None, |
| 486 | timeout=None, |
| 487 | metadata=None): |
| 488 | return grpc.experimental.unary_unary(request, target, '/dmi.NativeHWManagementService/GetLoggableEntities', |
| 489 | dmi_dot_hw__management__service__pb2.GetLoggableEntitiesRequest.SerializeToString, |
| 490 | dmi_dot_hw__management__service__pb2.GetLogLevelResponse.FromString, |
| 491 | options, channel_credentials, |
| 492 | insecure, call_credentials, compression, wait_for_ready, timeout, metadata) |
| 493 | |
| 494 | @staticmethod |
| 495 | def SetLogLevel(request, |
| 496 | target, |
| 497 | options=(), |
| 498 | channel_credentials=None, |
| 499 | call_credentials=None, |
| 500 | insecure=False, |
| 501 | compression=None, |
| 502 | wait_for_ready=None, |
| 503 | timeout=None, |
| 504 | metadata=None): |
| 505 | return grpc.experimental.unary_unary(request, target, '/dmi.NativeHWManagementService/SetLogLevel', |
| 506 | dmi_dot_hw__management__service__pb2.SetLogLevelRequest.SerializeToString, |
| 507 | dmi_dot_hw__management__service__pb2.SetLogLevelResponse.FromString, |
| 508 | options, channel_credentials, |
| 509 | insecure, call_credentials, compression, wait_for_ready, timeout, metadata) |
| 510 | |
| 511 | @staticmethod |
| 512 | def GetLogLevel(request, |
| 513 | target, |
| 514 | options=(), |
| 515 | channel_credentials=None, |
| 516 | call_credentials=None, |
| 517 | insecure=False, |
| 518 | compression=None, |
| 519 | wait_for_ready=None, |
| 520 | timeout=None, |
| 521 | metadata=None): |
| 522 | return grpc.experimental.unary_unary(request, target, '/dmi.NativeHWManagementService/GetLogLevel', |
| 523 | dmi_dot_hw__management__service__pb2.GetLogLevelRequest.SerializeToString, |
| 524 | dmi_dot_hw__management__service__pb2.GetLogLevelResponse.FromString, |
| 525 | options, channel_credentials, |
| 526 | insecure, call_credentials, compression, wait_for_ready, timeout, metadata) |
Chandrakanth Nalkudre Gowda | 415b83c | 2021-04-28 18:01:29 +0530 | [diff] [blame] | 527 | |
| 528 | @staticmethod |
| 529 | def HeartbeatCheck(request, |
| 530 | target, |
| 531 | options=(), |
| 532 | channel_credentials=None, |
| 533 | call_credentials=None, |
| 534 | insecure=False, |
| 535 | compression=None, |
| 536 | wait_for_ready=None, |
| 537 | timeout=None, |
| 538 | metadata=None): |
| 539 | return grpc.experimental.unary_unary(request, target, '/dmi.NativeHWManagementService/HeartbeatCheck', |
| 540 | google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, |
| 541 | dmi_dot_hw__management__service__pb2.Heartbeat.FromString, |
| 542 | options, channel_credentials, |
| 543 | insecure, call_credentials, compression, wait_for_ready, timeout, metadata) |
Chandrakanth Nalkudre Gowda | 2f6066c | 2021-05-13 12:36:32 +0530 | [diff] [blame] | 544 | |
| 545 | @staticmethod |
| 546 | def RebootDevice(request, |
| 547 | target, |
| 548 | options=(), |
| 549 | channel_credentials=None, |
| 550 | call_credentials=None, |
| 551 | insecure=False, |
| 552 | compression=None, |
| 553 | wait_for_ready=None, |
| 554 | timeout=None, |
| 555 | metadata=None): |
| 556 | return grpc.experimental.unary_unary(request, target, '/dmi.NativeHWManagementService/RebootDevice', |
| 557 | dmi_dot_hw__management__service__pb2.RebootDeviceRequest.SerializeToString, |
| 558 | dmi_dot_hw__management__service__pb2.RebootDeviceResponse.FromString, |
| 559 | options, channel_credentials, |
| 560 | insecure, call_credentials, compression, wait_for_ready, timeout, metadata) |