Cloud Run Admin v2 API - Class SourceUpload.SourceUploadClient (2.21.0)

public class SourceUpload.SourceUploadClient : ClientBase<SourceUpload.SourceUploadClient>

Reference documentation and code samples for the Cloud Run Admin v2 API class SourceUpload.SourceUploadClient.

Client for SourceUpload

Inheritance

object > ClientBase > ClientBaseSourceUploadSourceUploadClient > SourceUpload.SourceUploadClient

Namespace

Google.Cloud.Run.V2

Assembly

Google.Cloud.Run.V2.dll

Constructors

SourceUploadClient()

protected SourceUploadClient()

Protected parameterless constructor to allow creation of test doubles.

SourceUploadClient(CallInvoker)

public SourceUploadClient(CallInvoker callInvoker)

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

Parameter
Name Description
callInvoker CallInvoker

The callInvoker to use to make remote calls.

SourceUploadClient(ChannelBase)

public SourceUploadClient(ChannelBase channel)

Creates a new client for SourceUpload

Parameter
Name Description
channel ChannelBase

The channel to use to make remote calls.

SourceUploadClient(ClientBaseConfiguration)

protected SourceUploadClient(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 SourceUpload.SourceUploadClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration
Returns
Type Description
SourceUploadSourceUploadClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.Run.V2.SourceUpload.SourceUploadClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)

UploadSource(UploadSourceRequest, CallOptions)

public virtual UploadSourceResponse UploadSource(UploadSourceRequest request, CallOptions options)

Uploads a source archive to a Google Cloud Storage bucket through Cloud Run. The uploaded source object should be used for Cloud Run resource deployments. User is responsible for managing the lifecycle of the uploaded object. If uploading through the Cloud Run API to Cloud Storage is not desired, you can use the IAM Deny Policy to deny the run.locations.uploadSource permission for all principals.

Parameters
Name Description
request UploadSourceRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
UploadSourceResponse

The response received from the server.

UploadSource(UploadSourceRequest, Metadata, DateTime?, CancellationToken)

public virtual UploadSourceResponse UploadSource(UploadSourceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Uploads a source archive to a Google Cloud Storage bucket through Cloud Run. The uploaded source object should be used for Cloud Run resource deployments. User is responsible for managing the lifecycle of the uploaded object. If uploading through the Cloud Run API to Cloud Storage is not desired, you can use the IAM Deny Policy to deny the run.locations.uploadSource permission for all principals.

Parameters
Name Description
request UploadSourceRequest

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
UploadSourceResponse

The response received from the server.

UploadSourceAsync(UploadSourceRequest, CallOptions)

public virtual AsyncUnaryCall<UploadSourceResponse> UploadSourceAsync(UploadSourceRequest request, CallOptions options)

Uploads a source archive to a Google Cloud Storage bucket through Cloud Run. The uploaded source object should be used for Cloud Run resource deployments. User is responsible for managing the lifecycle of the uploaded object. If uploading through the Cloud Run API to Cloud Storage is not desired, you can use the IAM Deny Policy to deny the run.locations.uploadSource permission for all principals.

Parameters
Name Description
request UploadSourceRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallUploadSourceResponse

The call object.

UploadSourceAsync(UploadSourceRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<UploadSourceResponse> UploadSourceAsync(UploadSourceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Uploads a source archive to a Google Cloud Storage bucket through Cloud Run. The uploaded source object should be used for Cloud Run resource deployments. User is responsible for managing the lifecycle of the uploaded object. If uploading through the Cloud Run API to Cloud Storage is not desired, you can use the IAM Deny Policy to deny the run.locations.uploadSource permission for all principals.

Parameters
Name Description
request UploadSourceRequest

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
AsyncUnaryCallUploadSourceResponse

The call object.