|
4 | 4 |
|
5 | 5 | import httpx |
6 | 6 |
|
| 7 | +from .shares import ( |
| 8 | + SharesResource, |
| 9 | + AsyncSharesResource, |
| 10 | + SharesResourceWithRawResponse, |
| 11 | + AsyncSharesResourceWithRawResponse, |
| 12 | + SharesResourceWithStreamingResponse, |
| 13 | + AsyncSharesResourceWithStreamingResponse, |
| 14 | +) |
7 | 15 | from ...types import ( |
8 | 16 | group_list_params, |
9 | 17 | group_create_params, |
@@ -56,6 +64,10 @@ def memberships(self) -> MembershipsResource: |
56 | 64 | def role_assignments(self) -> RoleAssignmentsResource: |
57 | 65 | return RoleAssignmentsResource(self._client) |
58 | 66 |
|
| 67 | + @cached_property |
| 68 | + def shares(self) -> SharesResource: |
| 69 | + return SharesResource(self._client) |
| 70 | + |
59 | 71 | @cached_property |
60 | 72 | def with_raw_response(self) -> GroupsResourceWithRawResponse: |
61 | 73 | """ |
@@ -396,6 +408,10 @@ def memberships(self) -> AsyncMembershipsResource: |
396 | 408 | def role_assignments(self) -> AsyncRoleAssignmentsResource: |
397 | 409 | return AsyncRoleAssignmentsResource(self._client) |
398 | 410 |
|
| 411 | + @cached_property |
| 412 | + def shares(self) -> AsyncSharesResource: |
| 413 | + return AsyncSharesResource(self._client) |
| 414 | + |
399 | 415 | @cached_property |
400 | 416 | def with_raw_response(self) -> AsyncGroupsResourceWithRawResponse: |
401 | 417 | """ |
@@ -755,6 +771,10 @@ def memberships(self) -> MembershipsResourceWithRawResponse: |
755 | 771 | def role_assignments(self) -> RoleAssignmentsResourceWithRawResponse: |
756 | 772 | return RoleAssignmentsResourceWithRawResponse(self._groups.role_assignments) |
757 | 773 |
|
| 774 | + @cached_property |
| 775 | + def shares(self) -> SharesResourceWithRawResponse: |
| 776 | + return SharesResourceWithRawResponse(self._groups.shares) |
| 777 | + |
758 | 778 |
|
759 | 779 | class AsyncGroupsResourceWithRawResponse: |
760 | 780 | def __init__(self, groups: AsyncGroupsResource) -> None: |
@@ -784,6 +804,10 @@ def memberships(self) -> AsyncMembershipsResourceWithRawResponse: |
784 | 804 | def role_assignments(self) -> AsyncRoleAssignmentsResourceWithRawResponse: |
785 | 805 | return AsyncRoleAssignmentsResourceWithRawResponse(self._groups.role_assignments) |
786 | 806 |
|
| 807 | + @cached_property |
| 808 | + def shares(self) -> AsyncSharesResourceWithRawResponse: |
| 809 | + return AsyncSharesResourceWithRawResponse(self._groups.shares) |
| 810 | + |
787 | 811 |
|
788 | 812 | class GroupsResourceWithStreamingResponse: |
789 | 813 | def __init__(self, groups: GroupsResource) -> None: |
@@ -813,6 +837,10 @@ def memberships(self) -> MembershipsResourceWithStreamingResponse: |
813 | 837 | def role_assignments(self) -> RoleAssignmentsResourceWithStreamingResponse: |
814 | 838 | return RoleAssignmentsResourceWithStreamingResponse(self._groups.role_assignments) |
815 | 839 |
|
| 840 | + @cached_property |
| 841 | + def shares(self) -> SharesResourceWithStreamingResponse: |
| 842 | + return SharesResourceWithStreamingResponse(self._groups.shares) |
| 843 | + |
816 | 844 |
|
817 | 845 | class AsyncGroupsResourceWithStreamingResponse: |
818 | 846 | def __init__(self, groups: AsyncGroupsResource) -> None: |
@@ -841,3 +869,7 @@ def memberships(self) -> AsyncMembershipsResourceWithStreamingResponse: |
841 | 869 | @cached_property |
842 | 870 | def role_assignments(self) -> AsyncRoleAssignmentsResourceWithStreamingResponse: |
843 | 871 | return AsyncRoleAssignmentsResourceWithStreamingResponse(self._groups.role_assignments) |
| 872 | + |
| 873 | + @cached_property |
| 874 | + def shares(self) -> AsyncSharesResourceWithStreamingResponse: |
| 875 | + return AsyncSharesResourceWithStreamingResponse(self._groups.shares) |
0 commit comments