|
21 | 21 | ) |
22 | 22 | from ._utils import is_given, get_async_library |
23 | 23 | from ._version import __version__ |
24 | | -from .resources import browsers |
| 24 | +from .resources import browsers, deployments, invocations |
25 | 25 | from ._streaming import Stream as Stream, AsyncStream as AsyncStream |
26 | 26 | from ._exceptions import KernelError, APIStatusError |
27 | 27 | from ._base_client import ( |
|
50 | 50 |
|
51 | 51 |
|
52 | 52 | class Kernel(SyncAPIClient): |
| 53 | + deployments: deployments.DeploymentsResource |
53 | 54 | apps: apps.AppsResource |
| 55 | + invocations: invocations.InvocationsResource |
54 | 56 | browsers: browsers.BrowsersResource |
55 | 57 | with_raw_response: KernelWithRawResponse |
56 | 58 | with_streaming_response: KernelWithStreamedResponse |
@@ -133,7 +135,9 @@ def __init__( |
133 | 135 | _strict_response_validation=_strict_response_validation, |
134 | 136 | ) |
135 | 137 |
|
| 138 | + self.deployments = deployments.DeploymentsResource(self) |
136 | 139 | self.apps = apps.AppsResource(self) |
| 140 | + self.invocations = invocations.InvocationsResource(self) |
137 | 141 | self.browsers = browsers.BrowsersResource(self) |
138 | 142 | self.with_raw_response = KernelWithRawResponse(self) |
139 | 143 | self.with_streaming_response = KernelWithStreamedResponse(self) |
@@ -246,7 +250,9 @@ def _make_status_error( |
246 | 250 |
|
247 | 251 |
|
248 | 252 | class AsyncKernel(AsyncAPIClient): |
| 253 | + deployments: deployments.AsyncDeploymentsResource |
249 | 254 | apps: apps.AsyncAppsResource |
| 255 | + invocations: invocations.AsyncInvocationsResource |
250 | 256 | browsers: browsers.AsyncBrowsersResource |
251 | 257 | with_raw_response: AsyncKernelWithRawResponse |
252 | 258 | with_streaming_response: AsyncKernelWithStreamedResponse |
@@ -329,7 +335,9 @@ def __init__( |
329 | 335 | _strict_response_validation=_strict_response_validation, |
330 | 336 | ) |
331 | 337 |
|
| 338 | + self.deployments = deployments.AsyncDeploymentsResource(self) |
332 | 339 | self.apps = apps.AsyncAppsResource(self) |
| 340 | + self.invocations = invocations.AsyncInvocationsResource(self) |
333 | 341 | self.browsers = browsers.AsyncBrowsersResource(self) |
334 | 342 | self.with_raw_response = AsyncKernelWithRawResponse(self) |
335 | 343 | self.with_streaming_response = AsyncKernelWithStreamedResponse(self) |
@@ -443,25 +451,33 @@ def _make_status_error( |
443 | 451 |
|
444 | 452 | class KernelWithRawResponse: |
445 | 453 | def __init__(self, client: Kernel) -> None: |
| 454 | + self.deployments = deployments.DeploymentsResourceWithRawResponse(client.deployments) |
446 | 455 | self.apps = apps.AppsResourceWithRawResponse(client.apps) |
| 456 | + self.invocations = invocations.InvocationsResourceWithRawResponse(client.invocations) |
447 | 457 | self.browsers = browsers.BrowsersResourceWithRawResponse(client.browsers) |
448 | 458 |
|
449 | 459 |
|
450 | 460 | class AsyncKernelWithRawResponse: |
451 | 461 | def __init__(self, client: AsyncKernel) -> None: |
| 462 | + self.deployments = deployments.AsyncDeploymentsResourceWithRawResponse(client.deployments) |
452 | 463 | self.apps = apps.AsyncAppsResourceWithRawResponse(client.apps) |
| 464 | + self.invocations = invocations.AsyncInvocationsResourceWithRawResponse(client.invocations) |
453 | 465 | self.browsers = browsers.AsyncBrowsersResourceWithRawResponse(client.browsers) |
454 | 466 |
|
455 | 467 |
|
456 | 468 | class KernelWithStreamedResponse: |
457 | 469 | def __init__(self, client: Kernel) -> None: |
| 470 | + self.deployments = deployments.DeploymentsResourceWithStreamingResponse(client.deployments) |
458 | 471 | self.apps = apps.AppsResourceWithStreamingResponse(client.apps) |
| 472 | + self.invocations = invocations.InvocationsResourceWithStreamingResponse(client.invocations) |
459 | 473 | self.browsers = browsers.BrowsersResourceWithStreamingResponse(client.browsers) |
460 | 474 |
|
461 | 475 |
|
462 | 476 | class AsyncKernelWithStreamedResponse: |
463 | 477 | def __init__(self, client: AsyncKernel) -> None: |
| 478 | + self.deployments = deployments.AsyncDeploymentsResourceWithStreamingResponse(client.deployments) |
464 | 479 | self.apps = apps.AsyncAppsResourceWithStreamingResponse(client.apps) |
| 480 | + self.invocations = invocations.AsyncInvocationsResourceWithStreamingResponse(client.invocations) |
465 | 481 | self.browsers = browsers.AsyncBrowsersResourceWithStreamingResponse(client.browsers) |
466 | 482 |
|
467 | 483 |
|
|
0 commit comments