# Cloud Functions V2 API - Class Google::Cloud::Functions::V2::UpdateFunctionRequest (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::UpdateFunctionRequest.

Request for the `UpdateFunction` 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. New version of the function.

### #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. New version of the 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. New version of the function.

### #update_mask

    def update_mask() -> ::Google::Protobuf::FieldMask

**Returns**

- ([::Google::Protobuf::FieldMask](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-functions-v2/latest/Google-Protobuf-FieldMask)) --- The list of fields to be updated. If no field mask is provided, all fields will be updated.

### #update_mask=

    def update_mask=(value) -> ::Google::Protobuf::FieldMask

**Parameter**

- **value** ([::Google::Protobuf::FieldMask](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-functions-v2/latest/Google-Protobuf-FieldMask)) --- The list of fields to be updated. If no field mask is provided, all fields will be updated.
**Returns**

- ([::Google::Protobuf::FieldMask](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-functions-v2/latest/Google-Protobuf-FieldMask)) --- The list of fields to be updated. If no field mask is provided, all fields will be updated.