⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cimclient.h

📁 Pegasus is an open-source implementationof the DMTF CIM and WBEM standards. It is designed to be por
💻 H
📖 第 1 页 / 共 4 页
字号:
	the target namespace. 	See defintion of	\URL[Namespace]{DefinitionofTerms.html#NAMESPACE}.	@param instanceName The <TT>instanceName</TT> input parameter defines	the name (model path) of the Instance to be deleted.	@return If successful, the specified Instance MUST have been removed	by the CIM Server.	If unsuccessful, one of the following status codes MUST be returned by	this method, where the first applicable error in the list (starting	with the first element of the list, and working down) is the error	returned. Any additional method-specific interpretation of the error in	is given in parentheses.	<UL>	    <LI>CIM_ERR_ACCESS_DENIED	    <LI>CIM_ERR_NOT_SUPPORTED	    <LI>CIM_ERR_INVALID_NAMESPACE	    <LI>CIM_ERR_INVALID_PARAMETER (including missing, duplicate,		unrecognized or otherwise incorrect parameters)	    <LI>CIM_ERR_INVALID_CLASS (the CIM Class does not exist in the		specified namespace)	    <LI>CIM_ERR_NOT_FOUND (the CIM Class does exist, but the requested		CIM Instance does not exist in the specified namespace)	    <LI>CIM_ERR_FAILED (some other unspecified error occurred)</LI>	</UL>    */    void deleteInstance(	const CIMNamespaceName& nameSpace,	const CIMObjectPath& instanceName    );    /** The <TT>createClass</TT> method creates a single CIM Class in    the target Namespace. The Class MUST NOT already exist. The NewClass input    parameter defines the new Class.  The proposed definition MUST be a correct    Class definition according to the CIM specification.    In processing the creation of the new Class, the following rules MUST be    conformed to by the CIM Server:    Any CLASSORIGIN and PROPAGATED attributes in the NewClass MUST be ignored by    the Server. If the new Class has no Superclass, the NewClass parameter    defines a new base Class. The Server MUST ensure that all Properties and    Methods of the new Class have a CLASSORIGIN attribute whose value is the    name of the new Class. If the new Class has a Superclass, the NewClass    parameter defines a new Subclass of that Superclass. The Superclass MUST    exist. The Server MUST ensure that:    <UL>        <LI>Any Properties, Methods or Qualifiers in the Subclass not defined in        the Superclass are created as new elements of the Subclass. In        particular the Server MUST set the CLASSORIGIN attribute on the new        Properties and Methods to the name of the Subclass, and ensure that all        other Properties and Methods preserve their CLASSORIGIN attribute value        from that defined in the Superclass        If a CIMProperty is defined in the Superclass and in the Subclass, the        value assigned to that property in the Subclass (including NULL) becomes        the default value of the property for the Subclass. If a CIMProperty or        CIMMethod of the Superclass is not specified in the Subclass, then that        CIMProperty or CIMMethod is inherited without modification by the        Subclass        <LI>Any Qualifiers defined in the Superclass with a TOSUBCLASS attribute        value of true MUST appear in the resulting Subclass. Qualifiers in the        Superclass with a TOSUBCLASS attribute value of false MUST NOT be        propagated to the Subclass . Any CIMQualifier propagated from the        Superclass cannot be modified in the Subclass if the OVERRIDABLE        attribute of that CIMQualifier was set to false in the Superclass. It is        a        Client error to specify such a CIMQualifier in the NewClass with a        different definition to that in the Superclass (where definition        encompasses the name, type and flavor attribute settings of the        <QUALIFIER> element, and the value of the CIMQualifier).	</LI>    </UL>    @param nameSpace The nameSpace parameter is a string that defines the target    namespace. See defintion of    \URL[Namespace]{DefinitionofTerms.html#NAMESPACE}.    @param newClass The <TT>newClass<?TT> input parameter defines the new Class.    @return If successful, the specified Class MUST have been created by the CIM    Server.    If unsuccessful, one of the following status codes MUST be returned by this    method, where the first applicable error in the list (starting with the    first element of the list, and working down) is the error returned. Any    additional method-specific interpretation of the error in is given in    parentheses.    <UL>         <LI>CIM_ERR_ACCESS_DENIED         <LI>CIM_ERR_NOT_SUPPORTED         <LI>CIM_ERR_INVALID_NAMESPACE         <LI>CIM_ERR_INVALID_PARAMETER (including missing, duplicate,         unrecognized or otherwise incorrect parameters)         <LI>CIM_ERR_ALREADY_EXISTS (the CIM Class already exists)         <LI>CIM_ERR_INVALID_SUPERCLASS (the putative CIM Class declares a         non-existent superclass)         <LI>CIM_ERR_FAILED (some other unspecified error occurred)</LI>    </UL>    */    void createClass(	const CIMNamespaceName& nameSpace,	const CIMClass& newClass    );    /** The <TT>createInstance</TT> method creates a single CIM    Instance in the target Namespace. The Instance MUST NOT already exist.    In processing the creation of the new Instance, the following rules MUST be    conformed to by the CIM Server:    Any CLASSORIGIN and PROPAGATED attributes in the NewInstance MUST be ignored    by the Server.    The Server MUST ensure that:    <UL>        <LI>Any Qualifiers in the Instance not defined in the Class are created        as new elements of the Instance.        <LI>All Properties of the Instance preserve their CLASSORIGIN attribute        value from that defined in the Class.        <LI>If a CIMProperty is specified in the ModifiedInstance parameter, the        value assigned to that property in the Instance (including NULL) becomes        the value of the property for the Instance. Note that it is a Client        error to specify a CIMProperty that does not belong to the Class.        <LI>If a CIMProperty of the Class is not specified in the Instance, then        that CIMProperty is inherited without modification by the Instance.        <LI>Any Qualifiers defined in the Class with a TOINSTANCE attribute        value of true appear in the Instance. Qualifiers in the        Class with a TOINSTANCE attribute value of false MUST NOT be propagated        to the Instance.        <LI>Any CIMQualifier propagated from the Class cannot be modified in the        Instance if the OVERRIDABLE attribute of that CIMQualifier was set to        false        in the Class. It is a Client error to specify such a CIMQualifier in the        NewInstance with a different definition to that in the Class (where        definition encompasses the name, type and flavor attribute settings of        the <QUALIFIER> element, and the value of the CIMQualifier).    </UL>    @param nameSpace The nameSpace parameter is a string that defines the target    namespace. See defintion of    \URL[Namespace]{DefinitionofTerms.html#NAMESPACE}.    @param newInstance The <TT>newInstance</TT> input parameter defines the new    Instance. The proposed definition MUST be a correct Instance definition for    the underlying CIM Class according to the CIM specification.    @return If successful, the return value defines the object path of the new    CIM Instance relative to the target Namespace (i.e. the Model Path as    defined by the CIM specification), created by the CIM Server.  It is    returned in case one or more of the new keys of the Instance are allocated    dynamically during the creation process rather than specified in the    request.    If unsuccessful, one of the following status codes MUST be returned by this    method, where the first applicable error in the list (starting with the    first element of the list, and working down) is the error returned. Any    additional method-specific interpretation of the error in is given in    parentheses.    <UL>        <LI>CIM_ERR_ACCESS_DENIED        <LI>CIM_ERR_NOT_SUPPORTED        <LI>CIM_ERR_INVALID_NAMESPACE        <LI>CIM_ERR_INVALID_PARAMETER (including missing, duplicate,        	unrecognized or otherwise incorrect parameters)        <LI>CIM_ERR_INVALID_CLASS (the CIM Class of which this is to be a new        	Instance does not exist)        <LI>CIM_ERR_ALREADY_EXISTS (the CIM Instance already exists)        <LI>CIM_ERR_FAILED (some other unspecified error occurred)    </UL>    */    CIMObjectPath createInstance(	const CIMNamespaceName& nameSpace,	const CIMInstance& newInstance    );    /** The <TT>modifyClass</TT> method modifies an existing CIM Class in the    target Namespace.    The Class MUST already exist. The <TT>ModifiedClass</TT>    input parameter defines the set of changes (which MUST be  correct    amendments to the CIM Class as defined by the CIM Specification) to be made    to the current class definition.    In processing the  modifcation of the Class, the following rules MUST be    conformed to by the CIM Server.    <UL>      <LI>Any <TT>CLASSORIGIN</TT> and <TT>PROPAGATED</TT> attributes in the      <TT>ModifiedClass</TT> MUST be ignored by the Server.      <LI>If the  modified Class has no Superclass,      the<TT>ModifiedClass</TT> parameter defines modifications to a base Class.      The Server MUST ensure that:      <UL>        <LI>All Properties and Methods of the modified Class have a        <TT>CLASSORIGIN</TT> attribute whose value is the name of this Class.        <LI>Any Properties, Methods or Qualifiers in the existing Class        definition which do not appear in the   <FONT face="Courier        New">ModifiedClass</TT> parameter are removed from the resulting        modified Class.</LI>      </UL>      <LI>If the  modified Class has a Superclass,the <TT>ModifiedClass</TT>      parameter defines modifications to a Subclass of that Superclass. The      Superclass MUST exist, and the Client MUST NOT change the name of the      Superclass in the modified Subclass. The Server MUST ensure that:      <UL>        <LI>Any Properties, Methods or Qualifiers in the Subclass not        defined in the Superclass are created as elements of the Subclass. In        particular the Server MUST set the <TT>CLASSORIGIN</TT> attribute on the        new Properties and Methods to the name of the Subclass, and MUST ensure        that all other Properties and Methods preserve their        <TT>CLASSORIGIN</TT> attribute value from that defined in the        Superclass.        <LI>Any CIMProperty, CIMMethod or CIMQualifier previously defined in the        Subclass        but not defined in the Superclass, and which is not present in the        <TT>ModifiedClass</TT> parameter, is removed from the Subclass.        <LI>If a CIMProperty is specified in the <TT>ModifiedClass</TT>        parameter, the value assigned to that property therein (including        NULL) becomes the default value of the property for the Subclass.        <LI>If a CIMProperty or CIMMethod of the Superclass is not specified in        the        Subclass, then that CIMProperty or CIMMethod is inherited        without modification by the Subclass (so that any previous changes to        such an Element in the Subclass are lost).        <LI>If a CIMQualifier in the Superclass is not specified in the        Subclass, and the CIMQualifier is defined in the Superclass with a        <TT>TOSUBCLASS</TT> attribute value of <TT>true</TT>, then the        CIMQualifier        MUST still be present in the resulting modified Subclass (it is not        possible to remove a propagated CIMQualifier from a Subclass).        <LI>Any CIMQualifier propagated from the Superclass cannot be        modified in the Subclass if the <TT>OVERRIDABLE</TT> attribute of        that CIMQualifier was set to <TT>false</TT> in the Superclass. It is a        Client error to specify such a CIMQualifier in the        <TT>ModifiedClass</TT>        with a different definition to that in the Superclass (where definition        encompasses the name, type and flavor attribute settings of the        <TT>&lt;QUALIFIER&gt;</TT> element, and the value of the CIMQualifier).        <LI>Any Qualifiers defined in the Superclass with a <TT>TOSUBCLASS</TT>        attribute value of  <TT>false</TT> MUST NOT be propagated to the        Subclass.</LI> </UL>       </LI></UL>    @param nameSpace The nameSpace parameter is a string that defines the target    namespace. See defintion of    \URL[Namespace]{DefinitionofTerms.html#NAMESPACE}.    @param modifiedClass The <TT>modifiedClass</TT>    input parameter defines the set of changes (which MUST be correct    amendments to the CIM Class as defined by the CIM Specification) to be made    to the current class definition.    @return If successful, the specified Class MUST have been updated by    the CIM Server.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -