- [JSON representation](https://docs.cloud.google.com/dataproc-metastore/docs/reference/rest/v1/CatalogReport#SCHEMA_REPRESENTATION)
- [DatabaseReport](https://docs.cloud.google.com/dataproc-metastore/docs/reference/rest/v1/CatalogReport#DatabaseReport)
  - [JSON representation](https://docs.cloud.google.com/dataproc-metastore/docs/reference/rest/v1/CatalogReport#DatabaseReport.SCHEMA_REPRESENTATION)
- [ExecutionPlan](https://docs.cloud.google.com/dataproc-metastore/docs/reference/rest/v1/CatalogReport#ExecutionPlan)
  - [JSON representation](https://docs.cloud.google.com/dataproc-metastore/docs/reference/rest/v1/CatalogReport#ExecutionPlan.SCHEMA_REPRESENTATION)
- [ValueDiff](https://docs.cloud.google.com/dataproc-metastore/docs/reference/rest/v1/CatalogReport#ValueDiff)
  - [JSON representation](https://docs.cloud.google.com/dataproc-metastore/docs/reference/rest/v1/CatalogReport#ValueDiff.SCHEMA_REPRESENTATION)
- [ExecutionResult](https://docs.cloud.google.com/dataproc-metastore/docs/reference/rest/v1/CatalogReport#ExecutionResult)
  - [JSON representation](https://docs.cloud.google.com/dataproc-metastore/docs/reference/rest/v1/CatalogReport#ExecutionResult.SCHEMA_REPRESENTATION)
- [TableReport](https://docs.cloud.google.com/dataproc-metastore/docs/reference/rest/v1/CatalogReport#TableReport)
  - [JSON representation](https://docs.cloud.google.com/dataproc-metastore/docs/reference/rest/v1/CatalogReport#TableReport.SCHEMA_REPRESENTATION)
- [PartitionReport](https://docs.cloud.google.com/dataproc-metastore/docs/reference/rest/v1/CatalogReport#PartitionReport)
  - [JSON representation](https://docs.cloud.google.com/dataproc-metastore/docs/reference/rest/v1/CatalogReport#PartitionReport.SCHEMA_REPRESENTATION)

Aggregated report at the catalog level.

| JSON representation |
|---|
| ``` { "catalogType": enum (`https://docs.cloud.google.com/dataproc-metastore/docs/reference/rest/v1/projects.locations.services.migrationExecutions#CatalogType`), "catalog": string, "databaseReports": { string: { object (`https://docs.cloud.google.com/dataproc-metastore/docs/reference/rest/v1/CatalogReport#DatabaseReport`) }, ... } } ``` |

| Fields ||
|---|---|
| `catalogType` | ``enum (`https://docs.cloud.google.com/dataproc-metastore/docs/reference/rest/v1/projects.locations.services.migrationExecutions#CatalogType`)`` The type of catalog. |
| `catalog` | `string` The name of the catalog (format: projects/\*/catalogs/\*). |
| `databaseReports` | ``map (key: string, value: object (`https://docs.cloud.google.com/dataproc-metastore/docs/reference/rest/v1/CatalogReport#DatabaseReport`))`` A map of database names to their respective reports. An object containing a list of `"key": value` pairs. Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`. |

## DatabaseReport

Aggregated report at the database level.

| JSON representation |
|---|
| ``` { "database": string, "executionPlan": { object (`https://docs.cloud.google.com/dataproc-metastore/docs/reference/rest/v1/CatalogReport#ExecutionPlan`) }, "executionResult": { object (`https://docs.cloud.google.com/dataproc-metastore/docs/reference/rest/v1/CatalogReport#ExecutionResult`) }, "tableReports": { string: { object (`https://docs.cloud.google.com/dataproc-metastore/docs/reference/rest/v1/CatalogReport#TableReport`) }, ... } } ``` |

| Fields ||
|---|---|
| `database` | `string` The name of the database. |
| `executionPlan` | ``object (`https://docs.cloud.google.com/dataproc-metastore/docs/reference/rest/v1/CatalogReport#ExecutionPlan`)`` The discovered intent for the database (what we found and what we planned). |
| `executionResult` | ``object (`https://docs.cloud.google.com/dataproc-metastore/docs/reference/rest/v1/CatalogReport#ExecutionResult`)`` The actual outcome of the database migration. |
| `tableReports` | ``map (key: string, value: object (`https://docs.cloud.google.com/dataproc-metastore/docs/reference/rest/v1/CatalogReport#TableReport`))`` A map of table names to their respective reports. An object containing a list of `"key": value` pairs. Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`. |

## ExecutionPlan

Represents the migration plan for a specific resource (e.g. Database, Table).

| JSON representation |
|---|
| ``` { "action": enum (`https://docs.cloud.google.com/dataproc-metastore/docs/reference/rest/v1/projects.locations.services.migrationExecutions#Action`), "reason": string, "diffs": { string: { object (`https://docs.cloud.google.com/dataproc-metastore/docs/reference/rest/v1/CatalogReport#ValueDiff`) }, ... } } ``` |

| Fields ||
|---|---|
| `action` | ``enum (`https://docs.cloud.google.com/dataproc-metastore/docs/reference/rest/v1/projects.locations.services.migrationExecutions#Action`)`` The action that will be taken for a resource during migration. |
| `reason` | `string` A human-readable string explaining why the action was chosen. |
| `diffs` | ``map (key: string, value: object (`https://docs.cloud.google.com/dataproc-metastore/docs/reference/rest/v1/CatalogReport#ValueDiff`))`` A map of field names to their respective value diff. An object containing a list of `"key": value` pairs. Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`. |

## ValueDiff

A field-level metadata mismatch for a resource between the source and target.

| JSON representation |
|---|
| ``` { "sourceValue": string, "targetValue": string } ``` |

| Fields ||
|---|---|
| `sourceValue` | `string` The value of the field at the source. |
| `targetValue` | `string` The value of the field at the target. |

## ExecutionResult

Represents the actual migration result for a specific resource (e.g. Database, Table).

| JSON representation |
|---|
| ``` { "state": enum (`https://docs.cloud.google.com/dataproc-metastore/docs/reference/rest/v1/projects.locations.services.migrationExecutions#State_1`), "errorMessage": string, "remediation": string } ``` |

| Fields ||
|---|---|
| `state` | ``enum (`https://docs.cloud.google.com/dataproc-metastore/docs/reference/rest/v1/projects.locations.services.migrationExecutions#State_1`)`` Output only. The state of the migration for a resource. |
| `errorMessage` | `string` Description of the error if the state is FAILED. |
| `remediation` | `string` Remediation steps for the error if the state is FAILED. |

## TableReport

Aggregated report at the table level.

| JSON representation |
|---|
| ``` { "table": string, "executionPlan": { object (`https://docs.cloud.google.com/dataproc-metastore/docs/reference/rest/v1/CatalogReport#ExecutionPlan`) }, "executionResult": { object (`https://docs.cloud.google.com/dataproc-metastore/docs/reference/rest/v1/CatalogReport#ExecutionResult`) }, "partitionDiscoveredCount": string, "partitionReport": { object (`https://docs.cloud.google.com/dataproc-metastore/docs/reference/rest/v1/CatalogReport#PartitionReport`) } } ``` |

| Fields ||
|---|---|
| `table` | `string` The name of the table. |
| `executionPlan` | ``object (`https://docs.cloud.google.com/dataproc-metastore/docs/reference/rest/v1/CatalogReport#ExecutionPlan`)`` The discovered intent for the table (what we found and what we planned). |
| `executionResult` | ``object (`https://docs.cloud.google.com/dataproc-metastore/docs/reference/rest/v1/CatalogReport#ExecutionResult`)`` The actual outcome of the table migration. |
| `partitionDiscoveredCount` | `string (https://developers.google.com/discovery/v1/type-format format)` The total number of partitions identified at the source during discovery. This is only relevant for Hive Partitioned tables. |
| `partitionReport` | ``object (`https://docs.cloud.google.com/dataproc-metastore/docs/reference/rest/v1/CatalogReport#PartitionReport`)`` services.report containing the results of partition migration for this table. This is only relevant for Hive Partitioned tables. |

## PartitionReport

Partition migration report for a Hive table.

| JSON representation |
|---|
| ``` { "state": enum (`https://docs.cloud.google.com/dataproc-metastore/docs/reference/rest/v1/State`), "partitionSuccessCount": string, "partitionFailedCount": string } ``` |

| Fields ||
|---|---|
| `state` | ``enum (`https://docs.cloud.google.com/dataproc-metastore/docs/reference/rest/v1/State`)`` Output only. The state of the partition migration. |
| `partitionSuccessCount` | `string (https://developers.google.com/discovery/v1/type-format format)` The number of partitions successfully migrated at the target. |
| `partitionFailedCount` | `string (https://developers.google.com/discovery/v1/type-format format)` The number of partitions that failed to migrate at the target. |