Class ProjectsResource.InstancesResource.DatabasesResource.SessionsResource.ListRequest
Lists all sessions in a given database.
Inheritance
ProjectsResource.InstancesResource.DatabasesResource.SessionsResource.ListRequest
Inherited Members
Namespace: Google.Apis.Spanner.v1
Assembly: Google.Apis.Spanner.v1.dll
Syntax
public class ProjectsResource.InstancesResource.DatabasesResource.SessionsResource.ListRequest : SpannerBaseServiceRequest<ListSessionsResponse>, IClientServiceRequest<ListSessionsResponse>, IClientServiceRequest
Constructors
ListRequest(IClientService, string)
Constructs a new List request.
Declaration
public ListRequest(IClientService service, string database)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
string | database |
Properties
Database
Required. The database in which to list sessions.
Declaration
[RequestParameter("database", RequestParameterType.Path)]
public virtual string Database { get; }
Property Value
Type | Description |
---|---|
string |
Filter
An expression for filtering the results of the request. Filter rules are case insensitive.
The fields eligible for filtering are: * labels.key
where key is the name of a label Some
examples of using filters are: * labels.env:*
--> The session has the label "env".
labels.env:dev
--> The session has the label "env" and the value of the label contains the string "dev".
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
PageSize
Number of sessions to be returned in the response. If 0 or less, defaults to the server's maximum allowed page size.
Declaration
[RequestParameter("pageSize", RequestParameterType.Query)]
public virtual int? PageSize { get; set; }
Property Value
Type | Description |
---|---|
int? |
PageToken
If non-empty, page_token
should contain a next_page_token from a previous
ListSessionsResponse.
Declaration
[RequestParameter("pageToken", RequestParameterType.Query)]
public virtual string PageToken { get; set; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
InitParameters()
Initializes List parameter list.
Declaration
protected override void InitParameters()