summaryrefslogtreecommitdiffstats
path: root/mof
diff options
context:
space:
mode:
authorRadek Novacek <rnovacek@redhat.com>2012-07-23 13:41:47 +0200
committerRadek Novacek <rnovacek@redhat.com>2012-07-23 14:35:13 +0200
commitce3f2520c5046c7b7703742dd5c7481b5f98c52e (patch)
tree4e6ac6dbcb4b06f6d0ad02630a086ab263c1071b /mof
parent3f906be3f651313c1b8709732ea0bdebba296784 (diff)
downloadopenlmi-providers-ce3f2520c5046c7b7703742dd5c7481b5f98c52e.tar.gz
openlmi-providers-ce3f2520c5046c7b7703742dd5c7481b5f98c52e.tar.xz
openlmi-providers-ce3f2520c5046c7b7703742dd5c7481b5f98c52e.zip
Restructure Power provider
* get rid of src/ subdirectory in power/ * cleanup CMake * use konkretcmpi_generate macro
Diffstat (limited to 'mof')
-rw-r--r--mof/Linux_PowerManagement.mof58
1 files changed, 58 insertions, 0 deletions
diff --git a/mof/Linux_PowerManagement.mof b/mof/Linux_PowerManagement.mof
new file mode 100644
index 0000000..417ebc8
--- /dev/null
+++ b/mof/Linux_PowerManagement.mof
@@ -0,0 +1,58 @@
+[ Provider("cmpi:cmpiLinux_PowerManagement") ]
+class Linux_PowerManagementService: CIM_PowerManagementService
+{
+};
+
+[ Association,
+ Provider("cmpi:cmpiLinux_PowerManagement") ]
+class Linux_AssociatedPowerManagementService: CIM_AssociatedPowerManagementService
+{
+ [ Override ("ServiceProvided"),
+ Max ( 1 ),
+ Description ( "The Service that is available." )]
+ Linux_PowerManagementService REF ServiceProvided;
+
+ [ Override ("UserOfService"),
+ Description ( "The ManagedElement that can use the Service." )]
+ CIM_ComputerSystem REF UserOfService;
+};
+
+[ Provider("cmpi:cmpiLinux_PowerManagement") ]
+class Linux_PowerManagementCapabilities: CIM_PowerManagementCapabilities
+{
+};
+
+[ Association,
+ Provider("cmpi:cmpiLinux_PowerManagement") ]
+class Linux_HostedService: CIM_HostedService
+{
+ [ Override ("Antecedent"),
+ Min ( 1 ),
+ Max ( 1 ),
+ Description ( "The hosting System." )]
+ CIM_ComputerSystem REF Antecedent;
+
+ [ Override ( "Dependent" ),
+ Weak,
+ Description ( "The Service hosted on the System." )]
+ Linux_PowerManagementService REF Dependent;
+};
+
+[ Provider("cmpi:cmpiLinux_PowerManagement") ]
+class Linux_ConcreteJob: CIM_ConcreteJob
+{
+};
+
+[ Provider("cmpi:cmpiLinux_PowerManagement") ]
+class Linux_ElementCapabilities: CIM_ElementCapabilities
+{
+ [ Key,
+ Min ( 1 ),
+ Description ( "The managed element." )]
+ Linux_PowerManagementService REF ManagedElement;
+
+ [ Key,
+ Description ( "The Capabilities object associated with the element." )]
+ Linux_PowerManagementCapabilities REF Capabilities;
+};
+