# MigrationWarning

- [JSON representation](https://docs.cloud.google.com/migrate/virtual-machines/docs/5.0/reference/rest/v1alpha1/MigrationWarning#SCHEMA_REPRESENTATION)
- [WarningCode](https://docs.cloud.google.com/migrate/virtual-machines/docs/5.0/reference/rest/v1alpha1/MigrationWarning#WarningCode)
- [LocalizedMessage](https://docs.cloud.google.com/migrate/virtual-machines/docs/5.0/reference/rest/v1alpha1/MigrationWarning#LocalizedMessage)
  - [JSON representation](https://docs.cloud.google.com/migrate/virtual-machines/docs/5.0/reference/rest/v1alpha1/MigrationWarning#LocalizedMessage.SCHEMA_REPRESENTATION)
- [Link](https://docs.cloud.google.com/migrate/virtual-machines/docs/5.0/reference/rest/v1alpha1/MigrationWarning#Link)
  - [JSON representation](https://docs.cloud.google.com/migrate/virtual-machines/docs/5.0/reference/rest/v1alpha1/MigrationWarning#Link.SCHEMA_REPRESENTATION)

Represents migration resource warning information that can be used with google.rpc.Status message. MigrationWarning is used to present the user with warning information in migration operations.

| JSON representation |
|---|
| ``` { "code": enum (`https://docs.cloud.google.com/migrate/virtual-machines/docs/5.0/reference/rest/v1alpha1/MigrationWarning#WarningCode`), "warningMessage": { object (`https://docs.cloud.google.com/migrate/virtual-machines/docs/5.0/reference/rest/v1alpha1/MigrationWarning#LocalizedMessage`) }, "actionItem": { object (`https://docs.cloud.google.com/migrate/virtual-machines/docs/5.0/reference/rest/v1alpha1/MigrationWarning#LocalizedMessage`) }, "helpLinks": [ { object (`https://docs.cloud.google.com/migrate/virtual-machines/docs/5.0/reference/rest/v1alpha1/MigrationWarning#Link`) } ], "warningTime": string } ``` |

| Fields ||
|---|---|
| `code` | ``enum (`https://docs.cloud.google.com/migrate/virtual-machines/docs/5.0/reference/rest/v1alpha1/MigrationWarning#WarningCode`)`` The warning code. |
| `warningMessage` | ``object (`https://docs.cloud.google.com/migrate/virtual-machines/docs/5.0/reference/rest/v1alpha1/MigrationWarning#LocalizedMessage`)`` Output only. The localized warning message. |
| `actionItem` | ``object (`https://docs.cloud.google.com/migrate/virtual-machines/docs/5.0/reference/rest/v1alpha1/MigrationWarning#LocalizedMessage`)`` Output only. Suggested action for solving the warning. |
| `helpLinks[]` | ``object (`https://docs.cloud.google.com/migrate/virtual-machines/docs/5.0/reference/rest/v1alpha1/MigrationWarning#Link`)`` Output only. URL(s) pointing to additional information on handling the current warning. |
| `warningTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` The time the warning occurred. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: `"2014-10-02T15:01:23Z"` and `"2014-10-02T15:01:23.045123456Z"`. |

## WarningCode

Represents possible warning codes.

| Enums ||
|---|---|
| `WARNING_CODE_UNSPECIFIED` | Default value. This value is not used. |
| `ADAPTATION_WARNING` | A warning originated from OS Adaptation. |

## LocalizedMessage

Provides a localized error message that is safe to return to the user which can be attached to an RPC error.

| JSON representation |
|---|
| ``` { "locale": string, "message": string } ``` |

| Fields ||
|---|---|
| `locale` | `string` The locale used following the specification defined at <https://www.rfc-editor.org/rfc/bcp/bcp47.txt>. Examples are: "en-US", "fr-CH", "es-MX" |
| `message` | `string` The localized error message in the above locale. |

## Link

Describes a URL link.

| JSON representation |
|---|
| ``` { "description": string, "url": string } ``` |

| Fields ||
|---|---|
| `description` | `string` Describes what the link offers. |
| `url` | `string` The URL of the link. |