Class ProjectsResource.LocationsResource.SourceUploadsResource
The "sourceUploads" collection of methods.
Inherited Members
Namespace: Google.Apis.CloudRun.v2
Assembly: Google.Apis.CloudRun.v2.dll
Syntax
public class ProjectsResource.LocationsResource.SourceUploadsResource
Constructors
SourceUploadsResource(IClientService)
Constructs a new resource.
Declaration
public SourceUploadsResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Methods
Upload(GoogleCloudRunV2UploadSourceRequest, string)
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.
Declaration
public virtual ProjectsResource.LocationsResource.SourceUploadsResource.UploadRequest Upload(GoogleCloudRunV2UploadSourceRequest body, string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| GoogleCloudRunV2UploadSourceRequest | body | The body of the request. |
| string | parent | Required. The project and location in which the source archive should be uploaded to, specified in
the format |
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.SourceUploadsResource.UploadRequest |
Upload(GoogleCloudRunV2UploadSourceRequest, string, Stream, string)
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.
Declaration
public virtual ProjectsResource.LocationsResource.SourceUploadsResource.UploadMediaUpload Upload(GoogleCloudRunV2UploadSourceRequest body, string parent, Stream stream, string contentType)
Parameters
| Type | Name | Description |
|---|---|---|
| GoogleCloudRunV2UploadSourceRequest | body | The body of the request. |
| string | parent | Required. The project and location in which the source archive should be uploaded to, specified in
the format |
| Stream | stream | The stream to upload. See remarks for further information. |
| string | contentType | The content type of the stream to upload. |
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.SourceUploadsResource.UploadMediaUpload |
Remarks
Considerations regarding stream:
-
If
streamis seekable, then the stream position will be reset to0before reading commences. Ifstreamis not seekable, then it will be read from its current position -
Caller is responsible for maintaining the
streamopen until the upload is completed - Caller is responsible for closing the
stream