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,86 @@
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="AuthenticationProviderOrganization")
9
+
10
+
11
+ @_attrs_define
12
+ class AuthenticationProviderOrganization:
13
+ """Organization that hosts models from an external authentication provider (HuggingFace, OpenAI, etc...)
14
+
15
+ Attributes:
16
+ avatar_url (Union[Unset, str]): Provider organization avatar URL
17
+ display_name (Union[Unset, str]): Provider organization display name
18
+ id (Union[Unset, str]): Provider organization ID
19
+ name (Union[Unset, str]): Provider organization name
20
+ """
21
+
22
+ avatar_url: Union[Unset, str] = UNSET
23
+ display_name: Union[Unset, str] = UNSET
24
+ id: Union[Unset, str] = UNSET
25
+ name: Union[Unset, str] = UNSET
26
+ additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
27
+
28
+ def to_dict(self) -> dict[str, Any]:
29
+ avatar_url = self.avatar_url
30
+
31
+ display_name = self.display_name
32
+
33
+ id = self.id
34
+
35
+ name = self.name
36
+
37
+ field_dict: dict[str, Any] = {}
38
+ field_dict.update(self.additional_properties)
39
+ field_dict.update({})
40
+ if avatar_url is not UNSET:
41
+ field_dict["avatar_url"] = avatar_url
42
+ if display_name is not UNSET:
43
+ field_dict["display_name"] = display_name
44
+ if id is not UNSET:
45
+ field_dict["id"] = id
46
+ if name is not UNSET:
47
+ field_dict["name"] = name
48
+
49
+ return field_dict
50
+
51
+ @classmethod
52
+ def from_dict(cls: Type[T], src_dict: dict[str, Any]) -> T:
53
+ d = src_dict.copy()
54
+ avatar_url = d.pop("avatar_url", UNSET)
55
+
56
+ display_name = d.pop("display_name", UNSET)
57
+
58
+ id = d.pop("id", UNSET)
59
+
60
+ name = d.pop("name", UNSET)
61
+
62
+ authentication_provider_organization = cls(
63
+ avatar_url=avatar_url,
64
+ display_name=display_name,
65
+ id=id,
66
+ name=name,
67
+ )
68
+
69
+ authentication_provider_organization.additional_properties = d
70
+ return authentication_provider_organization
71
+
72
+ @property
73
+ def additional_keys(self) -> list[str]:
74
+ return list(self.additional_properties.keys())
75
+
76
+ def __getitem__(self, key: str) -> Any:
77
+ return self.additional_properties[key]
78
+
79
+ def __setitem__(self, key: str, value: Any) -> None:
80
+ self.additional_properties[key] = value
81
+
82
+ def __delitem__(self, key: str) -> None:
83
+ del self.additional_properties[key]
84
+
85
+ def __contains__(self, key: str) -> bool:
86
+ return key in self.additional_properties
@@ -0,0 +1,72 @@
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="Configuration")
9
+
10
+
11
+ @_attrs_define
12
+ class Configuration:
13
+ """Configuration
14
+
15
+ Attributes:
16
+ continents (Union[Unset, List[Any]]): Continents
17
+ countries (Union[Unset, List[Any]]): Countries
18
+ """
19
+
20
+ continents: Union[Unset, List[Any]] = UNSET
21
+ countries: Union[Unset, List[Any]] = UNSET
22
+ additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
23
+
24
+ def to_dict(self) -> dict[str, Any]:
25
+ continents: Union[Unset, List[Any]] = UNSET
26
+ if not isinstance(self.continents, Unset):
27
+ continents = self.continents
28
+
29
+ countries: Union[Unset, List[Any]] = UNSET
30
+ if not isinstance(self.countries, Unset):
31
+ countries = self.countries
32
+
33
+ field_dict: dict[str, Any] = {}
34
+ field_dict.update(self.additional_properties)
35
+ field_dict.update({})
36
+ if continents is not UNSET:
37
+ field_dict["continents"] = continents
38
+ if countries is not UNSET:
39
+ field_dict["countries"] = countries
40
+
41
+ return field_dict
42
+
43
+ @classmethod
44
+ def from_dict(cls: Type[T], src_dict: dict[str, Any]) -> T:
45
+ d = src_dict.copy()
46
+ continents = cast(List[Any], d.pop("continents", UNSET))
47
+
48
+ countries = cast(List[Any], d.pop("countries", UNSET))
49
+
50
+ configuration = cls(
51
+ continents=continents,
52
+ countries=countries,
53
+ )
54
+
55
+ configuration.additional_properties = d
56
+ return configuration
57
+
58
+ @property
59
+ def additional_keys(self) -> list[str]:
60
+ return list(self.additional_properties.keys())
61
+
62
+ def __getitem__(self, key: str) -> Any:
63
+ return self.additional_properties[key]
64
+
65
+ def __setitem__(self, key: str, value: Any) -> None:
66
+ self.additional_properties[key] = value
67
+
68
+ def __delitem__(self, key: str) -> None:
69
+ del self.additional_properties[key]
70
+
71
+ def __contains__(self, key: str) -> bool:
72
+ 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="Continent")
9
+
10
+
11
+ @_attrs_define
12
+ class Continent:
13
+ """Continent
14
+
15
+ Attributes:
16
+ display_name (Union[Unset, str]): Continent display name
17
+ name (Union[Unset, str]): Continent code
18
+ """
19
+
20
+ display_name: Union[Unset, str] = UNSET
21
+ name: 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
+ display_name = self.display_name
26
+
27
+ name = self.name
28
+
29
+ field_dict: dict[str, Any] = {}
30
+ field_dict.update(self.additional_properties)
31
+ field_dict.update({})
32
+ if display_name is not UNSET:
33
+ field_dict["display_name"] = display_name
34
+ if name is not UNSET:
35
+ field_dict["name"] = name
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
+ display_name = d.pop("display_name", UNSET)
43
+
44
+ name = d.pop("name", UNSET)
45
+
46
+ continent = cls(
47
+ display_name=display_name,
48
+ name=name,
49
+ )
50
+
51
+ continent.additional_properties = d
52
+ return continent
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,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="Country")
9
+
10
+
11
+ @_attrs_define
12
+ class Country:
13
+ """Configuration
14
+
15
+ Attributes:
16
+ display_name (Union[Unset, str]): Country display name
17
+ name (Union[Unset, str]): Country code
18
+ """
19
+
20
+ display_name: Union[Unset, str] = UNSET
21
+ name: 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
+ display_name = self.display_name
26
+
27
+ name = self.name
28
+
29
+ field_dict: dict[str, Any] = {}
30
+ field_dict.update(self.additional_properties)
31
+ field_dict.update({})
32
+ if display_name is not UNSET:
33
+ field_dict["display_name"] = display_name
34
+ if name is not UNSET:
35
+ field_dict["name"] = name
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
+ display_name = d.pop("display_name", UNSET)
43
+
44
+ name = d.pop("name", UNSET)
45
+
46
+ country = cls(
47
+ display_name=display_name,
48
+ name=name,
49
+ )
50
+
51
+ country.additional_properties = d
52
+ return country
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,67 @@
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="CreateApiKeyForServiceAccountBody")
9
+
10
+
11
+ @_attrs_define
12
+ class CreateApiKeyForServiceAccountBody:
13
+ """
14
+ Attributes:
15
+ expires_in (Union[Unset, str]): Expiration period for the API key
16
+ name (Union[Unset, str]): Name for the API key
17
+ """
18
+
19
+ expires_in: Union[Unset, str] = UNSET
20
+ name: Union[Unset, str] = UNSET
21
+ additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
22
+
23
+ def to_dict(self) -> dict[str, Any]:
24
+ expires_in = self.expires_in
25
+
26
+ name = self.name
27
+
28
+ field_dict: dict[str, Any] = {}
29
+ field_dict.update(self.additional_properties)
30
+ field_dict.update({})
31
+ if expires_in is not UNSET:
32
+ field_dict["expires_in"] = expires_in
33
+ if name is not UNSET:
34
+ field_dict["name"] = name
35
+
36
+ return field_dict
37
+
38
+ @classmethod
39
+ def from_dict(cls: Type[T], src_dict: dict[str, Any]) -> T:
40
+ d = src_dict.copy()
41
+ expires_in = d.pop("expires_in", UNSET)
42
+
43
+ name = d.pop("name", UNSET)
44
+
45
+ create_api_key_for_service_account_body = cls(
46
+ expires_in=expires_in,
47
+ name=name,
48
+ )
49
+
50
+ create_api_key_for_service_account_body.additional_properties = d
51
+ return create_api_key_for_service_account_body
52
+
53
+ @property
54
+ def additional_keys(self) -> list[str]:
55
+ return list(self.additional_properties.keys())
56
+
57
+ def __getitem__(self, key: str) -> Any:
58
+ return self.additional_properties[key]
59
+
60
+ def __setitem__(self, key: str, value: Any) -> None:
61
+ self.additional_properties[key] = value
62
+
63
+ def __delitem__(self, key: str) -> None:
64
+ del self.additional_properties[key]
65
+
66
+ def __contains__(self, key: str) -> bool:
67
+ return key in self.additional_properties
@@ -0,0 +1,69 @@
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="CreateWorkspaceServiceAccountBody")
9
+
10
+
11
+ @_attrs_define
12
+ class CreateWorkspaceServiceAccountBody:
13
+ """
14
+ Attributes:
15
+ name (str): Service account name
16
+ description (Union[Unset, str]): Service account description
17
+ """
18
+
19
+ name: str
20
+ description: Union[Unset, str] = UNSET
21
+ additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
22
+
23
+ def to_dict(self) -> dict[str, Any]:
24
+ name = self.name
25
+
26
+ description = self.description
27
+
28
+ field_dict: dict[str, Any] = {}
29
+ field_dict.update(self.additional_properties)
30
+ field_dict.update(
31
+ {
32
+ "name": name,
33
+ }
34
+ )
35
+ if description is not UNSET:
36
+ field_dict["description"] = description
37
+
38
+ return field_dict
39
+
40
+ @classmethod
41
+ def from_dict(cls: Type[T], src_dict: dict[str, Any]) -> T:
42
+ d = src_dict.copy()
43
+ name = d.pop("name")
44
+
45
+ description = d.pop("description", UNSET)
46
+
47
+ create_workspace_service_account_body = cls(
48
+ name=name,
49
+ description=description,
50
+ )
51
+
52
+ create_workspace_service_account_body.additional_properties = d
53
+ return create_workspace_service_account_body
54
+
55
+ @property
56
+ def additional_keys(self) -> list[str]:
57
+ return list(self.additional_properties.keys())
58
+
59
+ def __getitem__(self, key: str) -> Any:
60
+ return self.additional_properties[key]
61
+
62
+ def __setitem__(self, key: str, value: Any) -> None:
63
+ self.additional_properties[key] = value
64
+
65
+ def __delitem__(self, key: str) -> None:
66
+ del self.additional_properties[key]
67
+
68
+ def __contains__(self, key: str) -> bool:
69
+ return key in self.additional_properties
@@ -0,0 +1,103 @@
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="CreateWorkspaceServiceAccountResponse200")
9
+
10
+
11
+ @_attrs_define
12
+ class CreateWorkspaceServiceAccountResponse200:
13
+ """
14
+ Attributes:
15
+ client_id (Union[Unset, str]): Service account client ID
16
+ client_secret (Union[Unset, str]): Service account client secret (only returned on creation)
17
+ created_at (Union[Unset, str]): Creation timestamp
18
+ description (Union[Unset, str]): Service account description
19
+ name (Union[Unset, str]): Service account name
20
+ updated_at (Union[Unset, str]): Last update timestamp
21
+ """
22
+
23
+ client_id: Union[Unset, str] = UNSET
24
+ client_secret: Union[Unset, str] = UNSET
25
+ created_at: Union[Unset, str] = UNSET
26
+ description: Union[Unset, str] = UNSET
27
+ name: Union[Unset, str] = UNSET
28
+ updated_at: Union[Unset, str] = UNSET
29
+ additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
30
+
31
+ def to_dict(self) -> dict[str, Any]:
32
+ client_id = self.client_id
33
+
34
+ client_secret = self.client_secret
35
+
36
+ created_at = self.created_at
37
+
38
+ description = self.description
39
+
40
+ name = self.name
41
+
42
+ updated_at = self.updated_at
43
+
44
+ field_dict: dict[str, Any] = {}
45
+ field_dict.update(self.additional_properties)
46
+ field_dict.update({})
47
+ if client_id is not UNSET:
48
+ field_dict["client_id"] = client_id
49
+ if client_secret is not UNSET:
50
+ field_dict["client_secret"] = client_secret
51
+ if created_at is not UNSET:
52
+ field_dict["created_at"] = created_at
53
+ if description is not UNSET:
54
+ field_dict["description"] = description
55
+ if name is not UNSET:
56
+ field_dict["name"] = name
57
+ if updated_at is not UNSET:
58
+ field_dict["updated_at"] = updated_at
59
+
60
+ return field_dict
61
+
62
+ @classmethod
63
+ def from_dict(cls: Type[T], src_dict: dict[str, Any]) -> T:
64
+ d = src_dict.copy()
65
+ client_id = d.pop("client_id", UNSET)
66
+
67
+ client_secret = d.pop("client_secret", UNSET)
68
+
69
+ created_at = d.pop("created_at", UNSET)
70
+
71
+ description = d.pop("description", UNSET)
72
+
73
+ name = d.pop("name", UNSET)
74
+
75
+ updated_at = d.pop("updated_at", UNSET)
76
+
77
+ create_workspace_service_account_response_200 = cls(
78
+ client_id=client_id,
79
+ client_secret=client_secret,
80
+ created_at=created_at,
81
+ description=description,
82
+ name=name,
83
+ updated_at=updated_at,
84
+ )
85
+
86
+ create_workspace_service_account_response_200.additional_properties = d
87
+ return create_workspace_service_account_response_200
88
+
89
+ @property
90
+ def additional_keys(self) -> list[str]:
91
+ return list(self.additional_properties.keys())
92
+
93
+ def __getitem__(self, key: str) -> Any:
94
+ return self.additional_properties[key]
95
+
96
+ def __setitem__(self, key: str, value: Any) -> None:
97
+ self.additional_properties[key] = value
98
+
99
+ def __delitem__(self, key: str) -> None:
100
+ del self.additional_properties[key]
101
+
102
+ def __contains__(self, key: str) -> bool:
103
+ return key in self.additional_properties
@@ -0,0 +1,94 @@
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="DeleteWorkspaceServiceAccountResponse200")
9
+
10
+
11
+ @_attrs_define
12
+ class DeleteWorkspaceServiceAccountResponse200:
13
+ """
14
+ Attributes:
15
+ client_id (Union[Unset, str]): Service account client ID
16
+ created_at (Union[Unset, str]): Creation timestamp
17
+ description (Union[Unset, str]): Service account description
18
+ name (Union[Unset, str]): Service account name
19
+ updated_at (Union[Unset, str]): Last update timestamp
20
+ """
21
+
22
+ client_id: Union[Unset, str] = UNSET
23
+ created_at: Union[Unset, str] = UNSET
24
+ description: Union[Unset, str] = UNSET
25
+ name: Union[Unset, str] = UNSET
26
+ updated_at: Union[Unset, str] = UNSET
27
+ additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
28
+
29
+ def to_dict(self) -> dict[str, Any]:
30
+ client_id = self.client_id
31
+
32
+ created_at = self.created_at
33
+
34
+ description = self.description
35
+
36
+ name = self.name
37
+
38
+ updated_at = self.updated_at
39
+
40
+ field_dict: dict[str, Any] = {}
41
+ field_dict.update(self.additional_properties)
42
+ field_dict.update({})
43
+ if client_id is not UNSET:
44
+ field_dict["client_id"] = client_id
45
+ if created_at is not UNSET:
46
+ field_dict["created_at"] = created_at
47
+ if description is not UNSET:
48
+ field_dict["description"] = description
49
+ if name is not UNSET:
50
+ field_dict["name"] = name
51
+ if updated_at is not UNSET:
52
+ field_dict["updated_at"] = updated_at
53
+
54
+ return field_dict
55
+
56
+ @classmethod
57
+ def from_dict(cls: Type[T], src_dict: dict[str, Any]) -> T:
58
+ d = src_dict.copy()
59
+ client_id = d.pop("client_id", UNSET)
60
+
61
+ created_at = d.pop("created_at", UNSET)
62
+
63
+ description = d.pop("description", UNSET)
64
+
65
+ name = d.pop("name", UNSET)
66
+
67
+ updated_at = d.pop("updated_at", UNSET)
68
+
69
+ delete_workspace_service_account_response_200 = cls(
70
+ client_id=client_id,
71
+ created_at=created_at,
72
+ description=description,
73
+ name=name,
74
+ updated_at=updated_at,
75
+ )
76
+
77
+ delete_workspace_service_account_response_200.additional_properties = d
78
+ return delete_workspace_service_account_response_200
79
+
80
+ @property
81
+ def additional_keys(self) -> list[str]:
82
+ return list(self.additional_properties.keys())
83
+
84
+ def __getitem__(self, key: str) -> Any:
85
+ return self.additional_properties[key]
86
+
87
+ def __setitem__(self, key: str, value: Any) -> None:
88
+ self.additional_properties[key] = value
89
+
90
+ def __delitem__(self, key: str) -> None:
91
+ del self.additional_properties[key]
92
+
93
+ def __contains__(self, key: str) -> bool:
94
+ 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="DeploymentConfiguration")
9
+
10
+
11
+ @_attrs_define
12
+ class DeploymentConfiguration:
13
+ """Function configuration, this is a key value storage. In your function you can retrieve the value with config[key]
14
+
15
+ Attributes:
16
+ secret (Union[Unset, bool]): Function configuration secret
17
+ value (Union[Unset, str]): Function configuration value
18
+ """
19
+
20
+ secret: Union[Unset, bool] = UNSET
21
+ value: 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
+ secret = self.secret
26
+
27
+ value = self.value
28
+
29
+ field_dict: dict[str, Any] = {}
30
+ field_dict.update(self.additional_properties)
31
+ field_dict.update({})
32
+ if secret is not UNSET:
33
+ field_dict["secret"] = secret
34
+ if value is not UNSET:
35
+ field_dict["value"] = value
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
+ secret = d.pop("secret", UNSET)
43
+
44
+ value = d.pop("value", UNSET)
45
+
46
+ deployment_configuration = cls(
47
+ secret=secret,
48
+ value=value,
49
+ )
50
+
51
+ deployment_configuration.additional_properties = d
52
+ return deployment_configuration
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