VOL-4783: Introduce UploadDebugInformation RPC in DMI

Change-Id: Icf23a38d75b7dd54593188118c320948f9d9c591
diff --git a/python/dmi/sw_management_service_pb2_grpc.py b/python/dmi/sw_management_service_pb2_grpc.py
index cf2398d..1e08155 100644
--- a/python/dmi/sw_management_service_pb2_grpc.py
+++ b/python/dmi/sw_management_service_pb2_grpc.py
@@ -46,6 +46,11 @@
                 request_serializer=dmi_dot_sw__management__service__pb2.StartupConfigInfoRequest.SerializeToString,
                 response_deserializer=dmi_dot_sw__management__service__pb2.StartupConfigInfoResponse.FromString,
                 )
+        self.UploadDebugInfo = channel.unary_stream(
+                '/dmi.NativeSoftwareManagementService/UploadDebugInfo',
+                request_serializer=dmi_dot_sw__management__service__pb2.UploadDebugInfoRequest.SerializeToString,
+                response_deserializer=dmi_dot_sw__management__service__pb2.UploadDebugInfoStatus.FromString,
+                )
 
 
 class NativeSoftwareManagementServiceServicer(object):
@@ -96,6 +101,13 @@
         context.set_details('Method not implemented!')
         raise NotImplementedError('Method not implemented!')
 
+    def UploadDebugInfo(self, request, context):
+        """This API can be used to upload to a remote location, information useful for troubleshooting problems on the hardware

+        """
+        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
+        context.set_details('Method not implemented!')
+        raise NotImplementedError('Method not implemented!')
+
 
 def add_NativeSoftwareManagementServiceServicer_to_server(servicer, server):
     rpc_method_handlers = {
@@ -129,6 +141,11 @@
                     request_deserializer=dmi_dot_sw__management__service__pb2.StartupConfigInfoRequest.FromString,
                     response_serializer=dmi_dot_sw__management__service__pb2.StartupConfigInfoResponse.SerializeToString,
             ),
+            'UploadDebugInfo': grpc.unary_stream_rpc_method_handler(
+                    servicer.UploadDebugInfo,
+                    request_deserializer=dmi_dot_sw__management__service__pb2.UploadDebugInfoRequest.FromString,
+                    response_serializer=dmi_dot_sw__management__service__pb2.UploadDebugInfoStatus.SerializeToString,
+            ),
     }
     generic_handler = grpc.method_handlers_generic_handler(
             'dmi.NativeSoftwareManagementService', rpc_method_handlers)
@@ -240,3 +257,20 @@
             dmi_dot_sw__management__service__pb2.StartupConfigInfoResponse.FromString,
             options, channel_credentials,
             insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
+
+    @staticmethod
+    def UploadDebugInfo(request,
+            target,
+            options=(),
+            channel_credentials=None,
+            call_credentials=None,
+            insecure=False,
+            compression=None,
+            wait_for_ready=None,
+            timeout=None,
+            metadata=None):
+        return grpc.experimental.unary_stream(request, target, '/dmi.NativeSoftwareManagementService/UploadDebugInfo',
+            dmi_dot_sw__management__service__pb2.UploadDebugInfoRequest.SerializeToString,
+            dmi_dot_sw__management__service__pb2.UploadDebugInfoStatus.FromString,
+            options, channel_credentials,
+            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)