2.8.0 (latest) 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.3.0 1.2.0 1.1.0

    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.

Request for the `CreateFunction` method.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> CreateFunctionRequest

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[CreateFunctionRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Functions.V1/latest/Google.Cloud.Functions.V1.CreateFunctionRequest.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CreateFunctionRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Functions.V1/latest/Google.Cloud.Functions.V1.CreateFunctionRequest.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[CreateFunctionRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Functions.V1/latest/Google.Cloud.Functions.V1.CreateFunctionRequest.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Functions.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Functions.V1/latest/Google.Cloud.Functions.V1.md.txt)

## Assembly

Google.Cloud.Functions.V1.dll

## Constructors

### CreateFunctionRequest()

    public CreateFunctionRequest()

### CreateFunctionRequest(CreateFunctionRequest)

    public CreateFunctionRequest(CreateFunctionRequest other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `CreateFunctionRequest` |

## Properties

### Function

    public CloudFunction Function { get; set; }

Required. Function to be created.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `CloudFunction` |   |

### Location

    public string Location { get; set; }

Required. The project and location in which the function should be created,
specified in the format `projects/*/locations/*`

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### LocationAsLocationName

    public LocationName LocationAsLocationName { get; set; }

[LocationName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.md.txt)-typed view over the [Location](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Functions.V1/latest/Google.Cloud.Functions.V1.CreateFunctionRequest.md.txt#Google_Cloud_Functions_V1_CreateFunctionRequest_Location) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `LocationName` |   |