cyberdesk 0.2.2__py3-none-any.whl → 0.2.4__py3-none-any.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.
Potentially problematic release.
This version of cyberdesk might be problematic. Click here for more details.
- cyberdesk/__init__.py +7 -7
- cyberdesk/actions.py +37 -37
- cyberdesk/client.py +74 -74
- cyberdesk/types.py +49 -49
- {cyberdesk-0.2.2.dist-info → cyberdesk-0.2.4.dist-info}/METADATA +14 -5
- cyberdesk-0.2.4.dist-info/RECORD +136 -0
- {cyberdesk-0.2.2.dist-info → cyberdesk-0.2.4.dist-info}/WHEEL +1 -1
- {cyberdesk-0.2.2.dist-info → cyberdesk-0.2.4.dist-info}/licenses/LICENSE +20 -20
- cyberdesk-0.2.4.dist-info/top_level.txt +2 -0
- openapi_client/api_reference_client/__init__.py +8 -0
- openapi_client/api_reference_client/api/__init__.py +1 -0
- openapi_client/api_reference_client/api/desktop/__init__.py +1 -0
- openapi_client/api_reference_client/api/desktop/get_v1_desktop_id.py +293 -0
- openapi_client/api_reference_client/api/desktop/post_v1_desktop.py +294 -0
- openapi_client/api_reference_client/api/desktop/post_v1_desktop_id_bash_action.py +307 -0
- openapi_client/api_reference_client/api/desktop/post_v1_desktop_id_computer_action.py +419 -0
- openapi_client/api_reference_client/api/desktop/post_v1_desktop_id_stop.py +288 -0
- openapi_client/api_reference_client/client.py +268 -0
- openapi_client/api_reference_client/errors.py +16 -0
- openapi_client/api_reference_client/models/__init__.py +249 -0
- openapi_client/api_reference_client/models/get_v1_desktop_id_response_200.py +104 -0
- openapi_client/api_reference_client/models/get_v1_desktop_id_response_200_status.py +11 -0
- openapi_client/api_reference_client/models/get_v1_desktop_id_response_400.py +69 -0
- openapi_client/api_reference_client/models/get_v1_desktop_id_response_400_status.py +8 -0
- openapi_client/api_reference_client/models/get_v1_desktop_id_response_401.py +69 -0
- openapi_client/api_reference_client/models/get_v1_desktop_id_response_401_status.py +8 -0
- openapi_client/api_reference_client/models/get_v1_desktop_id_response_403.py +69 -0
- openapi_client/api_reference_client/models/get_v1_desktop_id_response_403_status.py +8 -0
- openapi_client/api_reference_client/models/get_v1_desktop_id_response_404.py +69 -0
- openapi_client/api_reference_client/models/get_v1_desktop_id_response_404_status.py +8 -0
- openapi_client/api_reference_client/models/get_v1_desktop_id_response_409.py +69 -0
- openapi_client/api_reference_client/models/get_v1_desktop_id_response_409_status.py +8 -0
- openapi_client/api_reference_client/models/get_v1_desktop_id_response_429.py +69 -0
- openapi_client/api_reference_client/models/get_v1_desktop_id_response_429_status.py +8 -0
- openapi_client/api_reference_client/models/get_v1_desktop_id_response_500.py +69 -0
- openapi_client/api_reference_client/models/get_v1_desktop_id_response_500_status.py +8 -0
- openapi_client/api_reference_client/models/get_v1_desktop_id_response_502.py +69 -0
- openapi_client/api_reference_client/models/get_v1_desktop_id_response_502_status.py +8 -0
- openapi_client/api_reference_client/models/post_v1_desktop_body.py +59 -0
- openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_body.py +59 -0
- openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_200.py +79 -0
- openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_400.py +69 -0
- openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_400_status.py +8 -0
- openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_401.py +69 -0
- openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_401_status.py +8 -0
- openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_403.py +69 -0
- openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_403_status.py +8 -0
- openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_404.py +69 -0
- openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_404_status.py +8 -0
- openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_409.py +69 -0
- openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_409_status.py +8 -0
- openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_429.py +69 -0
- openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_429_status.py +8 -0
- openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_500.py +69 -0
- openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_500_status.py +8 -0
- openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_502.py +69 -0
- openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_502_status.py +8 -0
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_click_mouse_action.py +133 -0
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_click_mouse_action_button.py +10 -0
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_click_mouse_action_click_type.py +10 -0
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_click_mouse_action_type.py +8 -0
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_drag_mouse_action.py +98 -0
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_drag_mouse_action_end.py +71 -0
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_drag_mouse_action_start.py +71 -0
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_drag_mouse_action_type.py +8 -0
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_get_cursor_position_action.py +64 -0
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_get_cursor_position_action_type.py +8 -0
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_move_mouse_action.py +80 -0
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_move_mouse_action_type.py +8 -0
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_press_keys_action.py +109 -0
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_press_keys_action_key_action_type.py +10 -0
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_press_keys_action_type.py +8 -0
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_200.py +79 -0
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_400.py +71 -0
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_400_status.py +8 -0
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_401.py +71 -0
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_401_status.py +8 -0
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_403.py +71 -0
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_403_status.py +8 -0
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_404.py +71 -0
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_404_status.py +8 -0
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_409.py +71 -0
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_409_status.py +8 -0
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_429.py +71 -0
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_429_status.py +8 -0
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_500.py +71 -0
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_500_status.py +8 -0
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_502.py +71 -0
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_502_status.py +8 -0
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_screenshot_action.py +63 -0
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_screenshot_action_type.py +8 -0
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_scroll_action.py +81 -0
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_scroll_action_direction.py +11 -0
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_scroll_action_type.py +8 -0
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_type_text_action.py +71 -0
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_type_text_action_type.py +8 -0
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_wait_action.py +70 -0
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_wait_action_type.py +8 -0
- openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_200.py +62 -0
- openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_200_status.py +11 -0
- openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_400.py +69 -0
- openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_400_status.py +8 -0
- openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_401.py +69 -0
- openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_401_status.py +8 -0
- openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_403.py +69 -0
- openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_403_status.py +8 -0
- openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_404.py +69 -0
- openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_404_status.py +8 -0
- openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_409.py +69 -0
- openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_409_status.py +8 -0
- openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_429.py +69 -0
- openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_429_status.py +8 -0
- openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_500.py +69 -0
- openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_500_status.py +8 -0
- openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_502.py +69 -0
- openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_502_status.py +8 -0
- openapi_client/api_reference_client/models/post_v1_desktop_response_200.py +70 -0
- openapi_client/api_reference_client/models/post_v1_desktop_response_200_status.py +11 -0
- openapi_client/api_reference_client/models/post_v1_desktop_response_400.py +69 -0
- openapi_client/api_reference_client/models/post_v1_desktop_response_400_status.py +8 -0
- openapi_client/api_reference_client/models/post_v1_desktop_response_401.py +69 -0
- openapi_client/api_reference_client/models/post_v1_desktop_response_401_status.py +8 -0
- openapi_client/api_reference_client/models/post_v1_desktop_response_403.py +69 -0
- openapi_client/api_reference_client/models/post_v1_desktop_response_403_status.py +8 -0
- openapi_client/api_reference_client/models/post_v1_desktop_response_404.py +69 -0
- openapi_client/api_reference_client/models/post_v1_desktop_response_404_status.py +8 -0
- openapi_client/api_reference_client/models/post_v1_desktop_response_409.py +69 -0
- openapi_client/api_reference_client/models/post_v1_desktop_response_409_status.py +8 -0
- openapi_client/api_reference_client/models/post_v1_desktop_response_429.py +69 -0
- openapi_client/api_reference_client/models/post_v1_desktop_response_429_status.py +8 -0
- openapi_client/api_reference_client/models/post_v1_desktop_response_500.py +69 -0
- openapi_client/api_reference_client/models/post_v1_desktop_response_500_status.py +8 -0
- openapi_client/api_reference_client/models/post_v1_desktop_response_502.py +69 -0
- openapi_client/api_reference_client/models/post_v1_desktop_response_502_status.py +8 -0
- openapi_client/api_reference_client/py.typed +1 -0
- openapi_client/api_reference_client/types.py +46 -0
- cyberdesk-0.2.2.dist-info/RECORD +0 -9
- cyberdesk-0.2.2.dist-info/top_level.txt +0 -1
openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_screenshot_action.py
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
from collections.abc import Mapping
|
|
2
|
+
from typing import Any, TypeVar
|
|
3
|
+
|
|
4
|
+
from attrs import define as _attrs_define
|
|
5
|
+
from attrs import field as _attrs_field
|
|
6
|
+
|
|
7
|
+
from ..models.post_v1_desktop_id_computer_action_screenshot_action_type import (
|
|
8
|
+
PostV1DesktopIdComputerActionScreenshotActionType,
|
|
9
|
+
)
|
|
10
|
+
|
|
11
|
+
T = TypeVar("T", bound="PostV1DesktopIdComputerActionScreenshotAction")
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
@_attrs_define
|
|
15
|
+
class PostV1DesktopIdComputerActionScreenshotAction:
|
|
16
|
+
"""
|
|
17
|
+
Attributes:
|
|
18
|
+
type_ (PostV1DesktopIdComputerActionScreenshotActionType): Take a screenshot of the desktop Example: screenshot.
|
|
19
|
+
"""
|
|
20
|
+
|
|
21
|
+
type_: PostV1DesktopIdComputerActionScreenshotActionType
|
|
22
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
23
|
+
|
|
24
|
+
def to_dict(self) -> dict[str, Any]:
|
|
25
|
+
type_ = self.type_.value
|
|
26
|
+
|
|
27
|
+
field_dict: dict[str, Any] = {}
|
|
28
|
+
field_dict.update(self.additional_properties)
|
|
29
|
+
field_dict.update(
|
|
30
|
+
{
|
|
31
|
+
"type": type_,
|
|
32
|
+
}
|
|
33
|
+
)
|
|
34
|
+
|
|
35
|
+
return field_dict
|
|
36
|
+
|
|
37
|
+
@classmethod
|
|
38
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
39
|
+
d = dict(src_dict)
|
|
40
|
+
type_ = PostV1DesktopIdComputerActionScreenshotActionType(d.pop("type"))
|
|
41
|
+
|
|
42
|
+
post_v1_desktop_id_computer_action_screenshot_action = cls(
|
|
43
|
+
type_=type_,
|
|
44
|
+
)
|
|
45
|
+
|
|
46
|
+
post_v1_desktop_id_computer_action_screenshot_action.additional_properties = d
|
|
47
|
+
return post_v1_desktop_id_computer_action_screenshot_action
|
|
48
|
+
|
|
49
|
+
@property
|
|
50
|
+
def additional_keys(self) -> list[str]:
|
|
51
|
+
return list(self.additional_properties.keys())
|
|
52
|
+
|
|
53
|
+
def __getitem__(self, key: str) -> Any:
|
|
54
|
+
return self.additional_properties[key]
|
|
55
|
+
|
|
56
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
57
|
+
self.additional_properties[key] = value
|
|
58
|
+
|
|
59
|
+
def __delitem__(self, key: str) -> None:
|
|
60
|
+
del self.additional_properties[key]
|
|
61
|
+
|
|
62
|
+
def __contains__(self, key: str) -> bool:
|
|
63
|
+
return key in self.additional_properties
|
openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_scroll_action.py
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
from collections.abc import Mapping
|
|
2
|
+
from typing import Any, TypeVar
|
|
3
|
+
|
|
4
|
+
from attrs import define as _attrs_define
|
|
5
|
+
from attrs import field as _attrs_field
|
|
6
|
+
|
|
7
|
+
from ..models.post_v1_desktop_id_computer_action_scroll_action_direction import (
|
|
8
|
+
PostV1DesktopIdComputerActionScrollActionDirection,
|
|
9
|
+
)
|
|
10
|
+
from ..models.post_v1_desktop_id_computer_action_scroll_action_type import PostV1DesktopIdComputerActionScrollActionType
|
|
11
|
+
|
|
12
|
+
T = TypeVar("T", bound="PostV1DesktopIdComputerActionScrollAction")
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
@_attrs_define
|
|
16
|
+
class PostV1DesktopIdComputerActionScrollAction:
|
|
17
|
+
"""
|
|
18
|
+
Attributes:
|
|
19
|
+
type_ (PostV1DesktopIdComputerActionScrollActionType): Scroll the mouse wheel in the specified direction
|
|
20
|
+
Example: scroll.
|
|
21
|
+
direction (PostV1DesktopIdComputerActionScrollActionDirection): Direction to scroll Example: down.
|
|
22
|
+
amount (int): Amount to scroll in pixels Example: 100.
|
|
23
|
+
"""
|
|
24
|
+
|
|
25
|
+
type_: PostV1DesktopIdComputerActionScrollActionType
|
|
26
|
+
direction: PostV1DesktopIdComputerActionScrollActionDirection
|
|
27
|
+
amount: int
|
|
28
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
29
|
+
|
|
30
|
+
def to_dict(self) -> dict[str, Any]:
|
|
31
|
+
type_ = self.type_.value
|
|
32
|
+
|
|
33
|
+
direction = self.direction.value
|
|
34
|
+
|
|
35
|
+
amount = self.amount
|
|
36
|
+
|
|
37
|
+
field_dict: dict[str, Any] = {}
|
|
38
|
+
field_dict.update(self.additional_properties)
|
|
39
|
+
field_dict.update(
|
|
40
|
+
{
|
|
41
|
+
"type": type_,
|
|
42
|
+
"direction": direction,
|
|
43
|
+
"amount": amount,
|
|
44
|
+
}
|
|
45
|
+
)
|
|
46
|
+
|
|
47
|
+
return field_dict
|
|
48
|
+
|
|
49
|
+
@classmethod
|
|
50
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
51
|
+
d = dict(src_dict)
|
|
52
|
+
type_ = PostV1DesktopIdComputerActionScrollActionType(d.pop("type"))
|
|
53
|
+
|
|
54
|
+
direction = PostV1DesktopIdComputerActionScrollActionDirection(d.pop("direction"))
|
|
55
|
+
|
|
56
|
+
amount = d.pop("amount")
|
|
57
|
+
|
|
58
|
+
post_v1_desktop_id_computer_action_scroll_action = cls(
|
|
59
|
+
type_=type_,
|
|
60
|
+
direction=direction,
|
|
61
|
+
amount=amount,
|
|
62
|
+
)
|
|
63
|
+
|
|
64
|
+
post_v1_desktop_id_computer_action_scroll_action.additional_properties = d
|
|
65
|
+
return post_v1_desktop_id_computer_action_scroll_action
|
|
66
|
+
|
|
67
|
+
@property
|
|
68
|
+
def additional_keys(self) -> list[str]:
|
|
69
|
+
return list(self.additional_properties.keys())
|
|
70
|
+
|
|
71
|
+
def __getitem__(self, key: str) -> Any:
|
|
72
|
+
return self.additional_properties[key]
|
|
73
|
+
|
|
74
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
75
|
+
self.additional_properties[key] = value
|
|
76
|
+
|
|
77
|
+
def __delitem__(self, key: str) -> None:
|
|
78
|
+
del self.additional_properties[key]
|
|
79
|
+
|
|
80
|
+
def __contains__(self, key: str) -> bool:
|
|
81
|
+
return key in self.additional_properties
|
openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_type_text_action.py
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
from collections.abc import Mapping
|
|
2
|
+
from typing import Any, TypeVar
|
|
3
|
+
|
|
4
|
+
from attrs import define as _attrs_define
|
|
5
|
+
from attrs import field as _attrs_field
|
|
6
|
+
|
|
7
|
+
from ..models.post_v1_desktop_id_computer_action_type_text_action_type import (
|
|
8
|
+
PostV1DesktopIdComputerActionTypeTextActionType,
|
|
9
|
+
)
|
|
10
|
+
|
|
11
|
+
T = TypeVar("T", bound="PostV1DesktopIdComputerActionTypeTextAction")
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
@_attrs_define
|
|
15
|
+
class PostV1DesktopIdComputerActionTypeTextAction:
|
|
16
|
+
"""
|
|
17
|
+
Attributes:
|
|
18
|
+
type_ (PostV1DesktopIdComputerActionTypeTextActionType): Type text at the current cursor position Example: type.
|
|
19
|
+
text (str): Text to type Example: Hello, World!.
|
|
20
|
+
"""
|
|
21
|
+
|
|
22
|
+
type_: PostV1DesktopIdComputerActionTypeTextActionType
|
|
23
|
+
text: str
|
|
24
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
25
|
+
|
|
26
|
+
def to_dict(self) -> dict[str, Any]:
|
|
27
|
+
type_ = self.type_.value
|
|
28
|
+
|
|
29
|
+
text = self.text
|
|
30
|
+
|
|
31
|
+
field_dict: dict[str, Any] = {}
|
|
32
|
+
field_dict.update(self.additional_properties)
|
|
33
|
+
field_dict.update(
|
|
34
|
+
{
|
|
35
|
+
"type": type_,
|
|
36
|
+
"text": text,
|
|
37
|
+
}
|
|
38
|
+
)
|
|
39
|
+
|
|
40
|
+
return field_dict
|
|
41
|
+
|
|
42
|
+
@classmethod
|
|
43
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
44
|
+
d = dict(src_dict)
|
|
45
|
+
type_ = PostV1DesktopIdComputerActionTypeTextActionType(d.pop("type"))
|
|
46
|
+
|
|
47
|
+
text = d.pop("text")
|
|
48
|
+
|
|
49
|
+
post_v1_desktop_id_computer_action_type_text_action = cls(
|
|
50
|
+
type_=type_,
|
|
51
|
+
text=text,
|
|
52
|
+
)
|
|
53
|
+
|
|
54
|
+
post_v1_desktop_id_computer_action_type_text_action.additional_properties = d
|
|
55
|
+
return post_v1_desktop_id_computer_action_type_text_action
|
|
56
|
+
|
|
57
|
+
@property
|
|
58
|
+
def additional_keys(self) -> list[str]:
|
|
59
|
+
return list(self.additional_properties.keys())
|
|
60
|
+
|
|
61
|
+
def __getitem__(self, key: str) -> Any:
|
|
62
|
+
return self.additional_properties[key]
|
|
63
|
+
|
|
64
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
65
|
+
self.additional_properties[key] = value
|
|
66
|
+
|
|
67
|
+
def __delitem__(self, key: str) -> None:
|
|
68
|
+
del self.additional_properties[key]
|
|
69
|
+
|
|
70
|
+
def __contains__(self, key: str) -> bool:
|
|
71
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
from collections.abc import Mapping
|
|
2
|
+
from typing import Any, TypeVar
|
|
3
|
+
|
|
4
|
+
from attrs import define as _attrs_define
|
|
5
|
+
from attrs import field as _attrs_field
|
|
6
|
+
|
|
7
|
+
from ..models.post_v1_desktop_id_computer_action_wait_action_type import PostV1DesktopIdComputerActionWaitActionType
|
|
8
|
+
|
|
9
|
+
T = TypeVar("T", bound="PostV1DesktopIdComputerActionWaitAction")
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
@_attrs_define
|
|
13
|
+
class PostV1DesktopIdComputerActionWaitAction:
|
|
14
|
+
"""
|
|
15
|
+
Attributes:
|
|
16
|
+
type_ (PostV1DesktopIdComputerActionWaitActionType): Wait for the specified number of milliseconds Example:
|
|
17
|
+
wait.
|
|
18
|
+
ms (int): Time to wait in milliseconds Example: 1000.
|
|
19
|
+
"""
|
|
20
|
+
|
|
21
|
+
type_: PostV1DesktopIdComputerActionWaitActionType
|
|
22
|
+
ms: int
|
|
23
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
24
|
+
|
|
25
|
+
def to_dict(self) -> dict[str, Any]:
|
|
26
|
+
type_ = self.type_.value
|
|
27
|
+
|
|
28
|
+
ms = self.ms
|
|
29
|
+
|
|
30
|
+
field_dict: dict[str, Any] = {}
|
|
31
|
+
field_dict.update(self.additional_properties)
|
|
32
|
+
field_dict.update(
|
|
33
|
+
{
|
|
34
|
+
"type": type_,
|
|
35
|
+
"ms": ms,
|
|
36
|
+
}
|
|
37
|
+
)
|
|
38
|
+
|
|
39
|
+
return field_dict
|
|
40
|
+
|
|
41
|
+
@classmethod
|
|
42
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
43
|
+
d = dict(src_dict)
|
|
44
|
+
type_ = PostV1DesktopIdComputerActionWaitActionType(d.pop("type"))
|
|
45
|
+
|
|
46
|
+
ms = d.pop("ms")
|
|
47
|
+
|
|
48
|
+
post_v1_desktop_id_computer_action_wait_action = cls(
|
|
49
|
+
type_=type_,
|
|
50
|
+
ms=ms,
|
|
51
|
+
)
|
|
52
|
+
|
|
53
|
+
post_v1_desktop_id_computer_action_wait_action.additional_properties = d
|
|
54
|
+
return post_v1_desktop_id_computer_action_wait_action
|
|
55
|
+
|
|
56
|
+
@property
|
|
57
|
+
def additional_keys(self) -> list[str]:
|
|
58
|
+
return list(self.additional_properties.keys())
|
|
59
|
+
|
|
60
|
+
def __getitem__(self, key: str) -> Any:
|
|
61
|
+
return self.additional_properties[key]
|
|
62
|
+
|
|
63
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
64
|
+
self.additional_properties[key] = value
|
|
65
|
+
|
|
66
|
+
def __delitem__(self, key: str) -> None:
|
|
67
|
+
del self.additional_properties[key]
|
|
68
|
+
|
|
69
|
+
def __contains__(self, key: str) -> bool:
|
|
70
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
from collections.abc import Mapping
|
|
2
|
+
from typing import Any, TypeVar
|
|
3
|
+
|
|
4
|
+
from attrs import define as _attrs_define
|
|
5
|
+
from attrs import field as _attrs_field
|
|
6
|
+
|
|
7
|
+
from ..models.post_v1_desktop_id_stop_response_200_status import PostV1DesktopIdStopResponse200Status
|
|
8
|
+
|
|
9
|
+
T = TypeVar("T", bound="PostV1DesktopIdStopResponse200")
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
@_attrs_define
|
|
13
|
+
class PostV1DesktopIdStopResponse200:
|
|
14
|
+
"""
|
|
15
|
+
Attributes:
|
|
16
|
+
status (PostV1DesktopIdStopResponse200Status): Status of the desktop instance after stopping Example:
|
|
17
|
+
terminated.
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
status: PostV1DesktopIdStopResponse200Status
|
|
21
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
22
|
+
|
|
23
|
+
def to_dict(self) -> dict[str, Any]:
|
|
24
|
+
status = self.status.value
|
|
25
|
+
|
|
26
|
+
field_dict: dict[str, Any] = {}
|
|
27
|
+
field_dict.update(self.additional_properties)
|
|
28
|
+
field_dict.update(
|
|
29
|
+
{
|
|
30
|
+
"status": status,
|
|
31
|
+
}
|
|
32
|
+
)
|
|
33
|
+
|
|
34
|
+
return field_dict
|
|
35
|
+
|
|
36
|
+
@classmethod
|
|
37
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
38
|
+
d = dict(src_dict)
|
|
39
|
+
status = PostV1DesktopIdStopResponse200Status(d.pop("status"))
|
|
40
|
+
|
|
41
|
+
post_v1_desktop_id_stop_response_200 = cls(
|
|
42
|
+
status=status,
|
|
43
|
+
)
|
|
44
|
+
|
|
45
|
+
post_v1_desktop_id_stop_response_200.additional_properties = d
|
|
46
|
+
return post_v1_desktop_id_stop_response_200
|
|
47
|
+
|
|
48
|
+
@property
|
|
49
|
+
def additional_keys(self) -> list[str]:
|
|
50
|
+
return list(self.additional_properties.keys())
|
|
51
|
+
|
|
52
|
+
def __getitem__(self, key: str) -> Any:
|
|
53
|
+
return self.additional_properties[key]
|
|
54
|
+
|
|
55
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
56
|
+
self.additional_properties[key] = value
|
|
57
|
+
|
|
58
|
+
def __delitem__(self, key: str) -> None:
|
|
59
|
+
del self.additional_properties[key]
|
|
60
|
+
|
|
61
|
+
def __contains__(self, key: str) -> bool:
|
|
62
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
from collections.abc import Mapping
|
|
2
|
+
from typing import Any, TypeVar
|
|
3
|
+
|
|
4
|
+
from attrs import define as _attrs_define
|
|
5
|
+
from attrs import field as _attrs_field
|
|
6
|
+
|
|
7
|
+
from ..models.post_v1_desktop_id_stop_response_400_status import PostV1DesktopIdStopResponse400Status
|
|
8
|
+
|
|
9
|
+
T = TypeVar("T", bound="PostV1DesktopIdStopResponse400")
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
@_attrs_define
|
|
13
|
+
class PostV1DesktopIdStopResponse400:
|
|
14
|
+
"""
|
|
15
|
+
Attributes:
|
|
16
|
+
status (PostV1DesktopIdStopResponse400Status): Example: error.
|
|
17
|
+
error (str): Error message detailing what went wrong Example: Instance not found or unauthorized.
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
status: PostV1DesktopIdStopResponse400Status
|
|
21
|
+
error: str
|
|
22
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
23
|
+
|
|
24
|
+
def to_dict(self) -> dict[str, Any]:
|
|
25
|
+
status = self.status.value
|
|
26
|
+
|
|
27
|
+
error = self.error
|
|
28
|
+
|
|
29
|
+
field_dict: dict[str, Any] = {}
|
|
30
|
+
field_dict.update(self.additional_properties)
|
|
31
|
+
field_dict.update(
|
|
32
|
+
{
|
|
33
|
+
"status": status,
|
|
34
|
+
"error": error,
|
|
35
|
+
}
|
|
36
|
+
)
|
|
37
|
+
|
|
38
|
+
return field_dict
|
|
39
|
+
|
|
40
|
+
@classmethod
|
|
41
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
42
|
+
d = dict(src_dict)
|
|
43
|
+
status = PostV1DesktopIdStopResponse400Status(d.pop("status"))
|
|
44
|
+
|
|
45
|
+
error = d.pop("error")
|
|
46
|
+
|
|
47
|
+
post_v1_desktop_id_stop_response_400 = cls(
|
|
48
|
+
status=status,
|
|
49
|
+
error=error,
|
|
50
|
+
)
|
|
51
|
+
|
|
52
|
+
post_v1_desktop_id_stop_response_400.additional_properties = d
|
|
53
|
+
return post_v1_desktop_id_stop_response_400
|
|
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,69 @@
|
|
|
1
|
+
from collections.abc import Mapping
|
|
2
|
+
from typing import Any, TypeVar
|
|
3
|
+
|
|
4
|
+
from attrs import define as _attrs_define
|
|
5
|
+
from attrs import field as _attrs_field
|
|
6
|
+
|
|
7
|
+
from ..models.post_v1_desktop_id_stop_response_401_status import PostV1DesktopIdStopResponse401Status
|
|
8
|
+
|
|
9
|
+
T = TypeVar("T", bound="PostV1DesktopIdStopResponse401")
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
@_attrs_define
|
|
13
|
+
class PostV1DesktopIdStopResponse401:
|
|
14
|
+
"""
|
|
15
|
+
Attributes:
|
|
16
|
+
status (PostV1DesktopIdStopResponse401Status): Example: error.
|
|
17
|
+
error (str): Error message detailing what went wrong Example: Instance not found or unauthorized.
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
status: PostV1DesktopIdStopResponse401Status
|
|
21
|
+
error: str
|
|
22
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
23
|
+
|
|
24
|
+
def to_dict(self) -> dict[str, Any]:
|
|
25
|
+
status = self.status.value
|
|
26
|
+
|
|
27
|
+
error = self.error
|
|
28
|
+
|
|
29
|
+
field_dict: dict[str, Any] = {}
|
|
30
|
+
field_dict.update(self.additional_properties)
|
|
31
|
+
field_dict.update(
|
|
32
|
+
{
|
|
33
|
+
"status": status,
|
|
34
|
+
"error": error,
|
|
35
|
+
}
|
|
36
|
+
)
|
|
37
|
+
|
|
38
|
+
return field_dict
|
|
39
|
+
|
|
40
|
+
@classmethod
|
|
41
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
42
|
+
d = dict(src_dict)
|
|
43
|
+
status = PostV1DesktopIdStopResponse401Status(d.pop("status"))
|
|
44
|
+
|
|
45
|
+
error = d.pop("error")
|
|
46
|
+
|
|
47
|
+
post_v1_desktop_id_stop_response_401 = cls(
|
|
48
|
+
status=status,
|
|
49
|
+
error=error,
|
|
50
|
+
)
|
|
51
|
+
|
|
52
|
+
post_v1_desktop_id_stop_response_401.additional_properties = d
|
|
53
|
+
return post_v1_desktop_id_stop_response_401
|
|
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,69 @@
|
|
|
1
|
+
from collections.abc import Mapping
|
|
2
|
+
from typing import Any, TypeVar
|
|
3
|
+
|
|
4
|
+
from attrs import define as _attrs_define
|
|
5
|
+
from attrs import field as _attrs_field
|
|
6
|
+
|
|
7
|
+
from ..models.post_v1_desktop_id_stop_response_403_status import PostV1DesktopIdStopResponse403Status
|
|
8
|
+
|
|
9
|
+
T = TypeVar("T", bound="PostV1DesktopIdStopResponse403")
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
@_attrs_define
|
|
13
|
+
class PostV1DesktopIdStopResponse403:
|
|
14
|
+
"""
|
|
15
|
+
Attributes:
|
|
16
|
+
status (PostV1DesktopIdStopResponse403Status): Example: error.
|
|
17
|
+
error (str): Error message detailing what went wrong Example: Instance not found or unauthorized.
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
status: PostV1DesktopIdStopResponse403Status
|
|
21
|
+
error: str
|
|
22
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
23
|
+
|
|
24
|
+
def to_dict(self) -> dict[str, Any]:
|
|
25
|
+
status = self.status.value
|
|
26
|
+
|
|
27
|
+
error = self.error
|
|
28
|
+
|
|
29
|
+
field_dict: dict[str, Any] = {}
|
|
30
|
+
field_dict.update(self.additional_properties)
|
|
31
|
+
field_dict.update(
|
|
32
|
+
{
|
|
33
|
+
"status": status,
|
|
34
|
+
"error": error,
|
|
35
|
+
}
|
|
36
|
+
)
|
|
37
|
+
|
|
38
|
+
return field_dict
|
|
39
|
+
|
|
40
|
+
@classmethod
|
|
41
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
42
|
+
d = dict(src_dict)
|
|
43
|
+
status = PostV1DesktopIdStopResponse403Status(d.pop("status"))
|
|
44
|
+
|
|
45
|
+
error = d.pop("error")
|
|
46
|
+
|
|
47
|
+
post_v1_desktop_id_stop_response_403 = cls(
|
|
48
|
+
status=status,
|
|
49
|
+
error=error,
|
|
50
|
+
)
|
|
51
|
+
|
|
52
|
+
post_v1_desktop_id_stop_response_403.additional_properties = d
|
|
53
|
+
return post_v1_desktop_id_stop_response_403
|
|
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
|