cyberdesk 2.1.16__py3-none-any.whl → 2.1.18__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 +1 -1
- cyberdesk/client.py +212 -106
- {cyberdesk-2.1.16.dist-info → cyberdesk-2.1.18.dist-info}/METADATA +158 -2
- {cyberdesk-2.1.16.dist-info → cyberdesk-2.1.18.dist-info}/RECORD +92 -84
- openapi_client/cyberdesk_cloud_client/api/computer/copy_to_clipboard_v1_computer_machine_id_copy_to_clipboard_post.py +221 -0
- openapi_client/cyberdesk_cloud_client/api/computer/fs_list_v1_computer_machine_id_fs_list_get.py +2 -0
- openapi_client/cyberdesk_cloud_client/api/computer/fs_read_v1_computer_machine_id_fs_read_get.py +2 -0
- openapi_client/cyberdesk_cloud_client/api/computer/fs_write_v1_computer_machine_id_fs_write_post.py +2 -0
- openapi_client/cyberdesk_cloud_client/api/computer/get_display_dimensions_v1_computer_machine_id_display_dimensions_get.py +2 -0
- openapi_client/cyberdesk_cloud_client/api/computer/get_mouse_position_v1_computer_machine_id_input_mouse_position_get.py +2 -0
- openapi_client/cyberdesk_cloud_client/api/computer/get_screenshot_v1_computer_machine_id_display_screenshot_get.py +1 -0
- openapi_client/cyberdesk_cloud_client/api/computer/keyboard_key_v1_computer_machine_id_input_keyboard_key_post.py +2 -0
- openapi_client/cyberdesk_cloud_client/api/computer/keyboard_type_v1_computer_machine_id_input_keyboard_type_post.py +2 -0
- openapi_client/cyberdesk_cloud_client/api/computer/mouse_click_v1_computer_machine_id_input_mouse_click_post.py +2 -0
- openapi_client/cyberdesk_cloud_client/api/computer/mouse_drag_v1_computer_machine_id_input_mouse_drag_post.py +2 -0
- openapi_client/cyberdesk_cloud_client/api/computer/mouse_move_v1_computer_machine_id_input_mouse_move_post.py +2 -0
- openapi_client/cyberdesk_cloud_client/api/computer/mouse_scroll_v1_computer_machine_id_input_mouse_scroll_post.py +2 -0
- openapi_client/cyberdesk_cloud_client/api/computer/powershell_exec_v1_computer_machine_id_shell_powershell_exec_post.py +2 -0
- openapi_client/cyberdesk_cloud_client/api/computer/powershell_session_v1_computer_machine_id_shell_powershell_session_post.py +2 -0
- openapi_client/cyberdesk_cloud_client/api/connections/create_connection_v1_connections_post.py +2 -0
- openapi_client/cyberdesk_cloud_client/api/connections/delete_connection_v1_connections_connection_id_delete.py +2 -0
- openapi_client/cyberdesk_cloud_client/api/connections/get_connection_v1_connections_connection_id_get.py +2 -0
- openapi_client/cyberdesk_cloud_client/api/connections/list_connections_v1_connections_get.py +2 -0
- openapi_client/cyberdesk_cloud_client/api/connections/update_connection_v1_connections_connection_id_patch.py +2 -0
- openapi_client/cyberdesk_cloud_client/api/default/health_db_health_db_get.py +1 -0
- openapi_client/cyberdesk_cloud_client/api/default/health_health_get.py +1 -0
- openapi_client/cyberdesk_cloud_client/api/default/root_get.py +1 -0
- openapi_client/cyberdesk_cloud_client/api/health/database_health_check_v1_health_db_get.py +9 -67
- openapi_client/cyberdesk_cloud_client/api/health/health_check_v1_health_get.py +1 -0
- openapi_client/cyberdesk_cloud_client/api/machines/create_machine_v1_machines_post.py +2 -0
- openapi_client/cyberdesk_cloud_client/api/machines/delete_machine_v1_machines_machine_id_delete.py +18 -4
- openapi_client/cyberdesk_cloud_client/api/machines/get_machine_pools_v1_machines_machine_id_pools_get.py +2 -0
- openapi_client/cyberdesk_cloud_client/api/machines/get_machine_v1_machines_machine_id_get.py +2 -0
- openapi_client/cyberdesk_cloud_client/api/machines/list_machines_v1_machines_get.py +2 -0
- openapi_client/cyberdesk_cloud_client/api/machines/update_machine_pools_v1_machines_machine_id_pools_put.py +2 -0
- openapi_client/cyberdesk_cloud_client/api/machines/update_machine_v1_machines_machine_id_patch.py +14 -0
- openapi_client/cyberdesk_cloud_client/api/pools/add_machines_to_pool_v1_pools_pool_id_machines_post.py +2 -0
- openapi_client/cyberdesk_cloud_client/api/pools/create_pool_v1_pools_post.py +2 -0
- openapi_client/cyberdesk_cloud_client/api/pools/delete_pool_v1_pools_pool_id_delete.py +2 -0
- openapi_client/cyberdesk_cloud_client/api/pools/get_pool_v1_pools_pool_id_get.py +2 -0
- openapi_client/cyberdesk_cloud_client/api/pools/list_pools_v1_pools_get.py +2 -0
- openapi_client/cyberdesk_cloud_client/api/pools/remove_machines_from_pool_v1_pools_pool_id_machines_delete.py +2 -0
- openapi_client/cyberdesk_cloud_client/api/pools/update_pool_v1_pools_pool_id_patch.py +2 -0
- openapi_client/cyberdesk_cloud_client/api/request_logs/create_request_log_v1_request_logs_post.py +2 -0
- openapi_client/cyberdesk_cloud_client/api/request_logs/delete_request_log_v1_request_logs_log_id_delete.py +2 -0
- openapi_client/cyberdesk_cloud_client/api/request_logs/get_request_log_v1_request_logs_log_id_get.py +2 -0
- openapi_client/cyberdesk_cloud_client/api/request_logs/list_request_logs_v1_request_logs_get.py +2 -0
- openapi_client/cyberdesk_cloud_client/api/request_logs/update_request_log_v1_request_logs_log_id_patch.py +2 -0
- openapi_client/cyberdesk_cloud_client/api/run_attachments/create_run_attachment_v1_run_attachments_post.py +2 -0
- openapi_client/cyberdesk_cloud_client/api/run_attachments/delete_run_attachment_v1_run_attachments_attachment_id_delete.py +2 -0
- openapi_client/cyberdesk_cloud_client/api/run_attachments/download_run_attachment_v1_run_attachments_attachment_id_download_get.py +2 -0
- openapi_client/cyberdesk_cloud_client/api/run_attachments/get_run_attachment_download_url_v1_run_attachments_attachment_id_download_url_get.py +2 -0
- openapi_client/cyberdesk_cloud_client/api/run_attachments/get_run_attachment_v1_run_attachments_attachment_id_get.py +2 -0
- openapi_client/cyberdesk_cloud_client/api/run_attachments/list_run_attachments_v1_run_attachments_get.py +2 -0
- openapi_client/cyberdesk_cloud_client/api/run_attachments/update_run_attachment_v1_run_attachments_attachment_id_put.py +2 -0
- openapi_client/cyberdesk_cloud_client/api/runs/bulk_create_runs_v1_runs_bulk_post.py +2 -0
- openapi_client/cyberdesk_cloud_client/api/runs/create_run_chain_v1_runs_chain_post.py +2 -0
- openapi_client/cyberdesk_cloud_client/api/runs/create_run_v1_runs_post.py +2 -0
- openapi_client/cyberdesk_cloud_client/api/runs/delete_run_v1_runs_run_id_delete.py +2 -0
- openapi_client/cyberdesk_cloud_client/api/runs/get_run_v1_runs_run_id_get.py +2 -0
- openapi_client/cyberdesk_cloud_client/api/runs/list_runs_v1_runs_get.py +2 -0
- openapi_client/cyberdesk_cloud_client/api/runs/retry_run_v1_runs_run_id_retry_post.py +2 -0
- openapi_client/cyberdesk_cloud_client/api/runs/update_run_v1_runs_run_id_patch.py +2 -0
- openapi_client/cyberdesk_cloud_client/api/test/dummy_test_endpoint_v1_test_post.py +1 -0
- openapi_client/cyberdesk_cloud_client/api/trajectories/create_trajectory_v1_trajectories_post.py +2 -0
- openapi_client/cyberdesk_cloud_client/api/trajectories/delete_trajectory_v1_trajectories_trajectory_id_delete.py +2 -0
- openapi_client/cyberdesk_cloud_client/api/trajectories/get_latest_trajectory_for_workflow_v1_workflows_workflow_id_latest_trajectory_get.py +2 -0
- openapi_client/cyberdesk_cloud_client/api/trajectories/get_trajectory_v1_trajectories_trajectory_id_get.py +2 -0
- openapi_client/cyberdesk_cloud_client/api/trajectories/list_trajectories_v1_trajectories_get.py +2 -0
- openapi_client/cyberdesk_cloud_client/api/trajectories/update_trajectory_v1_trajectories_trajectory_id_patch.py +2 -0
- openapi_client/cyberdesk_cloud_client/api/workflows/create_workflow_v1_workflows_post.py +2 -0
- openapi_client/cyberdesk_cloud_client/api/workflows/delete_workflow_v1_workflows_workflow_id_delete.py +2 -0
- openapi_client/cyberdesk_cloud_client/api/workflows/get_workflow_v1_workflows_workflow_id_get.py +2 -0
- openapi_client/cyberdesk_cloud_client/api/workflows/get_workflow_versions_v1_workflows_workflow_id_versions_get.py +2 -0
- openapi_client/cyberdesk_cloud_client/api/workflows/list_workflows_v1_workflows_get.py +2 -0
- openapi_client/cyberdesk_cloud_client/api/workflows/update_workflow_v1_workflows_workflow_id_patch.py +2 -0
- openapi_client/cyberdesk_cloud_client/models/__init__.py +17 -3
- openapi_client/cyberdesk_cloud_client/models/copy_to_clipboard_request.py +59 -0
- openapi_client/cyberdesk_cloud_client/models/copy_to_clipboard_v1_computer_machine_id_copy_to_clipboard_post_response_copy_to_clipboard_v1_computer_machine_id_copy_to_clipboard_post.py +47 -0
- openapi_client/cyberdesk_cloud_client/models/machine_create.py +80 -1
- openapi_client/cyberdesk_cloud_client/models/machine_create_machine_parameters_type_0.py +44 -0
- openapi_client/cyberdesk_cloud_client/models/{database_health_check_v1_health_db_get_response_database_health_check_v1_health_db_get.py → machine_create_machine_sensitive_parameters_type_0.py} +5 -5
- openapi_client/cyberdesk_cloud_client/models/machine_response.py +77 -0
- openapi_client/cyberdesk_cloud_client/models/machine_response_machine_parameters_type_0.py +44 -0
- openapi_client/cyberdesk_cloud_client/models/machine_response_machine_sensitive_parameters_type_0.py +44 -0
- openapi_client/cyberdesk_cloud_client/models/machine_update.py +80 -1
- openapi_client/cyberdesk_cloud_client/models/machine_update_machine_parameters_type_0.py +44 -0
- openapi_client/cyberdesk_cloud_client/models/machine_update_machine_sensitive_parameters_type_0.py +44 -0
- openapi_client/cyberdesk_cloud_client/models/power_shell_exec_request.py +21 -0
- {cyberdesk-2.1.16.dist-info → cyberdesk-2.1.18.dist-info}/WHEEL +0 -0
- {cyberdesk-2.1.16.dist-info → cyberdesk-2.1.18.dist-info}/licenses/LICENSE +0 -0
- {cyberdesk-2.1.16.dist-info → cyberdesk-2.1.18.dist-info}/top_level.txt +0 -0
|
@@ -27,10 +27,12 @@ def _parse_response(
|
|
|
27
27
|
if response.status_code == 204:
|
|
28
28
|
response_204 = cast(Any, None)
|
|
29
29
|
return response_204
|
|
30
|
+
|
|
30
31
|
if response.status_code == 422:
|
|
31
32
|
response_422 = HTTPValidationError.from_dict(response.json())
|
|
32
33
|
|
|
33
34
|
return response_422
|
|
35
|
+
|
|
34
36
|
if client.raise_on_unexpected_status:
|
|
35
37
|
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
36
38
|
else:
|
openapi_client/cyberdesk_cloud_client/api/workflows/get_workflow_v1_workflows_workflow_id_get.py
CHANGED
|
@@ -29,10 +29,12 @@ def _parse_response(
|
|
|
29
29
|
response_200 = WorkflowResponse.from_dict(response.json())
|
|
30
30
|
|
|
31
31
|
return response_200
|
|
32
|
+
|
|
32
33
|
if response.status_code == 422:
|
|
33
34
|
response_422 = HTTPValidationError.from_dict(response.json())
|
|
34
35
|
|
|
35
36
|
return response_422
|
|
37
|
+
|
|
36
38
|
if client.raise_on_unexpected_status:
|
|
37
39
|
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
38
40
|
else:
|
|
@@ -38,10 +38,12 @@ def _parse_response(
|
|
|
38
38
|
response_200.append(response_200_item)
|
|
39
39
|
|
|
40
40
|
return response_200
|
|
41
|
+
|
|
41
42
|
if response.status_code == 422:
|
|
42
43
|
response_422 = HTTPValidationError.from_dict(response.json())
|
|
43
44
|
|
|
44
45
|
return response_422
|
|
46
|
+
|
|
45
47
|
if client.raise_on_unexpected_status:
|
|
46
48
|
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
47
49
|
else:
|
|
@@ -80,10 +80,12 @@ def _parse_response(
|
|
|
80
80
|
response_200 = PaginatedResponseWorkflowResponse.from_dict(response.json())
|
|
81
81
|
|
|
82
82
|
return response_200
|
|
83
|
+
|
|
83
84
|
if response.status_code == 422:
|
|
84
85
|
response_422 = HTTPValidationError.from_dict(response.json())
|
|
85
86
|
|
|
86
87
|
return response_422
|
|
88
|
+
|
|
87
89
|
if client.raise_on_unexpected_status:
|
|
88
90
|
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
89
91
|
else:
|
|
@@ -39,10 +39,12 @@ def _parse_response(
|
|
|
39
39
|
response_200 = WorkflowResponse.from_dict(response.json())
|
|
40
40
|
|
|
41
41
|
return response_200
|
|
42
|
+
|
|
42
43
|
if response.status_code == 422:
|
|
43
44
|
response_422 = HTTPValidationError.from_dict(response.json())
|
|
44
45
|
|
|
45
46
|
return response_422
|
|
47
|
+
|
|
46
48
|
if client.raise_on_unexpected_status:
|
|
47
49
|
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
48
50
|
else:
|
|
@@ -7,8 +7,9 @@ from .chain_step_sensitive_inputs_type_0 import ChainStepSensitiveInputsType0
|
|
|
7
7
|
from .connection_create import ConnectionCreate
|
|
8
8
|
from .connection_response import ConnectionResponse
|
|
9
9
|
from .connection_status import ConnectionStatus
|
|
10
|
-
from .
|
|
11
|
-
|
|
10
|
+
from .copy_to_clipboard_request import CopyToClipboardRequest
|
|
11
|
+
from .copy_to_clipboard_v1_computer_machine_id_copy_to_clipboard_post_response_copy_to_clipboard_v1_computer_machine_id_copy_to_clipboard_post import (
|
|
12
|
+
CopyToClipboardV1ComputerMachineIdCopyToClipboardPostResponseCopyToClipboardV1ComputerMachineIdCopyToClipboardPost,
|
|
12
13
|
)
|
|
13
14
|
from .display_dimensions import DisplayDimensions
|
|
14
15
|
from .dummy_test_endpoint_v1_test_post_response_dummy_test_endpoint_v1_test_post import (
|
|
@@ -36,11 +37,17 @@ from .http_validation_error import HTTPValidationError
|
|
|
36
37
|
from .keyboard_key_request import KeyboardKeyRequest
|
|
37
38
|
from .keyboard_type_request import KeyboardTypeRequest
|
|
38
39
|
from .machine_create import MachineCreate
|
|
40
|
+
from .machine_create_machine_parameters_type_0 import MachineCreateMachineParametersType0
|
|
41
|
+
from .machine_create_machine_sensitive_parameters_type_0 import MachineCreateMachineSensitiveParametersType0
|
|
39
42
|
from .machine_pool_assignment import MachinePoolAssignment
|
|
40
43
|
from .machine_pool_update import MachinePoolUpdate
|
|
41
44
|
from .machine_response import MachineResponse
|
|
45
|
+
from .machine_response_machine_parameters_type_0 import MachineResponseMachineParametersType0
|
|
46
|
+
from .machine_response_machine_sensitive_parameters_type_0 import MachineResponseMachineSensitiveParametersType0
|
|
42
47
|
from .machine_status import MachineStatus
|
|
43
48
|
from .machine_update import MachineUpdate
|
|
49
|
+
from .machine_update_machine_parameters_type_0 import MachineUpdateMachineParametersType0
|
|
50
|
+
from .machine_update_machine_sensitive_parameters_type_0 import MachineUpdateMachineSensitiveParametersType0
|
|
44
51
|
from .mouse_click_request import MouseClickRequest
|
|
45
52
|
from .mouse_drag_request import MouseDragRequest
|
|
46
53
|
from .mouse_move_request import MouseMoveRequest
|
|
@@ -124,7 +131,8 @@ __all__ = (
|
|
|
124
131
|
"ConnectionCreate",
|
|
125
132
|
"ConnectionResponse",
|
|
126
133
|
"ConnectionStatus",
|
|
127
|
-
"
|
|
134
|
+
"CopyToClipboardRequest",
|
|
135
|
+
"CopyToClipboardV1ComputerMachineIdCopyToClipboardPostResponseCopyToClipboardV1ComputerMachineIdCopyToClipboardPost",
|
|
128
136
|
"DisplayDimensions",
|
|
129
137
|
"DummyTestEndpointV1TestPostResponseDummyTestEndpointV1TestPost",
|
|
130
138
|
"FileInput",
|
|
@@ -139,11 +147,17 @@ __all__ = (
|
|
|
139
147
|
"KeyboardKeyRequest",
|
|
140
148
|
"KeyboardTypeRequest",
|
|
141
149
|
"MachineCreate",
|
|
150
|
+
"MachineCreateMachineParametersType0",
|
|
151
|
+
"MachineCreateMachineSensitiveParametersType0",
|
|
142
152
|
"MachinePoolAssignment",
|
|
143
153
|
"MachinePoolUpdate",
|
|
144
154
|
"MachineResponse",
|
|
155
|
+
"MachineResponseMachineParametersType0",
|
|
156
|
+
"MachineResponseMachineSensitiveParametersType0",
|
|
145
157
|
"MachineStatus",
|
|
146
158
|
"MachineUpdate",
|
|
159
|
+
"MachineUpdateMachineParametersType0",
|
|
160
|
+
"MachineUpdateMachineSensitiveParametersType0",
|
|
147
161
|
"MouseClickRequest",
|
|
148
162
|
"MouseDragRequest",
|
|
149
163
|
"MouseMoveRequest",
|
|
@@ -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="CopyToClipboardRequest")
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
@_attrs_define
|
|
11
|
+
class CopyToClipboardRequest:
|
|
12
|
+
"""
|
|
13
|
+
Attributes:
|
|
14
|
+
text (str): Key name for the copied data
|
|
15
|
+
"""
|
|
16
|
+
|
|
17
|
+
text: str
|
|
18
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
19
|
+
|
|
20
|
+
def to_dict(self) -> dict[str, Any]:
|
|
21
|
+
text = self.text
|
|
22
|
+
|
|
23
|
+
field_dict: dict[str, Any] = {}
|
|
24
|
+
field_dict.update(self.additional_properties)
|
|
25
|
+
field_dict.update(
|
|
26
|
+
{
|
|
27
|
+
"text": text,
|
|
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
|
+
text = d.pop("text")
|
|
37
|
+
|
|
38
|
+
copy_to_clipboard_request = cls(
|
|
39
|
+
text=text,
|
|
40
|
+
)
|
|
41
|
+
|
|
42
|
+
copy_to_clipboard_request.additional_properties = d
|
|
43
|
+
return copy_to_clipboard_request
|
|
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,47 @@
|
|
|
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(
|
|
8
|
+
"T",
|
|
9
|
+
bound="CopyToClipboardV1ComputerMachineIdCopyToClipboardPostResponseCopyToClipboardV1ComputerMachineIdCopyToClipboardPost",
|
|
10
|
+
)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
@_attrs_define
|
|
14
|
+
class CopyToClipboardV1ComputerMachineIdCopyToClipboardPostResponseCopyToClipboardV1ComputerMachineIdCopyToClipboardPost:
|
|
15
|
+
""" """
|
|
16
|
+
|
|
17
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
18
|
+
|
|
19
|
+
def to_dict(self) -> dict[str, Any]:
|
|
20
|
+
field_dict: dict[str, Any] = {}
|
|
21
|
+
field_dict.update(self.additional_properties)
|
|
22
|
+
|
|
23
|
+
return field_dict
|
|
24
|
+
|
|
25
|
+
@classmethod
|
|
26
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
27
|
+
d = dict(src_dict)
|
|
28
|
+
copy_to_clipboard_v1_computer_machine_id_copy_to_clipboard_post_response_copy_to_clipboard_v1_computer_machine_id_copy_to_clipboard_post = cls()
|
|
29
|
+
|
|
30
|
+
copy_to_clipboard_v1_computer_machine_id_copy_to_clipboard_post_response_copy_to_clipboard_v1_computer_machine_id_copy_to_clipboard_post.additional_properties = d
|
|
31
|
+
return copy_to_clipboard_v1_computer_machine_id_copy_to_clipboard_post_response_copy_to_clipboard_v1_computer_machine_id_copy_to_clipboard_post
|
|
32
|
+
|
|
33
|
+
@property
|
|
34
|
+
def additional_keys(self) -> list[str]:
|
|
35
|
+
return list(self.additional_properties.keys())
|
|
36
|
+
|
|
37
|
+
def __getitem__(self, key: str) -> Any:
|
|
38
|
+
return self.additional_properties[key]
|
|
39
|
+
|
|
40
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
41
|
+
self.additional_properties[key] = value
|
|
42
|
+
|
|
43
|
+
def __delitem__(self, key: str) -> None:
|
|
44
|
+
del self.additional_properties[key]
|
|
45
|
+
|
|
46
|
+
def __contains__(self, key: str) -> bool:
|
|
47
|
+
return key in self.additional_properties
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
from collections.abc import Mapping
|
|
2
|
-
from typing import Any, TypeVar, Union, cast
|
|
2
|
+
from typing import TYPE_CHECKING, Any, TypeVar, Union, cast
|
|
3
3
|
|
|
4
4
|
from attrs import define as _attrs_define
|
|
5
5
|
from attrs import field as _attrs_field
|
|
6
6
|
|
|
7
7
|
from ..types import UNSET, Unset
|
|
8
8
|
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
from ..models.machine_create_machine_parameters_type_0 import MachineCreateMachineParametersType0
|
|
11
|
+
from ..models.machine_create_machine_sensitive_parameters_type_0 import MachineCreateMachineSensitiveParametersType0
|
|
12
|
+
|
|
13
|
+
|
|
9
14
|
T = TypeVar("T", bound="MachineCreate")
|
|
10
15
|
|
|
11
16
|
|
|
@@ -20,6 +25,10 @@ class MachineCreate:
|
|
|
20
25
|
version (Union[None, Unset, str]):
|
|
21
26
|
hostname (Union[None, Unset, str]):
|
|
22
27
|
os_info (Union[None, Unset, str]):
|
|
28
|
+
machine_parameters (Union['MachineCreateMachineParametersType0', None, Unset]): Machine-specific input values
|
|
29
|
+
that auto-populate runs
|
|
30
|
+
machine_sensitive_parameters (Union['MachineCreateMachineSensitiveParametersType0', None, Unset]): Machine-
|
|
31
|
+
specific sensitive input aliases (stored in Basis Theory)
|
|
23
32
|
"""
|
|
24
33
|
|
|
25
34
|
fingerprint: str
|
|
@@ -28,9 +37,16 @@ class MachineCreate:
|
|
|
28
37
|
version: Union[None, Unset, str] = UNSET
|
|
29
38
|
hostname: Union[None, Unset, str] = UNSET
|
|
30
39
|
os_info: Union[None, Unset, str] = UNSET
|
|
40
|
+
machine_parameters: Union["MachineCreateMachineParametersType0", None, Unset] = UNSET
|
|
41
|
+
machine_sensitive_parameters: Union["MachineCreateMachineSensitiveParametersType0", None, Unset] = UNSET
|
|
31
42
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
32
43
|
|
|
33
44
|
def to_dict(self) -> dict[str, Any]:
|
|
45
|
+
from ..models.machine_create_machine_parameters_type_0 import MachineCreateMachineParametersType0
|
|
46
|
+
from ..models.machine_create_machine_sensitive_parameters_type_0 import (
|
|
47
|
+
MachineCreateMachineSensitiveParametersType0,
|
|
48
|
+
)
|
|
49
|
+
|
|
34
50
|
fingerprint = self.fingerprint
|
|
35
51
|
|
|
36
52
|
unkey_key_id = self.unkey_key_id
|
|
@@ -59,6 +75,22 @@ class MachineCreate:
|
|
|
59
75
|
else:
|
|
60
76
|
os_info = self.os_info
|
|
61
77
|
|
|
78
|
+
machine_parameters: Union[None, Unset, dict[str, Any]]
|
|
79
|
+
if isinstance(self.machine_parameters, Unset):
|
|
80
|
+
machine_parameters = UNSET
|
|
81
|
+
elif isinstance(self.machine_parameters, MachineCreateMachineParametersType0):
|
|
82
|
+
machine_parameters = self.machine_parameters.to_dict()
|
|
83
|
+
else:
|
|
84
|
+
machine_parameters = self.machine_parameters
|
|
85
|
+
|
|
86
|
+
machine_sensitive_parameters: Union[None, Unset, dict[str, Any]]
|
|
87
|
+
if isinstance(self.machine_sensitive_parameters, Unset):
|
|
88
|
+
machine_sensitive_parameters = UNSET
|
|
89
|
+
elif isinstance(self.machine_sensitive_parameters, MachineCreateMachineSensitiveParametersType0):
|
|
90
|
+
machine_sensitive_parameters = self.machine_sensitive_parameters.to_dict()
|
|
91
|
+
else:
|
|
92
|
+
machine_sensitive_parameters = self.machine_sensitive_parameters
|
|
93
|
+
|
|
62
94
|
field_dict: dict[str, Any] = {}
|
|
63
95
|
field_dict.update(self.additional_properties)
|
|
64
96
|
field_dict.update(
|
|
@@ -75,11 +107,20 @@ class MachineCreate:
|
|
|
75
107
|
field_dict["hostname"] = hostname
|
|
76
108
|
if os_info is not UNSET:
|
|
77
109
|
field_dict["os_info"] = os_info
|
|
110
|
+
if machine_parameters is not UNSET:
|
|
111
|
+
field_dict["machine_parameters"] = machine_parameters
|
|
112
|
+
if machine_sensitive_parameters is not UNSET:
|
|
113
|
+
field_dict["machine_sensitive_parameters"] = machine_sensitive_parameters
|
|
78
114
|
|
|
79
115
|
return field_dict
|
|
80
116
|
|
|
81
117
|
@classmethod
|
|
82
118
|
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
119
|
+
from ..models.machine_create_machine_parameters_type_0 import MachineCreateMachineParametersType0
|
|
120
|
+
from ..models.machine_create_machine_sensitive_parameters_type_0 import (
|
|
121
|
+
MachineCreateMachineSensitiveParametersType0,
|
|
122
|
+
)
|
|
123
|
+
|
|
83
124
|
d = dict(src_dict)
|
|
84
125
|
fingerprint = d.pop("fingerprint")
|
|
85
126
|
|
|
@@ -121,6 +162,42 @@ class MachineCreate:
|
|
|
121
162
|
|
|
122
163
|
os_info = _parse_os_info(d.pop("os_info", UNSET))
|
|
123
164
|
|
|
165
|
+
def _parse_machine_parameters(data: object) -> Union["MachineCreateMachineParametersType0", None, Unset]:
|
|
166
|
+
if data is None:
|
|
167
|
+
return data
|
|
168
|
+
if isinstance(data, Unset):
|
|
169
|
+
return data
|
|
170
|
+
try:
|
|
171
|
+
if not isinstance(data, dict):
|
|
172
|
+
raise TypeError()
|
|
173
|
+
machine_parameters_type_0 = MachineCreateMachineParametersType0.from_dict(data)
|
|
174
|
+
|
|
175
|
+
return machine_parameters_type_0
|
|
176
|
+
except: # noqa: E722
|
|
177
|
+
pass
|
|
178
|
+
return cast(Union["MachineCreateMachineParametersType0", None, Unset], data)
|
|
179
|
+
|
|
180
|
+
machine_parameters = _parse_machine_parameters(d.pop("machine_parameters", UNSET))
|
|
181
|
+
|
|
182
|
+
def _parse_machine_sensitive_parameters(
|
|
183
|
+
data: object,
|
|
184
|
+
) -> Union["MachineCreateMachineSensitiveParametersType0", None, Unset]:
|
|
185
|
+
if data is None:
|
|
186
|
+
return data
|
|
187
|
+
if isinstance(data, Unset):
|
|
188
|
+
return data
|
|
189
|
+
try:
|
|
190
|
+
if not isinstance(data, dict):
|
|
191
|
+
raise TypeError()
|
|
192
|
+
machine_sensitive_parameters_type_0 = MachineCreateMachineSensitiveParametersType0.from_dict(data)
|
|
193
|
+
|
|
194
|
+
return machine_sensitive_parameters_type_0
|
|
195
|
+
except: # noqa: E722
|
|
196
|
+
pass
|
|
197
|
+
return cast(Union["MachineCreateMachineSensitiveParametersType0", None, Unset], data)
|
|
198
|
+
|
|
199
|
+
machine_sensitive_parameters = _parse_machine_sensitive_parameters(d.pop("machine_sensitive_parameters", UNSET))
|
|
200
|
+
|
|
124
201
|
machine_create = cls(
|
|
125
202
|
fingerprint=fingerprint,
|
|
126
203
|
unkey_key_id=unkey_key_id,
|
|
@@ -128,6 +205,8 @@ class MachineCreate:
|
|
|
128
205
|
version=version,
|
|
129
206
|
hostname=hostname,
|
|
130
207
|
os_info=os_info,
|
|
208
|
+
machine_parameters=machine_parameters,
|
|
209
|
+
machine_sensitive_parameters=machine_sensitive_parameters,
|
|
131
210
|
)
|
|
132
211
|
|
|
133
212
|
machine_create.additional_properties = d
|
|
@@ -0,0 +1,44 @@
|
|
|
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="MachineCreateMachineParametersType0")
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
@_attrs_define
|
|
11
|
+
class MachineCreateMachineParametersType0:
|
|
12
|
+
""" """
|
|
13
|
+
|
|
14
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
15
|
+
|
|
16
|
+
def to_dict(self) -> dict[str, Any]:
|
|
17
|
+
field_dict: dict[str, Any] = {}
|
|
18
|
+
field_dict.update(self.additional_properties)
|
|
19
|
+
|
|
20
|
+
return field_dict
|
|
21
|
+
|
|
22
|
+
@classmethod
|
|
23
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
24
|
+
d = dict(src_dict)
|
|
25
|
+
machine_create_machine_parameters_type_0 = cls()
|
|
26
|
+
|
|
27
|
+
machine_create_machine_parameters_type_0.additional_properties = d
|
|
28
|
+
return machine_create_machine_parameters_type_0
|
|
29
|
+
|
|
30
|
+
@property
|
|
31
|
+
def additional_keys(self) -> list[str]:
|
|
32
|
+
return list(self.additional_properties.keys())
|
|
33
|
+
|
|
34
|
+
def __getitem__(self, key: str) -> Any:
|
|
35
|
+
return self.additional_properties[key]
|
|
36
|
+
|
|
37
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
38
|
+
self.additional_properties[key] = value
|
|
39
|
+
|
|
40
|
+
def __delitem__(self, key: str) -> None:
|
|
41
|
+
del self.additional_properties[key]
|
|
42
|
+
|
|
43
|
+
def __contains__(self, key: str) -> bool:
|
|
44
|
+
return key in self.additional_properties
|
|
@@ -4,11 +4,11 @@ from typing import Any, TypeVar
|
|
|
4
4
|
from attrs import define as _attrs_define
|
|
5
5
|
from attrs import field as _attrs_field
|
|
6
6
|
|
|
7
|
-
T = TypeVar("T", bound="
|
|
7
|
+
T = TypeVar("T", bound="MachineCreateMachineSensitiveParametersType0")
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
@_attrs_define
|
|
11
|
-
class
|
|
11
|
+
class MachineCreateMachineSensitiveParametersType0:
|
|
12
12
|
""" """
|
|
13
13
|
|
|
14
14
|
additional_properties: dict[str, str] = _attrs_field(init=False, factory=dict)
|
|
@@ -22,10 +22,10 @@ class DatabaseHealthCheckV1HealthDbGetResponseDatabaseHealthCheckV1HealthDbGet:
|
|
|
22
22
|
@classmethod
|
|
23
23
|
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
24
24
|
d = dict(src_dict)
|
|
25
|
-
|
|
25
|
+
machine_create_machine_sensitive_parameters_type_0 = cls()
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
return
|
|
27
|
+
machine_create_machine_sensitive_parameters_type_0.additional_properties = d
|
|
28
|
+
return machine_create_machine_sensitive_parameters_type_0
|
|
29
29
|
|
|
30
30
|
@property
|
|
31
31
|
def additional_keys(self) -> list[str]:
|
|
@@ -11,6 +11,10 @@ from ..models.machine_status import MachineStatus
|
|
|
11
11
|
from ..types import UNSET, Unset
|
|
12
12
|
|
|
13
13
|
if TYPE_CHECKING:
|
|
14
|
+
from ..models.machine_response_machine_parameters_type_0 import MachineResponseMachineParametersType0
|
|
15
|
+
from ..models.machine_response_machine_sensitive_parameters_type_0 import (
|
|
16
|
+
MachineResponseMachineSensitiveParametersType0,
|
|
17
|
+
)
|
|
14
18
|
from ..models.pool_response import PoolResponse
|
|
15
19
|
|
|
16
20
|
|
|
@@ -33,6 +37,10 @@ class MachineResponse:
|
|
|
33
37
|
version (Union[None, Unset, str]):
|
|
34
38
|
hostname (Union[None, Unset, str]):
|
|
35
39
|
os_info (Union[None, Unset, str]):
|
|
40
|
+
machine_parameters (Union['MachineResponseMachineParametersType0', None, Unset]): Machine-specific input values
|
|
41
|
+
that auto-populate runs
|
|
42
|
+
machine_sensitive_parameters (Union['MachineResponseMachineSensitiveParametersType0', None, Unset]): Machine-
|
|
43
|
+
specific sensitive input aliases (stored in Basis Theory)
|
|
36
44
|
user_id (Union[None, UUID, Unset]):
|
|
37
45
|
organization_id (Union[None, Unset, str]):
|
|
38
46
|
reserved_session_id (Union[None, UUID, Unset]):
|
|
@@ -51,6 +59,8 @@ class MachineResponse:
|
|
|
51
59
|
version: Union[None, Unset, str] = UNSET
|
|
52
60
|
hostname: Union[None, Unset, str] = UNSET
|
|
53
61
|
os_info: Union[None, Unset, str] = UNSET
|
|
62
|
+
machine_parameters: Union["MachineResponseMachineParametersType0", None, Unset] = UNSET
|
|
63
|
+
machine_sensitive_parameters: Union["MachineResponseMachineSensitiveParametersType0", None, Unset] = UNSET
|
|
54
64
|
user_id: Union[None, UUID, Unset] = UNSET
|
|
55
65
|
organization_id: Union[None, Unset, str] = UNSET
|
|
56
66
|
reserved_session_id: Union[None, UUID, Unset] = UNSET
|
|
@@ -59,6 +69,11 @@ class MachineResponse:
|
|
|
59
69
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
60
70
|
|
|
61
71
|
def to_dict(self) -> dict[str, Any]:
|
|
72
|
+
from ..models.machine_response_machine_parameters_type_0 import MachineResponseMachineParametersType0
|
|
73
|
+
from ..models.machine_response_machine_sensitive_parameters_type_0 import (
|
|
74
|
+
MachineResponseMachineSensitiveParametersType0,
|
|
75
|
+
)
|
|
76
|
+
|
|
62
77
|
fingerprint = self.fingerprint
|
|
63
78
|
|
|
64
79
|
id = str(self.id)
|
|
@@ -97,6 +112,22 @@ class MachineResponse:
|
|
|
97
112
|
else:
|
|
98
113
|
os_info = self.os_info
|
|
99
114
|
|
|
115
|
+
machine_parameters: Union[None, Unset, dict[str, Any]]
|
|
116
|
+
if isinstance(self.machine_parameters, Unset):
|
|
117
|
+
machine_parameters = UNSET
|
|
118
|
+
elif isinstance(self.machine_parameters, MachineResponseMachineParametersType0):
|
|
119
|
+
machine_parameters = self.machine_parameters.to_dict()
|
|
120
|
+
else:
|
|
121
|
+
machine_parameters = self.machine_parameters
|
|
122
|
+
|
|
123
|
+
machine_sensitive_parameters: Union[None, Unset, dict[str, Any]]
|
|
124
|
+
if isinstance(self.machine_sensitive_parameters, Unset):
|
|
125
|
+
machine_sensitive_parameters = UNSET
|
|
126
|
+
elif isinstance(self.machine_sensitive_parameters, MachineResponseMachineSensitiveParametersType0):
|
|
127
|
+
machine_sensitive_parameters = self.machine_sensitive_parameters.to_dict()
|
|
128
|
+
else:
|
|
129
|
+
machine_sensitive_parameters = self.machine_sensitive_parameters
|
|
130
|
+
|
|
100
131
|
user_id: Union[None, Unset, str]
|
|
101
132
|
if isinstance(self.user_id, Unset):
|
|
102
133
|
user_id = UNSET
|
|
@@ -160,6 +191,10 @@ class MachineResponse:
|
|
|
160
191
|
field_dict["hostname"] = hostname
|
|
161
192
|
if os_info is not UNSET:
|
|
162
193
|
field_dict["os_info"] = os_info
|
|
194
|
+
if machine_parameters is not UNSET:
|
|
195
|
+
field_dict["machine_parameters"] = machine_parameters
|
|
196
|
+
if machine_sensitive_parameters is not UNSET:
|
|
197
|
+
field_dict["machine_sensitive_parameters"] = machine_sensitive_parameters
|
|
163
198
|
if user_id is not UNSET:
|
|
164
199
|
field_dict["user_id"] = user_id
|
|
165
200
|
if organization_id is not UNSET:
|
|
@@ -175,6 +210,10 @@ class MachineResponse:
|
|
|
175
210
|
|
|
176
211
|
@classmethod
|
|
177
212
|
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
213
|
+
from ..models.machine_response_machine_parameters_type_0 import MachineResponseMachineParametersType0
|
|
214
|
+
from ..models.machine_response_machine_sensitive_parameters_type_0 import (
|
|
215
|
+
MachineResponseMachineSensitiveParametersType0,
|
|
216
|
+
)
|
|
178
217
|
from ..models.pool_response import PoolResponse
|
|
179
218
|
|
|
180
219
|
d = dict(src_dict)
|
|
@@ -228,6 +267,42 @@ class MachineResponse:
|
|
|
228
267
|
|
|
229
268
|
os_info = _parse_os_info(d.pop("os_info", UNSET))
|
|
230
269
|
|
|
270
|
+
def _parse_machine_parameters(data: object) -> Union["MachineResponseMachineParametersType0", None, Unset]:
|
|
271
|
+
if data is None:
|
|
272
|
+
return data
|
|
273
|
+
if isinstance(data, Unset):
|
|
274
|
+
return data
|
|
275
|
+
try:
|
|
276
|
+
if not isinstance(data, dict):
|
|
277
|
+
raise TypeError()
|
|
278
|
+
machine_parameters_type_0 = MachineResponseMachineParametersType0.from_dict(data)
|
|
279
|
+
|
|
280
|
+
return machine_parameters_type_0
|
|
281
|
+
except: # noqa: E722
|
|
282
|
+
pass
|
|
283
|
+
return cast(Union["MachineResponseMachineParametersType0", None, Unset], data)
|
|
284
|
+
|
|
285
|
+
machine_parameters = _parse_machine_parameters(d.pop("machine_parameters", UNSET))
|
|
286
|
+
|
|
287
|
+
def _parse_machine_sensitive_parameters(
|
|
288
|
+
data: object,
|
|
289
|
+
) -> Union["MachineResponseMachineSensitiveParametersType0", None, Unset]:
|
|
290
|
+
if data is None:
|
|
291
|
+
return data
|
|
292
|
+
if isinstance(data, Unset):
|
|
293
|
+
return data
|
|
294
|
+
try:
|
|
295
|
+
if not isinstance(data, dict):
|
|
296
|
+
raise TypeError()
|
|
297
|
+
machine_sensitive_parameters_type_0 = MachineResponseMachineSensitiveParametersType0.from_dict(data)
|
|
298
|
+
|
|
299
|
+
return machine_sensitive_parameters_type_0
|
|
300
|
+
except: # noqa: E722
|
|
301
|
+
pass
|
|
302
|
+
return cast(Union["MachineResponseMachineSensitiveParametersType0", None, Unset], data)
|
|
303
|
+
|
|
304
|
+
machine_sensitive_parameters = _parse_machine_sensitive_parameters(d.pop("machine_sensitive_parameters", UNSET))
|
|
305
|
+
|
|
231
306
|
def _parse_user_id(data: object) -> Union[None, UUID, Unset]:
|
|
232
307
|
if data is None:
|
|
233
308
|
return data
|
|
@@ -322,6 +397,8 @@ class MachineResponse:
|
|
|
322
397
|
version=version,
|
|
323
398
|
hostname=hostname,
|
|
324
399
|
os_info=os_info,
|
|
400
|
+
machine_parameters=machine_parameters,
|
|
401
|
+
machine_sensitive_parameters=machine_sensitive_parameters,
|
|
325
402
|
user_id=user_id,
|
|
326
403
|
organization_id=organization_id,
|
|
327
404
|
reserved_session_id=reserved_session_id,
|
|
@@ -0,0 +1,44 @@
|
|
|
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="MachineResponseMachineParametersType0")
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
@_attrs_define
|
|
11
|
+
class MachineResponseMachineParametersType0:
|
|
12
|
+
""" """
|
|
13
|
+
|
|
14
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
15
|
+
|
|
16
|
+
def to_dict(self) -> dict[str, Any]:
|
|
17
|
+
field_dict: dict[str, Any] = {}
|
|
18
|
+
field_dict.update(self.additional_properties)
|
|
19
|
+
|
|
20
|
+
return field_dict
|
|
21
|
+
|
|
22
|
+
@classmethod
|
|
23
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
24
|
+
d = dict(src_dict)
|
|
25
|
+
machine_response_machine_parameters_type_0 = cls()
|
|
26
|
+
|
|
27
|
+
machine_response_machine_parameters_type_0.additional_properties = d
|
|
28
|
+
return machine_response_machine_parameters_type_0
|
|
29
|
+
|
|
30
|
+
@property
|
|
31
|
+
def additional_keys(self) -> list[str]:
|
|
32
|
+
return list(self.additional_properties.keys())
|
|
33
|
+
|
|
34
|
+
def __getitem__(self, key: str) -> Any:
|
|
35
|
+
return self.additional_properties[key]
|
|
36
|
+
|
|
37
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
38
|
+
self.additional_properties[key] = value
|
|
39
|
+
|
|
40
|
+
def __delitem__(self, key: str) -> None:
|
|
41
|
+
del self.additional_properties[key]
|
|
42
|
+
|
|
43
|
+
def __contains__(self, key: str) -> bool:
|
|
44
|
+
return key in self.additional_properties
|
openapi_client/cyberdesk_cloud_client/models/machine_response_machine_sensitive_parameters_type_0.py
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
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="MachineResponseMachineSensitiveParametersType0")
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
@_attrs_define
|
|
11
|
+
class MachineResponseMachineSensitiveParametersType0:
|
|
12
|
+
""" """
|
|
13
|
+
|
|
14
|
+
additional_properties: dict[str, str] = _attrs_field(init=False, factory=dict)
|
|
15
|
+
|
|
16
|
+
def to_dict(self) -> dict[str, Any]:
|
|
17
|
+
field_dict: dict[str, Any] = {}
|
|
18
|
+
field_dict.update(self.additional_properties)
|
|
19
|
+
|
|
20
|
+
return field_dict
|
|
21
|
+
|
|
22
|
+
@classmethod
|
|
23
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
24
|
+
d = dict(src_dict)
|
|
25
|
+
machine_response_machine_sensitive_parameters_type_0 = cls()
|
|
26
|
+
|
|
27
|
+
machine_response_machine_sensitive_parameters_type_0.additional_properties = d
|
|
28
|
+
return machine_response_machine_sensitive_parameters_type_0
|
|
29
|
+
|
|
30
|
+
@property
|
|
31
|
+
def additional_keys(self) -> list[str]:
|
|
32
|
+
return list(self.additional_properties.keys())
|
|
33
|
+
|
|
34
|
+
def __getitem__(self, key: str) -> str:
|
|
35
|
+
return self.additional_properties[key]
|
|
36
|
+
|
|
37
|
+
def __setitem__(self, key: str, value: str) -> None:
|
|
38
|
+
self.additional_properties[key] = value
|
|
39
|
+
|
|
40
|
+
def __delitem__(self, key: str) -> None:
|
|
41
|
+
del self.additional_properties[key]
|
|
42
|
+
|
|
43
|
+
def __contains__(self, key: str) -> bool:
|
|
44
|
+
return key in self.additional_properties
|