2.3.
TYPES
CHAPTER 2.
API REFERENCE
2.2.1
List of bound fields
2.3
Types
2.3.1
Primitives
The following primitive types are used to specify methods and fields in the API Reference:
Type
Description
String
text strings
Int
64-bit integers
Float
IEEE double-precision floating-point numbers
Bool
boolean
DateTime
date and timestamp
Ref (object name)
reference to an object of class name
2.3.2
Higher order types
The following type constructors are used:
Type
Description
List (t)
an arbitrary-length list of elements of type t
Map (a
→
b)
a table mapping values of type a to values of type b
2.3.3
Enumeration types
The following enumeration types are used:
enum event operation
add
An object has been created
del
An object has been deleted
mod
An object has been modified
enum console protocol
vt100
VT100 terminal
rfb
Remote FrameBuffer protocol (as used in VNC)
rdp
Remote Desktop Protocol
enum vbd operations
attach
Attempting to attach this VBD to a VM
eject
Attempting to eject the media from this VBD
insert
Attempting to insert new media into this VBD
plug
Attempting to hotplug this VBD
unplug
Attempting to hot unplug this VBD
unplug force
Attempting to forcibly unplug this VBD
16