7.3

Table Of Contents
Property Description
state Provides a structure for defining the state of a content construct, for example {@link LayoutSection}. The
element state identifies the field paths in the client data context upon which that element state depends. For
example, the callback facet result indicates that facet evaluation must be delegated to the server of the object.
This evaluation may be dependent on data collected in the client data context. For example, for a unique
machine name, the evaluation requires the proposed name entered by the user.
dependencies Contains the set of field paths on which the server-side evaluation of the facets depends:
n
facets: Provides a higher level view of an {@link Constraint} collection and its current values. All
rendering code should use this class to provide a common place to get the current state of the field.
If a field is considered in need of server-side evaluation, its facets setting is callback.
If a field is considered mandatory, its facets setting is mandatory.
n
isMultiValued: Specifies if the field is a multi-value field, such as a list field.
The state provides a higher level view of an {@link Constraint} collection and its current values.
Rendering code should use this class to provide a common place to get the current state of the field.
Example: curl Command
The following example command retrieves schema definition information for a vCloud Air reservation.
curl --insecure -H "Accept:application/json"
-H "Authorization: Bearer $token"
https://$vRA/reservation-service/api/data-
service/schema/Infrastructure.Reservation.Cloud.vCloudAir/default
Example: JSON Output
The schema definition in this example includes 6 extension fields that are supported for the vCloud Air
type reservation.
{
"fields": [
{
"id": "reservationNetworks",
"label": "Network",
"dataType": {
"type": "complex",
"componentTypeId": "com.mycompany.csp.iaas.blueprint.service",
"componentId": null,
"classId": "Infrastructure.Reservation.Network",
"typeFilter": null,
"label": "Network",
"schema": {
"fields": [
{
"id": "networkPath",
"label": "Network Path",
"description": "Network path of the reservation",
"dataType": {
"type": "ref",
"componentTypeId": "com.mycompany.csp.iaas.blueprint.service",
Programming Guide
VMware, Inc. 224