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,164 @@
|
|
|
1
|
+
import datetime
|
|
2
|
+
from collections.abc import Mapping
|
|
3
|
+
from typing import Any, TypeVar, Union, cast
|
|
4
|
+
|
|
5
|
+
from attrs import define as _attrs_define
|
|
6
|
+
from attrs import field as _attrs_field
|
|
7
|
+
from dateutil.parser import isoparse
|
|
8
|
+
|
|
9
|
+
from ..types import UNSET, Unset
|
|
10
|
+
|
|
11
|
+
T = TypeVar("T", bound="RequestLogUpdate")
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
@_attrs_define
|
|
15
|
+
class RequestLogUpdate:
|
|
16
|
+
"""Schema for updating a request log
|
|
17
|
+
|
|
18
|
+
Attributes:
|
|
19
|
+
status_code (Union[None, Unset, int]):
|
|
20
|
+
response_size_bytes (Union[None, Unset, int]):
|
|
21
|
+
completed_at (Union[None, Unset, datetime.datetime]):
|
|
22
|
+
duration_ms (Union[None, Unset, int]):
|
|
23
|
+
error_message (Union[None, Unset, str]):
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
status_code: Union[None, Unset, int] = UNSET
|
|
27
|
+
response_size_bytes: Union[None, Unset, int] = UNSET
|
|
28
|
+
completed_at: Union[None, Unset, datetime.datetime] = UNSET
|
|
29
|
+
duration_ms: Union[None, Unset, int] = UNSET
|
|
30
|
+
error_message: Union[None, Unset, str] = UNSET
|
|
31
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
32
|
+
|
|
33
|
+
def to_dict(self) -> dict[str, Any]:
|
|
34
|
+
status_code: Union[None, Unset, int]
|
|
35
|
+
if isinstance(self.status_code, Unset):
|
|
36
|
+
status_code = UNSET
|
|
37
|
+
else:
|
|
38
|
+
status_code = self.status_code
|
|
39
|
+
|
|
40
|
+
response_size_bytes: Union[None, Unset, int]
|
|
41
|
+
if isinstance(self.response_size_bytes, Unset):
|
|
42
|
+
response_size_bytes = UNSET
|
|
43
|
+
else:
|
|
44
|
+
response_size_bytes = self.response_size_bytes
|
|
45
|
+
|
|
46
|
+
completed_at: Union[None, Unset, str]
|
|
47
|
+
if isinstance(self.completed_at, Unset):
|
|
48
|
+
completed_at = UNSET
|
|
49
|
+
elif isinstance(self.completed_at, datetime.datetime):
|
|
50
|
+
completed_at = self.completed_at.isoformat()
|
|
51
|
+
else:
|
|
52
|
+
completed_at = self.completed_at
|
|
53
|
+
|
|
54
|
+
duration_ms: Union[None, Unset, int]
|
|
55
|
+
if isinstance(self.duration_ms, Unset):
|
|
56
|
+
duration_ms = UNSET
|
|
57
|
+
else:
|
|
58
|
+
duration_ms = self.duration_ms
|
|
59
|
+
|
|
60
|
+
error_message: Union[None, Unset, str]
|
|
61
|
+
if isinstance(self.error_message, Unset):
|
|
62
|
+
error_message = UNSET
|
|
63
|
+
else:
|
|
64
|
+
error_message = self.error_message
|
|
65
|
+
|
|
66
|
+
field_dict: dict[str, Any] = {}
|
|
67
|
+
field_dict.update(self.additional_properties)
|
|
68
|
+
field_dict.update({})
|
|
69
|
+
if status_code is not UNSET:
|
|
70
|
+
field_dict["status_code"] = status_code
|
|
71
|
+
if response_size_bytes is not UNSET:
|
|
72
|
+
field_dict["response_size_bytes"] = response_size_bytes
|
|
73
|
+
if completed_at is not UNSET:
|
|
74
|
+
field_dict["completed_at"] = completed_at
|
|
75
|
+
if duration_ms is not UNSET:
|
|
76
|
+
field_dict["duration_ms"] = duration_ms
|
|
77
|
+
if error_message is not UNSET:
|
|
78
|
+
field_dict["error_message"] = error_message
|
|
79
|
+
|
|
80
|
+
return field_dict
|
|
81
|
+
|
|
82
|
+
@classmethod
|
|
83
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
84
|
+
d = dict(src_dict)
|
|
85
|
+
|
|
86
|
+
def _parse_status_code(data: object) -> Union[None, Unset, int]:
|
|
87
|
+
if data is None:
|
|
88
|
+
return data
|
|
89
|
+
if isinstance(data, Unset):
|
|
90
|
+
return data
|
|
91
|
+
return cast(Union[None, Unset, int], data)
|
|
92
|
+
|
|
93
|
+
status_code = _parse_status_code(d.pop("status_code", UNSET))
|
|
94
|
+
|
|
95
|
+
def _parse_response_size_bytes(data: object) -> Union[None, Unset, int]:
|
|
96
|
+
if data is None:
|
|
97
|
+
return data
|
|
98
|
+
if isinstance(data, Unset):
|
|
99
|
+
return data
|
|
100
|
+
return cast(Union[None, Unset, int], data)
|
|
101
|
+
|
|
102
|
+
response_size_bytes = _parse_response_size_bytes(d.pop("response_size_bytes", UNSET))
|
|
103
|
+
|
|
104
|
+
def _parse_completed_at(data: object) -> Union[None, Unset, datetime.datetime]:
|
|
105
|
+
if data is None:
|
|
106
|
+
return data
|
|
107
|
+
if isinstance(data, Unset):
|
|
108
|
+
return data
|
|
109
|
+
try:
|
|
110
|
+
if not isinstance(data, str):
|
|
111
|
+
raise TypeError()
|
|
112
|
+
completed_at_type_0 = isoparse(data)
|
|
113
|
+
|
|
114
|
+
return completed_at_type_0
|
|
115
|
+
except: # noqa: E722
|
|
116
|
+
pass
|
|
117
|
+
return cast(Union[None, Unset, datetime.datetime], data)
|
|
118
|
+
|
|
119
|
+
completed_at = _parse_completed_at(d.pop("completed_at", UNSET))
|
|
120
|
+
|
|
121
|
+
def _parse_duration_ms(data: object) -> Union[None, Unset, int]:
|
|
122
|
+
if data is None:
|
|
123
|
+
return data
|
|
124
|
+
if isinstance(data, Unset):
|
|
125
|
+
return data
|
|
126
|
+
return cast(Union[None, Unset, int], data)
|
|
127
|
+
|
|
128
|
+
duration_ms = _parse_duration_ms(d.pop("duration_ms", UNSET))
|
|
129
|
+
|
|
130
|
+
def _parse_error_message(data: object) -> Union[None, Unset, str]:
|
|
131
|
+
if data is None:
|
|
132
|
+
return data
|
|
133
|
+
if isinstance(data, Unset):
|
|
134
|
+
return data
|
|
135
|
+
return cast(Union[None, Unset, str], data)
|
|
136
|
+
|
|
137
|
+
error_message = _parse_error_message(d.pop("error_message", UNSET))
|
|
138
|
+
|
|
139
|
+
request_log_update = cls(
|
|
140
|
+
status_code=status_code,
|
|
141
|
+
response_size_bytes=response_size_bytes,
|
|
142
|
+
completed_at=completed_at,
|
|
143
|
+
duration_ms=duration_ms,
|
|
144
|
+
error_message=error_message,
|
|
145
|
+
)
|
|
146
|
+
|
|
147
|
+
request_log_update.additional_properties = d
|
|
148
|
+
return request_log_update
|
|
149
|
+
|
|
150
|
+
@property
|
|
151
|
+
def additional_keys(self) -> list[str]:
|
|
152
|
+
return list(self.additional_properties.keys())
|
|
153
|
+
|
|
154
|
+
def __getitem__(self, key: str) -> Any:
|
|
155
|
+
return self.additional_properties[key]
|
|
156
|
+
|
|
157
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
158
|
+
self.additional_properties[key] = value
|
|
159
|
+
|
|
160
|
+
def __delitem__(self, key: str) -> None:
|
|
161
|
+
del self.additional_properties[key]
|
|
162
|
+
|
|
163
|
+
def __contains__(self, key: str) -> bool:
|
|
164
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,94 @@
|
|
|
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="RunCreate")
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
@_attrs_define
|
|
14
|
+
class RunCreate:
|
|
15
|
+
"""Schema for creating a run
|
|
16
|
+
|
|
17
|
+
Attributes:
|
|
18
|
+
workflow_id (UUID):
|
|
19
|
+
machine_id (Union[None, UUID, Unset]): Machine ID. If not provided, an available machine will be automatically
|
|
20
|
+
selected.
|
|
21
|
+
"""
|
|
22
|
+
|
|
23
|
+
workflow_id: UUID
|
|
24
|
+
machine_id: Union[None, UUID, Unset] = UNSET
|
|
25
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
26
|
+
|
|
27
|
+
def to_dict(self) -> dict[str, Any]:
|
|
28
|
+
workflow_id = str(self.workflow_id)
|
|
29
|
+
|
|
30
|
+
machine_id: Union[None, Unset, str]
|
|
31
|
+
if isinstance(self.machine_id, Unset):
|
|
32
|
+
machine_id = UNSET
|
|
33
|
+
elif isinstance(self.machine_id, UUID):
|
|
34
|
+
machine_id = str(self.machine_id)
|
|
35
|
+
else:
|
|
36
|
+
machine_id = self.machine_id
|
|
37
|
+
|
|
38
|
+
field_dict: dict[str, Any] = {}
|
|
39
|
+
field_dict.update(self.additional_properties)
|
|
40
|
+
field_dict.update(
|
|
41
|
+
{
|
|
42
|
+
"workflow_id": workflow_id,
|
|
43
|
+
}
|
|
44
|
+
)
|
|
45
|
+
if machine_id is not UNSET:
|
|
46
|
+
field_dict["machine_id"] = machine_id
|
|
47
|
+
|
|
48
|
+
return field_dict
|
|
49
|
+
|
|
50
|
+
@classmethod
|
|
51
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
52
|
+
d = dict(src_dict)
|
|
53
|
+
workflow_id = UUID(d.pop("workflow_id"))
|
|
54
|
+
|
|
55
|
+
def _parse_machine_id(data: object) -> Union[None, UUID, Unset]:
|
|
56
|
+
if data is None:
|
|
57
|
+
return data
|
|
58
|
+
if isinstance(data, Unset):
|
|
59
|
+
return data
|
|
60
|
+
try:
|
|
61
|
+
if not isinstance(data, str):
|
|
62
|
+
raise TypeError()
|
|
63
|
+
machine_id_type_0 = UUID(data)
|
|
64
|
+
|
|
65
|
+
return machine_id_type_0
|
|
66
|
+
except: # noqa: E722
|
|
67
|
+
pass
|
|
68
|
+
return cast(Union[None, UUID, Unset], data)
|
|
69
|
+
|
|
70
|
+
machine_id = _parse_machine_id(d.pop("machine_id", UNSET))
|
|
71
|
+
|
|
72
|
+
run_create = cls(
|
|
73
|
+
workflow_id=workflow_id,
|
|
74
|
+
machine_id=machine_id,
|
|
75
|
+
)
|
|
76
|
+
|
|
77
|
+
run_create.additional_properties = d
|
|
78
|
+
return run_create
|
|
79
|
+
|
|
80
|
+
@property
|
|
81
|
+
def additional_keys(self) -> list[str]:
|
|
82
|
+
return list(self.additional_properties.keys())
|
|
83
|
+
|
|
84
|
+
def __getitem__(self, key: str) -> Any:
|
|
85
|
+
return self.additional_properties[key]
|
|
86
|
+
|
|
87
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
88
|
+
self.additional_properties[key] = value
|
|
89
|
+
|
|
90
|
+
def __delitem__(self, key: str) -> None:
|
|
91
|
+
del self.additional_properties[key]
|
|
92
|
+
|
|
93
|
+
def __contains__(self, key: str) -> bool:
|
|
94
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
import datetime
|
|
2
|
+
from collections.abc import Mapping
|
|
3
|
+
from typing import TYPE_CHECKING, 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 ..models.run_status import RunStatus
|
|
11
|
+
|
|
12
|
+
if TYPE_CHECKING:
|
|
13
|
+
from ..models.run_response_output_data_type_0 import RunResponseOutputDataType0
|
|
14
|
+
from ..models.run_response_run_message_history_type_0_item import RunResponseRunMessageHistoryType0Item
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
T = TypeVar("T", bound="RunResponse")
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
@_attrs_define
|
|
21
|
+
class RunResponse:
|
|
22
|
+
"""Run response schema
|
|
23
|
+
|
|
24
|
+
Attributes:
|
|
25
|
+
workflow_id (UUID):
|
|
26
|
+
machine_id (UUID):
|
|
27
|
+
id (UUID):
|
|
28
|
+
user_id (UUID):
|
|
29
|
+
status (RunStatus):
|
|
30
|
+
error (Union[None, list[str]]):
|
|
31
|
+
output_data (Union['RunResponseOutputDataType0', None]):
|
|
32
|
+
output_attachment_ids (Union[None, list[str]]):
|
|
33
|
+
run_message_history (Union[None, list['RunResponseRunMessageHistoryType0Item']]):
|
|
34
|
+
created_at (datetime.datetime):
|
|
35
|
+
"""
|
|
36
|
+
|
|
37
|
+
workflow_id: UUID
|
|
38
|
+
machine_id: UUID
|
|
39
|
+
id: UUID
|
|
40
|
+
user_id: UUID
|
|
41
|
+
status: RunStatus
|
|
42
|
+
error: Union[None, list[str]]
|
|
43
|
+
output_data: Union["RunResponseOutputDataType0", None]
|
|
44
|
+
output_attachment_ids: Union[None, list[str]]
|
|
45
|
+
run_message_history: Union[None, list["RunResponseRunMessageHistoryType0Item"]]
|
|
46
|
+
created_at: datetime.datetime
|
|
47
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
48
|
+
|
|
49
|
+
def to_dict(self) -> dict[str, Any]:
|
|
50
|
+
from ..models.run_response_output_data_type_0 import RunResponseOutputDataType0
|
|
51
|
+
|
|
52
|
+
workflow_id = str(self.workflow_id)
|
|
53
|
+
|
|
54
|
+
machine_id = str(self.machine_id)
|
|
55
|
+
|
|
56
|
+
id = str(self.id)
|
|
57
|
+
|
|
58
|
+
user_id = str(self.user_id)
|
|
59
|
+
|
|
60
|
+
status = self.status.value
|
|
61
|
+
|
|
62
|
+
error: Union[None, list[str]]
|
|
63
|
+
if isinstance(self.error, list):
|
|
64
|
+
error = self.error
|
|
65
|
+
|
|
66
|
+
else:
|
|
67
|
+
error = self.error
|
|
68
|
+
|
|
69
|
+
output_data: Union[None, dict[str, Any]]
|
|
70
|
+
if isinstance(self.output_data, RunResponseOutputDataType0):
|
|
71
|
+
output_data = self.output_data.to_dict()
|
|
72
|
+
else:
|
|
73
|
+
output_data = self.output_data
|
|
74
|
+
|
|
75
|
+
output_attachment_ids: Union[None, list[str]]
|
|
76
|
+
if isinstance(self.output_attachment_ids, list):
|
|
77
|
+
output_attachment_ids = self.output_attachment_ids
|
|
78
|
+
|
|
79
|
+
else:
|
|
80
|
+
output_attachment_ids = self.output_attachment_ids
|
|
81
|
+
|
|
82
|
+
run_message_history: Union[None, list[dict[str, Any]]]
|
|
83
|
+
if isinstance(self.run_message_history, list):
|
|
84
|
+
run_message_history = []
|
|
85
|
+
for run_message_history_type_0_item_data in self.run_message_history:
|
|
86
|
+
run_message_history_type_0_item = run_message_history_type_0_item_data.to_dict()
|
|
87
|
+
run_message_history.append(run_message_history_type_0_item)
|
|
88
|
+
|
|
89
|
+
else:
|
|
90
|
+
run_message_history = self.run_message_history
|
|
91
|
+
|
|
92
|
+
created_at = self.created_at.isoformat()
|
|
93
|
+
|
|
94
|
+
field_dict: dict[str, Any] = {}
|
|
95
|
+
field_dict.update(self.additional_properties)
|
|
96
|
+
field_dict.update(
|
|
97
|
+
{
|
|
98
|
+
"workflow_id": workflow_id,
|
|
99
|
+
"machine_id": machine_id,
|
|
100
|
+
"id": id,
|
|
101
|
+
"user_id": user_id,
|
|
102
|
+
"status": status,
|
|
103
|
+
"error": error,
|
|
104
|
+
"output_data": output_data,
|
|
105
|
+
"output_attachment_ids": output_attachment_ids,
|
|
106
|
+
"run_message_history": run_message_history,
|
|
107
|
+
"created_at": created_at,
|
|
108
|
+
}
|
|
109
|
+
)
|
|
110
|
+
|
|
111
|
+
return field_dict
|
|
112
|
+
|
|
113
|
+
@classmethod
|
|
114
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
115
|
+
from ..models.run_response_output_data_type_0 import RunResponseOutputDataType0
|
|
116
|
+
from ..models.run_response_run_message_history_type_0_item import RunResponseRunMessageHistoryType0Item
|
|
117
|
+
|
|
118
|
+
d = dict(src_dict)
|
|
119
|
+
workflow_id = UUID(d.pop("workflow_id"))
|
|
120
|
+
|
|
121
|
+
machine_id = UUID(d.pop("machine_id"))
|
|
122
|
+
|
|
123
|
+
id = UUID(d.pop("id"))
|
|
124
|
+
|
|
125
|
+
user_id = UUID(d.pop("user_id"))
|
|
126
|
+
|
|
127
|
+
status = RunStatus(d.pop("status"))
|
|
128
|
+
|
|
129
|
+
def _parse_error(data: object) -> Union[None, list[str]]:
|
|
130
|
+
if data is None:
|
|
131
|
+
return data
|
|
132
|
+
try:
|
|
133
|
+
if not isinstance(data, list):
|
|
134
|
+
raise TypeError()
|
|
135
|
+
error_type_0 = cast(list[str], data)
|
|
136
|
+
|
|
137
|
+
return error_type_0
|
|
138
|
+
except: # noqa: E722
|
|
139
|
+
pass
|
|
140
|
+
return cast(Union[None, list[str]], data)
|
|
141
|
+
|
|
142
|
+
error = _parse_error(d.pop("error"))
|
|
143
|
+
|
|
144
|
+
def _parse_output_data(data: object) -> Union["RunResponseOutputDataType0", None]:
|
|
145
|
+
if data is None:
|
|
146
|
+
return data
|
|
147
|
+
try:
|
|
148
|
+
if not isinstance(data, dict):
|
|
149
|
+
raise TypeError()
|
|
150
|
+
output_data_type_0 = RunResponseOutputDataType0.from_dict(data)
|
|
151
|
+
|
|
152
|
+
return output_data_type_0
|
|
153
|
+
except: # noqa: E722
|
|
154
|
+
pass
|
|
155
|
+
return cast(Union["RunResponseOutputDataType0", None], data)
|
|
156
|
+
|
|
157
|
+
output_data = _parse_output_data(d.pop("output_data"))
|
|
158
|
+
|
|
159
|
+
def _parse_output_attachment_ids(data: object) -> Union[None, list[str]]:
|
|
160
|
+
if data is None:
|
|
161
|
+
return data
|
|
162
|
+
try:
|
|
163
|
+
if not isinstance(data, list):
|
|
164
|
+
raise TypeError()
|
|
165
|
+
output_attachment_ids_type_0 = cast(list[str], data)
|
|
166
|
+
|
|
167
|
+
return output_attachment_ids_type_0
|
|
168
|
+
except: # noqa: E722
|
|
169
|
+
pass
|
|
170
|
+
return cast(Union[None, list[str]], data)
|
|
171
|
+
|
|
172
|
+
output_attachment_ids = _parse_output_attachment_ids(d.pop("output_attachment_ids"))
|
|
173
|
+
|
|
174
|
+
def _parse_run_message_history(data: object) -> Union[None, list["RunResponseRunMessageHistoryType0Item"]]:
|
|
175
|
+
if data is None:
|
|
176
|
+
return data
|
|
177
|
+
try:
|
|
178
|
+
if not isinstance(data, list):
|
|
179
|
+
raise TypeError()
|
|
180
|
+
run_message_history_type_0 = []
|
|
181
|
+
_run_message_history_type_0 = data
|
|
182
|
+
for run_message_history_type_0_item_data in _run_message_history_type_0:
|
|
183
|
+
run_message_history_type_0_item = RunResponseRunMessageHistoryType0Item.from_dict(
|
|
184
|
+
run_message_history_type_0_item_data
|
|
185
|
+
)
|
|
186
|
+
|
|
187
|
+
run_message_history_type_0.append(run_message_history_type_0_item)
|
|
188
|
+
|
|
189
|
+
return run_message_history_type_0
|
|
190
|
+
except: # noqa: E722
|
|
191
|
+
pass
|
|
192
|
+
return cast(Union[None, list["RunResponseRunMessageHistoryType0Item"]], data)
|
|
193
|
+
|
|
194
|
+
run_message_history = _parse_run_message_history(d.pop("run_message_history"))
|
|
195
|
+
|
|
196
|
+
created_at = isoparse(d.pop("created_at"))
|
|
197
|
+
|
|
198
|
+
run_response = cls(
|
|
199
|
+
workflow_id=workflow_id,
|
|
200
|
+
machine_id=machine_id,
|
|
201
|
+
id=id,
|
|
202
|
+
user_id=user_id,
|
|
203
|
+
status=status,
|
|
204
|
+
error=error,
|
|
205
|
+
output_data=output_data,
|
|
206
|
+
output_attachment_ids=output_attachment_ids,
|
|
207
|
+
run_message_history=run_message_history,
|
|
208
|
+
created_at=created_at,
|
|
209
|
+
)
|
|
210
|
+
|
|
211
|
+
run_response.additional_properties = d
|
|
212
|
+
return run_response
|
|
213
|
+
|
|
214
|
+
@property
|
|
215
|
+
def additional_keys(self) -> list[str]:
|
|
216
|
+
return list(self.additional_properties.keys())
|
|
217
|
+
|
|
218
|
+
def __getitem__(self, key: str) -> Any:
|
|
219
|
+
return self.additional_properties[key]
|
|
220
|
+
|
|
221
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
222
|
+
self.additional_properties[key] = value
|
|
223
|
+
|
|
224
|
+
def __delitem__(self, key: str) -> None:
|
|
225
|
+
del self.additional_properties[key]
|
|
226
|
+
|
|
227
|
+
def __contains__(self, key: str) -> bool:
|
|
228
|
+
return key in self.additional_properties
|
|
@@ -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="RunResponseOutputDataType0")
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
@_attrs_define
|
|
11
|
+
class RunResponseOutputDataType0:
|
|
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
|
+
run_response_output_data_type_0 = cls()
|
|
26
|
+
|
|
27
|
+
run_response_output_data_type_0.additional_properties = d
|
|
28
|
+
return run_response_output_data_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
|
|
@@ -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="RunResponseRunMessageHistoryType0Item")
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
@_attrs_define
|
|
11
|
+
class RunResponseRunMessageHistoryType0Item:
|
|
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
|
+
run_response_run_message_history_type_0_item = cls()
|
|
26
|
+
|
|
27
|
+
run_response_run_message_history_type_0_item.additional_properties = d
|
|
28
|
+
return run_response_run_message_history_type_0_item
|
|
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
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
from enum import Enum
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
class
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
RUNNING = "running"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
from enum import Enum
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class RunStatus(str, Enum):
|
|
5
|
+
CANCELLED = "cancelled"
|
|
6
|
+
ERROR = "error"
|
|
7
|
+
RUNNING = "running"
|
|
8
|
+
SCHEDULING = "scheduling"
|
|
9
|
+
SUCCESS = "success"
|
|
10
|
+
|
|
11
|
+
def __str__(self) -> str:
|
|
12
|
+
return str(self.value)
|