public sealed class CreateFunctionRequest : IMessage<CreateFunctionRequest>, IEquatable<CreateFunctionRequest>, IDeepCloneable<CreateFunctionRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Functions v1 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 document provides reference information for the \u003ccode\u003eCreateFunctionRequest\u003c/code\u003e class within the Google Cloud Functions v1 API, specifically for .NET development.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eCreateFunctionRequest\u003c/code\u003e is a sealed class used to make requests for the \u003ccode\u003eCreateFunction\u003c/code\u003e method, implementing interfaces like \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 \u003ccode\u003eCreateFunctionRequest\u003c/code\u003e class has two constructors, a default constructor and one that accepts another \u003ccode\u003eCreateFunctionRequest\u003c/code\u003e object for parameterization.\u003c/p\u003e\n"],["\u003cp\u003eThe class contains two properties: \u003ccode\u003eFunction\u003c/code\u003e which is of type \u003ccode\u003eCloudFunction\u003c/code\u003e and represents the function to be created, and \u003ccode\u003eLocation\u003c/code\u003e (also \u003ccode\u003eLocationAsLocationName\u003c/code\u003e), a string specifying where the function should be created.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version documented is 2.7.0, and the document also provides details for versions ranging back to 1.1.0 of \u003ccode\u003eCreateFunctionRequest\u003c/code\u003e API.\u003c/p\u003e\n"]]],[],null,["# Cloud Functions v1 API - Class CreateFunctionRequest (2.7.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.7.0 (latest)](/dotnet/docs/reference/Google.Cloud.Functions.V1/latest/Google.Cloud.Functions.V1.CreateFunctionRequest)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.Functions.V1/2.6.0/Google.Cloud.Functions.V1.CreateFunctionRequest)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.Functions.V1/2.5.0/Google.Cloud.Functions.V1.CreateFunctionRequest)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Functions.V1/2.4.0/Google.Cloud.Functions.V1.CreateFunctionRequest)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Functions.V1/2.3.0/Google.Cloud.Functions.V1.CreateFunctionRequest)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Functions.V1/2.2.0/Google.Cloud.Functions.V1.CreateFunctionRequest)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.Functions.V1/2.1.0/Google.Cloud.Functions.V1.CreateFunctionRequest)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.Functions.V1/2.0.0/Google.Cloud.Functions.V1.CreateFunctionRequest)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.Functions.V1/1.3.0/Google.Cloud.Functions.V1.CreateFunctionRequest)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Functions.V1/1.2.0/Google.Cloud.Functions.V1.CreateFunctionRequest)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Functions.V1/1.1.0/Google.Cloud.Functions.V1.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 v1 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.V1/latest/Google.Cloud.Functions.V1.CreateFunctionRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CreateFunctionRequest](/dotnet/docs/reference/Google.Cloud.Functions.V1/latest/Google.Cloud.Functions.V1.CreateFunctionRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[CreateFunctionRequest](/dotnet/docs/reference/Google.Cloud.Functions.V1/latest/Google.Cloud.Functions.V1.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.V1](/dotnet/docs/reference/Google.Cloud.Functions.V1/latest/Google.Cloud.Functions.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Functions.V1.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 CloudFunction Function { get; set; }\n\nRequired. Function to be created.\n\n### Location\n\n public string Location { get; set; }\n\nRequired. The project and location in which the function should be created,\nspecified in the format `projects/*/locations/*`\n\n### LocationAsLocationName\n\n public LocationName LocationAsLocationName { 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 [Location](/dotnet/docs/reference/Google.Cloud.Functions.V1/latest/Google.Cloud.Functions.V1.CreateFunctionRequest#Google_Cloud_Functions_V1_CreateFunctionRequest_Location) resource name property."]]