windmill-api 1.505.4__py3-none-any.whl → 1.507.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of windmill-api might be problematic. Click here for more details.

Files changed (30) hide show
  1. windmill_api/api/oauth/connect_client_credentials.py +170 -0
  2. windmill_api/models/connect_callback_response_200.py +9 -0
  3. windmill_api/models/connect_client_credentials_json_body.py +77 -0
  4. windmill_api/models/connect_client_credentials_response_200.py +95 -0
  5. windmill_api/models/create_account_json_body.py +25 -0
  6. windmill_api/models/edit_workspace_git_sync_config_json_body_git_sync_settings.py +1 -35
  7. windmill_api/models/edit_workspace_git_sync_config_json_body_git_sync_settings_repositories_item.py +35 -1
  8. windmill_api/models/edit_workspace_git_sync_config_json_body_git_sync_settings_repositories_item_exclude_types_override_item.py +2 -0
  9. windmill_api/models/edit_workspace_git_sync_config_json_body_git_sync_settings_repositories_item_settings.py +112 -0
  10. windmill_api/models/edit_workspace_git_sync_config_json_body_git_sync_settings_repositories_item_settings_include_type_item.py +21 -0
  11. windmill_api/models/get_o_auth_connect_response_200.py +11 -0
  12. windmill_api/models/get_settings_response_200_git_sync.py +1 -33
  13. windmill_api/models/get_settings_response_200_git_sync_repositories_item.py +35 -1
  14. windmill_api/models/get_settings_response_200_git_sync_repositories_item_exclude_types_override_item.py +2 -0
  15. windmill_api/models/get_settings_response_200_git_sync_repositories_item_settings.py +107 -0
  16. windmill_api/models/{workspace_git_sync_settings_include_type_item.py → get_settings_response_200_git_sync_repositories_item_settings_include_type_item.py} +3 -1
  17. windmill_api/models/git_repository_settings.py +31 -1
  18. windmill_api/models/git_repository_settings_exclude_types_override_item.py +2 -0
  19. windmill_api/models/git_repository_settings_settings.py +103 -0
  20. windmill_api/models/{edit_workspace_git_sync_config_json_body_git_sync_settings_include_type_item.py → git_repository_settings_settings_include_type_item.py} +3 -1
  21. windmill_api/models/token_response.py +9 -0
  22. windmill_api/models/workspace_git_sync_settings.py +1 -33
  23. windmill_api/models/workspace_git_sync_settings_repositories_item.py +35 -1
  24. windmill_api/models/workspace_git_sync_settings_repositories_item_exclude_types_override_item.py +2 -0
  25. windmill_api/models/workspace_git_sync_settings_repositories_item_settings.py +105 -0
  26. windmill_api/models/{get_settings_response_200_git_sync_include_type_item.py → workspace_git_sync_settings_repositories_item_settings_include_type_item.py} +3 -1
  27. {windmill_api-1.505.4.dist-info → windmill_api-1.507.0.dist-info}/METADATA +1 -1
  28. {windmill_api-1.505.4.dist-info → windmill_api-1.507.0.dist-info}/RECORD +30 -22
  29. {windmill_api-1.505.4.dist-info → windmill_api-1.507.0.dist-info}/LICENSE +0 -0
  30. {windmill_api-1.505.4.dist-info → windmill_api-1.507.0.dist-info}/WHEEL +0 -0
@@ -0,0 +1,112 @@
1
+ from typing import Any, Dict, List, Type, TypeVar, Union, cast
2
+
3
+ from attrs import define as _attrs_define
4
+ from attrs import field as _attrs_field
5
+
6
+ from ..models.edit_workspace_git_sync_config_json_body_git_sync_settings_repositories_item_settings_include_type_item import (
7
+ EditWorkspaceGitSyncConfigJsonBodyGitSyncSettingsRepositoriesItemSettingsIncludeTypeItem,
8
+ )
9
+ from ..types import UNSET, Unset
10
+
11
+ T = TypeVar("T", bound="EditWorkspaceGitSyncConfigJsonBodyGitSyncSettingsRepositoriesItemSettings")
12
+
13
+
14
+ @_attrs_define
15
+ class EditWorkspaceGitSyncConfigJsonBodyGitSyncSettingsRepositoriesItemSettings:
16
+ """
17
+ Attributes:
18
+ include_path (Union[Unset, List[str]]):
19
+ include_type (Union[Unset,
20
+ List[EditWorkspaceGitSyncConfigJsonBodyGitSyncSettingsRepositoriesItemSettingsIncludeTypeItem]]):
21
+ exclude_path (Union[Unset, List[str]]):
22
+ extra_include_path (Union[Unset, List[str]]):
23
+ """
24
+
25
+ include_path: Union[Unset, List[str]] = UNSET
26
+ include_type: Union[
27
+ Unset, List[EditWorkspaceGitSyncConfigJsonBodyGitSyncSettingsRepositoriesItemSettingsIncludeTypeItem]
28
+ ] = UNSET
29
+ exclude_path: Union[Unset, List[str]] = UNSET
30
+ extra_include_path: Union[Unset, List[str]] = UNSET
31
+ additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
32
+
33
+ def to_dict(self) -> Dict[str, Any]:
34
+ include_path: Union[Unset, List[str]] = UNSET
35
+ if not isinstance(self.include_path, Unset):
36
+ include_path = self.include_path
37
+
38
+ include_type: Union[Unset, List[str]] = UNSET
39
+ if not isinstance(self.include_type, Unset):
40
+ include_type = []
41
+ for include_type_item_data in self.include_type:
42
+ include_type_item = include_type_item_data.value
43
+
44
+ include_type.append(include_type_item)
45
+
46
+ exclude_path: Union[Unset, List[str]] = UNSET
47
+ if not isinstance(self.exclude_path, Unset):
48
+ exclude_path = self.exclude_path
49
+
50
+ extra_include_path: Union[Unset, List[str]] = UNSET
51
+ if not isinstance(self.extra_include_path, Unset):
52
+ extra_include_path = self.extra_include_path
53
+
54
+ field_dict: Dict[str, Any] = {}
55
+ field_dict.update(self.additional_properties)
56
+ field_dict.update({})
57
+ if include_path is not UNSET:
58
+ field_dict["include_path"] = include_path
59
+ if include_type is not UNSET:
60
+ field_dict["include_type"] = include_type
61
+ if exclude_path is not UNSET:
62
+ field_dict["exclude_path"] = exclude_path
63
+ if extra_include_path is not UNSET:
64
+ field_dict["extra_include_path"] = extra_include_path
65
+
66
+ return field_dict
67
+
68
+ @classmethod
69
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
70
+ d = src_dict.copy()
71
+ include_path = cast(List[str], d.pop("include_path", UNSET))
72
+
73
+ include_type = []
74
+ _include_type = d.pop("include_type", UNSET)
75
+ for include_type_item_data in _include_type or []:
76
+ include_type_item = (
77
+ EditWorkspaceGitSyncConfigJsonBodyGitSyncSettingsRepositoriesItemSettingsIncludeTypeItem(
78
+ include_type_item_data
79
+ )
80
+ )
81
+
82
+ include_type.append(include_type_item)
83
+
84
+ exclude_path = cast(List[str], d.pop("exclude_path", UNSET))
85
+
86
+ extra_include_path = cast(List[str], d.pop("extra_include_path", UNSET))
87
+
88
+ edit_workspace_git_sync_config_json_body_git_sync_settings_repositories_item_settings = cls(
89
+ include_path=include_path,
90
+ include_type=include_type,
91
+ exclude_path=exclude_path,
92
+ extra_include_path=extra_include_path,
93
+ )
94
+
95
+ edit_workspace_git_sync_config_json_body_git_sync_settings_repositories_item_settings.additional_properties = d
96
+ return edit_workspace_git_sync_config_json_body_git_sync_settings_repositories_item_settings
97
+
98
+ @property
99
+ def additional_keys(self) -> List[str]:
100
+ return list(self.additional_properties.keys())
101
+
102
+ def __getitem__(self, key: str) -> Any:
103
+ return self.additional_properties[key]
104
+
105
+ def __setitem__(self, key: str, value: Any) -> None:
106
+ self.additional_properties[key] = value
107
+
108
+ def __delitem__(self, key: str) -> None:
109
+ del self.additional_properties[key]
110
+
111
+ def __contains__(self, key: str) -> bool:
112
+ return key in self.additional_properties
@@ -0,0 +1,21 @@
1
+ from enum import Enum
2
+
3
+
4
+ class EditWorkspaceGitSyncConfigJsonBodyGitSyncSettingsRepositoriesItemSettingsIncludeTypeItem(str, Enum):
5
+ APP = "app"
6
+ FLOW = "flow"
7
+ FOLDER = "folder"
8
+ GROUP = "group"
9
+ KEY = "key"
10
+ RESOURCE = "resource"
11
+ RESOURCETYPE = "resourcetype"
12
+ SCHEDULE = "schedule"
13
+ SCRIPT = "script"
14
+ SECRET = "secret"
15
+ SETTINGS = "settings"
16
+ TRIGGER = "trigger"
17
+ USER = "user"
18
+ VARIABLE = "variable"
19
+
20
+ def __str__(self) -> str:
21
+ return str(self.value)
@@ -18,10 +18,12 @@ class GetOAuthConnectResponse200:
18
18
  Attributes:
19
19
  extra_params (Union[Unset, GetOAuthConnectResponse200ExtraParams]):
20
20
  scopes (Union[Unset, List[str]]):
21
+ grant_types (Union[Unset, List[str]]):
21
22
  """
22
23
 
23
24
  extra_params: Union[Unset, "GetOAuthConnectResponse200ExtraParams"] = UNSET
24
25
  scopes: Union[Unset, List[str]] = UNSET
26
+ grant_types: Union[Unset, List[str]] = UNSET
25
27
  additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
26
28
 
27
29
  def to_dict(self) -> Dict[str, Any]:
@@ -33,6 +35,10 @@ class GetOAuthConnectResponse200:
33
35
  if not isinstance(self.scopes, Unset):
34
36
  scopes = self.scopes
35
37
 
38
+ grant_types: Union[Unset, List[str]] = UNSET
39
+ if not isinstance(self.grant_types, Unset):
40
+ grant_types = self.grant_types
41
+
36
42
  field_dict: Dict[str, Any] = {}
37
43
  field_dict.update(self.additional_properties)
38
44
  field_dict.update({})
@@ -40,6 +46,8 @@ class GetOAuthConnectResponse200:
40
46
  field_dict["extra_params"] = extra_params
41
47
  if scopes is not UNSET:
42
48
  field_dict["scopes"] = scopes
49
+ if grant_types is not UNSET:
50
+ field_dict["grant_types"] = grant_types
43
51
 
44
52
  return field_dict
45
53
 
@@ -57,9 +65,12 @@ class GetOAuthConnectResponse200:
57
65
 
58
66
  scopes = cast(List[str], d.pop("scopes", UNSET))
59
67
 
68
+ grant_types = cast(List[str], d.pop("grant_types", UNSET))
69
+
60
70
  get_o_auth_connect_response_200 = cls(
61
71
  extra_params=extra_params,
62
72
  scopes=scopes,
73
+ grant_types=grant_types,
63
74
  )
64
75
 
65
76
  get_o_auth_connect_response_200.additional_properties = d
@@ -1,9 +1,8 @@
1
- from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union, cast
1
+ from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
2
2
 
3
3
  from attrs import define as _attrs_define
4
4
  from attrs import field as _attrs_field
5
5
 
6
- from ..models.get_settings_response_200_git_sync_include_type_item import GetSettingsResponse200GitSyncIncludeTypeItem
7
6
  from ..types import UNSET, Unset
8
7
 
9
8
  if TYPE_CHECKING:
@@ -19,29 +18,13 @@ T = TypeVar("T", bound="GetSettingsResponse200GitSync")
19
18
  class GetSettingsResponse200GitSync:
20
19
  """
21
20
  Attributes:
22
- include_path (Union[Unset, List[str]]):
23
- include_type (Union[Unset, List[GetSettingsResponse200GitSyncIncludeTypeItem]]):
24
21
  repositories (Union[Unset, List['GetSettingsResponse200GitSyncRepositoriesItem']]):
25
22
  """
26
23
 
27
- include_path: Union[Unset, List[str]] = UNSET
28
- include_type: Union[Unset, List[GetSettingsResponse200GitSyncIncludeTypeItem]] = UNSET
29
24
  repositories: Union[Unset, List["GetSettingsResponse200GitSyncRepositoriesItem"]] = UNSET
30
25
  additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
31
26
 
32
27
  def to_dict(self) -> Dict[str, Any]:
33
- include_path: Union[Unset, List[str]] = UNSET
34
- if not isinstance(self.include_path, Unset):
35
- include_path = self.include_path
36
-
37
- include_type: Union[Unset, List[str]] = UNSET
38
- if not isinstance(self.include_type, Unset):
39
- include_type = []
40
- for include_type_item_data in self.include_type:
41
- include_type_item = include_type_item_data.value
42
-
43
- include_type.append(include_type_item)
44
-
45
28
  repositories: Union[Unset, List[Dict[str, Any]]] = UNSET
46
29
  if not isinstance(self.repositories, Unset):
47
30
  repositories = []
@@ -53,10 +36,6 @@ class GetSettingsResponse200GitSync:
53
36
  field_dict: Dict[str, Any] = {}
54
37
  field_dict.update(self.additional_properties)
55
38
  field_dict.update({})
56
- if include_path is not UNSET:
57
- field_dict["include_path"] = include_path
58
- if include_type is not UNSET:
59
- field_dict["include_type"] = include_type
60
39
  if repositories is not UNSET:
61
40
  field_dict["repositories"] = repositories
62
41
 
@@ -69,15 +48,6 @@ class GetSettingsResponse200GitSync:
69
48
  )
70
49
 
71
50
  d = src_dict.copy()
72
- include_path = cast(List[str], d.pop("include_path", UNSET))
73
-
74
- include_type = []
75
- _include_type = d.pop("include_type", UNSET)
76
- for include_type_item_data in _include_type or []:
77
- include_type_item = GetSettingsResponse200GitSyncIncludeTypeItem(include_type_item_data)
78
-
79
- include_type.append(include_type_item)
80
-
81
51
  repositories = []
82
52
  _repositories = d.pop("repositories", UNSET)
83
53
  for repositories_item_data in _repositories or []:
@@ -86,8 +56,6 @@ class GetSettingsResponse200GitSync:
86
56
  repositories.append(repositories_item)
87
57
 
88
58
  get_settings_response_200_git_sync = cls(
89
- include_path=include_path,
90
- include_type=include_type,
91
59
  repositories=repositories,
92
60
  )
93
61
 
@@ -1,4 +1,4 @@
1
- from typing import Any, Dict, List, Type, TypeVar, Union
1
+ from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
2
2
 
3
3
  from attrs import define as _attrs_define
4
4
  from attrs import field as _attrs_field
@@ -8,6 +8,12 @@ from ..models.get_settings_response_200_git_sync_repositories_item_exclude_types
8
8
  )
9
9
  from ..types import UNSET, Unset
10
10
 
11
+ if TYPE_CHECKING:
12
+ from ..models.get_settings_response_200_git_sync_repositories_item_settings import (
13
+ GetSettingsResponse200GitSyncRepositoriesItemSettings,
14
+ )
15
+
16
+
11
17
  T = TypeVar("T", bound="GetSettingsResponse200GitSyncRepositoriesItem")
12
18
 
13
19
 
@@ -19,6 +25,8 @@ class GetSettingsResponse200GitSyncRepositoriesItem:
19
25
  git_repo_resource_path (str):
20
26
  use_individual_branch (Union[Unset, bool]):
21
27
  group_by_folder (Union[Unset, bool]):
28
+ collapsed (Union[Unset, bool]):
29
+ settings (Union[Unset, GetSettingsResponse200GitSyncRepositoriesItemSettings]):
22
30
  exclude_types_override (Union[Unset,
23
31
  List[GetSettingsResponse200GitSyncRepositoriesItemExcludeTypesOverrideItem]]):
24
32
  """
@@ -27,6 +35,8 @@ class GetSettingsResponse200GitSyncRepositoriesItem:
27
35
  git_repo_resource_path: str
28
36
  use_individual_branch: Union[Unset, bool] = UNSET
29
37
  group_by_folder: Union[Unset, bool] = UNSET
38
+ collapsed: Union[Unset, bool] = UNSET
39
+ settings: Union[Unset, "GetSettingsResponse200GitSyncRepositoriesItemSettings"] = UNSET
30
40
  exclude_types_override: Union[
31
41
  Unset, List[GetSettingsResponse200GitSyncRepositoriesItemExcludeTypesOverrideItem]
32
42
  ] = UNSET
@@ -37,6 +47,11 @@ class GetSettingsResponse200GitSyncRepositoriesItem:
37
47
  git_repo_resource_path = self.git_repo_resource_path
38
48
  use_individual_branch = self.use_individual_branch
39
49
  group_by_folder = self.group_by_folder
50
+ collapsed = self.collapsed
51
+ settings: Union[Unset, Dict[str, Any]] = UNSET
52
+ if not isinstance(self.settings, Unset):
53
+ settings = self.settings.to_dict()
54
+
40
55
  exclude_types_override: Union[Unset, List[str]] = UNSET
41
56
  if not isinstance(self.exclude_types_override, Unset):
42
57
  exclude_types_override = []
@@ -57,6 +72,10 @@ class GetSettingsResponse200GitSyncRepositoriesItem:
57
72
  field_dict["use_individual_branch"] = use_individual_branch
58
73
  if group_by_folder is not UNSET:
59
74
  field_dict["group_by_folder"] = group_by_folder
75
+ if collapsed is not UNSET:
76
+ field_dict["collapsed"] = collapsed
77
+ if settings is not UNSET:
78
+ field_dict["settings"] = settings
60
79
  if exclude_types_override is not UNSET:
61
80
  field_dict["exclude_types_override"] = exclude_types_override
62
81
 
@@ -64,6 +83,10 @@ class GetSettingsResponse200GitSyncRepositoriesItem:
64
83
 
65
84
  @classmethod
66
85
  def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
86
+ from ..models.get_settings_response_200_git_sync_repositories_item_settings import (
87
+ GetSettingsResponse200GitSyncRepositoriesItemSettings,
88
+ )
89
+
67
90
  d = src_dict.copy()
68
91
  script_path = d.pop("script_path")
69
92
 
@@ -73,6 +96,15 @@ class GetSettingsResponse200GitSyncRepositoriesItem:
73
96
 
74
97
  group_by_folder = d.pop("group_by_folder", UNSET)
75
98
 
99
+ collapsed = d.pop("collapsed", UNSET)
100
+
101
+ _settings = d.pop("settings", UNSET)
102
+ settings: Union[Unset, GetSettingsResponse200GitSyncRepositoriesItemSettings]
103
+ if isinstance(_settings, Unset):
104
+ settings = UNSET
105
+ else:
106
+ settings = GetSettingsResponse200GitSyncRepositoriesItemSettings.from_dict(_settings)
107
+
76
108
  exclude_types_override = []
77
109
  _exclude_types_override = d.pop("exclude_types_override", UNSET)
78
110
  for exclude_types_override_item_data in _exclude_types_override or []:
@@ -87,6 +119,8 @@ class GetSettingsResponse200GitSyncRepositoriesItem:
87
119
  git_repo_resource_path=git_repo_resource_path,
88
120
  use_individual_branch=use_individual_branch,
89
121
  group_by_folder=group_by_folder,
122
+ collapsed=collapsed,
123
+ settings=settings,
90
124
  exclude_types_override=exclude_types_override,
91
125
  )
92
126
 
@@ -6,11 +6,13 @@ class GetSettingsResponse200GitSyncRepositoriesItemExcludeTypesOverrideItem(str,
6
6
  FLOW = "flow"
7
7
  FOLDER = "folder"
8
8
  GROUP = "group"
9
+ KEY = "key"
9
10
  RESOURCE = "resource"
10
11
  RESOURCETYPE = "resourcetype"
11
12
  SCHEDULE = "schedule"
12
13
  SCRIPT = "script"
13
14
  SECRET = "secret"
15
+ SETTINGS = "settings"
14
16
  TRIGGER = "trigger"
15
17
  USER = "user"
16
18
  VARIABLE = "variable"
@@ -0,0 +1,107 @@
1
+ from typing import Any, Dict, List, Type, TypeVar, Union, cast
2
+
3
+ from attrs import define as _attrs_define
4
+ from attrs import field as _attrs_field
5
+
6
+ from ..models.get_settings_response_200_git_sync_repositories_item_settings_include_type_item import (
7
+ GetSettingsResponse200GitSyncRepositoriesItemSettingsIncludeTypeItem,
8
+ )
9
+ from ..types import UNSET, Unset
10
+
11
+ T = TypeVar("T", bound="GetSettingsResponse200GitSyncRepositoriesItemSettings")
12
+
13
+
14
+ @_attrs_define
15
+ class GetSettingsResponse200GitSyncRepositoriesItemSettings:
16
+ """
17
+ Attributes:
18
+ include_path (Union[Unset, List[str]]):
19
+ include_type (Union[Unset, List[GetSettingsResponse200GitSyncRepositoriesItemSettingsIncludeTypeItem]]):
20
+ exclude_path (Union[Unset, List[str]]):
21
+ extra_include_path (Union[Unset, List[str]]):
22
+ """
23
+
24
+ include_path: Union[Unset, List[str]] = UNSET
25
+ include_type: Union[Unset, List[GetSettingsResponse200GitSyncRepositoriesItemSettingsIncludeTypeItem]] = UNSET
26
+ exclude_path: Union[Unset, List[str]] = UNSET
27
+ extra_include_path: Union[Unset, List[str]] = UNSET
28
+ additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
29
+
30
+ def to_dict(self) -> Dict[str, Any]:
31
+ include_path: Union[Unset, List[str]] = UNSET
32
+ if not isinstance(self.include_path, Unset):
33
+ include_path = self.include_path
34
+
35
+ include_type: Union[Unset, List[str]] = UNSET
36
+ if not isinstance(self.include_type, Unset):
37
+ include_type = []
38
+ for include_type_item_data in self.include_type:
39
+ include_type_item = include_type_item_data.value
40
+
41
+ include_type.append(include_type_item)
42
+
43
+ exclude_path: Union[Unset, List[str]] = UNSET
44
+ if not isinstance(self.exclude_path, Unset):
45
+ exclude_path = self.exclude_path
46
+
47
+ extra_include_path: Union[Unset, List[str]] = UNSET
48
+ if not isinstance(self.extra_include_path, Unset):
49
+ extra_include_path = self.extra_include_path
50
+
51
+ field_dict: Dict[str, Any] = {}
52
+ field_dict.update(self.additional_properties)
53
+ field_dict.update({})
54
+ if include_path is not UNSET:
55
+ field_dict["include_path"] = include_path
56
+ if include_type is not UNSET:
57
+ field_dict["include_type"] = include_type
58
+ if exclude_path is not UNSET:
59
+ field_dict["exclude_path"] = exclude_path
60
+ if extra_include_path is not UNSET:
61
+ field_dict["extra_include_path"] = extra_include_path
62
+
63
+ return field_dict
64
+
65
+ @classmethod
66
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
67
+ d = src_dict.copy()
68
+ include_path = cast(List[str], d.pop("include_path", UNSET))
69
+
70
+ include_type = []
71
+ _include_type = d.pop("include_type", UNSET)
72
+ for include_type_item_data in _include_type or []:
73
+ include_type_item = GetSettingsResponse200GitSyncRepositoriesItemSettingsIncludeTypeItem(
74
+ include_type_item_data
75
+ )
76
+
77
+ include_type.append(include_type_item)
78
+
79
+ exclude_path = cast(List[str], d.pop("exclude_path", UNSET))
80
+
81
+ extra_include_path = cast(List[str], d.pop("extra_include_path", UNSET))
82
+
83
+ get_settings_response_200_git_sync_repositories_item_settings = cls(
84
+ include_path=include_path,
85
+ include_type=include_type,
86
+ exclude_path=exclude_path,
87
+ extra_include_path=extra_include_path,
88
+ )
89
+
90
+ get_settings_response_200_git_sync_repositories_item_settings.additional_properties = d
91
+ return get_settings_response_200_git_sync_repositories_item_settings
92
+
93
+ @property
94
+ def additional_keys(self) -> List[str]:
95
+ return list(self.additional_properties.keys())
96
+
97
+ def __getitem__(self, key: str) -> Any:
98
+ return self.additional_properties[key]
99
+
100
+ def __setitem__(self, key: str, value: Any) -> None:
101
+ self.additional_properties[key] = value
102
+
103
+ def __delitem__(self, key: str) -> None:
104
+ del self.additional_properties[key]
105
+
106
+ def __contains__(self, key: str) -> bool:
107
+ return key in self.additional_properties
@@ -1,16 +1,18 @@
1
1
  from enum import Enum
2
2
 
3
3
 
4
- class WorkspaceGitSyncSettingsIncludeTypeItem(str, Enum):
4
+ class GetSettingsResponse200GitSyncRepositoriesItemSettingsIncludeTypeItem(str, Enum):
5
5
  APP = "app"
6
6
  FLOW = "flow"
7
7
  FOLDER = "folder"
8
8
  GROUP = "group"
9
+ KEY = "key"
9
10
  RESOURCE = "resource"
10
11
  RESOURCETYPE = "resourcetype"
11
12
  SCHEDULE = "schedule"
12
13
  SCRIPT = "script"
13
14
  SECRET = "secret"
15
+ SETTINGS = "settings"
14
16
  TRIGGER = "trigger"
15
17
  USER = "user"
16
18
  VARIABLE = "variable"
@@ -1,4 +1,4 @@
1
- from typing import Any, Dict, List, Type, TypeVar, Union
1
+ from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
2
2
 
3
3
  from attrs import define as _attrs_define
4
4
  from attrs import field as _attrs_field
@@ -6,6 +6,10 @@ from attrs import field as _attrs_field
6
6
  from ..models.git_repository_settings_exclude_types_override_item import GitRepositorySettingsExcludeTypesOverrideItem
7
7
  from ..types import UNSET, Unset
8
8
 
9
+ if TYPE_CHECKING:
10
+ from ..models.git_repository_settings_settings import GitRepositorySettingsSettings
11
+
12
+
9
13
  T = TypeVar("T", bound="GitRepositorySettings")
10
14
 
11
15
 
@@ -17,6 +21,8 @@ class GitRepositorySettings:
17
21
  git_repo_resource_path (str):
18
22
  use_individual_branch (Union[Unset, bool]):
19
23
  group_by_folder (Union[Unset, bool]):
24
+ collapsed (Union[Unset, bool]):
25
+ settings (Union[Unset, GitRepositorySettingsSettings]):
20
26
  exclude_types_override (Union[Unset, List[GitRepositorySettingsExcludeTypesOverrideItem]]):
21
27
  """
22
28
 
@@ -24,6 +30,8 @@ class GitRepositorySettings:
24
30
  git_repo_resource_path: str
25
31
  use_individual_branch: Union[Unset, bool] = UNSET
26
32
  group_by_folder: Union[Unset, bool] = UNSET
33
+ collapsed: Union[Unset, bool] = UNSET
34
+ settings: Union[Unset, "GitRepositorySettingsSettings"] = UNSET
27
35
  exclude_types_override: Union[Unset, List[GitRepositorySettingsExcludeTypesOverrideItem]] = UNSET
28
36
  additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
29
37
 
@@ -32,6 +40,11 @@ class GitRepositorySettings:
32
40
  git_repo_resource_path = self.git_repo_resource_path
33
41
  use_individual_branch = self.use_individual_branch
34
42
  group_by_folder = self.group_by_folder
43
+ collapsed = self.collapsed
44
+ settings: Union[Unset, Dict[str, Any]] = UNSET
45
+ if not isinstance(self.settings, Unset):
46
+ settings = self.settings.to_dict()
47
+
35
48
  exclude_types_override: Union[Unset, List[str]] = UNSET
36
49
  if not isinstance(self.exclude_types_override, Unset):
37
50
  exclude_types_override = []
@@ -52,6 +65,10 @@ class GitRepositorySettings:
52
65
  field_dict["use_individual_branch"] = use_individual_branch
53
66
  if group_by_folder is not UNSET:
54
67
  field_dict["group_by_folder"] = group_by_folder
68
+ if collapsed is not UNSET:
69
+ field_dict["collapsed"] = collapsed
70
+ if settings is not UNSET:
71
+ field_dict["settings"] = settings
55
72
  if exclude_types_override is not UNSET:
56
73
  field_dict["exclude_types_override"] = exclude_types_override
57
74
 
@@ -59,6 +76,8 @@ class GitRepositorySettings:
59
76
 
60
77
  @classmethod
61
78
  def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
79
+ from ..models.git_repository_settings_settings import GitRepositorySettingsSettings
80
+
62
81
  d = src_dict.copy()
63
82
  script_path = d.pop("script_path")
64
83
 
@@ -68,6 +87,15 @@ class GitRepositorySettings:
68
87
 
69
88
  group_by_folder = d.pop("group_by_folder", UNSET)
70
89
 
90
+ collapsed = d.pop("collapsed", UNSET)
91
+
92
+ _settings = d.pop("settings", UNSET)
93
+ settings: Union[Unset, GitRepositorySettingsSettings]
94
+ if isinstance(_settings, Unset):
95
+ settings = UNSET
96
+ else:
97
+ settings = GitRepositorySettingsSettings.from_dict(_settings)
98
+
71
99
  exclude_types_override = []
72
100
  _exclude_types_override = d.pop("exclude_types_override", UNSET)
73
101
  for exclude_types_override_item_data in _exclude_types_override or []:
@@ -82,6 +110,8 @@ class GitRepositorySettings:
82
110
  git_repo_resource_path=git_repo_resource_path,
83
111
  use_individual_branch=use_individual_branch,
84
112
  group_by_folder=group_by_folder,
113
+ collapsed=collapsed,
114
+ settings=settings,
85
115
  exclude_types_override=exclude_types_override,
86
116
  )
87
117
 
@@ -6,11 +6,13 @@ class GitRepositorySettingsExcludeTypesOverrideItem(str, Enum):
6
6
  FLOW = "flow"
7
7
  FOLDER = "folder"
8
8
  GROUP = "group"
9
+ KEY = "key"
9
10
  RESOURCE = "resource"
10
11
  RESOURCETYPE = "resourcetype"
11
12
  SCHEDULE = "schedule"
12
13
  SCRIPT = "script"
13
14
  SECRET = "secret"
15
+ SETTINGS = "settings"
14
16
  TRIGGER = "trigger"
15
17
  USER = "user"
16
18
  VARIABLE = "variable"