Update Device Session
cloud_testing.update_device_session
ActionGoogle Cloudconnection required
Calls testing v1 PATCH /v1/projects/{projectsId}/deviceSessions/{deviceSessionsId}.
PATCH /v1/projects/{projectId}/deviceSessions/deviceSessionId}:updateDeviceSession Updates the current device session to the fields described by the update_mask.
Connection
- Required
- Yes — the node will not save without one
- Auth type
- OAuth 2.0
- Providers
- Google Cloud Testing
- Secret shape
- {"client_id", "client_secret", "refresh_token"}
- Config it needs
- project_id
- Resolved by
- config.connection_id, else node.connection_id
Configuration
3 fields, 2 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
device_session Device session name or id. | string | Yes | — | — | — |
body The DeviceSession resource, as the API defines it. | object | Yes | — | — | — |
update_mask The list of fields to update. Optional. | string | No | — | — | — |
Output
One shape.
result
Extra keys beyond the ones listed can appear.
| Field | Type | Example |
|---|---|---|
activeStartTime | string | — |
androidDevice | object | — |
createTime | string | — |
displayName | string | — |
expireTime | string | — |
inactivityTimeout | string | — |
name | string | — |
state | string | — |
stateHistories | array | — |
ttl | string | — |
{
"activeStartTime": "",
"androidDevice": {},
"createTime": "",
"displayName": "",
"expireTime": "",
"inactivityTimeout": "",
"name": "",
"state": "",
"stateHistories": [],
"ttl": ""
}Related Google Cloud Testing nodes
See Update Device Session run in a workflow.
In a technical demo we add the Google Cloud Testing connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.