# Resource Manager V3 API - Class Google::Cloud::ResourceManager::V3::CreateTagKeyRequest (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::CreateTagKeyRequest.

The request message for creating 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 TagKey to be created. Only fields `short_name`, `description`, and `parent` are considered during the creation request.

### #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 TagKey to be created. Only fields `short_name`, `description`, and `parent` are considered during the creation request.
**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 TagKey to be created. Only fields `short_name`, `description`, and `parent` are considered during the creation request.

### #validate_only

    def validate_only() -> ::Boolean

**Returns**

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

### #validate_only=

    def validate_only=(value) -> ::Boolean

**Parameter**

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

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