cyberdesk 0.2.7__py3-none-any.whl → 1.0.0__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 +45 -7
- cyberdesk/client.py +779 -70
- cyberdesk-1.0.0.dist-info/METADATA +274 -0
- cyberdesk-1.0.0.dist-info/RECORD +114 -0
- {cyberdesk-0.2.7.dist-info → cyberdesk-1.0.0.dist-info}/WHEEL +1 -1
- openapi_client/{api_reference_client → cyberdesk_cloud_client}/__init__.py +8 -8
- openapi_client/{api_reference_client → cyberdesk_cloud_client}/api/__init__.py +1 -1
- openapi_client/{api_reference_client/api/desktop → cyberdesk_cloud_client/api/computer}/__init__.py +1 -1
- openapi_client/cyberdesk_cloud_client/api/computer/get_display_dimensions_v1_computer_machine_id_display_dimensions_get.py +163 -0
- openapi_client/cyberdesk_cloud_client/api/computer/get_mouse_position_v1_computer_machine_id_input_mouse_position_get.py +163 -0
- openapi_client/cyberdesk_cloud_client/api/computer/get_screenshot_v1_computer_machine_id_display_screenshot_get.py +158 -0
- openapi_client/cyberdesk_cloud_client/api/computer/keyboard_key_v1_computer_machine_id_input_keyboard_key_post.py +183 -0
- openapi_client/cyberdesk_cloud_client/api/computer/keyboard_type_v1_computer_machine_id_input_keyboard_type_post.py +183 -0
- openapi_client/cyberdesk_cloud_client/api/computer/mouse_click_v1_computer_machine_id_input_mouse_click_post.py +187 -0
- openapi_client/cyberdesk_cloud_client/api/computer/mouse_move_v1_computer_machine_id_input_mouse_move_post.py +183 -0
- openapi_client/cyberdesk_cloud_client/api/connections/__init__.py +1 -0
- openapi_client/cyberdesk_cloud_client/api/connections/create_connection_v1_connections_post.py +180 -0
- openapi_client/cyberdesk_cloud_client/api/connections/delete_connection_v1_connections_connection_id_delete.py +170 -0
- openapi_client/cyberdesk_cloud_client/api/connections/get_connection_v1_connections_connection_id_get.py +172 -0
- openapi_client/cyberdesk_cloud_client/api/connections/list_connections_v1_connections_get.py +244 -0
- openapi_client/cyberdesk_cloud_client/api/connections/update_connection_v1_connections_connection_id_patch.py +198 -0
- openapi_client/cyberdesk_cloud_client/api/default/__init__.py +1 -0
- openapi_client/cyberdesk_cloud_client/api/default/root_get.py +83 -0
- openapi_client/cyberdesk_cloud_client/api/health/__init__.py +1 -0
- openapi_client/cyberdesk_cloud_client/api/health/database_health_check_v1_health_db_get.py +146 -0
- openapi_client/cyberdesk_cloud_client/api/health/health_check_v1_health_get.py +144 -0
- openapi_client/cyberdesk_cloud_client/api/machines/__init__.py +1 -0
- openapi_client/cyberdesk_cloud_client/api/machines/create_machine_v1_machines_post.py +180 -0
- openapi_client/cyberdesk_cloud_client/api/machines/delete_machine_v1_machines_machine_id_delete.py +174 -0
- openapi_client/cyberdesk_cloud_client/api/machines/get_machine_v1_machines_machine_id_get.py +172 -0
- openapi_client/cyberdesk_cloud_client/api/machines/list_machines_v1_machines_get.py +217 -0
- openapi_client/cyberdesk_cloud_client/api/machines/update_machine_v1_machines_machine_id_patch.py +198 -0
- openapi_client/cyberdesk_cloud_client/api/request_logs/__init__.py +1 -0
- openapi_client/cyberdesk_cloud_client/api/request_logs/create_request_log_v1_request_logs_post.py +184 -0
- openapi_client/cyberdesk_cloud_client/api/request_logs/delete_request_log_v1_request_logs_log_id_delete.py +170 -0
- openapi_client/cyberdesk_cloud_client/api/request_logs/get_request_log_v1_request_logs_log_id_get.py +172 -0
- openapi_client/cyberdesk_cloud_client/api/request_logs/list_request_logs_v1_request_logs_get.py +257 -0
- openapi_client/cyberdesk_cloud_client/api/request_logs/update_request_log_v1_request_logs_log_id_patch.py +202 -0
- openapi_client/cyberdesk_cloud_client/api/runs/__init__.py +1 -0
- openapi_client/cyberdesk_cloud_client/api/runs/create_run_v1_runs_post.py +188 -0
- openapi_client/cyberdesk_cloud_client/api/runs/delete_run_v1_runs_run_id_delete.py +170 -0
- openapi_client/cyberdesk_cloud_client/api/runs/get_run_v1_runs_run_id_get.py +176 -0
- openapi_client/cyberdesk_cloud_client/api/runs/list_runs_v1_runs_get.py +266 -0
- openapi_client/cyberdesk_cloud_client/api/runs/update_run_v1_runs_run_id_patch.py +202 -0
- openapi_client/cyberdesk_cloud_client/api/test/__init__.py +1 -0
- openapi_client/cyberdesk_cloud_client/api/test/dummy_test_endpoint_v1_test_post.py +156 -0
- openapi_client/cyberdesk_cloud_client/api/trajectories/__init__.py +1 -0
- openapi_client/cyberdesk_cloud_client/api/trajectories/create_trajectory_v1_trajectories_post.py +184 -0
- openapi_client/cyberdesk_cloud_client/api/trajectories/delete_trajectory_v1_trajectories_trajectory_id_delete.py +170 -0
- openapi_client/cyberdesk_cloud_client/api/trajectories/get_latest_trajectory_for_workflow_v1_workflows_workflow_id_latest_trajectory_get.py +176 -0
- openapi_client/cyberdesk_cloud_client/api/trajectories/get_trajectory_v1_trajectories_trajectory_id_get.py +176 -0
- openapi_client/cyberdesk_cloud_client/api/trajectories/list_trajectories_v1_trajectories_get.py +221 -0
- openapi_client/cyberdesk_cloud_client/api/trajectories/update_trajectory_v1_trajectories_trajectory_id_patch.py +198 -0
- openapi_client/cyberdesk_cloud_client/api/workflows/__init__.py +1 -0
- openapi_client/cyberdesk_cloud_client/api/workflows/create_workflow_v1_workflows_post.py +180 -0
- openapi_client/cyberdesk_cloud_client/api/workflows/delete_workflow_v1_workflows_workflow_id_delete.py +174 -0
- openapi_client/cyberdesk_cloud_client/api/workflows/get_workflow_v1_workflows_workflow_id_get.py +172 -0
- openapi_client/cyberdesk_cloud_client/api/workflows/get_workflow_versions_v1_workflows_workflow_id_versions_get.py +185 -0
- openapi_client/cyberdesk_cloud_client/api/workflows/list_workflows_v1_workflows_get.py +194 -0
- openapi_client/cyberdesk_cloud_client/api/workflows/update_workflow_v1_workflows_workflow_id_patch.py +202 -0
- openapi_client/{api_reference_client → cyberdesk_cloud_client}/client.py +268 -268
- openapi_client/{api_reference_client → cyberdesk_cloud_client}/errors.py +16 -16
- openapi_client/cyberdesk_cloud_client/models/__init__.py +107 -0
- openapi_client/cyberdesk_cloud_client/models/connection_create.py +111 -0
- openapi_client/cyberdesk_cloud_client/models/connection_response.py +171 -0
- openapi_client/{api_reference_client/models/get_v1_desktop_id_response_404_status.py → cyberdesk_cloud_client/models/connection_status.py} +10 -8
- openapi_client/cyberdesk_cloud_client/models/connection_update.py +145 -0
- openapi_client/cyberdesk_cloud_client/models/database_health_check_v1_health_db_get_response_database_health_check_v1_health_db_get.py +44 -0
- openapi_client/{api_reference_client/models/post_v1_desktop_id_bash_action_body.py → cyberdesk_cloud_client/models/display_dimensions.py} +67 -59
- openapi_client/cyberdesk_cloud_client/models/dummy_test_endpoint_v1_test_post_response_dummy_test_endpoint_v1_test_post.py +44 -0
- openapi_client/cyberdesk_cloud_client/models/get_workflow_versions_v1_workflows_workflow_id_versions_get_response_200_item.py +44 -0
- openapi_client/cyberdesk_cloud_client/models/health_check_v1_health_get_response_health_check_v1_health_get.py +44 -0
- openapi_client/cyberdesk_cloud_client/models/http_validation_error.py +75 -0
- openapi_client/{api_reference_client/models/post_v1_desktop_body.py → cyberdesk_cloud_client/models/keyboard_key_request.py} +59 -59
- openapi_client/{api_reference_client/models/post_v1_desktop_id_stop_response_200.py → cyberdesk_cloud_client/models/keyboard_type_request.py} +59 -62
- openapi_client/cyberdesk_cloud_client/models/machine_create.py +130 -0
- openapi_client/cyberdesk_cloud_client/models/machine_response.py +182 -0
- openapi_client/{api_reference_client/models/get_v1_desktop_id_response_403_status.py → cyberdesk_cloud_client/models/machine_status.py} +10 -8
- openapi_client/cyberdesk_cloud_client/models/machine_update.py +195 -0
- openapi_client/cyberdesk_cloud_client/models/mouse_click_request.py +109 -0
- openapi_client/{api_reference_client/models/post_v1_desktop_id_computer_action_drag_mouse_action_end.py → cyberdesk_cloud_client/models/mouse_move_request.py} +67 -71
- openapi_client/{api_reference_client/models/post_v1_desktop_id_computer_action_drag_mouse_action_start.py → cyberdesk_cloud_client/models/mouse_position.py} +67 -71
- openapi_client/cyberdesk_cloud_client/models/paginated_response.py +84 -0
- openapi_client/cyberdesk_cloud_client/models/paginated_response_connection_response.py +97 -0
- openapi_client/cyberdesk_cloud_client/models/paginated_response_machine_response.py +97 -0
- openapi_client/cyberdesk_cloud_client/models/paginated_response_run_response.py +97 -0
- openapi_client/cyberdesk_cloud_client/models/paginated_response_trajectory_response.py +97 -0
- openapi_client/cyberdesk_cloud_client/models/paginated_response_workflow_response.py +97 -0
- openapi_client/cyberdesk_cloud_client/models/request_log_create.py +187 -0
- openapi_client/cyberdesk_cloud_client/models/request_log_response.py +230 -0
- openapi_client/cyberdesk_cloud_client/models/request_log_update.py +164 -0
- openapi_client/cyberdesk_cloud_client/models/run_create.py +94 -0
- openapi_client/cyberdesk_cloud_client/models/run_response.py +228 -0
- openapi_client/cyberdesk_cloud_client/models/run_response_output_data_type_0.py +44 -0
- openapi_client/cyberdesk_cloud_client/models/run_response_run_message_history_type_0_item.py +44 -0
- openapi_client/{api_reference_client/models/post_v1_desktop_response_200_status.py → cyberdesk_cloud_client/models/run_status.py} +12 -11
- openapi_client/cyberdesk_cloud_client/models/run_update.py +226 -0
- openapi_client/cyberdesk_cloud_client/models/run_update_output_data_type_0.py +44 -0
- openapi_client/cyberdesk_cloud_client/models/run_update_run_message_history_type_0_item.py +44 -0
- openapi_client/cyberdesk_cloud_client/models/trajectory_create.py +83 -0
- openapi_client/cyberdesk_cloud_client/models/trajectory_create_trajectory_data_item.py +44 -0
- openapi_client/cyberdesk_cloud_client/models/trajectory_response.py +117 -0
- openapi_client/cyberdesk_cloud_client/models/trajectory_response_trajectory_data_item.py +44 -0
- openapi_client/cyberdesk_cloud_client/models/trajectory_update.py +99 -0
- openapi_client/cyberdesk_cloud_client/models/trajectory_update_trajectory_data_type_0_item.py +44 -0
- openapi_client/{api_reference_client/models/post_v1_desktop_id_computer_action_wait_action.py → cyberdesk_cloud_client/models/validation_error.py} +88 -70
- openapi_client/cyberdesk_cloud_client/models/workflow_create.py +82 -0
- openapi_client/cyberdesk_cloud_client/models/workflow_response.py +164 -0
- openapi_client/cyberdesk_cloud_client/models/workflow_response_old_versions_type_0_item.py +44 -0
- openapi_client/cyberdesk_cloud_client/models/workflow_update.py +92 -0
- openapi_client/{api_reference_client → cyberdesk_cloud_client}/types.py +54 -46
- cyberdesk/actions.py +0 -118
- cyberdesk/types.py +0 -50
- cyberdesk-0.2.7.dist-info/METADATA +0 -228
- cyberdesk-0.2.7.dist-info/RECORD +0 -136
- openapi_client/api_reference_client/api/desktop/get_v1_desktop_id.py +0 -293
- openapi_client/api_reference_client/api/desktop/post_v1_desktop.py +0 -294
- openapi_client/api_reference_client/api/desktop/post_v1_desktop_id_bash_action.py +0 -307
- openapi_client/api_reference_client/api/desktop/post_v1_desktop_id_computer_action.py +0 -419
- openapi_client/api_reference_client/api/desktop/post_v1_desktop_id_stop.py +0 -288
- openapi_client/api_reference_client/models/__init__.py +0 -249
- openapi_client/api_reference_client/models/get_v1_desktop_id_response_200.py +0 -104
- openapi_client/api_reference_client/models/get_v1_desktop_id_response_200_status.py +0 -11
- openapi_client/api_reference_client/models/get_v1_desktop_id_response_400.py +0 -69
- openapi_client/api_reference_client/models/get_v1_desktop_id_response_400_status.py +0 -8
- openapi_client/api_reference_client/models/get_v1_desktop_id_response_401.py +0 -69
- openapi_client/api_reference_client/models/get_v1_desktop_id_response_401_status.py +0 -8
- openapi_client/api_reference_client/models/get_v1_desktop_id_response_403.py +0 -69
- openapi_client/api_reference_client/models/get_v1_desktop_id_response_404.py +0 -69
- openapi_client/api_reference_client/models/get_v1_desktop_id_response_409.py +0 -69
- openapi_client/api_reference_client/models/get_v1_desktop_id_response_409_status.py +0 -8
- openapi_client/api_reference_client/models/get_v1_desktop_id_response_429.py +0 -69
- openapi_client/api_reference_client/models/get_v1_desktop_id_response_429_status.py +0 -8
- openapi_client/api_reference_client/models/get_v1_desktop_id_response_500.py +0 -69
- openapi_client/api_reference_client/models/get_v1_desktop_id_response_500_status.py +0 -8
- openapi_client/api_reference_client/models/get_v1_desktop_id_response_502.py +0 -69
- openapi_client/api_reference_client/models/get_v1_desktop_id_response_502_status.py +0 -8
- openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_200.py +0 -79
- openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_400.py +0 -69
- openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_400_status.py +0 -8
- openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_401.py +0 -69
- openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_401_status.py +0 -8
- openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_403.py +0 -69
- openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_403_status.py +0 -8
- openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_404.py +0 -69
- openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_404_status.py +0 -8
- openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_409.py +0 -69
- openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_409_status.py +0 -8
- openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_429.py +0 -69
- openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_429_status.py +0 -8
- openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_500.py +0 -69
- openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_500_status.py +0 -8
- openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_502.py +0 -69
- openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_502_status.py +0 -8
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_click_mouse_action.py +0 -133
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_click_mouse_action_button.py +0 -10
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_click_mouse_action_click_type.py +0 -10
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_click_mouse_action_type.py +0 -8
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_drag_mouse_action.py +0 -98
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_drag_mouse_action_type.py +0 -8
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_get_cursor_position_action.py +0 -64
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_get_cursor_position_action_type.py +0 -8
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_move_mouse_action.py +0 -80
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_move_mouse_action_type.py +0 -8
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_press_keys_action.py +0 -109
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_press_keys_action_key_action_type.py +0 -10
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_press_keys_action_type.py +0 -8
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_200.py +0 -79
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_400.py +0 -71
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_400_status.py +0 -8
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_401.py +0 -71
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_401_status.py +0 -8
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_403.py +0 -71
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_403_status.py +0 -8
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_404.py +0 -71
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_404_status.py +0 -8
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_409.py +0 -71
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_409_status.py +0 -8
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_429.py +0 -71
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_429_status.py +0 -8
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_500.py +0 -71
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_500_status.py +0 -8
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_502.py +0 -71
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_502_status.py +0 -8
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_screenshot_action.py +0 -63
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_screenshot_action_type.py +0 -8
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_scroll_action.py +0 -81
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_scroll_action_direction.py +0 -11
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_scroll_action_type.py +0 -8
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_type_text_action.py +0 -71
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_type_text_action_type.py +0 -8
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_wait_action_type.py +0 -8
- openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_200_status.py +0 -11
- openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_400.py +0 -69
- openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_400_status.py +0 -8
- openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_401.py +0 -69
- openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_401_status.py +0 -8
- openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_403.py +0 -69
- openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_403_status.py +0 -8
- openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_404.py +0 -69
- openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_404_status.py +0 -8
- openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_409.py +0 -69
- openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_409_status.py +0 -8
- openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_429.py +0 -69
- openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_429_status.py +0 -8
- openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_500.py +0 -69
- openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_500_status.py +0 -8
- openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_502.py +0 -69
- openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_502_status.py +0 -8
- openapi_client/api_reference_client/models/post_v1_desktop_response_200.py +0 -70
- openapi_client/api_reference_client/models/post_v1_desktop_response_400.py +0 -69
- openapi_client/api_reference_client/models/post_v1_desktop_response_400_status.py +0 -8
- openapi_client/api_reference_client/models/post_v1_desktop_response_401.py +0 -69
- openapi_client/api_reference_client/models/post_v1_desktop_response_401_status.py +0 -8
- openapi_client/api_reference_client/models/post_v1_desktop_response_403.py +0 -69
- openapi_client/api_reference_client/models/post_v1_desktop_response_403_status.py +0 -8
- openapi_client/api_reference_client/models/post_v1_desktop_response_404.py +0 -69
- openapi_client/api_reference_client/models/post_v1_desktop_response_404_status.py +0 -8
- openapi_client/api_reference_client/models/post_v1_desktop_response_409.py +0 -69
- openapi_client/api_reference_client/models/post_v1_desktop_response_409_status.py +0 -8
- openapi_client/api_reference_client/models/post_v1_desktop_response_429.py +0 -69
- openapi_client/api_reference_client/models/post_v1_desktop_response_429_status.py +0 -8
- openapi_client/api_reference_client/models/post_v1_desktop_response_500.py +0 -69
- openapi_client/api_reference_client/models/post_v1_desktop_response_500_status.py +0 -8
- openapi_client/api_reference_client/models/post_v1_desktop_response_502.py +0 -69
- openapi_client/api_reference_client/models/post_v1_desktop_response_502_status.py +0 -8
- {cyberdesk-0.2.7.dist-info → cyberdesk-1.0.0.dist-info}/licenses/LICENSE +0 -0
- {cyberdesk-0.2.7.dist-info → cyberdesk-1.0.0.dist-info}/top_level.txt +0 -0
- /openapi_client/{api_reference_client → cyberdesk_cloud_client}/py.typed +0 -0
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
from collections.abc import Mapping
|
|
2
|
+
from typing import TYPE_CHECKING, Any, TypeVar
|
|
3
|
+
|
|
4
|
+
from attrs import define as _attrs_define
|
|
5
|
+
from attrs import field as _attrs_field
|
|
6
|
+
|
|
7
|
+
if TYPE_CHECKING:
|
|
8
|
+
from ..models.trajectory_response import TrajectoryResponse
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
T = TypeVar("T", bound="PaginatedResponseTrajectoryResponse")
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
@_attrs_define
|
|
15
|
+
class PaginatedResponseTrajectoryResponse:
|
|
16
|
+
"""
|
|
17
|
+
Attributes:
|
|
18
|
+
items (list['TrajectoryResponse']):
|
|
19
|
+
total (int):
|
|
20
|
+
skip (int):
|
|
21
|
+
limit (int):
|
|
22
|
+
"""
|
|
23
|
+
|
|
24
|
+
items: list["TrajectoryResponse"]
|
|
25
|
+
total: int
|
|
26
|
+
skip: int
|
|
27
|
+
limit: int
|
|
28
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
29
|
+
|
|
30
|
+
def to_dict(self) -> dict[str, Any]:
|
|
31
|
+
items = []
|
|
32
|
+
for items_item_data in self.items:
|
|
33
|
+
items_item = items_item_data.to_dict()
|
|
34
|
+
items.append(items_item)
|
|
35
|
+
|
|
36
|
+
total = self.total
|
|
37
|
+
|
|
38
|
+
skip = self.skip
|
|
39
|
+
|
|
40
|
+
limit = self.limit
|
|
41
|
+
|
|
42
|
+
field_dict: dict[str, Any] = {}
|
|
43
|
+
field_dict.update(self.additional_properties)
|
|
44
|
+
field_dict.update(
|
|
45
|
+
{
|
|
46
|
+
"items": items,
|
|
47
|
+
"total": total,
|
|
48
|
+
"skip": skip,
|
|
49
|
+
"limit": limit,
|
|
50
|
+
}
|
|
51
|
+
)
|
|
52
|
+
|
|
53
|
+
return field_dict
|
|
54
|
+
|
|
55
|
+
@classmethod
|
|
56
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
57
|
+
from ..models.trajectory_response import TrajectoryResponse
|
|
58
|
+
|
|
59
|
+
d = dict(src_dict)
|
|
60
|
+
items = []
|
|
61
|
+
_items = d.pop("items")
|
|
62
|
+
for items_item_data in _items:
|
|
63
|
+
items_item = TrajectoryResponse.from_dict(items_item_data)
|
|
64
|
+
|
|
65
|
+
items.append(items_item)
|
|
66
|
+
|
|
67
|
+
total = d.pop("total")
|
|
68
|
+
|
|
69
|
+
skip = d.pop("skip")
|
|
70
|
+
|
|
71
|
+
limit = d.pop("limit")
|
|
72
|
+
|
|
73
|
+
paginated_response_trajectory_response = cls(
|
|
74
|
+
items=items,
|
|
75
|
+
total=total,
|
|
76
|
+
skip=skip,
|
|
77
|
+
limit=limit,
|
|
78
|
+
)
|
|
79
|
+
|
|
80
|
+
paginated_response_trajectory_response.additional_properties = d
|
|
81
|
+
return paginated_response_trajectory_response
|
|
82
|
+
|
|
83
|
+
@property
|
|
84
|
+
def additional_keys(self) -> list[str]:
|
|
85
|
+
return list(self.additional_properties.keys())
|
|
86
|
+
|
|
87
|
+
def __getitem__(self, key: str) -> Any:
|
|
88
|
+
return self.additional_properties[key]
|
|
89
|
+
|
|
90
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
91
|
+
self.additional_properties[key] = value
|
|
92
|
+
|
|
93
|
+
def __delitem__(self, key: str) -> None:
|
|
94
|
+
del self.additional_properties[key]
|
|
95
|
+
|
|
96
|
+
def __contains__(self, key: str) -> bool:
|
|
97
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
from collections.abc import Mapping
|
|
2
|
+
from typing import TYPE_CHECKING, Any, TypeVar
|
|
3
|
+
|
|
4
|
+
from attrs import define as _attrs_define
|
|
5
|
+
from attrs import field as _attrs_field
|
|
6
|
+
|
|
7
|
+
if TYPE_CHECKING:
|
|
8
|
+
from ..models.workflow_response import WorkflowResponse
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
T = TypeVar("T", bound="PaginatedResponseWorkflowResponse")
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
@_attrs_define
|
|
15
|
+
class PaginatedResponseWorkflowResponse:
|
|
16
|
+
"""
|
|
17
|
+
Attributes:
|
|
18
|
+
items (list['WorkflowResponse']):
|
|
19
|
+
total (int):
|
|
20
|
+
skip (int):
|
|
21
|
+
limit (int):
|
|
22
|
+
"""
|
|
23
|
+
|
|
24
|
+
items: list["WorkflowResponse"]
|
|
25
|
+
total: int
|
|
26
|
+
skip: int
|
|
27
|
+
limit: int
|
|
28
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
29
|
+
|
|
30
|
+
def to_dict(self) -> dict[str, Any]:
|
|
31
|
+
items = []
|
|
32
|
+
for items_item_data in self.items:
|
|
33
|
+
items_item = items_item_data.to_dict()
|
|
34
|
+
items.append(items_item)
|
|
35
|
+
|
|
36
|
+
total = self.total
|
|
37
|
+
|
|
38
|
+
skip = self.skip
|
|
39
|
+
|
|
40
|
+
limit = self.limit
|
|
41
|
+
|
|
42
|
+
field_dict: dict[str, Any] = {}
|
|
43
|
+
field_dict.update(self.additional_properties)
|
|
44
|
+
field_dict.update(
|
|
45
|
+
{
|
|
46
|
+
"items": items,
|
|
47
|
+
"total": total,
|
|
48
|
+
"skip": skip,
|
|
49
|
+
"limit": limit,
|
|
50
|
+
}
|
|
51
|
+
)
|
|
52
|
+
|
|
53
|
+
return field_dict
|
|
54
|
+
|
|
55
|
+
@classmethod
|
|
56
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
57
|
+
from ..models.workflow_response import WorkflowResponse
|
|
58
|
+
|
|
59
|
+
d = dict(src_dict)
|
|
60
|
+
items = []
|
|
61
|
+
_items = d.pop("items")
|
|
62
|
+
for items_item_data in _items:
|
|
63
|
+
items_item = WorkflowResponse.from_dict(items_item_data)
|
|
64
|
+
|
|
65
|
+
items.append(items_item)
|
|
66
|
+
|
|
67
|
+
total = d.pop("total")
|
|
68
|
+
|
|
69
|
+
skip = d.pop("skip")
|
|
70
|
+
|
|
71
|
+
limit = d.pop("limit")
|
|
72
|
+
|
|
73
|
+
paginated_response_workflow_response = cls(
|
|
74
|
+
items=items,
|
|
75
|
+
total=total,
|
|
76
|
+
skip=skip,
|
|
77
|
+
limit=limit,
|
|
78
|
+
)
|
|
79
|
+
|
|
80
|
+
paginated_response_workflow_response.additional_properties = d
|
|
81
|
+
return paginated_response_workflow_response
|
|
82
|
+
|
|
83
|
+
@property
|
|
84
|
+
def additional_keys(self) -> list[str]:
|
|
85
|
+
return list(self.additional_properties.keys())
|
|
86
|
+
|
|
87
|
+
def __getitem__(self, key: str) -> Any:
|
|
88
|
+
return self.additional_properties[key]
|
|
89
|
+
|
|
90
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
91
|
+
self.additional_properties[key] = value
|
|
92
|
+
|
|
93
|
+
def __delitem__(self, key: str) -> None:
|
|
94
|
+
del self.additional_properties[key]
|
|
95
|
+
|
|
96
|
+
def __contains__(self, key: str) -> bool:
|
|
97
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
from collections.abc import Mapping
|
|
2
|
+
from typing import Any, TypeVar, Union, cast
|
|
3
|
+
from uuid import UUID
|
|
4
|
+
|
|
5
|
+
from attrs import define as _attrs_define
|
|
6
|
+
from attrs import field as _attrs_field
|
|
7
|
+
|
|
8
|
+
from ..types import UNSET, Unset
|
|
9
|
+
|
|
10
|
+
T = TypeVar("T", bound="RequestLogCreate")
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
@_attrs_define
|
|
14
|
+
class RequestLogCreate:
|
|
15
|
+
"""Schema for creating a request log
|
|
16
|
+
|
|
17
|
+
Attributes:
|
|
18
|
+
request_id (str):
|
|
19
|
+
method (str):
|
|
20
|
+
path (str):
|
|
21
|
+
machine_id (UUID):
|
|
22
|
+
status_code (Union[None, Unset, int]):
|
|
23
|
+
request_size_bytes (Union[None, Unset, int]):
|
|
24
|
+
response_size_bytes (Union[None, Unset, int]):
|
|
25
|
+
duration_ms (Union[None, Unset, int]):
|
|
26
|
+
error_message (Union[None, Unset, str]):
|
|
27
|
+
"""
|
|
28
|
+
|
|
29
|
+
request_id: str
|
|
30
|
+
method: str
|
|
31
|
+
path: str
|
|
32
|
+
machine_id: UUID
|
|
33
|
+
status_code: Union[None, Unset, int] = UNSET
|
|
34
|
+
request_size_bytes: Union[None, Unset, int] = UNSET
|
|
35
|
+
response_size_bytes: Union[None, Unset, int] = UNSET
|
|
36
|
+
duration_ms: Union[None, Unset, int] = UNSET
|
|
37
|
+
error_message: Union[None, Unset, str] = UNSET
|
|
38
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
39
|
+
|
|
40
|
+
def to_dict(self) -> dict[str, Any]:
|
|
41
|
+
request_id = self.request_id
|
|
42
|
+
|
|
43
|
+
method = self.method
|
|
44
|
+
|
|
45
|
+
path = self.path
|
|
46
|
+
|
|
47
|
+
machine_id = str(self.machine_id)
|
|
48
|
+
|
|
49
|
+
status_code: Union[None, Unset, int]
|
|
50
|
+
if isinstance(self.status_code, Unset):
|
|
51
|
+
status_code = UNSET
|
|
52
|
+
else:
|
|
53
|
+
status_code = self.status_code
|
|
54
|
+
|
|
55
|
+
request_size_bytes: Union[None, Unset, int]
|
|
56
|
+
if isinstance(self.request_size_bytes, Unset):
|
|
57
|
+
request_size_bytes = UNSET
|
|
58
|
+
else:
|
|
59
|
+
request_size_bytes = self.request_size_bytes
|
|
60
|
+
|
|
61
|
+
response_size_bytes: Union[None, Unset, int]
|
|
62
|
+
if isinstance(self.response_size_bytes, Unset):
|
|
63
|
+
response_size_bytes = UNSET
|
|
64
|
+
else:
|
|
65
|
+
response_size_bytes = self.response_size_bytes
|
|
66
|
+
|
|
67
|
+
duration_ms: Union[None, Unset, int]
|
|
68
|
+
if isinstance(self.duration_ms, Unset):
|
|
69
|
+
duration_ms = UNSET
|
|
70
|
+
else:
|
|
71
|
+
duration_ms = self.duration_ms
|
|
72
|
+
|
|
73
|
+
error_message: Union[None, Unset, str]
|
|
74
|
+
if isinstance(self.error_message, Unset):
|
|
75
|
+
error_message = UNSET
|
|
76
|
+
else:
|
|
77
|
+
error_message = self.error_message
|
|
78
|
+
|
|
79
|
+
field_dict: dict[str, Any] = {}
|
|
80
|
+
field_dict.update(self.additional_properties)
|
|
81
|
+
field_dict.update(
|
|
82
|
+
{
|
|
83
|
+
"request_id": request_id,
|
|
84
|
+
"method": method,
|
|
85
|
+
"path": path,
|
|
86
|
+
"machine_id": machine_id,
|
|
87
|
+
}
|
|
88
|
+
)
|
|
89
|
+
if status_code is not UNSET:
|
|
90
|
+
field_dict["status_code"] = status_code
|
|
91
|
+
if request_size_bytes is not UNSET:
|
|
92
|
+
field_dict["request_size_bytes"] = request_size_bytes
|
|
93
|
+
if response_size_bytes is not UNSET:
|
|
94
|
+
field_dict["response_size_bytes"] = response_size_bytes
|
|
95
|
+
if duration_ms is not UNSET:
|
|
96
|
+
field_dict["duration_ms"] = duration_ms
|
|
97
|
+
if error_message is not UNSET:
|
|
98
|
+
field_dict["error_message"] = error_message
|
|
99
|
+
|
|
100
|
+
return field_dict
|
|
101
|
+
|
|
102
|
+
@classmethod
|
|
103
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
104
|
+
d = dict(src_dict)
|
|
105
|
+
request_id = d.pop("request_id")
|
|
106
|
+
|
|
107
|
+
method = d.pop("method")
|
|
108
|
+
|
|
109
|
+
path = d.pop("path")
|
|
110
|
+
|
|
111
|
+
machine_id = UUID(d.pop("machine_id"))
|
|
112
|
+
|
|
113
|
+
def _parse_status_code(data: object) -> Union[None, Unset, int]:
|
|
114
|
+
if data is None:
|
|
115
|
+
return data
|
|
116
|
+
if isinstance(data, Unset):
|
|
117
|
+
return data
|
|
118
|
+
return cast(Union[None, Unset, int], data)
|
|
119
|
+
|
|
120
|
+
status_code = _parse_status_code(d.pop("status_code", UNSET))
|
|
121
|
+
|
|
122
|
+
def _parse_request_size_bytes(data: object) -> Union[None, Unset, int]:
|
|
123
|
+
if data is None:
|
|
124
|
+
return data
|
|
125
|
+
if isinstance(data, Unset):
|
|
126
|
+
return data
|
|
127
|
+
return cast(Union[None, Unset, int], data)
|
|
128
|
+
|
|
129
|
+
request_size_bytes = _parse_request_size_bytes(d.pop("request_size_bytes", UNSET))
|
|
130
|
+
|
|
131
|
+
def _parse_response_size_bytes(data: object) -> Union[None, Unset, int]:
|
|
132
|
+
if data is None:
|
|
133
|
+
return data
|
|
134
|
+
if isinstance(data, Unset):
|
|
135
|
+
return data
|
|
136
|
+
return cast(Union[None, Unset, int], data)
|
|
137
|
+
|
|
138
|
+
response_size_bytes = _parse_response_size_bytes(d.pop("response_size_bytes", UNSET))
|
|
139
|
+
|
|
140
|
+
def _parse_duration_ms(data: object) -> Union[None, Unset, int]:
|
|
141
|
+
if data is None:
|
|
142
|
+
return data
|
|
143
|
+
if isinstance(data, Unset):
|
|
144
|
+
return data
|
|
145
|
+
return cast(Union[None, Unset, int], data)
|
|
146
|
+
|
|
147
|
+
duration_ms = _parse_duration_ms(d.pop("duration_ms", UNSET))
|
|
148
|
+
|
|
149
|
+
def _parse_error_message(data: object) -> Union[None, Unset, str]:
|
|
150
|
+
if data is None:
|
|
151
|
+
return data
|
|
152
|
+
if isinstance(data, Unset):
|
|
153
|
+
return data
|
|
154
|
+
return cast(Union[None, Unset, str], data)
|
|
155
|
+
|
|
156
|
+
error_message = _parse_error_message(d.pop("error_message", UNSET))
|
|
157
|
+
|
|
158
|
+
request_log_create = cls(
|
|
159
|
+
request_id=request_id,
|
|
160
|
+
method=method,
|
|
161
|
+
path=path,
|
|
162
|
+
machine_id=machine_id,
|
|
163
|
+
status_code=status_code,
|
|
164
|
+
request_size_bytes=request_size_bytes,
|
|
165
|
+
response_size_bytes=response_size_bytes,
|
|
166
|
+
duration_ms=duration_ms,
|
|
167
|
+
error_message=error_message,
|
|
168
|
+
)
|
|
169
|
+
|
|
170
|
+
request_log_create.additional_properties = d
|
|
171
|
+
return request_log_create
|
|
172
|
+
|
|
173
|
+
@property
|
|
174
|
+
def additional_keys(self) -> list[str]:
|
|
175
|
+
return list(self.additional_properties.keys())
|
|
176
|
+
|
|
177
|
+
def __getitem__(self, key: str) -> Any:
|
|
178
|
+
return self.additional_properties[key]
|
|
179
|
+
|
|
180
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
181
|
+
self.additional_properties[key] = value
|
|
182
|
+
|
|
183
|
+
def __delitem__(self, key: str) -> None:
|
|
184
|
+
del self.additional_properties[key]
|
|
185
|
+
|
|
186
|
+
def __contains__(self, key: str) -> bool:
|
|
187
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
import datetime
|
|
2
|
+
from collections.abc import Mapping
|
|
3
|
+
from typing import Any, TypeVar, Union, cast
|
|
4
|
+
from uuid import UUID
|
|
5
|
+
|
|
6
|
+
from attrs import define as _attrs_define
|
|
7
|
+
from attrs import field as _attrs_field
|
|
8
|
+
from dateutil.parser import isoparse
|
|
9
|
+
|
|
10
|
+
from ..types import UNSET, Unset
|
|
11
|
+
|
|
12
|
+
T = TypeVar("T", bound="RequestLogResponse")
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
@_attrs_define
|
|
16
|
+
class RequestLogResponse:
|
|
17
|
+
"""Request log response schema
|
|
18
|
+
|
|
19
|
+
Attributes:
|
|
20
|
+
request_id (str):
|
|
21
|
+
method (str):
|
|
22
|
+
path (str):
|
|
23
|
+
id (UUID):
|
|
24
|
+
machine_id (UUID):
|
|
25
|
+
created_at (datetime.datetime):
|
|
26
|
+
completed_at (Union[None, datetime.datetime]):
|
|
27
|
+
status_code (Union[None, Unset, int]):
|
|
28
|
+
request_size_bytes (Union[None, Unset, int]):
|
|
29
|
+
response_size_bytes (Union[None, Unset, int]):
|
|
30
|
+
duration_ms (Union[None, Unset, int]):
|
|
31
|
+
error_message (Union[None, Unset, str]):
|
|
32
|
+
"""
|
|
33
|
+
|
|
34
|
+
request_id: str
|
|
35
|
+
method: str
|
|
36
|
+
path: str
|
|
37
|
+
id: UUID
|
|
38
|
+
machine_id: UUID
|
|
39
|
+
created_at: datetime.datetime
|
|
40
|
+
completed_at: Union[None, datetime.datetime]
|
|
41
|
+
status_code: Union[None, Unset, int] = UNSET
|
|
42
|
+
request_size_bytes: Union[None, Unset, int] = UNSET
|
|
43
|
+
response_size_bytes: Union[None, Unset, int] = UNSET
|
|
44
|
+
duration_ms: Union[None, Unset, int] = UNSET
|
|
45
|
+
error_message: Union[None, Unset, str] = UNSET
|
|
46
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
47
|
+
|
|
48
|
+
def to_dict(self) -> dict[str, Any]:
|
|
49
|
+
request_id = self.request_id
|
|
50
|
+
|
|
51
|
+
method = self.method
|
|
52
|
+
|
|
53
|
+
path = self.path
|
|
54
|
+
|
|
55
|
+
id = str(self.id)
|
|
56
|
+
|
|
57
|
+
machine_id = str(self.machine_id)
|
|
58
|
+
|
|
59
|
+
created_at = self.created_at.isoformat()
|
|
60
|
+
|
|
61
|
+
completed_at: Union[None, str]
|
|
62
|
+
if isinstance(self.completed_at, datetime.datetime):
|
|
63
|
+
completed_at = self.completed_at.isoformat()
|
|
64
|
+
else:
|
|
65
|
+
completed_at = self.completed_at
|
|
66
|
+
|
|
67
|
+
status_code: Union[None, Unset, int]
|
|
68
|
+
if isinstance(self.status_code, Unset):
|
|
69
|
+
status_code = UNSET
|
|
70
|
+
else:
|
|
71
|
+
status_code = self.status_code
|
|
72
|
+
|
|
73
|
+
request_size_bytes: Union[None, Unset, int]
|
|
74
|
+
if isinstance(self.request_size_bytes, Unset):
|
|
75
|
+
request_size_bytes = UNSET
|
|
76
|
+
else:
|
|
77
|
+
request_size_bytes = self.request_size_bytes
|
|
78
|
+
|
|
79
|
+
response_size_bytes: Union[None, Unset, int]
|
|
80
|
+
if isinstance(self.response_size_bytes, Unset):
|
|
81
|
+
response_size_bytes = UNSET
|
|
82
|
+
else:
|
|
83
|
+
response_size_bytes = self.response_size_bytes
|
|
84
|
+
|
|
85
|
+
duration_ms: Union[None, Unset, int]
|
|
86
|
+
if isinstance(self.duration_ms, Unset):
|
|
87
|
+
duration_ms = UNSET
|
|
88
|
+
else:
|
|
89
|
+
duration_ms = self.duration_ms
|
|
90
|
+
|
|
91
|
+
error_message: Union[None, Unset, str]
|
|
92
|
+
if isinstance(self.error_message, Unset):
|
|
93
|
+
error_message = UNSET
|
|
94
|
+
else:
|
|
95
|
+
error_message = self.error_message
|
|
96
|
+
|
|
97
|
+
field_dict: dict[str, Any] = {}
|
|
98
|
+
field_dict.update(self.additional_properties)
|
|
99
|
+
field_dict.update(
|
|
100
|
+
{
|
|
101
|
+
"request_id": request_id,
|
|
102
|
+
"method": method,
|
|
103
|
+
"path": path,
|
|
104
|
+
"id": id,
|
|
105
|
+
"machine_id": machine_id,
|
|
106
|
+
"created_at": created_at,
|
|
107
|
+
"completed_at": completed_at,
|
|
108
|
+
}
|
|
109
|
+
)
|
|
110
|
+
if status_code is not UNSET:
|
|
111
|
+
field_dict["status_code"] = status_code
|
|
112
|
+
if request_size_bytes is not UNSET:
|
|
113
|
+
field_dict["request_size_bytes"] = request_size_bytes
|
|
114
|
+
if response_size_bytes is not UNSET:
|
|
115
|
+
field_dict["response_size_bytes"] = response_size_bytes
|
|
116
|
+
if duration_ms is not UNSET:
|
|
117
|
+
field_dict["duration_ms"] = duration_ms
|
|
118
|
+
if error_message is not UNSET:
|
|
119
|
+
field_dict["error_message"] = error_message
|
|
120
|
+
|
|
121
|
+
return field_dict
|
|
122
|
+
|
|
123
|
+
@classmethod
|
|
124
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
125
|
+
d = dict(src_dict)
|
|
126
|
+
request_id = d.pop("request_id")
|
|
127
|
+
|
|
128
|
+
method = d.pop("method")
|
|
129
|
+
|
|
130
|
+
path = d.pop("path")
|
|
131
|
+
|
|
132
|
+
id = UUID(d.pop("id"))
|
|
133
|
+
|
|
134
|
+
machine_id = UUID(d.pop("machine_id"))
|
|
135
|
+
|
|
136
|
+
created_at = isoparse(d.pop("created_at"))
|
|
137
|
+
|
|
138
|
+
def _parse_completed_at(data: object) -> Union[None, datetime.datetime]:
|
|
139
|
+
if data is None:
|
|
140
|
+
return data
|
|
141
|
+
try:
|
|
142
|
+
if not isinstance(data, str):
|
|
143
|
+
raise TypeError()
|
|
144
|
+
completed_at_type_0 = isoparse(data)
|
|
145
|
+
|
|
146
|
+
return completed_at_type_0
|
|
147
|
+
except: # noqa: E722
|
|
148
|
+
pass
|
|
149
|
+
return cast(Union[None, datetime.datetime], data)
|
|
150
|
+
|
|
151
|
+
completed_at = _parse_completed_at(d.pop("completed_at"))
|
|
152
|
+
|
|
153
|
+
def _parse_status_code(data: object) -> Union[None, Unset, int]:
|
|
154
|
+
if data is None:
|
|
155
|
+
return data
|
|
156
|
+
if isinstance(data, Unset):
|
|
157
|
+
return data
|
|
158
|
+
return cast(Union[None, Unset, int], data)
|
|
159
|
+
|
|
160
|
+
status_code = _parse_status_code(d.pop("status_code", UNSET))
|
|
161
|
+
|
|
162
|
+
def _parse_request_size_bytes(data: object) -> Union[None, Unset, int]:
|
|
163
|
+
if data is None:
|
|
164
|
+
return data
|
|
165
|
+
if isinstance(data, Unset):
|
|
166
|
+
return data
|
|
167
|
+
return cast(Union[None, Unset, int], data)
|
|
168
|
+
|
|
169
|
+
request_size_bytes = _parse_request_size_bytes(d.pop("request_size_bytes", UNSET))
|
|
170
|
+
|
|
171
|
+
def _parse_response_size_bytes(data: object) -> Union[None, Unset, int]:
|
|
172
|
+
if data is None:
|
|
173
|
+
return data
|
|
174
|
+
if isinstance(data, Unset):
|
|
175
|
+
return data
|
|
176
|
+
return cast(Union[None, Unset, int], data)
|
|
177
|
+
|
|
178
|
+
response_size_bytes = _parse_response_size_bytes(d.pop("response_size_bytes", UNSET))
|
|
179
|
+
|
|
180
|
+
def _parse_duration_ms(data: object) -> Union[None, Unset, int]:
|
|
181
|
+
if data is None:
|
|
182
|
+
return data
|
|
183
|
+
if isinstance(data, Unset):
|
|
184
|
+
return data
|
|
185
|
+
return cast(Union[None, Unset, int], data)
|
|
186
|
+
|
|
187
|
+
duration_ms = _parse_duration_ms(d.pop("duration_ms", UNSET))
|
|
188
|
+
|
|
189
|
+
def _parse_error_message(data: object) -> Union[None, Unset, str]:
|
|
190
|
+
if data is None:
|
|
191
|
+
return data
|
|
192
|
+
if isinstance(data, Unset):
|
|
193
|
+
return data
|
|
194
|
+
return cast(Union[None, Unset, str], data)
|
|
195
|
+
|
|
196
|
+
error_message = _parse_error_message(d.pop("error_message", UNSET))
|
|
197
|
+
|
|
198
|
+
request_log_response = cls(
|
|
199
|
+
request_id=request_id,
|
|
200
|
+
method=method,
|
|
201
|
+
path=path,
|
|
202
|
+
id=id,
|
|
203
|
+
machine_id=machine_id,
|
|
204
|
+
created_at=created_at,
|
|
205
|
+
completed_at=completed_at,
|
|
206
|
+
status_code=status_code,
|
|
207
|
+
request_size_bytes=request_size_bytes,
|
|
208
|
+
response_size_bytes=response_size_bytes,
|
|
209
|
+
duration_ms=duration_ms,
|
|
210
|
+
error_message=error_message,
|
|
211
|
+
)
|
|
212
|
+
|
|
213
|
+
request_log_response.additional_properties = d
|
|
214
|
+
return request_log_response
|
|
215
|
+
|
|
216
|
+
@property
|
|
217
|
+
def additional_keys(self) -> list[str]:
|
|
218
|
+
return list(self.additional_properties.keys())
|
|
219
|
+
|
|
220
|
+
def __getitem__(self, key: str) -> Any:
|
|
221
|
+
return self.additional_properties[key]
|
|
222
|
+
|
|
223
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
224
|
+
self.additional_properties[key] = value
|
|
225
|
+
|
|
226
|
+
def __delitem__(self, key: str) -> None:
|
|
227
|
+
del self.additional_properties[key]
|
|
228
|
+
|
|
229
|
+
def __contains__(self, key: str) -> bool:
|
|
230
|
+
return key in self.additional_properties
|