Google Cloud Dataproc v1 API - Class SessionTemplateController.SessionTemplateControllerClient (5.15.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
Name Description
callInvoker CallInvoker

The callInvoker to use to make remote calls.

SessionTemplateControllerClient(ChannelBase)

public SessionTemplateControllerClient(ChannelBase channel)

Creates a new client for SessionTemplateController

Parameter
Name Description
channel ChannelBase

The channel to use to make remote calls.

SessionTemplateControllerClient(ClientBaseConfiguration)

protected SessionTemplateControllerClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration

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
Type Description
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
Name Description
request CreateSessionTemplateRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
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
Name Description
request CreateSessionTemplateRequest

The request to send to the server.

headers Metadata

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

deadline System.DateTime

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
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
Name Description
request CreateSessionTemplateRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
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
Name Description
request CreateSessionTemplateRequest

The request to send to the server.

headers Metadata

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

deadline System.DateTime

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallSessionTemplate

The call object.

DeleteSessionTemplate(DeleteSessionTemplateRequest, CallOptions)

public virtual Empty DeleteSessionTemplate(DeleteSessionTemplateRequest request, CallOptions options)

Deletes a session template.

Parameters
Name Description
request DeleteSessionTemplateRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
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
Name Description
request DeleteSessionTemplateRequest

The request to send to the server.

headers Metadata

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

deadline System.DateTime

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Empty

The response received from the server.

DeleteSessionTemplateAsync(DeleteSessionTemplateRequest, CallOptions)

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

Deletes a session template.

Parameters
Name Description
request DeleteSessionTemplateRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
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
Name Description
request DeleteSessionTemplateRequest

The request to send to the server.

headers Metadata

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

deadline System.DateTime

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallEmpty

The call object.

GetSessionTemplate(GetSessionTemplateRequest, CallOptions)

public virtual SessionTemplate GetSessionTemplate(GetSessionTemplateRequest request, CallOptions options)

Gets the resource representation for a session template.

Parameters
Name Description
request GetSessionTemplateRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
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
Name Description
request GetSessionTemplateRequest

The request to send to the server.

headers Metadata

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

deadline System.DateTime

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
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
Name Description
request GetSessionTemplateRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
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
Name Description
request GetSessionTemplateRequest

The request to send to the server.

headers Metadata

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

deadline System.DateTime

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallSessionTemplate

The call object.

ListSessionTemplates(ListSessionTemplatesRequest, CallOptions)

public virtual ListSessionTemplatesResponse ListSessionTemplates(ListSessionTemplatesRequest request, CallOptions options)

Lists session templates.

Parameters
Name Description
request ListSessionTemplatesRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
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
Name Description
request ListSessionTemplatesRequest

The request to send to the server.

headers Metadata

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

deadline System.DateTime

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
ListSessionTemplatesResponse

The response received from the server.

ListSessionTemplatesAsync(ListSessionTemplatesRequest, CallOptions)

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

Lists session templates.

Parameters
Name Description
request ListSessionTemplatesRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
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
Name Description
request ListSessionTemplatesRequest

The request to send to the server.

headers Metadata

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

deadline System.DateTime

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallListSessionTemplatesResponse

The call object.

NewInstance(ClientBaseConfiguration)

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

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration
Returns
Type Description
SessionTemplateControllerSessionTemplateControllerClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.Dataproc.V1.SessionTemplateController.SessionTemplateControllerClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)

UpdateSessionTemplate(UpdateSessionTemplateRequest, CallOptions)

public virtual SessionTemplate UpdateSessionTemplate(UpdateSessionTemplateRequest request, CallOptions options)

Updates the session template synchronously.

Parameters
Name Description
request UpdateSessionTemplateRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
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
Name Description
request UpdateSessionTemplateRequest

The request to send to the server.

headers Metadata

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

deadline System.DateTime

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
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
Name Description
request UpdateSessionTemplateRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
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
Name Description
request UpdateSessionTemplateRequest

The request to send to the server.

headers Metadata

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

deadline System.DateTime

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallSessionTemplate

The call object.