Class ProjectsResource.LocationsResource.SourceUploadsResource.UploadRequest
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.
Inheritance
ProjectsResource.LocationsResource.SourceUploadsResource.UploadRequest
Inherited Members
Namespace: Google.Apis.CloudRun.v2
Assembly: Google.Apis.CloudRun.v2.dll
Syntax
public class ProjectsResource.LocationsResource.SourceUploadsResource.UploadRequest : CloudRunBaseServiceRequest<GoogleCloudRunV2UploadSourceResponse>, IClientServiceRequest<GoogleCloudRunV2UploadSourceResponse>, IClientServiceRequest
Constructors
UploadRequest(IClientService, GoogleCloudRunV2UploadSourceRequest, string)
Constructs a new Upload request.
Declaration
public UploadRequest(IClientService service, GoogleCloudRunV2UploadSourceRequest body, string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| GoogleCloudRunV2UploadSourceRequest | body | |
| string | parent |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
Parent
Required. The project and location in which the source archive should be uploaded to, specified
in the format projects/*/locations/*.
Declaration
[RequestParameter("parent", RequestParameterType.Path)]
public virtual string Parent { get; }
Property Value
| Type | Description |
|---|---|
| string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
| Type | Description |
|---|---|
| object |
Overrides
InitParameters()
Initializes Upload parameter list.
Declaration
protected override void InitParameters()