beamlit 0.1.0__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (211) hide show
  1. beamlit/__init__.py +8 -0
  2. beamlit/api/__init__.py +1 -0
  3. beamlit/api/agents/__init__.py +0 -0
  4. beamlit/api/agents/create_agent.py +155 -0
  5. beamlit/api/agents/create_agent_release.py +146 -0
  6. beamlit/api/agents/delete_agent.py +146 -0
  7. beamlit/api/agents/delete_agent_deployment.py +163 -0
  8. beamlit/api/agents/delete_agent_deployment_history.py +172 -0
  9. beamlit/api/agents/get_agent.py +146 -0
  10. beamlit/api/agents/get_agent_deployment.py +163 -0
  11. beamlit/api/agents/get_agent_deployment_history.py +172 -0
  12. beamlit/api/agents/get_agent_deployment_logs.py +164 -0
  13. beamlit/api/agents/get_agent_deployment_metrics.py +159 -0
  14. beamlit/api/agents/get_agent_metrics.py +150 -0
  15. beamlit/api/agents/list_agent_deployment_history.py +164 -0
  16. beamlit/api/agents/list_agent_deployments.py +155 -0
  17. beamlit/api/agents/list_agents.py +127 -0
  18. beamlit/api/agents/put_agent_deployment.py +185 -0
  19. beamlit/api/agents/put_agent_deployment_history.py +198 -0
  20. beamlit/api/agents/update_agent.py +168 -0
  21. beamlit/api/authentication_providers/__init__.py +0 -0
  22. beamlit/api/authentication_providers/get_model_with_repo_for_authentication_provider.py +184 -0
  23. beamlit/api/authentication_providers/list_models_for_authentication_provider.py +163 -0
  24. beamlit/api/authentication_providers/list_organizations_for_authentication_provider.py +163 -0
  25. beamlit/api/configurations/__init__.py +0 -0
  26. beamlit/api/configurations/get_configuration.py +122 -0
  27. beamlit/api/environments/__init__.py +0 -0
  28. beamlit/api/environments/create_environment.py +167 -0
  29. beamlit/api/environments/delete_environment.py +154 -0
  30. beamlit/api/environments/get_environment.py +154 -0
  31. beamlit/api/environments/get_environment_metrics.py +158 -0
  32. beamlit/api/environments/list_environments.py +139 -0
  33. beamlit/api/environments/update_environment.py +180 -0
  34. beamlit/api/functions/__init__.py +0 -0
  35. beamlit/api/functions/create_function.py +155 -0
  36. beamlit/api/functions/create_function_release.py +150 -0
  37. beamlit/api/functions/delete_function.py +146 -0
  38. beamlit/api/functions/delete_function_deployment.py +163 -0
  39. beamlit/api/functions/get_function.py +146 -0
  40. beamlit/api/functions/get_function_deployment.py +163 -0
  41. beamlit/api/functions/get_function_deployment_logs.py +164 -0
  42. beamlit/api/functions/get_function_deployment_metrics.py +159 -0
  43. beamlit/api/functions/get_function_metrics.py +150 -0
  44. beamlit/api/functions/list_function_deployments.py +155 -0
  45. beamlit/api/functions/list_functions.py +131 -0
  46. beamlit/api/functions/put_function_deployment.py +185 -0
  47. beamlit/api/functions/update_function.py +168 -0
  48. beamlit/api/history/__init__.py +0 -0
  49. beamlit/api/history/get_agents_history.py +155 -0
  50. beamlit/api/history/list_agents_history.py +131 -0
  51. beamlit/api/invitations/__init__.py +0 -0
  52. beamlit/api/invitations/list_all_pending_invitations.py +142 -0
  53. beamlit/api/locations/__init__.py +0 -0
  54. beamlit/api/locations/list_locations.py +139 -0
  55. beamlit/api/metrics/__init__.py +0 -0
  56. beamlit/api/metrics/get_metrics.py +130 -0
  57. beamlit/api/model_providers/__init__.py +0 -0
  58. beamlit/api/model_providers/create_model_provider.py +163 -0
  59. beamlit/api/model_providers/delete_model_provider.py +154 -0
  60. beamlit/api/model_providers/get_model_provider.py +154 -0
  61. beamlit/api/model_providers/list_model_providers.py +139 -0
  62. beamlit/api/model_providers/update_model_provider.py +176 -0
  63. beamlit/api/models/__init__.py +0 -0
  64. beamlit/api/models/create_model.py +168 -0
  65. beamlit/api/models/delete_model.py +154 -0
  66. beamlit/api/models/delete_model_deployment.py +171 -0
  67. beamlit/api/models/get_model.py +154 -0
  68. beamlit/api/models/get_model_deployment.py +171 -0
  69. beamlit/api/models/get_model_deployment_logs.py +168 -0
  70. beamlit/api/models/get_model_deployment_metrics.py +163 -0
  71. beamlit/api/models/get_model_metrics.py +154 -0
  72. beamlit/api/models/list_model_deployments.py +163 -0
  73. beamlit/api/models/list_models.py +135 -0
  74. beamlit/api/models/put_model_deployment.py +193 -0
  75. beamlit/api/models/release_model.py +154 -0
  76. beamlit/api/models/update_model.py +181 -0
  77. beamlit/api/policies/__init__.py +0 -0
  78. beamlit/api/policies/create_policy.py +167 -0
  79. beamlit/api/policies/delete_policy.py +154 -0
  80. beamlit/api/policies/get_policy.py +154 -0
  81. beamlit/api/policies/list_policies.py +139 -0
  82. beamlit/api/policies/update_policy.py +180 -0
  83. beamlit/api/service_accounts/__init__.py +0 -0
  84. beamlit/api/service_accounts/create_api_key_for_service_account.py +177 -0
  85. beamlit/api/service_accounts/create_workspace_service_account.py +168 -0
  86. beamlit/api/service_accounts/delete_api_key_for_service_account.py +104 -0
  87. beamlit/api/service_accounts/delete_workspace_service_account.py +158 -0
  88. beamlit/api/service_accounts/get_workspace_service_accounts.py +139 -0
  89. beamlit/api/service_accounts/list_api_keys_for_service_account.py +163 -0
  90. beamlit/api/service_accounts/update_workspace_service_account.py +181 -0
  91. beamlit/api/store/__init__.py +0 -0
  92. beamlit/api/store/get_store_agent.py +146 -0
  93. beamlit/api/store/get_store_function.py +146 -0
  94. beamlit/api/store/list_store_agents.py +131 -0
  95. beamlit/api/store/list_store_functions.py +131 -0
  96. beamlit/api/workspaces/__init__.py +0 -0
  97. beamlit/api/workspaces/accept_workspace_invitation.py +161 -0
  98. beamlit/api/workspaces/create_worspace.py +163 -0
  99. beamlit/api/workspaces/decline_workspace_invitation.py +158 -0
  100. beamlit/api/workspaces/delete_workspace.py +154 -0
  101. beamlit/api/workspaces/get_workspace.py +154 -0
  102. beamlit/api/workspaces/invite_workspace_user.py +174 -0
  103. beamlit/api/workspaces/leave_workspace.py +161 -0
  104. beamlit/api/workspaces/list_workspace_users.py +139 -0
  105. beamlit/api/workspaces/list_workspaces.py +139 -0
  106. beamlit/api/workspaces/remove_workspace_user.py +101 -0
  107. beamlit/api/workspaces/update_workspace.py +176 -0
  108. beamlit/api/workspaces/update_workspace_user_role.py +187 -0
  109. beamlit/authentication/__init__.py +24 -0
  110. beamlit/authentication/apikey.py +14 -0
  111. beamlit/authentication/authentication.py +35 -0
  112. beamlit/authentication/credentials.py +165 -0
  113. beamlit/authentication/device_mode.py +115 -0
  114. beamlit/client.py +270 -0
  115. beamlit/errors.py +16 -0
  116. beamlit/models/__init__.py +189 -0
  117. beamlit/models/acl.py +149 -0
  118. beamlit/models/agent.py +151 -0
  119. beamlit/models/agent_chain.py +77 -0
  120. beamlit/models/agent_configuration.py +68 -0
  121. beamlit/models/agent_deployment.py +327 -0
  122. beamlit/models/agent_deployment_configuration.py +43 -0
  123. beamlit/models/agent_deployment_history.py +183 -0
  124. beamlit/models/agent_deployment_history_event.py +131 -0
  125. beamlit/models/agent_deployment_pod_template.py +43 -0
  126. beamlit/models/agent_release.py +68 -0
  127. beamlit/models/api_key.py +140 -0
  128. beamlit/models/authentication_provider_model.py +142 -0
  129. beamlit/models/authentication_provider_organization.py +86 -0
  130. beamlit/models/configuration.py +72 -0
  131. beamlit/models/continent.py +68 -0
  132. beamlit/models/country.py +68 -0
  133. beamlit/models/create_api_key_for_service_account_body.py +67 -0
  134. beamlit/models/create_workspace_service_account_body.py +69 -0
  135. beamlit/models/create_workspace_service_account_response_200.py +103 -0
  136. beamlit/models/delete_workspace_service_account_response_200.py +94 -0
  137. beamlit/models/deployment_configuration.py +68 -0
  138. beamlit/models/deployment_configurations.py +43 -0
  139. beamlit/models/deployment_serverless_config.py +129 -0
  140. beamlit/models/environment.py +162 -0
  141. beamlit/models/environment_metrics.py +75 -0
  142. beamlit/models/flavor.py +68 -0
  143. beamlit/models/function.py +151 -0
  144. beamlit/models/function_configuration.py +68 -0
  145. beamlit/models/function_deployment.py +327 -0
  146. beamlit/models/function_deployment_configuration.py +43 -0
  147. beamlit/models/function_deployment_pod_template.py +43 -0
  148. beamlit/models/function_kit.py +95 -0
  149. beamlit/models/function_provider_ref.py +68 -0
  150. beamlit/models/function_release.py +68 -0
  151. beamlit/models/get_workspace_service_accounts_response_200_item.py +94 -0
  152. beamlit/models/invite_workspace_user_body.py +58 -0
  153. beamlit/models/labels.py +43 -0
  154. beamlit/models/labels_type_0.py +43 -0
  155. beamlit/models/location.py +120 -0
  156. beamlit/models/location_response.py +111 -0
  157. beamlit/models/metric.py +68 -0
  158. beamlit/models/metrics.py +111 -0
  159. beamlit/models/model.py +151 -0
  160. beamlit/models/model_deployment.py +283 -0
  161. beamlit/models/model_deployment_log.py +68 -0
  162. beamlit/models/model_deployment_metrics.py +170 -0
  163. beamlit/models/model_deployment_metrics_inference_per_second_per_region.py +75 -0
  164. beamlit/models/model_deployment_metrics_query_per_second_per_region_per_code.py +73 -0
  165. beamlit/models/model_deployment_pod_template.py +43 -0
  166. beamlit/models/model_metrics.py +94 -0
  167. beamlit/models/model_provider.py +187 -0
  168. beamlit/models/model_provider_ref.py +68 -0
  169. beamlit/models/model_release.py +68 -0
  170. beamlit/models/model_with_deployments.py +174 -0
  171. beamlit/models/pending_invitation.py +122 -0
  172. beamlit/models/pending_invitation_accept.py +81 -0
  173. beamlit/models/pending_invitation_render.py +135 -0
  174. beamlit/models/pending_invitation_render_invited_by.py +86 -0
  175. beamlit/models/pending_invitation_render_workspace.py +68 -0
  176. beamlit/models/pending_invitation_workspace_details.py +70 -0
  177. beamlit/models/policy.py +216 -0
  178. beamlit/models/policy_location.py +68 -0
  179. beamlit/models/provider_config.py +101 -0
  180. beamlit/models/qps.py +59 -0
  181. beamlit/models/resource_deployment_log.py +68 -0
  182. beamlit/models/resource_deployment_metrics.py +172 -0
  183. beamlit/models/resource_deployment_metrics_inference_per_second_per_region.py +75 -0
  184. beamlit/models/resource_deployment_metrics_query_per_second_per_region_per_code.py +73 -0
  185. beamlit/models/resource_metrics.py +94 -0
  186. beamlit/models/runtime.py +152 -0
  187. beamlit/models/runtime_readiness_probe.py +43 -0
  188. beamlit/models/runtime_resources.py +43 -0
  189. beamlit/models/serverless_config.py +122 -0
  190. beamlit/models/standard_fields_dynamo_db.py +86 -0
  191. beamlit/models/store_agent.py +165 -0
  192. beamlit/models/store_agent_configuration.py +95 -0
  193. beamlit/models/store_agent_labels.py +43 -0
  194. beamlit/models/store_configuration.py +149 -0
  195. beamlit/models/store_configuration_option.py +77 -0
  196. beamlit/models/store_function.py +207 -0
  197. beamlit/models/store_function_configuration.py +95 -0
  198. beamlit/models/store_function_kit.py +95 -0
  199. beamlit/models/store_function_labels.py +43 -0
  200. beamlit/models/store_function_parameter.py +86 -0
  201. beamlit/models/update_workspace_service_account_body.py +67 -0
  202. beamlit/models/update_workspace_service_account_response_200.py +94 -0
  203. beamlit/models/update_workspace_user_role_body.py +58 -0
  204. beamlit/models/workspace.py +126 -0
  205. beamlit/models/workspace_labels.py +43 -0
  206. beamlit/models/workspace_user.py +113 -0
  207. beamlit/py.typed +1 -0
  208. beamlit/types.py +46 -0
  209. beamlit-0.1.0.dist-info/METADATA +59 -0
  210. beamlit-0.1.0.dist-info/RECORD +211 -0
  211. beamlit-0.1.0.dist-info/WHEEL +4 -0
@@ -0,0 +1,183 @@
1
+ from typing import TYPE_CHECKING, 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 ..types import UNSET, Unset
7
+
8
+ if TYPE_CHECKING:
9
+ from ..models.agent_deployment_history_event import AgentDeploymentHistoryEvent
10
+
11
+
12
+ T = TypeVar("T", bound="AgentDeploymentHistory")
13
+
14
+
15
+ @_attrs_define
16
+ class AgentDeploymentHistory:
17
+ """Agent deployment history
18
+
19
+ Attributes:
20
+ created_at (Union[Unset, str]): The date and time when the resource was created
21
+ created_by (Union[Unset, str]): The user or service account who created the resource
22
+ updated_at (Union[Unset, str]): The date and time when the resource was updated
23
+ updated_by (Union[Unset, str]): The user or service account who updated the resource
24
+ agent (Union[Unset, str]): Agent name
25
+ end (Union[Unset, str]): End time
26
+ environment (Union[Unset, str]): Environment name
27
+ events (Union[Unset, List['AgentDeploymentHistoryEvent']]): Events
28
+ request_id (Union[Unset, str]): Request ID
29
+ start (Union[Unset, str]): Start time
30
+ status (Union[Unset, str]): Status, eg: running, success, failed
31
+ took (Union[Unset, int]): Number of milliseconds it took to complete the event
32
+ workspace (Union[Unset, str]): The workspace the agent deployment belongs to
33
+ """
34
+
35
+ created_at: Union[Unset, str] = UNSET
36
+ created_by: Union[Unset, str] = UNSET
37
+ updated_at: Union[Unset, str] = UNSET
38
+ updated_by: Union[Unset, str] = UNSET
39
+ agent: Union[Unset, str] = UNSET
40
+ end: Union[Unset, str] = UNSET
41
+ environment: Union[Unset, str] = UNSET
42
+ events: Union[Unset, List["AgentDeploymentHistoryEvent"]] = UNSET
43
+ request_id: Union[Unset, str] = UNSET
44
+ start: Union[Unset, str] = UNSET
45
+ status: Union[Unset, str] = UNSET
46
+ took: Union[Unset, int] = UNSET
47
+ workspace: Union[Unset, str] = UNSET
48
+ additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
49
+
50
+ def to_dict(self) -> dict[str, Any]:
51
+ created_at = self.created_at
52
+
53
+ created_by = self.created_by
54
+
55
+ updated_at = self.updated_at
56
+
57
+ updated_by = self.updated_by
58
+
59
+ agent = self.agent
60
+
61
+ end = self.end
62
+
63
+ environment = self.environment
64
+
65
+ events: Union[Unset, List[Dict[str, Any]]] = UNSET
66
+ if not isinstance(self.events, Unset):
67
+ events = []
68
+ for events_item_data in self.events:
69
+ events_item = events_item_data.to_dict()
70
+ events.append(events_item)
71
+
72
+ request_id = self.request_id
73
+
74
+ start = self.start
75
+
76
+ status = self.status
77
+
78
+ took = self.took
79
+
80
+ workspace = self.workspace
81
+
82
+ field_dict: dict[str, Any] = {}
83
+ field_dict.update(self.additional_properties)
84
+ field_dict.update({})
85
+ if created_at is not UNSET:
86
+ field_dict["created_at"] = created_at
87
+ if created_by is not UNSET:
88
+ field_dict["created_by"] = created_by
89
+ if updated_at is not UNSET:
90
+ field_dict["updated_at"] = updated_at
91
+ if updated_by is not UNSET:
92
+ field_dict["updated_by"] = updated_by
93
+ if agent is not UNSET:
94
+ field_dict["agent"] = agent
95
+ if end is not UNSET:
96
+ field_dict["end"] = end
97
+ if environment is not UNSET:
98
+ field_dict["environment"] = environment
99
+ if events is not UNSET:
100
+ field_dict["events"] = events
101
+ if request_id is not UNSET:
102
+ field_dict["request_id"] = request_id
103
+ if start is not UNSET:
104
+ field_dict["start"] = start
105
+ if status is not UNSET:
106
+ field_dict["status"] = status
107
+ if took is not UNSET:
108
+ field_dict["took"] = took
109
+ if workspace is not UNSET:
110
+ field_dict["workspace"] = workspace
111
+
112
+ return field_dict
113
+
114
+ @classmethod
115
+ def from_dict(cls: Type[T], src_dict: dict[str, Any]) -> T:
116
+ from ..models.agent_deployment_history_event import AgentDeploymentHistoryEvent
117
+
118
+ d = src_dict.copy()
119
+ created_at = d.pop("created_at", UNSET)
120
+
121
+ created_by = d.pop("created_by", UNSET)
122
+
123
+ updated_at = d.pop("updated_at", UNSET)
124
+
125
+ updated_by = d.pop("updated_by", UNSET)
126
+
127
+ agent = d.pop("agent", UNSET)
128
+
129
+ end = d.pop("end", UNSET)
130
+
131
+ environment = d.pop("environment", UNSET)
132
+
133
+ events = []
134
+ _events = d.pop("events", UNSET)
135
+ for events_item_data in _events or []:
136
+ events_item = AgentDeploymentHistoryEvent.from_dict(events_item_data)
137
+
138
+ events.append(events_item)
139
+
140
+ request_id = d.pop("request_id", UNSET)
141
+
142
+ start = d.pop("start", UNSET)
143
+
144
+ status = d.pop("status", UNSET)
145
+
146
+ took = d.pop("took", UNSET)
147
+
148
+ workspace = d.pop("workspace", UNSET)
149
+
150
+ agent_deployment_history = cls(
151
+ created_at=created_at,
152
+ created_by=created_by,
153
+ updated_at=updated_at,
154
+ updated_by=updated_by,
155
+ agent=agent,
156
+ end=end,
157
+ environment=environment,
158
+ events=events,
159
+ request_id=request_id,
160
+ start=start,
161
+ status=status,
162
+ took=took,
163
+ workspace=workspace,
164
+ )
165
+
166
+ agent_deployment_history.additional_properties = d
167
+ return agent_deployment_history
168
+
169
+ @property
170
+ def additional_keys(self) -> list[str]:
171
+ return list(self.additional_properties.keys())
172
+
173
+ def __getitem__(self, key: str) -> Any:
174
+ return self.additional_properties[key]
175
+
176
+ def __setitem__(self, key: str, value: Any) -> None:
177
+ self.additional_properties[key] = value
178
+
179
+ def __delitem__(self, key: str) -> None:
180
+ del self.additional_properties[key]
181
+
182
+ def __contains__(self, key: str) -> bool:
183
+ return key in self.additional_properties
@@ -0,0 +1,131 @@
1
+ from typing import Any, Type, TypeVar, Union
2
+
3
+ from attrs import define as _attrs_define
4
+ from attrs import field as _attrs_field
5
+
6
+ from ..types import UNSET, Unset
7
+
8
+ T = TypeVar("T", bound="AgentDeploymentHistoryEvent")
9
+
10
+
11
+ @_attrs_define
12
+ class AgentDeploymentHistoryEvent:
13
+ """Agent deployment history event
14
+
15
+ Attributes:
16
+ end (Union[Unset, str]): End time
17
+ error (Union[Unset, str]): Error message
18
+ name (Union[Unset, str]): Name of the function or agent
19
+ parameters (Union[Unset, str]): Parameters
20
+ start (Union[Unset, str]): Start time
21
+ status (Union[Unset, str]): Status, eg: running, success, failed
22
+ sub_function (Union[Unset, str]): Function used in kit if a kit was used
23
+ took (Union[Unset, int]): Number of milliseconds it took to complete the event
24
+ type (Union[Unset, str]): Type, one of function or agent
25
+ """
26
+
27
+ end: Union[Unset, str] = UNSET
28
+ error: Union[Unset, str] = UNSET
29
+ name: Union[Unset, str] = UNSET
30
+ parameters: Union[Unset, str] = UNSET
31
+ start: Union[Unset, str] = UNSET
32
+ status: Union[Unset, str] = UNSET
33
+ sub_function: Union[Unset, str] = UNSET
34
+ took: Union[Unset, int] = UNSET
35
+ type: Union[Unset, str] = UNSET
36
+ additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
37
+
38
+ def to_dict(self) -> dict[str, Any]:
39
+ end = self.end
40
+
41
+ error = self.error
42
+
43
+ name = self.name
44
+
45
+ parameters = self.parameters
46
+
47
+ start = self.start
48
+
49
+ status = self.status
50
+
51
+ sub_function = self.sub_function
52
+
53
+ took = self.took
54
+
55
+ type = self.type
56
+
57
+ field_dict: dict[str, Any] = {}
58
+ field_dict.update(self.additional_properties)
59
+ field_dict.update({})
60
+ if end is not UNSET:
61
+ field_dict["end"] = end
62
+ if error is not UNSET:
63
+ field_dict["error"] = error
64
+ if name is not UNSET:
65
+ field_dict["name"] = name
66
+ if parameters is not UNSET:
67
+ field_dict["parameters"] = parameters
68
+ if start is not UNSET:
69
+ field_dict["start"] = start
70
+ if status is not UNSET:
71
+ field_dict["status"] = status
72
+ if sub_function is not UNSET:
73
+ field_dict["sub_function"] = sub_function
74
+ if took is not UNSET:
75
+ field_dict["took"] = took
76
+ if type is not UNSET:
77
+ field_dict["type"] = type
78
+
79
+ return field_dict
80
+
81
+ @classmethod
82
+ def from_dict(cls: Type[T], src_dict: dict[str, Any]) -> T:
83
+ d = src_dict.copy()
84
+ end = d.pop("end", UNSET)
85
+
86
+ error = d.pop("error", UNSET)
87
+
88
+ name = d.pop("name", UNSET)
89
+
90
+ parameters = d.pop("parameters", UNSET)
91
+
92
+ start = d.pop("start", UNSET)
93
+
94
+ status = d.pop("status", UNSET)
95
+
96
+ sub_function = d.pop("sub_function", UNSET)
97
+
98
+ took = d.pop("took", UNSET)
99
+
100
+ type = d.pop("type", UNSET)
101
+
102
+ agent_deployment_history_event = cls(
103
+ end=end,
104
+ error=error,
105
+ name=name,
106
+ parameters=parameters,
107
+ start=start,
108
+ status=status,
109
+ sub_function=sub_function,
110
+ took=took,
111
+ type=type,
112
+ )
113
+
114
+ agent_deployment_history_event.additional_properties = d
115
+ return agent_deployment_history_event
116
+
117
+ @property
118
+ def additional_keys(self) -> list[str]:
119
+ return list(self.additional_properties.keys())
120
+
121
+ def __getitem__(self, key: str) -> Any:
122
+ return self.additional_properties[key]
123
+
124
+ def __setitem__(self, key: str, value: Any) -> None:
125
+ self.additional_properties[key] = value
126
+
127
+ def __delitem__(self, key: str) -> None:
128
+ del self.additional_properties[key]
129
+
130
+ def __contains__(self, key: str) -> bool:
131
+ return key in self.additional_properties
@@ -0,0 +1,43 @@
1
+ from typing import Any, 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="AgentDeploymentPodTemplate")
7
+
8
+
9
+ @_attrs_define
10
+ class AgentDeploymentPodTemplate:
11
+ """The pod template, should be a valid Kubernetes pod template"""
12
+
13
+ additional_properties: dict[str, Any] = _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
+
19
+ return field_dict
20
+
21
+ @classmethod
22
+ def from_dict(cls: Type[T], src_dict: dict[str, Any]) -> T:
23
+ d = src_dict.copy()
24
+ agent_deployment_pod_template = cls()
25
+
26
+ agent_deployment_pod_template.additional_properties = d
27
+ return agent_deployment_pod_template
28
+
29
+ @property
30
+ def additional_keys(self) -> list[str]:
31
+ return list(self.additional_properties.keys())
32
+
33
+ def __getitem__(self, key: str) -> Any:
34
+ return self.additional_properties[key]
35
+
36
+ def __setitem__(self, key: str, value: Any) -> None:
37
+ self.additional_properties[key] = value
38
+
39
+ def __delitem__(self, key: str) -> None:
40
+ del self.additional_properties[key]
41
+
42
+ def __contains__(self, key: str) -> bool:
43
+ return key in self.additional_properties
@@ -0,0 +1,68 @@
1
+ from typing import Any, Type, TypeVar, Union
2
+
3
+ from attrs import define as _attrs_define
4
+ from attrs import field as _attrs_field
5
+
6
+ from ..types import UNSET, Unset
7
+
8
+ T = TypeVar("T", bound="AgentRelease")
9
+
10
+
11
+ @_attrs_define
12
+ class AgentRelease:
13
+ """Agent release, used to deploy a agent from one environment to another
14
+
15
+ Attributes:
16
+ from_ (Union[Unset, str]): Origin environment from which the agent is released
17
+ to (Union[Unset, str]): Destination environment to which the agent is released
18
+ """
19
+
20
+ from_: Union[Unset, str] = UNSET
21
+ to: Union[Unset, str] = UNSET
22
+ additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
23
+
24
+ def to_dict(self) -> dict[str, Any]:
25
+ from_ = self.from_
26
+
27
+ to = self.to
28
+
29
+ field_dict: dict[str, Any] = {}
30
+ field_dict.update(self.additional_properties)
31
+ field_dict.update({})
32
+ if from_ is not UNSET:
33
+ field_dict["from"] = from_
34
+ if to is not UNSET:
35
+ field_dict["to"] = to
36
+
37
+ return field_dict
38
+
39
+ @classmethod
40
+ def from_dict(cls: Type[T], src_dict: dict[str, Any]) -> T:
41
+ d = src_dict.copy()
42
+ from_ = d.pop("from", UNSET)
43
+
44
+ to = d.pop("to", UNSET)
45
+
46
+ agent_release = cls(
47
+ from_=from_,
48
+ to=to,
49
+ )
50
+
51
+ agent_release.additional_properties = d
52
+ return agent_release
53
+
54
+ @property
55
+ def additional_keys(self) -> list[str]:
56
+ return list(self.additional_properties.keys())
57
+
58
+ def __getitem__(self, key: str) -> Any:
59
+ return self.additional_properties[key]
60
+
61
+ def __setitem__(self, key: str, value: Any) -> None:
62
+ self.additional_properties[key] = value
63
+
64
+ def __delitem__(self, key: str) -> None:
65
+ del self.additional_properties[key]
66
+
67
+ def __contains__(self, key: str) -> bool:
68
+ return key in self.additional_properties
@@ -0,0 +1,140 @@
1
+ from typing import Any, Type, TypeVar, Union
2
+
3
+ from attrs import define as _attrs_define
4
+ from attrs import field as _attrs_field
5
+
6
+ from ..types import UNSET, Unset
7
+
8
+ T = TypeVar("T", bound="ApiKey")
9
+
10
+
11
+ @_attrs_define
12
+ class ApiKey:
13
+ """Long-lived API key for accessing Beamlit
14
+
15
+ Attributes:
16
+ created_at (Union[Unset, str]): The date and time when the resource was created
17
+ created_by (Union[Unset, str]): The user or service account who created the resource
18
+ updated_at (Union[Unset, str]): The date and time when the resource was updated
19
+ updated_by (Union[Unset, str]): The user or service account who updated the resource
20
+ api_key (Union[Unset, str]): Api key
21
+ expires_in (Union[Unset, str]): Duration until expiration (in seconds)
22
+ id (Union[Unset, str]): Api key id, to retrieve it from the API
23
+ name (Union[Unset, str]): Name for the API key
24
+ sub (Union[Unset, str]): User subject identifier
25
+ sub_type (Union[Unset, str]): Subject type
26
+ """
27
+
28
+ created_at: Union[Unset, str] = UNSET
29
+ created_by: Union[Unset, str] = UNSET
30
+ updated_at: Union[Unset, str] = UNSET
31
+ updated_by: Union[Unset, str] = UNSET
32
+ api_key: Union[Unset, str] = UNSET
33
+ expires_in: Union[Unset, str] = UNSET
34
+ id: Union[Unset, str] = UNSET
35
+ name: Union[Unset, str] = UNSET
36
+ sub: Union[Unset, str] = UNSET
37
+ sub_type: Union[Unset, str] = UNSET
38
+ additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
39
+
40
+ def to_dict(self) -> dict[str, Any]:
41
+ created_at = self.created_at
42
+
43
+ created_by = self.created_by
44
+
45
+ updated_at = self.updated_at
46
+
47
+ updated_by = self.updated_by
48
+
49
+ api_key = self.api_key
50
+
51
+ expires_in = self.expires_in
52
+
53
+ id = self.id
54
+
55
+ name = self.name
56
+
57
+ sub = self.sub
58
+
59
+ sub_type = self.sub_type
60
+
61
+ field_dict: dict[str, Any] = {}
62
+ field_dict.update(self.additional_properties)
63
+ field_dict.update({})
64
+ if created_at is not UNSET:
65
+ field_dict["created_at"] = created_at
66
+ if created_by is not UNSET:
67
+ field_dict["created_by"] = created_by
68
+ if updated_at is not UNSET:
69
+ field_dict["updated_at"] = updated_at
70
+ if updated_by is not UNSET:
71
+ field_dict["updated_by"] = updated_by
72
+ if api_key is not UNSET:
73
+ field_dict["api_key"] = api_key
74
+ if expires_in is not UNSET:
75
+ field_dict["expires_in"] = expires_in
76
+ if id is not UNSET:
77
+ field_dict["id"] = id
78
+ if name is not UNSET:
79
+ field_dict["name"] = name
80
+ if sub is not UNSET:
81
+ field_dict["sub"] = sub
82
+ if sub_type is not UNSET:
83
+ field_dict["sub_type"] = sub_type
84
+
85
+ return field_dict
86
+
87
+ @classmethod
88
+ def from_dict(cls: Type[T], src_dict: dict[str, Any]) -> T:
89
+ d = src_dict.copy()
90
+ created_at = d.pop("created_at", UNSET)
91
+
92
+ created_by = d.pop("created_by", UNSET)
93
+
94
+ updated_at = d.pop("updated_at", UNSET)
95
+
96
+ updated_by = d.pop("updated_by", UNSET)
97
+
98
+ api_key = d.pop("api_key", UNSET)
99
+
100
+ expires_in = d.pop("expires_in", UNSET)
101
+
102
+ id = d.pop("id", UNSET)
103
+
104
+ name = d.pop("name", UNSET)
105
+
106
+ sub = d.pop("sub", UNSET)
107
+
108
+ sub_type = d.pop("sub_type", UNSET)
109
+
110
+ api_key = cls(
111
+ created_at=created_at,
112
+ created_by=created_by,
113
+ updated_at=updated_at,
114
+ updated_by=updated_by,
115
+ api_key=api_key,
116
+ expires_in=expires_in,
117
+ id=id,
118
+ name=name,
119
+ sub=sub,
120
+ sub_type=sub_type,
121
+ )
122
+
123
+ api_key.additional_properties = d
124
+ return api_key
125
+
126
+ @property
127
+ def additional_keys(self) -> list[str]:
128
+ return list(self.additional_properties.keys())
129
+
130
+ def __getitem__(self, key: str) -> Any:
131
+ return self.additional_properties[key]
132
+
133
+ def __setitem__(self, key: str, value: Any) -> None:
134
+ self.additional_properties[key] = value
135
+
136
+ def __delitem__(self, key: str) -> None:
137
+ del self.additional_properties[key]
138
+
139
+ def __contains__(self, key: str) -> bool:
140
+ return key in self.additional_properties
@@ -0,0 +1,142 @@
1
+ from typing import Any, 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 ..types import UNSET, Unset
7
+
8
+ T = TypeVar("T", bound="AuthenticationProviderModel")
9
+
10
+
11
+ @_attrs_define
12
+ class AuthenticationProviderModel:
13
+ """Model obtained from an external authentication provider, such as HuggingFace, OpenAI, etc...
14
+
15
+ Attributes:
16
+ created_at (Union[Unset, str]): Provider model created at
17
+ downloads (Union[Unset, int]): Provider model downloads
18
+ id (Union[Unset, str]): Provider model ID
19
+ library_name (Union[Unset, str]): Provider model library name
20
+ likes (Union[Unset, int]): Provider model likes
21
+ name (Union[Unset, str]): Provider model name
22
+ pipeline_tag (Union[Unset, str]): Provider model pipeline tag
23
+ private (Union[Unset, bool]): Provider model private
24
+ tags (Union[Unset, List[str]]): Provider model tags
25
+ trending_score (Union[Unset, int]): Provider model trending score
26
+ """
27
+
28
+ created_at: Union[Unset, str] = UNSET
29
+ downloads: Union[Unset, int] = UNSET
30
+ id: Union[Unset, str] = UNSET
31
+ library_name: Union[Unset, str] = UNSET
32
+ likes: Union[Unset, int] = UNSET
33
+ name: Union[Unset, str] = UNSET
34
+ pipeline_tag: Union[Unset, str] = UNSET
35
+ private: Union[Unset, bool] = UNSET
36
+ tags: Union[Unset, List[str]] = UNSET
37
+ trending_score: Union[Unset, int] = UNSET
38
+ additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
39
+
40
+ def to_dict(self) -> dict[str, Any]:
41
+ created_at = self.created_at
42
+
43
+ downloads = self.downloads
44
+
45
+ id = self.id
46
+
47
+ library_name = self.library_name
48
+
49
+ likes = self.likes
50
+
51
+ name = self.name
52
+
53
+ pipeline_tag = self.pipeline_tag
54
+
55
+ private = self.private
56
+
57
+ tags: Union[Unset, List[str]] = UNSET
58
+ if not isinstance(self.tags, Unset):
59
+ tags = self.tags
60
+
61
+ trending_score = self.trending_score
62
+
63
+ field_dict: dict[str, Any] = {}
64
+ field_dict.update(self.additional_properties)
65
+ field_dict.update({})
66
+ if created_at is not UNSET:
67
+ field_dict["created_at"] = created_at
68
+ if downloads is not UNSET:
69
+ field_dict["downloads"] = downloads
70
+ if id is not UNSET:
71
+ field_dict["id"] = id
72
+ if library_name is not UNSET:
73
+ field_dict["library_name"] = library_name
74
+ if likes is not UNSET:
75
+ field_dict["likes"] = likes
76
+ if name is not UNSET:
77
+ field_dict["name"] = name
78
+ if pipeline_tag is not UNSET:
79
+ field_dict["pipeline_tag"] = pipeline_tag
80
+ if private is not UNSET:
81
+ field_dict["private"] = private
82
+ if tags is not UNSET:
83
+ field_dict["tags"] = tags
84
+ if trending_score is not UNSET:
85
+ field_dict["trending_score"] = trending_score
86
+
87
+ return field_dict
88
+
89
+ @classmethod
90
+ def from_dict(cls: Type[T], src_dict: dict[str, Any]) -> T:
91
+ d = src_dict.copy()
92
+ created_at = d.pop("created_at", UNSET)
93
+
94
+ downloads = d.pop("downloads", UNSET)
95
+
96
+ id = d.pop("id", UNSET)
97
+
98
+ library_name = d.pop("library_name", UNSET)
99
+
100
+ likes = d.pop("likes", UNSET)
101
+
102
+ name = d.pop("name", UNSET)
103
+
104
+ pipeline_tag = d.pop("pipeline_tag", UNSET)
105
+
106
+ private = d.pop("private", UNSET)
107
+
108
+ tags = cast(List[str], d.pop("tags", UNSET))
109
+
110
+ trending_score = d.pop("trending_score", UNSET)
111
+
112
+ authentication_provider_model = cls(
113
+ created_at=created_at,
114
+ downloads=downloads,
115
+ id=id,
116
+ library_name=library_name,
117
+ likes=likes,
118
+ name=name,
119
+ pipeline_tag=pipeline_tag,
120
+ private=private,
121
+ tags=tags,
122
+ trending_score=trending_score,
123
+ )
124
+
125
+ authentication_provider_model.additional_properties = d
126
+ return authentication_provider_model
127
+
128
+ @property
129
+ def additional_keys(self) -> list[str]:
130
+ return list(self.additional_properties.keys())
131
+
132
+ def __getitem__(self, key: str) -> Any:
133
+ return self.additional_properties[key]
134
+
135
+ def __setitem__(self, key: str, value: Any) -> None:
136
+ self.additional_properties[key] = value
137
+
138
+ def __delitem__(self, key: str) -> None:
139
+ del self.additional_properties[key]
140
+
141
+ def __contains__(self, key: str) -> bool:
142
+ return key in self.additional_properties