windmill-api 1.543.0__py3-none-any.whl → 1.544.1__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 (46) hide show
  1. windmill_api/api/job/{openai_sync_flow_by_path.py → run_dynamic_select.py} +10 -51
  2. windmill_api/api/job/run_wait_result_flow_by_path.py +9 -0
  3. windmill_api/api/job/run_wait_result_script_by_path.py +9 -0
  4. windmill_api/api/job/run_wait_result_script_by_path_get.py +9 -0
  5. windmill_api/models/ai_config.py +18 -0
  6. windmill_api/models/ai_config_max_tokens_per_model.py +44 -0
  7. windmill_api/models/create_gcp_trigger_json_body.py +9 -0
  8. windmill_api/models/dynamic_input_data.py +118 -0
  9. windmill_api/models/{openai_sync_flow_by_path_json_body.py → dynamic_input_data_args.py} +6 -6
  10. windmill_api/models/dynamic_input_data_runnable_ref_type_0.py +76 -0
  11. windmill_api/models/dynamic_input_data_runnable_ref_type_0_runnable_kind.py +9 -0
  12. windmill_api/models/dynamic_input_data_runnable_ref_type_0_source.py +8 -0
  13. windmill_api/models/dynamic_input_data_runnable_ref_type_1.py +85 -0
  14. windmill_api/models/dynamic_input_data_runnable_ref_type_1_language.py +29 -0
  15. windmill_api/models/dynamic_input_data_runnable_ref_type_1_source.py +8 -0
  16. windmill_api/models/edit_copilot_config_json_body.py +20 -0
  17. windmill_api/models/edit_copilot_config_json_body_max_tokens_per_model.py +44 -0
  18. windmill_api/models/edit_large_file_storage_config_json_body_large_file_storage.py +33 -0
  19. windmill_api/models/edit_large_file_storage_config_json_body_large_file_storage_advanced_permissions_item.py +65 -0
  20. windmill_api/models/gcp_trigger_data.py +9 -0
  21. windmill_api/models/get_copilot_info_response_200.py +20 -0
  22. windmill_api/models/get_copilot_info_response_200_max_tokens_per_model.py +44 -0
  23. windmill_api/models/get_large_file_storage_config_response_200.py +28 -0
  24. windmill_api/models/get_large_file_storage_config_response_200_advanced_permissions_item.py +65 -0
  25. windmill_api/models/get_runnable_response_200.py +0 -7
  26. windmill_api/models/get_settings_response_200_ai_config.py +22 -0
  27. windmill_api/models/get_settings_response_200_ai_config_max_tokens_per_model.py +44 -0
  28. windmill_api/models/get_settings_response_200_large_file_storage.py +28 -0
  29. windmill_api/models/get_settings_response_200_large_file_storage_advanced_permissions_item.py +65 -0
  30. windmill_api/models/large_file_storage.py +24 -0
  31. windmill_api/models/large_file_storage_advanced_permissions_item.py +65 -0
  32. windmill_api/models/run_dynamic_select_json_body.py +118 -0
  33. windmill_api/models/{openai_sync_script_by_path_json_body.py → run_dynamic_select_json_body_args.py} +6 -6
  34. windmill_api/models/run_dynamic_select_json_body_runnable_ref_type_0.py +80 -0
  35. windmill_api/models/run_dynamic_select_json_body_runnable_ref_type_0_runnable_kind.py +9 -0
  36. windmill_api/models/run_dynamic_select_json_body_runnable_ref_type_0_source.py +8 -0
  37. windmill_api/models/run_dynamic_select_json_body_runnable_ref_type_1.py +89 -0
  38. windmill_api/models/run_dynamic_select_json_body_runnable_ref_type_1_language.py +29 -0
  39. windmill_api/models/run_dynamic_select_json_body_runnable_ref_type_1_source.py +8 -0
  40. windmill_api/models/s3_permission_rule.py +65 -0
  41. windmill_api/models/update_gcp_trigger_json_body.py +9 -0
  42. {windmill_api-1.543.0.dist-info → windmill_api-1.544.1.dist-info}/METADATA +1 -1
  43. {windmill_api-1.543.0.dist-info → windmill_api-1.544.1.dist-info}/RECORD +45 -23
  44. windmill_api/api/job/openai_sync_script_by_path.py +0 -155
  45. {windmill_api-1.543.0.dist-info → windmill_api-1.544.1.dist-info}/LICENSE +0 -0
  46. {windmill_api-1.543.0.dist-info → windmill_api-1.544.1.dist-info}/WHEEL +0 -0
@@ -0,0 +1,76 @@
1
+ from typing import Any, Dict, List, Type, TypeVar
2
+
3
+ from attrs import define as _attrs_define
4
+ from attrs import field as _attrs_field
5
+
6
+ from ..models.dynamic_input_data_runnable_ref_type_0_runnable_kind import DynamicInputDataRunnableRefType0RunnableKind
7
+ from ..models.dynamic_input_data_runnable_ref_type_0_source import DynamicInputDataRunnableRefType0Source
8
+
9
+ T = TypeVar("T", bound="DynamicInputDataRunnableRefType0")
10
+
11
+
12
+ @_attrs_define
13
+ class DynamicInputDataRunnableRefType0:
14
+ """
15
+ Attributes:
16
+ source (DynamicInputDataRunnableRefType0Source):
17
+ path (str): Path to the deployed script or flow
18
+ runnable_kind (DynamicInputDataRunnableRefType0RunnableKind):
19
+ """
20
+
21
+ source: DynamicInputDataRunnableRefType0Source
22
+ path: str
23
+ runnable_kind: DynamicInputDataRunnableRefType0RunnableKind
24
+ additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
25
+
26
+ def to_dict(self) -> Dict[str, Any]:
27
+ source = self.source.value
28
+
29
+ path = self.path
30
+ runnable_kind = self.runnable_kind.value
31
+
32
+ field_dict: Dict[str, Any] = {}
33
+ field_dict.update(self.additional_properties)
34
+ field_dict.update(
35
+ {
36
+ "source": source,
37
+ "path": path,
38
+ "runnable_kind": runnable_kind,
39
+ }
40
+ )
41
+
42
+ return field_dict
43
+
44
+ @classmethod
45
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
46
+ d = src_dict.copy()
47
+ source = DynamicInputDataRunnableRefType0Source(d.pop("source"))
48
+
49
+ path = d.pop("path")
50
+
51
+ runnable_kind = DynamicInputDataRunnableRefType0RunnableKind(d.pop("runnable_kind"))
52
+
53
+ dynamic_input_data_runnable_ref_type_0 = cls(
54
+ source=source,
55
+ path=path,
56
+ runnable_kind=runnable_kind,
57
+ )
58
+
59
+ dynamic_input_data_runnable_ref_type_0.additional_properties = d
60
+ return dynamic_input_data_runnable_ref_type_0
61
+
62
+ @property
63
+ def additional_keys(self) -> List[str]:
64
+ return list(self.additional_properties.keys())
65
+
66
+ def __getitem__(self, key: str) -> Any:
67
+ return self.additional_properties[key]
68
+
69
+ def __setitem__(self, key: str, value: Any) -> None:
70
+ self.additional_properties[key] = value
71
+
72
+ def __delitem__(self, key: str) -> None:
73
+ del self.additional_properties[key]
74
+
75
+ def __contains__(self, key: str) -> bool:
76
+ return key in self.additional_properties
@@ -0,0 +1,9 @@
1
+ from enum import Enum
2
+
3
+
4
+ class DynamicInputDataRunnableRefType0RunnableKind(str, Enum):
5
+ FLOW = "flow"
6
+ SCRIPT = "script"
7
+
8
+ def __str__(self) -> str:
9
+ return str(self.value)
@@ -0,0 +1,8 @@
1
+ from enum import Enum
2
+
3
+
4
+ class DynamicInputDataRunnableRefType0Source(str, Enum):
5
+ DEPLOYED = "deployed"
6
+
7
+ def __str__(self) -> str:
8
+ return str(self.value)
@@ -0,0 +1,85 @@
1
+ from typing import Any, Dict, List, Type, TypeVar, Union
2
+
3
+ from attrs import define as _attrs_define
4
+ from attrs import field as _attrs_field
5
+
6
+ from ..models.dynamic_input_data_runnable_ref_type_1_language import DynamicInputDataRunnableRefType1Language
7
+ from ..models.dynamic_input_data_runnable_ref_type_1_source import DynamicInputDataRunnableRefType1Source
8
+ from ..types import UNSET, Unset
9
+
10
+ T = TypeVar("T", bound="DynamicInputDataRunnableRefType1")
11
+
12
+
13
+ @_attrs_define
14
+ class DynamicInputDataRunnableRefType1:
15
+ """
16
+ Attributes:
17
+ source (DynamicInputDataRunnableRefType1Source):
18
+ code (str): Code content for inline execution
19
+ language (Union[Unset, DynamicInputDataRunnableRefType1Language]):
20
+ """
21
+
22
+ source: DynamicInputDataRunnableRefType1Source
23
+ code: str
24
+ language: Union[Unset, DynamicInputDataRunnableRefType1Language] = UNSET
25
+ additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
26
+
27
+ def to_dict(self) -> Dict[str, Any]:
28
+ source = self.source.value
29
+
30
+ code = self.code
31
+ language: Union[Unset, str] = UNSET
32
+ if not isinstance(self.language, Unset):
33
+ language = self.language.value
34
+
35
+ field_dict: Dict[str, Any] = {}
36
+ field_dict.update(self.additional_properties)
37
+ field_dict.update(
38
+ {
39
+ "source": source,
40
+ "code": code,
41
+ }
42
+ )
43
+ if language is not UNSET:
44
+ field_dict["language"] = language
45
+
46
+ return field_dict
47
+
48
+ @classmethod
49
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
50
+ d = src_dict.copy()
51
+ source = DynamicInputDataRunnableRefType1Source(d.pop("source"))
52
+
53
+ code = d.pop("code")
54
+
55
+ _language = d.pop("language", UNSET)
56
+ language: Union[Unset, DynamicInputDataRunnableRefType1Language]
57
+ if isinstance(_language, Unset):
58
+ language = UNSET
59
+ else:
60
+ language = DynamicInputDataRunnableRefType1Language(_language)
61
+
62
+ dynamic_input_data_runnable_ref_type_1 = cls(
63
+ source=source,
64
+ code=code,
65
+ language=language,
66
+ )
67
+
68
+ dynamic_input_data_runnable_ref_type_1.additional_properties = d
69
+ return dynamic_input_data_runnable_ref_type_1
70
+
71
+ @property
72
+ def additional_keys(self) -> List[str]:
73
+ return list(self.additional_properties.keys())
74
+
75
+ def __getitem__(self, key: str) -> Any:
76
+ return self.additional_properties[key]
77
+
78
+ def __setitem__(self, key: str, value: Any) -> None:
79
+ self.additional_properties[key] = value
80
+
81
+ def __delitem__(self, key: str) -> None:
82
+ del self.additional_properties[key]
83
+
84
+ def __contains__(self, key: str) -> bool:
85
+ return key in self.additional_properties
@@ -0,0 +1,29 @@
1
+ from enum import Enum
2
+
3
+
4
+ class DynamicInputDataRunnableRefType1Language(str, Enum):
5
+ ANSIBLE = "ansible"
6
+ BASH = "bash"
7
+ BIGQUERY = "bigquery"
8
+ BUN = "bun"
9
+ CSHARP = "csharp"
10
+ DENO = "deno"
11
+ DUCKDB = "duckdb"
12
+ GO = "go"
13
+ GRAPHQL = "graphql"
14
+ JAVA = "java"
15
+ MSSQL = "mssql"
16
+ MYSQL = "mysql"
17
+ NATIVETS = "nativets"
18
+ NU = "nu"
19
+ ORACLEDB = "oracledb"
20
+ PHP = "php"
21
+ POSTGRESQL = "postgresql"
22
+ POWERSHELL = "powershell"
23
+ PYTHON3 = "python3"
24
+ RUBY = "ruby"
25
+ RUST = "rust"
26
+ SNOWFLAKE = "snowflake"
27
+
28
+ def __str__(self) -> str:
29
+ return str(self.value)
@@ -0,0 +1,8 @@
1
+ from enum import Enum
2
+
3
+
4
+ class DynamicInputDataRunnableRefType1Source(str, Enum):
5
+ INLINE = "inline"
6
+
7
+ def __str__(self) -> str:
8
+ return str(self.value)
@@ -11,6 +11,7 @@ if TYPE_CHECKING:
11
11
  )
12
12
  from ..models.edit_copilot_config_json_body_custom_prompts import EditCopilotConfigJsonBodyCustomPrompts
13
13
  from ..models.edit_copilot_config_json_body_default_model import EditCopilotConfigJsonBodyDefaultModel
14
+ from ..models.edit_copilot_config_json_body_max_tokens_per_model import EditCopilotConfigJsonBodyMaxTokensPerModel
14
15
  from ..models.edit_copilot_config_json_body_providers import EditCopilotConfigJsonBodyProviders
15
16
 
16
17
 
@@ -25,12 +26,14 @@ class EditCopilotConfigJsonBody:
25
26
  default_model (Union[Unset, EditCopilotConfigJsonBodyDefaultModel]):
26
27
  code_completion_model (Union[Unset, EditCopilotConfigJsonBodyCodeCompletionModel]):
27
28
  custom_prompts (Union[Unset, EditCopilotConfigJsonBodyCustomPrompts]):
29
+ max_tokens_per_model (Union[Unset, EditCopilotConfigJsonBodyMaxTokensPerModel]):
28
30
  """
29
31
 
30
32
  providers: Union[Unset, "EditCopilotConfigJsonBodyProviders"] = UNSET
31
33
  default_model: Union[Unset, "EditCopilotConfigJsonBodyDefaultModel"] = UNSET
32
34
  code_completion_model: Union[Unset, "EditCopilotConfigJsonBodyCodeCompletionModel"] = UNSET
33
35
  custom_prompts: Union[Unset, "EditCopilotConfigJsonBodyCustomPrompts"] = UNSET
36
+ max_tokens_per_model: Union[Unset, "EditCopilotConfigJsonBodyMaxTokensPerModel"] = UNSET
34
37
  additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
35
38
 
36
39
  def to_dict(self) -> Dict[str, Any]:
@@ -50,6 +53,10 @@ class EditCopilotConfigJsonBody:
50
53
  if not isinstance(self.custom_prompts, Unset):
51
54
  custom_prompts = self.custom_prompts.to_dict()
52
55
 
56
+ max_tokens_per_model: Union[Unset, Dict[str, Any]] = UNSET
57
+ if not isinstance(self.max_tokens_per_model, Unset):
58
+ max_tokens_per_model = self.max_tokens_per_model.to_dict()
59
+
53
60
  field_dict: Dict[str, Any] = {}
54
61
  field_dict.update(self.additional_properties)
55
62
  field_dict.update({})
@@ -61,6 +68,8 @@ class EditCopilotConfigJsonBody:
61
68
  field_dict["code_completion_model"] = code_completion_model
62
69
  if custom_prompts is not UNSET:
63
70
  field_dict["custom_prompts"] = custom_prompts
71
+ if max_tokens_per_model is not UNSET:
72
+ field_dict["max_tokens_per_model"] = max_tokens_per_model
64
73
 
65
74
  return field_dict
66
75
 
@@ -71,6 +80,9 @@ class EditCopilotConfigJsonBody:
71
80
  )
72
81
  from ..models.edit_copilot_config_json_body_custom_prompts import EditCopilotConfigJsonBodyCustomPrompts
73
82
  from ..models.edit_copilot_config_json_body_default_model import EditCopilotConfigJsonBodyDefaultModel
83
+ from ..models.edit_copilot_config_json_body_max_tokens_per_model import (
84
+ EditCopilotConfigJsonBodyMaxTokensPerModel,
85
+ )
74
86
  from ..models.edit_copilot_config_json_body_providers import EditCopilotConfigJsonBodyProviders
75
87
 
76
88
  d = src_dict.copy()
@@ -102,11 +114,19 @@ class EditCopilotConfigJsonBody:
102
114
  else:
103
115
  custom_prompts = EditCopilotConfigJsonBodyCustomPrompts.from_dict(_custom_prompts)
104
116
 
117
+ _max_tokens_per_model = d.pop("max_tokens_per_model", UNSET)
118
+ max_tokens_per_model: Union[Unset, EditCopilotConfigJsonBodyMaxTokensPerModel]
119
+ if isinstance(_max_tokens_per_model, Unset):
120
+ max_tokens_per_model = UNSET
121
+ else:
122
+ max_tokens_per_model = EditCopilotConfigJsonBodyMaxTokensPerModel.from_dict(_max_tokens_per_model)
123
+
105
124
  edit_copilot_config_json_body = cls(
106
125
  providers=providers,
107
126
  default_model=default_model,
108
127
  code_completion_model=code_completion_model,
109
128
  custom_prompts=custom_prompts,
129
+ max_tokens_per_model=max_tokens_per_model,
110
130
  )
111
131
 
112
132
  edit_copilot_config_json_body.additional_properties = d
@@ -0,0 +1,44 @@
1
+ from typing import Any, Dict, List, Type, TypeVar
2
+
3
+ from attrs import define as _attrs_define
4
+ from attrs import field as _attrs_field
5
+
6
+ T = TypeVar("T", bound="EditCopilotConfigJsonBodyMaxTokensPerModel")
7
+
8
+
9
+ @_attrs_define
10
+ class EditCopilotConfigJsonBodyMaxTokensPerModel:
11
+ """ """
12
+
13
+ additional_properties: Dict[str, int] = _attrs_field(init=False, factory=dict)
14
+
15
+ def to_dict(self) -> Dict[str, Any]:
16
+ field_dict: Dict[str, Any] = {}
17
+ field_dict.update(self.additional_properties)
18
+ field_dict.update({})
19
+
20
+ return field_dict
21
+
22
+ @classmethod
23
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
24
+ d = src_dict.copy()
25
+ edit_copilot_config_json_body_max_tokens_per_model = cls()
26
+
27
+ edit_copilot_config_json_body_max_tokens_per_model.additional_properties = d
28
+ return edit_copilot_config_json_body_max_tokens_per_model
29
+
30
+ @property
31
+ def additional_keys(self) -> List[str]:
32
+ return list(self.additional_properties.keys())
33
+
34
+ def __getitem__(self, key: str) -> int:
35
+ return self.additional_properties[key]
36
+
37
+ def __setitem__(self, key: str, value: int) -> None:
38
+ self.additional_properties[key] = value
39
+
40
+ def __delitem__(self, key: str) -> None:
41
+ del self.additional_properties[key]
42
+
43
+ def __contains__(self, key: str) -> bool:
44
+ return key in self.additional_properties
@@ -9,6 +9,9 @@ from ..models.edit_large_file_storage_config_json_body_large_file_storage_type i
9
9
  from ..types import UNSET, Unset
10
10
 
11
11
  if TYPE_CHECKING:
12
+ from ..models.edit_large_file_storage_config_json_body_large_file_storage_advanced_permissions_item import (
13
+ EditLargeFileStorageConfigJsonBodyLargeFileStorageAdvancedPermissionsItem,
14
+ )
12
15
  from ..models.edit_large_file_storage_config_json_body_large_file_storage_secondary_storage import (
13
16
  EditLargeFileStorageConfigJsonBodyLargeFileStorageSecondaryStorage,
14
17
  )
@@ -26,6 +29,8 @@ class EditLargeFileStorageConfigJsonBodyLargeFileStorage:
26
29
  azure_blob_resource_path (Union[Unset, str]):
27
30
  gcs_resource_path (Union[Unset, str]):
28
31
  public_resource (Union[Unset, bool]):
32
+ advanced_permissions (Union[Unset,
33
+ List['EditLargeFileStorageConfigJsonBodyLargeFileStorageAdvancedPermissionsItem']]):
29
34
  secondary_storage (Union[Unset, EditLargeFileStorageConfigJsonBodyLargeFileStorageSecondaryStorage]):
30
35
  """
31
36
 
@@ -34,6 +39,9 @@ class EditLargeFileStorageConfigJsonBodyLargeFileStorage:
34
39
  azure_blob_resource_path: Union[Unset, str] = UNSET
35
40
  gcs_resource_path: Union[Unset, str] = UNSET
36
41
  public_resource: Union[Unset, bool] = UNSET
42
+ advanced_permissions: Union[
43
+ Unset, List["EditLargeFileStorageConfigJsonBodyLargeFileStorageAdvancedPermissionsItem"]
44
+ ] = UNSET
37
45
  secondary_storage: Union[Unset, "EditLargeFileStorageConfigJsonBodyLargeFileStorageSecondaryStorage"] = UNSET
38
46
  additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
39
47
 
@@ -46,6 +54,14 @@ class EditLargeFileStorageConfigJsonBodyLargeFileStorage:
46
54
  azure_blob_resource_path = self.azure_blob_resource_path
47
55
  gcs_resource_path = self.gcs_resource_path
48
56
  public_resource = self.public_resource
57
+ advanced_permissions: Union[Unset, List[Dict[str, Any]]] = UNSET
58
+ if not isinstance(self.advanced_permissions, Unset):
59
+ advanced_permissions = []
60
+ for advanced_permissions_item_data in self.advanced_permissions:
61
+ advanced_permissions_item = advanced_permissions_item_data.to_dict()
62
+
63
+ advanced_permissions.append(advanced_permissions_item)
64
+
49
65
  secondary_storage: Union[Unset, Dict[str, Any]] = UNSET
50
66
  if not isinstance(self.secondary_storage, Unset):
51
67
  secondary_storage = self.secondary_storage.to_dict()
@@ -63,6 +79,8 @@ class EditLargeFileStorageConfigJsonBodyLargeFileStorage:
63
79
  field_dict["gcs_resource_path"] = gcs_resource_path
64
80
  if public_resource is not UNSET:
65
81
  field_dict["public_resource"] = public_resource
82
+ if advanced_permissions is not UNSET:
83
+ field_dict["advanced_permissions"] = advanced_permissions
66
84
  if secondary_storage is not UNSET:
67
85
  field_dict["secondary_storage"] = secondary_storage
68
86
 
@@ -70,6 +88,9 @@ class EditLargeFileStorageConfigJsonBodyLargeFileStorage:
70
88
 
71
89
  @classmethod
72
90
  def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
91
+ from ..models.edit_large_file_storage_config_json_body_large_file_storage_advanced_permissions_item import (
92
+ EditLargeFileStorageConfigJsonBodyLargeFileStorageAdvancedPermissionsItem,
93
+ )
73
94
  from ..models.edit_large_file_storage_config_json_body_large_file_storage_secondary_storage import (
74
95
  EditLargeFileStorageConfigJsonBodyLargeFileStorageSecondaryStorage,
75
96
  )
@@ -90,6 +111,17 @@ class EditLargeFileStorageConfigJsonBodyLargeFileStorage:
90
111
 
91
112
  public_resource = d.pop("public_resource", UNSET)
92
113
 
114
+ advanced_permissions = []
115
+ _advanced_permissions = d.pop("advanced_permissions", UNSET)
116
+ for advanced_permissions_item_data in _advanced_permissions or []:
117
+ advanced_permissions_item = (
118
+ EditLargeFileStorageConfigJsonBodyLargeFileStorageAdvancedPermissionsItem.from_dict(
119
+ advanced_permissions_item_data
120
+ )
121
+ )
122
+
123
+ advanced_permissions.append(advanced_permissions_item)
124
+
93
125
  _secondary_storage = d.pop("secondary_storage", UNSET)
94
126
  secondary_storage: Union[Unset, EditLargeFileStorageConfigJsonBodyLargeFileStorageSecondaryStorage]
95
127
  if isinstance(_secondary_storage, Unset):
@@ -105,6 +137,7 @@ class EditLargeFileStorageConfigJsonBodyLargeFileStorage:
105
137
  azure_blob_resource_path=azure_blob_resource_path,
106
138
  gcs_resource_path=gcs_resource_path,
107
139
  public_resource=public_resource,
140
+ advanced_permissions=advanced_permissions,
108
141
  secondary_storage=secondary_storage,
109
142
  )
110
143
 
@@ -0,0 +1,65 @@
1
+ from typing import Any, Dict, List, Type, TypeVar
2
+
3
+ from attrs import define as _attrs_define
4
+ from attrs import field as _attrs_field
5
+
6
+ T = TypeVar("T", bound="EditLargeFileStorageConfigJsonBodyLargeFileStorageAdvancedPermissionsItem")
7
+
8
+
9
+ @_attrs_define
10
+ class EditLargeFileStorageConfigJsonBodyLargeFileStorageAdvancedPermissionsItem:
11
+ """
12
+ Attributes:
13
+ pattern (str):
14
+ allow (str):
15
+ """
16
+
17
+ pattern: str
18
+ allow: str
19
+ additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
20
+
21
+ def to_dict(self) -> Dict[str, Any]:
22
+ pattern = self.pattern
23
+ allow = self.allow
24
+
25
+ field_dict: Dict[str, Any] = {}
26
+ field_dict.update(self.additional_properties)
27
+ field_dict.update(
28
+ {
29
+ "pattern": pattern,
30
+ "allow": allow,
31
+ }
32
+ )
33
+
34
+ return field_dict
35
+
36
+ @classmethod
37
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
38
+ d = src_dict.copy()
39
+ pattern = d.pop("pattern")
40
+
41
+ allow = d.pop("allow")
42
+
43
+ edit_large_file_storage_config_json_body_large_file_storage_advanced_permissions_item = cls(
44
+ pattern=pattern,
45
+ allow=allow,
46
+ )
47
+
48
+ edit_large_file_storage_config_json_body_large_file_storage_advanced_permissions_item.additional_properties = d
49
+ return edit_large_file_storage_config_json_body_large_file_storage_advanced_permissions_item
50
+
51
+ @property
52
+ def additional_keys(self) -> List[str]:
53
+ return list(self.additional_properties.keys())
54
+
55
+ def __getitem__(self, key: str) -> Any:
56
+ return self.additional_properties[key]
57
+
58
+ def __setitem__(self, key: str, value: Any) -> None:
59
+ self.additional_properties[key] = value
60
+
61
+ def __delitem__(self, key: str) -> None:
62
+ del self.additional_properties[key]
63
+
64
+ def __contains__(self, key: str) -> bool:
65
+ return key in self.additional_properties
@@ -33,6 +33,8 @@ class GcpTriggerData:
33
33
  delivery_config (Union[Unset, GcpTriggerDataDeliveryConfig]):
34
34
  enabled (Union[Unset, bool]):
35
35
  auto_acknowledge_msg (Union[Unset, bool]):
36
+ ack_deadline (Union[Unset, int]): Time in seconds within which the message must be acknowledged. If not
37
+ provided, defaults to the subscription's acknowledgment deadline (600 seconds).
36
38
  error_handler_path (Union[Unset, str]):
37
39
  error_handler_args (Union[Unset, GcpTriggerDataErrorHandlerArgs]): The arguments to pass to the script or flow
38
40
  retry (Union[Unset, GcpTriggerDataRetry]):
@@ -50,6 +52,7 @@ class GcpTriggerData:
50
52
  delivery_config: Union[Unset, "GcpTriggerDataDeliveryConfig"] = UNSET
51
53
  enabled: Union[Unset, bool] = UNSET
52
54
  auto_acknowledge_msg: Union[Unset, bool] = UNSET
55
+ ack_deadline: Union[Unset, int] = UNSET
53
56
  error_handler_path: Union[Unset, str] = UNSET
54
57
  error_handler_args: Union[Unset, "GcpTriggerDataErrorHandlerArgs"] = UNSET
55
58
  retry: Union[Unset, "GcpTriggerDataRetry"] = UNSET
@@ -75,6 +78,7 @@ class GcpTriggerData:
75
78
 
76
79
  enabled = self.enabled
77
80
  auto_acknowledge_msg = self.auto_acknowledge_msg
81
+ ack_deadline = self.ack_deadline
78
82
  error_handler_path = self.error_handler_path
79
83
  error_handler_args: Union[Unset, Dict[str, Any]] = UNSET
80
84
  if not isinstance(self.error_handler_args, Unset):
@@ -108,6 +112,8 @@ class GcpTriggerData:
108
112
  field_dict["enabled"] = enabled
109
113
  if auto_acknowledge_msg is not UNSET:
110
114
  field_dict["auto_acknowledge_msg"] = auto_acknowledge_msg
115
+ if ack_deadline is not UNSET:
116
+ field_dict["ack_deadline"] = ack_deadline
111
117
  if error_handler_path is not UNSET:
112
118
  field_dict["error_handler_path"] = error_handler_path
113
119
  if error_handler_args is not UNSET:
@@ -158,6 +164,8 @@ class GcpTriggerData:
158
164
 
159
165
  auto_acknowledge_msg = d.pop("auto_acknowledge_msg", UNSET)
160
166
 
167
+ ack_deadline = d.pop("ack_deadline", UNSET)
168
+
161
169
  error_handler_path = d.pop("error_handler_path", UNSET)
162
170
 
163
171
  _error_handler_args = d.pop("error_handler_args", UNSET)
@@ -187,6 +195,7 @@ class GcpTriggerData:
187
195
  delivery_config=delivery_config,
188
196
  enabled=enabled,
189
197
  auto_acknowledge_msg=auto_acknowledge_msg,
198
+ ack_deadline=ack_deadline,
190
199
  error_handler_path=error_handler_path,
191
200
  error_handler_args=error_handler_args,
192
201
  retry=retry,
@@ -11,6 +11,7 @@ if TYPE_CHECKING:
11
11
  )
12
12
  from ..models.get_copilot_info_response_200_custom_prompts import GetCopilotInfoResponse200CustomPrompts
13
13
  from ..models.get_copilot_info_response_200_default_model import GetCopilotInfoResponse200DefaultModel
14
+ from ..models.get_copilot_info_response_200_max_tokens_per_model import GetCopilotInfoResponse200MaxTokensPerModel
14
15
  from ..models.get_copilot_info_response_200_providers import GetCopilotInfoResponse200Providers
15
16
 
16
17
 
@@ -25,12 +26,14 @@ class GetCopilotInfoResponse200:
25
26
  default_model (Union[Unset, GetCopilotInfoResponse200DefaultModel]):
26
27
  code_completion_model (Union[Unset, GetCopilotInfoResponse200CodeCompletionModel]):
27
28
  custom_prompts (Union[Unset, GetCopilotInfoResponse200CustomPrompts]):
29
+ max_tokens_per_model (Union[Unset, GetCopilotInfoResponse200MaxTokensPerModel]):
28
30
  """
29
31
 
30
32
  providers: Union[Unset, "GetCopilotInfoResponse200Providers"] = UNSET
31
33
  default_model: Union[Unset, "GetCopilotInfoResponse200DefaultModel"] = UNSET
32
34
  code_completion_model: Union[Unset, "GetCopilotInfoResponse200CodeCompletionModel"] = UNSET
33
35
  custom_prompts: Union[Unset, "GetCopilotInfoResponse200CustomPrompts"] = UNSET
36
+ max_tokens_per_model: Union[Unset, "GetCopilotInfoResponse200MaxTokensPerModel"] = UNSET
34
37
  additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
35
38
 
36
39
  def to_dict(self) -> Dict[str, Any]:
@@ -50,6 +53,10 @@ class GetCopilotInfoResponse200:
50
53
  if not isinstance(self.custom_prompts, Unset):
51
54
  custom_prompts = self.custom_prompts.to_dict()
52
55
 
56
+ max_tokens_per_model: Union[Unset, Dict[str, Any]] = UNSET
57
+ if not isinstance(self.max_tokens_per_model, Unset):
58
+ max_tokens_per_model = self.max_tokens_per_model.to_dict()
59
+
53
60
  field_dict: Dict[str, Any] = {}
54
61
  field_dict.update(self.additional_properties)
55
62
  field_dict.update({})
@@ -61,6 +68,8 @@ class GetCopilotInfoResponse200:
61
68
  field_dict["code_completion_model"] = code_completion_model
62
69
  if custom_prompts is not UNSET:
63
70
  field_dict["custom_prompts"] = custom_prompts
71
+ if max_tokens_per_model is not UNSET:
72
+ field_dict["max_tokens_per_model"] = max_tokens_per_model
64
73
 
65
74
  return field_dict
66
75
 
@@ -71,6 +80,9 @@ class GetCopilotInfoResponse200:
71
80
  )
72
81
  from ..models.get_copilot_info_response_200_custom_prompts import GetCopilotInfoResponse200CustomPrompts
73
82
  from ..models.get_copilot_info_response_200_default_model import GetCopilotInfoResponse200DefaultModel
83
+ from ..models.get_copilot_info_response_200_max_tokens_per_model import (
84
+ GetCopilotInfoResponse200MaxTokensPerModel,
85
+ )
74
86
  from ..models.get_copilot_info_response_200_providers import GetCopilotInfoResponse200Providers
75
87
 
76
88
  d = src_dict.copy()
@@ -102,11 +114,19 @@ class GetCopilotInfoResponse200:
102
114
  else:
103
115
  custom_prompts = GetCopilotInfoResponse200CustomPrompts.from_dict(_custom_prompts)
104
116
 
117
+ _max_tokens_per_model = d.pop("max_tokens_per_model", UNSET)
118
+ max_tokens_per_model: Union[Unset, GetCopilotInfoResponse200MaxTokensPerModel]
119
+ if isinstance(_max_tokens_per_model, Unset):
120
+ max_tokens_per_model = UNSET
121
+ else:
122
+ max_tokens_per_model = GetCopilotInfoResponse200MaxTokensPerModel.from_dict(_max_tokens_per_model)
123
+
105
124
  get_copilot_info_response_200 = cls(
106
125
  providers=providers,
107
126
  default_model=default_model,
108
127
  code_completion_model=code_completion_model,
109
128
  custom_prompts=custom_prompts,
129
+ max_tokens_per_model=max_tokens_per_model,
110
130
  )
111
131
 
112
132
  get_copilot_info_response_200.additional_properties = d
@@ -0,0 +1,44 @@
1
+ from typing import Any, Dict, List, Type, TypeVar
2
+
3
+ from attrs import define as _attrs_define
4
+ from attrs import field as _attrs_field
5
+
6
+ T = TypeVar("T", bound="GetCopilotInfoResponse200MaxTokensPerModel")
7
+
8
+
9
+ @_attrs_define
10
+ class GetCopilotInfoResponse200MaxTokensPerModel:
11
+ """ """
12
+
13
+ additional_properties: Dict[str, int] = _attrs_field(init=False, factory=dict)
14
+
15
+ def to_dict(self) -> Dict[str, Any]:
16
+ field_dict: Dict[str, Any] = {}
17
+ field_dict.update(self.additional_properties)
18
+ field_dict.update({})
19
+
20
+ return field_dict
21
+
22
+ @classmethod
23
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
24
+ d = src_dict.copy()
25
+ get_copilot_info_response_200_max_tokens_per_model = cls()
26
+
27
+ get_copilot_info_response_200_max_tokens_per_model.additional_properties = d
28
+ return get_copilot_info_response_200_max_tokens_per_model
29
+
30
+ @property
31
+ def additional_keys(self) -> List[str]:
32
+ return list(self.additional_properties.keys())
33
+
34
+ def __getitem__(self, key: str) -> int:
35
+ return self.additional_properties[key]
36
+
37
+ def __setitem__(self, key: str, value: int) -> None:
38
+ self.additional_properties[key] = value
39
+
40
+ def __delitem__(self, key: str) -> None:
41
+ del self.additional_properties[key]
42
+
43
+ def __contains__(self, key: str) -> bool:
44
+ return key in self.additional_properties