Google Cloud Storage object containing the source. This object must be a gzipped archive file (.tar.gz) containing source to build.
↳ generation
int|string
Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
↳ source_upload_url
string
When the specified storage bucket is a 1st gen function uploard url bucket, this field should be set as the generated upload url for 1st gen deployment.
Google Cloud Storage object containing the source.
This object must be a gzipped archive file (.tar.gz) containing source to
build.
Returns
Type
Description
string
setObject
Google Cloud Storage object containing the source.
This object must be a gzipped archive file (.tar.gz) containing source to
build.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getGeneration
Google Cloud Storage generation for the object. If the generation is
omitted, the latest generation will be used.
Returns
Type
Description
int|string
setGeneration
Google Cloud Storage generation for the object. If the generation is
omitted, the latest generation will be used.
Parameter
Name
Description
var
int|string
Returns
Type
Description
$this
getSourceUploadUrl
When the specified storage bucket is a 1st gen function uploard url bucket,
this field should be set as the generated upload url for 1st gen
deployment.
Returns
Type
Description
string
setSourceUploadUrl
When the specified storage bucket is a 1st gen function uploard url bucket,
this field should be set as the generated upload url for 1st gen
deployment.
[[["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 StorageSource (2.0.6)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.6 (latest)](/php/docs/reference/cloud-functions/latest/V2.StorageSource)\n- [2.0.5](/php/docs/reference/cloud-functions/2.0.5/V2.StorageSource)\n- [1.7.0](/php/docs/reference/cloud-functions/1.7.0/V2.StorageSource)\n- [1.6.5](/php/docs/reference/cloud-functions/1.6.5/V2.StorageSource)\n- [1.5.0](/php/docs/reference/cloud-functions/1.5.0/V2.StorageSource)\n- [1.4.2](/php/docs/reference/cloud-functions/1.4.2/V2.StorageSource)\n- [1.3.1](/php/docs/reference/cloud-functions/1.3.1/V2.StorageSource)\n- [1.2.0](/php/docs/reference/cloud-functions/1.2.0/V2.StorageSource)\n- [1.1.2](/php/docs/reference/cloud-functions/1.1.2/V2.StorageSource)\n- [1.0.3](/php/docs/reference/cloud-functions/1.0.3/V2.StorageSource) \nReference documentation and code samples for the Google Cloud Functions V2 Client class StorageSource.\n\nLocation of the source in an archive file in Google Cloud Storage.\n\nGenerated from protobuf message `google.cloud.functions.v2.StorageSource`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Functions \\\\ V2\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getBucket\n\nGoogle Cloud Storage bucket containing the source (see\n[Bucket Name\nRequirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).\n\n### setBucket\n\nGoogle Cloud Storage bucket containing the source (see\n[Bucket Name\nRequirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).\n\n### getObject\n\nGoogle Cloud Storage object containing the source.\n\nThis object must be a gzipped archive file (`.tar.gz`) containing source to\nbuild.\n\n### setObject\n\nGoogle Cloud Storage object containing the source.\n\nThis object must be a gzipped archive file (`.tar.gz`) containing source to\nbuild.\n\n### getGeneration\n\nGoogle Cloud Storage generation for the object. If the generation is\nomitted, the latest generation will be used.\n\n### setGeneration\n\nGoogle Cloud Storage generation for the object. If the generation is\nomitted, the latest generation will be used.\n\n### getSourceUploadUrl\n\nWhen the specified storage bucket is a 1st gen function uploard url bucket,\nthis field should be set as the generated upload url for 1st gen\ndeployment.\n\n### setSourceUploadUrl\n\nWhen the specified storage bucket is a 1st gen function uploard url bucket,\nthis field should be set as the generated upload url for 1st gen\ndeployment."]]