[BindServiceMethod(typeof(SessionController), "BindService")]
public abstract class SessionController.SessionControllerBase
Reference documentation and code samples for the Google Cloud Dataproc v1 API class SessionController.SessionControllerBase.
Base class for server-side implementations of SessionController
Namespace
Google.Cloud.Dataproc.V1Assembly
Google.Cloud.Dataproc.V1.dll
Methods
CreateSession(CreateSessionRequest, ServerCallContext)
public virtual Task<Operation> CreateSession(CreateSessionRequest request, ServerCallContext context)
Create an interactive session asynchronously.
Parameters | |
---|---|
Name | Description |
request | CreateSessionRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
TaskOperation | The response to send back to the client (wrapped by a task). |
DeleteSession(DeleteSessionRequest, ServerCallContext)
public virtual Task<Operation> DeleteSession(DeleteSessionRequest request, ServerCallContext context)
Deletes the interactive session resource. If the session is not in terminal state, it is terminated, and then deleted.
Parameters | |
---|---|
Name | Description |
request | DeleteSessionRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
TaskOperation | The response to send back to the client (wrapped by a task). |
GetSession(GetSessionRequest, ServerCallContext)
public virtual Task<Session> GetSession(GetSessionRequest request, ServerCallContext context)
Gets the resource representation for an interactive session.
Parameters | |
---|---|
Name | Description |
request | GetSessionRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
TaskSession | The response to send back to the client (wrapped by a task). |
ListSessions(ListSessionsRequest, ServerCallContext)
public virtual Task<ListSessionsResponse> ListSessions(ListSessionsRequest request, ServerCallContext context)
Lists interactive sessions.
Parameters | |
---|---|
Name | Description |
request | ListSessionsRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
TaskListSessionsResponse | The response to send back to the client (wrapped by a task). |
TerminateSession(TerminateSessionRequest, ServerCallContext)
public virtual Task<Operation> TerminateSession(TerminateSessionRequest request, ServerCallContext context)
Terminates the interactive session.
Parameters | |
---|---|
Name | Description |
request | TerminateSessionRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
TaskOperation | The response to send back to the client (wrapped by a task). |