- [JSON representation](https://docs.cloud.google.com/gemini-enterprise-cx/cx-agent-studio/reference/rest/v1beta/Action#SCHEMA_REPRESENTATION)
- [Action.EntityOperation](https://docs.cloud.google.com/gemini-enterprise-cx/cx-agent-studio/reference/rest/v1beta/Action#Action.EntityOperation)
  - [JSON representation](https://docs.cloud.google.com/gemini-enterprise-cx/cx-agent-studio/reference/rest/v1beta/Action#Action.EntityOperation.SCHEMA_REPRESENTATION)
- [Action.EntityOperation.OperationType](https://docs.cloud.google.com/gemini-enterprise-cx/cx-agent-studio/reference/rest/v1beta/Action#Action.EntityOperation.OperationType)

Configuration of an Action for the tool to use. Note: This can be either an Action or an Operation. See <https://cloud.google.com/integration-connectors/docs/entities-operation-action> for details.

| JSON representation |
|---|
| ``` { "inputFields": [ string ], "outputFields": [ string ], // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "connectionActionId": string, "entityOperation": { object (`https://docs.cloud.google.com/gemini-enterprise-cx/cx-agent-studio/reference/rest/v1beta/Action#Action.EntityOperation`) } // End of mutually exclusive fields. } ``` |

| Fields ||
|---|---|
| `inputFields[]` | `string` Optional. Entity fields to use as inputs for the operation. If no fields are specified, all fields of the Entity will be used. |
| `outputFields[]` | `string` Optional. Entity fields to return from the operation. If no fields are specified, all fields of the Entity will be returned. |
| Specification for an action to configure for the tool to use. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `connectionActionId` | `string` ID of a Connection action for the tool to use. |
| `entityOperation` | ``object (`https://docs.cloud.google.com/gemini-enterprise-cx/cx-agent-studio/reference/rest/v1beta/Action#Action.EntityOperation`)`` Entity operation configuration for the tool to use. |
| End of mutually exclusive fields. ||

## Action.EntityOperation

Entity CRUD operation specification.

| JSON representation |
|---|
| ``` { "entityId": string, "operation": enum (`https://docs.cloud.google.com/gemini-enterprise-cx/cx-agent-studio/reference/rest/v1beta/Action#Action.EntityOperation.OperationType`) } ``` |

| Fields ||
|---|---|
| `entityId` | `string` Required. ID of the entity. |
| `operation` | ``enum (`https://docs.cloud.google.com/gemini-enterprise-cx/cx-agent-studio/reference/rest/v1beta/Action#Action.EntityOperation.OperationType`)`` Required. Operation to perform on the entity. |

## Action.EntityOperation.OperationType

The operation to perform on the entity.

| Enums ||
|---|---|
| `OPERATION_TYPE_UNSPECIFIED` | Operation type unspecified. Invalid, ConnectorTool create/update will fail. |
| `LIST` | List operation. |
| `GET` | Get operation. |
| `CREATE` | Create operation. |
| `UPDATE` | Update operation. |
| `DELETE` | Delete operation. |