Show / Hide Table of Contents

Class ProjectsResource.LocationsResource.SourceUploadsResource

The "sourceUploads" collection of methods.

Inheritance
object
ProjectsResource.LocationsResource.SourceUploadsResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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 projects/*/locations/*.

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 projects/*/locations/*.

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 stream is seekable, then the stream position will be reset to 0 before reading commences. If stream is not seekable, then it will be read from its current position
  • Caller is responsible for maintaining the stream open until the upload is completed
  • Caller is responsible for closing the stream
In this article
Back to top Generated by DocFX