[Libvirt-cim] [PATCH 1 of 3] (#2) Add DeleteResourceInPool() to RPCS mof

Kaitlin Rupert kaitlin at linux.vnet.ibm.com
Fri Aug 28 23:13:50 UTC 2009


# HG changeset patch
# User Kaitlin Rupert <karupert at us.ibm.com>
# Date 1251232703 25200
# Node ID d047a30a9ea367e729cb265434c4dba89c11f495
# Parent  9af5eef7ea76c7e9d1657d2e8cd4df9ed126b596
(#2) Add DeleteResourceInPool() to RPCS mof

Also, fix a typo in the description for the out parameter in
CreateResourceInPool()

Updates:
 -Change the Resource paramater to a EmbeddedObject instead of a CMPIReference.
  This will allow the user to grab the instance of the storage volume from
  SDC - the instances from SDC don't have the path set in the InstanceID
  attribute - they have that specified in the Address attribute

Signed-off-by: Kaitlin Rupert <karupert at us.ibm.com>

diff -r 9af5eef7ea76 -r d047a30a9ea3 schema/ResourcePoolConfigurationService.mof
--- a/schema/ResourcePoolConfigurationService.mof	Mon Aug 24 16:14:41 2009 -0700
+++ b/schema/ResourcePoolConfigurationService.mof	Tue Aug 25 13:38:23 2009 -0700
@@ -17,9 +17,24 @@
       [IN, Description ( "Reference to the pool to create the resources in." )]
       CIM_ResourcePool REF Pool,
 
+      [IN ( false ), OUT, Description ( "Reference to the resource created." )]
+      CIM_ResourceAllocationSettingData REF Resource 
+    );
+
+    [Description ( "Delete a resource within a specified pool using the "
+                   "specified allocation settings. If 0 is returned, the " 
+                   "function completed successfully." )]
+    uint32 DeleteResourceInPool(
+      [IN, Description ( "Reference to the resource to delete." ),
+           EmbeddedInstance ( "CIM_ResourceAllocationSettingData" )]
+      string Resource,
+
+      [IN, Description ( "The pool to remove the resource from." )]
+      CIM_ResourcePool REF Pool,
+
       [IN ( false ), OUT, Description ( "Reference to the job (may be null "
                                         "if job completed)." )]
-      CIM_ResourceAllocationSettingData REF Resource 
+      CIM_ConcreteJob REF Job
     );
 
 };
@@ -41,9 +56,24 @@
       [IN, Description ( "Reference to the pool to create the resources in." )]
       CIM_ResourcePool REF Pool,
 
+      [IN ( false ), OUT, Description ( "Reference to the resource created." )]
+      CIM_ResourceAllocationSettingData REF Resource 
+    );
+
+    [Description ( "Delete a resource within a specified pool using the "
+                   "specified allocation settings. If 0 is returned, the " 
+                   "function completed successfully." )]
+    uint32 DeleteResourceInPool(
+      [IN, Description ( "Reference to the resource to delete." ),
+           EmbeddedInstance ( "CIM_ResourceAllocationSettingData" )]
+      string Resource,
+
+      [IN, Description ( "The pool to remove the resource from." )]
+      CIM_ResourcePool REF Pool,
+
       [IN ( false ), OUT, Description ( "Reference to the job (may be null "
                                         "if job completed)." )]
-      CIM_ResourceAllocationSettingData REF Resource 
+      CIM_ConcreteJob REF Job
     );
 
 };
@@ -65,9 +95,24 @@
       [IN, Description ( "Reference to the pool to create the resources in." )]
       CIM_ResourcePool REF Pool,
 
-      [IN ( false ), OUT, Description ( "Reference to the job (may be null "
-                                        "if job completed)." )]
+      [IN ( false ), OUT, Description ( "Reference to the resource created." )]
       CIM_ResourceAllocationSettingData REF Resource 
     );
 
+    [Description ( "Delete a resource within a specified pool using the "
+                   "specified allocation settings. If 0 is returned, the " 
+                   "function completed successfully." )]
+    uint32 DeleteResourceInPool(
+      [IN, Description ( "Reference to the resource to delete." ),
+           EmbeddedInstance ( "CIM_ResourceAllocationSettingData" )]
+      string Resource,
+
+      [IN, Description ( "The pool to remove the resource from." )]
+      CIM_ResourcePool REF Pool,
+
+      [IN ( false ), OUT, Description ( "Reference to the job (may be null "
+                                        "if job completed)." )]
+      CIM_ConcreteJob REF Job
+    );
+
 };




More information about the Libvirt-cim mailing list