public class SourceUpload.SourceUploadClient : ClientBase<SourceUpload.SourceUploadClient>Reference documentation and code samples for the Cloud Run Admin v2 API class SourceUpload.SourceUploadClient.
Client for SourceUpload
Inheritance
object > ClientBase > ClientBaseSourceUploadSourceUploadClient > SourceUpload.SourceUploadClientNamespace
Google.Cloud.Run.V2Assembly
Google.Cloud.Run.V2.dll
Constructors
SourceUploadClient()
protected SourceUploadClient()Protected parameterless constructor to allow creation of test doubles.
SourceUploadClient(CallInvoker)
public SourceUploadClient(CallInvoker callInvoker)Creates a new client for SourceUpload that uses a custom CallInvoker.
| Parameter | |
|---|---|
| Name | Description |
callInvoker |
CallInvokerThe callInvoker to use to make remote calls. |
SourceUploadClient(ChannelBase)
public SourceUploadClient(ChannelBase channel)Creates a new client for SourceUpload
| Parameter | |
|---|---|
| Name | Description |
channel |
ChannelBaseThe channel to use to make remote calls. |
SourceUploadClient(ClientBaseConfiguration)
protected SourceUploadClient(ClientBase.ClientBaseConfiguration configuration)Protected constructor to allow creation of configured clients.
| Parameter | |
|---|---|
| Name | Description |
configuration |
ClientBaseClientBaseConfigurationThe client configuration. |
Methods
CreateLocationsClient()
public virtual Locations.LocationsClient CreateLocationsClient()Creates a new instance of Locations.LocationsClient using the same call invoker as this client.
| Returns | |
|---|---|
| Type | Description |
LocationsLocationsClient |
A new Locations.LocationsClient for the same target as this client. |
NewInstance(ClientBaseConfiguration)
protected override SourceUpload.SourceUploadClient NewInstance(ClientBase.ClientBaseConfiguration configuration)Creates a new instance of client from given ClientBaseConfiguration.
| Parameter | |
|---|---|
| Name | Description |
configuration |
ClientBaseClientBaseConfiguration |
| Returns | |
|---|---|
| Type | Description |
SourceUploadSourceUploadClient |
|
UploadSource(UploadSourceRequest, CallOptions)
public virtual UploadSourceResponse UploadSource(UploadSourceRequest request, CallOptions options)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 to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
UploadSourceResponse |
The response received from the server. |
UploadSource(UploadSourceRequest, Metadata, DateTime?, CancellationToken)
public virtual UploadSourceResponse UploadSource(UploadSourceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)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 to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
UploadSourceResponse |
The response received from the server. |
UploadSourceAsync(UploadSourceRequest, CallOptions)
public virtual AsyncUnaryCall<UploadSourceResponse> UploadSourceAsync(UploadSourceRequest request, CallOptions options)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 to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCallUploadSourceResponse |
The call object. |
UploadSourceAsync(UploadSourceRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<UploadSourceResponse> UploadSourceAsync(UploadSourceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)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 to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCallUploadSourceResponse |
The call object. |