Reference documentation and code samples for the Google Cloud Functions V2 Client class GenerateUploadUrlResponse.
Response of GenerateSourceUploadUrl method.
Generated from protobuf message google.cloud.functions.v2.GenerateUploadUrlResponse
Namespace
Google \ Cloud \ Functions \ V2
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ upload_url
string
The generated Google Cloud Storage signed URL that should be used for a function source code upload. The uploaded file should be a zip archive which contains a function.
The location of the source code in the upload bucket. Once the archive is uploaded using the upload_url use this field to set the function.build_config.source.storage_source during CreateFunction and UpdateFunction. Generation defaults to 0, as Cloud Storage provides a new generation only upon uploading a new object or version of an object.
getUploadUrl
The generated Google Cloud Storage signed URL that should be used for a
function source code upload. The uploaded file should be a zip archive
which contains a function.
Returns
Type
Description
string
setUploadUrl
The generated Google Cloud Storage signed URL that should be used for a
function source code upload. The uploaded file should be a zip archive
which contains a function.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getStorageSource
The location of the source code in the upload bucket.
Once the archive is uploaded using the upload_url use this field to
set the function.build_config.source.storage_source
during CreateFunction and UpdateFunction.
Generation defaults to 0, as Cloud Storage provides a new generation only
upon uploading a new object or version of an object.
The location of the source code in the upload bucket.
Once the archive is uploaded using the upload_url use this field to
set the function.build_config.source.storage_source
during CreateFunction and UpdateFunction.
Generation defaults to 0, as Cloud Storage provides a new generation only
upon uploading a new object or version of an object.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Google Cloud Functions V2 Client - Class GenerateUploadUrlResponse (2.0.6)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.6 (latest)](/php/docs/reference/cloud-functions/latest/V2.GenerateUploadUrlResponse)\n- [2.0.5](/php/docs/reference/cloud-functions/2.0.5/V2.GenerateUploadUrlResponse)\n- [1.7.0](/php/docs/reference/cloud-functions/1.7.0/V2.GenerateUploadUrlResponse)\n- [1.6.5](/php/docs/reference/cloud-functions/1.6.5/V2.GenerateUploadUrlResponse)\n- [1.5.0](/php/docs/reference/cloud-functions/1.5.0/V2.GenerateUploadUrlResponse)\n- [1.4.2](/php/docs/reference/cloud-functions/1.4.2/V2.GenerateUploadUrlResponse)\n- [1.3.1](/php/docs/reference/cloud-functions/1.3.1/V2.GenerateUploadUrlResponse)\n- [1.2.0](/php/docs/reference/cloud-functions/1.2.0/V2.GenerateUploadUrlResponse)\n- [1.1.2](/php/docs/reference/cloud-functions/1.1.2/V2.GenerateUploadUrlResponse)\n- [1.0.3](/php/docs/reference/cloud-functions/1.0.3/V2.GenerateUploadUrlResponse) \nReference documentation and code samples for the Google Cloud Functions V2 Client class GenerateUploadUrlResponse.\n\nResponse of `GenerateSourceUploadUrl` method.\n\nGenerated from protobuf message `google.cloud.functions.v2.GenerateUploadUrlResponse`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Functions \\\\ V2\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getUploadUrl\n\nThe generated Google Cloud Storage signed URL that should be used for a\nfunction source code upload. The uploaded file should be a zip archive\nwhich contains a function.\n\n### setUploadUrl\n\nThe generated Google Cloud Storage signed URL that should be used for a\nfunction source code upload. The uploaded file should be a zip archive\nwhich contains a function.\n\n### getStorageSource\n\nThe location of the source code in the upload bucket.\n\nOnce the archive is uploaded using the `upload_url` use this field to\nset the `function.build_config.source.storage_source`\nduring CreateFunction and UpdateFunction.\nGeneration defaults to 0, as Cloud Storage provides a new generation only\nupon uploading a new object or version of an object.\n\n### hasStorageSource\n\n### clearStorageSource\n\n### setStorageSource\n\nThe location of the source code in the upload bucket.\n\nOnce the archive is uploaded using the `upload_url` use this field to\nset the `function.build_config.source.storage_source`\nduring CreateFunction and UpdateFunction.\nGeneration defaults to 0, as Cloud Storage provides a new generation only\nupon uploading a new object or version of an object."]]