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."],[[["\u003cp\u003eThe \u003ccode\u003eStorageSource\u003c/code\u003e class, part of the Cloud Functions v2beta API, represents the location of a function's source code in a Google Cloud Storage archive file.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements multiple interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, providing functionalities such as deep cloning and protocol buffer message handling.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of \u003ccode\u003eStorageSource\u003c/code\u003e include \u003ccode\u003eBucket\u003c/code\u003e (the Cloud Storage bucket), \u003ccode\u003eGeneration\u003c/code\u003e (the object's generation), \u003ccode\u003eObject\u003c/code\u003e (the gzipped archive file containing the source code), and \u003ccode\u003eSourceUploadUrl\u003c/code\u003e (for 1st gen function upload URLs).\u003c/p\u003e\n"],["\u003cp\u003eThere are two versions of \u003ccode\u003eStorageSource\u003c/code\u003e, with the latest being \u003ccode\u003e1.0.0-beta07\u003c/code\u003e, which can be accessed at the associated link, and the previous version \u003ccode\u003e1.0.0-beta06\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eStorageSource\u003c/code\u003e inherits members from the object class, including methods like GetHashCode, GetType, and ToString.\u003c/p\u003e\n"]]],[],null,["# Cloud Functions v2beta API - Class StorageSource (1.0.0-beta07)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0-beta07 (latest)](/dotnet/docs/reference/Google.Cloud.Functions.V2Beta/latest/Google.Cloud.Functions.V2Beta.StorageSource)\n- [1.0.0-beta06](/dotnet/docs/reference/Google.Cloud.Functions.V2Beta/1.0.0-beta06/Google.Cloud.Functions.V2Beta.StorageSource) \n\n public sealed class StorageSource : IMessage\u003cStorageSource\u003e, IEquatable\u003cStorageSource\u003e, IDeepCloneable\u003cStorageSource\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud Functions v2beta API class StorageSource.\n\nLocation of the source in an archive file in Google Cloud Storage. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e StorageSource \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[StorageSource](/dotnet/docs/reference/Google.Cloud.Functions.V2Beta/latest/Google.Cloud.Functions.V2Beta.StorageSource), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[StorageSource](/dotnet/docs/reference/Google.Cloud.Functions.V2Beta/latest/Google.Cloud.Functions.V2Beta.StorageSource), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[StorageSource](/dotnet/docs/reference/Google.Cloud.Functions.V2Beta/latest/Google.Cloud.Functions.V2Beta.StorageSource), [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.V2Beta](/dotnet/docs/reference/Google.Cloud.Functions.V2Beta/latest/Google.Cloud.Functions.V2Beta)\n\nAssembly\n--------\n\nGoogle.Cloud.Functions.V2Beta.dll\n\nConstructors\n------------\n\n### StorageSource()\n\n public StorageSource()\n\n### StorageSource(StorageSource)\n\n public StorageSource(StorageSource other)\n\nProperties\n----------\n\n### Bucket\n\n public string Bucket { get; set; }\n\nGoogle Cloud Storage bucket containing the source (see\n[Bucket Name\nRequirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).\n\n### Generation\n\n public long Generation { get; set; }\n\nGoogle Cloud Storage generation for the object. If the generation is\nomitted, the latest generation will be used.\n\n### Object\n\n public string Object { get; set; }\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### SourceUploadUrl\n\n public string SourceUploadUrl { get; set; }\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."]]