ProjectsDeviceSessions
class ProjectsDeviceSessions extends Resource (View source)
The "deviceSessions" collection of methods.
Typical usage is:
$testingService = new Google\Service\Testing(...);
$deviceSessions = $testingService->projects_deviceSessions;
Methods
POST /v1/projects/{project_id}/deviceSessions/{device_session_id}:cancel Changes the DeviceSession to state FINISHED and terminates all connections.
POST /v1/projects/{project_id}/deviceSessions (deviceSessions.create)
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)
GET /v1/projects/{project_id}/deviceSessions Lists device Sessions owned by the project user. (deviceSessions.listProjectsDeviceSessions)
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)
DeviceSession
create(string $parent, DeviceSession $postBody, array $optParams = [])
POST /v1/projects/{project_id}/deviceSessions (deviceSessions.create)
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)
ListDeviceSessionsResponse
listProjectsDeviceSessions(string $parent, array $optParams = [])
GET /v1/projects/{project_id}/deviceSessions Lists device Sessions owned by the project user. (deviceSessions.listProjectsDeviceSessions)
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)