vapi metadata metamodel: enumeration info

The enumeration_info structure contains the metamodel information of an enumeration element.

Representations:

{
    "documentation""string",
    "metadata"[
        {
            "key""string",
            "value"{
                "elements"[
                    {
                        "key""string",
                        "value"{
                            "list_value"[
                                "string",
                                "string"
                            ],
                            "long_value"1,
                            "string_value""string",
                            "structure_id""obj-103",
                            "structure_ids"[
                                "obj-103",
                                "obj-103"
                            ],
                            "type""LONG"
                        }
                    }
                ]
            }
        }
    ],
    "name""string",
    "values"[
        {
            "documentation""string",
            "metadata"[
                {
                    "key""string",
                    "value"{
                        "elements"[
                            {
                                "key""string",
                                "value"{
                                    "list_value"[
                                        "string",
                                        "string"
                                    ],
                                    "long_value"1,
                                    "string_value""string",
                                    "structure_id""obj-103",
                                    "structure_ids"[
                                        "obj-103",
                                        "obj-103"
                                    ],
                                    "type""LONG"
                                }
                            }
                        ]
                    }
                }
            ],
            "value""string"
        },
        {
            "documentation""string",
            "metadata"[
                {
                    "key""string",
                    "value"{
                        "elements"[
                            {
                                "key""string",
                                "value"{
                                    "list_value"[
                                        "string",
                                        "string"
                                    ],
                                    "long_value"1,
                                    "string_value""string",
                                    "structure_id""obj-103",
                                    "structure_ids"[
                                        "obj-103",
                                        "obj-103"
                                    ],
                                    "type""LONG"
                                }
                            }
                        ]
                    }
                }
            ],
            "value""string"
        }
    ]
}
<?xml version="1.0" ?>
<ns0:EnumerationInfo xmlns:ns0="http://vmware.com/vapi/metadata/metamodel" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <values-array>
    <array-item>
      <documentation>string</documentation>
      <value>string</value>
      <metadata-array>
        <array-item>
          <value>
            <elements-array>
              <array-item>
                <value>
                  <long_value>1</long_value>
                  <list_value-array>
                    <array-item>string</array-item>
                    <array-item>string</array-item>
                  </list_value-array>
                  <structure_id>obj-103</structure_id>
                  <structure_ids-array>
                    <array-item>obj-103</array-item>
                    <array-item>obj-103</array-item>
                  </structure_ids-array>
                  <string_value>string</string_value>
                  <type>LONG</type>
                </value>
                <key>string</key>
              </array-item>
            </elements-array>
          </value>
          <key>string</key>
        </array-item>
      </metadata-array>
    </array-item>
    <array-item>
      <documentation>string</documentation>
      <value>string</value>
      <metadata-array>
        <array-item>
          <value>
            <elements-array>
              <array-item>
                <value>
                  <long_value>1</long_value>
                  <list_value-array>
                    <array-item>string</array-item>
                    <array-item>string</array-item>
                  </list_value-array>
                  <structure_id>obj-103</structure_id>
                  <structure_ids-array>
                    <array-item>obj-103</array-item>
                    <array-item>obj-103</array-item>
                  </structure_ids-array>
                  <string_value>string</string_value>
                  <type>LONG</type>
                </value>
                <key>string</key>
              </array-item>
            </elements-array>
          </value>
          <key>string</key>
        </array-item>
      </metadata-array>
    </array-item>
  </values-array>
  <name>string</name>
  <documentation>string</documentation>
  <metadata-array>
    <array-item>
      <value>
        <elements-array>
          <array-item>
            <value>
              <long_value>1</long_value>
              <list_value-array>
                <array-item>string</array-item>
                <array-item>string</array-item>
              </list_value-array>
              <structure_id>obj-103</structure_id>
              <structure_ids-array>
                <array-item>obj-103</array-item>
                <array-item>obj-103</array-item>
              </structure_ids-array>
              <string_value>string</string_value>
              <type>LONG</type>
            </value>
            <key>string</key>
          </array-item>
        </elements-array>
      </value>
      <key>string</key>
    </array-item>
  </metadata-array>
</ns0:EnumerationInfo>

Attributes:

Name Type Description
Required
name string Dot separated name of the enumeration element. The segments in the name reflect the organization of the APIs. The format of each segment is lower case with underscores. Each underscore represents a word boundary. If there are acronyms in the word, the capitalization is preserved. This format makes it easy to translate the segment into a different naming convention.

values enumeration_value_info[] Metamodel information of all the enumeration value elements contained in this enumeration element. The order of the enumeration value elements in the list is same as the order in which they are defined in the interface definition file.

metadata list Generic metadata elements for an enumeration element. The key in the key/value pairs is the name of the metadata element and the value is the data associated with that metadata element.

The vapi.metadata.metamodel.metadata_identifier contains possible string values for keys in the key/value pairs.

List of {"key": string, "value": element_map}

documentation string English language documentation for an enumeration element. It can contain HTML markup and Javadoc tags. The first sentence of the enumeration documentation is a complete sentence that identifies the enumeration by name and summarizes the purpose of the enumeration. The documentation describes the context in which the enumeration is used.

The documentation also contains references to the context in which the enumeration is used. But if the enumeration is used in many contexts, the references may not be present.