cyberdesk 2.0.0__tar.gz → 2.1.0__tar.gz
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-2.0.0 → cyberdesk-2.1.0}/PKG-INFO +1 -1
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/cyberdesk/__init__.py +1 -1
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/cyberdesk/client.py +358 -6
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/cyberdesk.egg-info/PKG-INFO +1 -1
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/cyberdesk.egg-info/SOURCES.txt +17 -0
- cyberdesk-2.1.0/openapi_client/cyberdesk_cloud_client/api/machines/get_machine_pools_v1_machines_machine_id_pools_get.py +169 -0
- cyberdesk-2.1.0/openapi_client/cyberdesk_cloud_client/api/machines/update_machine_pools_v1_machines_machine_id_pools_put.py +190 -0
- cyberdesk-2.1.0/openapi_client/cyberdesk_cloud_client/api/pools/add_machines_to_pool_v1_pools_pool_id_machines_post.py +186 -0
- cyberdesk-2.1.0/openapi_client/cyberdesk_cloud_client/api/pools/create_pool_v1_pools_post.py +172 -0
- cyberdesk-2.1.0/openapi_client/cyberdesk_cloud_client/api/pools/delete_pool_v1_pools_pool_id_delete.py +162 -0
- cyberdesk-2.1.0/openapi_client/cyberdesk_cloud_client/api/pools/get_pool_v1_pools_pool_id_get.py +185 -0
- cyberdesk-2.1.0/openapi_client/cyberdesk_cloud_client/api/pools/list_pools_v1_pools_get.py +186 -0
- cyberdesk-2.1.0/openapi_client/cyberdesk_cloud_client/api/pools/remove_machines_from_pool_v1_pools_pool_id_machines_delete.py +184 -0
- cyberdesk-2.1.0/openapi_client/cyberdesk_cloud_client/api/pools/update_pool_v1_pools_pool_id_patch.py +186 -0
- cyberdesk-2.1.0/openapi_client/cyberdesk_cloud_client/api/workflows/__init__.py +1 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/models/__init__.py +14 -0
- cyberdesk-2.1.0/openapi_client/cyberdesk_cloud_client/models/machine_pool_assignment.py +69 -0
- cyberdesk-2.1.0/openapi_client/cyberdesk_cloud_client/models/machine_pool_update.py +69 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/models/machine_response.py +46 -1
- cyberdesk-2.1.0/openapi_client/cyberdesk_cloud_client/models/paginated_response_pool_response.py +97 -0
- cyberdesk-2.1.0/openapi_client/cyberdesk_cloud_client/models/pool_create.py +82 -0
- cyberdesk-2.1.0/openapi_client/cyberdesk_cloud_client/models/pool_response.py +137 -0
- cyberdesk-2.1.0/openapi_client/cyberdesk_cloud_client/models/pool_update.py +92 -0
- cyberdesk-2.1.0/openapi_client/cyberdesk_cloud_client/models/pool_with_machines.py +162 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/models/run_bulk_create.py +40 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/models/run_create.py +40 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/models/run_response.py +39 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/pyproject.toml +1 -1
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/LICENSE +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/README.md +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/cyberdesk.egg-info/dependency_links.txt +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/cyberdesk.egg-info/requires.txt +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/cyberdesk.egg-info/top_level.txt +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/__init__.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/api/__init__.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/api/computer/__init__.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/api/computer/fs_list_v1_computer_machine_id_fs_list_get.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/api/computer/fs_read_v1_computer_machine_id_fs_read_get.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/api/computer/fs_write_v1_computer_machine_id_fs_write_post.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/api/computer/get_display_dimensions_v1_computer_machine_id_display_dimensions_get.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/api/computer/get_mouse_position_v1_computer_machine_id_input_mouse_position_get.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/api/computer/get_screenshot_v1_computer_machine_id_display_screenshot_get.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/api/computer/keyboard_key_v1_computer_machine_id_input_keyboard_key_post.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/api/computer/keyboard_type_v1_computer_machine_id_input_keyboard_type_post.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/api/computer/mouse_click_v1_computer_machine_id_input_mouse_click_post.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/api/computer/mouse_move_v1_computer_machine_id_input_mouse_move_post.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/api/computer/powershell_exec_v1_computer_machine_id_shell_powershell_exec_post.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/api/computer/powershell_session_v1_computer_machine_id_shell_powershell_session_post.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/api/connections/__init__.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/api/connections/create_connection_v1_connections_post.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/api/connections/delete_connection_v1_connections_connection_id_delete.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/api/connections/get_connection_v1_connections_connection_id_get.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/api/connections/list_connections_v1_connections_get.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/api/connections/update_connection_v1_connections_connection_id_patch.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/api/default/__init__.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/api/default/root_get.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/api/health/__init__.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/api/health/database_health_check_v1_health_db_get.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/api/health/health_check_v1_health_get.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/api/machines/__init__.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/api/machines/create_machine_v1_machines_post.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/api/machines/delete_machine_v1_machines_machine_id_delete.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/api/machines/get_machine_v1_machines_machine_id_get.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/api/machines/list_machines_v1_machines_get.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/api/machines/update_machine_v1_machines_machine_id_patch.py +0 -0
- {cyberdesk-2.0.0/openapi_client/cyberdesk_cloud_client/api/request_logs → cyberdesk-2.1.0/openapi_client/cyberdesk_cloud_client/api/pools}/__init__.py +0 -0
- {cyberdesk-2.0.0/openapi_client/cyberdesk_cloud_client/api/run_attachments → cyberdesk-2.1.0/openapi_client/cyberdesk_cloud_client/api/request_logs}/__init__.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/api/request_logs/create_request_log_v1_request_logs_post.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/api/request_logs/delete_request_log_v1_request_logs_log_id_delete.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/api/request_logs/get_request_log_v1_request_logs_log_id_get.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/api/request_logs/list_request_logs_v1_request_logs_get.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/api/request_logs/update_request_log_v1_request_logs_log_id_patch.py +0 -0
- {cyberdesk-2.0.0/openapi_client/cyberdesk_cloud_client/api/runs → cyberdesk-2.1.0/openapi_client/cyberdesk_cloud_client/api/run_attachments}/__init__.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/api/run_attachments/create_run_attachment_v1_run_attachments_post.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/api/run_attachments/delete_run_attachment_v1_run_attachments_attachment_id_delete.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/api/run_attachments/download_run_attachment_v1_run_attachments_attachment_id_download_get.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/api/run_attachments/get_run_attachment_download_url_v1_run_attachments_attachment_id_download_url_get.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/api/run_attachments/get_run_attachment_v1_run_attachments_attachment_id_get.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/api/run_attachments/list_run_attachments_v1_run_attachments_get.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/api/run_attachments/update_run_attachment_v1_run_attachments_attachment_id_put.py +0 -0
- {cyberdesk-2.0.0/openapi_client/cyberdesk_cloud_client/api/test → cyberdesk-2.1.0/openapi_client/cyberdesk_cloud_client/api/runs}/__init__.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/api/runs/bulk_create_runs_v1_runs_bulk_post.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/api/runs/create_run_v1_runs_post.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/api/runs/delete_run_v1_runs_run_id_delete.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/api/runs/get_run_v1_runs_run_id_get.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/api/runs/list_runs_v1_runs_get.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/api/runs/update_run_v1_runs_run_id_patch.py +0 -0
- {cyberdesk-2.0.0/openapi_client/cyberdesk_cloud_client/api/trajectories → cyberdesk-2.1.0/openapi_client/cyberdesk_cloud_client/api/test}/__init__.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/api/test/dummy_test_endpoint_v1_test_post.py +0 -0
- {cyberdesk-2.0.0/openapi_client/cyberdesk_cloud_client/api/workflows → cyberdesk-2.1.0/openapi_client/cyberdesk_cloud_client/api/trajectories}/__init__.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/api/trajectories/create_trajectory_v1_trajectories_post.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/api/trajectories/delete_trajectory_v1_trajectories_trajectory_id_delete.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/api/trajectories/get_latest_trajectory_for_workflow_v1_workflows_workflow_id_latest_trajectory_get.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/api/trajectories/get_trajectory_v1_trajectories_trajectory_id_get.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/api/trajectories/list_trajectories_v1_trajectories_get.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/api/trajectories/update_trajectory_v1_trajectories_trajectory_id_patch.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/api/workflows/create_workflow_v1_workflows_post.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/api/workflows/delete_workflow_v1_workflows_workflow_id_delete.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/api/workflows/get_workflow_v1_workflows_workflow_id_get.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/api/workflows/get_workflow_versions_v1_workflows_workflow_id_versions_get.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/api/workflows/list_workflows_v1_workflows_get.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/api/workflows/update_workflow_v1_workflows_workflow_id_patch.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/client.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/errors.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/models/attachment_type.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/models/connection_create.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/models/connection_response.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/models/connection_status.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/models/database_health_check_v1_health_db_get_response_database_health_check_v1_health_db_get.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/models/display_dimensions.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/models/dummy_test_endpoint_v1_test_post_response_dummy_test_endpoint_v1_test_post.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/models/file_input.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/models/file_write_request.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/models/fs_list_v1_computer_machine_id_fs_list_get_response_fs_list_v1_computer_machine_id_fs_list_get.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/models/fs_read_v1_computer_machine_id_fs_read_get_response_fs_read_v1_computer_machine_id_fs_read_get.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/models/fs_write_v1_computer_machine_id_fs_write_post_response_fs_write_v1_computer_machine_id_fs_write_post.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/models/get_workflow_versions_v1_workflows_workflow_id_versions_get_response_200_item.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/models/health_check_v1_health_get_response_health_check_v1_health_get.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/models/http_validation_error.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/models/keyboard_key_request.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/models/keyboard_type_request.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/models/machine_create.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/models/machine_status.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/models/machine_update.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/models/mouse_click_request.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/models/mouse_move_request.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/models/mouse_position.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/models/paginated_response.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/models/paginated_response_connection_response.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/models/paginated_response_machine_response.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/models/paginated_response_run_attachment_response.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/models/paginated_response_run_response.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/models/paginated_response_trajectory_response.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/models/paginated_response_workflow_response.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/models/power_shell_exec_request.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/models/power_shell_session_request.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/models/powershell_exec_v1_computer_machine_id_shell_powershell_exec_post_response_powershell_exec_v1_computer_machine_id_shell_powershell_exec_post.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/models/powershell_session_v1_computer_machine_id_shell_powershell_session_post_response_powershell_session_v1_computer_machine_id_shell_powershell_session_post.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/models/request_log_create.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/models/request_log_response.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/models/request_log_update.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/models/run_attachment_create.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/models/run_attachment_download_url_response.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/models/run_attachment_response.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/models/run_attachment_update.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/models/run_bulk_create_input_values_type_0.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/models/run_bulk_create_response.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/models/run_create_input_values_type_0.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/models/run_response_input_values_type_0.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/models/run_response_output_data_type_0.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/models/run_response_run_message_history_type_0_item.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/models/run_status.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/models/run_update.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/models/run_update_input_values_type_0.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/models/run_update_output_data_type_0.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/models/run_update_run_message_history_type_0_item.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/models/trajectory_create.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/models/trajectory_create_dimensions.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/models/trajectory_create_original_input_values_type_0.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/models/trajectory_create_trajectory_data_item.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/models/trajectory_response.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/models/trajectory_response_dimensions.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/models/trajectory_response_original_input_values_type_0.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/models/trajectory_response_trajectory_data_item.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/models/trajectory_update.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/models/trajectory_update_trajectory_data_type_0_item.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/models/validation_error.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/models/workflow_create.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/models/workflow_response.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/models/workflow_response_old_versions_type_0_item.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/models/workflow_update.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/py.typed +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/openapi_client/cyberdesk_cloud_client/types.py +0 -0
- {cyberdesk-2.0.0 → cyberdesk-2.1.0}/setup.cfg +0 -0
|
@@ -14,6 +14,17 @@ from openapi_client.cyberdesk_cloud_client.api.machines import (
|
|
|
14
14
|
get_machine_v1_machines_machine_id_get,
|
|
15
15
|
update_machine_v1_machines_machine_id_patch,
|
|
16
16
|
delete_machine_v1_machines_machine_id_delete,
|
|
17
|
+
get_machine_pools_v1_machines_machine_id_pools_get,
|
|
18
|
+
update_machine_pools_v1_machines_machine_id_pools_put,
|
|
19
|
+
)
|
|
20
|
+
from openapi_client.cyberdesk_cloud_client.api.pools import (
|
|
21
|
+
list_pools_v1_pools_get,
|
|
22
|
+
create_pool_v1_pools_post,
|
|
23
|
+
get_pool_v1_pools_pool_id_get,
|
|
24
|
+
update_pool_v1_pools_pool_id_patch,
|
|
25
|
+
delete_pool_v1_pools_pool_id_delete,
|
|
26
|
+
add_machines_to_pool_v1_pools_pool_id_machines_post,
|
|
27
|
+
remove_machines_from_pool_v1_pools_pool_id_machines_delete,
|
|
17
28
|
)
|
|
18
29
|
from openapi_client.cyberdesk_cloud_client.api.workflows import (
|
|
19
30
|
list_workflows_v1_workflows_get,
|
|
@@ -58,6 +69,12 @@ from openapi_client.cyberdesk_cloud_client.models import (
|
|
|
58
69
|
MachineUpdate,
|
|
59
70
|
MachineResponse,
|
|
60
71
|
MachineStatus,
|
|
72
|
+
MachinePoolUpdate,
|
|
73
|
+
PoolCreate,
|
|
74
|
+
PoolUpdate,
|
|
75
|
+
PoolResponse,
|
|
76
|
+
PoolWithMachines,
|
|
77
|
+
MachinePoolAssignment,
|
|
61
78
|
WorkflowCreate,
|
|
62
79
|
WorkflowUpdate,
|
|
63
80
|
WorkflowResponse,
|
|
@@ -80,6 +97,7 @@ from openapi_client.cyberdesk_cloud_client.models import (
|
|
|
80
97
|
RunAttachmentDownloadUrlResponse,
|
|
81
98
|
AttachmentType,
|
|
82
99
|
PaginatedResponseMachineResponse,
|
|
100
|
+
PaginatedResponsePoolResponse,
|
|
83
101
|
PaginatedResponseWorkflowResponse,
|
|
84
102
|
PaginatedResponseRunResponse,
|
|
85
103
|
PaginatedResponseConnectionResponse,
|
|
@@ -94,6 +112,12 @@ __all__ = [
|
|
|
94
112
|
"MachineUpdate",
|
|
95
113
|
"MachineResponse",
|
|
96
114
|
"MachineStatus",
|
|
115
|
+
"MachinePoolUpdate",
|
|
116
|
+
"PoolCreate",
|
|
117
|
+
"PoolUpdate",
|
|
118
|
+
"PoolResponse",
|
|
119
|
+
"PoolWithMachines",
|
|
120
|
+
"MachinePoolAssignment",
|
|
97
121
|
"WorkflowCreate",
|
|
98
122
|
"WorkflowUpdate",
|
|
99
123
|
"WorkflowResponse",
|
|
@@ -270,6 +294,299 @@ class MachinesAPI:
|
|
|
270
294
|
return ApiResponse(data={"success": True})
|
|
271
295
|
except Exception as e:
|
|
272
296
|
return ApiResponse(error=e)
|
|
297
|
+
|
|
298
|
+
async def get_pools(self, machine_id: str) -> ApiResponse:
|
|
299
|
+
"""Get all pools that a machine belongs to."""
|
|
300
|
+
try:
|
|
301
|
+
response = await get_machine_pools_v1_machines_machine_id_pools_get.asyncio(
|
|
302
|
+
client=self.client,
|
|
303
|
+
machine_id=_to_uuid(machine_id)
|
|
304
|
+
)
|
|
305
|
+
return ApiResponse(data=response)
|
|
306
|
+
except Exception as e:
|
|
307
|
+
return ApiResponse(error=e)
|
|
308
|
+
|
|
309
|
+
def get_pools_sync(self, machine_id: str) -> ApiResponse:
|
|
310
|
+
"""Get all pools that a machine belongs to (synchronous)."""
|
|
311
|
+
try:
|
|
312
|
+
response = get_machine_pools_v1_machines_machine_id_pools_get.sync(
|
|
313
|
+
client=self.client,
|
|
314
|
+
machine_id=_to_uuid(machine_id)
|
|
315
|
+
)
|
|
316
|
+
return ApiResponse(data=response)
|
|
317
|
+
except Exception as e:
|
|
318
|
+
return ApiResponse(error=e)
|
|
319
|
+
|
|
320
|
+
async def update_pools(self, machine_id: str, data: MachinePoolUpdate) -> ApiResponse:
|
|
321
|
+
"""Update a machine's pool assignments.
|
|
322
|
+
|
|
323
|
+
This replaces all existing pool assignments with the new ones.
|
|
324
|
+
|
|
325
|
+
Args:
|
|
326
|
+
machine_id: The machine ID
|
|
327
|
+
data: MachinePoolUpdate with pool_ids list
|
|
328
|
+
|
|
329
|
+
Returns:
|
|
330
|
+
ApiResponse with updated MachineResponse
|
|
331
|
+
"""
|
|
332
|
+
try:
|
|
333
|
+
response = await update_machine_pools_v1_machines_machine_id_pools_put.asyncio(
|
|
334
|
+
client=self.client,
|
|
335
|
+
machine_id=_to_uuid(machine_id),
|
|
336
|
+
body=data
|
|
337
|
+
)
|
|
338
|
+
return ApiResponse(data=response)
|
|
339
|
+
except Exception as e:
|
|
340
|
+
return ApiResponse(error=e)
|
|
341
|
+
|
|
342
|
+
def update_pools_sync(self, machine_id: str, data: MachinePoolUpdate) -> ApiResponse:
|
|
343
|
+
"""Update a machine's pool assignments (synchronous).
|
|
344
|
+
|
|
345
|
+
This replaces all existing pool assignments with the new ones.
|
|
346
|
+
|
|
347
|
+
Args:
|
|
348
|
+
machine_id: The machine ID
|
|
349
|
+
data: MachinePoolUpdate with pool_ids list
|
|
350
|
+
|
|
351
|
+
Returns:
|
|
352
|
+
ApiResponse with updated MachineResponse
|
|
353
|
+
"""
|
|
354
|
+
try:
|
|
355
|
+
response = update_machine_pools_v1_machines_machine_id_pools_put.sync(
|
|
356
|
+
client=self.client,
|
|
357
|
+
machine_id=_to_uuid(machine_id),
|
|
358
|
+
body=data
|
|
359
|
+
)
|
|
360
|
+
return ApiResponse(data=response)
|
|
361
|
+
except Exception as e:
|
|
362
|
+
return ApiResponse(error=e)
|
|
363
|
+
|
|
364
|
+
|
|
365
|
+
class PoolsAPI:
|
|
366
|
+
"""Pools API endpoints."""
|
|
367
|
+
|
|
368
|
+
def __init__(self, client: AuthenticatedClient):
|
|
369
|
+
self.client = client
|
|
370
|
+
|
|
371
|
+
async def list(
|
|
372
|
+
self,
|
|
373
|
+
skip: Optional[int] = None,
|
|
374
|
+
limit: Optional[int] = None
|
|
375
|
+
) -> ApiResponse:
|
|
376
|
+
"""List pools for the organization."""
|
|
377
|
+
try:
|
|
378
|
+
response = await list_pools_v1_pools_get.asyncio(
|
|
379
|
+
client=self.client,
|
|
380
|
+
skip=_to_unset_or_value(skip),
|
|
381
|
+
limit=_to_unset_or_value(limit)
|
|
382
|
+
)
|
|
383
|
+
return ApiResponse(data=response)
|
|
384
|
+
except Exception as e:
|
|
385
|
+
return ApiResponse(error=e)
|
|
386
|
+
|
|
387
|
+
def list_sync(
|
|
388
|
+
self,
|
|
389
|
+
skip: Optional[int] = None,
|
|
390
|
+
limit: Optional[int] = None
|
|
391
|
+
) -> ApiResponse:
|
|
392
|
+
"""List pools for the organization (synchronous)."""
|
|
393
|
+
try:
|
|
394
|
+
response = list_pools_v1_pools_get.sync(
|
|
395
|
+
client=self.client,
|
|
396
|
+
skip=_to_unset_or_value(skip),
|
|
397
|
+
limit=_to_unset_or_value(limit)
|
|
398
|
+
)
|
|
399
|
+
return ApiResponse(data=response)
|
|
400
|
+
except Exception as e:
|
|
401
|
+
return ApiResponse(error=e)
|
|
402
|
+
|
|
403
|
+
async def create(self, data: PoolCreate) -> ApiResponse:
|
|
404
|
+
"""Create a new pool."""
|
|
405
|
+
try:
|
|
406
|
+
response = await create_pool_v1_pools_post.asyncio(
|
|
407
|
+
client=self.client,
|
|
408
|
+
body=data
|
|
409
|
+
)
|
|
410
|
+
return ApiResponse(data=response)
|
|
411
|
+
except Exception as e:
|
|
412
|
+
return ApiResponse(error=e)
|
|
413
|
+
|
|
414
|
+
def create_sync(self, data: PoolCreate) -> ApiResponse:
|
|
415
|
+
"""Create a new pool (synchronous)."""
|
|
416
|
+
try:
|
|
417
|
+
response = create_pool_v1_pools_post.sync(
|
|
418
|
+
client=self.client,
|
|
419
|
+
body=data
|
|
420
|
+
)
|
|
421
|
+
return ApiResponse(data=response)
|
|
422
|
+
except Exception as e:
|
|
423
|
+
return ApiResponse(error=e)
|
|
424
|
+
|
|
425
|
+
async def get(self, pool_id: str, include_machines: bool = False) -> ApiResponse:
|
|
426
|
+
"""Get a specific pool by ID.
|
|
427
|
+
|
|
428
|
+
Args:
|
|
429
|
+
pool_id: The pool ID
|
|
430
|
+
include_machines: Whether to include full machine details
|
|
431
|
+
|
|
432
|
+
Returns:
|
|
433
|
+
ApiResponse with PoolResponse or PoolWithMachines
|
|
434
|
+
"""
|
|
435
|
+
try:
|
|
436
|
+
response = await get_pool_v1_pools_pool_id_get.asyncio(
|
|
437
|
+
client=self.client,
|
|
438
|
+
pool_id=_to_uuid(pool_id),
|
|
439
|
+
include_machines=include_machines
|
|
440
|
+
)
|
|
441
|
+
return ApiResponse(data=response)
|
|
442
|
+
except Exception as e:
|
|
443
|
+
return ApiResponse(error=e)
|
|
444
|
+
|
|
445
|
+
def get_sync(self, pool_id: str, include_machines: bool = False) -> ApiResponse:
|
|
446
|
+
"""Get a specific pool by ID (synchronous).
|
|
447
|
+
|
|
448
|
+
Args:
|
|
449
|
+
pool_id: The pool ID
|
|
450
|
+
include_machines: Whether to include full machine details
|
|
451
|
+
|
|
452
|
+
Returns:
|
|
453
|
+
ApiResponse with PoolResponse or PoolWithMachines
|
|
454
|
+
"""
|
|
455
|
+
try:
|
|
456
|
+
response = get_pool_v1_pools_pool_id_get.sync(
|
|
457
|
+
client=self.client,
|
|
458
|
+
pool_id=_to_uuid(pool_id),
|
|
459
|
+
include_machines=include_machines
|
|
460
|
+
)
|
|
461
|
+
return ApiResponse(data=response)
|
|
462
|
+
except Exception as e:
|
|
463
|
+
return ApiResponse(error=e)
|
|
464
|
+
|
|
465
|
+
async def update(self, pool_id: str, data: PoolUpdate) -> ApiResponse:
|
|
466
|
+
"""Update a pool's details."""
|
|
467
|
+
try:
|
|
468
|
+
response = await update_pool_v1_pools_pool_id_patch.asyncio(
|
|
469
|
+
client=self.client,
|
|
470
|
+
pool_id=_to_uuid(pool_id),
|
|
471
|
+
body=data
|
|
472
|
+
)
|
|
473
|
+
return ApiResponse(data=response)
|
|
474
|
+
except Exception as e:
|
|
475
|
+
return ApiResponse(error=e)
|
|
476
|
+
|
|
477
|
+
def update_sync(self, pool_id: str, data: PoolUpdate) -> ApiResponse:
|
|
478
|
+
"""Update a pool's details (synchronous)."""
|
|
479
|
+
try:
|
|
480
|
+
response = update_pool_v1_pools_pool_id_patch.sync(
|
|
481
|
+
client=self.client,
|
|
482
|
+
pool_id=_to_uuid(pool_id),
|
|
483
|
+
body=data
|
|
484
|
+
)
|
|
485
|
+
return ApiResponse(data=response)
|
|
486
|
+
except Exception as e:
|
|
487
|
+
return ApiResponse(error=e)
|
|
488
|
+
|
|
489
|
+
async def delete(self, pool_id: str) -> ApiResponse:
|
|
490
|
+
"""Delete a pool. This will not delete the machines in the pool."""
|
|
491
|
+
try:
|
|
492
|
+
await delete_pool_v1_pools_pool_id_delete.asyncio(
|
|
493
|
+
client=self.client,
|
|
494
|
+
pool_id=_to_uuid(pool_id)
|
|
495
|
+
)
|
|
496
|
+
return ApiResponse(data={"success": True})
|
|
497
|
+
except Exception as e:
|
|
498
|
+
return ApiResponse(error=e)
|
|
499
|
+
|
|
500
|
+
def delete_sync(self, pool_id: str) -> ApiResponse:
|
|
501
|
+
"""Delete a pool. This will not delete the machines in the pool (synchronous)."""
|
|
502
|
+
try:
|
|
503
|
+
delete_pool_v1_pools_pool_id_delete.sync(
|
|
504
|
+
client=self.client,
|
|
505
|
+
pool_id=_to_uuid(pool_id)
|
|
506
|
+
)
|
|
507
|
+
return ApiResponse(data={"success": True})
|
|
508
|
+
except Exception as e:
|
|
509
|
+
return ApiResponse(error=e)
|
|
510
|
+
|
|
511
|
+
async def add_machines(self, pool_id: str, data: MachinePoolAssignment) -> ApiResponse:
|
|
512
|
+
"""Add machines to a pool.
|
|
513
|
+
|
|
514
|
+
Args:
|
|
515
|
+
pool_id: The pool ID
|
|
516
|
+
data: MachinePoolAssignment with machine_ids list
|
|
517
|
+
|
|
518
|
+
Returns:
|
|
519
|
+
ApiResponse with PoolWithMachines
|
|
520
|
+
"""
|
|
521
|
+
try:
|
|
522
|
+
response = await add_machines_to_pool_v1_pools_pool_id_machines_post.asyncio(
|
|
523
|
+
client=self.client,
|
|
524
|
+
pool_id=_to_uuid(pool_id),
|
|
525
|
+
body=data
|
|
526
|
+
)
|
|
527
|
+
return ApiResponse(data=response)
|
|
528
|
+
except Exception as e:
|
|
529
|
+
return ApiResponse(error=e)
|
|
530
|
+
|
|
531
|
+
def add_machines_sync(self, pool_id: str, data: MachinePoolAssignment) -> ApiResponse:
|
|
532
|
+
"""Add machines to a pool (synchronous).
|
|
533
|
+
|
|
534
|
+
Args:
|
|
535
|
+
pool_id: The pool ID
|
|
536
|
+
data: MachinePoolAssignment with machine_ids list
|
|
537
|
+
|
|
538
|
+
Returns:
|
|
539
|
+
ApiResponse with PoolWithMachines
|
|
540
|
+
"""
|
|
541
|
+
try:
|
|
542
|
+
response = add_machines_to_pool_v1_pools_pool_id_machines_post.sync(
|
|
543
|
+
client=self.client,
|
|
544
|
+
pool_id=_to_uuid(pool_id),
|
|
545
|
+
body=data
|
|
546
|
+
)
|
|
547
|
+
return ApiResponse(data=response)
|
|
548
|
+
except Exception as e:
|
|
549
|
+
return ApiResponse(error=e)
|
|
550
|
+
|
|
551
|
+
async def remove_machines(self, pool_id: str, data: MachinePoolAssignment) -> ApiResponse:
|
|
552
|
+
"""Remove machines from a pool.
|
|
553
|
+
|
|
554
|
+
Args:
|
|
555
|
+
pool_id: The pool ID
|
|
556
|
+
data: MachinePoolAssignment with machine_ids list
|
|
557
|
+
|
|
558
|
+
Returns:
|
|
559
|
+
ApiResponse with success status
|
|
560
|
+
"""
|
|
561
|
+
try:
|
|
562
|
+
await remove_machines_from_pool_v1_pools_pool_id_machines_delete.asyncio(
|
|
563
|
+
client=self.client,
|
|
564
|
+
pool_id=_to_uuid(pool_id),
|
|
565
|
+
body=data
|
|
566
|
+
)
|
|
567
|
+
return ApiResponse(data={"success": True})
|
|
568
|
+
except Exception as e:
|
|
569
|
+
return ApiResponse(error=e)
|
|
570
|
+
|
|
571
|
+
def remove_machines_sync(self, pool_id: str, data: MachinePoolAssignment) -> ApiResponse:
|
|
572
|
+
"""Remove machines from a pool (synchronous).
|
|
573
|
+
|
|
574
|
+
Args:
|
|
575
|
+
pool_id: The pool ID
|
|
576
|
+
data: MachinePoolAssignment with machine_ids list
|
|
577
|
+
|
|
578
|
+
Returns:
|
|
579
|
+
ApiResponse with success status
|
|
580
|
+
"""
|
|
581
|
+
try:
|
|
582
|
+
remove_machines_from_pool_v1_pools_pool_id_machines_delete.sync(
|
|
583
|
+
client=self.client,
|
|
584
|
+
pool_id=_to_uuid(pool_id),
|
|
585
|
+
body=data
|
|
586
|
+
)
|
|
587
|
+
return ApiResponse(data={"success": True})
|
|
588
|
+
except Exception as e:
|
|
589
|
+
return ApiResponse(error=e)
|
|
273
590
|
|
|
274
591
|
|
|
275
592
|
class WorkflowsAPI:
|
|
@@ -444,7 +761,19 @@ class RunsAPI:
|
|
|
444
761
|
return ApiResponse(error=e)
|
|
445
762
|
|
|
446
763
|
async def create(self, data: RunCreate) -> ApiResponse:
|
|
447
|
-
"""Create a new run.
|
|
764
|
+
"""Create a new run.
|
|
765
|
+
|
|
766
|
+
Args:
|
|
767
|
+
data: RunCreate object with:
|
|
768
|
+
- workflow_id: The workflow to run
|
|
769
|
+
- machine_id: Optional specific machine ID
|
|
770
|
+
- pool_ids: Optional list of pool IDs (machine must be in ALL specified pools)
|
|
771
|
+
- input_values: Optional input values for workflow variables
|
|
772
|
+
- file_inputs: Optional files to upload to the machine
|
|
773
|
+
|
|
774
|
+
Returns:
|
|
775
|
+
ApiResponse with RunResponse
|
|
776
|
+
"""
|
|
448
777
|
try:
|
|
449
778
|
response = await create_run_v1_runs_post.asyncio(
|
|
450
779
|
client=self.client,
|
|
@@ -455,7 +784,19 @@ class RunsAPI:
|
|
|
455
784
|
return ApiResponse(error=e)
|
|
456
785
|
|
|
457
786
|
def create_sync(self, data: RunCreate) -> ApiResponse:
|
|
458
|
-
"""Create a new run (synchronous).
|
|
787
|
+
"""Create a new run (synchronous).
|
|
788
|
+
|
|
789
|
+
Args:
|
|
790
|
+
data: RunCreate object with:
|
|
791
|
+
- workflow_id: The workflow to run
|
|
792
|
+
- machine_id: Optional specific machine ID
|
|
793
|
+
- pool_ids: Optional list of pool IDs (machine must be in ALL specified pools)
|
|
794
|
+
- input_values: Optional input values for workflow variables
|
|
795
|
+
- file_inputs: Optional files to upload to the machine
|
|
796
|
+
|
|
797
|
+
Returns:
|
|
798
|
+
ApiResponse with RunResponse
|
|
799
|
+
"""
|
|
459
800
|
try:
|
|
460
801
|
response = create_run_v1_runs_post.sync(
|
|
461
802
|
client=self.client,
|
|
@@ -542,8 +883,13 @@ class RunsAPI:
|
|
|
542
883
|
- Returns immediately with created run details
|
|
543
884
|
|
|
544
885
|
Args:
|
|
545
|
-
data: RunBulkCreate object containing
|
|
546
|
-
|
|
886
|
+
data: RunBulkCreate object containing:
|
|
887
|
+
- workflow_id: The workflow to run
|
|
888
|
+
- machine_id: Optional specific machine ID
|
|
889
|
+
- pool_ids: Optional list of pool IDs (machine must be in ALL specified pools)
|
|
890
|
+
- input_values: Optional input values for workflow variables
|
|
891
|
+
- file_inputs: Optional files to upload to the machine
|
|
892
|
+
- count: Number of runs to create (max 1000)
|
|
547
893
|
|
|
548
894
|
Returns:
|
|
549
895
|
ApiResponse with RunBulkCreateResponse containing:
|
|
@@ -569,8 +915,13 @@ class RunsAPI:
|
|
|
569
915
|
- Returns immediately with created run details
|
|
570
916
|
|
|
571
917
|
Args:
|
|
572
|
-
data: RunBulkCreate object containing
|
|
573
|
-
|
|
918
|
+
data: RunBulkCreate object containing:
|
|
919
|
+
- workflow_id: The workflow to run
|
|
920
|
+
- machine_id: Optional specific machine ID
|
|
921
|
+
- pool_ids: Optional list of pool IDs (machine must be in ALL specified pools)
|
|
922
|
+
- input_values: Optional input values for workflow variables
|
|
923
|
+
- file_inputs: Optional files to upload to the machine
|
|
924
|
+
- count: Number of runs to create (max 1000)
|
|
574
925
|
|
|
575
926
|
Returns:
|
|
576
927
|
ApiResponse with RunBulkCreateResponse containing:
|
|
@@ -1173,6 +1524,7 @@ class CyberdeskClient:
|
|
|
1173
1524
|
|
|
1174
1525
|
# Initialize API endpoints
|
|
1175
1526
|
self.machines = MachinesAPI(self._client)
|
|
1527
|
+
self.pools = PoolsAPI(self._client)
|
|
1176
1528
|
self.workflows = WorkflowsAPI(self._client)
|
|
1177
1529
|
self.runs = RunsAPI(self._client)
|
|
1178
1530
|
self.connections = ConnectionsAPI(self._client)
|
|
@@ -41,9 +41,19 @@ openapi_client/cyberdesk_cloud_client/api/health/health_check_v1_health_get.py
|
|
|
41
41
|
openapi_client/cyberdesk_cloud_client/api/machines/__init__.py
|
|
42
42
|
openapi_client/cyberdesk_cloud_client/api/machines/create_machine_v1_machines_post.py
|
|
43
43
|
openapi_client/cyberdesk_cloud_client/api/machines/delete_machine_v1_machines_machine_id_delete.py
|
|
44
|
+
openapi_client/cyberdesk_cloud_client/api/machines/get_machine_pools_v1_machines_machine_id_pools_get.py
|
|
44
45
|
openapi_client/cyberdesk_cloud_client/api/machines/get_machine_v1_machines_machine_id_get.py
|
|
45
46
|
openapi_client/cyberdesk_cloud_client/api/machines/list_machines_v1_machines_get.py
|
|
47
|
+
openapi_client/cyberdesk_cloud_client/api/machines/update_machine_pools_v1_machines_machine_id_pools_put.py
|
|
46
48
|
openapi_client/cyberdesk_cloud_client/api/machines/update_machine_v1_machines_machine_id_patch.py
|
|
49
|
+
openapi_client/cyberdesk_cloud_client/api/pools/__init__.py
|
|
50
|
+
openapi_client/cyberdesk_cloud_client/api/pools/add_machines_to_pool_v1_pools_pool_id_machines_post.py
|
|
51
|
+
openapi_client/cyberdesk_cloud_client/api/pools/create_pool_v1_pools_post.py
|
|
52
|
+
openapi_client/cyberdesk_cloud_client/api/pools/delete_pool_v1_pools_pool_id_delete.py
|
|
53
|
+
openapi_client/cyberdesk_cloud_client/api/pools/get_pool_v1_pools_pool_id_get.py
|
|
54
|
+
openapi_client/cyberdesk_cloud_client/api/pools/list_pools_v1_pools_get.py
|
|
55
|
+
openapi_client/cyberdesk_cloud_client/api/pools/remove_machines_from_pool_v1_pools_pool_id_machines_delete.py
|
|
56
|
+
openapi_client/cyberdesk_cloud_client/api/pools/update_pool_v1_pools_pool_id_patch.py
|
|
47
57
|
openapi_client/cyberdesk_cloud_client/api/request_logs/__init__.py
|
|
48
58
|
openapi_client/cyberdesk_cloud_client/api/request_logs/create_request_log_v1_request_logs_post.py
|
|
49
59
|
openapi_client/cyberdesk_cloud_client/api/request_logs/delete_request_log_v1_request_logs_log_id_delete.py
|
|
@@ -100,6 +110,8 @@ openapi_client/cyberdesk_cloud_client/models/http_validation_error.py
|
|
|
100
110
|
openapi_client/cyberdesk_cloud_client/models/keyboard_key_request.py
|
|
101
111
|
openapi_client/cyberdesk_cloud_client/models/keyboard_type_request.py
|
|
102
112
|
openapi_client/cyberdesk_cloud_client/models/machine_create.py
|
|
113
|
+
openapi_client/cyberdesk_cloud_client/models/machine_pool_assignment.py
|
|
114
|
+
openapi_client/cyberdesk_cloud_client/models/machine_pool_update.py
|
|
103
115
|
openapi_client/cyberdesk_cloud_client/models/machine_response.py
|
|
104
116
|
openapi_client/cyberdesk_cloud_client/models/machine_status.py
|
|
105
117
|
openapi_client/cyberdesk_cloud_client/models/machine_update.py
|
|
@@ -109,10 +121,15 @@ openapi_client/cyberdesk_cloud_client/models/mouse_position.py
|
|
|
109
121
|
openapi_client/cyberdesk_cloud_client/models/paginated_response.py
|
|
110
122
|
openapi_client/cyberdesk_cloud_client/models/paginated_response_connection_response.py
|
|
111
123
|
openapi_client/cyberdesk_cloud_client/models/paginated_response_machine_response.py
|
|
124
|
+
openapi_client/cyberdesk_cloud_client/models/paginated_response_pool_response.py
|
|
112
125
|
openapi_client/cyberdesk_cloud_client/models/paginated_response_run_attachment_response.py
|
|
113
126
|
openapi_client/cyberdesk_cloud_client/models/paginated_response_run_response.py
|
|
114
127
|
openapi_client/cyberdesk_cloud_client/models/paginated_response_trajectory_response.py
|
|
115
128
|
openapi_client/cyberdesk_cloud_client/models/paginated_response_workflow_response.py
|
|
129
|
+
openapi_client/cyberdesk_cloud_client/models/pool_create.py
|
|
130
|
+
openapi_client/cyberdesk_cloud_client/models/pool_response.py
|
|
131
|
+
openapi_client/cyberdesk_cloud_client/models/pool_update.py
|
|
132
|
+
openapi_client/cyberdesk_cloud_client/models/pool_with_machines.py
|
|
116
133
|
openapi_client/cyberdesk_cloud_client/models/power_shell_exec_request.py
|
|
117
134
|
openapi_client/cyberdesk_cloud_client/models/power_shell_session_request.py
|
|
118
135
|
openapi_client/cyberdesk_cloud_client/models/powershell_exec_v1_computer_machine_id_shell_powershell_exec_post_response_powershell_exec_v1_computer_machine_id_shell_powershell_exec_post.py
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
from http import HTTPStatus
|
|
2
|
+
from typing import Any, Optional, Union
|
|
3
|
+
from uuid import UUID
|
|
4
|
+
|
|
5
|
+
import httpx
|
|
6
|
+
|
|
7
|
+
from ... import errors
|
|
8
|
+
from ...client import AuthenticatedClient, Client
|
|
9
|
+
from ...models.http_validation_error import HTTPValidationError
|
|
10
|
+
from ...models.pool_response import PoolResponse
|
|
11
|
+
from ...types import Response
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
def _get_kwargs(
|
|
15
|
+
machine_id: UUID,
|
|
16
|
+
) -> dict[str, Any]:
|
|
17
|
+
_kwargs: dict[str, Any] = {
|
|
18
|
+
"method": "get",
|
|
19
|
+
"url": f"/v1/machines/{machine_id}/pools",
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
return _kwargs
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
def _parse_response(
|
|
26
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
27
|
+
) -> Optional[Union[HTTPValidationError, list["PoolResponse"]]]:
|
|
28
|
+
if response.status_code == 200:
|
|
29
|
+
response_200 = []
|
|
30
|
+
_response_200 = response.json()
|
|
31
|
+
for response_200_item_data in _response_200:
|
|
32
|
+
response_200_item = PoolResponse.from_dict(response_200_item_data)
|
|
33
|
+
|
|
34
|
+
response_200.append(response_200_item)
|
|
35
|
+
|
|
36
|
+
return response_200
|
|
37
|
+
if response.status_code == 422:
|
|
38
|
+
response_422 = HTTPValidationError.from_dict(response.json())
|
|
39
|
+
|
|
40
|
+
return response_422
|
|
41
|
+
if client.raise_on_unexpected_status:
|
|
42
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
43
|
+
else:
|
|
44
|
+
return None
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
def _build_response(
|
|
48
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
49
|
+
) -> Response[Union[HTTPValidationError, list["PoolResponse"]]]:
|
|
50
|
+
return Response(
|
|
51
|
+
status_code=HTTPStatus(response.status_code),
|
|
52
|
+
content=response.content,
|
|
53
|
+
headers=response.headers,
|
|
54
|
+
parsed=_parse_response(client=client, response=response),
|
|
55
|
+
)
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
def sync_detailed(
|
|
59
|
+
machine_id: UUID,
|
|
60
|
+
*,
|
|
61
|
+
client: AuthenticatedClient,
|
|
62
|
+
) -> Response[Union[HTTPValidationError, list["PoolResponse"]]]:
|
|
63
|
+
"""Get Machine Pools
|
|
64
|
+
|
|
65
|
+
Get all pools that a machine belongs to.
|
|
66
|
+
|
|
67
|
+
Args:
|
|
68
|
+
machine_id (UUID):
|
|
69
|
+
|
|
70
|
+
Raises:
|
|
71
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
72
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
73
|
+
|
|
74
|
+
Returns:
|
|
75
|
+
Response[Union[HTTPValidationError, list['PoolResponse']]]
|
|
76
|
+
"""
|
|
77
|
+
|
|
78
|
+
kwargs = _get_kwargs(
|
|
79
|
+
machine_id=machine_id,
|
|
80
|
+
)
|
|
81
|
+
|
|
82
|
+
response = client.get_httpx_client().request(
|
|
83
|
+
**kwargs,
|
|
84
|
+
)
|
|
85
|
+
|
|
86
|
+
return _build_response(client=client, response=response)
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
def sync(
|
|
90
|
+
machine_id: UUID,
|
|
91
|
+
*,
|
|
92
|
+
client: AuthenticatedClient,
|
|
93
|
+
) -> Optional[Union[HTTPValidationError, list["PoolResponse"]]]:
|
|
94
|
+
"""Get Machine Pools
|
|
95
|
+
|
|
96
|
+
Get all pools that a machine belongs to.
|
|
97
|
+
|
|
98
|
+
Args:
|
|
99
|
+
machine_id (UUID):
|
|
100
|
+
|
|
101
|
+
Raises:
|
|
102
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
103
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
104
|
+
|
|
105
|
+
Returns:
|
|
106
|
+
Union[HTTPValidationError, list['PoolResponse']]
|
|
107
|
+
"""
|
|
108
|
+
|
|
109
|
+
return sync_detailed(
|
|
110
|
+
machine_id=machine_id,
|
|
111
|
+
client=client,
|
|
112
|
+
).parsed
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
async def asyncio_detailed(
|
|
116
|
+
machine_id: UUID,
|
|
117
|
+
*,
|
|
118
|
+
client: AuthenticatedClient,
|
|
119
|
+
) -> Response[Union[HTTPValidationError, list["PoolResponse"]]]:
|
|
120
|
+
"""Get Machine Pools
|
|
121
|
+
|
|
122
|
+
Get all pools that a machine belongs to.
|
|
123
|
+
|
|
124
|
+
Args:
|
|
125
|
+
machine_id (UUID):
|
|
126
|
+
|
|
127
|
+
Raises:
|
|
128
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
129
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
130
|
+
|
|
131
|
+
Returns:
|
|
132
|
+
Response[Union[HTTPValidationError, list['PoolResponse']]]
|
|
133
|
+
"""
|
|
134
|
+
|
|
135
|
+
kwargs = _get_kwargs(
|
|
136
|
+
machine_id=machine_id,
|
|
137
|
+
)
|
|
138
|
+
|
|
139
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
140
|
+
|
|
141
|
+
return _build_response(client=client, response=response)
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
async def asyncio(
|
|
145
|
+
machine_id: UUID,
|
|
146
|
+
*,
|
|
147
|
+
client: AuthenticatedClient,
|
|
148
|
+
) -> Optional[Union[HTTPValidationError, list["PoolResponse"]]]:
|
|
149
|
+
"""Get Machine Pools
|
|
150
|
+
|
|
151
|
+
Get all pools that a machine belongs to.
|
|
152
|
+
|
|
153
|
+
Args:
|
|
154
|
+
machine_id (UUID):
|
|
155
|
+
|
|
156
|
+
Raises:
|
|
157
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
158
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
159
|
+
|
|
160
|
+
Returns:
|
|
161
|
+
Union[HTTPValidationError, list['PoolResponse']]
|
|
162
|
+
"""
|
|
163
|
+
|
|
164
|
+
return (
|
|
165
|
+
await asyncio_detailed(
|
|
166
|
+
machine_id=machine_id,
|
|
167
|
+
client=client,
|
|
168
|
+
)
|
|
169
|
+
).parsed
|