projects

PATCH /v1/projects/{projectId}/deviceSessions/deviceSessionId}:updateDeviceSession Updates the current device session to the fields described by the update_mask.

patch/v1/{+name}

Request

  • Base URL: https://testing.googleapis.com
  • URL: https://testing.googleapis.com/v1/{+name}
  • Auth: OAuth 2 (implicit, authorization URL https://accounts.google.com/o/oauth2/auth, scopes: https://www.googleapis.com/auth/cloud-platform) and OAuth 2 (authorization code, authorization URL https://accounts.google.com/o/oauth2/auth, token URL https://accounts.google.com/o/oauth2/token, scopes: https://www.googleapis.com/auth/cloud-platform)

Path parameters

namestring required

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

Query parameters

updateMaskstring

Required. The list of fields to update.

Request body

activeStartTimestring google-datetime

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

createTimestring google-datetime

Output only. The time that the Session was created.

displayNamestring

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

expireTimestring google-datetime

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.

inactivityTimeoutstring google-duration

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

namestring

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

state'SESSION_STATE_UNSPECIFIED' | 'REQUESTED' | 'PENDING' | 'ACTIVE' | 'EXPIRED' | 'FINISHED' | 'UNAVAILABLE' | 'ERROR'

Output only. Current state of the DeviceSession.

ttlstring google-duration

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.

Response

Successful response

Changes

    • breaking

      removed the request body

    • breaking

      removed the media type */* for the response with the status