Class SourceUploadGrpc.SourceUploadBlockingV2Stub (0.103.0)

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

A stub to allow clients to do 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.SourceUploadBlockingV2Stub

Methods

build(Channel channel, CallOptions callOptions)

protected SourceUploadGrpc.SourceUploadBlockingV2Stub build(Channel channel, CallOptions callOptions)
Parameters
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
SourceUploadGrpc.SourceUploadBlockingV2Stub
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
Exceptions
Type Description
io.grpc.StatusException