# Cloud Functions V2 API - Class Google::Cloud::Functions::V2::CreateFunctionRequest (v1.5.1)

1.5.1 (latest) 1.5.0 1.4.0 1.3.1 1.2.0 1.1.0 1.0.2 0.10.0 0.9.0 0.8.1 0.7.0 0.6.2 0.5.0 0.4.1 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Cloud Functions V2 API class Google::Cloud::Functions::V2::CreateFunctionRequest.

Request for the `CreateFunction` method.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #function

    def function() -> ::Google::Cloud::Functions::V2::Function

**Returns**

- ([::Google::Cloud::Functions::V2::Function](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-functions-v2/latest/Google-Cloud-Functions-V2-Function)) --- Required. Function to be created.

### #function=

    def function=(value) -> ::Google::Cloud::Functions::V2::Function

**Parameter**

- **value** ([::Google::Cloud::Functions::V2::Function](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-functions-v2/latest/Google-Cloud-Functions-V2-Function)) --- Required. Function to be created.
**Returns**

- ([::Google::Cloud::Functions::V2::Function](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-functions-v2/latest/Google-Cloud-Functions-V2-Function)) --- Required. Function to be created.

### #function_id

    def function_id() -> ::String

**Returns**

- (::String) --- The ID to use for the function, which will become the final component of the function's resource name.

  This value should be 4-63 characters, and valid characters
  are /\[a-z\]\[0-9\]-/.

### #function_id=

    def function_id=(value) -> ::String

**Parameter**

- **value** (::String) --- The ID to use for the function, which will become the final component of the function's resource name.


  This value should be 4-63 characters, and valid characters
  are /\[a-z\]\[0-9\]-/.
**Returns**

- (::String) --- The ID to use for the function, which will become the final component of the function's resource name.

  This value should be 4-63 characters, and valid characters
  are /\[a-z\]\[0-9\]-/.

### #parent

    def parent() -> ::String

**Returns**

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

### #parent=

    def parent=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The project and location in which the function should be created, specified in the format `projects/*/locations/*`
**Returns**

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