1.1.0 (latest) 1.0.3 0.10.0 0.9.0 0.8.0 0.7.0 0.6.0 0.5.0 0.4.1 0.3.0 0.2.0 0.1.1 Reference documentation and code samples for the API hub V1 API class Google::Cloud::ApiHub::V1::UpdateApiRequest.

The [UpdateApi](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-ApiHub-Rest-Client#Google__Cloud__ApiHub__V1__ApiHub__Rest__Client_update_api_instance_ "Google::Cloud::ApiHub::V1::ApiHub::Rest::Client#update_api (method)") method's request.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #api

    def api() -> ::Google::Cloud::ApiHub::V1::Api

**Returns**

- ([::Google::Cloud::ApiHub::V1::Api](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-Api)) --- Required. The API resource to update.


  The API resource's `name` field is used to identify the API resource to
  update.
  Format: `projects/{project}/locations/{location}/apis/{api}`

### #api=

    def api=(value) -> ::Google::Cloud::ApiHub::V1::Api

**Parameter**

- **value** ([::Google::Cloud::ApiHub::V1::Api](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-Api)) --- Required. The API resource to update.


  The API resource's `name` field is used to identify the API resource to
  update.
  Format: `projects/{project}/locations/{location}/apis/{api}`
**Returns**

- ([::Google::Cloud::ApiHub::V1::Api](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-Api)) --- Required. The API resource to update.


  The API resource's `name` field is used to identify the API resource to
  update.
  Format: `projects/{project}/locations/{location}/apis/{api}`

### #update_mask

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

**Returns**

- ([::Google::Protobuf::FieldMask](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Protobuf-FieldMask)) --- Required. The list of fields to update.

### #update_mask=

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

**Parameter**

- **value** ([::Google::Protobuf::FieldMask](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Protobuf-FieldMask)) --- Required. The list of fields to update.
**Returns**

- ([::Google::Protobuf::FieldMask](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Protobuf-FieldMask)) --- Required. The list of fields to update.