Class ProjectsResource.LocationsResource.SessionsResource.ListRequest
Lists previously created automation sessions. Sessions may still be in-progress, or may have finished successfully, or unsuccessfully.
Inheritance
Inherited Members
Namespace: Google.Apis.DeviceRun.v1alpha
Assembly: Google.Apis.DeviceRun.v1alpha.dll
Syntax
public class ProjectsResource.LocationsResource.SessionsResource.ListRequest : DeviceRunBaseServiceRequest<ListSessionsResponse>, IClientServiceRequest<ListSessionsResponse>, IClientServiceRequest
Constructors
ListRequest(IClientService, string)
Constructs a new List request.
Declaration
public ListRequest(IClientService service, string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| string | parent |
Properties
Filter
Optional. The raw filter text to constrain the results.
Declaration
[RequestParameter("filter", RequestParameterType.Query)]
public virtual string Filter { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
OrderBy
Optional. The order to sort results by. Supported values: name, name desc, create_time,
create_time desc. Values must use the snake_case field name; createTime is not accepted.
Ordering by create_time is not supported when listing across all locations (locations/-). If
unspecified, results are returned in an unspecified order.
Declaration
[RequestParameter("orderBy", RequestParameterType.Query)]
public virtual string OrderBy { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
PageSize
Optional. The maximum number of sessions to return. The server may return fewer items than this value. If unspecified, at most 500 sessions will be returned. The maximum value is 1000, values above will be coerced to 1000.
Declaration
[RequestParameter("pageSize", RequestParameterType.Query)]
public virtual int? PageSize { get; set; }
Property Value
| Type | Description |
|---|---|
| int? |
PageToken
Optional. A page token, received from a previous ListSessions call. Provide this to receive
the subsequent page. When paginating, all other parameters provided to ListSessions must match
the call that provided the page token.
Declaration
[RequestParameter("pageToken", RequestParameterType.Query)]
public virtual string PageToken { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Parent
Required. Parent value for ListSessionsRequest The parent of the collection of sessions. Format:
projects/{project}/locations/{location}.
Declaration
[RequestParameter("parent", RequestParameterType.Path)]
public virtual string Parent { get; }
Property Value
| Type | Description |
|---|---|
| string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
View
Optional. The view of the sessions to return. If not set, the FULL view will be returned.
Declaration
[RequestParameter("view", RequestParameterType.Query)]
public virtual ProjectsResource.LocationsResource.SessionsResource.ListRequest.ViewEnum? View { get; set; }
Property Value
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.SessionsResource.ListRequest.ViewEnum? |
Methods
InitParameters()
Initializes List parameter list.
Declaration
protected override void InitParameters()