Class ProjectsResource.LocationsResource.FunctionsResource.GenerateUploadUrlRequest
Returns a signed URL for uploading a function source code. For more information about the signed URL
usage see: https://cloud.google.com/storage/docs/access-control/signed-urls. Once the function
source code upload is complete, the used signed URL should be provided in CreateFunction or
UpdateFunction request as a reference to the function source code. When uploading source code to the
generated signed URL, please follow these restrictions: * Source file type should be a zip file. *
No credentials should be attached - the signed URLs provide access to the target bucket using
internal service identity; if credentials were attached, the identity from the credentials would be
used, but that identity does not have permissions to upload files to the URL. When making a HTTP PUT
request, specify this header: * content-type: application/zip
Do not specify this header: *
Authorization: Bearer YOUR_TOKEN
Inheritance
Inherited Members
Namespace: Google.Apis.CloudFunctions.v2alpha
Assembly: Google.Apis.CloudFunctions.v2alpha.dll
Syntax
public class ProjectsResource.LocationsResource.FunctionsResource.GenerateUploadUrlRequest : CloudFunctionsBaseServiceRequest<GenerateUploadUrlResponse>, IClientServiceRequest<GenerateUploadUrlResponse>, IClientServiceRequest
Constructors
GenerateUploadUrlRequest(IClientService, GenerateUploadUrlRequest, string)
Constructs a new GenerateUploadUrl request.
Declaration
public GenerateUploadUrlRequest(IClientService service, GenerateUploadUrlRequest body, string parent)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
GenerateUploadUrlRequest | 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 Google Cloud Storage signed URL should be
generated, 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 GenerateUploadUrl parameter list.
Declaration
protected override void InitParameters()