public sealed class SourceUploadClientImpl : SourceUploadClientReference documentation and code samples for the Cloud Run Admin v2 API class SourceUploadClientImpl.
SourceUpload client wrapper implementation, for convenient use.
Namespace
Google.Cloud.Run.V2Assembly
Google.Cloud.Run.V2.dll
Remarks
The Cloud Run Source Upload API allows you to upload source code to deploy Cloud Run resources.
Constructors
SourceUploadClientImpl(SourceUploadClient, SourceUploadSettings, ILogger)
public SourceUploadClientImpl(SourceUpload.SourceUploadClient grpcClient, SourceUploadSettings settings, ILogger logger)Constructs a client wrapper for the SourceUpload service, with the specified gRPC client and settings.
| Parameters | |
|---|---|
| Name | Description |
grpcClient |
SourceUploadSourceUploadClientThe underlying gRPC client. |
settings |
SourceUploadSettingsThe base SourceUploadSettings used within this client. |
logger |
ILoggerOptional ILogger to use within this client. |
Properties
GrpcClient
public override SourceUpload.SourceUploadClient GrpcClient { get; }The underlying gRPC SourceUpload client
| Property Value | |
|---|---|
| Type | Description |
SourceUploadSourceUploadClient |
|
LocationsClient
public override LocationsClient LocationsClient { get; }The LocationsClient associated with this client.
| Property Value | |
|---|---|
| Type | Description |
LocationsClient |
|
Methods
UploadSource(UploadSourceRequest, CallSettings)
public override UploadSourceResponse UploadSource(UploadSourceRequest request, CallSettings callSettings = null)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 object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
UploadSourceResponse |
The RPC response. |
UploadSourceAsync(UploadSourceRequest, CallSettings)
public override Task<UploadSourceResponse> UploadSourceAsync(UploadSourceRequest request, CallSettings callSettings = null)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 object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskUploadSourceResponse |
A Task containing the RPC response. |