REST API - constant_info

REST API - constant_info

com.vmware.vapi.metadata.metamodel

constant_info

The constant_info structure contains metamodel information of the constant elements.
Representations:
{
    "documentation": "string",
    "type": {
        "builtin_type": "VOID",
        "category": "BUILTIN",
        "generic_instantiation": {
            "element_type": {
                "builtin_type": "VOID",
                "category": "BUILTIN",
                "generic_instantiation": {
                    "generic_type": "LIST"
                },
                "user_defined_type": {
                    "resource_id": "obj-103",
                    "resource_type": "string"
                }
            },
            "generic_type": "LIST"
        },
        "user_defined_type": {
            "resource_id": "obj-103",
            "resource_type": "string"
        }
    },
    "value": {
        "category": "PRIMITIVE",
        "list_value": [
            {
                "boolean_value": true,
                "double_value": 10.23,
                "long_value": 10,
                "string_value": "string",
                "type": "BOOLEAN"
            },
            {
                "boolean_value": true,
                "double_value": 10.23,
                "long_value": 10,
                "string_value": "string",
                "type": "BOOLEAN"
            }
        ],
        "primitive_value": {
            "boolean_value": true,
            "double_value": 10.23,
            "long_value": 10,
            "string_value": "string",
            "type": "BOOLEAN"
        }
    }
}
<?xml version="1.0" ?>
<ns0:ConstantInfo xmlns:ns0="http://vmware.com/vapi/metadata/metamodel" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <documentation>string</documentation>
  <value>
    <category>PRIMITIVE</category>
    <primitive_value>
      <long_value>10</long_value>
      <double_value>10.23</double_value>
      <string_value>string</string_value>
      <type>BOOLEAN</type>
      <boolean_value>true</boolean_value>
    </primitive_value>
    <list_value-array>
      <array-item>
        <long_value>10</long_value>
        <double_value>10.23</double_value>
        <string_value>string</string_value>
        <type>BOOLEAN</type>
        <boolean_value>true</boolean_value>
      </array-item>
      <array-item>
        <long_value>10</long_value>
        <double_value>10.23</double_value>
        <string_value>string</string_value>
        <type>BOOLEAN</type>
        <boolean_value>true</boolean_value>
      </array-item>
    </list_value-array>
  </value>
  <type>
    <user_defined_type>
      <resource_id>obj-103</resource_id>
      <resource_type>string</resource_type>
    </user_defined_type>
    <category>BUILTIN</category>
    <generic_instantiation>
      <generic_type>LIST</generic_type>
      <element_type>
        <user_defined_type>
          <resource_id>obj-103</resource_id>
          <resource_type>string</resource_type>
        </user_defined_type>
        <category>BUILTIN</category>
        <generic_instantiation>
          <generic_type>LIST</generic_type>
        </generic_instantiation>
        <builtin_type>VOID</builtin_type>
      </element_type>
    </generic_instantiation>
    <builtin_type>VOID</builtin_type>
  </type>
</ns0:ConstantInfo>

Attributes:
Name Type Required Description
type
 *
type Yes Type of the constant element.
value
 *
constant_value Yes Value of the constant element.
documentation
 *
string Yes English language documentation for the constant element. It can contain HTML markup and documentation tags (similar to Javadoc tags).

Copyright © 2014. All Rights Reserved.