|
31 | 31 | ) |
32 | 32 |
|
33 | 33 | if TYPE_CHECKING: |
34 | | - from .resources import models, account, hardware, webhooks, trainings, collections, deployments, predictions |
| 34 | + from .resources import files, models, account, hardware, webhooks, trainings, collections, deployments, predictions |
| 35 | + from .resources.files import FilesResource, AsyncFilesResource |
35 | 36 | from .resources.account import AccountResource, AsyncAccountResource |
36 | 37 | from .resources.hardware import HardwareResource, AsyncHardwareResource |
37 | 38 | from .resources.trainings import TrainingsResource, AsyncTrainingsResource |
@@ -156,6 +157,12 @@ def webhooks(self) -> WebhooksResource: |
156 | 157 |
|
157 | 158 | return WebhooksResource(self) |
158 | 159 |
|
| 160 | + @cached_property |
| 161 | + def files(self) -> FilesResource: |
| 162 | + from .resources.files import FilesResource |
| 163 | + |
| 164 | + return FilesResource(self) |
| 165 | + |
159 | 166 | @cached_property |
160 | 167 | def with_raw_response(self) -> ReplicateWithRawResponse: |
161 | 168 | return ReplicateWithRawResponse(self) |
@@ -372,6 +379,12 @@ def webhooks(self) -> AsyncWebhooksResource: |
372 | 379 |
|
373 | 380 | return AsyncWebhooksResource(self) |
374 | 381 |
|
| 382 | + @cached_property |
| 383 | + def files(self) -> AsyncFilesResource: |
| 384 | + from .resources.files import AsyncFilesResource |
| 385 | + |
| 386 | + return AsyncFilesResource(self) |
| 387 | + |
375 | 388 | @cached_property |
376 | 389 | def with_raw_response(self) -> AsyncReplicateWithRawResponse: |
377 | 390 | return AsyncReplicateWithRawResponse(self) |
@@ -539,6 +552,12 @@ def webhooks(self) -> webhooks.WebhooksResourceWithRawResponse: |
539 | 552 |
|
540 | 553 | return WebhooksResourceWithRawResponse(self._client.webhooks) |
541 | 554 |
|
| 555 | + @cached_property |
| 556 | + def files(self) -> files.FilesResourceWithRawResponse: |
| 557 | + from .resources.files import FilesResourceWithRawResponse |
| 558 | + |
| 559 | + return FilesResourceWithRawResponse(self._client.files) |
| 560 | + |
542 | 561 |
|
543 | 562 | class AsyncReplicateWithRawResponse: |
544 | 563 | _client: AsyncReplicate |
@@ -594,6 +613,12 @@ def webhooks(self) -> webhooks.AsyncWebhooksResourceWithRawResponse: |
594 | 613 |
|
595 | 614 | return AsyncWebhooksResourceWithRawResponse(self._client.webhooks) |
596 | 615 |
|
| 616 | + @cached_property |
| 617 | + def files(self) -> files.AsyncFilesResourceWithRawResponse: |
| 618 | + from .resources.files import AsyncFilesResourceWithRawResponse |
| 619 | + |
| 620 | + return AsyncFilesResourceWithRawResponse(self._client.files) |
| 621 | + |
597 | 622 |
|
598 | 623 | class ReplicateWithStreamedResponse: |
599 | 624 | _client: Replicate |
@@ -649,6 +674,12 @@ def webhooks(self) -> webhooks.WebhooksResourceWithStreamingResponse: |
649 | 674 |
|
650 | 675 | return WebhooksResourceWithStreamingResponse(self._client.webhooks) |
651 | 676 |
|
| 677 | + @cached_property |
| 678 | + def files(self) -> files.FilesResourceWithStreamingResponse: |
| 679 | + from .resources.files import FilesResourceWithStreamingResponse |
| 680 | + |
| 681 | + return FilesResourceWithStreamingResponse(self._client.files) |
| 682 | + |
652 | 683 |
|
653 | 684 | class AsyncReplicateWithStreamedResponse: |
654 | 685 | _client: AsyncReplicate |
@@ -704,6 +735,12 @@ def webhooks(self) -> webhooks.AsyncWebhooksResourceWithStreamingResponse: |
704 | 735 |
|
705 | 736 | return AsyncWebhooksResourceWithStreamingResponse(self._client.webhooks) |
706 | 737 |
|
| 738 | + @cached_property |
| 739 | + def files(self) -> files.AsyncFilesResourceWithStreamingResponse: |
| 740 | + from .resources.files import AsyncFilesResourceWithStreamingResponse |
| 741 | + |
| 742 | + return AsyncFilesResourceWithStreamingResponse(self._client.files) |
| 743 | + |
707 | 744 |
|
708 | 745 | Client = Replicate |
709 | 746 |
|
|
0 commit comments