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 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-04 UTC."],[[["\u003cp\u003eThis document provides reference information for the \u003ccode\u003eGenerateUploadUrlResponse\u003c/code\u003e class within the Google Cloud Functions v2 API for .NET.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGenerateUploadUrlResponse\u003c/code\u003e class is used as the response type for the \u003ccode\u003eGenerateSourceUploadUrl\u003c/code\u003e method, facilitating the uploading of function source code.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes two main properties: \u003ccode\u003eStorageSource\u003c/code\u003e, which details the location of uploaded source code, and \u003ccode\u003eUploadUrl\u003c/code\u003e, a signed URL for uploading the source archive.\u003c/p\u003e\n"],["\u003cp\u003eThe document outlines the inheritance hierarchy, implemented interfaces, constructors, and members associated with the \u003ccode\u003eGenerateUploadUrlResponse\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eThe latest available version of the \u003ccode\u003eGenerateUploadUrlResponse\u003c/code\u003e class is version 1.7.0, and it provides links to other versions going as far back as 1.0.0.\u003c/p\u003e\n"]]],[],null,["# Cloud Functions v2 API - Class GenerateUploadUrlResponse (1.7.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.7.0 (latest)](/dotnet/docs/reference/Google.Cloud.Functions.V2/latest/Google.Cloud.Functions.V2.GenerateUploadUrlResponse)\n- [1.6.0](/dotnet/docs/reference/Google.Cloud.Functions.V2/1.6.0/Google.Cloud.Functions.V2.GenerateUploadUrlResponse)\n- [1.5.0](/dotnet/docs/reference/Google.Cloud.Functions.V2/1.5.0/Google.Cloud.Functions.V2.GenerateUploadUrlResponse)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.Functions.V2/1.4.0/Google.Cloud.Functions.V2.GenerateUploadUrlResponse)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.Functions.V2/1.3.0/Google.Cloud.Functions.V2.GenerateUploadUrlResponse)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Functions.V2/1.2.0/Google.Cloud.Functions.V2.GenerateUploadUrlResponse)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Functions.V2/1.1.0/Google.Cloud.Functions.V2.GenerateUploadUrlResponse)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Functions.V2/1.0.0/Google.Cloud.Functions.V2.GenerateUploadUrlResponse) \n\n public sealed class GenerateUploadUrlResponse : IMessage\u003cGenerateUploadUrlResponse\u003e, IEquatable\u003cGenerateUploadUrlResponse\u003e, IDeepCloneable\u003cGenerateUploadUrlResponse\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud Functions v2 API class GenerateUploadUrlResponse.\n\nResponse of `GenerateSourceUploadUrl` method. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e GenerateUploadUrlResponse \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[GenerateUploadUrlResponse](/dotnet/docs/reference/Google.Cloud.Functions.V2/latest/Google.Cloud.Functions.V2.GenerateUploadUrlResponse), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[GenerateUploadUrlResponse](/dotnet/docs/reference/Google.Cloud.Functions.V2/latest/Google.Cloud.Functions.V2.GenerateUploadUrlResponse), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[GenerateUploadUrlResponse](/dotnet/docs/reference/Google.Cloud.Functions.V2/latest/Google.Cloud.Functions.V2.GenerateUploadUrlResponse), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Functions.V2](/dotnet/docs/reference/Google.Cloud.Functions.V2/latest/Google.Cloud.Functions.V2)\n\nAssembly\n--------\n\nGoogle.Cloud.Functions.V2.dll\n\nConstructors\n------------\n\n### GenerateUploadUrlResponse()\n\n public GenerateUploadUrlResponse()\n\n### GenerateUploadUrlResponse(GenerateUploadUrlResponse)\n\n public GenerateUploadUrlResponse(GenerateUploadUrlResponse other)\n\nProperties\n----------\n\n### StorageSource\n\n public StorageSource StorageSource { get; set; }\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.\n\nGeneration defaults to 0, as Cloud Storage provides a new generation only\nupon uploading a new object or version of an object.\n\n### UploadUrl\n\n public string UploadUrl { get; set; }\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."]]