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,75 @@
|
|
|
1
|
+
from typing import TYPE_CHECKING, Any, Dict, List, 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
|
+
from ..models.run import Run
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
T = TypeVar("T", bound="DescribeAppResponse")
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
@attr.s(auto_attribs=True)
|
|
16
|
+
class DescribeAppResponse:
|
|
17
|
+
"""
|
|
18
|
+
Attributes:
|
|
19
|
+
app (App):
|
|
20
|
+
runs (List['Run']):
|
|
21
|
+
schema (Union[Unset, str]): A URL to the JSON Schema for this object. Example:
|
|
22
|
+
http://localhost:8081/v1/schemas/DescribeAppResponse.json.
|
|
23
|
+
"""
|
|
24
|
+
|
|
25
|
+
app: "App"
|
|
26
|
+
runs: List["Run"]
|
|
27
|
+
schema: Union[Unset, str] = UNSET
|
|
28
|
+
|
|
29
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
30
|
+
app = self.app.to_dict()
|
|
31
|
+
|
|
32
|
+
runs = []
|
|
33
|
+
for runs_item_data in self.runs:
|
|
34
|
+
runs_item = runs_item_data.to_dict()
|
|
35
|
+
|
|
36
|
+
runs.append(runs_item)
|
|
37
|
+
|
|
38
|
+
schema = self.schema
|
|
39
|
+
|
|
40
|
+
field_dict: Dict[str, Any] = {}
|
|
41
|
+
field_dict.update(
|
|
42
|
+
{
|
|
43
|
+
"app": app,
|
|
44
|
+
"runs": runs,
|
|
45
|
+
}
|
|
46
|
+
)
|
|
47
|
+
if schema is not UNSET:
|
|
48
|
+
field_dict["$schema"] = schema
|
|
49
|
+
|
|
50
|
+
return field_dict
|
|
51
|
+
|
|
52
|
+
@classmethod
|
|
53
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
54
|
+
from ..models.app import App
|
|
55
|
+
from ..models.run import Run
|
|
56
|
+
|
|
57
|
+
d = src_dict.copy()
|
|
58
|
+
app = App.from_dict(d.pop("app"))
|
|
59
|
+
|
|
60
|
+
runs = []
|
|
61
|
+
_runs = d.pop("runs")
|
|
62
|
+
for runs_item_data in _runs:
|
|
63
|
+
runs_item = Run.from_dict(runs_item_data)
|
|
64
|
+
|
|
65
|
+
runs.append(runs_item)
|
|
66
|
+
|
|
67
|
+
schema = d.pop("$schema", UNSET)
|
|
68
|
+
|
|
69
|
+
describe_app_response = cls(
|
|
70
|
+
app=app,
|
|
71
|
+
runs=runs,
|
|
72
|
+
schema=schema,
|
|
73
|
+
)
|
|
74
|
+
|
|
75
|
+
return describe_app_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="DescribeAppVersionResponse")
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
@attr.s(auto_attribs=True)
|
|
15
|
+
class DescribeAppVersionResponse:
|
|
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/DescribeAppVersionResponse.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
|
+
describe_app_version_response = cls(
|
|
52
|
+
version=version,
|
|
53
|
+
schema=schema,
|
|
54
|
+
)
|
|
55
|
+
|
|
56
|
+
return describe_app_version_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.session import Session
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
T = TypeVar("T", bound="DescribeDeviceLoginSessionResponse")
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
@attr.s(auto_attribs=True)
|
|
15
|
+
class DescribeDeviceLoginSessionResponse:
|
|
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/DescribeDeviceLoginSessionResponse.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
|
+
describe_device_login_session_response = cls(
|
|
52
|
+
session=session,
|
|
53
|
+
schema=schema,
|
|
54
|
+
)
|
|
55
|
+
|
|
56
|
+
return describe_device_login_session_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.run import Run
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
T = TypeVar("T", bound="DescribeRunResponse")
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
@attr.s(auto_attribs=True)
|
|
15
|
+
class DescribeRunResponse:
|
|
16
|
+
"""
|
|
17
|
+
Attributes:
|
|
18
|
+
run (Run):
|
|
19
|
+
schema (Union[Unset, str]): A URL to the JSON Schema for this object. Example:
|
|
20
|
+
http://localhost:8081/v1/schemas/DescribeRunResponse.json.
|
|
21
|
+
"""
|
|
22
|
+
|
|
23
|
+
run: "Run"
|
|
24
|
+
schema: Union[Unset, str] = UNSET
|
|
25
|
+
|
|
26
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
27
|
+
run = self.run.to_dict()
|
|
28
|
+
|
|
29
|
+
schema = self.schema
|
|
30
|
+
|
|
31
|
+
field_dict: Dict[str, Any] = {}
|
|
32
|
+
field_dict.update(
|
|
33
|
+
{
|
|
34
|
+
"run": run,
|
|
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.run import Run
|
|
45
|
+
|
|
46
|
+
d = src_dict.copy()
|
|
47
|
+
run = Run.from_dict(d.pop("run"))
|
|
48
|
+
|
|
49
|
+
schema = d.pop("$schema", UNSET)
|
|
50
|
+
|
|
51
|
+
describe_run_response = cls(
|
|
52
|
+
run=run,
|
|
53
|
+
schema=schema,
|
|
54
|
+
)
|
|
55
|
+
|
|
56
|
+
return describe_run_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="DescribeSecretsKeyResponse")
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
@attr.s(auto_attribs=True)
|
|
11
|
+
class DescribeSecretsKeyResponse:
|
|
12
|
+
"""
|
|
13
|
+
Attributes:
|
|
14
|
+
public_key (str):
|
|
15
|
+
schema (Union[Unset, str]): A URL to the JSON Schema for this object. Example:
|
|
16
|
+
http://localhost:8081/v1/schemas/DescribeSecretsKeyResponse.json.
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
public_key: str
|
|
20
|
+
schema: Union[Unset, str] = UNSET
|
|
21
|
+
|
|
22
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
23
|
+
public_key = self.public_key
|
|
24
|
+
schema = self.schema
|
|
25
|
+
|
|
26
|
+
field_dict: Dict[str, Any] = {}
|
|
27
|
+
field_dict.update(
|
|
28
|
+
{
|
|
29
|
+
"public_key": public_key,
|
|
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
|
+
public_key = d.pop("public_key")
|
|
41
|
+
|
|
42
|
+
schema = d.pop("$schema", UNSET)
|
|
43
|
+
|
|
44
|
+
describe_secrets_key_response = cls(
|
|
45
|
+
public_key=public_key,
|
|
46
|
+
schema=schema,
|
|
47
|
+
)
|
|
48
|
+
|
|
49
|
+
return describe_secrets_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.session import Session
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
T = TypeVar("T", bound="DescribeSessionResponse")
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
@attr.s(auto_attribs=True)
|
|
15
|
+
class DescribeSessionResponse:
|
|
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/DescribeSessionResponse.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
|
+
describe_session_response = cls(
|
|
52
|
+
session=session,
|
|
53
|
+
schema=schema,
|
|
54
|
+
)
|
|
55
|
+
|
|
56
|
+
return describe_session_response
|
|
@@ -0,0 +1,54 @@
|
|
|
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="ErrorDetail")
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
@attr.s(auto_attribs=True)
|
|
11
|
+
class ErrorDetail:
|
|
12
|
+
"""
|
|
13
|
+
Attributes:
|
|
14
|
+
location (Union[Unset, str]): Where the error occurred, e.g. 'body.items[3].tags' or 'path.thing-id'
|
|
15
|
+
message (Union[Unset, str]): Error message text
|
|
16
|
+
value (Union[Unset, Any]): The value at the given location
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
location: Union[Unset, str] = UNSET
|
|
20
|
+
message: Union[Unset, str] = UNSET
|
|
21
|
+
value: Union[Unset, Any] = UNSET
|
|
22
|
+
|
|
23
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
24
|
+
location = self.location
|
|
25
|
+
message = self.message
|
|
26
|
+
value = self.value
|
|
27
|
+
|
|
28
|
+
field_dict: Dict[str, Any] = {}
|
|
29
|
+
field_dict.update({})
|
|
30
|
+
if location is not UNSET:
|
|
31
|
+
field_dict["location"] = location
|
|
32
|
+
if message is not UNSET:
|
|
33
|
+
field_dict["message"] = message
|
|
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
|
+
location = d.pop("location", UNSET)
|
|
43
|
+
|
|
44
|
+
message = d.pop("message", UNSET)
|
|
45
|
+
|
|
46
|
+
value = d.pop("value", UNSET)
|
|
47
|
+
|
|
48
|
+
error_detail = cls(
|
|
49
|
+
location=location,
|
|
50
|
+
message=message,
|
|
51
|
+
value=value,
|
|
52
|
+
)
|
|
53
|
+
|
|
54
|
+
return error_detail
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
|
|
2
|
+
|
|
3
|
+
import attr
|
|
4
|
+
|
|
5
|
+
from ..types import UNSET, Unset
|
|
6
|
+
|
|
7
|
+
if TYPE_CHECKING:
|
|
8
|
+
from ..models.error_detail import ErrorDetail
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
T = TypeVar("T", bound="ErrorModel")
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
@attr.s(auto_attribs=True)
|
|
15
|
+
class ErrorModel:
|
|
16
|
+
"""
|
|
17
|
+
Attributes:
|
|
18
|
+
schema (Union[Unset, str]): A URL to the JSON Schema for this object. Example:
|
|
19
|
+
http://localhost:8081/v1/schemas/ErrorModel.json.
|
|
20
|
+
detail (Union[Unset, str]): A human-readable explanation specific to this occurrence of the problem. Example:
|
|
21
|
+
Property foo is required but is missing..
|
|
22
|
+
errors (Union[Unset, List['ErrorDetail']]): Optional list of individual error details
|
|
23
|
+
instance (Union[Unset, str]): A URI reference that identifies the specific occurrence of the problem. Example:
|
|
24
|
+
https://example.com/error-log/abc123.
|
|
25
|
+
status (Union[Unset, int]): HTTP status code Example: 400.
|
|
26
|
+
title (Union[Unset, str]): A short, human-readable summary of the problem type. This value should not change
|
|
27
|
+
between occurrences of the error. Example: Bad Request.
|
|
28
|
+
type (Union[Unset, str]): A URI reference to human-readable documentation for the error. Default: 'about:blank'.
|
|
29
|
+
Example: https://example.com/errors/example.
|
|
30
|
+
"""
|
|
31
|
+
|
|
32
|
+
schema: Union[Unset, str] = UNSET
|
|
33
|
+
detail: Union[Unset, str] = UNSET
|
|
34
|
+
errors: Union[Unset, List["ErrorDetail"]] = UNSET
|
|
35
|
+
instance: Union[Unset, str] = UNSET
|
|
36
|
+
status: Union[Unset, int] = UNSET
|
|
37
|
+
title: Union[Unset, str] = UNSET
|
|
38
|
+
type: Union[Unset, str] = "about:blank"
|
|
39
|
+
|
|
40
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
41
|
+
schema = self.schema
|
|
42
|
+
detail = self.detail
|
|
43
|
+
errors: Union[Unset, List[Dict[str, Any]]] = UNSET
|
|
44
|
+
if not isinstance(self.errors, Unset):
|
|
45
|
+
errors = []
|
|
46
|
+
for errors_item_data in self.errors:
|
|
47
|
+
errors_item = errors_item_data.to_dict()
|
|
48
|
+
|
|
49
|
+
errors.append(errors_item)
|
|
50
|
+
|
|
51
|
+
instance = self.instance
|
|
52
|
+
status = self.status
|
|
53
|
+
title = self.title
|
|
54
|
+
type = self.type
|
|
55
|
+
|
|
56
|
+
field_dict: Dict[str, Any] = {}
|
|
57
|
+
field_dict.update({})
|
|
58
|
+
if schema is not UNSET:
|
|
59
|
+
field_dict["$schema"] = schema
|
|
60
|
+
if detail is not UNSET:
|
|
61
|
+
field_dict["detail"] = detail
|
|
62
|
+
if errors is not UNSET:
|
|
63
|
+
field_dict["errors"] = errors
|
|
64
|
+
if instance is not UNSET:
|
|
65
|
+
field_dict["instance"] = instance
|
|
66
|
+
if status is not UNSET:
|
|
67
|
+
field_dict["status"] = status
|
|
68
|
+
if title is not UNSET:
|
|
69
|
+
field_dict["title"] = title
|
|
70
|
+
if type is not UNSET:
|
|
71
|
+
field_dict["type"] = type
|
|
72
|
+
|
|
73
|
+
return field_dict
|
|
74
|
+
|
|
75
|
+
@classmethod
|
|
76
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
77
|
+
from ..models.error_detail import ErrorDetail
|
|
78
|
+
|
|
79
|
+
d = src_dict.copy()
|
|
80
|
+
schema = d.pop("$schema", UNSET)
|
|
81
|
+
|
|
82
|
+
detail = d.pop("detail", UNSET)
|
|
83
|
+
|
|
84
|
+
errors = []
|
|
85
|
+
_errors = d.pop("errors", UNSET)
|
|
86
|
+
for errors_item_data in _errors or []:
|
|
87
|
+
errors_item = ErrorDetail.from_dict(errors_item_data)
|
|
88
|
+
|
|
89
|
+
errors.append(errors_item)
|
|
90
|
+
|
|
91
|
+
instance = d.pop("instance", UNSET)
|
|
92
|
+
|
|
93
|
+
status = d.pop("status", UNSET)
|
|
94
|
+
|
|
95
|
+
title = d.pop("title", UNSET)
|
|
96
|
+
|
|
97
|
+
type = d.pop("type", UNSET)
|
|
98
|
+
|
|
99
|
+
error_model = cls(
|
|
100
|
+
schema=schema,
|
|
101
|
+
detail=detail,
|
|
102
|
+
errors=errors,
|
|
103
|
+
instance=instance,
|
|
104
|
+
status=status,
|
|
105
|
+
title=title,
|
|
106
|
+
type=type,
|
|
107
|
+
)
|
|
108
|
+
|
|
109
|
+
return error_model
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
|
|
2
|
+
|
|
3
|
+
import attr
|
|
4
|
+
|
|
5
|
+
from ..types import UNSET, Unset
|
|
6
|
+
|
|
7
|
+
if TYPE_CHECKING:
|
|
8
|
+
from ..models.exported_secret import ExportedSecret
|
|
9
|
+
from ..models.pagination import Pagination
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
T = TypeVar("T", bound="ExportSecretsResponse")
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
@attr.s(auto_attribs=True)
|
|
16
|
+
class ExportSecretsResponse:
|
|
17
|
+
"""
|
|
18
|
+
Attributes:
|
|
19
|
+
pages (Pagination):
|
|
20
|
+
secrets (List['ExportedSecret']):
|
|
21
|
+
schema (Union[Unset, str]): A URL to the JSON Schema for this object. Example:
|
|
22
|
+
http://localhost:8081/v1/schemas/ExportSecretsResponse.json.
|
|
23
|
+
"""
|
|
24
|
+
|
|
25
|
+
pages: "Pagination"
|
|
26
|
+
secrets: List["ExportedSecret"]
|
|
27
|
+
schema: Union[Unset, str] = UNSET
|
|
28
|
+
|
|
29
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
30
|
+
pages = self.pages.to_dict()
|
|
31
|
+
|
|
32
|
+
secrets = []
|
|
33
|
+
for secrets_item_data in self.secrets:
|
|
34
|
+
secrets_item = secrets_item_data.to_dict()
|
|
35
|
+
|
|
36
|
+
secrets.append(secrets_item)
|
|
37
|
+
|
|
38
|
+
schema = self.schema
|
|
39
|
+
|
|
40
|
+
field_dict: Dict[str, Any] = {}
|
|
41
|
+
field_dict.update(
|
|
42
|
+
{
|
|
43
|
+
"pages": pages,
|
|
44
|
+
"secrets": secrets,
|
|
45
|
+
}
|
|
46
|
+
)
|
|
47
|
+
if schema is not UNSET:
|
|
48
|
+
field_dict["$schema"] = schema
|
|
49
|
+
|
|
50
|
+
return field_dict
|
|
51
|
+
|
|
52
|
+
@classmethod
|
|
53
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
54
|
+
from ..models.exported_secret import ExportedSecret
|
|
55
|
+
from ..models.pagination import Pagination
|
|
56
|
+
|
|
57
|
+
d = src_dict.copy()
|
|
58
|
+
pages = Pagination.from_dict(d.pop("pages"))
|
|
59
|
+
|
|
60
|
+
secrets = []
|
|
61
|
+
_secrets = d.pop("secrets")
|
|
62
|
+
for secrets_item_data in _secrets:
|
|
63
|
+
secrets_item = ExportedSecret.from_dict(secrets_item_data)
|
|
64
|
+
|
|
65
|
+
secrets.append(secrets_item)
|
|
66
|
+
|
|
67
|
+
schema = d.pop("$schema", UNSET)
|
|
68
|
+
|
|
69
|
+
export_secrets_response = cls(
|
|
70
|
+
pages=pages,
|
|
71
|
+
secrets=secrets,
|
|
72
|
+
schema=schema,
|
|
73
|
+
)
|
|
74
|
+
|
|
75
|
+
return export_secrets_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="ExportUserSecretsParams")
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
@attr.s(auto_attribs=True)
|
|
11
|
+
class ExportUserSecretsParams:
|
|
12
|
+
"""
|
|
13
|
+
Attributes:
|
|
14
|
+
public_key (str):
|
|
15
|
+
schema (Union[Unset, str]): A URL to the JSON Schema for this object. Example:
|
|
16
|
+
http://localhost:8081/v1/schemas/ExportUserSecretsParams.json.
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
public_key: str
|
|
20
|
+
schema: Union[Unset, str] = UNSET
|
|
21
|
+
|
|
22
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
23
|
+
public_key = self.public_key
|
|
24
|
+
schema = self.schema
|
|
25
|
+
|
|
26
|
+
field_dict: Dict[str, Any] = {}
|
|
27
|
+
field_dict.update(
|
|
28
|
+
{
|
|
29
|
+
"public_key": public_key,
|
|
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
|
+
public_key = d.pop("public_key")
|
|
41
|
+
|
|
42
|
+
schema = d.pop("$schema", UNSET)
|
|
43
|
+
|
|
44
|
+
export_user_secrets_params = cls(
|
|
45
|
+
public_key=public_key,
|
|
46
|
+
schema=schema,
|
|
47
|
+
)
|
|
48
|
+
|
|
49
|
+
return export_user_secrets_params
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import datetime
|
|
2
|
+
from typing import Any, Dict, Type, TypeVar
|
|
3
|
+
|
|
4
|
+
import attr
|
|
5
|
+
from dateutil.parser import isoparse
|
|
6
|
+
|
|
7
|
+
T = TypeVar("T", bound="ExportedSecret")
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
@attr.s(auto_attribs=True)
|
|
11
|
+
class ExportedSecret:
|
|
12
|
+
"""
|
|
13
|
+
Attributes:
|
|
14
|
+
created_at (datetime.datetime):
|
|
15
|
+
encrypted_value (str):
|
|
16
|
+
environment (str):
|
|
17
|
+
name (str):
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
created_at: datetime.datetime
|
|
21
|
+
encrypted_value: str
|
|
22
|
+
environment: str
|
|
23
|
+
name: str
|
|
24
|
+
|
|
25
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
26
|
+
created_at = self.created_at.isoformat()
|
|
27
|
+
|
|
28
|
+
encrypted_value = self.encrypted_value
|
|
29
|
+
environment = self.environment
|
|
30
|
+
name = self.name
|
|
31
|
+
|
|
32
|
+
field_dict: Dict[str, Any] = {}
|
|
33
|
+
field_dict.update(
|
|
34
|
+
{
|
|
35
|
+
"created_at": created_at,
|
|
36
|
+
"encrypted_value": encrypted_value,
|
|
37
|
+
"environment": environment,
|
|
38
|
+
"name": name,
|
|
39
|
+
}
|
|
40
|
+
)
|
|
41
|
+
|
|
42
|
+
return field_dict
|
|
43
|
+
|
|
44
|
+
@classmethod
|
|
45
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
46
|
+
d = src_dict.copy()
|
|
47
|
+
created_at = isoparse(d.pop("created_at"))
|
|
48
|
+
|
|
49
|
+
encrypted_value = d.pop("encrypted_value")
|
|
50
|
+
|
|
51
|
+
environment = d.pop("environment")
|
|
52
|
+
|
|
53
|
+
name = d.pop("name")
|
|
54
|
+
|
|
55
|
+
exported_secret = cls(
|
|
56
|
+
created_at=created_at,
|
|
57
|
+
encrypted_value=encrypted_value,
|
|
58
|
+
environment=environment,
|
|
59
|
+
name=name,
|
|
60
|
+
)
|
|
61
|
+
|
|
62
|
+
return exported_secret
|