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