Cloud Run Admin v2 API - Class Builds.BuildsClient (2.12.0)

public class Builds.BuildsClient : ClientBase<Builds.BuildsClient>

Reference documentation and code samples for the Cloud Run Admin v2 API class Builds.BuildsClient.

Client for Builds

Inheritance

object > ClientBase > ClientBaseBuildsBuildsClient > Builds.BuildsClient

Namespace

Google.Cloud.Run.V2

Assembly

Google.Cloud.Run.V2.dll

Constructors

BuildsClient()

protected BuildsClient()

Protected parameterless constructor to allow creation of test doubles.

BuildsClient(CallInvoker)

public BuildsClient(CallInvoker callInvoker)

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

Parameter
Name Description
callInvoker CallInvoker

The callInvoker to use to make remote calls.

BuildsClient(ChannelBase)

public BuildsClient(ChannelBase channel)

Creates a new client for Builds

Parameter
Name Description
channel ChannelBase

The channel to use to make remote calls.

BuildsClient(ClientBaseConfiguration)

protected BuildsClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration

The client configuration.

Methods

CreateLocationsClient()

public virtual Locations.LocationsClient CreateLocationsClient()

Creates a new instance of Locations.LocationsClient using the same call invoker as this client.

Returns
Type Description
LocationsLocationsClient

A new Locations.LocationsClient for the same target as this client.

NewInstance(ClientBaseConfiguration)

protected override Builds.BuildsClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration
Returns
Type Description
BuildsBuildsClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.Run.V2.Builds.BuildsClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)

SubmitBuild(SubmitBuildRequest, CallOptions)

public virtual SubmitBuildResponse SubmitBuild(SubmitBuildRequest request, CallOptions options)

Submits a build in a given project.

Parameters
Name Description
request SubmitBuildRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
SubmitBuildResponse

The response received from the server.

SubmitBuild(SubmitBuildRequest, Metadata, DateTime?, CancellationToken)

public virtual SubmitBuildResponse SubmitBuild(SubmitBuildRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Submits a build in a given project.

Parameters
Name Description
request SubmitBuildRequest

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
SubmitBuildResponse

The response received from the server.

SubmitBuildAsync(SubmitBuildRequest, CallOptions)

public virtual AsyncUnaryCall<SubmitBuildResponse> SubmitBuildAsync(SubmitBuildRequest request, CallOptions options)

Submits a build in a given project.

Parameters
Name Description
request SubmitBuildRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallSubmitBuildResponse

The call object.

SubmitBuildAsync(SubmitBuildRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<SubmitBuildResponse> SubmitBuildAsync(SubmitBuildRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Submits a build in a given project.

Parameters
Name Description
request SubmitBuildRequest

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
AsyncUnaryCallSubmitBuildResponse

The call object.