Class ProjectsResource.DeviceSessionsResource
The "deviceSessions" collection of methods.
Inherited Members
Namespace: Google.Apis.Testing.v1
Assembly: Google.Apis.Testing.v1.dll
Syntax
public class ProjectsResource.DeviceSessionsResource
Constructors
DeviceSessionsResource(IClientService)
Constructs a new resource.
Declaration
public DeviceSessionsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Cancel(CancelDeviceSessionRequest, string)
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.
Declaration
public virtual ProjectsResource.DeviceSessionsResource.CancelRequest Cancel(CancelDeviceSessionRequest body, string name)
Parameters
Type | Name | Description |
---|---|---|
CancelDeviceSessionRequest | body | The body of the request. |
string | name | Required. Name of the DeviceSession, e.g. "projects/{project_id}/deviceSessions/{session_id}" |
Returns
Type | Description |
---|---|
ProjectsResource.DeviceSessionsResource.CancelRequest |
Create(DeviceSession, string)
POST /v1/projects/{project_id}/deviceSessions
Declaration
public virtual ProjectsResource.DeviceSessionsResource.CreateRequest Create(DeviceSession body, string parent)
Parameters
Type | Name | Description |
---|---|---|
DeviceSession | body | The body of the request. |
string | parent | Required. The Compute Engine project under which this device will be allocated. "projects/{project_id}" |
Returns
Type | Description |
---|---|
ProjectsResource.DeviceSessionsResource.CreateRequest |
Get(string)
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.
Declaration
public virtual ProjectsResource.DeviceSessionsResource.GetRequest Get(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. Name of the DeviceSession, e.g. "projects/{project_id}/deviceSessions/{session_id}" |
Returns
Type | Description |
---|---|
ProjectsResource.DeviceSessionsResource.GetRequest |
List(string)
GET /v1/projects/{project_id}/deviceSessions Lists device Sessions owned by the project user.
Declaration
public virtual ProjectsResource.DeviceSessionsResource.ListRequest List(string parent)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. The name of the parent to request, e.g. "projects/{project_id}" |
Returns
Type | Description |
---|---|
ProjectsResource.DeviceSessionsResource.ListRequest |
Patch(DeviceSession, string)
PATCH /v1/projects/{projectId}/deviceSessions/deviceSessionId}:updateDeviceSession Updates the current device session to the fields described by the update_mask.
Declaration
public virtual ProjectsResource.DeviceSessionsResource.PatchRequest Patch(DeviceSession body, string name)
Parameters
Type | Name | Description |
---|---|---|
DeviceSession | body | The body of the request. |
string | name | Optional. Name of the DeviceSession, e.g. "projects/{project_id}/deviceSessions/{session_id}" |
Returns
Type | Description |
---|---|
ProjectsResource.DeviceSessionsResource.PatchRequest |