Class SourceUploadGrpc.SourceUploadFutureStub (0.103.0)

public static final class SourceUploadGrpc.SourceUploadFutureStub extends AbstractFutureStub<SourceUploadGrpc.SourceUploadFutureStub>

A stub to allow clients to do ListenableFuture-style rpc calls to service SourceUpload.

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

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractFutureStub > SourceUploadGrpc.SourceUploadFutureStub

Methods

build(Channel channel, CallOptions callOptions)

protected SourceUploadGrpc.SourceUploadFutureStub build(Channel channel, CallOptions callOptions)
Parameters
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
SourceUploadGrpc.SourceUploadFutureStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

uploadSource(UploadSourceRequest request)

public ListenableFuture<UploadSourceResponse> uploadSource(UploadSourceRequest request)

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.

Parameter
Name Description
request UploadSourceRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<UploadSourceResponse>