# Google Cloud Ces V1 Client - Class OpenApiTool (0.2.0)

0.2.0 (latest) 0.1.1 Reference documentation and code samples for the Google Cloud Ces V1 Client class OpenApiTool.

A remote API tool defined by an OpenAPI schema.

Generated from protobuf message `google.cloud.ces.v1.OpenApiTool`

## Namespace

Google \\ Cloud \\ Ces \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ open_api_schema` | `string` Required. The OpenAPI schema in JSON or YAML format. |
| `↳ name` | `string` Optional. The name of the tool. If not provided, the name of the tool will be derived from the OpenAPI schema, from `operation.operationId`. |
| `↳ description` | `string` Optional. The description of the tool. If not provided, the description of the tool will be derived from the OpenAPI schema, from `operation.description` or `operation.summary`. |
| `↳ api_authentication` | `https://docs.cloud.google.com/php/docs/reference/cloud-ces/latest/V1.ApiAuthentication` Optional. Authentication information required by the API. |
| `↳ tls_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-ces/latest/V1.TlsConfig` Optional. The TLS configuration. Includes the custom server certificates that the client will trust. |
| `↳ service_directory_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-ces/latest/V1.ServiceDirectoryConfig` Optional. Service Directory configuration. |
| `↳ ignore_unknown_fields` | `bool` Optional. If true, the agent will ignore unknown fields in the API response. |
| `↳ url` | `string` Optional. The server URL of the Open API schema. This field is only set in tools in the environment dependencies during the export process if the schema contains a server url. During the import process, if this url is present in the environment dependencies and the schema has the $env_var placeholder, it will replace the placeholder in the schema. |

### getOpenApiSchema

Required. The OpenAPI schema in JSON or YAML format.

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

### setOpenApiSchema

Required. The OpenAPI schema in JSON or YAML format.

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

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

### getName

Optional. The name of the tool. If not provided, the name of the tool will
be derived from the OpenAPI schema, from `operation.operationId`.

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

### setName

Optional. The name of the tool. If not provided, the name of the tool will
be derived from the OpenAPI schema, from `operation.operationId`.

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

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

### getDescription

Optional. The description of the tool. If not provided, the description of
the tool will be derived from the OpenAPI schema, from
`operation.description` or `operation.summary`.

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

### setDescription

Optional. The description of the tool. If not provided, the description of
the tool will be derived from the OpenAPI schema, from
`operation.description` or `operation.summary`.

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

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

### getApiAuthentication

Optional. Authentication information required by the API.

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

### hasApiAuthentication

### clearApiAuthentication

### setApiAuthentication

Optional. Authentication information required by the API.

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

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

### getTlsConfig

Optional. The TLS configuration. Includes the custom server certificates
that the client will trust.

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

### hasTlsConfig

### clearTlsConfig

### setTlsConfig

Optional. The TLS configuration. Includes the custom server certificates
that the client will trust.

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

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

### getServiceDirectoryConfig

Optional. Service Directory configuration.

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

### hasServiceDirectoryConfig

### clearServiceDirectoryConfig

### setServiceDirectoryConfig

Optional. Service Directory configuration.

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

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

### getIgnoreUnknownFields

Optional. If true, the agent will ignore unknown fields in the API
response.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setIgnoreUnknownFields

Optional. If true, the agent will ignore unknown fields in the API
response.

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

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

### getUrl

Optional. The server URL of the Open API schema.

This field is only set in tools in the environment dependencies during the
export process if the schema contains a server url. During the import
process, if this url is present in the environment dependencies and the
schema has the $env_var placeholder, it will replace the placeholder in the
schema.

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

### setUrl

Optional. The server URL of the Open API schema.

This field is only set in tools in the environment dependencies during the
export process if the schema contains a server url. During the import
process, if this url is present in the environment dependencies and the
schema has the $env_var placeholder, it will replace the placeholder in the
schema.

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

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