# BigQuery Migration V2 API - Module Google::Cloud::Bigquery::Migration::V2::NameMappingKey::Type (v0.21.0)

0.21.0 (latest) 0.20.0 0.19.0 0.18.0 0.17.1 0.16.0 0.15.1 0.14.1 0.13.0 0.12.0 0.11.1 0.10.0 0.9.2 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the BigQuery Migration V2 API module Google::Cloud::Bigquery::Migration::V2::NameMappingKey::Type.

The type of the object that is being mapped.

## Constants

### TYPE_UNSPECIFIED

**value:** 0  
Unspecified name mapping type.

### DATABASE

**value:** 1  
The object being mapped is a database.

### SCHEMA

**value:** 2  
The object being mapped is a schema.

### RELATION

**value:** 3  
The object being mapped is a relation.

### ATTRIBUTE

**value:** 4  
The object being mapped is an attribute.

### RELATION_ALIAS

**value:** 5  
The object being mapped is a relation alias.

### ATTRIBUTE_ALIAS

**value:** 6  
The object being mapped is a an attribute alias.

### FUNCTION

**value:** 7  
The object being mapped is a function.