7.2

Table Of Contents
Property Description
state
Provides a structure for dening the state of a content construct, for example {@link
LayoutSection}. The element state identies the eld 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 eld 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 eld.
If a eld is considered in need of server-side evaluation, its facets seing is
callback.
If a eld is considered mandatory, its facets seing is mandatory.
n
isMultiValued:
Species if the eld is a multi-value eld, such as a list eld.
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 eld.
Example: curl Command
curl --insecure -H "Accept:application/json"
-H "Authorization: Bearer $token"
https://$host/reservation-service/api/data-
service/schema/Infrastructure.Reservation.Virtual.vSphere/default
Example: JSON Output
The schema denition in this example includes 9 extension elds that are supported for the vSphere type
reservation.
{
"fields": [{
"id": "reservationNetworks",
"label": "Network",
"dataType": {
"type": "complex",
"componentTypeId": "com.mycompany.csp.iaas.blueprint.service",
"componentId": null,
"classId": "reservationNetwork",
"typeFilter": null,
"label": "Network"
},
"displayAdvice": "DATA_TABLE",
"permissibleValues": {
"type": "dynamic",
"customAllowed": false,
"dependencies": ["computeResource"]
},
"state": {
"dependencies": [],
"facets": [{
Programming Guide
130 VMware, Inc.