|
80 | 80 | from .delete_workspace_member import DeleteWorkspaceMember |
81 | 81 | from .deny_accessmod_access_request import DenyAccessmodAccessRequest |
82 | 82 | from .disable_two_factor import DisableTwoFactor |
83 | | -from .dummy import Dummy |
84 | 83 | from .enable_two_factor import EnableTwoFactor |
85 | 84 | from .enums import ( |
86 | 85 | AccessmodFilesetMode, |
|
94 | 93 | from .generate_new_database_password import GenerateNewDatabasePassword |
95 | 94 | from .generate_pipeline_webhook_url import GeneratePipelineWebhookUrl |
96 | 95 | from .generate_workspace_token import GenerateWorkspaceToken |
| 96 | +from .get_countries import GetCountries |
97 | 97 | from .input_types import ( |
98 | 98 | AddPipelineOutputInput, |
99 | 99 | AddToFavoritesInput, |
@@ -11724,17 +11724,24 @@ def workspaces( |
11724 | 11724 | data = self.get_data(response) |
11725 | 11725 | return Workspaces.model_validate(data) |
11726 | 11726 |
|
11727 | | - def dummy(self, **kwargs: Any) -> Dummy: |
| 11727 | + def get_countries(self, workspace_slug: str, **kwargs: Any) -> GetCountries: |
11728 | 11728 | query = gql( |
11729 | 11729 | """ |
11730 | | - query dummy { |
11731 | | - __typename |
| 11730 | + query getCountries($workspaceSlug: String!) { |
| 11731 | + workspace(slug: $workspaceSlug) { |
| 11732 | + countries { |
| 11733 | + code |
| 11734 | + name |
| 11735 | + flag |
| 11736 | + alpha3 |
| 11737 | + } |
| 11738 | + } |
11732 | 11739 | } |
11733 | 11740 | """ |
11734 | 11741 | ) |
11735 | | - variables: Dict[str, object] = {} |
| 11742 | + variables: Dict[str, object] = {"workspaceSlug": workspace_slug} |
11736 | 11743 | response = self.execute( |
11737 | | - query=query, operation_name="dummy", variables=variables, **kwargs |
| 11744 | + query=query, operation_name="getCountries", variables=variables, **kwargs |
11738 | 11745 | ) |
11739 | 11746 | data = self.get_data(response) |
11740 | | - return Dummy.model_validate(data) |
| 11747 | + return GetCountries.model_validate(data) |
0 commit comments