Class SourceUploadGrpc.SourceUploadBlockingStub (0.103.0)

public static final class SourceUploadGrpc.SourceUploadBlockingStub extends AbstractBlockingStub<SourceUploadGrpc.SourceUploadBlockingStub>

A stub to allow clients to do limited synchronous 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.AbstractBlockingStub > SourceUploadGrpc.SourceUploadBlockingStub

Methods

build(Channel channel, CallOptions callOptions)

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

uploadSource(UploadSourceRequest request)

public 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
UploadSourceResponse