class ProjectsDeviceSessions extends Resource (View source)

The "deviceSessions" collection of methods.

Typical usage is:

 $testingService = new Google\Service\Testing(...);
 $deviceSessions = $testingService->projects_deviceSessions;

Methods

cancel(string $name, CancelDeviceSessionRequest $postBody, array $optParams = [])

POST /v1/projects/{project_id}/deviceSessions/{device_session_id}:cancel Changes the DeviceSession to state FINISHED and terminates all connections.

create(string $parent, DeviceSession $postBody, array $optParams = [])

POST /v1/projects/{project_id}/deviceSessions (deviceSessions.create)

get(string $name, array $optParams = [])

GET /v1/projects/{project_id}/deviceSessions/{device_session_id} Return a DeviceSession, which documents the allocation status and whether the device is allocated. Clients making requests from this API must poll GetDeviceSession. (deviceSessions.get)

listProjectsDeviceSessions(string $parent, array $optParams = [])

GET /v1/projects/{project_id}/deviceSessions Lists device Sessions owned by the project user. (deviceSessions.listProjectsDeviceSessions)

patch(string $name, DeviceSession $postBody, array $optParams = [])

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

Details

TestingEmpty cancel(string $name, CancelDeviceSessionRequest $postBody, array $optParams = [])

POST /v1/projects/{project_id}/deviceSessions/{device_session_id}:cancel Changes the DeviceSession to state FINISHED and terminates all connections.

Canceled sessions are not deleted and can be retrieved or listed by the user until they expire based on the 28 day deletion policy. (deviceSessions.cancel)

Parameters

string $name

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

CancelDeviceSessionRequest $postBody
array $optParams

Optional parameters.

Return Value

TestingEmpty

Exceptions

Exception

DeviceSession create(string $parent, DeviceSession $postBody, array $optParams = [])

POST /v1/projects/{project_id}/deviceSessions (deviceSessions.create)

Parameters

string $parent

Required. The Compute Engine project under which this device will be allocated. "projects/{project_id}"

DeviceSession $postBody
array $optParams

Optional parameters.

Return Value

DeviceSession

Exceptions

Exception

DeviceSession get(string $name, array $optParams = [])

GET /v1/projects/{project_id}/deviceSessions/{device_session_id} Return a DeviceSession, which documents the allocation status and whether the device is allocated. Clients making requests from this API must poll GetDeviceSession. (deviceSessions.get)

Parameters

string $name

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

array $optParams

Optional parameters.

Return Value

DeviceSession

Exceptions

Exception

ListDeviceSessionsResponse listProjectsDeviceSessions(string $parent, array $optParams = [])

GET /v1/projects/{project_id}/deviceSessions Lists device Sessions owned by the project user. (deviceSessions.listProjectsDeviceSessions)

Parameters

string $parent

Required. The name of the parent to request, e.g. "projects/{project_id}"

array $optParams

Optional parameters.

Return Value

ListDeviceSessionsResponse

Exceptions

Exception

DeviceSession patch(string $name, DeviceSession $postBody, array $optParams = [])

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

Parameters

string $name

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

DeviceSession $postBody
array $optParams

Optional parameters.

Return Value

DeviceSession

Exceptions

Exception