[BindServiceMethod(typeof(SourceUpload), "BindService")]
public abstract class SourceUpload.SourceUploadBaseReference documentation and code samples for the Cloud Run Admin v2 API class SourceUpload.SourceUploadBase.
Base class for server-side implementations of SourceUpload
Namespace
Google.Cloud.Run.V2Assembly
Google.Cloud.Run.V2.dll
Methods
UploadSource(UploadSourceRequest, ServerCallContext)
public virtual Task<UploadSourceResponse> UploadSource(UploadSourceRequest request, ServerCallContext context)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 |
UploadSourceRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskUploadSourceResponse |
The response to send back to the client (wrapped by a task). |