public sealed class CreateFunctionRequest : IMessage<CreateFunctionRequest>, IEquatable<CreateFunctionRequest>, IDeepCloneable<CreateFunctionRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Functions v2beta API class CreateFunctionRequest.
[[["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\u003eThis documentation is for the \u003ccode\u003eCreateFunctionRequest\u003c/code\u003e class within the Cloud Functions v2beta API, which is used to make requests for creating new functions.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCreateFunctionRequest\u003c/code\u003e class inherits from the base \u003ccode\u003eobject\u003c/code\u003e class and implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes properties such as \u003ccode\u003eFunction\u003c/code\u003e, \u003ccode\u003eFunctionId\u003c/code\u003e, \u003ccode\u003eParent\u003c/code\u003e, and \u003ccode\u003eParentAsLocationName\u003c/code\u003e, which are essential for defining the function to be created and specifying its location and identifier.\u003c/p\u003e\n"],["\u003cp\u003eThere are two constructors available for \u003ccode\u003eCreateFunctionRequest\u003c/code\u003e: a default constructor and one that takes another \u003ccode\u003eCreateFunctionRequest\u003c/code\u003e object as input for cloning purposes.\u003c/p\u003e\n"],["\u003cp\u003eThe assembly for this class is \u003ccode\u003eGoogle.Cloud.Functions.V2Beta.dll\u003c/code\u003e and it is within the \u003ccode\u003eGoogle.Cloud.Functions.V2Beta\u003c/code\u003e namespace.\u003c/p\u003e\n"]]],[],null,["# Cloud Functions v2beta API - Class CreateFunctionRequest (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.CreateFunctionRequest)\n- [1.0.0-beta06](/dotnet/docs/reference/Google.Cloud.Functions.V2Beta/1.0.0-beta06/Google.Cloud.Functions.V2Beta.CreateFunctionRequest) \n\n public sealed class CreateFunctionRequest : IMessage\u003cCreateFunctionRequest\u003e, IEquatable\u003cCreateFunctionRequest\u003e, IDeepCloneable\u003cCreateFunctionRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud Functions v2beta API class CreateFunctionRequest.\n\nRequest for the `CreateFunction` method. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e CreateFunctionRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[CreateFunctionRequest](/dotnet/docs/reference/Google.Cloud.Functions.V2Beta/latest/Google.Cloud.Functions.V2Beta.CreateFunctionRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CreateFunctionRequest](/dotnet/docs/reference/Google.Cloud.Functions.V2Beta/latest/Google.Cloud.Functions.V2Beta.CreateFunctionRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[CreateFunctionRequest](/dotnet/docs/reference/Google.Cloud.Functions.V2Beta/latest/Google.Cloud.Functions.V2Beta.CreateFunctionRequest), [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### CreateFunctionRequest()\n\n public CreateFunctionRequest()\n\n### CreateFunctionRequest(CreateFunctionRequest)\n\n public CreateFunctionRequest(CreateFunctionRequest other)\n\nProperties\n----------\n\n### Function\n\n public Function Function { get; set; }\n\nRequired. Function to be created.\n\n### FunctionId\n\n public string FunctionId { get; set; }\n\nThe ID to use for the function, which will become the final component of\nthe function's resource name.\n\nThis value should be 4-63 characters, and valid characters\nare /\\[a-z\\]\\[0-9\\]-/.\n\n### Parent\n\n public string Parent { get; set; }\n\nRequired. The project and location in which the function should be created,\nspecified in the format `projects/*/locations/*`\n\n### ParentAsLocationName\n\n public LocationName ParentAsLocationName { get; set; }\n\n[LocationName](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html)-typed view over the [Parent](/dotnet/docs/reference/Google.Cloud.Functions.V2Beta/latest/Google.Cloud.Functions.V2Beta.CreateFunctionRequest#Google_Cloud_Functions_V2Beta_CreateFunctionRequest_Parent) resource name property."]]