# Class Warning (0.12.0)

0.12.0 (latest) 0.11.0 0.4.0 0.3.0 0.2.0 0.1.8

    Warning(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Informational warning message.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `code` | `str` \[Output Only\] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Check the Code enum for the list of possible values. This field is a member of `oneof`_ `_code`. |
| `data` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/google-cloud-compute-v1beta/latest/google.cloud.compute_v1beta.types.Data]` \[Output Only\] Metadata about this warning in key: value format. For example: "data": \[ { "key": "scope", "value": "zones/us-east1-d" } |
| `message` | `str` \[Output Only\] A human-readable description of the warning code. This field is a member of `oneof`_ `_message`. |

## Classes

### Code

    Code(value)

\[Output Only\] A warning code, if applicable. For example, Compute
Engine returns NO_RESULTS_ON_PAGE if there are no results in the
response.