public sealed class SessionControllerClientImpl : SessionControllerClient
Reference documentation and code samples for the Google Cloud Dataproc v1 API class SessionControllerClientImpl.
SessionController client wrapper implementation, for convenient use.
Namespace
Google.Cloud.Dataproc.V1Assembly
Google.Cloud.Dataproc.V1.dll
Remarks
The SessionController
provides methods to manage interactive sessions.
Constructors
SessionControllerClientImpl(SessionControllerClient, SessionControllerSettings, ILogger)
public SessionControllerClientImpl(SessionController.SessionControllerClient grpcClient, SessionControllerSettings settings, ILogger logger)
Constructs a client wrapper for the SessionController service, with the specified gRPC client and settings.
Parameters | |
---|---|
Name | Description |
grpcClient | SessionControllerSessionControllerClient The underlying gRPC client. |
settings | SessionControllerSettings The base SessionControllerSettings used within this client. |
logger | ILogger Optional ILogger to use within this client. |
Properties
CreateSessionOperationsClient
public override OperationsClient CreateSessionOperationsClient { get; }
The long-running operations client for CreateSession
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
DeleteSessionOperationsClient
public override OperationsClient DeleteSessionOperationsClient { get; }
The long-running operations client for DeleteSession
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
GrpcClient
public override SessionController.SessionControllerClient GrpcClient { get; }
The underlying gRPC SessionController client
Property Value | |
---|---|
Type | Description |
SessionControllerSessionControllerClient |
IAMPolicyClient
public override IAMPolicyClient IAMPolicyClient { get; }
The IAMPolicyClient associated with this client.
Property Value | |
---|---|
Type | Description |
IAMPolicyClient |
TerminateSessionOperationsClient
public override OperationsClient TerminateSessionOperationsClient { get; }
The long-running operations client for TerminateSession
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
Methods
CreateSession(CreateSessionRequest, CallSettings)
public override Operation<Session, SessionOperationMetadata> CreateSession(CreateSessionRequest request, CallSettings callSettings = null)
Create an interactive session asynchronously.
Parameters | |
---|---|
Name | Description |
request | CreateSessionRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationSessionSessionOperationMetadata | The RPC response. |
CreateSessionAsync(CreateSessionRequest, CallSettings)
public override Task<Operation<Session, SessionOperationMetadata>> CreateSessionAsync(CreateSessionRequest request, CallSettings callSettings = null)
Create an interactive session asynchronously.
Parameters | |
---|---|
Name | Description |
request | CreateSessionRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationSessionSessionOperationMetadata | A Task containing the RPC response. |
DeleteSession(DeleteSessionRequest, CallSettings)
public override Operation<Session, SessionOperationMetadata> DeleteSession(DeleteSessionRequest request, CallSettings callSettings = null)
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 object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationSessionSessionOperationMetadata | The RPC response. |
DeleteSessionAsync(DeleteSessionRequest, CallSettings)
public override Task<Operation<Session, SessionOperationMetadata>> DeleteSessionAsync(DeleteSessionRequest request, CallSettings callSettings = null)
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 object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationSessionSessionOperationMetadata | A Task containing the RPC response. |
GetSession(GetSessionRequest, CallSettings)
public override Session GetSession(GetSessionRequest request, CallSettings callSettings = null)
Gets the resource representation for an interactive session.
Parameters | |
---|---|
Name | Description |
request | GetSessionRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Session | The RPC response. |
GetSessionAsync(GetSessionRequest, CallSettings)
public override Task<Session> GetSessionAsync(GetSessionRequest request, CallSettings callSettings = null)
Gets the resource representation for an interactive session.
Parameters | |
---|---|
Name | Description |
request | GetSessionRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskSession | A Task containing the RPC response. |
ListSessions(ListSessionsRequest, CallSettings)
public override PagedEnumerable<ListSessionsResponse, Session> ListSessions(ListSessionsRequest request, CallSettings callSettings = null)
Lists interactive sessions.
Parameters | |
---|---|
Name | Description |
request | ListSessionsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListSessionsResponseSession | A pageable sequence of Session resources. |
ListSessionsAsync(ListSessionsRequest, CallSettings)
public override PagedAsyncEnumerable<ListSessionsResponse, Session> ListSessionsAsync(ListSessionsRequest request, CallSettings callSettings = null)
Lists interactive sessions.
Parameters | |
---|---|
Name | Description |
request | ListSessionsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListSessionsResponseSession | A pageable asynchronous sequence of Session resources. |
TerminateSession(TerminateSessionRequest, CallSettings)
public override Operation<Session, SessionOperationMetadata> TerminateSession(TerminateSessionRequest request, CallSettings callSettings = null)
Terminates the interactive session.
Parameters | |
---|---|
Name | Description |
request | TerminateSessionRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationSessionSessionOperationMetadata | The RPC response. |
TerminateSessionAsync(TerminateSessionRequest, CallSettings)
public override Task<Operation<Session, SessionOperationMetadata>> TerminateSessionAsync(TerminateSessionRequest request, CallSettings callSettings = null)
Terminates the interactive session.
Parameters | |
---|---|
Name | Description |
request | TerminateSessionRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationSessionSessionOperationMetadata | A Task containing the RPC response. |