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