Google Cloud Dataproc v1 API - Class SessionTemplateController.SessionTemplateControllerClient (5.9.0)

public class SessionTemplateController.SessionTemplateControllerClient : ClientBase<SessionTemplateController.SessionTemplateControllerClient>

Reference documentation and code samples for the Google Cloud Dataproc v1 API class SessionTemplateController.SessionTemplateControllerClient.

Client for SessionTemplateController

Inheritance

object > ClientBase > ClientBaseSessionTemplateControllerSessionTemplateControllerClient > SessionTemplateController.SessionTemplateControllerClient

Namespace

Google.Cloud.Dataproc.V1

Assembly

Google.Cloud.Dataproc.V1.dll

Constructors

SessionTemplateControllerClient()

protected SessionTemplateControllerClient()

Protected parameterless constructor to allow creation of test doubles.

SessionTemplateControllerClient(CallInvoker)

public SessionTemplateControllerClient(CallInvoker callInvoker)

Creates a new client for SessionTemplateController that uses a custom CallInvoker.

Parameter
NameDescription
callInvokerCallInvoker

The callInvoker to use to make remote calls.

SessionTemplateControllerClient(ChannelBase)

public SessionTemplateControllerClient(ChannelBase channel)

Creates a new client for SessionTemplateController

Parameter
NameDescription
channelChannelBase

The channel to use to make remote calls.

SessionTemplateControllerClient(ClientBaseConfiguration)

protected SessionTemplateControllerClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration

The client configuration.

Methods

CreateIAMPolicyClient()

public virtual IAMPolicy.IAMPolicyClient CreateIAMPolicyClient()

Creates a new instance of IAMPolicy.IAMPolicyClient using the same call invoker as this client.

Returns
TypeDescription
IAMPolicyIAMPolicyClient

A new IAMPolicy.IAMPolicyClient for the same target as this client.

CreateSessionTemplate(CreateSessionTemplateRequest, CallOptions)

public virtual SessionTemplate CreateSessionTemplate(CreateSessionTemplateRequest request, CallOptions options)

Create a session template synchronously.

Parameters
NameDescription
requestCreateSessionTemplateRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
SessionTemplate

The response received from the server.

CreateSessionTemplate(CreateSessionTemplateRequest, Metadata, DateTime?, CancellationToken)

public virtual SessionTemplate CreateSessionTemplate(CreateSessionTemplateRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Create a session template synchronously.

Parameters
NameDescription
requestCreateSessionTemplateRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
SessionTemplate

The response received from the server.

CreateSessionTemplateAsync(CreateSessionTemplateRequest, CallOptions)

public virtual AsyncUnaryCall<SessionTemplate> CreateSessionTemplateAsync(CreateSessionTemplateRequest request, CallOptions options)

Create a session template synchronously.

Parameters
NameDescription
requestCreateSessionTemplateRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallSessionTemplate

The call object.

CreateSessionTemplateAsync(CreateSessionTemplateRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<SessionTemplate> CreateSessionTemplateAsync(CreateSessionTemplateRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Create a session template synchronously.

Parameters
NameDescription
requestCreateSessionTemplateRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallSessionTemplate

The call object.

DeleteSessionTemplate(DeleteSessionTemplateRequest, CallOptions)

public virtual Empty DeleteSessionTemplate(DeleteSessionTemplateRequest request, CallOptions options)

Deletes a session template.

Parameters
NameDescription
requestDeleteSessionTemplateRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Empty

The response received from the server.

DeleteSessionTemplate(DeleteSessionTemplateRequest, Metadata, DateTime?, CancellationToken)

public virtual Empty DeleteSessionTemplate(DeleteSessionTemplateRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Deletes a session template.

Parameters
NameDescription
requestDeleteSessionTemplateRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Empty

The response received from the server.

DeleteSessionTemplateAsync(DeleteSessionTemplateRequest, CallOptions)

public virtual AsyncUnaryCall<Empty> DeleteSessionTemplateAsync(DeleteSessionTemplateRequest request, CallOptions options)

Deletes a session template.

Parameters
NameDescription
requestDeleteSessionTemplateRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallEmpty

The call object.

DeleteSessionTemplateAsync(DeleteSessionTemplateRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Empty> DeleteSessionTemplateAsync(DeleteSessionTemplateRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Deletes a session template.

Parameters
NameDescription
requestDeleteSessionTemplateRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallEmpty

The call object.

GetSessionTemplate(GetSessionTemplateRequest, CallOptions)

public virtual SessionTemplate GetSessionTemplate(GetSessionTemplateRequest request, CallOptions options)

Gets the resource representation for a session template.

Parameters
NameDescription
requestGetSessionTemplateRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
SessionTemplate

The response received from the server.

GetSessionTemplate(GetSessionTemplateRequest, Metadata, DateTime?, CancellationToken)

public virtual SessionTemplate GetSessionTemplate(GetSessionTemplateRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Gets the resource representation for a session template.

Parameters
NameDescription
requestGetSessionTemplateRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
SessionTemplate

The response received from the server.

GetSessionTemplateAsync(GetSessionTemplateRequest, CallOptions)

public virtual AsyncUnaryCall<SessionTemplate> GetSessionTemplateAsync(GetSessionTemplateRequest request, CallOptions options)

Gets the resource representation for a session template.

Parameters
NameDescription
requestGetSessionTemplateRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallSessionTemplate

The call object.

GetSessionTemplateAsync(GetSessionTemplateRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<SessionTemplate> GetSessionTemplateAsync(GetSessionTemplateRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Gets the resource representation for a session template.

Parameters
NameDescription
requestGetSessionTemplateRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallSessionTemplate

The call object.

ListSessionTemplates(ListSessionTemplatesRequest, CallOptions)

public virtual ListSessionTemplatesResponse ListSessionTemplates(ListSessionTemplatesRequest request, CallOptions options)

Lists session templates.

Parameters
NameDescription
requestListSessionTemplatesRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
ListSessionTemplatesResponse

The response received from the server.

ListSessionTemplates(ListSessionTemplatesRequest, Metadata, DateTime?, CancellationToken)

public virtual ListSessionTemplatesResponse ListSessionTemplates(ListSessionTemplatesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Lists session templates.

Parameters
NameDescription
requestListSessionTemplatesRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
ListSessionTemplatesResponse

The response received from the server.

ListSessionTemplatesAsync(ListSessionTemplatesRequest, CallOptions)

public virtual AsyncUnaryCall<ListSessionTemplatesResponse> ListSessionTemplatesAsync(ListSessionTemplatesRequest request, CallOptions options)

Lists session templates.

Parameters
NameDescription
requestListSessionTemplatesRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallListSessionTemplatesResponse

The call object.

ListSessionTemplatesAsync(ListSessionTemplatesRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<ListSessionTemplatesResponse> ListSessionTemplatesAsync(ListSessionTemplatesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Lists session templates.

Parameters
NameDescription
requestListSessionTemplatesRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallListSessionTemplatesResponse

The call object.

NewInstance(ClientBaseConfiguration)

protected override SessionTemplateController.SessionTemplateControllerClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration
Returns
TypeDescription
SessionTemplateControllerSessionTemplateControllerClient
Overrides

UpdateSessionTemplate(UpdateSessionTemplateRequest, CallOptions)

public virtual SessionTemplate UpdateSessionTemplate(UpdateSessionTemplateRequest request, CallOptions options)

Updates the session template synchronously.

Parameters
NameDescription
requestUpdateSessionTemplateRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
SessionTemplate

The response received from the server.

UpdateSessionTemplate(UpdateSessionTemplateRequest, Metadata, DateTime?, CancellationToken)

public virtual SessionTemplate UpdateSessionTemplate(UpdateSessionTemplateRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Updates the session template synchronously.

Parameters
NameDescription
requestUpdateSessionTemplateRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
SessionTemplate

The response received from the server.

UpdateSessionTemplateAsync(UpdateSessionTemplateRequest, CallOptions)

public virtual AsyncUnaryCall<SessionTemplate> UpdateSessionTemplateAsync(UpdateSessionTemplateRequest request, CallOptions options)

Updates the session template synchronously.

Parameters
NameDescription
requestUpdateSessionTemplateRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallSessionTemplate

The call object.

UpdateSessionTemplateAsync(UpdateSessionTemplateRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<SessionTemplate> UpdateSessionTemplateAsync(UpdateSessionTemplateRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Updates the session template synchronously.

Parameters
NameDescription
requestUpdateSessionTemplateRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallSessionTemplate

The call object.