📄 cimclient.h
字号:
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><QUALIFIER></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. The request to modify the Class MUST fail if the Server cannot update any existing Subclasses or Instances of that Class in a consistent manner. @return 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_NOT_FOUND (the CIM Class does not exist) <LI>CIM_ERR_INVALID_SUPERCLASS (the putative CIM Class declares a non-existent or incorrect superclass) <LI>CIM_ERR_CLASS_HAS_CHILDREN (the modification could not be performed because it was not possible to update the subclasses of the Class in a consistent fashion) <LI>CIM_ERR_CLASS_HAS_INSTANCES (the modification could not be performed because it was not possible to update the instances of the Class in a consistent fashion) <LI>CIM_ERR_FAILED (some other unspecified error occurred) </LI></UL> */ void modifyClass( const CIMNamespaceName& nameSpace, const CIMClass& modifiedClass ); /** The <TT>modifyInstance</TT> method modifies an existing CIM Instance in the target Namespace. @param nameSpace The nameSpace parameter is a string that defines the target namespace. See defintion of \URL[Namespace]{DefinitionofTerms.html#NAMESPACE}. @param modifiedInstance The <TT>modifiedInstance</TT> input parameter identifies the name of the Instance to be modified, and defines the set of changes (which MUST be correct amendments to the Instance as defined by the CIM Specification) to be made to the current Instance definition. In processing the modifcation of the Instance, 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>ModifiedInstance</TT> MUST be ignored by the Server. <LI>The Class MUST exist, and the Client MUST NOT change the name of the Class in the modified Instance. 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 <TT>CLASSORIGIN</TT> attribute value from that defined in the Class. <LI>Any CIMQualifier previously defined in the Instance but not defined in the Class, and which is not present in the <TT>ModifiedInstance</TT> parameter, is removed from the Instance. <LI>If a CIMProperty is specified in the <TT>ModifiedInstance</TT> parameter, the value assigned to that property therein (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 (so that any previous changes to that CIMProperty in the Instance are lost). <LI>Any Qualifiers defined in the Class with a <TT>TOINSTANCE</TT> attribute value of <TT>true</TT> appear in the Instance (it is not possible remove a propagated CIMQualifier from an Instance. Qualifiers in the Class with a <TT>TOINSTANCE</TT> attribute value of <TT>false</TT> MUST NOT be propagated to the Instance. <LI>Any CIMQualifier propagated from the Class cannot be modified by the Server if the <TT>OVERRIDABLE</TT> attribute of that CIMQualifier was set to <TT>false</TT> in the Class. It is a Client error to specify such a CIMQualifier in the <TT>ModifiedInstance</TT> with a different definition to that in the Class (where definition encompasses the name, type and flavor attribute settings of the <TT><QUALIFIER></TT> element, and the value of the CIMQualifier). <LI>Any CIMQualifier propagated from the Class cannot be modified in the Instance if the <TT>OVERRIDABLE</TT> attribute of that CIMQualifier was set to <TT>false</TT> in the Class. It is a Client error to specify such a CIMQualifier in the <TT>ModifiedInstance</TT> with a different definition to that in the Class (where definition encompasses the name, type and
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -