# Class Condition (0.16.1)

0.16.1 (latest) 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.11.0 0.10.19 0.9.1 0.8.1 0.7.1 0.6.0 0.5.0 0.4.2 0.3.0 0.2.1 0.1.0

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

Defines a status condition for a resource.

This message has `oneof`_ fields (mutually exclusive fields).
For each oneof, at most one member field can be set at the same time.
Setting any member of the oneof automatically clears all other
members.

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

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `type_` | `str` type is used to communicate the status of the reconciliation process. See also: https://github.com/knative/serving/blob/main/docs/spec/errors.md#error-conditions-and-reporting Types common to all resources include: - "Ready": True when the Resource is ready. |
| `state` | `https://docs.cloud.google.com/python/docs/reference/run/latest/google.cloud.run_v2.types.Condition.State` State of the condition. |
| `message` | `str` Human readable message indicating details about the current status. |
| `last_transition_time` | `google.protobuf.timestamp_pb2.Timestamp` Last time the condition transitioned from one status to another. |
| `severity` | `https://docs.cloud.google.com/python/docs/reference/run/latest/google.cloud.run_v2.types.Condition.Severity` How to interpret failures of this condition, one of Error, Warning, Info |
| `reason` | `https://docs.cloud.google.com/python/docs/reference/run/latest/google.cloud.run_v2.types.Condition.CommonReason` Output only. A common (service-level) reason for this condition. This field is a member of `oneof`_ `reasons`. |
| `revision_reason` | `https://docs.cloud.google.com/python/docs/reference/run/latest/google.cloud.run_v2.types.Condition.RevisionReason` Output only. A reason for the revision condition. This field is a member of `oneof`_ `reasons`. |
| `execution_reason` | `https://docs.cloud.google.com/python/docs/reference/run/latest/google.cloud.run_v2.types.Condition.ExecutionReason` Output only. A reason for the execution condition. This field is a member of `oneof`_ `reasons`. |

## Classes

### CommonReason

    CommonReason(value)

Reasons common to all types of conditions.

### ExecutionReason

    ExecutionReason(value)

Reasons specific to Execution resource.

### RevisionReason

    RevisionReason(value)

Reasons specific to Revision resource.

### Severity

    Severity(value)

Represents the severity of the condition failures.

### State

    State(value)

Represents the possible Condition states.