Cloud Run Admin v2 API - Class SourceUploadClientImpl (2.21.0)

public sealed class SourceUploadClientImpl : SourceUploadClient

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

SourceUpload client wrapper implementation, for convenient use.

Inheritance

object > SourceUploadClient > SourceUploadClientImpl

Namespace

Google.Cloud.Run.V2

Assembly

Google.Cloud.Run.V2.dll

Remarks

The Cloud Run Source Upload API allows you to upload source code to deploy Cloud Run resources.

Constructors

SourceUploadClientImpl(SourceUploadClient, SourceUploadSettings, ILogger)

public SourceUploadClientImpl(SourceUpload.SourceUploadClient grpcClient, SourceUploadSettings settings, ILogger logger)

Constructs a client wrapper for the SourceUpload service, with the specified gRPC client and settings.

Parameters
Name Description
grpcClient SourceUploadSourceUploadClient

The underlying gRPC client.

settings SourceUploadSettings

The base SourceUploadSettings used within this client.

logger ILogger

Optional ILogger to use within this client.

Properties

GrpcClient

public override SourceUpload.SourceUploadClient GrpcClient { get; }

The underlying gRPC SourceUpload client

Property Value
Type Description
SourceUploadSourceUploadClient
Overrides

LocationsClient

public override LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
Type Description
LocationsClient
Overrides

Methods

UploadSource(UploadSourceRequest, CallSettings)

public override UploadSourceResponse UploadSource(UploadSourceRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
UploadSourceResponse

The RPC response.

Overrides

UploadSourceAsync(UploadSourceRequest, CallSettings)

public override Task<UploadSourceResponse> UploadSourceAsync(UploadSourceRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskUploadSourceResponse

A Task containing the RPC response.

Overrides