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 PluginInstanceAction.

PluginInstanceAction represents an action which can be executed in the plugin
instance.

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

## Namespace

Google \\ Cloud \\ ApiHub \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ hub_instance_action` | `https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.ExecutionStatus` Optional. The execution information for the plugin instance action done corresponding to an API hub instance. |
| `↳ action_id` | `string` Required. This should map to one of the [action id](https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.PluginActionConfig#_Google_Cloud_ApiHub_V1_PluginActionConfig__getId__) specified in [actions_config](https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.Plugin#_Google_Cloud_ApiHub_V1_Plugin__getActionsConfig__) in the plugin. |
| `↳ state` | `int` Output only. The current state of the plugin action in the plugin instance. |
| `↳ schedule_cron_expression` | `string` Optional. The schedule for this plugin instance action. This can only be set if the plugin supports API_HUB_SCHEDULE_TRIGGER mode for this action. |
| `↳ curation_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.CurationConfig` Optional. This configuration should be provided if the plugin action is publishing data to API hub curate layer. |
| `↳ schedule_time_zone` | `string` Optional. The time zone for the schedule cron expression. If not provided, UTC will be used. |
| `↳ service_account` | `string` Optional. The service account used to publish data. Note, the service account will only be accepted for non GCP plugins like OPDK. |
| `↳ resource_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.PluginInstanceAction.ResourceConfig` Output only. The configuration of resources created for a given plugin instance action. Note these will be returned only in case of Non-GCP plugins like OPDK. |

### getHubInstanceAction

Optional. The execution information for the plugin instance action done
corresponding to an API hub instance.

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

### hasHubInstanceAction

### setHubInstanceAction

Optional. The execution information for the plugin instance action done
corresponding to an API hub instance.

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

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

### getActionId

Required. This should map to one of the [action
id](https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.PluginActionConfig#_Google_Cloud_ApiHub_V1_PluginActionConfig__getId__) specified in
[actions_config](https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.Plugin#_Google_Cloud_ApiHub_V1_Plugin__getActionsConfig__) in the
plugin.

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

### setActionId

Required. This should map to one of the [action
id](https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.PluginActionConfig#_Google_Cloud_ApiHub_V1_PluginActionConfig__getId__) specified in
[actions_config](https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.Plugin#_Google_Cloud_ApiHub_V1_Plugin__getActionsConfig__) in the
plugin.

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

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

### getState

Output only. The current state of the plugin action in the plugin instance.

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

### setState

Output only. The current state of the plugin action in the plugin instance.

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

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

### getScheduleCronExpression

Optional. The schedule for this plugin instance action. This can only be
set if the plugin supports API_HUB_SCHEDULE_TRIGGER mode for this action.

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

### setScheduleCronExpression

Optional. The schedule for this plugin instance action. This can only be
set if the plugin supports API_HUB_SCHEDULE_TRIGGER mode for this action.

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

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

### getCurationConfig

Optional. This configuration should be provided if the plugin action is
publishing data to API hub curate layer.

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

### hasCurationConfig

### clearCurationConfig

### setCurationConfig

Optional. This configuration should be provided if the plugin action is
publishing data to API hub curate layer.

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

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

### getScheduleTimeZone

Optional. The time zone for the schedule cron expression. If not provided,
UTC will be used.

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

### setScheduleTimeZone

Optional. The time zone for the schedule cron expression. If not provided,
UTC will be used.

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

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

### getServiceAccount

Optional. The service account used to publish data. Note, the service
account will only be accepted for non GCP plugins like OPDK.

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

### setServiceAccount

Optional. The service account used to publish data. Note, the service
account will only be accepted for non GCP plugins like OPDK.

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

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

### getResourceConfig

Output only. The configuration of resources created for a given plugin
instance action. Note these will be returned only in case of Non-GCP
plugins like OPDK.

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

### hasResourceConfig

### clearResourceConfig

### setResourceConfig

Output only. The configuration of resources created for a given plugin
instance action. Note these will be returned only in case of Non-GCP
plugins like OPDK.

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

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

### getActionStatus

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