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.
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.
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.
#upload_url
defupload_url()->::String
Returns
(::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.
#upload_url=
defupload_url=(value)->::String
Parameter
value (::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.
Returns
(::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.
[[["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::GenerateUploadUrlResponse (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-GenerateUploadUrlResponse)\n- [1.0.2](/ruby/docs/reference/google-cloud-functions-v2/1.0.2/Google-Cloud-Functions-V2-GenerateUploadUrlResponse)\n- [0.10.0](/ruby/docs/reference/google-cloud-functions-v2/0.10.0/Google-Cloud-Functions-V2-GenerateUploadUrlResponse)\n- [0.9.0](/ruby/docs/reference/google-cloud-functions-v2/0.9.0/Google-Cloud-Functions-V2-GenerateUploadUrlResponse)\n- [0.8.1](/ruby/docs/reference/google-cloud-functions-v2/0.8.1/Google-Cloud-Functions-V2-GenerateUploadUrlResponse)\n- [0.7.0](/ruby/docs/reference/google-cloud-functions-v2/0.7.0/Google-Cloud-Functions-V2-GenerateUploadUrlResponse)\n- [0.6.2](/ruby/docs/reference/google-cloud-functions-v2/0.6.2/Google-Cloud-Functions-V2-GenerateUploadUrlResponse)\n- [0.5.0](/ruby/docs/reference/google-cloud-functions-v2/0.5.0/Google-Cloud-Functions-V2-GenerateUploadUrlResponse)\n- [0.4.1](/ruby/docs/reference/google-cloud-functions-v2/0.4.1/Google-Cloud-Functions-V2-GenerateUploadUrlResponse)\n- [0.3.0](/ruby/docs/reference/google-cloud-functions-v2/0.3.0/Google-Cloud-Functions-V2-GenerateUploadUrlResponse)\n- [0.2.0](/ruby/docs/reference/google-cloud-functions-v2/0.2.0/Google-Cloud-Functions-V2-GenerateUploadUrlResponse)\n- [0.1.0](/ruby/docs/reference/google-cloud-functions-v2/0.1.0/Google-Cloud-Functions-V2-GenerateUploadUrlResponse) \nReference documentation and code samples for the Cloud Functions V2 API class Google::Cloud::Functions::V2::GenerateUploadUrlResponse.\n\nResponse of `GenerateSourceUploadUrl` method. \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### #storage_source\n\n def storage_source() -\u003e ::Google::Cloud::Functions::V2::StorageSource\n\n**Returns**\n\n- ([::Google::Cloud::Functions::V2::StorageSource](./Google-Cloud-Functions-V2-StorageSource)) --- The location of the source code in the upload bucket.\n\n\n Once the archive is uploaded using the `upload_url` use this field to\n set the `function.build_config.source.storage_source`\n during CreateFunction and UpdateFunction.\n\n Generation defaults to 0, as Cloud Storage provides a new generation only\n upon uploading a new object or version of an object.\n\n### #storage_source=\n\n def storage_source=(value) -\u003e ::Google::Cloud::Functions::V2::StorageSource\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Functions::V2::StorageSource](./Google-Cloud-Functions-V2-StorageSource)) --- The location of the source code in the upload bucket.\n\n\n Once the archive is uploaded using the `upload_url` use this field to\n set the `function.build_config.source.storage_source`\n during CreateFunction and UpdateFunction.\n\n Generation defaults to 0, as Cloud Storage provides a new generation only\nupon uploading a new object or version of an object. \n**Returns**\n\n- ([::Google::Cloud::Functions::V2::StorageSource](./Google-Cloud-Functions-V2-StorageSource)) --- The location of the source code in the upload bucket.\n\n\n Once the archive is uploaded using the `upload_url` use this field to\n set the `function.build_config.source.storage_source`\n during CreateFunction and UpdateFunction.\n\n Generation defaults to 0, as Cloud Storage provides a new generation only\n upon uploading a new object or version of an object.\n\n### #upload_url\n\n def upload_url() -\u003e ::String\n\n**Returns**\n\n- (::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.\n\n### #upload_url=\n\n def upload_url=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::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. \n**Returns**\n\n- (::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."]]