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.

FieldTypeRequiredDefaultConstraintsExample
device_session
Device session name or id.
stringYes———
body
The DeviceSession resource, as the API defines it.
objectYes———
update_mask
The list of fields to update. Optional.
stringNo———

Output

One shape.

result

Extra keys beyond the ones listed can appear.

FieldTypeExample
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": ""
}

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.