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.
- tower/__init__.py +4 -0
- tower/__main__.py +38 -0
- tower/client.py +115 -0
- tower/tower_api_client/__init__.py +7 -0
- tower/tower_api_client/api/__init__.py +1 -0
- tower/tower_api_client/api/default/__init__.py +0 -0
- tower/tower_api_client/api/default/accept_invitation.py +150 -0
- tower/tower_api_client/api/default/cancel_run.py +159 -0
- tower/tower_api_client/api/default/claim_device_login_ticket.py +154 -0
- tower/tower_api_client/api/default/create_account.py +150 -0
- tower/tower_api_client/api/default/create_api_key.py +142 -0
- tower/tower_api_client/api/default/create_apps.py +150 -0
- tower/tower_api_client/api/default/create_device_login_ticket.py +131 -0
- tower/tower_api_client/api/default/create_secret.py +150 -0
- tower/tower_api_client/api/default/create_session.py +150 -0
- tower/tower_api_client/api/default/create_team.py +150 -0
- tower/tower_api_client/api/default/delete_api_key.py +142 -0
- tower/tower_api_client/api/default/delete_app.py +146 -0
- tower/tower_api_client/api/default/delete_secret.py +104 -0
- tower/tower_api_client/api/default/delete_team.py +150 -0
- tower/tower_api_client/api/default/delete_team_invitation.py +167 -0
- tower/tower_api_client/api/default/deploy_app.py +166 -0
- tower/tower_api_client/api/default/describe_app.py +165 -0
- tower/tower_api_client/api/default/describe_app_version.py +163 -0
- tower/tower_api_client/api/default/describe_device_login_session.py +154 -0
- tower/tower_api_client/api/default/describe_run.py +172 -0
- tower/tower_api_client/api/default/describe_secrets_key.py +160 -0
- tower/tower_api_client/api/default/describe_session.py +125 -0
- tower/tower_api_client/api/default/export_secrets.py +218 -0
- tower/tower_api_client/api/default/generate_app_statistics.py +129 -0
- tower/tower_api_client/api/default/generate_run_statistics.py +160 -0
- tower/tower_api_client/api/default/get_app_run_logs.py +159 -0
- tower/tower_api_client/api/default/invite_team_member.py +163 -0
- tower/tower_api_client/api/default/leave_team.py +150 -0
- tower/tower_api_client/api/default/list_api_keys.py +125 -0
- tower/tower_api_client/api/default/list_app_environments.py +150 -0
- tower/tower_api_client/api/default/list_app_versions.py +146 -0
- tower/tower_api_client/api/default/list_apps.py +247 -0
- tower/tower_api_client/api/default/list_my_team_invitations.py +129 -0
- tower/tower_api_client/api/default/list_runs.py +184 -0
- tower/tower_api_client/api/default/list_secret_environments.py +129 -0
- tower/tower_api_client/api/default/list_secrets.py +201 -0
- tower/tower_api_client/api/default/list_team_invitations.py +150 -0
- tower/tower_api_client/api/default/list_team_members.py +146 -0
- tower/tower_api_client/api/default/list_teams.py +125 -0
- tower/tower_api_client/api/default/refresh_session.py +129 -0
- tower/tower_api_client/api/default/remove_team_member.py +163 -0
- tower/tower_api_client/api/default/resend_team_invitation.py +167 -0
- tower/tower_api_client/api/default/run_app.py +176 -0
- tower/tower_api_client/api/default/stream_app_run_logs.py +100 -0
- tower/tower_api_client/api/default/update_account_slug.py +163 -0
- tower/tower_api_client/api/default/update_my_team_invitation.py +154 -0
- tower/tower_api_client/api/default/update_team.py +167 -0
- tower/tower_api_client/api/default/update_user.py +150 -0
- tower/tower_api_client/client.py +51 -0
- tower/tower_api_client/models/__init__.py +193 -0
- tower/tower_api_client/models/accept_invitation_params.py +49 -0
- tower/tower_api_client/models/accept_invitation_response.py +56 -0
- tower/tower_api_client/models/account.py +45 -0
- tower/tower_api_client/models/api_key.py +67 -0
- tower/tower_api_client/models/app.py +122 -0
- tower/tower_api_client/models/app_statistics.py +66 -0
- tower/tower_api_client/models/app_summary.py +81 -0
- tower/tower_api_client/models/app_version.py +71 -0
- tower/tower_api_client/models/cancel_run_response.py +56 -0
- tower/tower_api_client/models/claim_device_login_ticket_params.py +49 -0
- tower/tower_api_client/models/claim_device_login_ticket_response.py +49 -0
- tower/tower_api_client/models/create_account_params.py +91 -0
- tower/tower_api_client/models/create_account_params_flags_struct.py +38 -0
- tower/tower_api_client/models/create_account_response.py +56 -0
- tower/tower_api_client/models/create_api_key_params.py +49 -0
- tower/tower_api_client/models/create_api_key_response.py +56 -0
- tower/tower_api_client/models/create_app_params.py +57 -0
- tower/tower_api_client/models/create_app_response.py +56 -0
- tower/tower_api_client/models/create_device_login_ticket_response.py +94 -0
- tower/tower_api_client/models/create_secret_params.py +70 -0
- tower/tower_api_client/models/create_secret_response.py +56 -0
- tower/tower_api_client/models/create_session_params.py +56 -0
- tower/tower_api_client/models/create_session_response.py +56 -0
- tower/tower_api_client/models/create_team_params.py +56 -0
- tower/tower_api_client/models/create_team_response.py +56 -0
- tower/tower_api_client/models/delete_api_key_params.py +49 -0
- tower/tower_api_client/models/delete_api_key_response.py +56 -0
- tower/tower_api_client/models/delete_app_response.py +56 -0
- tower/tower_api_client/models/delete_team_invitation_params.py +49 -0
- tower/tower_api_client/models/delete_team_invitation_response.py +56 -0
- tower/tower_api_client/models/delete_team_params.py +49 -0
- tower/tower_api_client/models/delete_team_response.py +56 -0
- tower/tower_api_client/models/deploy_app_response.py +56 -0
- tower/tower_api_client/models/describe_app_response.py +75 -0
- tower/tower_api_client/models/describe_app_version_response.py +56 -0
- tower/tower_api_client/models/describe_device_login_session_response.py +56 -0
- tower/tower_api_client/models/describe_run_response.py +56 -0
- tower/tower_api_client/models/describe_secrets_key_response.py +49 -0
- tower/tower_api_client/models/describe_session_response.py +56 -0
- tower/tower_api_client/models/error_detail.py +54 -0
- tower/tower_api_client/models/error_model.py +109 -0
- tower/tower_api_client/models/export_secrets_response.py +75 -0
- tower/tower_api_client/models/export_user_secrets_params.py +49 -0
- tower/tower_api_client/models/exported_secret.py +62 -0
- tower/tower_api_client/models/generate_app_statistics_response.py +56 -0
- tower/tower_api_client/models/generate_run_statistics_response.py +85 -0
- tower/tower_api_client/models/get_run_log_line.py +47 -0
- tower/tower_api_client/models/get_run_logs_output_body.py +65 -0
- tower/tower_api_client/models/invite_team_member_params.py +58 -0
- tower/tower_api_client/models/invite_team_member_response.py +65 -0
- tower/tower_api_client/models/leave_team_response.py +56 -0
- tower/tower_api_client/models/list_api_keys_response.py +65 -0
- tower/tower_api_client/models/list_app_environments_response.py +50 -0
- tower/tower_api_client/models/list_app_versions_response.py +65 -0
- tower/tower_api_client/models/list_apps_response.py +75 -0
- tower/tower_api_client/models/list_apps_status_item.py +11 -0
- tower/tower_api_client/models/list_my_team_invitations_response.py +65 -0
- tower/tower_api_client/models/list_runs_response.py +75 -0
- tower/tower_api_client/models/list_secret_environments_response.py +50 -0
- tower/tower_api_client/models/list_secrets_response.py +75 -0
- tower/tower_api_client/models/list_team_invitations_response.py +65 -0
- tower/tower_api_client/models/list_team_members_response.py +65 -0
- tower/tower_api_client/models/list_teams_response.py +65 -0
- tower/tower_api_client/models/log_line.py +62 -0
- tower/tower_api_client/models/log_line_error.py +47 -0
- tower/tower_api_client/models/pagination.py +59 -0
- tower/tower_api_client/models/parameter.py +52 -0
- tower/tower_api_client/models/refresh_session_response.py +66 -0
- tower/tower_api_client/models/remove_team_member_params.py +49 -0
- tower/tower_api_client/models/remove_team_member_response.py +56 -0
- tower/tower_api_client/models/resend_team_invitation_params.py +57 -0
- tower/tower_api_client/models/resend_team_invitation_response.py +56 -0
- tower/tower_api_client/models/run.py +129 -0
- tower/tower_api_client/models/run_app_params.py +72 -0
- tower/tower_api_client/models/run_app_params_parameters.py +43 -0
- tower/tower_api_client/models/run_app_response.py +56 -0
- tower/tower_api_client/models/run_results.py +73 -0
- tower/tower_api_client/models/run_statistics.py +52 -0
- tower/tower_api_client/models/secret.py +62 -0
- tower/tower_api_client/models/series_point.py +52 -0
- tower/tower_api_client/models/session.py +73 -0
- tower/tower_api_client/models/statistics_settings.py +38 -0
- tower/tower_api_client/models/team.py +75 -0
- tower/tower_api_client/models/team_invitation.py +61 -0
- tower/tower_api_client/models/token.py +38 -0
- tower/tower_api_client/models/update_account_slug_params.py +49 -0
- tower/tower_api_client/models/update_account_slug_response.py +56 -0
- tower/tower_api_client/models/update_my_team_invitation_params.py +56 -0
- tower/tower_api_client/models/update_my_team_invitation_response.py +39 -0
- tower/tower_api_client/models/update_team_params.py +58 -0
- tower/tower_api_client/models/update_team_response.py +56 -0
- tower/tower_api_client/models/update_user_params.py +71 -0
- tower/tower_api_client/models/update_user_response.py +56 -0
- tower/tower_api_client/models/user.py +90 -0
- tower/tower_api_client/types.py +44 -0
- tower-0.3.4.data/scripts/tower +0 -0
- tower-0.3.4.dist-info/METADATA +115 -0
- tower-0.3.4.dist-info/RECORD +156 -0
- tower-0.3.4.dist-info/WHEEL +4 -0
- tower-0.3.4.dist-info/licenses/LICENSE +21 -0
|
@@ -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="ClaimDeviceLoginTicketResponse")
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
@attr.s(auto_attribs=True)
|
|
11
|
+
class ClaimDeviceLoginTicketResponse:
|
|
12
|
+
"""
|
|
13
|
+
Attributes:
|
|
14
|
+
claimed (bool): Whether the code was successfully claimed.
|
|
15
|
+
schema (Union[Unset, str]): A URL to the JSON Schema for this object. Example:
|
|
16
|
+
http://localhost:8081/v1/schemas/ClaimDeviceLoginTicketResponse.json.
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
claimed: bool
|
|
20
|
+
schema: Union[Unset, str] = UNSET
|
|
21
|
+
|
|
22
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
23
|
+
claimed = self.claimed
|
|
24
|
+
schema = self.schema
|
|
25
|
+
|
|
26
|
+
field_dict: Dict[str, Any] = {}
|
|
27
|
+
field_dict.update(
|
|
28
|
+
{
|
|
29
|
+
"claimed": claimed,
|
|
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
|
+
claimed = d.pop("claimed")
|
|
41
|
+
|
|
42
|
+
schema = d.pop("$schema", UNSET)
|
|
43
|
+
|
|
44
|
+
claim_device_login_ticket_response = cls(
|
|
45
|
+
claimed=claimed,
|
|
46
|
+
schema=schema,
|
|
47
|
+
)
|
|
48
|
+
|
|
49
|
+
return claim_device_login_ticket_response
|
|
@@ -0,0 +1,91 @@
|
|
|
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="CreateAccountParams")
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
@attr.s(auto_attribs=True)
|
|
11
|
+
class CreateAccountParams:
|
|
12
|
+
"""
|
|
13
|
+
Attributes:
|
|
14
|
+
company (str):
|
|
15
|
+
country (str):
|
|
16
|
+
email (str):
|
|
17
|
+
first_name (str):
|
|
18
|
+
invite (str):
|
|
19
|
+
last_name (str):
|
|
20
|
+
password (str):
|
|
21
|
+
schema (Union[Unset, str]): A URL to the JSON Schema for this object. Example:
|
|
22
|
+
http://localhost:8081/v1/schemas/CreateAccountParams.json.
|
|
23
|
+
"""
|
|
24
|
+
|
|
25
|
+
company: str
|
|
26
|
+
country: str
|
|
27
|
+
email: str
|
|
28
|
+
first_name: str
|
|
29
|
+
invite: str
|
|
30
|
+
last_name: str
|
|
31
|
+
password: str
|
|
32
|
+
schema: Union[Unset, str] = UNSET
|
|
33
|
+
|
|
34
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
35
|
+
company = self.company
|
|
36
|
+
country = self.country
|
|
37
|
+
email = self.email
|
|
38
|
+
first_name = self.first_name
|
|
39
|
+
invite = self.invite
|
|
40
|
+
last_name = self.last_name
|
|
41
|
+
password = self.password
|
|
42
|
+
schema = self.schema
|
|
43
|
+
|
|
44
|
+
field_dict: Dict[str, Any] = {}
|
|
45
|
+
field_dict.update(
|
|
46
|
+
{
|
|
47
|
+
"company": company,
|
|
48
|
+
"country": country,
|
|
49
|
+
"email": email,
|
|
50
|
+
"first_name": first_name,
|
|
51
|
+
"invite": invite,
|
|
52
|
+
"last_name": last_name,
|
|
53
|
+
"password": password,
|
|
54
|
+
}
|
|
55
|
+
)
|
|
56
|
+
if schema is not UNSET:
|
|
57
|
+
field_dict["$schema"] = schema
|
|
58
|
+
|
|
59
|
+
return field_dict
|
|
60
|
+
|
|
61
|
+
@classmethod
|
|
62
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
63
|
+
d = src_dict.copy()
|
|
64
|
+
company = d.pop("company")
|
|
65
|
+
|
|
66
|
+
country = d.pop("country")
|
|
67
|
+
|
|
68
|
+
email = d.pop("email")
|
|
69
|
+
|
|
70
|
+
first_name = d.pop("first_name")
|
|
71
|
+
|
|
72
|
+
invite = d.pop("invite")
|
|
73
|
+
|
|
74
|
+
last_name = d.pop("last_name")
|
|
75
|
+
|
|
76
|
+
password = d.pop("password")
|
|
77
|
+
|
|
78
|
+
schema = d.pop("$schema", UNSET)
|
|
79
|
+
|
|
80
|
+
create_account_params = cls(
|
|
81
|
+
company=company,
|
|
82
|
+
country=country,
|
|
83
|
+
email=email,
|
|
84
|
+
first_name=first_name,
|
|
85
|
+
invite=invite,
|
|
86
|
+
last_name=last_name,
|
|
87
|
+
password=password,
|
|
88
|
+
schema=schema,
|
|
89
|
+
)
|
|
90
|
+
|
|
91
|
+
return create_account_params
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
from typing import Any, Dict, Type, TypeVar
|
|
2
|
+
|
|
3
|
+
import attr
|
|
4
|
+
|
|
5
|
+
T = TypeVar("T", bound="CreateAccountParamsFlagsStruct")
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
@attr.s(auto_attribs=True)
|
|
9
|
+
class CreateAccountParamsFlagsStruct:
|
|
10
|
+
"""
|
|
11
|
+
Attributes:
|
|
12
|
+
is_test_account (bool):
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
is_test_account: bool
|
|
16
|
+
|
|
17
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
18
|
+
is_test_account = self.is_test_account
|
|
19
|
+
|
|
20
|
+
field_dict: Dict[str, Any] = {}
|
|
21
|
+
field_dict.update(
|
|
22
|
+
{
|
|
23
|
+
"is_test_account": is_test_account,
|
|
24
|
+
}
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
return field_dict
|
|
28
|
+
|
|
29
|
+
@classmethod
|
|
30
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
31
|
+
d = src_dict.copy()
|
|
32
|
+
is_test_account = d.pop("is_test_account")
|
|
33
|
+
|
|
34
|
+
create_account_params_flags_struct = cls(
|
|
35
|
+
is_test_account=is_test_account,
|
|
36
|
+
)
|
|
37
|
+
|
|
38
|
+
return create_account_params_flags_struct
|
|
@@ -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="CreateAccountResponse")
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
@attr.s(auto_attribs=True)
|
|
15
|
+
class CreateAccountResponse:
|
|
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/CreateAccountResponse.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_account_response = cls(
|
|
52
|
+
session=session,
|
|
53
|
+
schema=schema,
|
|
54
|
+
)
|
|
55
|
+
|
|
56
|
+
return create_account_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="CreateAPIKeyParams")
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
@attr.s(auto_attribs=True)
|
|
11
|
+
class CreateAPIKeyParams:
|
|
12
|
+
"""
|
|
13
|
+
Attributes:
|
|
14
|
+
name (str):
|
|
15
|
+
schema (Union[Unset, str]): A URL to the JSON Schema for this object. Example:
|
|
16
|
+
http://localhost:8081/v1/schemas/CreateAPIKeyParams.json.
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
name: str
|
|
20
|
+
schema: Union[Unset, str] = UNSET
|
|
21
|
+
|
|
22
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
23
|
+
name = self.name
|
|
24
|
+
schema = self.schema
|
|
25
|
+
|
|
26
|
+
field_dict: Dict[str, Any] = {}
|
|
27
|
+
field_dict.update(
|
|
28
|
+
{
|
|
29
|
+
"name": name,
|
|
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
|
+
name = d.pop("name")
|
|
41
|
+
|
|
42
|
+
schema = d.pop("$schema", UNSET)
|
|
43
|
+
|
|
44
|
+
create_api_key_params = cls(
|
|
45
|
+
name=name,
|
|
46
|
+
schema=schema,
|
|
47
|
+
)
|
|
48
|
+
|
|
49
|
+
return create_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="CreateAPIKeyResponse")
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
@attr.s(auto_attribs=True)
|
|
15
|
+
class CreateAPIKeyResponse:
|
|
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/CreateAPIKeyResponse.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
|
+
create_api_key_response = cls(
|
|
52
|
+
api_key=api_key,
|
|
53
|
+
schema=schema,
|
|
54
|
+
)
|
|
55
|
+
|
|
56
|
+
return create_api_key_response
|
|
@@ -0,0 +1,57 @@
|
|
|
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="CreateAppParams")
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
@attr.s(auto_attribs=True)
|
|
11
|
+
class CreateAppParams:
|
|
12
|
+
"""
|
|
13
|
+
Attributes:
|
|
14
|
+
name (str): The name of the app.
|
|
15
|
+
schema (Union[Unset, str]): A URL to the JSON Schema for this object. Example:
|
|
16
|
+
http://localhost:8081/v1/schemas/CreateAppParams.json.
|
|
17
|
+
short_description (Union[Unset, str]): A description of the app.
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
name: str
|
|
21
|
+
schema: Union[Unset, str] = UNSET
|
|
22
|
+
short_description: Union[Unset, str] = UNSET
|
|
23
|
+
|
|
24
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
25
|
+
name = self.name
|
|
26
|
+
schema = self.schema
|
|
27
|
+
short_description = self.short_description
|
|
28
|
+
|
|
29
|
+
field_dict: Dict[str, Any] = {}
|
|
30
|
+
field_dict.update(
|
|
31
|
+
{
|
|
32
|
+
"name": name,
|
|
33
|
+
}
|
|
34
|
+
)
|
|
35
|
+
if schema is not UNSET:
|
|
36
|
+
field_dict["$schema"] = schema
|
|
37
|
+
if short_description is not UNSET:
|
|
38
|
+
field_dict["short_description"] = short_description
|
|
39
|
+
|
|
40
|
+
return field_dict
|
|
41
|
+
|
|
42
|
+
@classmethod
|
|
43
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
44
|
+
d = src_dict.copy()
|
|
45
|
+
name = d.pop("name")
|
|
46
|
+
|
|
47
|
+
schema = d.pop("$schema", UNSET)
|
|
48
|
+
|
|
49
|
+
short_description = d.pop("short_description", UNSET)
|
|
50
|
+
|
|
51
|
+
create_app_params = cls(
|
|
52
|
+
name=name,
|
|
53
|
+
schema=schema,
|
|
54
|
+
short_description=short_description,
|
|
55
|
+
)
|
|
56
|
+
|
|
57
|
+
return create_app_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.app import App
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
T = TypeVar("T", bound="CreateAppResponse")
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
@attr.s(auto_attribs=True)
|
|
15
|
+
class CreateAppResponse:
|
|
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/CreateAppResponse.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
|
+
create_app_response = cls(
|
|
52
|
+
app=app,
|
|
53
|
+
schema=schema,
|
|
54
|
+
)
|
|
55
|
+
|
|
56
|
+
return create_app_response
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import datetime
|
|
2
|
+
from typing import Any, Dict, Type, TypeVar, Union
|
|
3
|
+
|
|
4
|
+
import attr
|
|
5
|
+
from dateutil.parser import isoparse
|
|
6
|
+
|
|
7
|
+
from ..types import UNSET, Unset
|
|
8
|
+
|
|
9
|
+
T = TypeVar("T", bound="CreateDeviceLoginTicketResponse")
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
@attr.s(auto_attribs=True)
|
|
13
|
+
class CreateDeviceLoginTicketResponse:
|
|
14
|
+
"""
|
|
15
|
+
Attributes:
|
|
16
|
+
device_code (str): The unique code identifying this device login request.
|
|
17
|
+
expires_in (int): Number of seconds until this request expires.
|
|
18
|
+
generated_at (datetime.datetime): When this device login request was created.
|
|
19
|
+
interval (int): Number of seconds to wait between polling attempts.
|
|
20
|
+
login_url (str): The URL where the user should go to enter the user code.
|
|
21
|
+
user_code (str): The code that the user needs to enter to authenticate.
|
|
22
|
+
verification_url (str): The URL that the device should poll to check authentication status.
|
|
23
|
+
schema (Union[Unset, str]): A URL to the JSON Schema for this object. Example:
|
|
24
|
+
http://localhost:8081/v1/schemas/CreateDeviceLoginTicketResponse.json.
|
|
25
|
+
"""
|
|
26
|
+
|
|
27
|
+
device_code: str
|
|
28
|
+
expires_in: int
|
|
29
|
+
generated_at: datetime.datetime
|
|
30
|
+
interval: int
|
|
31
|
+
login_url: str
|
|
32
|
+
user_code: str
|
|
33
|
+
verification_url: str
|
|
34
|
+
schema: Union[Unset, str] = UNSET
|
|
35
|
+
|
|
36
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
37
|
+
device_code = self.device_code
|
|
38
|
+
expires_in = self.expires_in
|
|
39
|
+
generated_at = self.generated_at.isoformat()
|
|
40
|
+
|
|
41
|
+
interval = self.interval
|
|
42
|
+
login_url = self.login_url
|
|
43
|
+
user_code = self.user_code
|
|
44
|
+
verification_url = self.verification_url
|
|
45
|
+
schema = self.schema
|
|
46
|
+
|
|
47
|
+
field_dict: Dict[str, Any] = {}
|
|
48
|
+
field_dict.update(
|
|
49
|
+
{
|
|
50
|
+
"device_code": device_code,
|
|
51
|
+
"expires_in": expires_in,
|
|
52
|
+
"generated_at": generated_at,
|
|
53
|
+
"interval": interval,
|
|
54
|
+
"login_url": login_url,
|
|
55
|
+
"user_code": user_code,
|
|
56
|
+
"verification_url": verification_url,
|
|
57
|
+
}
|
|
58
|
+
)
|
|
59
|
+
if schema is not UNSET:
|
|
60
|
+
field_dict["$schema"] = schema
|
|
61
|
+
|
|
62
|
+
return field_dict
|
|
63
|
+
|
|
64
|
+
@classmethod
|
|
65
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
66
|
+
d = src_dict.copy()
|
|
67
|
+
device_code = d.pop("device_code")
|
|
68
|
+
|
|
69
|
+
expires_in = d.pop("expires_in")
|
|
70
|
+
|
|
71
|
+
generated_at = isoparse(d.pop("generated_at"))
|
|
72
|
+
|
|
73
|
+
interval = d.pop("interval")
|
|
74
|
+
|
|
75
|
+
login_url = d.pop("login_url")
|
|
76
|
+
|
|
77
|
+
user_code = d.pop("user_code")
|
|
78
|
+
|
|
79
|
+
verification_url = d.pop("verification_url")
|
|
80
|
+
|
|
81
|
+
schema = d.pop("$schema", UNSET)
|
|
82
|
+
|
|
83
|
+
create_device_login_ticket_response = cls(
|
|
84
|
+
device_code=device_code,
|
|
85
|
+
expires_in=expires_in,
|
|
86
|
+
generated_at=generated_at,
|
|
87
|
+
interval=interval,
|
|
88
|
+
login_url=login_url,
|
|
89
|
+
user_code=user_code,
|
|
90
|
+
verification_url=verification_url,
|
|
91
|
+
schema=schema,
|
|
92
|
+
)
|
|
93
|
+
|
|
94
|
+
return create_device_login_ticket_response
|
|
@@ -0,0 +1,70 @@
|
|
|
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="CreateSecretParams")
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
@attr.s(auto_attribs=True)
|
|
11
|
+
class CreateSecretParams:
|
|
12
|
+
"""
|
|
13
|
+
Attributes:
|
|
14
|
+
encrypted_value (str):
|
|
15
|
+
environment (str):
|
|
16
|
+
name (str):
|
|
17
|
+
preview (str):
|
|
18
|
+
schema (Union[Unset, str]): A URL to the JSON Schema for this object. Example:
|
|
19
|
+
http://localhost:8081/v1/schemas/CreateSecretParams.json.
|
|
20
|
+
"""
|
|
21
|
+
|
|
22
|
+
encrypted_value: str
|
|
23
|
+
environment: str
|
|
24
|
+
name: str
|
|
25
|
+
preview: str
|
|
26
|
+
schema: Union[Unset, str] = UNSET
|
|
27
|
+
|
|
28
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
29
|
+
encrypted_value = self.encrypted_value
|
|
30
|
+
environment = self.environment
|
|
31
|
+
name = self.name
|
|
32
|
+
preview = self.preview
|
|
33
|
+
schema = self.schema
|
|
34
|
+
|
|
35
|
+
field_dict: Dict[str, Any] = {}
|
|
36
|
+
field_dict.update(
|
|
37
|
+
{
|
|
38
|
+
"encrypted_value": encrypted_value,
|
|
39
|
+
"environment": environment,
|
|
40
|
+
"name": name,
|
|
41
|
+
"preview": preview,
|
|
42
|
+
}
|
|
43
|
+
)
|
|
44
|
+
if schema is not UNSET:
|
|
45
|
+
field_dict["$schema"] = schema
|
|
46
|
+
|
|
47
|
+
return field_dict
|
|
48
|
+
|
|
49
|
+
@classmethod
|
|
50
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
51
|
+
d = src_dict.copy()
|
|
52
|
+
encrypted_value = d.pop("encrypted_value")
|
|
53
|
+
|
|
54
|
+
environment = d.pop("environment")
|
|
55
|
+
|
|
56
|
+
name = d.pop("name")
|
|
57
|
+
|
|
58
|
+
preview = d.pop("preview")
|
|
59
|
+
|
|
60
|
+
schema = d.pop("$schema", UNSET)
|
|
61
|
+
|
|
62
|
+
create_secret_params = cls(
|
|
63
|
+
encrypted_value=encrypted_value,
|
|
64
|
+
environment=environment,
|
|
65
|
+
name=name,
|
|
66
|
+
preview=preview,
|
|
67
|
+
schema=schema,
|
|
68
|
+
)
|
|
69
|
+
|
|
70
|
+
return create_secret_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.secret import Secret
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
T = TypeVar("T", bound="CreateSecretResponse")
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
@attr.s(auto_attribs=True)
|
|
15
|
+
class CreateSecretResponse:
|
|
16
|
+
"""
|
|
17
|
+
Attributes:
|
|
18
|
+
secret (Secret):
|
|
19
|
+
schema (Union[Unset, str]): A URL to the JSON Schema for this object. Example:
|
|
20
|
+
http://localhost:8081/v1/schemas/CreateSecretResponse.json.
|
|
21
|
+
"""
|
|
22
|
+
|
|
23
|
+
secret: "Secret"
|
|
24
|
+
schema: Union[Unset, str] = UNSET
|
|
25
|
+
|
|
26
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
27
|
+
secret = self.secret.to_dict()
|
|
28
|
+
|
|
29
|
+
schema = self.schema
|
|
30
|
+
|
|
31
|
+
field_dict: Dict[str, Any] = {}
|
|
32
|
+
field_dict.update(
|
|
33
|
+
{
|
|
34
|
+
"secret": secret,
|
|
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.secret import Secret
|
|
45
|
+
|
|
46
|
+
d = src_dict.copy()
|
|
47
|
+
secret = Secret.from_dict(d.pop("secret"))
|
|
48
|
+
|
|
49
|
+
schema = d.pop("$schema", UNSET)
|
|
50
|
+
|
|
51
|
+
create_secret_response = cls(
|
|
52
|
+
secret=secret,
|
|
53
|
+
schema=schema,
|
|
54
|
+
)
|
|
55
|
+
|
|
56
|
+
return create_secret_response
|