|
21 | 21 | ) |
22 | 22 | from ._utils import is_given, get_async_library |
23 | 23 | from ._version import __version__ |
24 | | -from .resources import browsers, deployments |
| 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 ( |
|
52 | 52 | class Kernel(SyncAPIClient): |
53 | 53 | deployments: deployments.DeploymentsResource |
54 | 54 | apps: apps.AppsResource |
| 55 | + invocations: invocations.InvocationsResource |
55 | 56 | browsers: browsers.BrowsersResource |
56 | 57 | with_raw_response: KernelWithRawResponse |
57 | 58 | with_streaming_response: KernelWithStreamedResponse |
@@ -136,6 +137,7 @@ def __init__( |
136 | 137 |
|
137 | 138 | self.deployments = deployments.DeploymentsResource(self) |
138 | 139 | self.apps = apps.AppsResource(self) |
| 140 | + self.invocations = invocations.InvocationsResource(self) |
139 | 141 | self.browsers = browsers.BrowsersResource(self) |
140 | 142 | self.with_raw_response = KernelWithRawResponse(self) |
141 | 143 | self.with_streaming_response = KernelWithStreamedResponse(self) |
@@ -250,6 +252,7 @@ def _make_status_error( |
250 | 252 | class AsyncKernel(AsyncAPIClient): |
251 | 253 | deployments: deployments.AsyncDeploymentsResource |
252 | 254 | apps: apps.AsyncAppsResource |
| 255 | + invocations: invocations.AsyncInvocationsResource |
253 | 256 | browsers: browsers.AsyncBrowsersResource |
254 | 257 | with_raw_response: AsyncKernelWithRawResponse |
255 | 258 | with_streaming_response: AsyncKernelWithStreamedResponse |
@@ -334,6 +337,7 @@ def __init__( |
334 | 337 |
|
335 | 338 | self.deployments = deployments.AsyncDeploymentsResource(self) |
336 | 339 | self.apps = apps.AsyncAppsResource(self) |
| 340 | + self.invocations = invocations.AsyncInvocationsResource(self) |
337 | 341 | self.browsers = browsers.AsyncBrowsersResource(self) |
338 | 342 | self.with_raw_response = AsyncKernelWithRawResponse(self) |
339 | 343 | self.with_streaming_response = AsyncKernelWithStreamedResponse(self) |
@@ -449,27 +453,31 @@ class KernelWithRawResponse: |
449 | 453 | def __init__(self, client: Kernel) -> None: |
450 | 454 | self.deployments = deployments.DeploymentsResourceWithRawResponse(client.deployments) |
451 | 455 | self.apps = apps.AppsResourceWithRawResponse(client.apps) |
| 456 | + self.invocations = invocations.InvocationsResourceWithRawResponse(client.invocations) |
452 | 457 | self.browsers = browsers.BrowsersResourceWithRawResponse(client.browsers) |
453 | 458 |
|
454 | 459 |
|
455 | 460 | class AsyncKernelWithRawResponse: |
456 | 461 | def __init__(self, client: AsyncKernel) -> None: |
457 | 462 | self.deployments = deployments.AsyncDeploymentsResourceWithRawResponse(client.deployments) |
458 | 463 | self.apps = apps.AsyncAppsResourceWithRawResponse(client.apps) |
| 464 | + self.invocations = invocations.AsyncInvocationsResourceWithRawResponse(client.invocations) |
459 | 465 | self.browsers = browsers.AsyncBrowsersResourceWithRawResponse(client.browsers) |
460 | 466 |
|
461 | 467 |
|
462 | 468 | class KernelWithStreamedResponse: |
463 | 469 | def __init__(self, client: Kernel) -> None: |
464 | 470 | self.deployments = deployments.DeploymentsResourceWithStreamingResponse(client.deployments) |
465 | 471 | self.apps = apps.AppsResourceWithStreamingResponse(client.apps) |
| 472 | + self.invocations = invocations.InvocationsResourceWithStreamingResponse(client.invocations) |
466 | 473 | self.browsers = browsers.BrowsersResourceWithStreamingResponse(client.browsers) |
467 | 474 |
|
468 | 475 |
|
469 | 476 | class AsyncKernelWithStreamedResponse: |
470 | 477 | def __init__(self, client: AsyncKernel) -> None: |
471 | 478 | self.deployments = deployments.AsyncDeploymentsResourceWithStreamingResponse(client.deployments) |
472 | 479 | self.apps = apps.AsyncAppsResourceWithStreamingResponse(client.apps) |
| 480 | + self.invocations = invocations.AsyncInvocationsResourceWithStreamingResponse(client.invocations) |
473 | 481 | self.browsers = browsers.AsyncBrowsersResourceWithStreamingResponse(client.browsers) |
474 | 482 |
|
475 | 483 |
|
|
0 commit comments