cyberdesk 0.2.3__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.

Files changed (134) hide show
  1. {cyberdesk-0.2.3.dist-info → cyberdesk-0.2.4.dist-info}/METADATA +1 -2
  2. cyberdesk-0.2.4.dist-info/RECORD +136 -0
  3. cyberdesk-0.2.4.dist-info/top_level.txt +2 -0
  4. openapi_client/api_reference_client/__init__.py +8 -0
  5. openapi_client/api_reference_client/api/__init__.py +1 -0
  6. openapi_client/api_reference_client/api/desktop/__init__.py +1 -0
  7. openapi_client/api_reference_client/api/desktop/get_v1_desktop_id.py +293 -0
  8. openapi_client/api_reference_client/api/desktop/post_v1_desktop.py +294 -0
  9. openapi_client/api_reference_client/api/desktop/post_v1_desktop_id_bash_action.py +307 -0
  10. openapi_client/api_reference_client/api/desktop/post_v1_desktop_id_computer_action.py +419 -0
  11. openapi_client/api_reference_client/api/desktop/post_v1_desktop_id_stop.py +288 -0
  12. openapi_client/api_reference_client/client.py +268 -0
  13. openapi_client/api_reference_client/errors.py +16 -0
  14. openapi_client/api_reference_client/models/__init__.py +249 -0
  15. openapi_client/api_reference_client/models/get_v1_desktop_id_response_200.py +104 -0
  16. openapi_client/api_reference_client/models/get_v1_desktop_id_response_200_status.py +11 -0
  17. openapi_client/api_reference_client/models/get_v1_desktop_id_response_400.py +69 -0
  18. openapi_client/api_reference_client/models/get_v1_desktop_id_response_400_status.py +8 -0
  19. openapi_client/api_reference_client/models/get_v1_desktop_id_response_401.py +69 -0
  20. openapi_client/api_reference_client/models/get_v1_desktop_id_response_401_status.py +8 -0
  21. openapi_client/api_reference_client/models/get_v1_desktop_id_response_403.py +69 -0
  22. openapi_client/api_reference_client/models/get_v1_desktop_id_response_403_status.py +8 -0
  23. openapi_client/api_reference_client/models/get_v1_desktop_id_response_404.py +69 -0
  24. openapi_client/api_reference_client/models/get_v1_desktop_id_response_404_status.py +8 -0
  25. openapi_client/api_reference_client/models/get_v1_desktop_id_response_409.py +69 -0
  26. openapi_client/api_reference_client/models/get_v1_desktop_id_response_409_status.py +8 -0
  27. openapi_client/api_reference_client/models/get_v1_desktop_id_response_429.py +69 -0
  28. openapi_client/api_reference_client/models/get_v1_desktop_id_response_429_status.py +8 -0
  29. openapi_client/api_reference_client/models/get_v1_desktop_id_response_500.py +69 -0
  30. openapi_client/api_reference_client/models/get_v1_desktop_id_response_500_status.py +8 -0
  31. openapi_client/api_reference_client/models/get_v1_desktop_id_response_502.py +69 -0
  32. openapi_client/api_reference_client/models/get_v1_desktop_id_response_502_status.py +8 -0
  33. openapi_client/api_reference_client/models/post_v1_desktop_body.py +59 -0
  34. openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_body.py +59 -0
  35. openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_200.py +79 -0
  36. openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_400.py +69 -0
  37. openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_400_status.py +8 -0
  38. openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_401.py +69 -0
  39. openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_401_status.py +8 -0
  40. openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_403.py +69 -0
  41. openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_403_status.py +8 -0
  42. openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_404.py +69 -0
  43. openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_404_status.py +8 -0
  44. openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_409.py +69 -0
  45. openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_409_status.py +8 -0
  46. openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_429.py +69 -0
  47. openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_429_status.py +8 -0
  48. openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_500.py +69 -0
  49. openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_500_status.py +8 -0
  50. openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_502.py +69 -0
  51. openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_502_status.py +8 -0
  52. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_click_mouse_action.py +133 -0
  53. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_click_mouse_action_button.py +10 -0
  54. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_click_mouse_action_click_type.py +10 -0
  55. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_click_mouse_action_type.py +8 -0
  56. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_drag_mouse_action.py +98 -0
  57. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_drag_mouse_action_end.py +71 -0
  58. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_drag_mouse_action_start.py +71 -0
  59. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_drag_mouse_action_type.py +8 -0
  60. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_get_cursor_position_action.py +64 -0
  61. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_get_cursor_position_action_type.py +8 -0
  62. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_move_mouse_action.py +80 -0
  63. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_move_mouse_action_type.py +8 -0
  64. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_press_keys_action.py +109 -0
  65. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_press_keys_action_key_action_type.py +10 -0
  66. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_press_keys_action_type.py +8 -0
  67. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_200.py +79 -0
  68. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_400.py +71 -0
  69. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_400_status.py +8 -0
  70. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_401.py +71 -0
  71. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_401_status.py +8 -0
  72. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_403.py +71 -0
  73. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_403_status.py +8 -0
  74. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_404.py +71 -0
  75. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_404_status.py +8 -0
  76. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_409.py +71 -0
  77. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_409_status.py +8 -0
  78. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_429.py +71 -0
  79. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_429_status.py +8 -0
  80. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_500.py +71 -0
  81. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_500_status.py +8 -0
  82. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_502.py +71 -0
  83. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_502_status.py +8 -0
  84. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_screenshot_action.py +63 -0
  85. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_screenshot_action_type.py +8 -0
  86. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_scroll_action.py +81 -0
  87. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_scroll_action_direction.py +11 -0
  88. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_scroll_action_type.py +8 -0
  89. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_type_text_action.py +71 -0
  90. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_type_text_action_type.py +8 -0
  91. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_wait_action.py +70 -0
  92. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_wait_action_type.py +8 -0
  93. openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_200.py +62 -0
  94. openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_200_status.py +11 -0
  95. openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_400.py +69 -0
  96. openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_400_status.py +8 -0
  97. openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_401.py +69 -0
  98. openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_401_status.py +8 -0
  99. openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_403.py +69 -0
  100. openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_403_status.py +8 -0
  101. openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_404.py +69 -0
  102. openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_404_status.py +8 -0
  103. openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_409.py +69 -0
  104. openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_409_status.py +8 -0
  105. openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_429.py +69 -0
  106. openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_429_status.py +8 -0
  107. openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_500.py +69 -0
  108. openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_500_status.py +8 -0
  109. openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_502.py +69 -0
  110. openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_502_status.py +8 -0
  111. openapi_client/api_reference_client/models/post_v1_desktop_response_200.py +70 -0
  112. openapi_client/api_reference_client/models/post_v1_desktop_response_200_status.py +11 -0
  113. openapi_client/api_reference_client/models/post_v1_desktop_response_400.py +69 -0
  114. openapi_client/api_reference_client/models/post_v1_desktop_response_400_status.py +8 -0
  115. openapi_client/api_reference_client/models/post_v1_desktop_response_401.py +69 -0
  116. openapi_client/api_reference_client/models/post_v1_desktop_response_401_status.py +8 -0
  117. openapi_client/api_reference_client/models/post_v1_desktop_response_403.py +69 -0
  118. openapi_client/api_reference_client/models/post_v1_desktop_response_403_status.py +8 -0
  119. openapi_client/api_reference_client/models/post_v1_desktop_response_404.py +69 -0
  120. openapi_client/api_reference_client/models/post_v1_desktop_response_404_status.py +8 -0
  121. openapi_client/api_reference_client/models/post_v1_desktop_response_409.py +69 -0
  122. openapi_client/api_reference_client/models/post_v1_desktop_response_409_status.py +8 -0
  123. openapi_client/api_reference_client/models/post_v1_desktop_response_429.py +69 -0
  124. openapi_client/api_reference_client/models/post_v1_desktop_response_429_status.py +8 -0
  125. openapi_client/api_reference_client/models/post_v1_desktop_response_500.py +69 -0
  126. openapi_client/api_reference_client/models/post_v1_desktop_response_500_status.py +8 -0
  127. openapi_client/api_reference_client/models/post_v1_desktop_response_502.py +69 -0
  128. openapi_client/api_reference_client/models/post_v1_desktop_response_502_status.py +8 -0
  129. openapi_client/api_reference_client/py.typed +1 -0
  130. openapi_client/api_reference_client/types.py +46 -0
  131. cyberdesk-0.2.3.dist-info/RECORD +0 -9
  132. cyberdesk-0.2.3.dist-info/top_level.txt +0 -1
  133. {cyberdesk-0.2.3.dist-info → cyberdesk-0.2.4.dist-info}/WHEEL +0 -0
  134. {cyberdesk-0.2.3.dist-info → cyberdesk-0.2.4.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1,8 @@
1
+ from enum import Enum
2
+
3
+
4
+ class GetV1DesktopIdResponse404Status(str, Enum):
5
+ ERROR = "error"
6
+
7
+ def __str__(self) -> str:
8
+ return str(self.value)
@@ -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.get_v1_desktop_id_response_409_status import GetV1DesktopIdResponse409Status
8
+
9
+ T = TypeVar("T", bound="GetV1DesktopIdResponse409")
10
+
11
+
12
+ @_attrs_define
13
+ class GetV1DesktopIdResponse409:
14
+ """
15
+ Attributes:
16
+ status (GetV1DesktopIdResponse409Status): Example: error.
17
+ error (str): Error message detailing what went wrong Example: Instance not found or unauthorized.
18
+ """
19
+
20
+ status: GetV1DesktopIdResponse409Status
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 = GetV1DesktopIdResponse409Status(d.pop("status"))
44
+
45
+ error = d.pop("error")
46
+
47
+ get_v1_desktop_id_response_409 = cls(
48
+ status=status,
49
+ error=error,
50
+ )
51
+
52
+ get_v1_desktop_id_response_409.additional_properties = d
53
+ return get_v1_desktop_id_response_409
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,8 @@
1
+ from enum import Enum
2
+
3
+
4
+ class GetV1DesktopIdResponse409Status(str, Enum):
5
+ ERROR = "error"
6
+
7
+ def __str__(self) -> str:
8
+ return str(self.value)
@@ -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.get_v1_desktop_id_response_429_status import GetV1DesktopIdResponse429Status
8
+
9
+ T = TypeVar("T", bound="GetV1DesktopIdResponse429")
10
+
11
+
12
+ @_attrs_define
13
+ class GetV1DesktopIdResponse429:
14
+ """
15
+ Attributes:
16
+ status (GetV1DesktopIdResponse429Status): Example: error.
17
+ error (str): Error message detailing what went wrong Example: Instance not found or unauthorized.
18
+ """
19
+
20
+ status: GetV1DesktopIdResponse429Status
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 = GetV1DesktopIdResponse429Status(d.pop("status"))
44
+
45
+ error = d.pop("error")
46
+
47
+ get_v1_desktop_id_response_429 = cls(
48
+ status=status,
49
+ error=error,
50
+ )
51
+
52
+ get_v1_desktop_id_response_429.additional_properties = d
53
+ return get_v1_desktop_id_response_429
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,8 @@
1
+ from enum import Enum
2
+
3
+
4
+ class GetV1DesktopIdResponse429Status(str, Enum):
5
+ ERROR = "error"
6
+
7
+ def __str__(self) -> str:
8
+ return str(self.value)
@@ -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.get_v1_desktop_id_response_500_status import GetV1DesktopIdResponse500Status
8
+
9
+ T = TypeVar("T", bound="GetV1DesktopIdResponse500")
10
+
11
+
12
+ @_attrs_define
13
+ class GetV1DesktopIdResponse500:
14
+ """
15
+ Attributes:
16
+ status (GetV1DesktopIdResponse500Status): Example: error.
17
+ error (str): Error message detailing what went wrong Example: Instance not found or unauthorized.
18
+ """
19
+
20
+ status: GetV1DesktopIdResponse500Status
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 = GetV1DesktopIdResponse500Status(d.pop("status"))
44
+
45
+ error = d.pop("error")
46
+
47
+ get_v1_desktop_id_response_500 = cls(
48
+ status=status,
49
+ error=error,
50
+ )
51
+
52
+ get_v1_desktop_id_response_500.additional_properties = d
53
+ return get_v1_desktop_id_response_500
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,8 @@
1
+ from enum import Enum
2
+
3
+
4
+ class GetV1DesktopIdResponse500Status(str, Enum):
5
+ ERROR = "error"
6
+
7
+ def __str__(self) -> str:
8
+ return str(self.value)
@@ -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.get_v1_desktop_id_response_502_status import GetV1DesktopIdResponse502Status
8
+
9
+ T = TypeVar("T", bound="GetV1DesktopIdResponse502")
10
+
11
+
12
+ @_attrs_define
13
+ class GetV1DesktopIdResponse502:
14
+ """
15
+ Attributes:
16
+ status (GetV1DesktopIdResponse502Status): Example: error.
17
+ error (str): Error message detailing what went wrong Example: Instance not found or unauthorized.
18
+ """
19
+
20
+ status: GetV1DesktopIdResponse502Status
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 = GetV1DesktopIdResponse502Status(d.pop("status"))
44
+
45
+ error = d.pop("error")
46
+
47
+ get_v1_desktop_id_response_502 = cls(
48
+ status=status,
49
+ error=error,
50
+ )
51
+
52
+ get_v1_desktop_id_response_502.additional_properties = d
53
+ return get_v1_desktop_id_response_502
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,8 @@
1
+ from enum import Enum
2
+
3
+
4
+ class GetV1DesktopIdResponse502Status(str, Enum):
5
+ ERROR = "error"
6
+
7
+ def __str__(self) -> str:
8
+ return str(self.value)
@@ -0,0 +1,59 @@
1
+ from collections.abc import Mapping
2
+ from typing import Any, TypeVar, Union
3
+
4
+ from attrs import define as _attrs_define
5
+ from attrs import field as _attrs_field
6
+
7
+ from ..types import UNSET, Unset
8
+
9
+ T = TypeVar("T", bound="PostV1DesktopBody")
10
+
11
+
12
+ @_attrs_define
13
+ class PostV1DesktopBody:
14
+ """
15
+ Attributes:
16
+ timeout_ms (Union[Unset, int]): Timeout in milliseconds for the desktop session Example: 3600000.
17
+ """
18
+
19
+ timeout_ms: Union[Unset, int] = UNSET
20
+ additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
21
+
22
+ def to_dict(self) -> dict[str, Any]:
23
+ timeout_ms = self.timeout_ms
24
+
25
+ field_dict: dict[str, Any] = {}
26
+ field_dict.update(self.additional_properties)
27
+ field_dict.update({})
28
+ if timeout_ms is not UNSET:
29
+ field_dict["timeout_ms"] = timeout_ms
30
+
31
+ return field_dict
32
+
33
+ @classmethod
34
+ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
35
+ d = dict(src_dict)
36
+ timeout_ms = d.pop("timeout_ms", UNSET)
37
+
38
+ post_v1_desktop_body = cls(
39
+ timeout_ms=timeout_ms,
40
+ )
41
+
42
+ post_v1_desktop_body.additional_properties = d
43
+ return post_v1_desktop_body
44
+
45
+ @property
46
+ def additional_keys(self) -> list[str]:
47
+ return list(self.additional_properties.keys())
48
+
49
+ def __getitem__(self, key: str) -> Any:
50
+ return self.additional_properties[key]
51
+
52
+ def __setitem__(self, key: str, value: Any) -> None:
53
+ self.additional_properties[key] = value
54
+
55
+ def __delitem__(self, key: str) -> None:
56
+ del self.additional_properties[key]
57
+
58
+ def __contains__(self, key: str) -> bool:
59
+ return key in self.additional_properties
@@ -0,0 +1,59 @@
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
+ T = TypeVar("T", bound="PostV1DesktopIdBashActionBody")
8
+
9
+
10
+ @_attrs_define
11
+ class PostV1DesktopIdBashActionBody:
12
+ """
13
+ Attributes:
14
+ command (str): Bash command to execute Example: echo 'Hello, World!'.
15
+ """
16
+
17
+ command: str
18
+ additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
19
+
20
+ def to_dict(self) -> dict[str, Any]:
21
+ command = self.command
22
+
23
+ field_dict: dict[str, Any] = {}
24
+ field_dict.update(self.additional_properties)
25
+ field_dict.update(
26
+ {
27
+ "command": command,
28
+ }
29
+ )
30
+
31
+ return field_dict
32
+
33
+ @classmethod
34
+ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
35
+ d = dict(src_dict)
36
+ command = d.pop("command")
37
+
38
+ post_v1_desktop_id_bash_action_body = cls(
39
+ command=command,
40
+ )
41
+
42
+ post_v1_desktop_id_bash_action_body.additional_properties = d
43
+ return post_v1_desktop_id_bash_action_body
44
+
45
+ @property
46
+ def additional_keys(self) -> list[str]:
47
+ return list(self.additional_properties.keys())
48
+
49
+ def __getitem__(self, key: str) -> Any:
50
+ return self.additional_properties[key]
51
+
52
+ def __setitem__(self, key: str, value: Any) -> None:
53
+ self.additional_properties[key] = value
54
+
55
+ def __delitem__(self, key: str) -> None:
56
+ del self.additional_properties[key]
57
+
58
+ def __contains__(self, key: str) -> bool:
59
+ return key in self.additional_properties
@@ -0,0 +1,79 @@
1
+ from collections.abc import Mapping
2
+ from typing import Any, TypeVar, Union
3
+
4
+ from attrs import define as _attrs_define
5
+ from attrs import field as _attrs_field
6
+
7
+ from ..types import UNSET, Unset
8
+
9
+ T = TypeVar("T", bound="PostV1DesktopIdBashActionResponse200")
10
+
11
+
12
+ @_attrs_define
13
+ class PostV1DesktopIdBashActionResponse200:
14
+ """
15
+ Attributes:
16
+ output (Union[Unset, str]): Raw string output from the executed command (if any) Example: X=500 Y=300.
17
+ error (Union[Unset, str]): Error message if the operation failed (also indicated by non-2xx HTTP status)
18
+ Example: Command failed with code 1: xdotool: command not found.
19
+ base64_image (Union[Unset, str]): Base64 encoded JPEG image data (only returned for screenshot actions) Example:
20
+ /9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAEBAQEBAQEBAQEBAQEBAQ....
21
+ """
22
+
23
+ output: Union[Unset, str] = UNSET
24
+ error: Union[Unset, str] = UNSET
25
+ base64_image: Union[Unset, str] = UNSET
26
+ additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
27
+
28
+ def to_dict(self) -> dict[str, Any]:
29
+ output = self.output
30
+
31
+ error = self.error
32
+
33
+ base64_image = self.base64_image
34
+
35
+ field_dict: dict[str, Any] = {}
36
+ field_dict.update(self.additional_properties)
37
+ field_dict.update({})
38
+ if output is not UNSET:
39
+ field_dict["output"] = output
40
+ if error is not UNSET:
41
+ field_dict["error"] = error
42
+ if base64_image is not UNSET:
43
+ field_dict["base64_image"] = base64_image
44
+
45
+ return field_dict
46
+
47
+ @classmethod
48
+ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
49
+ d = dict(src_dict)
50
+ output = d.pop("output", UNSET)
51
+
52
+ error = d.pop("error", UNSET)
53
+
54
+ base64_image = d.pop("base64_image", UNSET)
55
+
56
+ post_v1_desktop_id_bash_action_response_200 = cls(
57
+ output=output,
58
+ error=error,
59
+ base64_image=base64_image,
60
+ )
61
+
62
+ post_v1_desktop_id_bash_action_response_200.additional_properties = d
63
+ return post_v1_desktop_id_bash_action_response_200
64
+
65
+ @property
66
+ def additional_keys(self) -> list[str]:
67
+ return list(self.additional_properties.keys())
68
+
69
+ def __getitem__(self, key: str) -> Any:
70
+ return self.additional_properties[key]
71
+
72
+ def __setitem__(self, key: str, value: Any) -> None:
73
+ self.additional_properties[key] = value
74
+
75
+ def __delitem__(self, key: str) -> None:
76
+ del self.additional_properties[key]
77
+
78
+ def __contains__(self, key: str) -> bool:
79
+ 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_bash_action_response_400_status import PostV1DesktopIdBashActionResponse400Status
8
+
9
+ T = TypeVar("T", bound="PostV1DesktopIdBashActionResponse400")
10
+
11
+
12
+ @_attrs_define
13
+ class PostV1DesktopIdBashActionResponse400:
14
+ """
15
+ Attributes:
16
+ status (PostV1DesktopIdBashActionResponse400Status): Example: error.
17
+ error (str): Error message detailing what went wrong Example: Instance not found or unauthorized.
18
+ """
19
+
20
+ status: PostV1DesktopIdBashActionResponse400Status
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 = PostV1DesktopIdBashActionResponse400Status(d.pop("status"))
44
+
45
+ error = d.pop("error")
46
+
47
+ post_v1_desktop_id_bash_action_response_400 = cls(
48
+ status=status,
49
+ error=error,
50
+ )
51
+
52
+ post_v1_desktop_id_bash_action_response_400.additional_properties = d
53
+ return post_v1_desktop_id_bash_action_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,8 @@
1
+ from enum import Enum
2
+
3
+
4
+ class PostV1DesktopIdBashActionResponse400Status(str, Enum):
5
+ ERROR = "error"
6
+
7
+ def __str__(self) -> str:
8
+ return str(self.value)
@@ -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_bash_action_response_401_status import PostV1DesktopIdBashActionResponse401Status
8
+
9
+ T = TypeVar("T", bound="PostV1DesktopIdBashActionResponse401")
10
+
11
+
12
+ @_attrs_define
13
+ class PostV1DesktopIdBashActionResponse401:
14
+ """
15
+ Attributes:
16
+ status (PostV1DesktopIdBashActionResponse401Status): Example: error.
17
+ error (str): Error message detailing what went wrong Example: Instance not found or unauthorized.
18
+ """
19
+
20
+ status: PostV1DesktopIdBashActionResponse401Status
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 = PostV1DesktopIdBashActionResponse401Status(d.pop("status"))
44
+
45
+ error = d.pop("error")
46
+
47
+ post_v1_desktop_id_bash_action_response_401 = cls(
48
+ status=status,
49
+ error=error,
50
+ )
51
+
52
+ post_v1_desktop_id_bash_action_response_401.additional_properties = d
53
+ return post_v1_desktop_id_bash_action_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,8 @@
1
+ from enum import Enum
2
+
3
+
4
+ class PostV1DesktopIdBashActionResponse401Status(str, Enum):
5
+ ERROR = "error"
6
+
7
+ def __str__(self) -> str:
8
+ return str(self.value)