# REST Resource: projects.locations.codeToolsSettings

- [Resource: CodeToolsSetting](https://docs.cloud.google.com/gemini/docs/api/reference/rest/v1/projects.locations.codeToolsSettings#CodeToolsSetting)
  - [JSON representation](https://docs.cloud.google.com/gemini/docs/api/reference/rest/v1/projects.locations.codeToolsSettings#CodeToolsSetting.SCHEMA_REPRESENTATION)
- [ToolSetting](https://docs.cloud.google.com/gemini/docs/api/reference/rest/v1/projects.locations.codeToolsSettings#ToolSetting)
  - [JSON representation](https://docs.cloud.google.com/gemini/docs/api/reference/rest/v1/projects.locations.codeToolsSettings#ToolSetting.SCHEMA_REPRESENTATION)
- [ConfigItem](https://docs.cloud.google.com/gemini/docs/api/reference/rest/v1/projects.locations.codeToolsSettings#ConfigItem)
  - [JSON representation](https://docs.cloud.google.com/gemini/docs/api/reference/rest/v1/projects.locations.codeToolsSettings#ConfigItem.SCHEMA_REPRESENTATION)
- [Methods](https://docs.cloud.google.com/gemini/docs/api/reference/rest/v1/projects.locations.codeToolsSettings#METHODS_SUMMARY)

## Resource: CodeToolsSetting

Message describing CodeToolsSetting object

| JSON representation |
|---|
| ``` { "name": string, "createTime": string, "updateTime": string, "labels": { string: string, ... }, "enabledTool": [ { object (`https://docs.cloud.google.com/gemini/docs/api/reference/rest/v1/projects.locations.codeToolsSettings#ToolSetting`) } ] } ``` |

| Fields ||
|---|---|
| `name` | `string` Identifier. Name of the resource. Format:projects/{project}/locations/{location}/codeToolsSettings/{codeToolsSetting} |
| `createTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. \[Output only\] Create time stamp. 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. \[Output only\] Update time stamp. 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"`. |
| `labels` | `map (key: string, value: string)` Optional. Labels as key value pairs. An object containing a list of `"key": value` pairs. Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`. |
| `enabledTool[]` | ``object (`https://docs.cloud.google.com/gemini/docs/api/reference/rest/v1/projects.locations.codeToolsSettings#ToolSetting`)`` Required. Represents the full set of enabled tools. |

## ToolSetting

Represents a single enabled tool.

| JSON representation |
|---|
| ``` { "accountConnector": string, "handle": string, "tool": string, "config": [ { object (`https://docs.cloud.google.com/gemini/docs/api/reference/rest/v1/projects.locations.codeToolsSettings#ConfigItem`) } ], "uriOverride": string } ``` |

| Fields ||
|---|---|
| `accountConnector` | `string` Optional. Link to the Dev Connect Account Connector that holds the user credentials. projects/{project}/locations/{location}/accountConnectors/{account_connector_id} |
| `handle` | `string` Required. Handle used to invoke the tool. |
| `tool` | `string` Required. Link to the Tool |
| `config[]` | ``object (`https://docs.cloud.google.com/gemini/docs/api/reference/rest/v1/projects.locations.codeToolsSettings#ConfigItem`)`` Optional. Configuration parameters for the tool. |
| `uriOverride` | `string` Optional. Overridden URI, if allowed by Tool. |

## ConfigItem

Message for a single configuration item.

| JSON representation |
|---|
| ``` { "key": string, "value": string } ``` |

| Fields ||
|---|---|
| `key` | `string` Required. Key of the configuration item. |
| `value` | `string` Required. Value of the configuration item. |

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/gemini/docs/api/reference/rest/v1/projects.locations.codeToolsSettings/create` | Creates a new CodeToolsSetting in a given project and location. |
| ### `https://docs.cloud.google.com/gemini/docs/api/reference/rest/v1/projects.locations.codeToolsSettings/delete` | Deletes a single CodeToolsSetting. |
| ### `https://docs.cloud.google.com/gemini/docs/api/reference/rest/v1/projects.locations.codeToolsSettings/get` | Gets details of a single CodeToolsSetting. |
| ### `https://docs.cloud.google.com/gemini/docs/api/reference/rest/v1/projects.locations.codeToolsSettings/list` | Lists CodeToolsSettings in a given project and location. |
| ### `https://docs.cloud.google.com/gemini/docs/api/reference/rest/v1/projects.locations.codeToolsSettings/patch` | Updates the parameters of a single CodeToolsSetting. |