# Class Curation (0.7.0)

0.7.0 (latest) 0.6.0 0.5.0 0.4.0 0.3.0 0.2.7

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

A curation resource in the API Hub.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `name` | `str` Identifier. The name of the curation. Format: `projects/{project}/locations/{location}/curations/{curation}` |
| `display_name` | `str` Required. The display name of the curation. |
| `description` | `str` Optional. The description of the curation. |
| `endpoint` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-apihub/latest/google.cloud.apihub_v1.types.Endpoint` Required. The endpoint to be triggered for curation. |
| `plugin_instance_actions` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/google-cloud-apihub/latest/google.cloud.apihub_v1.types.Curation.PluginInstanceActionID]` Output only. The plugin instances and associated actions that are using the curation. Note: A particular curation could be used by multiple plugin instances or multiple actions in a plugin instance. |
| `last_execution_state` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-apihub/latest/google.cloud.apihub_v1.types.Curation.LastExecutionState` Output only. The last execution state of the curation. |
| `last_execution_error_code` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-apihub/latest/google.cloud.apihub_v1.types.Curation.ErrorCode` Output only. The error code of the last execution of the curation. The error code is populated only when the last execution state is failed. |
| `last_execution_error_message` | `str` Output only. Error message describing the failure, if any, during the last execution of the curation. |
| `create_time` | `google.protobuf.timestamp_pb2.Timestamp` Output only. The time at which the curation was created. |
| `update_time` | `google.protobuf.timestamp_pb2.Timestamp` Output only. The time at which the curation was last updated. |

## Classes

### ErrorCode

    ErrorCode(value)

The error codes for failed executions.

### LastExecutionState

    LastExecutionState(value)

The state of the last execution of the curation.

### PluginInstanceActionID

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

The plugin instance and associated action that is using the
curation.