Saggi Mizrahi has submitted this change and it was merged.

Change subject: schema: Change the format for specifying unions
......................................................................


schema: Change the format for specifying unions

Unions are regular types but with methods to 'cast' the internal object to one
of the member types.  We need to do it this way to support languages that lack
the concept of type casting (ie. Python).  Change the schema to accomodate this
new way of representing unions:
 - 'data': contains fields that are common to all sub-types in the union.
   Useful for identifying what the generic type should be casted to (eg.
   VmDevice.deviceType).
 - 'union': A list of types to which this object may be cast.  Causes the proper
   casting methods to be generated.

Change-Id: I93004dd7d4096b9afd93e125a59baa210fcb04a0
Signed-off-by: Adam Litke <[email protected]>
---
M vdsm_api/vdsmapi-schema.json
1 file changed, 55 insertions(+), 23 deletions(-)

Approvals:
  Saggi Mizrahi: Verified; Looks good to me, approved


--
To view, visit http://gerrit.ovirt.org/7837
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I93004dd7d4096b9afd93e125a59baa210fcb04a0
Gerrit-PatchSet: 3
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Adam Litke <[email protected]>
Gerrit-Reviewer: Adam Litke <[email protected]>
Gerrit-Reviewer: Federico Simoncelli <[email protected]>
Gerrit-Reviewer: Saggi Mizrahi <[email protected]>
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to