📄 cimclient.h
字号:
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 flavor attribute settings of the <TT><QUALIFIER></TT> element, and the value of the CIMQualifier).</LI> </UL> </LI></UL> @return If successful, the specified Instance MUST have been updated 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 of which this is to be a new Instance does not exist) <LI>CIM_ERR_NOT_FOUND (the CIM Instance does not exist) <LI>CIM_ERR_FAILED (some other unspecified error occurred)</LI></UL> */ void modifyInstance( const CIMNamespaceName& nameSpace, const CIMInstance& modifiedInstance, Boolean includeQualifiers = true, const CIMPropertyList& propertyList = CIMPropertyList() ); /** The <TT>enumerateClasses</TT> method is used to enumerate subclasses of a CIM Class 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 className The <TT>className</TT> input parameter defines the Class that is the basis for the enumeration. @param deepInheritance If the <TT>deepInheritance</TT> input parameter is <TT>true</TT>, this specifies that all subclasses of the specified Class should be returned (if the <TT>ClassName</TT> input parameter is absent, this implies that all Classes in the target Namespace should be returned). If <TT>false</TT>, only immediate child subclasses are returned (if the <TT>ClassName</TT> input parameter is NULL, this implies that all base Classes in the target Namespace should be returned). @param localOnly If the <TT>localOnly</TT> input parameter is <TT>true</TT>, it specifies that, for each returned Class, only elements (properties, methods and qualifiers) overriden within the definition of that Class are included. If <TT>false</TT>, all elements are returned. This parameter therefore effects a CIM Server-side mechanism to filter certain elements of the returned object based on whether or not they have been propagated from the parent Class (as defined by the <TT>PROPAGATED</TT> attribute). @param includeQualifiers If the <TT>includeQualifiers</TT> input parameter is <TT>true</TT>, this specifies that all Qualifiers for each Class (including Qualifiers on the Class and on any returned Properties, Methods or CIMMethod Parameters) MUST be included as <TT><QUALIFIER></TT> elements in the response. If false no <TT><QUALIFIER></TT> elements are present in each returned Class. @param includeClassOrigin If the <TT>IncludeClassOrigin</TT> input parameter is <TT>true</TT>, this specifies that the <TT>CLASSORIGIN</TT> attribute MUST be present on all appropriate elements in each returned Class. If false, no <TT>CLASSORIGIN</TT> attributes are present in each returned Class. @return If successful, the method returns zero or more Classes that meet the required criteria. 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 that is the basis for this enumeration does not exist) <LI>CIM_ERR_FAILED (some other unspecified error occurred) </LI> </UL> */ Array<CIMClass> enumerateClasses( const CIMNamespaceName& nameSpace, const CIMName& className = CIMName(), Boolean deepInheritance = false, Boolean localOnly = true, Boolean includeQualifiers = true, Boolean includeClassOrigin = false ); /** The <TT>enumerateClassNames</TT> operation is used to enumerate the names of subclasses of a CIM Class 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 className The <TT>className</TT> input parameter defines the Class that is the basis for the enumeration. @param deepInheritance If the <TT>deepInheritance</TT> input parameter is true, this specifies that the names of all subclasses of the specified Class should be returned (if the ClassName input parameter is absent, this implies that the names of all Classes in the target Namespace should be returned). If false, only the names of immediate child subclasses are returned (if the className input parameter is NULL, this implies that the names of all base Classes in the target Namespace should be returned). @return If successful, the method returns zero or more names of Classes that meet the requested criteria. 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 that is the basis for this enumeration does not exist) <LI>CIM_ERR_FAILED (some other unspecified error occurred)</LI> </UL> */ Array<CIMName> enumerateClassNames( const CIMNamespaceName& nameSpace, const CIMName& className = CIMName(), Boolean deepInheritance = false ); /** The <TT>enumerateInstances</TT> method enumerates instances of a CIM Class 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 className The <TT>className</TT> input parameter defines the Class that is the basis for the enumeration. @param localOnly If the <TT>localOnly</TT> input parameter is <TT>true</TT>, this specifies that, for each returned Instance, only elements (properties and qualifiers) overriden within the definition of that Instance are included. If <TT>false</TT>, all elements are returned. This parameter therefore effects a CIM Server-side mechanism to filter certain elements of the returned object based on whether or not they have been propagated from the parent Class (as defined by the <TT>PROPAGATED</TT> attribute). Only elements (properties, methods and qualifiers) defined or overridden within the class are included in the response. Propagated properties are not included because their values are based on another class
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -