# ValidationCheck

- [JSON representation](https://docs.cloud.google.com/kubernetes-engine/distributed-cloud/reference/on-prem-api/rest/v1/ValidationCheck#SCHEMA_REPRESENTATION)
- [Options](https://docs.cloud.google.com/kubernetes-engine/distributed-cloud/reference/on-prem-api/rest/v1/ValidationCheck#Options)
- [ValidationCheckStatus](https://docs.cloud.google.com/kubernetes-engine/distributed-cloud/reference/on-prem-api/rest/v1/ValidationCheck#ValidationCheckStatus)
  - [JSON representation](https://docs.cloud.google.com/kubernetes-engine/distributed-cloud/reference/on-prem-api/rest/v1/ValidationCheck#ValidationCheckStatus.SCHEMA_REPRESENTATION)
- [ValidationCheckResult](https://docs.cloud.google.com/kubernetes-engine/distributed-cloud/reference/on-prem-api/rest/v1/ValidationCheck#ValidationCheckResult)
  - [JSON representation](https://docs.cloud.google.com/kubernetes-engine/distributed-cloud/reference/on-prem-api/rest/v1/ValidationCheck#ValidationCheckResult.SCHEMA_REPRESENTATION)
- [State](https://docs.cloud.google.com/kubernetes-engine/distributed-cloud/reference/on-prem-api/rest/v1/ValidationCheck#State)
- [Scenario](https://docs.cloud.google.com/kubernetes-engine/distributed-cloud/reference/on-prem-api/rest/v1/ValidationCheck#Scenario)

ValidationCheck represents the result of preflight check.

| JSON representation |
|---|
| ``` { "option": enum (`https://docs.cloud.google.com/kubernetes-engine/distributed-cloud/reference/on-prem-api/rest/v1/ValidationCheck#Options`), "status": { object (`https://docs.cloud.google.com/kubernetes-engine/distributed-cloud/reference/on-prem-api/rest/v1/ValidationCheck#ValidationCheckStatus`) }, "scenario": enum (`https://docs.cloud.google.com/kubernetes-engine/distributed-cloud/reference/on-prem-api/rest/v1/ValidationCheck#Scenario`) } ``` |

| Fields ||
|---|---|
| `option` | ``enum (`https://docs.cloud.google.com/kubernetes-engine/distributed-cloud/reference/on-prem-api/rest/v1/ValidationCheck#Options`)`` Options used for the validation check |
| `status` | ``object (`https://docs.cloud.google.com/kubernetes-engine/distributed-cloud/reference/on-prem-api/rest/v1/ValidationCheck#ValidationCheckStatus`)`` Output only. The detailed validation check status. |
| `scenario` | ``enum (`https://docs.cloud.google.com/kubernetes-engine/distributed-cloud/reference/on-prem-api/rest/v1/ValidationCheck#Scenario`)`` Output only. The scenario when the preflight checks were run. |

## Options

| Enums ||
|---|---|
| `OPTIONS_UNSPECIFIED` | Default value. Standard preflight validation check will be used. |
| `SKIP_VALIDATION_CHECK_BLOCKING` | Prevent failed preflight checks from failing. |
| `SKIP_VALIDATION_ALL` | Skip all preflight check validations. |

## ValidationCheckStatus

ValidationCheckStatus defines the detailed validation check status.

| JSON representation |
|---|
| ``` { "result": [ { object (`https://docs.cloud.google.com/kubernetes-engine/distributed-cloud/reference/on-prem-api/rest/v1/ValidationCheck#ValidationCheckResult`) } ] } ``` |

| Fields ||
|---|---|
| `result[]` | ``object (`https://docs.cloud.google.com/kubernetes-engine/distributed-cloud/reference/on-prem-api/rest/v1/ValidationCheck#ValidationCheckResult`)`` Individual checks which failed as part of the Preflight check execution. |

## ValidationCheckResult

ValidationCheckResult defines the details about the validation check.

| JSON representation |
|---|
| ``` { "state": enum (`https://docs.cloud.google.com/kubernetes-engine/distributed-cloud/reference/on-prem-api/rest/v1/ValidationCheck#State`), "description": string, "category": string, "reason": string, "details": string } ``` |

| Fields ||
|---|---|
| `state` | ``enum (`https://docs.cloud.google.com/kubernetes-engine/distributed-cloud/reference/on-prem-api/rest/v1/ValidationCheck#State`)`` The validation check state. |
| `description` | `string` The description of the validation check. |
| `category` | `string` The category of the validation. |
| `reason` | `string` A human-readable message of the check failure. |
| `details` | `string` Detailed failure information, which might be unformatted. |

## State

| Enums ||
|---|---|
| `STATE_UNKNOWN` | The default value. The check result is unknown. |
| `STATE_FAILURE` | The check failed. |
| `STATE_SKIPPED` | The check was skipped. |
| `STATE_FATAL` | The check itself failed to complete. |
| `STATE_WARNING` | The check encountered a warning. |

## Scenario

| Enums ||
|---|---|
| `SCENARIO_UNSPECIFIED` | Default value. This value is unused. |
| `CREATE` | The validation check occurred during a create flow. |
| `UPDATE` | The validation check occurred during an update flow. |