Resource: DeviceSession
Protobuf message describing the device message, used from several RPCs.
JSON representation |
---|
{ "name": string, "displayName": string, "state": enum ( |
Fields | |
---|---|
name |
Optional. Name of the DeviceSession, e.g. "projects/{projectId}/deviceSessions/{session_id}" |
displayName |
Output only. The title of the DeviceSession to be presented in the UI. |
state |
Output only. Current state of the DeviceSession. |
stateHistories[] |
Output only. The historical state transitions of the sessionState message including the current session state. |
inactivityTimeout |
Output only. The interval of time that this device must be interacted with before it transitions from ACTIVE to TIMEOUT_INACTIVITY. A duration in seconds with up to nine fractional digits, ending with ' |
createTime |
Output only. The time that the Session was created. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
activeStartTime |
Output only. The timestamp that the session first became ACTIVE. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
androidDevice |
Required. The requested device |
Union field expiration . The amount of time that a device will be initially allocated for. expiration can be only one of the following: |
|
ttl |
Optional. The amount of time that a device will be initially allocated for. This can eventually be extended with the deviceSessions.patch RPC. Default: 15 minutes. A duration in seconds with up to nine fractional digits, ending with ' |
expireTime |
Optional. If the device is still in use at this time, any connections will be ended and the SessionState will transition from ACTIVE to FINISHED. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
SessionState
The state that the DeviceSession resides.
Enums | |
---|---|
SESSION_STATE_UNSPECIFIED |
Default value. This value is unused. |
REQUESTED |
Initial state of a session request. The session is being validated for correctness and a device is not yet requested. |
PENDING |
The session has been validated and is in the queue for a device. |
ACTIVE |
The session has been granted and the device is accepting connections. |
EXPIRED |
The session duration exceeded the device's reservation time period and timed out automatically. |
FINISHED |
The user is finished with the session and it was canceled by the user while the request was still getting allocated or after allocation and during device usage period. |
UNAVAILABLE |
Unable to complete the session because the device was unavailable and it failed to allocate through the scheduler. For example, a device not in the catalog was requested or the request expired in the allocation queue. |
ERROR |
Unable to complete the session for an internal reason, such as an infrastructure failure. |
SessionStateEvent
A message encapsulating a series of Session states and the time that the DeviceSession first entered those states.
JSON representation |
---|
{
"sessionState": enum ( |
Fields | |
---|---|
sessionState |
Output only. The sessionState tracked by this event |
eventTime |
Output only. The time that the sessionState first encountered that state. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
stateMessage |
Output only. A human-readable message to explain the state. |
AndroidDevice
A single Android device.
JSON representation |
---|
{ "androidModelId": string, "androidVersionId": string, "locale": string, "orientation": string } |
Fields | |
---|---|
androidModelId |
Required. The id of the Android device to be used. Use the TestEnvironmentDiscoveryService to get supported options. |
androidVersionId |
Required. The id of the Android OS version to be used. Use the TestEnvironmentDiscoveryService to get supported options. |
locale |
Optional. The locale the test device used for testing. Use the TestEnvironmentDiscoveryService to get supported options. |
orientation |
Optional. How the device is oriented during the test. Use the TestEnvironmentDiscoveryService to get supported options. |
Methods |
|
---|---|
|
Cancel a DeviceSession. |
|
Creates a DeviceSession. |
|
Gets a DeviceSession, which documents the allocation status and whether the device is allocated. |
|
Lists DeviceSessions owned by the project user. |
|
Updates the current DeviceSession to the fields described by the update_mask. |