summaryrefslogtreecommitdiffstats
path: root/mof/LMI_Software.mof
diff options
context:
space:
mode:
authorMichal Minar <miminar@redhat.com>2013-02-18 11:06:24 +0100
committerMichal Minar <miminar@redhat.com>2013-02-18 11:06:24 +0100
commit4214208d559ed88f3b29bc046d4679824bf5faa7 (patch)
tree0a70987b073893ef9ebb33e8f7421560a4b05984 /mof/LMI_Software.mof
parent7c5dc2d2e73b08f20df94c3acd370f02ab0102c0 (diff)
downloadopenlmi-providers-4214208d559ed88f3b29bc046d4679824bf5faa7.tar.gz
openlmi-providers-4214208d559ed88f3b29bc046d4679824bf5faa7.tar.xz
openlmi-providers-4214208d559ed88f3b29bc046d4679824bf5faa7.zip
added LMI_SoftwareIdentityResource provider
now it's possible to list and manage repositories
Diffstat (limited to 'mof/LMI_Software.mof')
-rw-r--r--mof/LMI_Software.mof180
1 files changed, 166 insertions, 14 deletions
diff --git a/mof/LMI_Software.mof b/mof/LMI_Software.mof
index aa11651..43886b1 100644
--- a/mof/LMI_Software.mof
+++ b/mof/LMI_Software.mof
@@ -23,7 +23,7 @@
class LMI_SoftwareIdentity : CIM_SoftwareIdentity {
- [Implemented(true), Override, Description(
+ [Implemented(true), Override("InstanceID"), Description(
"Unique identifier for installed or available package."
" It's composed of OrgID and LocalID separated by ':', where"
" <OrgID> is LMI and LocalID is PKG:<PKG_NEVRA>. <PKG_NEVRA>"
@@ -31,34 +31,35 @@ class LMI_SoftwareIdentity : CIM_SoftwareIdentity {
" for name, epoch, version, release and architecture.")]
string InstanceID;
- [Implemented(true), Override, Description("Package's summary.")]
+ [Implemented(true), Override("Caption"), Description("Package's summary.")]
string Caption;
-
- [Implemented(true), Override]
+
+ [Implemented(true), Override("Classifications")]
uint16 Classifications[];
- [Implemented(true), Override, Description("Package's description.")]
+ [Implemented(true), Override("Description"), Description(
+ "Package's description.")]
string Description;
- [Implemented(true), Override, Description(
+ [Implemented(true), Override("ElementName"), Description(
"Package's NEVRA string. That is also part of InstanceID.")]
string ElementName;
- [Implemented(true), Override]
+ [Implemented(true), Override("InstallDate")]
datetime InstallDate;
- [Implemented(true), Override]
+ [Implemented(true), Override("IsEntity")]
boolean IsEntity;
- [Implemented(true), Override, Description(
+ [Implemented(true), Override("Name"), Description(
"Name of package. This does not uniquely identify package"
" installed on computer system.")]
string Name;
- [Implemented(true), Override]
+ [Implemented(true), Override("TargetTypes")]
string TargetTypes[];
- [Implemented(true), Override, Description(
+ [Implemented(true), Override("VersionString"), Description(
"Package's EVRA, in format: "
"<epoch>:<version>-<release>.<architecture>")]
string VersionString;
@@ -79,10 +80,10 @@ class LMI_SoftwareIdentity : CIM_SoftwareIdentity {
class LMI_SystemSoftwareCollection : CIM_SystemSpecificCollection {
- [Implemented(true), Override]
+ [Implemented(true), Override("InstanceID")]
string InstanceID;
- [Implemented(true), Override]
+ [Implemented(true), Override("Caption")]
string Caption;
};
@@ -95,7 +96,7 @@ class LMI_HostedSoftwareCollection : CIM_HostedCollection {
[Override("Dependent")]
LMI_SystemSoftwareCollection REF Dependent;
-
+
};
[Association]
@@ -119,3 +120,154 @@ class LMI_InstalledSoftwareIdentity : CIM_InstalledSoftwareIdentity {
Linux_ComputerSystem REF System;
};
+
+class LMI_SoftwareIdentityResource : CIM_SoftwareIdentityResource {
+
+ [Implemented(true), Override("CreationClassName")]
+ string CreationClassName;
+
+ [Implemented(true), Override("Name"), Description(
+ "Repository id. A unique name representing repository of"
+ " system.")]
+ string Name;
+
+ [Implemented(true), Override("SystemCreationClassName")]
+ string SystemCreationClassName;
+
+ [Implemented(true), Override("SystemName")]
+ string SystemName;
+
+ [Implemented(true), Override("AccessContext")]
+ uint16 AccessContext;
+
+ [Implemented(true), Override("AccessInfo")]
+ string AccessInfo;
+
+ [Implemented(true), Override("AvailableRequestedStates")]
+ uint16 AvailableRequestedStates[];
+
+ [Implemented(true), Override("Caption"), Description(
+ "A human readable string describing the repository.")]
+ string Caption;
+
+ [Implemented(true), Description(
+ "Relative cost of accessing this repository."
+ " Useful for weighing one repo's packages as greater/less"
+ " than any other.")]
+ sint32 Cost;
+
+ [Implemented(true), Override("Description")]
+ string Description;
+
+ [Implemented(true), Override("ElementName")]
+ string ElementName;
+
+ [Implemented(true), Override("EnabledDefault")]
+ uint16 EnabledDefault;
+
+ [Implemented(true), Override("EnabledState")]
+ uint16 EnabledState;
+
+ [Implemented(true), Override("ExtendedResourceType")]
+ uint16 ExtendedResourceType;
+
+ [Implemented(true), Override("Generation")]
+ uint64 Generation;
+
+ [Implemented(true), Override("HealthState")]
+ uint16 HealthState;
+
+ [Implemented(true), Description(
+ "Whether or not a GPG signature check should be performed"
+ " on the packages gotten from this repository.")]
+ boolean GPGCheck;
+
+ [Implemented(true), Override("InfoFormat")]
+ uint16 InfoFormat;
+
+ [Implemented(true), Override("InstanceID")]
+ string InstanceID;
+
+ [Implemented(true), Description(
+ "URL to a file containing list of base URLS to mirrors"
+ " of this repository. http://, ftp:// and file:// schemas"
+ " are supported. This can contain special variables"
+ " prefixed with $, which are substituted for system values."
+ " These include $releasever - defaults to the version of"
+ " \"redhat-release\" package, $arch - architecture of system,"
+ " $basearch - base architecture of system ($arch == \"i686\", then"
+ " $basearch == \"i386\", $uuid - unique but persisent uuid for this"
+ " machine.")]
+ string MirrorList;
+
+ [Implemented(true), Override("OperationalStatus")]
+ uint16 OperationalStatus[];
+
+ [Implemented(true), Override("OtherAccessContext")]
+ string OtherAccessContext;
+
+ [Implemented(true), Override("PrimaryStatus")]
+ uint16 PrimaryStatus;
+
+ [Implemented(true), Description(
+ "Whether or not a GPG signature check should be performed"
+ " on the repodata from this repository.")]
+ boolean RepoGPGCheck;
+
+ [Implemented(true), Override("RequestedState")]
+ uint16 RequestedState;
+
+ [Implemented(true), Override("ResourceType")]
+ uint16 ResourceType;
+
+ [Implemented(true), Override("StatusDescriptions")]
+ string StatusDescriptions[];
+
+ [Implemented(true), Override("TimeOfLastStateChange")]
+ datetime TimeOfLastStateChange;
+
+ [Implemented(true), Description(
+ "Time of the repository's last update on server.")]
+ datetime TimeOfLastUpdate;
+
+ [Implemented(true), Override("TransitioningToState")]
+ uint16 TransitioningToState;
+
+ [Implemented(true), Override("RequestStateChange")]
+ uint32 RequestStateChange(
+ [IN, Description (
+ "The state requested for the element. This "
+ "information will be placed into the RequestedState "
+ "property of the instance if the return code of the "
+ "RequestStateChange method is 0 (\'Completed with "
+ "No Error\'), or 4096 (0x1000) (\'Job Started\'). "
+ "Refer to the description of the EnabledState and "
+ "RequestedState properties for the detailed "
+ "explanations of the RequestedState values." ),
+ ValueMap { "2", "3", "4", "6", "7", "8", "9", "10",
+ "11", "..", "32768..65535" },
+ Values { "Enabled", "Disabled", "Shut Down", "Offline",
+ "Test", "Defer", "Quiesce", "Reboot", "Reset",
+ "DMTF Reserved", "Vendor Reserved" },
+ ModelCorrespondence {
+ "CIM_EnabledLogicalElement.RequestedState" }]
+ uint16 RequestedState,
+ [IN ( false ), OUT, Description (
+ "May contain a reference to the ConcreteJob created "
+ "to track the state transition initiated by the "
+ "method invocation." )]
+ CIM_ConcreteJob REF Job,
+ [IN, Description (
+ "A timeout period that specifies the maximum amount "
+ "of time that the client expects the transition to "
+ "the new state to take. The interval format must be "
+ "used to specify the TimeoutPeriod. A value of 0 or "
+ "a null parameter indicates that the client has no "
+ "time requirements for the transition. \n"
+ "If this property does not contain 0 or null and "
+ "the implementation does not support this "
+ "parameter, a return code of \'Use Of Timeout "
+ "Parameter Not Supported\' shall be returned." )]
+ datetime TimeoutPeriod);
+
+};