0.5.3 (latest) 0.4.4 0.3.0 0.2.1 0.1.4 Reference documentation and code samples for the Google Cloud Api Hub V1 Client class Curation.

A curation resource in the API Hub.

Generated from protobuf message `google.cloud.apihub.v1.Curation`

## Namespace

Google \\ Cloud \\ ApiHub \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Identifier. The name of the curation. Format: `projects/{project}/locations/{location}/curations/{curation}` |
| `↳ display_name` | `string` Required. The display name of the curation. |
| `↳ description` | `string` Optional. The description of the curation. |
| `↳ endpoint` | `https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.Endpoint` Required. The endpoint to be triggered for curation. |
| `↳ plugin_instance_actions` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.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` | `int` Output only. The last execution state of the curation. |
| `↳ last_execution_error_code` | `int` 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` | `string` Output only. Error message describing the failure, if any, during the last execution of the curation. |
| `↳ create_time` | `Google\Protobuf\Timestamp` Output only. The time at which the curation was created. |
| `↳ update_time` | `Google\Protobuf\Timestamp` Output only. The time at which the curation was last updated. |

### getName

Identifier. The name of the curation.

Format:
`projects/{project}/locations/{location}/curations/{curation}`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setName

Identifier. The name of the curation.

Format:
`projects/{project}/locations/{location}/curations/{curation}`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getDisplayName

Required. The display name of the curation.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setDisplayName

Required. The display name of the curation.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getDescription

Optional. The description of the curation.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setDescription

Optional. The description of the curation.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getEndpoint

Required. The endpoint to be triggered for curation.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.Endpoint|null` |   |

### hasEndpoint

### clearEndpoint

### setEndpoint

Required. The endpoint to be triggered for curation.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.Endpoint` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getPluginInstanceActions

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.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.Curation.PluginInstanceActionID>` |   |

### setPluginInstanceActions

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.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.Curation.PluginInstanceActionID>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getLastExecutionState

Output only. The last execution state of the curation.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [LastExecutionState](https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.Curation.LastExecutionState). |

### setLastExecutionState

Output only. The last execution state of the curation.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [LastExecutionState](https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.Curation.LastExecutionState). |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getLastExecutionErrorCode

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.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [ErrorCode](https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.Curation.ErrorCode). |

### setLastExecutionErrorCode

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.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [ErrorCode](https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.Curation.ErrorCode). |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getLastExecutionErrorMessage

Output only. Error message describing the failure, if any, during the last
execution of the curation.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setLastExecutionErrorMessage

Output only. Error message describing the failure, if any, during the last
execution of the curation.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getCreateTime

Output only. The time at which the curation was created.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Timestamp|null` |   |

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. The time at which the curation was created.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Protobuf\Timestamp` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getUpdateTime

Output only. The time at which the curation was last updated.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Timestamp|null` |   |

### hasUpdateTime

### clearUpdateTime

### setUpdateTime

Output only. The time at which the curation was last updated.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Protobuf\Timestamp` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |