Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

DeviceSession

import type { DeviceSession } from "https://googleapis.deno.dev/v1/testing:v1.ts";

Protobuf message describing the device message, used from several RPCs.

interface DeviceSession {
readonly activeStartTime?: Date;
androidDevice?: AndroidDevice;
readonly createTime?: Date;
readonly displayName?: string;
expireTime?: Date;
readonly inactivityTimeout?: number;
name?: string;
readonly state?:
| "SESSION_STATE_UNSPECIFIED"
| "REQUESTED"
| "PENDING"
| "ACTIVE"
| "EXPIRED"
| "FINISHED"
| "UNAVAILABLE"
| "ERROR";
readonly stateHistories?: SessionStateEvent[];
ttl?: number;
}

§Properties

§
readonly activeStartTime?: Date
[src]

Output only. The timestamp that the session first became ACTIVE.

§
androidDevice?: AndroidDevice
[src]

Required. The requested device

§
readonly createTime?: Date
[src]

Output only. The time that the Session was created.

§
readonly displayName?: string
[src]

Output only. The title of the DeviceSession to be presented in the UI.

§
expireTime?: Date
[src]

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.

§
readonly inactivityTimeout?: number
[src]

Output only. The interval of time that this device must be interacted with before it transitions from ACTIVE to TIMEOUT_INACTIVITY.

§
name?: string
[src]

Optional. Name of the DeviceSession, e.g. "projects/{project_id}/deviceSessions/{session_id}"

§
readonly state?: "SESSION_STATE_UNSPECIFIED" | "REQUESTED" | "PENDING" | "ACTIVE" | "EXPIRED" | "FINISHED" | "UNAVAILABLE" | "ERROR"
[src]

Output only. Current state of the DeviceSession.

§
readonly stateHistories?: SessionStateEvent[]
[src]

Output only. The historical state transitions of the session_state message including the current session state.

§
ttl?: number
[src]

Optional. The amount of time that a device will be initially allocated for. This can eventually be extended with the UpdateDeviceSession RPC. Default: 15 minutes.