[VOL-3494] GetManagedDevices API

Change-Id: If05610ebcf680ae5e2ba2886739b5737d5f43923
diff --git a/protos/dmi/hw_management_service.proto b/protos/dmi/hw_management_service.proto
index 511a5d2..0584454 100644
--- a/protos/dmi/hw_management_service.proto
+++ b/protos/dmi/hw_management_service.proto
@@ -5,6 +5,7 @@
 

 import "dmi/commons.proto";

 import "dmi/hw.proto";

+import "google/protobuf/empty.proto";

 

 // Protos for the management of a hardware and it's components

 

@@ -57,6 +58,10 @@
     Reason reason = 2;

 }

 

+message ManagedDevicesResponse {

+    repeated ModifiableComponent devices = 1;

+}

+

 service NativeHWManagementService {

     // Initializes context for a device and sets up required states

     // In the call to StartManagingDevice, the fields of ModifiableComponent which are relevant

@@ -72,6 +77,9 @@
     // Stop management of a device and clean up any context and caches for that device

     rpc StopManagingDevice(StopManagingDeviceRequest) returns(StopManagingDeviceResponse);

 

+    // Returns an object containing a list of devices managed by this entity

+    rpc GetManagedDevices(google.protobuf.Empty) returns(ManagedDevicesResponse);

+

     // Get the HW inventory details of the Device

     rpc GetPhysicalInventory(PhysicalInventoryRequest) returns(stream PhysicalInventoryResponse);