(::Integer) — Google Cloud Storage generation for the object. If the generation is
omitted, the latest generation will be used.
#generation=
defgeneration=(value)->::Integer
Parameter
value (::Integer) — Google Cloud Storage generation for the object. If the generation is
omitted, the latest generation will be used.
Returns
(::Integer) — Google Cloud Storage generation for the object. If the generation is
omitted, the latest generation will be used.
#object
defobject()->::String
Returns
(::String) — Google Cloud Storage object containing the source.
This object must be a gzipped archive file (.tar.gz) containing source to
build.
#object=
defobject=(value)->::String
Parameter
value (::String) — Google Cloud Storage object containing the source.
This object must be a gzipped archive file (.tar.gz) containing source to
build.
Returns
(::String) — Google Cloud Storage object containing the source.
This object must be a gzipped archive file (.tar.gz) containing source to
build.
#source_upload_url
defsource_upload_url()->::String
Returns
(::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.
#source_upload_url=
defsource_upload_url=(value)->::String
Parameter
value (::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.
Returns
(::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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Cloud Functions V2 API - Class Google::Cloud::Functions::V2::StorageSource (v1.1.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.1.0 (latest)](/ruby/docs/reference/google-cloud-functions-v2/latest/Google-Cloud-Functions-V2-StorageSource)\n- [1.0.2](/ruby/docs/reference/google-cloud-functions-v2/1.0.2/Google-Cloud-Functions-V2-StorageSource)\n- [0.10.0](/ruby/docs/reference/google-cloud-functions-v2/0.10.0/Google-Cloud-Functions-V2-StorageSource)\n- [0.9.0](/ruby/docs/reference/google-cloud-functions-v2/0.9.0/Google-Cloud-Functions-V2-StorageSource)\n- [0.8.1](/ruby/docs/reference/google-cloud-functions-v2/0.8.1/Google-Cloud-Functions-V2-StorageSource)\n- [0.7.0](/ruby/docs/reference/google-cloud-functions-v2/0.7.0/Google-Cloud-Functions-V2-StorageSource)\n- [0.6.2](/ruby/docs/reference/google-cloud-functions-v2/0.6.2/Google-Cloud-Functions-V2-StorageSource)\n- [0.5.0](/ruby/docs/reference/google-cloud-functions-v2/0.5.0/Google-Cloud-Functions-V2-StorageSource)\n- [0.4.1](/ruby/docs/reference/google-cloud-functions-v2/0.4.1/Google-Cloud-Functions-V2-StorageSource)\n- [0.3.0](/ruby/docs/reference/google-cloud-functions-v2/0.3.0/Google-Cloud-Functions-V2-StorageSource)\n- [0.2.0](/ruby/docs/reference/google-cloud-functions-v2/0.2.0/Google-Cloud-Functions-V2-StorageSource)\n- [0.1.0](/ruby/docs/reference/google-cloud-functions-v2/0.1.0/Google-Cloud-Functions-V2-StorageSource) \nReference documentation and code samples for the Cloud Functions V2 API class Google::Cloud::Functions::V2::StorageSource.\n\nLocation of the source in an archive file in Google Cloud Storage. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #bucket\n\n def bucket() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Google Cloud Storage bucket containing the source (see [Bucket Name\n Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).\n\n### #bucket=\n\n def bucket=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Google Cloud Storage bucket containing the source (see [Bucket Name\nRequirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). \n**Returns**\n\n- (::String) --- Google Cloud Storage bucket containing the source (see [Bucket Name\n Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).\n\n### #generation\n\n def generation() -\u003e ::Integer\n\n**Returns**\n\n- (::Integer) --- Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.\n\n### #generation=\n\n def generation=(value) -\u003e ::Integer\n\n**Parameter**\n\n- **value** (::Integer) --- Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used. \n**Returns**\n\n- (::Integer) --- Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.\n\n### #object\n\n def object() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Google Cloud Storage object containing the source.\n\n This object must be a gzipped archive file (`.tar.gz`) containing source to\n build.\n\n### #object=\n\n def object=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Google Cloud Storage object containing the source.\n\n\n This object must be a gzipped archive file (`.tar.gz`) containing source to\nbuild. \n**Returns**\n\n- (::String) --- Google Cloud Storage object containing the source.\n\n This object must be a gzipped archive file (`.tar.gz`) containing source to\n build.\n\n### #source_upload_url\n\n def source_upload_url() -\u003e ::String\n\n**Returns**\n\n- (::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.\n\n### #source_upload_url=\n\n def source_upload_url=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::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. \n**Returns**\n\n- (::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."]]