tower 0.3.4__py3-none-linux_armv6l.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.
Files changed (156) hide show
  1. tower/__init__.py +4 -0
  2. tower/__main__.py +38 -0
  3. tower/client.py +115 -0
  4. tower/tower_api_client/__init__.py +7 -0
  5. tower/tower_api_client/api/__init__.py +1 -0
  6. tower/tower_api_client/api/default/__init__.py +0 -0
  7. tower/tower_api_client/api/default/accept_invitation.py +150 -0
  8. tower/tower_api_client/api/default/cancel_run.py +159 -0
  9. tower/tower_api_client/api/default/claim_device_login_ticket.py +154 -0
  10. tower/tower_api_client/api/default/create_account.py +150 -0
  11. tower/tower_api_client/api/default/create_api_key.py +142 -0
  12. tower/tower_api_client/api/default/create_apps.py +150 -0
  13. tower/tower_api_client/api/default/create_device_login_ticket.py +131 -0
  14. tower/tower_api_client/api/default/create_secret.py +150 -0
  15. tower/tower_api_client/api/default/create_session.py +150 -0
  16. tower/tower_api_client/api/default/create_team.py +150 -0
  17. tower/tower_api_client/api/default/delete_api_key.py +142 -0
  18. tower/tower_api_client/api/default/delete_app.py +146 -0
  19. tower/tower_api_client/api/default/delete_secret.py +104 -0
  20. tower/tower_api_client/api/default/delete_team.py +150 -0
  21. tower/tower_api_client/api/default/delete_team_invitation.py +167 -0
  22. tower/tower_api_client/api/default/deploy_app.py +166 -0
  23. tower/tower_api_client/api/default/describe_app.py +165 -0
  24. tower/tower_api_client/api/default/describe_app_version.py +163 -0
  25. tower/tower_api_client/api/default/describe_device_login_session.py +154 -0
  26. tower/tower_api_client/api/default/describe_run.py +172 -0
  27. tower/tower_api_client/api/default/describe_secrets_key.py +160 -0
  28. tower/tower_api_client/api/default/describe_session.py +125 -0
  29. tower/tower_api_client/api/default/export_secrets.py +218 -0
  30. tower/tower_api_client/api/default/generate_app_statistics.py +129 -0
  31. tower/tower_api_client/api/default/generate_run_statistics.py +160 -0
  32. tower/tower_api_client/api/default/get_app_run_logs.py +159 -0
  33. tower/tower_api_client/api/default/invite_team_member.py +163 -0
  34. tower/tower_api_client/api/default/leave_team.py +150 -0
  35. tower/tower_api_client/api/default/list_api_keys.py +125 -0
  36. tower/tower_api_client/api/default/list_app_environments.py +150 -0
  37. tower/tower_api_client/api/default/list_app_versions.py +146 -0
  38. tower/tower_api_client/api/default/list_apps.py +247 -0
  39. tower/tower_api_client/api/default/list_my_team_invitations.py +129 -0
  40. tower/tower_api_client/api/default/list_runs.py +184 -0
  41. tower/tower_api_client/api/default/list_secret_environments.py +129 -0
  42. tower/tower_api_client/api/default/list_secrets.py +201 -0
  43. tower/tower_api_client/api/default/list_team_invitations.py +150 -0
  44. tower/tower_api_client/api/default/list_team_members.py +146 -0
  45. tower/tower_api_client/api/default/list_teams.py +125 -0
  46. tower/tower_api_client/api/default/refresh_session.py +129 -0
  47. tower/tower_api_client/api/default/remove_team_member.py +163 -0
  48. tower/tower_api_client/api/default/resend_team_invitation.py +167 -0
  49. tower/tower_api_client/api/default/run_app.py +176 -0
  50. tower/tower_api_client/api/default/stream_app_run_logs.py +100 -0
  51. tower/tower_api_client/api/default/update_account_slug.py +163 -0
  52. tower/tower_api_client/api/default/update_my_team_invitation.py +154 -0
  53. tower/tower_api_client/api/default/update_team.py +167 -0
  54. tower/tower_api_client/api/default/update_user.py +150 -0
  55. tower/tower_api_client/client.py +51 -0
  56. tower/tower_api_client/models/__init__.py +193 -0
  57. tower/tower_api_client/models/accept_invitation_params.py +49 -0
  58. tower/tower_api_client/models/accept_invitation_response.py +56 -0
  59. tower/tower_api_client/models/account.py +45 -0
  60. tower/tower_api_client/models/api_key.py +67 -0
  61. tower/tower_api_client/models/app.py +122 -0
  62. tower/tower_api_client/models/app_statistics.py +66 -0
  63. tower/tower_api_client/models/app_summary.py +81 -0
  64. tower/tower_api_client/models/app_version.py +71 -0
  65. tower/tower_api_client/models/cancel_run_response.py +56 -0
  66. tower/tower_api_client/models/claim_device_login_ticket_params.py +49 -0
  67. tower/tower_api_client/models/claim_device_login_ticket_response.py +49 -0
  68. tower/tower_api_client/models/create_account_params.py +91 -0
  69. tower/tower_api_client/models/create_account_params_flags_struct.py +38 -0
  70. tower/tower_api_client/models/create_account_response.py +56 -0
  71. tower/tower_api_client/models/create_api_key_params.py +49 -0
  72. tower/tower_api_client/models/create_api_key_response.py +56 -0
  73. tower/tower_api_client/models/create_app_params.py +57 -0
  74. tower/tower_api_client/models/create_app_response.py +56 -0
  75. tower/tower_api_client/models/create_device_login_ticket_response.py +94 -0
  76. tower/tower_api_client/models/create_secret_params.py +70 -0
  77. tower/tower_api_client/models/create_secret_response.py +56 -0
  78. tower/tower_api_client/models/create_session_params.py +56 -0
  79. tower/tower_api_client/models/create_session_response.py +56 -0
  80. tower/tower_api_client/models/create_team_params.py +56 -0
  81. tower/tower_api_client/models/create_team_response.py +56 -0
  82. tower/tower_api_client/models/delete_api_key_params.py +49 -0
  83. tower/tower_api_client/models/delete_api_key_response.py +56 -0
  84. tower/tower_api_client/models/delete_app_response.py +56 -0
  85. tower/tower_api_client/models/delete_team_invitation_params.py +49 -0
  86. tower/tower_api_client/models/delete_team_invitation_response.py +56 -0
  87. tower/tower_api_client/models/delete_team_params.py +49 -0
  88. tower/tower_api_client/models/delete_team_response.py +56 -0
  89. tower/tower_api_client/models/deploy_app_response.py +56 -0
  90. tower/tower_api_client/models/describe_app_response.py +75 -0
  91. tower/tower_api_client/models/describe_app_version_response.py +56 -0
  92. tower/tower_api_client/models/describe_device_login_session_response.py +56 -0
  93. tower/tower_api_client/models/describe_run_response.py +56 -0
  94. tower/tower_api_client/models/describe_secrets_key_response.py +49 -0
  95. tower/tower_api_client/models/describe_session_response.py +56 -0
  96. tower/tower_api_client/models/error_detail.py +54 -0
  97. tower/tower_api_client/models/error_model.py +109 -0
  98. tower/tower_api_client/models/export_secrets_response.py +75 -0
  99. tower/tower_api_client/models/export_user_secrets_params.py +49 -0
  100. tower/tower_api_client/models/exported_secret.py +62 -0
  101. tower/tower_api_client/models/generate_app_statistics_response.py +56 -0
  102. tower/tower_api_client/models/generate_run_statistics_response.py +85 -0
  103. tower/tower_api_client/models/get_run_log_line.py +47 -0
  104. tower/tower_api_client/models/get_run_logs_output_body.py +65 -0
  105. tower/tower_api_client/models/invite_team_member_params.py +58 -0
  106. tower/tower_api_client/models/invite_team_member_response.py +65 -0
  107. tower/tower_api_client/models/leave_team_response.py +56 -0
  108. tower/tower_api_client/models/list_api_keys_response.py +65 -0
  109. tower/tower_api_client/models/list_app_environments_response.py +50 -0
  110. tower/tower_api_client/models/list_app_versions_response.py +65 -0
  111. tower/tower_api_client/models/list_apps_response.py +75 -0
  112. tower/tower_api_client/models/list_apps_status_item.py +11 -0
  113. tower/tower_api_client/models/list_my_team_invitations_response.py +65 -0
  114. tower/tower_api_client/models/list_runs_response.py +75 -0
  115. tower/tower_api_client/models/list_secret_environments_response.py +50 -0
  116. tower/tower_api_client/models/list_secrets_response.py +75 -0
  117. tower/tower_api_client/models/list_team_invitations_response.py +65 -0
  118. tower/tower_api_client/models/list_team_members_response.py +65 -0
  119. tower/tower_api_client/models/list_teams_response.py +65 -0
  120. tower/tower_api_client/models/log_line.py +62 -0
  121. tower/tower_api_client/models/log_line_error.py +47 -0
  122. tower/tower_api_client/models/pagination.py +59 -0
  123. tower/tower_api_client/models/parameter.py +52 -0
  124. tower/tower_api_client/models/refresh_session_response.py +66 -0
  125. tower/tower_api_client/models/remove_team_member_params.py +49 -0
  126. tower/tower_api_client/models/remove_team_member_response.py +56 -0
  127. tower/tower_api_client/models/resend_team_invitation_params.py +57 -0
  128. tower/tower_api_client/models/resend_team_invitation_response.py +56 -0
  129. tower/tower_api_client/models/run.py +129 -0
  130. tower/tower_api_client/models/run_app_params.py +72 -0
  131. tower/tower_api_client/models/run_app_params_parameters.py +43 -0
  132. tower/tower_api_client/models/run_app_response.py +56 -0
  133. tower/tower_api_client/models/run_results.py +73 -0
  134. tower/tower_api_client/models/run_statistics.py +52 -0
  135. tower/tower_api_client/models/secret.py +62 -0
  136. tower/tower_api_client/models/series_point.py +52 -0
  137. tower/tower_api_client/models/session.py +73 -0
  138. tower/tower_api_client/models/statistics_settings.py +38 -0
  139. tower/tower_api_client/models/team.py +75 -0
  140. tower/tower_api_client/models/team_invitation.py +61 -0
  141. tower/tower_api_client/models/token.py +38 -0
  142. tower/tower_api_client/models/update_account_slug_params.py +49 -0
  143. tower/tower_api_client/models/update_account_slug_response.py +56 -0
  144. tower/tower_api_client/models/update_my_team_invitation_params.py +56 -0
  145. tower/tower_api_client/models/update_my_team_invitation_response.py +39 -0
  146. tower/tower_api_client/models/update_team_params.py +58 -0
  147. tower/tower_api_client/models/update_team_response.py +56 -0
  148. tower/tower_api_client/models/update_user_params.py +71 -0
  149. tower/tower_api_client/models/update_user_response.py +56 -0
  150. tower/tower_api_client/models/user.py +90 -0
  151. tower/tower_api_client/types.py +44 -0
  152. tower-0.3.4.data/scripts/tower +0 -0
  153. tower-0.3.4.dist-info/METADATA +115 -0
  154. tower-0.3.4.dist-info/RECORD +156 -0
  155. tower-0.3.4.dist-info/WHEEL +4 -0
  156. tower-0.3.4.dist-info/licenses/LICENSE +21 -0
@@ -0,0 +1,56 @@
1
+ from typing import Any, Dict, Type, TypeVar, Union
2
+
3
+ import attr
4
+
5
+ from ..types import UNSET, Unset
6
+
7
+ T = TypeVar("T", bound="CreateSessionParams")
8
+
9
+
10
+ @attr.s(auto_attribs=True)
11
+ class CreateSessionParams:
12
+ """
13
+ Attributes:
14
+ password (str):
15
+ username (str):
16
+ schema (Union[Unset, str]): A URL to the JSON Schema for this object. Example:
17
+ http://localhost:8081/v1/schemas/CreateSessionParams.json.
18
+ """
19
+
20
+ password: str
21
+ username: str
22
+ schema: Union[Unset, str] = UNSET
23
+
24
+ def to_dict(self) -> Dict[str, Any]:
25
+ password = self.password
26
+ username = self.username
27
+ schema = self.schema
28
+
29
+ field_dict: Dict[str, Any] = {}
30
+ field_dict.update(
31
+ {
32
+ "password": password,
33
+ "username": username,
34
+ }
35
+ )
36
+ if schema is not UNSET:
37
+ field_dict["$schema"] = schema
38
+
39
+ return field_dict
40
+
41
+ @classmethod
42
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
43
+ d = src_dict.copy()
44
+ password = d.pop("password")
45
+
46
+ username = d.pop("username")
47
+
48
+ schema = d.pop("$schema", UNSET)
49
+
50
+ create_session_params = cls(
51
+ password=password,
52
+ username=username,
53
+ schema=schema,
54
+ )
55
+
56
+ return create_session_params
@@ -0,0 +1,56 @@
1
+ from typing import TYPE_CHECKING, Any, Dict, Type, TypeVar, Union
2
+
3
+ import attr
4
+
5
+ from ..types import UNSET, Unset
6
+
7
+ if TYPE_CHECKING:
8
+ from ..models.session import Session
9
+
10
+
11
+ T = TypeVar("T", bound="CreateSessionResponse")
12
+
13
+
14
+ @attr.s(auto_attribs=True)
15
+ class CreateSessionResponse:
16
+ """
17
+ Attributes:
18
+ session (Session):
19
+ schema (Union[Unset, str]): A URL to the JSON Schema for this object. Example:
20
+ http://localhost:8081/v1/schemas/CreateSessionResponse.json.
21
+ """
22
+
23
+ session: "Session"
24
+ schema: Union[Unset, str] = UNSET
25
+
26
+ def to_dict(self) -> Dict[str, Any]:
27
+ session = self.session.to_dict()
28
+
29
+ schema = self.schema
30
+
31
+ field_dict: Dict[str, Any] = {}
32
+ field_dict.update(
33
+ {
34
+ "session": session,
35
+ }
36
+ )
37
+ if schema is not UNSET:
38
+ field_dict["$schema"] = schema
39
+
40
+ return field_dict
41
+
42
+ @classmethod
43
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
44
+ from ..models.session import Session
45
+
46
+ d = src_dict.copy()
47
+ session = Session.from_dict(d.pop("session"))
48
+
49
+ schema = d.pop("$schema", UNSET)
50
+
51
+ create_session_response = cls(
52
+ session=session,
53
+ schema=schema,
54
+ )
55
+
56
+ return create_session_response
@@ -0,0 +1,56 @@
1
+ from typing import Any, Dict, Type, TypeVar, Union
2
+
3
+ import attr
4
+
5
+ from ..types import UNSET, Unset
6
+
7
+ T = TypeVar("T", bound="CreateTeamParams")
8
+
9
+
10
+ @attr.s(auto_attribs=True)
11
+ class CreateTeamParams:
12
+ """
13
+ Attributes:
14
+ name (str): The name of the team to create
15
+ slug (str): The slug of the team to create
16
+ schema (Union[Unset, str]): A URL to the JSON Schema for this object. Example:
17
+ http://localhost:8081/v1/schemas/CreateTeamParams.json.
18
+ """
19
+
20
+ name: str
21
+ slug: str
22
+ schema: Union[Unset, str] = UNSET
23
+
24
+ def to_dict(self) -> Dict[str, Any]:
25
+ name = self.name
26
+ slug = self.slug
27
+ schema = self.schema
28
+
29
+ field_dict: Dict[str, Any] = {}
30
+ field_dict.update(
31
+ {
32
+ "name": name,
33
+ "slug": slug,
34
+ }
35
+ )
36
+ if schema is not UNSET:
37
+ field_dict["$schema"] = schema
38
+
39
+ return field_dict
40
+
41
+ @classmethod
42
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
43
+ d = src_dict.copy()
44
+ name = d.pop("name")
45
+
46
+ slug = d.pop("slug")
47
+
48
+ schema = d.pop("$schema", UNSET)
49
+
50
+ create_team_params = cls(
51
+ name=name,
52
+ slug=slug,
53
+ schema=schema,
54
+ )
55
+
56
+ return create_team_params
@@ -0,0 +1,56 @@
1
+ from typing import TYPE_CHECKING, Any, Dict, Type, TypeVar, Union
2
+
3
+ import attr
4
+
5
+ from ..types import UNSET, Unset
6
+
7
+ if TYPE_CHECKING:
8
+ from ..models.team import Team
9
+
10
+
11
+ T = TypeVar("T", bound="CreateTeamResponse")
12
+
13
+
14
+ @attr.s(auto_attribs=True)
15
+ class CreateTeamResponse:
16
+ """
17
+ Attributes:
18
+ team (Team):
19
+ schema (Union[Unset, str]): A URL to the JSON Schema for this object. Example:
20
+ http://localhost:8081/v1/schemas/CreateTeamResponse.json.
21
+ """
22
+
23
+ team: "Team"
24
+ schema: Union[Unset, str] = UNSET
25
+
26
+ def to_dict(self) -> Dict[str, Any]:
27
+ team = self.team.to_dict()
28
+
29
+ schema = self.schema
30
+
31
+ field_dict: Dict[str, Any] = {}
32
+ field_dict.update(
33
+ {
34
+ "team": team,
35
+ }
36
+ )
37
+ if schema is not UNSET:
38
+ field_dict["$schema"] = schema
39
+
40
+ return field_dict
41
+
42
+ @classmethod
43
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
44
+ from ..models.team import Team
45
+
46
+ d = src_dict.copy()
47
+ team = Team.from_dict(d.pop("team"))
48
+
49
+ schema = d.pop("$schema", UNSET)
50
+
51
+ create_team_response = cls(
52
+ team=team,
53
+ schema=schema,
54
+ )
55
+
56
+ return create_team_response
@@ -0,0 +1,49 @@
1
+ from typing import Any, Dict, Type, TypeVar, Union
2
+
3
+ import attr
4
+
5
+ from ..types import UNSET, Unset
6
+
7
+ T = TypeVar("T", bound="DeleteAPIKeyParams")
8
+
9
+
10
+ @attr.s(auto_attribs=True)
11
+ class DeleteAPIKeyParams:
12
+ """
13
+ Attributes:
14
+ identifier (str):
15
+ schema (Union[Unset, str]): A URL to the JSON Schema for this object. Example:
16
+ http://localhost:8081/v1/schemas/DeleteAPIKeyParams.json.
17
+ """
18
+
19
+ identifier: str
20
+ schema: Union[Unset, str] = UNSET
21
+
22
+ def to_dict(self) -> Dict[str, Any]:
23
+ identifier = self.identifier
24
+ schema = self.schema
25
+
26
+ field_dict: Dict[str, Any] = {}
27
+ field_dict.update(
28
+ {
29
+ "identifier": identifier,
30
+ }
31
+ )
32
+ if schema is not UNSET:
33
+ field_dict["$schema"] = schema
34
+
35
+ return field_dict
36
+
37
+ @classmethod
38
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
39
+ d = src_dict.copy()
40
+ identifier = d.pop("identifier")
41
+
42
+ schema = d.pop("$schema", UNSET)
43
+
44
+ delete_api_key_params = cls(
45
+ identifier=identifier,
46
+ schema=schema,
47
+ )
48
+
49
+ return delete_api_key_params
@@ -0,0 +1,56 @@
1
+ from typing import TYPE_CHECKING, Any, Dict, Type, TypeVar, Union
2
+
3
+ import attr
4
+
5
+ from ..types import UNSET, Unset
6
+
7
+ if TYPE_CHECKING:
8
+ from ..models.api_key import APIKey
9
+
10
+
11
+ T = TypeVar("T", bound="DeleteAPIKeyResponse")
12
+
13
+
14
+ @attr.s(auto_attribs=True)
15
+ class DeleteAPIKeyResponse:
16
+ """
17
+ Attributes:
18
+ api_key (APIKey):
19
+ schema (Union[Unset, str]): A URL to the JSON Schema for this object. Example:
20
+ http://localhost:8081/v1/schemas/DeleteAPIKeyResponse.json.
21
+ """
22
+
23
+ api_key: "APIKey"
24
+ schema: Union[Unset, str] = UNSET
25
+
26
+ def to_dict(self) -> Dict[str, Any]:
27
+ api_key = self.api_key.to_dict()
28
+
29
+ schema = self.schema
30
+
31
+ field_dict: Dict[str, Any] = {}
32
+ field_dict.update(
33
+ {
34
+ "api_key": api_key,
35
+ }
36
+ )
37
+ if schema is not UNSET:
38
+ field_dict["$schema"] = schema
39
+
40
+ return field_dict
41
+
42
+ @classmethod
43
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
44
+ from ..models.api_key import APIKey
45
+
46
+ d = src_dict.copy()
47
+ api_key = APIKey.from_dict(d.pop("api_key"))
48
+
49
+ schema = d.pop("$schema", UNSET)
50
+
51
+ delete_api_key_response = cls(
52
+ api_key=api_key,
53
+ schema=schema,
54
+ )
55
+
56
+ return delete_api_key_response
@@ -0,0 +1,56 @@
1
+ from typing import TYPE_CHECKING, Any, Dict, Type, TypeVar, Union
2
+
3
+ import attr
4
+
5
+ from ..types import UNSET, Unset
6
+
7
+ if TYPE_CHECKING:
8
+ from ..models.app import App
9
+
10
+
11
+ T = TypeVar("T", bound="DeleteAppResponse")
12
+
13
+
14
+ @attr.s(auto_attribs=True)
15
+ class DeleteAppResponse:
16
+ """
17
+ Attributes:
18
+ app (App):
19
+ schema (Union[Unset, str]): A URL to the JSON Schema for this object. Example:
20
+ http://localhost:8081/v1/schemas/DeleteAppResponse.json.
21
+ """
22
+
23
+ app: "App"
24
+ schema: Union[Unset, str] = UNSET
25
+
26
+ def to_dict(self) -> Dict[str, Any]:
27
+ app = self.app.to_dict()
28
+
29
+ schema = self.schema
30
+
31
+ field_dict: Dict[str, Any] = {}
32
+ field_dict.update(
33
+ {
34
+ "app": app,
35
+ }
36
+ )
37
+ if schema is not UNSET:
38
+ field_dict["$schema"] = schema
39
+
40
+ return field_dict
41
+
42
+ @classmethod
43
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
44
+ from ..models.app import App
45
+
46
+ d = src_dict.copy()
47
+ app = App.from_dict(d.pop("app"))
48
+
49
+ schema = d.pop("$schema", UNSET)
50
+
51
+ delete_app_response = cls(
52
+ app=app,
53
+ schema=schema,
54
+ )
55
+
56
+ return delete_app_response
@@ -0,0 +1,49 @@
1
+ from typing import Any, Dict, Type, TypeVar, Union
2
+
3
+ import attr
4
+
5
+ from ..types import UNSET, Unset
6
+
7
+ T = TypeVar("T", bound="DeleteTeamInvitationParams")
8
+
9
+
10
+ @attr.s(auto_attribs=True)
11
+ class DeleteTeamInvitationParams:
12
+ """
13
+ Attributes:
14
+ email (str): The email address of the team member to remove
15
+ schema (Union[Unset, str]): A URL to the JSON Schema for this object. Example:
16
+ http://localhost:8081/v1/schemas/DeleteTeamInvitationParams.json.
17
+ """
18
+
19
+ email: str
20
+ schema: Union[Unset, str] = UNSET
21
+
22
+ def to_dict(self) -> Dict[str, Any]:
23
+ email = self.email
24
+ schema = self.schema
25
+
26
+ field_dict: Dict[str, Any] = {}
27
+ field_dict.update(
28
+ {
29
+ "email": email,
30
+ }
31
+ )
32
+ if schema is not UNSET:
33
+ field_dict["$schema"] = schema
34
+
35
+ return field_dict
36
+
37
+ @classmethod
38
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
39
+ d = src_dict.copy()
40
+ email = d.pop("email")
41
+
42
+ schema = d.pop("$schema", UNSET)
43
+
44
+ delete_team_invitation_params = cls(
45
+ email=email,
46
+ schema=schema,
47
+ )
48
+
49
+ return delete_team_invitation_params
@@ -0,0 +1,56 @@
1
+ from typing import TYPE_CHECKING, Any, Dict, Type, TypeVar, Union
2
+
3
+ import attr
4
+
5
+ from ..types import UNSET, Unset
6
+
7
+ if TYPE_CHECKING:
8
+ from ..models.team_invitation import TeamInvitation
9
+
10
+
11
+ T = TypeVar("T", bound="DeleteTeamInvitationResponse")
12
+
13
+
14
+ @attr.s(auto_attribs=True)
15
+ class DeleteTeamInvitationResponse:
16
+ """
17
+ Attributes:
18
+ invitation (TeamInvitation):
19
+ schema (Union[Unset, str]): A URL to the JSON Schema for this object. Example:
20
+ http://localhost:8081/v1/schemas/DeleteTeamInvitationResponse.json.
21
+ """
22
+
23
+ invitation: "TeamInvitation"
24
+ schema: Union[Unset, str] = UNSET
25
+
26
+ def to_dict(self) -> Dict[str, Any]:
27
+ invitation = self.invitation.to_dict()
28
+
29
+ schema = self.schema
30
+
31
+ field_dict: Dict[str, Any] = {}
32
+ field_dict.update(
33
+ {
34
+ "invitation": invitation,
35
+ }
36
+ )
37
+ if schema is not UNSET:
38
+ field_dict["$schema"] = schema
39
+
40
+ return field_dict
41
+
42
+ @classmethod
43
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
44
+ from ..models.team_invitation import TeamInvitation
45
+
46
+ d = src_dict.copy()
47
+ invitation = TeamInvitation.from_dict(d.pop("invitation"))
48
+
49
+ schema = d.pop("$schema", UNSET)
50
+
51
+ delete_team_invitation_response = cls(
52
+ invitation=invitation,
53
+ schema=schema,
54
+ )
55
+
56
+ return delete_team_invitation_response
@@ -0,0 +1,49 @@
1
+ from typing import Any, Dict, Type, TypeVar, Union
2
+
3
+ import attr
4
+
5
+ from ..types import UNSET, Unset
6
+
7
+ T = TypeVar("T", bound="DeleteTeamParams")
8
+
9
+
10
+ @attr.s(auto_attribs=True)
11
+ class DeleteTeamParams:
12
+ """
13
+ Attributes:
14
+ slug (str): The slug of the team to delete
15
+ schema (Union[Unset, str]): A URL to the JSON Schema for this object. Example:
16
+ http://localhost:8081/v1/schemas/DeleteTeamParams.json.
17
+ """
18
+
19
+ slug: str
20
+ schema: Union[Unset, str] = UNSET
21
+
22
+ def to_dict(self) -> Dict[str, Any]:
23
+ slug = self.slug
24
+ schema = self.schema
25
+
26
+ field_dict: Dict[str, Any] = {}
27
+ field_dict.update(
28
+ {
29
+ "slug": slug,
30
+ }
31
+ )
32
+ if schema is not UNSET:
33
+ field_dict["$schema"] = schema
34
+
35
+ return field_dict
36
+
37
+ @classmethod
38
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
39
+ d = src_dict.copy()
40
+ slug = d.pop("slug")
41
+
42
+ schema = d.pop("$schema", UNSET)
43
+
44
+ delete_team_params = cls(
45
+ slug=slug,
46
+ schema=schema,
47
+ )
48
+
49
+ return delete_team_params
@@ -0,0 +1,56 @@
1
+ from typing import TYPE_CHECKING, Any, Dict, Type, TypeVar, Union
2
+
3
+ import attr
4
+
5
+ from ..types import UNSET, Unset
6
+
7
+ if TYPE_CHECKING:
8
+ from ..models.team import Team
9
+
10
+
11
+ T = TypeVar("T", bound="DeleteTeamResponse")
12
+
13
+
14
+ @attr.s(auto_attribs=True)
15
+ class DeleteTeamResponse:
16
+ """
17
+ Attributes:
18
+ team (Team):
19
+ schema (Union[Unset, str]): A URL to the JSON Schema for this object. Example:
20
+ http://localhost:8081/v1/schemas/DeleteTeamResponse.json.
21
+ """
22
+
23
+ team: "Team"
24
+ schema: Union[Unset, str] = UNSET
25
+
26
+ def to_dict(self) -> Dict[str, Any]:
27
+ team = self.team.to_dict()
28
+
29
+ schema = self.schema
30
+
31
+ field_dict: Dict[str, Any] = {}
32
+ field_dict.update(
33
+ {
34
+ "team": team,
35
+ }
36
+ )
37
+ if schema is not UNSET:
38
+ field_dict["$schema"] = schema
39
+
40
+ return field_dict
41
+
42
+ @classmethod
43
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
44
+ from ..models.team import Team
45
+
46
+ d = src_dict.copy()
47
+ team = Team.from_dict(d.pop("team"))
48
+
49
+ schema = d.pop("$schema", UNSET)
50
+
51
+ delete_team_response = cls(
52
+ team=team,
53
+ schema=schema,
54
+ )
55
+
56
+ return delete_team_response
@@ -0,0 +1,56 @@
1
+ from typing import TYPE_CHECKING, Any, Dict, Type, TypeVar, Union
2
+
3
+ import attr
4
+
5
+ from ..types import UNSET, Unset
6
+
7
+ if TYPE_CHECKING:
8
+ from ..models.app_version import AppVersion
9
+
10
+
11
+ T = TypeVar("T", bound="DeployAppResponse")
12
+
13
+
14
+ @attr.s(auto_attribs=True)
15
+ class DeployAppResponse:
16
+ """
17
+ Attributes:
18
+ version (AppVersion):
19
+ schema (Union[Unset, str]): A URL to the JSON Schema for this object. Example:
20
+ http://localhost:8081/v1/schemas/DeployAppResponse.json.
21
+ """
22
+
23
+ version: "AppVersion"
24
+ schema: Union[Unset, str] = UNSET
25
+
26
+ def to_dict(self) -> Dict[str, Any]:
27
+ version = self.version.to_dict()
28
+
29
+ schema = self.schema
30
+
31
+ field_dict: Dict[str, Any] = {}
32
+ field_dict.update(
33
+ {
34
+ "version": version,
35
+ }
36
+ )
37
+ if schema is not UNSET:
38
+ field_dict["$schema"] = schema
39
+
40
+ return field_dict
41
+
42
+ @classmethod
43
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
44
+ from ..models.app_version import AppVersion
45
+
46
+ d = src_dict.copy()
47
+ version = AppVersion.from_dict(d.pop("version"))
48
+
49
+ schema = d.pop("$schema", UNSET)
50
+
51
+ deploy_app_response = cls(
52
+ version=version,
53
+ schema=schema,
54
+ )
55
+
56
+ return deploy_app_response