|
57 | 57 | from .resources import ( |
58 | 58 | apps, |
59 | 59 | auth, |
| 60 | + search, |
60 | 61 | vaults, |
61 | 62 | proxies, |
62 | 63 | api_keys, |
|
85 | 86 | from .resources.deployments import DeploymentsResource, AsyncDeploymentsResource |
86 | 87 | from .resources.invocations import InvocationsResource, AsyncInvocationsResource |
87 | 88 | from .resources.browser_pools import BrowserPoolsResource, AsyncBrowserPoolsResource |
| 89 | + from .resources.search.search import SearchResource, AsyncSearchResource |
88 | 90 | from .resources.vaults.vaults import VaultsResource, AsyncVaultsResource |
89 | 91 | from .resources.browsers.browsers import BrowsersResource, AsyncBrowsersResource |
90 | 92 | from .resources.projects.projects import ProjectsResource, AsyncProjectsResource |
@@ -348,6 +350,13 @@ def credential_providers(self) -> CredentialProvidersResource: |
348 | 350 |
|
349 | 351 | return CredentialProvidersResource(self) |
350 | 352 |
|
| 353 | + @cached_property |
| 354 | + def search(self) -> SearchResource: |
| 355 | + """Search the web and retrieve content for selected results.""" |
| 356 | + from .resources.search import SearchResource |
| 357 | + |
| 358 | + return SearchResource(self) |
| 359 | + |
351 | 360 | @cached_property |
352 | 361 | def with_raw_response(self) -> KernelWithRawResponse: |
353 | 362 | return KernelWithRawResponse(self) |
@@ -752,6 +761,13 @@ def credential_providers(self) -> AsyncCredentialProvidersResource: |
752 | 761 |
|
753 | 762 | return AsyncCredentialProvidersResource(self) |
754 | 763 |
|
| 764 | + @cached_property |
| 765 | + def search(self) -> AsyncSearchResource: |
| 766 | + """Search the web and retrieve content for selected results.""" |
| 767 | + from .resources.search import AsyncSearchResource |
| 768 | + |
| 769 | + return AsyncSearchResource(self) |
| 770 | + |
755 | 771 | @cached_property |
756 | 772 | def with_raw_response(self) -> AsyncKernelWithRawResponse: |
757 | 773 | return AsyncKernelWithRawResponse(self) |
@@ -1058,6 +1074,13 @@ def credential_providers(self) -> credential_providers.CredentialProvidersResour |
1058 | 1074 |
|
1059 | 1075 | return CredentialProvidersResourceWithRawResponse(self._client.credential_providers) |
1060 | 1076 |
|
| 1077 | + @cached_property |
| 1078 | + def search(self) -> search.SearchResourceWithRawResponse: |
| 1079 | + """Search the web and retrieve content for selected results.""" |
| 1080 | + from .resources.search import SearchResourceWithRawResponse |
| 1081 | + |
| 1082 | + return SearchResourceWithRawResponse(self._client.search) |
| 1083 | + |
1061 | 1084 |
|
1062 | 1085 | class AsyncKernelWithRawResponse: |
1063 | 1086 | _client: AsyncKernel |
@@ -1196,6 +1219,13 @@ def credential_providers(self) -> credential_providers.AsyncCredentialProvidersR |
1196 | 1219 |
|
1197 | 1220 | return AsyncCredentialProvidersResourceWithRawResponse(self._client.credential_providers) |
1198 | 1221 |
|
| 1222 | + @cached_property |
| 1223 | + def search(self) -> search.AsyncSearchResourceWithRawResponse: |
| 1224 | + """Search the web and retrieve content for selected results.""" |
| 1225 | + from .resources.search import AsyncSearchResourceWithRawResponse |
| 1226 | + |
| 1227 | + return AsyncSearchResourceWithRawResponse(self._client.search) |
| 1228 | + |
1199 | 1229 |
|
1200 | 1230 | class KernelWithStreamedResponse: |
1201 | 1231 | _client: Kernel |
@@ -1334,6 +1364,13 @@ def credential_providers(self) -> credential_providers.CredentialProvidersResour |
1334 | 1364 |
|
1335 | 1365 | return CredentialProvidersResourceWithStreamingResponse(self._client.credential_providers) |
1336 | 1366 |
|
| 1367 | + @cached_property |
| 1368 | + def search(self) -> search.SearchResourceWithStreamingResponse: |
| 1369 | + """Search the web and retrieve content for selected results.""" |
| 1370 | + from .resources.search import SearchResourceWithStreamingResponse |
| 1371 | + |
| 1372 | + return SearchResourceWithStreamingResponse(self._client.search) |
| 1373 | + |
1337 | 1374 |
|
1338 | 1375 | class AsyncKernelWithStreamedResponse: |
1339 | 1376 | _client: AsyncKernel |
@@ -1472,6 +1509,13 @@ def credential_providers(self) -> credential_providers.AsyncCredentialProvidersR |
1472 | 1509 |
|
1473 | 1510 | return AsyncCredentialProvidersResourceWithStreamingResponse(self._client.credential_providers) |
1474 | 1511 |
|
| 1512 | + @cached_property |
| 1513 | + def search(self) -> search.AsyncSearchResourceWithStreamingResponse: |
| 1514 | + """Search the web and retrieve content for selected results.""" |
| 1515 | + from .resources.search import AsyncSearchResourceWithStreamingResponse |
| 1516 | + |
| 1517 | + return AsyncSearchResourceWithStreamingResponse(self._client.search) |
| 1518 | + |
1475 | 1519 |
|
1476 | 1520 | Client = Kernel |
1477 | 1521 |
|
|
0 commit comments