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 | ) |
uwe ottrembka | 5ea5c0a | 2020-08-31 10:37:35 +0200 | [diff] [blame] | 89 | |
| 90 | |
| 91 | class NativeHWManagementServiceServicer(object): |
| 92 | """Missing associated documentation comment in .proto file.""" |
| 93 | |
| 94 | def StartManagingDevice(self, request, context): |
| 95 | """Initializes context for a device and sets up required states
|
| 96 | In the call to StartManagingDevice, the fields of ModifiableComponent which are relevant
|
| 97 | and their meanings in this context is mentioned below:
|
| 98 | name = The unique name that needs to be assigned to this hardware;
|
| 99 | class = COMPONENT_TYPE_UNDEFINED;
|
| 100 | parent = nil;
|
| 101 | alias = Optional;
|
| 102 | asset_id = Optional;
|
| 103 | uri = IP Address of the Hardware;
|
| 104 | """ |
| 105 | context.set_code(grpc.StatusCode.UNIMPLEMENTED) |
| 106 | context.set_details('Method not implemented!') |
| 107 | raise NotImplementedError('Method not implemented!') |
| 108 | |
| 109 | def StopManagingDevice(self, request, context): |
| 110 | """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] | 111 | This rpc can be called at any time, even before the StartManagingDevice operation
|
| 112 | has completed, and should be able to cleanup.
|
uwe ottrembka | 5ea5c0a | 2020-08-31 10:37:35 +0200 | [diff] [blame] | 113 | """ |
| 114 | context.set_code(grpc.StatusCode.UNIMPLEMENTED) |
| 115 | context.set_details('Method not implemented!') |
| 116 | raise NotImplementedError('Method not implemented!') |
| 117 | |
Andrea Campanella | cb990bc | 2020-09-22 12:50:56 +0200 | [diff] [blame] | 118 | def GetManagedDevices(self, request, context): |
| 119 | """Returns an object containing a list of devices managed by this entity
|
| 120 | """ |
| 121 | context.set_code(grpc.StatusCode.UNIMPLEMENTED) |
| 122 | context.set_details('Method not implemented!') |
| 123 | raise NotImplementedError('Method not implemented!') |
| 124 | |
uwe ottrembka | 5ea5c0a | 2020-08-31 10:37:35 +0200 | [diff] [blame] | 125 | def GetPhysicalInventory(self, request, context): |
| 126 | """Get the HW inventory details of the Device
|
| 127 | """ |
| 128 | context.set_code(grpc.StatusCode.UNIMPLEMENTED) |
| 129 | context.set_details('Method not implemented!') |
| 130 | raise NotImplementedError('Method not implemented!') |
| 131 | |
| 132 | def GetHWComponentInfo(self, request, context): |
| 133 | """Get the details of a particular HW component
|
| 134 | """ |
| 135 | context.set_code(grpc.StatusCode.UNIMPLEMENTED) |
| 136 | context.set_details('Method not implemented!') |
| 137 | raise NotImplementedError('Method not implemented!') |
| 138 | |
| 139 | def SetHWComponentInfo(self, request, context): |
| 140 | """Sets the permissible attributes of a HW component
|
| 141 | """ |
| 142 | context.set_code(grpc.StatusCode.UNIMPLEMENTED) |
| 143 | context.set_details('Method not implemented!') |
| 144 | raise NotImplementedError('Method not implemented!') |
| 145 | |
amit.ghosh | 188a84f | 2020-09-27 20:59:25 +0200 | [diff] [blame] | 146 | def SetLoggingEndpoint(self, request, context): |
| 147 | """Sets the location to which logs need to be shipped
|
| 148 | """ |
| 149 | context.set_code(grpc.StatusCode.UNIMPLEMENTED) |
| 150 | context.set_details('Method not implemented!') |
| 151 | raise NotImplementedError('Method not implemented!') |
| 152 | |
| 153 | def GetLoggingEndpoint(self, request, context): |
| 154 | """Gets the configured location to which the logs are being shipped
|
| 155 | """ |
| 156 | context.set_code(grpc.StatusCode.UNIMPLEMENTED) |
| 157 | context.set_details('Method not implemented!') |
| 158 | raise NotImplementedError('Method not implemented!') |
| 159 | |
| 160 | def SetMsgBusEndpoint(self, request, context): |
| 161 | """Sets the location of the Message Bus to which events and metrics are shipped
|
| 162 | """ |
| 163 | context.set_code(grpc.StatusCode.UNIMPLEMENTED) |
| 164 | context.set_details('Method not implemented!') |
| 165 | raise NotImplementedError('Method not implemented!') |
| 166 | |
| 167 | def GetMsgBusEndpoint(self, request, context): |
| 168 | """Gets the configured location to which the events and metrics are being shipped
|
| 169 | """ |
| 170 | context.set_code(grpc.StatusCode.UNIMPLEMENTED) |
| 171 | context.set_details('Method not implemented!') |
| 172 | raise NotImplementedError('Method not implemented!') |
| 173 | |
Andrea Campanella | b91e9a4 | 2020-10-09 14:31:43 +0200 | [diff] [blame] | 174 | def GetLoggableEntities(self, request, context): |
| 175 | """Gets the entities of a device on which log can be configured. A few are expected, like OS, PON Management etc.
|
| 176 | In general an entity is any item within an hardware system that can emit logs, e.g. service, process, subsystem,
|
| 177 | interface, package etc.
|
| 178 | """ |
| 179 | context.set_code(grpc.StatusCode.UNIMPLEMENTED) |
| 180 | context.set_details('Method not implemented!') |
| 181 | raise NotImplementedError('Method not implemented!') |
| 182 | |
| 183 | def SetLogLevel(self, request, context): |
amit.ghosh | 5d97dba | 2020-11-12 16:45:27 +0100 | [diff] [blame] | 184 | """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] | 185 | If only one EntitiesLogLevel is provided for the device and that request contains only a log level with
|
| 186 | no entity in the list it's assumed that the caller wants to set that level for all the entities.
|
| 187 | """ |
| 188 | context.set_code(grpc.StatusCode.UNIMPLEMENTED) |
| 189 | context.set_details('Method not implemented!') |
| 190 | raise NotImplementedError('Method not implemented!') |
| 191 | |
| 192 | def GetLogLevel(self, request, context): |
| 193 | """Gets the configured log level for a certain entity on a certain device.
|
| 194 | If no entity is specified in the request all the entities with their log level should be returned.
|
| 195 | """ |
| 196 | context.set_code(grpc.StatusCode.UNIMPLEMENTED) |
| 197 | context.set_details('Method not implemented!') |
| 198 | raise NotImplementedError('Method not implemented!') |
| 199 | |
Chandrakanth Nalkudre Gowda | 415b83c | 2021-04-28 18:01:29 +0530 | [diff] [blame] | 200 | def HeartbeatCheck(self, request, context): |
| 201 | """Performs the heartbeat check
|
| 202 | """ |
| 203 | context.set_code(grpc.StatusCode.UNIMPLEMENTED) |
| 204 | context.set_details('Method not implemented!') |
| 205 | raise NotImplementedError('Method not implemented!') |
| 206 | |
uwe ottrembka | 5ea5c0a | 2020-08-31 10:37:35 +0200 | [diff] [blame] | 207 | |
| 208 | def add_NativeHWManagementServiceServicer_to_server(servicer, server): |
| 209 | rpc_method_handlers = { |
| 210 | 'StartManagingDevice': grpc.unary_stream_rpc_method_handler( |
| 211 | servicer.StartManagingDevice, |
| 212 | request_deserializer=dmi_dot_hw__pb2.ModifiableComponent.FromString, |
| 213 | response_serializer=dmi_dot_hw__management__service__pb2.StartManagingDeviceResponse.SerializeToString, |
| 214 | ), |
| 215 | 'StopManagingDevice': grpc.unary_unary_rpc_method_handler( |
| 216 | servicer.StopManagingDevice, |
| 217 | request_deserializer=dmi_dot_hw__management__service__pb2.StopManagingDeviceRequest.FromString, |
| 218 | response_serializer=dmi_dot_hw__management__service__pb2.StopManagingDeviceResponse.SerializeToString, |
| 219 | ), |
Andrea Campanella | cb990bc | 2020-09-22 12:50:56 +0200 | [diff] [blame] | 220 | 'GetManagedDevices': grpc.unary_unary_rpc_method_handler( |
| 221 | servicer.GetManagedDevices, |
| 222 | request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, |
| 223 | response_serializer=dmi_dot_hw__management__service__pb2.ManagedDevicesResponse.SerializeToString, |
| 224 | ), |
uwe ottrembka | 5ea5c0a | 2020-08-31 10:37:35 +0200 | [diff] [blame] | 225 | 'GetPhysicalInventory': grpc.unary_stream_rpc_method_handler( |
| 226 | servicer.GetPhysicalInventory, |
| 227 | request_deserializer=dmi_dot_hw__management__service__pb2.PhysicalInventoryRequest.FromString, |
| 228 | response_serializer=dmi_dot_hw__management__service__pb2.PhysicalInventoryResponse.SerializeToString, |
| 229 | ), |
| 230 | 'GetHWComponentInfo': grpc.unary_stream_rpc_method_handler( |
| 231 | servicer.GetHWComponentInfo, |
| 232 | request_deserializer=dmi_dot_hw__management__service__pb2.HWComponentInfoGetRequest.FromString, |
aghosh | c301dcd | 2020-09-03 16:55:34 +0100 | [diff] [blame] | 233 | response_serializer=dmi_dot_hw__management__service__pb2.HWComponentInfoGetResponse.SerializeToString, |
uwe ottrembka | 5ea5c0a | 2020-08-31 10:37:35 +0200 | [diff] [blame] | 234 | ), |
| 235 | 'SetHWComponentInfo': grpc.unary_unary_rpc_method_handler( |
| 236 | servicer.SetHWComponentInfo, |
| 237 | request_deserializer=dmi_dot_hw__management__service__pb2.HWComponentInfoSetRequest.FromString, |
| 238 | response_serializer=dmi_dot_hw__management__service__pb2.HWComponentInfoSetResponse.SerializeToString, |
| 239 | ), |
amit.ghosh | 188a84f | 2020-09-27 20:59:25 +0200 | [diff] [blame] | 240 | 'SetLoggingEndpoint': grpc.unary_unary_rpc_method_handler( |
| 241 | servicer.SetLoggingEndpoint, |
| 242 | request_deserializer=dmi_dot_hw__management__service__pb2.SetLoggingEndpointRequest.FromString, |
| 243 | response_serializer=dmi_dot_hw__management__service__pb2.SetRemoteEndpointResponse.SerializeToString, |
| 244 | ), |
| 245 | 'GetLoggingEndpoint': grpc.unary_unary_rpc_method_handler( |
| 246 | servicer.GetLoggingEndpoint, |
amit.ghosh | 5d97dba | 2020-11-12 16:45:27 +0100 | [diff] [blame] | 247 | request_deserializer=dmi_dot_hw__pb2.HardwareID.FromString, |
amit.ghosh | 188a84f | 2020-09-27 20:59:25 +0200 | [diff] [blame] | 248 | response_serializer=dmi_dot_hw__management__service__pb2.GetLoggingEndpointResponse.SerializeToString, |
| 249 | ), |
| 250 | 'SetMsgBusEndpoint': grpc.unary_unary_rpc_method_handler( |
| 251 | servicer.SetMsgBusEndpoint, |
| 252 | request_deserializer=dmi_dot_hw__management__service__pb2.SetMsgBusEndpointRequest.FromString, |
| 253 | response_serializer=dmi_dot_hw__management__service__pb2.SetRemoteEndpointResponse.SerializeToString, |
| 254 | ), |
| 255 | 'GetMsgBusEndpoint': grpc.unary_unary_rpc_method_handler( |
| 256 | servicer.GetMsgBusEndpoint, |
| 257 | request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, |
| 258 | response_serializer=dmi_dot_hw__management__service__pb2.GetMsgBusEndpointResponse.SerializeToString, |
| 259 | ), |
Andrea Campanella | b91e9a4 | 2020-10-09 14:31:43 +0200 | [diff] [blame] | 260 | 'GetLoggableEntities': grpc.unary_unary_rpc_method_handler( |
| 261 | servicer.GetLoggableEntities, |
| 262 | request_deserializer=dmi_dot_hw__management__service__pb2.GetLoggableEntitiesRequest.FromString, |
| 263 | response_serializer=dmi_dot_hw__management__service__pb2.GetLogLevelResponse.SerializeToString, |
| 264 | ), |
| 265 | 'SetLogLevel': grpc.unary_unary_rpc_method_handler( |
| 266 | servicer.SetLogLevel, |
| 267 | request_deserializer=dmi_dot_hw__management__service__pb2.SetLogLevelRequest.FromString, |
| 268 | response_serializer=dmi_dot_hw__management__service__pb2.SetLogLevelResponse.SerializeToString, |
| 269 | ), |
| 270 | 'GetLogLevel': grpc.unary_unary_rpc_method_handler( |
| 271 | servicer.GetLogLevel, |
| 272 | request_deserializer=dmi_dot_hw__management__service__pb2.GetLogLevelRequest.FromString, |
| 273 | response_serializer=dmi_dot_hw__management__service__pb2.GetLogLevelResponse.SerializeToString, |
| 274 | ), |
Chandrakanth Nalkudre Gowda | 415b83c | 2021-04-28 18:01:29 +0530 | [diff] [blame] | 275 | 'HeartbeatCheck': grpc.unary_unary_rpc_method_handler( |
| 276 | servicer.HeartbeatCheck, |
| 277 | request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, |
| 278 | response_serializer=dmi_dot_hw__management__service__pb2.Heartbeat.SerializeToString, |
| 279 | ), |
uwe ottrembka | 5ea5c0a | 2020-08-31 10:37:35 +0200 | [diff] [blame] | 280 | } |
| 281 | generic_handler = grpc.method_handlers_generic_handler( |
| 282 | 'dmi.NativeHWManagementService', rpc_method_handlers) |
| 283 | server.add_generic_rpc_handlers((generic_handler,)) |
| 284 | |
| 285 | |
| 286 | # This class is part of an EXPERIMENTAL API. |
| 287 | class NativeHWManagementService(object): |
| 288 | """Missing associated documentation comment in .proto file.""" |
| 289 | |
| 290 | @staticmethod |
| 291 | def StartManagingDevice(request, |
| 292 | target, |
| 293 | options=(), |
| 294 | channel_credentials=None, |
| 295 | call_credentials=None, |
| 296 | insecure=False, |
| 297 | compression=None, |
| 298 | wait_for_ready=None, |
| 299 | timeout=None, |
| 300 | metadata=None): |
| 301 | return grpc.experimental.unary_stream(request, target, '/dmi.NativeHWManagementService/StartManagingDevice', |
| 302 | dmi_dot_hw__pb2.ModifiableComponent.SerializeToString, |
| 303 | dmi_dot_hw__management__service__pb2.StartManagingDeviceResponse.FromString, |
| 304 | options, channel_credentials, |
| 305 | insecure, call_credentials, compression, wait_for_ready, timeout, metadata) |
| 306 | |
| 307 | @staticmethod |
| 308 | def StopManagingDevice(request, |
| 309 | target, |
| 310 | options=(), |
| 311 | channel_credentials=None, |
| 312 | call_credentials=None, |
| 313 | insecure=False, |
| 314 | compression=None, |
| 315 | wait_for_ready=None, |
| 316 | timeout=None, |
| 317 | metadata=None): |
| 318 | return grpc.experimental.unary_unary(request, target, '/dmi.NativeHWManagementService/StopManagingDevice', |
| 319 | dmi_dot_hw__management__service__pb2.StopManagingDeviceRequest.SerializeToString, |
| 320 | dmi_dot_hw__management__service__pb2.StopManagingDeviceResponse.FromString, |
| 321 | options, channel_credentials, |
| 322 | insecure, call_credentials, compression, wait_for_ready, timeout, metadata) |
| 323 | |
| 324 | @staticmethod |
Andrea Campanella | cb990bc | 2020-09-22 12:50:56 +0200 | [diff] [blame] | 325 | def GetManagedDevices(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/GetManagedDevices', |
| 336 | google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, |
| 337 | dmi_dot_hw__management__service__pb2.ManagedDevicesResponse.FromString, |
| 338 | options, channel_credentials, |
| 339 | insecure, call_credentials, compression, wait_for_ready, timeout, metadata) |
| 340 | |
| 341 | @staticmethod |
uwe ottrembka | 5ea5c0a | 2020-08-31 10:37:35 +0200 | [diff] [blame] | 342 | def GetPhysicalInventory(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/GetPhysicalInventory', |
| 353 | dmi_dot_hw__management__service__pb2.PhysicalInventoryRequest.SerializeToString, |
| 354 | dmi_dot_hw__management__service__pb2.PhysicalInventoryResponse.FromString, |
| 355 | options, channel_credentials, |
| 356 | insecure, call_credentials, compression, wait_for_ready, timeout, metadata) |
| 357 | |
| 358 | @staticmethod |
| 359 | def GetHWComponentInfo(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/GetHWComponentInfo', |
| 370 | dmi_dot_hw__management__service__pb2.HWComponentInfoGetRequest.SerializeToString, |
aghosh | c301dcd | 2020-09-03 16:55:34 +0100 | [diff] [blame] | 371 | dmi_dot_hw__management__service__pb2.HWComponentInfoGetResponse.FromString, |
uwe ottrembka | 5ea5c0a | 2020-08-31 10:37:35 +0200 | [diff] [blame] | 372 | options, channel_credentials, |
| 373 | insecure, call_credentials, compression, wait_for_ready, timeout, metadata) |
| 374 | |
| 375 | @staticmethod |
| 376 | def SetHWComponentInfo(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/SetHWComponentInfo', |
| 387 | dmi_dot_hw__management__service__pb2.HWComponentInfoSetRequest.SerializeToString, |
| 388 | dmi_dot_hw__management__service__pb2.HWComponentInfoSetResponse.FromString, |
| 389 | options, channel_credentials, |
| 390 | insecure, call_credentials, compression, wait_for_ready, timeout, metadata) |
amit.ghosh | 188a84f | 2020-09-27 20:59:25 +0200 | [diff] [blame] | 391 | |
| 392 | @staticmethod |
| 393 | def SetLoggingEndpoint(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/SetLoggingEndpoint', |
| 404 | dmi_dot_hw__management__service__pb2.SetLoggingEndpointRequest.SerializeToString, |
| 405 | dmi_dot_hw__management__service__pb2.SetRemoteEndpointResponse.FromString, |
| 406 | options, channel_credentials, |
| 407 | insecure, call_credentials, compression, wait_for_ready, timeout, metadata) |
| 408 | |
| 409 | @staticmethod |
| 410 | def GetLoggingEndpoint(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/GetLoggingEndpoint', |
amit.ghosh | 5d97dba | 2020-11-12 16:45:27 +0100 | [diff] [blame] | 421 | dmi_dot_hw__pb2.HardwareID.SerializeToString, |
amit.ghosh | 188a84f | 2020-09-27 20:59:25 +0200 | [diff] [blame] | 422 | dmi_dot_hw__management__service__pb2.GetLoggingEndpointResponse.FromString, |
| 423 | options, channel_credentials, |
| 424 | insecure, call_credentials, compression, wait_for_ready, timeout, metadata) |
| 425 | |
| 426 | @staticmethod |
| 427 | def SetMsgBusEndpoint(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/SetMsgBusEndpoint', |
| 438 | dmi_dot_hw__management__service__pb2.SetMsgBusEndpointRequest.SerializeToString, |
| 439 | dmi_dot_hw__management__service__pb2.SetRemoteEndpointResponse.FromString, |
| 440 | options, channel_credentials, |
| 441 | insecure, call_credentials, compression, wait_for_ready, timeout, metadata) |
| 442 | |
| 443 | @staticmethod |
| 444 | def GetMsgBusEndpoint(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/GetMsgBusEndpoint', |
| 455 | google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, |
| 456 | dmi_dot_hw__management__service__pb2.GetMsgBusEndpointResponse.FromString, |
| 457 | options, channel_credentials, |
| 458 | insecure, call_credentials, compression, wait_for_ready, timeout, metadata) |
Andrea Campanella | b91e9a4 | 2020-10-09 14:31:43 +0200 | [diff] [blame] | 459 | |
| 460 | @staticmethod |
| 461 | def GetLoggableEntities(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/GetLoggableEntities', |
| 472 | dmi_dot_hw__management__service__pb2.GetLoggableEntitiesRequest.SerializeToString, |
| 473 | dmi_dot_hw__management__service__pb2.GetLogLevelResponse.FromString, |
| 474 | options, channel_credentials, |
| 475 | insecure, call_credentials, compression, wait_for_ready, timeout, metadata) |
| 476 | |
| 477 | @staticmethod |
| 478 | def SetLogLevel(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/SetLogLevel', |
| 489 | dmi_dot_hw__management__service__pb2.SetLogLevelRequest.SerializeToString, |
| 490 | dmi_dot_hw__management__service__pb2.SetLogLevelResponse.FromString, |
| 491 | options, channel_credentials, |
| 492 | insecure, call_credentials, compression, wait_for_ready, timeout, metadata) |
| 493 | |
| 494 | @staticmethod |
| 495 | def GetLogLevel(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/GetLogLevel', |
| 506 | dmi_dot_hw__management__service__pb2.GetLogLevelRequest.SerializeToString, |
| 507 | dmi_dot_hw__management__service__pb2.GetLogLevelResponse.FromString, |
| 508 | options, channel_credentials, |
| 509 | insecure, call_credentials, compression, wait_for_ready, timeout, metadata) |
Chandrakanth Nalkudre Gowda | 415b83c | 2021-04-28 18:01:29 +0530 | [diff] [blame] | 510 | |
| 511 | @staticmethod |
| 512 | def HeartbeatCheck(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/HeartbeatCheck', |
| 523 | google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, |
| 524 | dmi_dot_hw__management__service__pb2.Heartbeat.FromString, |
| 525 | options, channel_credentials, |
| 526 | insecure, call_credentials, compression, wait_for_ready, timeout, metadata) |