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. * Source file size should not exceed 100MB limit. * 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, these two headers need to be specified:
content-type: application/zip
* x-goog-content-length-range: 0,104857600
And this header SHOULD NOT be specified:
Authorization: Bearer YOUR_TOKEN
Inheritance
System.Object
Google.Apis.Requests.ClientServiceRequest
ProjectsResource.LocationsResource.FunctionsResource.GenerateUploadUrlRequest
Implements
Google.Apis.Requests.IClientServiceRequest
Inherited Members
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudFunctions.v1beta2.Data.GenerateUploadUrlResponse>.Execute()
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudFunctions.v1beta2.Data.GenerateUploadUrlResponse>.ExecuteAsStream()
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudFunctions.v1beta2.Data.GenerateUploadUrlResponse>.ExecuteAsync()
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudFunctions.v1beta2.Data.GenerateUploadUrlResponse>.ExecuteAsync(System.Threading.CancellationToken)
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudFunctions.v1beta2.Data.GenerateUploadUrlResponse>.ExecuteAsStreamAsync()
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudFunctions.v1beta2.Data.GenerateUploadUrlResponse>.ExecuteAsStreamAsync(System.Threading.CancellationToken)
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudFunctions.v1beta2.Data.GenerateUploadUrlResponse>.CreateRequest(System.Nullable<System.Boolean>)
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudFunctions.v1beta2.Data.GenerateUploadUrlResponse>.GenerateRequestUri()
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudFunctions.v1beta2.Data.GenerateUploadUrlResponse>.GetDefaultETagAction(System.String)
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudFunctions.v1beta2.Data.GenerateUploadUrlResponse>.ETagAction
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudFunctions.v1beta2.Data.GenerateUploadUrlResponse>.ModifyRequest
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudFunctions.v1beta2.Data.GenerateUploadUrlResponse>.RequestParameters
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudFunctions.v1beta2.Data.GenerateUploadUrlResponse>.Service
Google.Apis.Requests.ClientServiceRequest._unsuccessfulResponseHandlers
Google.Apis.Requests.ClientServiceRequest._exceptionHandlers
Google.Apis.Requests.ClientServiceRequest._executeInterceptors
Google.Apis.Requests.ClientServiceRequest.AddUnsuccessfulResponseHandler(Google.Apis.Http.IHttpUnsuccessfulResponseHandler)
Google.Apis.Requests.ClientServiceRequest.AddExceptionHandler(Google.Apis.Http.IHttpExceptionHandler)
Google.Apis.Requests.ClientServiceRequest.AddExecuteInterceptor(Google.Apis.Http.IHttpExecuteInterceptor)
Google.Apis.Requests.ClientServiceRequest.Credential
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: Google.Apis.CloudFunctions.v1beta2.dll
Syntax
public class 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
Properties
HttpMethod
Declaration
public override string HttpMethod { get; }
Property Value
Type |
Description |
System.String |
|
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudFunctions.v1beta2.Data.GenerateUploadUrlResponse>.HttpMethod
MethodName
Declaration
public override string MethodName { get; }
Property Value
Type |
Description |
System.String |
|
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudFunctions.v1beta2.Data.GenerateUploadUrlResponse>.MethodName
Parent
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 |
System.String |
|
RestPath
Declaration
public override string RestPath { get; }
Property Value
Type |
Description |
System.String |
|
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudFunctions.v1beta2.Data.GenerateUploadUrlResponse>.RestPath
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type |
Description |
System.Object |
|
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudFunctions.v1beta2.Data.GenerateUploadUrlResponse>.GetBody()
InitParameters()
Initializes GenerateUploadUrl parameter list.
Declaration
protected override void InitParameters()
Overrides
Google.Apis.CloudFunctions.v1beta2.CloudFunctionsBaseServiceRequest<Google.Apis.CloudFunctions.v1beta2.Data.GenerateUploadUrlResponse>.InitParameters()
Implements
Google.Apis.Requests.IClientServiceRequest<TResponse>
Google.Apis.Requests.IClientServiceRequest