|
23 | 23 | use Google\Service\Connectors\ExchangeAuthCodeResponse; |
24 | 24 | use Google\Service\Connectors\ExecuteSqlQueryRequest; |
25 | 25 | use Google\Service\Connectors\ExecuteSqlQueryResponse; |
| 26 | +use Google\Service\Connectors\GenerateCustomToolspecRequest; |
| 27 | +use Google\Service\Connectors\GenerateCustomToolspecResponse; |
| 28 | +use Google\Service\Connectors\ListCustomToolNamesResponse; |
26 | 29 | use Google\Service\Connectors\ListToolsPostRequest; |
27 | 30 | use Google\Service\Connectors\ListToolsResponse; |
28 | 31 | use Google\Service\Connectors\RefreshAccessTokenRequest; |
@@ -112,6 +115,38 @@ public function executeSqlQuery($connection, ExecuteSqlQueryRequest $postBody, $ |
112 | 115 | $params = array_merge($params, $optParams); |
113 | 116 | return $this->call('executeSqlQuery', [$params], ExecuteSqlQueryResponse::class); |
114 | 117 | } |
| 118 | + /** |
| 119 | + * Generate toolspec override for the given list of toolNames. |
| 120 | + * (connections.generateConnectionToolspecOverride) |
| 121 | + * |
| 122 | + * @param string $name Required. Resource name of the Connection. Format: |
| 123 | + * projects/{project}/locations/{location}/connections/{connection} |
| 124 | + * @param GenerateCustomToolspecRequest $postBody |
| 125 | + * @param array $optParams Optional parameters. |
| 126 | + * @return GenerateCustomToolspecResponse |
| 127 | + * @throws \Google\Service\Exception |
| 128 | + */ |
| 129 | + public function generateConnectionToolspecOverride($name, GenerateCustomToolspecRequest $postBody, $optParams = []) |
| 130 | + { |
| 131 | + $params = ['name' => $name, 'postBody' => $postBody]; |
| 132 | + $params = array_merge($params, $optParams); |
| 133 | + return $this->call('generateConnectionToolspecOverride', [$params], GenerateCustomToolspecResponse::class); |
| 134 | + } |
| 135 | + /** |
| 136 | + * Lists custom tool names. (connections.listCustomToolNames) |
| 137 | + * |
| 138 | + * @param string $name Required. Resource name of the Connection. Format: |
| 139 | + * projects/{project}/locations/{location}/connections/{connection} |
| 140 | + * @param array $optParams Optional parameters. |
| 141 | + * @return ListCustomToolNamesResponse |
| 142 | + * @throws \Google\Service\Exception |
| 143 | + */ |
| 144 | + public function listCustomToolNames($name, $optParams = []) |
| 145 | + { |
| 146 | + $params = ['name' => $name]; |
| 147 | + $params = array_merge($params, $optParams); |
| 148 | + return $this->call('listCustomToolNames', [$params], ListCustomToolNamesResponse::class); |
| 149 | + } |
115 | 150 | /** |
116 | 151 | * RefreshAccessToken exchanges the OAuth refresh token (and other necessary |
117 | 152 | * data) for a new access token (and new associated credentials). |
|
0 commit comments