- [Resource: Tool](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.tools#Tool)
  - [JSON representation](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.tools#Tool.SCHEMA_REPRESENTATION)
- [ExtensionTool](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.tools#ExtensionTool)
  - [JSON representation](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.tools#ExtensionTool.SCHEMA_REPRESENTATION)
- [FunctionTool](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.tools#FunctionTool)
  - [JSON representation](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.tools#FunctionTool.SCHEMA_REPRESENTATION)
- [MethodType](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.tools#MethodType)
- [ConnectorTool](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.tools#ConnectorTool)
  - [JSON representation](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.tools#ConnectorTool.SCHEMA_REPRESENTATION)
- [Action](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.tools#Action)
  - [JSON representation](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.tools#Action.SCHEMA_REPRESENTATION)
- [EntityOperation](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.tools#EntityOperation)
  - [JSON representation](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.tools#EntityOperation.SCHEMA_REPRESENTATION)
- [OperationType](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.tools#OperationType)
- [OpenApiTool](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.tools#OpenApiTool)
  - [JSON representation](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.tools#OpenApiTool.SCHEMA_REPRESENTATION)
- [Authentication](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.tools#Authentication)
  - [JSON representation](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.tools#Authentication.SCHEMA_REPRESENTATION)
- [ApiKeyConfig](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.tools#ApiKeyConfig)
  - [JSON representation](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.tools#ApiKeyConfig.SCHEMA_REPRESENTATION)
- [RequestLocation](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.tools#RequestLocation)
- [OAuthConfig](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.tools#OAuthConfig)
  - [JSON representation](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.tools#OAuthConfig.SCHEMA_REPRESENTATION)
- [OauthGrantType](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.tools#OauthGrantType)
- [ServiceAgentAuthConfig](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.tools#ServiceAgentAuthConfig)
  - [JSON representation](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.tools#ServiceAgentAuthConfig.SCHEMA_REPRESENTATION)
- [ServiceAgentAuth](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.tools#ServiceAgentAuth)
- [BearerTokenConfig](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.tools#BearerTokenConfig)
  - [JSON representation](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.tools#BearerTokenConfig.SCHEMA_REPRESENTATION)
- [TLSConfig](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.tools#TLSConfig)
  - [JSON representation](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.tools#TLSConfig.SCHEMA_REPRESENTATION)
- [CACert](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.tools#CACert)
  - [JSON representation](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.tools#CACert.SCHEMA_REPRESENTATION)
- [ServiceDirectoryConfig](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.tools#ServiceDirectoryConfig)
  - [JSON representation](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.tools#ServiceDirectoryConfig.SCHEMA_REPRESENTATION)
- [Methods](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.tools#METHODS_SUMMARY)

## Resource: Tool

Represents a tool.

| JSON representation |
|---|
| ``` { "name": string, "toolKey": string, "displayName": string, "description": string, "actionConfirmationRequirement": { string: enum (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/ConfirmationRequirement`), ... }, "createTime": string, "updateTime": string, // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "extensionSpec": { object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.tools#ExtensionTool`) }, "functionSpec": { object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.tools#FunctionTool`) }, "connectorSpec": { object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.tools#ConnectorTool`) }, "openApiSpec": { object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.tools#OpenApiTool`) } // End of mutually exclusive fields. "satisfiesPzs": boolean, "satisfiesPzi": boolean } ``` |

| Fields ||
|---|---|
| `name` | `string` Output only. Identifier. The resource name of the tool. Format: `projects/<Project ID>/locations/<Location ID>/tools/<Tool ID>`. |
| `toolKey` | `string` Required. A human readable short name of the tool, which should be unique within the project. It should only contain letters, numbers, and underscores, and it will be used by LLM to identify the tool. |
| `displayName` | `string` Optional. A human readable short name of the tool, to be shown on the UI. |
| `description` | `string` Optional. A human readable description of the tool. |
| `actionConfirmationRequirement` | ``map (key: string, value: enum (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/ConfirmationRequirement`))`` Optional. Confirmation requirement for the actions. Each key is an action name in the actionSchemas. If an action's confirmation requirement is unspecified (either the key is not present, or its value is CONFIRMATION_REQUIREMENT_UNSPECIFIED), the requirement is inferred from the action's methodType - confirmation is not required if and only if methodType is GET. An object containing a list of `"key": value` pairs. Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`. |
| `createTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. Creation time of this tool. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `updateTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. Update time of this tool. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| Specification of the Tool. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `extensionSpec (deprecated)` | ``object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.tools#ExtensionTool`)`` > [!WARNING] > This item is deprecated! Vertex extension tool specification. |
| `functionSpec` | ``object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.tools#FunctionTool`)`` Client side executed function specification. |
| `connectorSpec` | ``object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.tools#ConnectorTool`)`` Integration connectors tool specification. |
| `openApiSpec` | ``object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.tools#OpenApiTool`)`` OpenAPI tool. |
| End of mutually exclusive fields. ||
| `satisfiesPzs` | `boolean` Output only. A read only boolean field reflecting Zone Separation status of the tool. If the field is absent, it means the status is unknown. |
| `satisfiesPzi` | `boolean` Output only. A read only boolean field reflecting Zone Isolation status of the tool. If the field is absent, it means the status is unknown. |

## ExtensionTool

An ExtensionTool is a way to use Vertex Extensions as a tool.

| JSON representation |
|---|
| ``` { "name": string } ``` |

| Fields ||
|---|---|
| `name` | `string` Required. The full name of the referenced vertex extension. Format: `projects/{project}/locations/{location}/extensions/{extension}` |

## FunctionTool

A Function tool describes the functions to be invoked on the client side.

| JSON representation |
|---|
| ``` { "inputSchema": { object }, "outputSchema": { object }, "methodType": enum (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.tools#MethodType`) } ``` |

| Fields ||
|---|---|
| `inputSchema` | ``object (`https://protobuf.dev/reference/protobuf/google.protobuf#struct` format)`` Optional. The JSON schema is encapsulated in a `https://protobuf.dev/reference/protobuf/google.protobuf#struct` to describe the input of the function. This input is a JSON object that contains the function's parameters as properties of the object. |
| `outputSchema` | ``object (`https://protobuf.dev/reference/protobuf/google.protobuf#struct` format)`` Optional. The JSON schema is encapsulated in a `https://protobuf.dev/reference/protobuf/google.protobuf#struct` to describe the output of the function. This output is a JSON object that contains the function's parameters as properties of the object. |
| `methodType` | ``enum (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.tools#MethodType`)`` Optional. The method type of the function. If not specified, the default value is GET. |

## MethodType

The method type of the function.

| Enums ||
|---|---|
| `METHOD_TYPE_UNSPECIFIED` | Unspecified. |
| `GET` | GET method. |
| `POST` | POST method. |
| `PUT` | PUT method. |
| `DELETE` | DELETE method. |
| `PATCH` | PATCH method. |

## ConnectorTool

A ConnectorTool enabling using Integration Connectors Connections as tools.

| JSON representation |
|---|
| ``` { "name": string, "actions": [ { object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.tools#Action`) } ] } ``` |

| Fields ||
|---|---|
| `name` | `string` Required. The full resource name of the referenced Integration Connectors Connection. Format: 'projects/\*/locations/\*/connections/\*' |
| `actions[]` | ``object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.tools#Action`)`` Required. Actions for the tool to use. |

## Action

Configuration of a Connection operation for the tool to use.

| 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/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.tools#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. |
| Required. 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/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.tools#EntityOperation`)`` Entity operation configuration for the tool to use. |
| End of mutually exclusive fields. ||

## EntityOperation

Entity CRUD operation specification.

| JSON representation |
|---|
| ``` { "entityId": string, "operation": enum (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.tools#OperationType`) } ``` |

| Fields ||
|---|---|
| `entityId` | `string` Required. ID of the entity. |
| `operation` | ``enum (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.tools#OperationType`)`` Required. Operation to perform on the entity. |

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

## OpenApiTool

An OpenAPI tool is a way to provide the Tool specifications in the Open API schema format.

| JSON representation |
|---|
| ``` { "authentication": { object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.tools#Authentication`) }, "tlsConfig": { object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.tools#TLSConfig`) }, "serviceDirectoryConfig": { object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.tools#ServiceDirectoryConfig`) }, // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "textSchema": string // End of mutually exclusive fields. } ``` |

| Fields ||
|---|---|
| `authentication` | ``object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.tools#Authentication`)`` Optional. Authentication information required by the API. |
| `tlsConfig` | ``object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.tools#TLSConfig`)`` Optional. TLS configuration for the HTTPS verification. |
| `serviceDirectoryConfig` | ``object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.tools#ServiceDirectoryConfig`)`` Optional. Service Directory configuration. |
| Schema representation. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `textSchema` | `string` Required. The OpenAPI schema specified as a text. |
| End of mutually exclusive fields. ||

## Authentication

Authentication information required for API calls

| JSON representation |
|---|
| ``` { // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "apiKeyConfig": { object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.tools#ApiKeyConfig`) }, "oauthConfig": { object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.tools#OAuthConfig`) }, "serviceAgentAuthConfig": { object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.tools#ServiceAgentAuthConfig`) }, "bearerTokenConfig": { object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.tools#BearerTokenConfig`) } // End of mutually exclusive fields. } ``` |

| Fields ||
|---|---|
| The auth configuration. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `apiKeyConfig` | ``object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.tools#ApiKeyConfig`)`` Config for API key auth. |
| `oauthConfig` | ``object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.tools#OAuthConfig`)`` Config for OAuth. |
| `serviceAgentAuthConfig` | ``object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.tools#ServiceAgentAuthConfig`)`` Config for [Diglogflow service agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent) auth. |
| `bearerTokenConfig` | ``object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.tools#BearerTokenConfig`)`` Config for bearer token auth. |
| End of mutually exclusive fields. ||

## ApiKeyConfig

Config for authentication with API key.

| JSON representation |
|---|
| ``` { "keyName": string, "apiKey": string, "secretVersionForApiKey": string, "requestLocation": enum (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.tools#RequestLocation`) } ``` |

| Fields ||
|---|---|
| `keyName` | `string` Required. The parameter name or the header name of the API key. E.g., If the API request is "https://example.com/act?X-Api-Key=", "X-Api-Key" would be the parameter name. |
| `apiKey` | `string` Optional. The API key. If the `secretVersionForApiKey` field is set, this field will be ignored. |
| `secretVersionForApiKey` | `string` Optional. The name of the SecretManager secret version resource storing the API key. If this field is set, the `apiKey` field will be ignored. Format: `projects/{project}/secrets/{secret}/versions/{version}` |
| `requestLocation` | ``enum (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.tools#RequestLocation`)`` Required. Key location in the request. |

## RequestLocation

The location of the API key in the request.

| Enums ||
|---|---|
| `REQUEST_LOCATION_UNSPECIFIED` | Default value. This value is unused. |
| `HEADER` | Represents the key in http header. |
| `QUERY_STRING` | Represents the key in query string. |

## OAuthConfig

Config for authentication with OAuth.

| JSON representation |
|---|
| ``` { "oauthGrantType": enum (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.tools#OauthGrantType`), "clientId": string, "clientSecret": string, "secretVersionForClientSecret": string, "tokenEndpoint": string, "scopes": [ string ] } ``` |

| Fields ||
|---|---|
| `oauthGrantType` | ``enum (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.tools#OauthGrantType`)`` Required. OAuth grant types. |
| `clientId` | `string` Required. The client ID from the OAuth provider. |
| `clientSecret` | `string` Optional. The client secret from the OAuth provider. If the `secretVersionForClientSecret` field is set, this field will be ignored. |
| `secretVersionForClientSecret` | `string` Optional. The name of the SecretManager secret version resource storing the client secret. If this field is set, the `clientSecret` field will be ignored. Format: `projects/{project}/secrets/{secret}/versions/{version}` |
| `tokenEndpoint` | `string` Required. The token endpoint in the OAuth provider to exchange for an access token. |
| `scopes[]` | `string` Optional. The OAuth scopes to grant. |

## OauthGrantType

OAuth grant types. Only [client credential grant](https://oauth.net/2/grant-types/client-credentials) is supported.

| Enums ||
|---|---|
| `OAUTH_GRANT_TYPE_UNSPECIFIED` | Default value. This value is unused. |
| `CLIENT_CREDENTIAL` | Represents the [client credential flow](https://oauth.net/2/grant-types/client-credentials). |

## ServiceAgentAuthConfig

Config for auth using [Dialogflow service agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent).

| JSON representation |
|---|
| ``` { "serviceAgentAuth": enum (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.tools#ServiceAgentAuth`) } ``` |

| Fields ||
|---|---|
| `serviceAgentAuth` | ``enum (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.tools#ServiceAgentAuth`)`` Optional. Indicate the auth token type generated from the [Diglogflow service agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent). The generated token is sent in the Authorization header. |

## ServiceAgentAuth

Indicate the auth token type generated from the [Diaglogflow service agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent).

| Enums ||
|---|---|
| `SERVICE_AGENT_AUTH_UNSPECIFIED` | Service agent auth type unspecified. Default to ID_TOKEN. |
| `ID_TOKEN` | Use [ID token](https://cloud.google.com/docs/authentication/token-types#id) generated from service agent. This can be used to access Cloud Function and Cloud Run after you grant Invoker role to `service-<PROJECT-NUMBER>@gcp-sa-dialogflow.iam.gserviceaccount.com`. |
| `ACCESS_TOKEN` | Use [access token](https://cloud.google.com/docs/authentication/token-types#access) generated from service agent. This can be used to access other Google Cloud APIs after you grant required roles to `service-<PROJECT-NUMBER>@gcp-sa-dialogflow.iam.gserviceaccount.com`. |

## BearerTokenConfig

Config for authentication using bearer token.

| JSON representation |
|---|
| ``` { "token": string, "secretVersionForToken": string } ``` |

| Fields ||
|---|---|
| `token` | `string` Optional. The text token appended to the text `Bearer` to the request Authorization header. [Session parameters reference](https://cloud.google.com/dialogflow/cx/docs/concept/parameter#session-ref) can be used to pass the token dynamically, e.g. `$session.params.parameter-id`. |
| `secretVersionForToken` | `string` Optional. The name of the SecretManager secret version resource storing the Bearer token. If this field is set, the `token` field will be ignored. Format: `projects/{project}/secrets/{secret}/versions/{version}` |

## TLSConfig

The TLS configuration.

| JSON representation |
|---|
| ``` { "caCerts": [ { object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.tools#CACert`) } ] } ``` |

| Fields ||
|---|---|
| `caCerts[]` | ``object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.tools#CACert`)`` Required. Specifies a list of allowed custom CA certificates for HTTPS verification. |

## CACert

The CA certificate.

| JSON representation |
|---|
| ``` { "displayName": string, "cert": string } ``` |

| Fields ||
|---|---|
| `displayName` | `string` Required. The name of the allowed custom CA certificates. This can be used to disambiguate the custom CA certificates. |
| `cert` | `string (https://developers.google.com/discovery/v1/type-format format)` Required. The allowed custom CA certificates (in DER format) for HTTPS verification. This overrides the default SSL trust store. If this is empty or unspecified, Dialogflow will use Google's default trust store to verify certificates. N.B. Make sure the HTTPS server certificates are signed with "subject alt name". For instance a certificate can be self-signed using the following command, openssl x509 -req -days 200 -in example.com.csr \ -signkey example.com.key \ -out example.com.crt \ -extfile <(printf "\nsubjectAltName='DNS:www.example.com'") A base64-encoded string. |

## ServiceDirectoryConfig

Configuration for tools using Service Directory.

| JSON representation |
|---|
| ``` { "service": string } ``` |

| Fields ||
|---|---|
| `service` | `string` Required. The name of [Service Directory](https://cloud.google.com/service-directory) service. Format: `projects/<ProjectID>/locations/<LocationID>/namespaces/<NamespaceID>/services/<ServiceID>`. `LocationID` of the service directory must be the same as the location of the tool. |

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.tools/create` | Creates a tool. |
| ### `https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.tools/delete` | Deletes a tool. |
| ### `https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.tools/get` | Retrieves a tool. |
| ### `https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.tools/list` | Lists tools. |
| ### `https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.tools/patch` | Updates a tool. |