|
7 | 7 |
|
8 | 8 | import httpx
|
9 | 9 |
|
| 10 | +from .cors import ( |
| 11 | + CORSResource, |
| 12 | + AsyncCORSResource, |
| 13 | + CORSResourceWithRawResponse, |
| 14 | + AsyncCORSResourceWithRawResponse, |
| 15 | + CORSResourceWithStreamingResponse, |
| 16 | + AsyncCORSResourceWithStreamingResponse, |
| 17 | +) |
10 | 18 | from .sippy import (
|
11 | 19 | SippyResource,
|
12 | 20 | AsyncSippyResource,
|
@@ -70,6 +78,10 @@ class BucketsResource(SyncAPIResource):
|
70 | 78 | def lifecycle(self) -> LifecycleResource:
|
71 | 79 | return LifecycleResource(self._client)
|
72 | 80 |
|
| 81 | + @cached_property |
| 82 | + def cors(self) -> CORSResource: |
| 83 | + return CORSResource(self._client) |
| 84 | + |
73 | 85 | @cached_property
|
74 | 86 | def domains(self) -> DomainsResource:
|
75 | 87 | return DomainsResource(self._client)
|
@@ -357,6 +369,10 @@ class AsyncBucketsResource(AsyncAPIResource):
|
357 | 369 | def lifecycle(self) -> AsyncLifecycleResource:
|
358 | 370 | return AsyncLifecycleResource(self._client)
|
359 | 371 |
|
| 372 | + @cached_property |
| 373 | + def cors(self) -> AsyncCORSResource: |
| 374 | + return AsyncCORSResource(self._client) |
| 375 | + |
360 | 376 | @cached_property
|
361 | 377 | def domains(self) -> AsyncDomainsResource:
|
362 | 378 | return AsyncDomainsResource(self._client)
|
@@ -660,6 +676,10 @@ def __init__(self, buckets: BucketsResource) -> None:
|
660 | 676 | def lifecycle(self) -> LifecycleResourceWithRawResponse:
|
661 | 677 | return LifecycleResourceWithRawResponse(self._buckets.lifecycle)
|
662 | 678 |
|
| 679 | + @cached_property |
| 680 | + def cors(self) -> CORSResourceWithRawResponse: |
| 681 | + return CORSResourceWithRawResponse(self._buckets.cors) |
| 682 | + |
663 | 683 | @cached_property
|
664 | 684 | def domains(self) -> DomainsResourceWithRawResponse:
|
665 | 685 | return DomainsResourceWithRawResponse(self._buckets.domains)
|
@@ -694,6 +714,10 @@ def __init__(self, buckets: AsyncBucketsResource) -> None:
|
694 | 714 | def lifecycle(self) -> AsyncLifecycleResourceWithRawResponse:
|
695 | 715 | return AsyncLifecycleResourceWithRawResponse(self._buckets.lifecycle)
|
696 | 716 |
|
| 717 | + @cached_property |
| 718 | + def cors(self) -> AsyncCORSResourceWithRawResponse: |
| 719 | + return AsyncCORSResourceWithRawResponse(self._buckets.cors) |
| 720 | + |
697 | 721 | @cached_property
|
698 | 722 | def domains(self) -> AsyncDomainsResourceWithRawResponse:
|
699 | 723 | return AsyncDomainsResourceWithRawResponse(self._buckets.domains)
|
@@ -728,6 +752,10 @@ def __init__(self, buckets: BucketsResource) -> None:
|
728 | 752 | def lifecycle(self) -> LifecycleResourceWithStreamingResponse:
|
729 | 753 | return LifecycleResourceWithStreamingResponse(self._buckets.lifecycle)
|
730 | 754 |
|
| 755 | + @cached_property |
| 756 | + def cors(self) -> CORSResourceWithStreamingResponse: |
| 757 | + return CORSResourceWithStreamingResponse(self._buckets.cors) |
| 758 | + |
731 | 759 | @cached_property
|
732 | 760 | def domains(self) -> DomainsResourceWithStreamingResponse:
|
733 | 761 | return DomainsResourceWithStreamingResponse(self._buckets.domains)
|
@@ -762,6 +790,10 @@ def __init__(self, buckets: AsyncBucketsResource) -> None:
|
762 | 790 | def lifecycle(self) -> AsyncLifecycleResourceWithStreamingResponse:
|
763 | 791 | return AsyncLifecycleResourceWithStreamingResponse(self._buckets.lifecycle)
|
764 | 792 |
|
| 793 | + @cached_property |
| 794 | + def cors(self) -> AsyncCORSResourceWithStreamingResponse: |
| 795 | + return AsyncCORSResourceWithStreamingResponse(self._buckets.cors) |
| 796 | + |
765 | 797 | @cached_property
|
766 | 798 | def domains(self) -> AsyncDomainsResourceWithStreamingResponse:
|
767 | 799 | return AsyncDomainsResourceWithStreamingResponse(self._buckets.domains)
|
|
0 commit comments