Google Cloud Dataproc v1 API - Class SessionControllerClientImpl (5.9.0)

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.

Inheritance

object > SessionControllerClient > SessionControllerClientImpl

Namespace

Google.Cloud.Dataproc.V1

Assembly

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
NameDescription
grpcClientSessionControllerSessionControllerClient

The underlying gRPC client.

settingsSessionControllerSettings

The base SessionControllerSettings used within this client.

loggerILogger

Optional ILogger to use within this client.

Properties

CreateSessionOperationsClient

public override OperationsClient CreateSessionOperationsClient { get; }

The long-running operations client for CreateSession.

Property Value
TypeDescription
OperationsClient
Overrides

DeleteSessionOperationsClient

public override OperationsClient DeleteSessionOperationsClient { get; }

The long-running operations client for DeleteSession.

Property Value
TypeDescription
OperationsClient
Overrides

GrpcClient

public override SessionController.SessionControllerClient GrpcClient { get; }

The underlying gRPC SessionController client

Property Value
TypeDescription
SessionControllerSessionControllerClient
Overrides

IAMPolicyClient

public override IAMPolicyClient IAMPolicyClient { get; }

The IAMPolicyClient associated with this client.

Property Value
TypeDescription
IAMPolicyClient
Overrides

TerminateSessionOperationsClient

public override OperationsClient TerminateSessionOperationsClient { get; }

The long-running operations client for TerminateSession.

Property Value
TypeDescription
OperationsClient
Overrides

Methods

CreateSession(CreateSessionRequest, CallSettings)

public override Operation<Session, SessionOperationMetadata> CreateSession(CreateSessionRequest request, CallSettings callSettings = null)

Create an interactive session asynchronously.

Parameters
NameDescription
requestCreateSessionRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationSessionSessionOperationMetadata

The RPC response.

Overrides

CreateSessionAsync(CreateSessionRequest, CallSettings)

public override Task<Operation<Session, SessionOperationMetadata>> CreateSessionAsync(CreateSessionRequest request, CallSettings callSettings = null)

Create an interactive session asynchronously.

Parameters
NameDescription
requestCreateSessionRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationSessionSessionOperationMetadata

A Task containing the RPC response.

Overrides

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
NameDescription
requestDeleteSessionRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationSessionSessionOperationMetadata

The RPC response.

Overrides

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
NameDescription
requestDeleteSessionRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationSessionSessionOperationMetadata

A Task containing the RPC response.

Overrides

GetSession(GetSessionRequest, CallSettings)

public override Session GetSession(GetSessionRequest request, CallSettings callSettings = null)

Gets the resource representation for an interactive session.

Parameters
NameDescription
requestGetSessionRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Session

The RPC response.

Overrides

GetSessionAsync(GetSessionRequest, CallSettings)

public override Task<Session> GetSessionAsync(GetSessionRequest request, CallSettings callSettings = null)

Gets the resource representation for an interactive session.

Parameters
NameDescription
requestGetSessionRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskSession

A Task containing the RPC response.

Overrides

ListSessions(ListSessionsRequest, CallSettings)

public override PagedEnumerable<ListSessionsResponse, Session> ListSessions(ListSessionsRequest request, CallSettings callSettings = null)

Lists interactive sessions.

Parameters
NameDescription
requestListSessionsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListSessionsResponseSession

A pageable sequence of Session resources.

Overrides

ListSessionsAsync(ListSessionsRequest, CallSettings)

public override PagedAsyncEnumerable<ListSessionsResponse, Session> ListSessionsAsync(ListSessionsRequest request, CallSettings callSettings = null)

Lists interactive sessions.

Parameters
NameDescription
requestListSessionsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListSessionsResponseSession

A pageable asynchronous sequence of Session resources.

Overrides

TerminateSession(TerminateSessionRequest, CallSettings)

public override Operation<Session, SessionOperationMetadata> TerminateSession(TerminateSessionRequest request, CallSettings callSettings = null)

Terminates the interactive session.

Parameters
NameDescription
requestTerminateSessionRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationSessionSessionOperationMetadata

The RPC response.

Overrides

TerminateSessionAsync(TerminateSessionRequest, CallSettings)

public override Task<Operation<Session, SessionOperationMetadata>> TerminateSessionAsync(TerminateSessionRequest request, CallSettings callSettings = null)

Terminates the interactive session.

Parameters
NameDescription
requestTerminateSessionRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationSessionSessionOperationMetadata

A Task containing the RPC response.

Overrides