public static final class SourceUploadGrpc.SourceUploadStub extends AbstractAsyncStub<SourceUploadGrpc.SourceUploadStub>A stub to allow clients to do asynchronous 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.AbstractAsyncStub > SourceUploadGrpc.SourceUploadStubMethods
build(Channel channel, CallOptions callOptions)
protected SourceUploadGrpc.SourceUploadStub build(Channel channel, CallOptions callOptions)| Parameters | |
|---|---|
| Name | Description |
channel |
io.grpc.Channel |
callOptions |
io.grpc.CallOptions |
| Returns | |
|---|---|
| Type | Description |
SourceUploadGrpc.SourceUploadStub |
|
uploadSource(UploadSourceRequest request, StreamObserver<UploadSourceResponse> responseObserver)
public void uploadSource(UploadSourceRequest request, StreamObserver<UploadSourceResponse> responseObserver) 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 |
responseObserver |
io.grpc.stub.StreamObserver<UploadSourceResponse> |