Class: VUSB
Describes the vusb device
Fields for class: VUSB
| Field | Type | Qualifier | Description |
|---|---|---|---|
allowed_operations |
vusb_operations set |
RO/runtime | list of the operations allowed in this state. This list is advisory only and the server state may have changed by the time this field is read by a client. |
current_operations |
(string -> vusb_operations) map |
RO/runtime | links each of the running tasks using this object (by reference) to a current_operation enum which describes the nature of the task. |
currently_attached |
bool |
RO/runtime | is the device currently attached |
other_config |
(string -> string) map |
RW | Additional configuration |
USB_group |
USB_group ref |
RO/runtime | USB group used by the VUSB |
uuid |
string |
RO/runtime | Unique identifier/object reference |
VM |
VM ref |
RO/runtime | VM that owns the VUSB |
RPCs associated with class: VUSB
RPC name: addtootherconfig
Overview:
Add the given keyvalue pair to the otherconfig field of the given VUSB.
Signature:
void add_to_other_config (session ref session_ref, VUSB ref self, string key, string value)
Arguments:
| Type | Name | Description |
|---|---|---|
session ref |
session_ref |
Reference to a valid session |
VUSB ref |
self |
reference to the object |
string |
key |
Key to add |
string |
value |
Value to add |
Minimum Role: pool-admin
Return Type:
void
RPC name: create
Overview:
Create a new VUSB record in the database only
Signature:
VUSB ref create (session ref session_ref, VM ref VM, USB_group ref USB_group, (string -> string) map other_config)
Arguments:
| Type | Name | Description |
|---|---|---|
session ref |
session_ref |
Reference to a valid session |
VM ref |
VM |
The VM |
USB_group ref |
USB_group |
|
(string -> string) map |
other_config |
Minimum Role: pool-admin
Return Type:
VUSB ref
The ref of the newly created VUSB record.
RPC name: destroy
Overview:
Removes a VUSB record from the database
Signature:
void destroy (session ref session_ref, VUSB ref self)
Arguments:
| Type | Name | Description |
|---|---|---|
session ref |
session_ref |
Reference to a valid session |
VUSB ref |
self |
The VUSB to destroy about |
Minimum Role: pool-admin
Return Type:
void
RPC name: getall
Overview:
Return a list of all the VUSBs known to the system.
Signature:
VUSB ref set get_all (session ref session_ref)
Arguments:
| Type | Name | Description |
|---|---|---|
session ref |
session_ref |
Reference to a valid session |
Minimum Role: read-only
Return Type:
VUSB ref set
references to all objects
RPC name: getallrecords
Overview:
Return a map of VUSB references to VUSB records for all VUSBs known to the system.
Signature:
(VUSB ref -> VUSB record) map get_all_records (session ref session_ref)
Arguments:
| Type | Name | Description |
|---|---|---|
session ref |
session_ref |
Reference to a valid session |
Minimum Role: read-only
Return Type:
(VUSB ref -> VUSB record) map
records of all objects
RPC name: getallowedoperations
Overview:
Get the allowedoperations field of the given VUSB.
Signature:
vusb_operations set get_allowed_operations (session ref session_ref, VUSB ref self)
Arguments:
| Type | Name | Description |
|---|---|---|
session ref |
session_ref |
Reference to a valid session |
VUSB ref |
self |
reference to the object |
Minimum Role: read-only
Return Type:
vusb_operations set
value of the field
RPC name: getbyuuid
Overview:
Get a reference to the VUSB instance with the specified UUID.
Signature:
VUSB ref get_by_uuid (session ref session_ref, string uuid)
Arguments:
| Type | Name | Description |
|---|---|---|
session ref |
session_ref |
Reference to a valid session |
string |
uuid |
UUID of object to return |
Minimum Role: read-only
Return Type:
VUSB ref
reference to the object
RPC name: getcurrentoperations
Overview:
Get the currentoperations field of the given VUSB.
Signature:
(string -> vusb_operations) map get_current_operations (session ref session_ref, VUSB ref self)
Arguments:
| Type | Name | Description |
|---|---|---|
session ref |
session_ref |
Reference to a valid session |
VUSB ref |
self |
reference to the object |
Minimum Role: read-only
Return Type:
(string -> vusb_operations) map
value of the field
RPC name: getcurrentlyattached
Overview:
Get the currentlyattached field of the given VUSB.
Signature:
bool get_currently_attached (session ref session_ref, VUSB ref self)
Arguments:
| Type | Name | Description |
|---|---|---|
session ref |
session_ref |
Reference to a valid session |
VUSB ref |
self |
reference to the object |
Minimum Role: read-only
Return Type:
bool
value of the field
RPC name: getotherconfig
Overview:
Get the otherconfig field of the given VUSB.
Signature:
(string -> string) map get_other_config (session ref session_ref, VUSB ref self)
Arguments:
| Type | Name | Description |
|---|---|---|
session ref |
session_ref |
Reference to a valid session |
VUSB ref |
self |
reference to the object |
Minimum Role: read-only
Return Type:
(string -> string) map
value of the field
RPC name: getrecord
Overview:
Get a record containing the current state of the given VUSB.
Signature:
VUSB record get_record (session ref session_ref, VUSB ref self)
Arguments:
| Type | Name | Description |
|---|---|---|
session ref |
session_ref |
Reference to a valid session |
VUSB ref |
self |
reference to the object |
Minimum Role: read-only
Return Type:
VUSB record
all fields from the object
RPC name: getUSBgroup
Overview:
Get the USBgroup field of the given VUSB.
Signature:
USB_group ref get_USB_group (session ref session_ref, VUSB ref self)
Arguments:
| Type | Name | Description |
|---|---|---|
session ref |
session_ref |
Reference to a valid session |
VUSB ref |
self |
reference to the object |
Minimum Role: read-only
Return Type:
USB_group ref
value of the field
RPC name: getuuid
Overview:
Get the uuid field of the given VUSB.
Signature:
string get_uuid (session ref session_ref, VUSB ref self)
Arguments:
| Type | Name | Description |
|---|---|---|
session ref |
session_ref |
Reference to a valid session |
VUSB ref |
self |
reference to the object |
Minimum Role: read-only
Return Type:
string
value of the field
RPC name: getVM
Overview:
Get the VM field of the given VUSB.
Signature:
VM ref get_VM (session ref session_ref, VUSB ref self)
Arguments:
| Type | Name | Description |
|---|---|---|
session ref |
session_ref |
Reference to a valid session |
VUSB ref |
self |
reference to the object |
Minimum Role: read-only
Return Type:
VM ref
value of the field
RPC name: removefromotherconfig
Overview:
Remove the given key and its corresponding value from the otherconfig field of the given VUSB. If the key is not in that Map, then do nothing.
Signature:
void remove_from_other_config (session ref session_ref, VUSB ref self, string key)
Arguments:
| Type | Name | Description |
|---|---|---|
session ref |
session_ref |
Reference to a valid session |
VUSB ref |
self |
reference to the object |
string |
key |
Key to remove |
Minimum Role: pool-admin
Return Type:
void
RPC name: setotherconfig
Overview:
Set the otherconfig field of the given VUSB.
Signature:
void set_other_config (session ref session_ref, VUSB ref self, (string -> string) map value)
Arguments:
| Type | Name | Description |
|---|---|---|
session ref |
session_ref |
Reference to a valid session |
VUSB ref |
self |
reference to the object |
(string -> string) map |
value |
New value to set |
Minimum Role: pool-admin
Return Type:
void
RPC name: unplug
Overview:
Unplug the vusb device from the vm.
Signature:
void unplug (session ref session_ref, VUSB ref self)
Arguments:
| Type | Name | Description |
|---|---|---|
session ref |
session_ref |
Reference to a valid session |
VUSB ref |
self |
vusb deivce |
Minimum Role: pool-admin
Return Type:
void