Class ProjectsResource.InstancesResource.DatabasesResource.SessionsResource.BatchCreateRequest
Creates multiple new sessions. This API can be used to initialize a session cache on the clients. See https://goo.gl/TgSFN2 for best practices on session cache management.
Inheritance
ProjectsResource.InstancesResource.DatabasesResource.SessionsResource.BatchCreateRequest
Inherited Members
Namespace: Google.Apis.Spanner.v1
Assembly: Google.Apis.Spanner.v1.dll
Syntax
public class ProjectsResource.InstancesResource.DatabasesResource.SessionsResource.BatchCreateRequest : SpannerBaseServiceRequest<BatchCreateSessionsResponse>, IClientServiceRequest<BatchCreateSessionsResponse>, IClientServiceRequest
Constructors
BatchCreateRequest(IClientService, BatchCreateSessionsRequest, string)
Constructs a new BatchCreate request.
Declaration
public BatchCreateRequest(IClientService service, BatchCreateSessionsRequest body, string database)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
BatchCreateSessionsRequest | body | |
string | database |
Properties
Database
Required. The database in which the new sessions are created.
Declaration
[RequestParameter("database", RequestParameterType.Path)]
public virtual string Database { get; }
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
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes BatchCreate parameter list.
Declaration
protected override void InitParameters()