|
72 | 72 | InviteWorkspaceMember, |
73 | 73 | InviteWorkspaceMemberInviteWorkspaceMember, |
74 | 74 | ) |
75 | | -from .organization import Organization, OrganizationOrganization |
76 | | -from .organizations import Organizations, OrganizationsOrganizations |
77 | 75 | from .pipeline import Pipeline, PipelinePipelineByCode |
78 | 76 | from .pipelines import Pipelines, PipelinesPipelines |
79 | 77 | from .remove_webapp_from_favorites import ( |
@@ -796,64 +794,6 @@ def delete_connection( |
796 | 794 | data = self.get_data(response) |
797 | 795 | return DeleteConnection.model_validate(data).delete_connection |
798 | 796 |
|
799 | | - def organization( |
800 | | - self, id: Any, **kwargs: Any |
801 | | - ) -> Optional[OrganizationOrganization]: |
802 | | - query = gql( |
803 | | - """ |
804 | | - query Organization($id: UUID!) { |
805 | | - organization(id: $id) { |
806 | | - id |
807 | | - name |
808 | | - shortName |
809 | | - workspaces { |
810 | | - items { |
811 | | - slug |
812 | | - name |
813 | | - countries { |
814 | | - code |
815 | | - } |
816 | | - } |
817 | | - } |
818 | | - permissions { |
819 | | - createWorkspace |
820 | | - archiveWorkspace |
821 | | - } |
822 | | - } |
823 | | - } |
824 | | - """ |
825 | | - ) |
826 | | - variables: Dict[str, object] = {"id": id} |
827 | | - response = self.execute( |
828 | | - query=query, operation_name="Organization", variables=variables, **kwargs |
829 | | - ) |
830 | | - data = self.get_data(response) |
831 | | - return Organization.model_validate(data).organization |
832 | | - |
833 | | - def organizations(self, **kwargs: Any) -> List[OrganizationsOrganizations]: |
834 | | - query = gql( |
835 | | - """ |
836 | | - query Organizations { |
837 | | - organizations { |
838 | | - id |
839 | | - name |
840 | | - workspaces { |
841 | | - items { |
842 | | - slug |
843 | | - name |
844 | | - } |
845 | | - } |
846 | | - } |
847 | | - } |
848 | | - """ |
849 | | - ) |
850 | | - variables: Dict[str, object] = {} |
851 | | - response = self.execute( |
852 | | - query=query, operation_name="Organizations", variables=variables, **kwargs |
853 | | - ) |
854 | | - data = self.get_data(response) |
855 | | - return Organizations.model_validate(data).organizations |
856 | | - |
857 | 797 | def get_users( |
858 | 798 | self, query: str, workspace_slug: str, **kwargs: Any |
859 | 799 | ) -> List[GetUsersUsers]: |
|
0 commit comments