# Resource Manager V3 API - Class Google::Cloud::ResourceManager::V3::UpdateTagKeyRequest (v1.8.0)

1.8.0 (latest) 1.7.1 1.6.0 1.5.1 1.4.0 1.3.0 1.2.1 1.1.0 1.0.1 0.9.0 0.8.2 0.7.0 0.6.2 0.5.1 0.4.0 0.3.0 0.2.0 0.1.3 Reference documentation and code samples for the Resource Manager V3 API class Google::Cloud::ResourceManager::V3::UpdateTagKeyRequest.

The request message for updating a TagKey.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #tag_key

    def tag_key() -> ::Google::Cloud::ResourceManager::V3::TagKey

**Returns**

- ([::Google::Cloud::ResourceManager::V3::TagKey](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-resource_manager-v3/latest/Google-Cloud-ResourceManager-V3-TagKey)) --- Required. The new definition of the TagKey. Only the `description` and `etag` fields can be updated by this request. If the `etag` field is not empty, it must match the `etag` field of the existing tag key. Otherwise, `ABORTED` will be returned.

### #tag_key=

    def tag_key=(value) -> ::Google::Cloud::ResourceManager::V3::TagKey

**Parameter**

- **value** ([::Google::Cloud::ResourceManager::V3::TagKey](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-resource_manager-v3/latest/Google-Cloud-ResourceManager-V3-TagKey)) --- Required. The new definition of the TagKey. Only the `description` and `etag` fields can be updated by this request. If the `etag` field is not empty, it must match the `etag` field of the existing tag key. Otherwise, `ABORTED` will be returned.
**Returns**

- ([::Google::Cloud::ResourceManager::V3::TagKey](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-resource_manager-v3/latest/Google-Cloud-ResourceManager-V3-TagKey)) --- Required. The new definition of the TagKey. Only the `description` and `etag` fields can be updated by this request. If the `etag` field is not empty, it must match the `etag` field of the existing tag key. Otherwise, `ABORTED` will be returned.

### #update_mask

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

**Returns**

- ([::Google::Protobuf::FieldMask](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-resource_manager-v3/latest/Google-Protobuf-FieldMask)) --- Fields to be updated. The mask may only contain `description` or `etag`. If omitted entirely, both `description` and `etag` are assumed to be significant.

### #update_mask=

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

**Parameter**

- **value** ([::Google::Protobuf::FieldMask](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-resource_manager-v3/latest/Google-Protobuf-FieldMask)) --- Fields to be updated. The mask may only contain `description` or `etag`. If omitted entirely, both `description` and `etag` are assumed to be significant.
**Returns**

- ([::Google::Protobuf::FieldMask](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-resource_manager-v3/latest/Google-Protobuf-FieldMask)) --- Fields to be updated. The mask may only contain `description` or `etag`. If omitted entirely, both `description` and `etag` are assumed to be significant.

### #validate_only

    def validate_only() -> ::Boolean

**Returns**

- (::Boolean) --- Set as true to perform validations necessary for updating the resource, but not actually perform the action.

### #validate_only=

    def validate_only=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Set as true to perform validations necessary for updating the resource, but not actually perform the action.
**Returns**

- (::Boolean) --- Set as true to perform validations necessary for updating the resource, but not actually perform the action.