northrays 0.1.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.
- northrays/__init__.py +245 -0
- northrays/_async/__init__.py +2 -0
- northrays/_async/code_interpreter.py +302 -0
- northrays/_async/computer_use.py +930 -0
- northrays/_async/filesystem.py +1240 -0
- northrays/_async/git.py +391 -0
- northrays/_async/lsp_server.py +256 -0
- northrays/_async/northrays.py +819 -0
- northrays/_async/object_storage.py +190 -0
- northrays/_async/process.py +781 -0
- northrays/_async/sandbox.py +904 -0
- northrays/_async/snapshot.py +262 -0
- northrays/_async/volume.py +94 -0
- northrays/_sync/__init__.py +2 -0
- northrays/_sync/code_interpreter.py +271 -0
- northrays/_sync/computer_use.py +929 -0
- northrays/_sync/filesystem.py +1063 -0
- northrays/_sync/git.py +389 -0
- northrays/_sync/lsp_server.py +256 -0
- northrays/_sync/northrays.py +704 -0
- northrays/_sync/object_storage.py +184 -0
- northrays/_sync/process.py +778 -0
- northrays/_sync/sandbox.py +919 -0
- northrays/_sync/snapshot.py +262 -0
- northrays/_sync/volume.py +94 -0
- northrays/_utils/__init__.py +2 -0
- northrays/_utils/deprecation.py +95 -0
- northrays/_utils/docs_ignore.py +11 -0
- northrays/_utils/enum.py +27 -0
- northrays/_utils/env.py +38 -0
- northrays/_utils/environment.py +23 -0
- northrays/_utils/errors.py +298 -0
- northrays/_utils/otel_decorator.py +331 -0
- northrays/_utils/stream.py +368 -0
- northrays/_utils/timeout.py +484 -0
- northrays/_utils/types.py +16 -0
- northrays/common/__init__.py +2 -0
- northrays/common/charts.py +118 -0
- northrays/common/code_interpreter.py +44 -0
- northrays/common/computer_use.py +44 -0
- northrays/common/errors.py +187 -0
- northrays/common/file_transfer.py +69 -0
- northrays/common/filesystem.py +177 -0
- northrays/common/git.py +13 -0
- northrays/common/image.py +700 -0
- northrays/common/lsp_server.py +45 -0
- northrays/common/northrays.py +202 -0
- northrays/common/process.py +140 -0
- northrays/common/protocols.py +14 -0
- northrays/common/pty.py +65 -0
- northrays/common/sandbox.py +99 -0
- northrays/common/snapshot.py +84 -0
- northrays/common/volume.py +39 -0
- northrays/handle/async_pty_handle.py +323 -0
- northrays/handle/pty_handle.py +341 -0
- northrays/internal/__init__.py +2 -0
- northrays/internal/api_client_proxy.py +22 -0
- northrays/internal/http_client.py +99 -0
- northrays/internal/pool_tracker.py +44 -0
- northrays/internal/shared_session.py +262 -0
- northrays/internal/toolbox_api_client_proxy.py +114 -0
- northrays/internal/urllib3_retry.py +53 -0
- northrays/py.typed +0 -0
- northrays-0.1.0.dist-info/METADATA +211 -0
- northrays-0.1.0.dist-info/RECORD +711 -0
- northrays-0.1.0.dist-info/WHEEL +5 -0
- northrays-0.1.0.dist-info/licenses/LICENSE +191 -0
- northrays-0.1.0.dist-info/licenses/NOTICE +46 -0
- northrays-0.1.0.dist-info/top_level.txt +5 -0
- northrays_api_client/__init__.py +684 -0
- northrays_api_client/api/__init__.py +64 -0
- northrays_api_client/api/admin_api.py +5998 -0
- northrays_api_client/api/api_keys_api.py +1672 -0
- northrays_api_client/api/audit_api.py +402 -0
- northrays_api_client/api/config_api.py +278 -0
- northrays_api_client/api/docker_registry_api.py +1707 -0
- northrays_api_client/api/health_api.py +517 -0
- northrays_api_client/api/jobs_api.py +1185 -0
- northrays_api_client/api/object_storage_api.py +298 -0
- northrays_api_client/api/organizations_api.py +10857 -0
- northrays_api_client/api/preview_api.py +1104 -0
- northrays_api_client/api/regions_api.py +279 -0
- northrays_api_client/api/runners_api.py +2987 -0
- northrays_api_client/api/sandbox_api.py +12813 -0
- northrays_api_client/api/snapshots_api.py +2331 -0
- northrays_api_client/api/toolbox_api.py +20758 -0
- northrays_api_client/api/users_api.py +1304 -0
- northrays_api_client/api/volumes_api.py +1421 -0
- northrays_api_client/api/webhooks_api.py +1135 -0
- northrays_api_client/api_client.py +810 -0
- northrays_api_client/api_response.py +21 -0
- northrays_api_client/configuration.py +607 -0
- northrays_api_client/exceptions.py +219 -0
- northrays_api_client/models/__init__.py +405 -0
- northrays_api_client/models/account_provider.py +105 -0
- northrays_api_client/models/admin_create_runner.py +131 -0
- northrays_api_client/models/admin_get_webhook_status200_response.py +103 -0
- northrays_api_client/models/announcement.py +105 -0
- northrays_api_client/models/api_key_list.py +126 -0
- northrays_api_client/models/api_key_response.py +117 -0
- northrays_api_client/models/audit_log.py +134 -0
- northrays_api_client/models/build_info.py +112 -0
- northrays_api_client/models/command.py +107 -0
- northrays_api_client/models/completion_context.py +105 -0
- northrays_api_client/models/completion_item.py +115 -0
- northrays_api_client/models/completion_list.py +113 -0
- northrays_api_client/models/compressed_screenshot_response.py +107 -0
- northrays_api_client/models/computer_use_start_response.py +105 -0
- northrays_api_client/models/computer_use_status_response.py +103 -0
- northrays_api_client/models/computer_use_stop_response.py +105 -0
- northrays_api_client/models/create_api_key.py +113 -0
- northrays_api_client/models/create_build_info.py +105 -0
- northrays_api_client/models/create_docker_registry.py +111 -0
- northrays_api_client/models/create_linked_account.py +105 -0
- northrays_api_client/models/create_organization.py +105 -0
- northrays_api_client/models/create_organization_invitation.py +110 -0
- northrays_api_client/models/create_organization_quota.py +119 -0
- northrays_api_client/models/create_organization_region_quota.py +169 -0
- northrays_api_client/models/create_organization_role.py +107 -0
- northrays_api_client/models/create_region.py +124 -0
- northrays_api_client/models/create_region_response.py +131 -0
- northrays_api_client/models/create_runner.py +107 -0
- northrays_api_client/models/create_runner_response.py +105 -0
- northrays_api_client/models/create_sandbox.py +156 -0
- northrays_api_client/models/create_sandbox_snapshot.py +105 -0
- northrays_api_client/models/create_session_request.py +103 -0
- northrays_api_client/models/create_snapshot.py +129 -0
- northrays_api_client/models/create_user.py +119 -0
- northrays_api_client/models/create_volume.py +103 -0
- northrays_api_client/models/display_info_response.py +103 -0
- northrays_api_client/models/docker_registry.py +118 -0
- northrays_api_client/models/download_files.py +103 -0
- northrays_api_client/models/execute_request.py +107 -0
- northrays_api_client/models/execute_response.py +105 -0
- northrays_api_client/models/file_info.py +117 -0
- northrays_api_client/models/file_status.py +109 -0
- northrays_api_client/models/fork_sandbox.py +103 -0
- northrays_api_client/models/git_add_request.py +105 -0
- northrays_api_client/models/git_branch_request.py +105 -0
- northrays_api_client/models/git_checkout_request.py +105 -0
- northrays_api_client/models/git_clone_request.py +113 -0
- northrays_api_client/models/git_commit_info.py +111 -0
- northrays_api_client/models/git_commit_request.py +111 -0
- northrays_api_client/models/git_commit_response.py +103 -0
- northrays_api_client/models/git_delete_branch_request.py +105 -0
- northrays_api_client/models/git_repo_request.py +107 -0
- northrays_api_client/models/git_status.py +119 -0
- northrays_api_client/models/gpu_type.py +43 -0
- northrays_api_client/models/health_controller_check200_response.py +156 -0
- northrays_api_client/models/health_controller_check200_response_info_value.py +103 -0
- northrays_api_client/models/health_controller_check503_response.py +156 -0
- northrays_api_client/models/job.py +123 -0
- northrays_api_client/models/job_status.py +45 -0
- northrays_api_client/models/job_type.py +56 -0
- northrays_api_client/models/keyboard_hotkey_request.py +103 -0
- northrays_api_client/models/keyboard_press_request.py +105 -0
- northrays_api_client/models/keyboard_type_request.py +105 -0
- northrays_api_client/models/list_branch_response.py +103 -0
- northrays_api_client/models/list_sandboxes_response.py +118 -0
- northrays_api_client/models/log_entry.py +119 -0
- northrays_api_client/models/lsp_completion_params.py +119 -0
- northrays_api_client/models/lsp_document_request.py +107 -0
- northrays_api_client/models/lsp_location.py +109 -0
- northrays_api_client/models/lsp_server_request.py +105 -0
- northrays_api_client/models/lsp_symbol.py +111 -0
- northrays_api_client/models/match.py +107 -0
- northrays_api_client/models/metric_data_point.py +105 -0
- northrays_api_client/models/metric_series.py +113 -0
- northrays_api_client/models/metrics_response.py +111 -0
- northrays_api_client/models/mouse_click_request.py +109 -0
- northrays_api_client/models/mouse_click_response.py +105 -0
- northrays_api_client/models/mouse_drag_request.py +111 -0
- northrays_api_client/models/mouse_drag_response.py +105 -0
- northrays_api_client/models/mouse_move_request.py +105 -0
- northrays_api_client/models/mouse_move_response.py +105 -0
- northrays_api_client/models/mouse_position.py +105 -0
- northrays_api_client/models/mouse_scroll_request.py +109 -0
- northrays_api_client/models/mouse_scroll_response.py +103 -0
- northrays_api_client/models/northrays_configuration.py +162 -0
- northrays_api_client/models/oidc_config.py +107 -0
- northrays_api_client/models/organization.py +191 -0
- northrays_api_client/models/organization_invitation.py +132 -0
- northrays_api_client/models/organization_role.py +116 -0
- northrays_api_client/models/organization_sandbox_default_limited_network_egress.py +103 -0
- northrays_api_client/models/organization_suspension.py +109 -0
- northrays_api_client/models/organization_usage_overview.py +119 -0
- northrays_api_client/models/organization_user.py +126 -0
- northrays_api_client/models/otel_config.py +110 -0
- northrays_api_client/models/paginated_audit_logs.py +119 -0
- northrays_api_client/models/paginated_jobs.py +117 -0
- northrays_api_client/models/paginated_logs.py +117 -0
- northrays_api_client/models/paginated_sandboxes_deprecated.py +117 -0
- northrays_api_client/models/paginated_snapshots.py +117 -0
- northrays_api_client/models/paginated_traces.py +117 -0
- northrays_api_client/models/poll_jobs_response.py +111 -0
- northrays_api_client/models/port_preview_url.py +107 -0
- northrays_api_client/models/position.py +105 -0
- northrays_api_client/models/posthog_config.py +105 -0
- northrays_api_client/models/process_errors_response.py +105 -0
- northrays_api_client/models/process_logs_response.py +105 -0
- northrays_api_client/models/process_restart_response.py +105 -0
- northrays_api_client/models/process_status_response.py +105 -0
- northrays_api_client/models/project_dir_response.py +103 -0
- northrays_api_client/models/pty_create_request.py +113 -0
- northrays_api_client/models/pty_create_response.py +103 -0
- northrays_api_client/models/pty_list_response.py +111 -0
- northrays_api_client/models/pty_resize_request.py +105 -0
- northrays_api_client/models/pty_session_info.py +117 -0
- northrays_api_client/models/range.py +112 -0
- northrays_api_client/models/rate_limit_config.py +122 -0
- northrays_api_client/models/rate_limit_entry.py +105 -0
- northrays_api_client/models/regenerate_api_key_response.py +103 -0
- northrays_api_client/models/region.py +140 -0
- northrays_api_client/models/region_quota.py +168 -0
- northrays_api_client/models/region_screenshot_response.py +107 -0
- northrays_api_client/models/region_type.py +44 -0
- northrays_api_client/models/region_usage_overview.py +174 -0
- northrays_api_client/models/registry_push_access_dto.py +113 -0
- northrays_api_client/models/replace_request.py +107 -0
- northrays_api_client/models/replace_result.py +107 -0
- northrays_api_client/models/resize_sandbox.py +108 -0
- northrays_api_client/models/runner.py +166 -0
- northrays_api_client/models/runner_class.py +42 -0
- northrays_api_client/models/runner_full.py +171 -0
- northrays_api_client/models/runner_health_metrics.py +129 -0
- northrays_api_client/models/runner_healthcheck.py +125 -0
- northrays_api_client/models/runner_service_health.py +107 -0
- northrays_api_client/models/runner_snapshot_dto.py +107 -0
- northrays_api_client/models/runner_state.py +46 -0
- northrays_api_client/models/sandbox.py +188 -0
- northrays_api_client/models/sandbox_class.py +45 -0
- northrays_api_client/models/sandbox_desired_state.py +47 -0
- northrays_api_client/models/sandbox_labels.py +103 -0
- northrays_api_client/models/sandbox_list_item.py +161 -0
- northrays_api_client/models/sandbox_list_sort_direction.py +43 -0
- northrays_api_client/models/sandbox_list_sort_field.py +47 -0
- northrays_api_client/models/sandbox_state.py +63 -0
- northrays_api_client/models/sandbox_volume.py +107 -0
- northrays_api_client/models/screenshot_response.py +107 -0
- northrays_api_client/models/search_files_response.py +103 -0
- northrays_api_client/models/send_webhook_dto.py +108 -0
- northrays_api_client/models/session.py +118 -0
- northrays_api_client/models/session_execute_request.py +107 -0
- northrays_api_client/models/session_execute_response.py +107 -0
- northrays_api_client/models/set_snapshot_general_status_dto.py +103 -0
- northrays_api_client/models/signed_port_preview_url.py +109 -0
- northrays_api_client/models/snapshot_dto.py +172 -0
- northrays_api_client/models/snapshot_manager_credentials.py +105 -0
- northrays_api_client/models/snapshot_state.py +49 -0
- northrays_api_client/models/ssh_access_dto.py +116 -0
- northrays_api_client/models/ssh_access_validation_dto.py +105 -0
- northrays_api_client/models/storage_access_dto.py +113 -0
- northrays_api_client/models/toolbox_proxy_url.py +103 -0
- northrays_api_client/models/trace_span.py +119 -0
- northrays_api_client/models/trace_summary.py +115 -0
- northrays_api_client/models/update_docker_registry.py +111 -0
- northrays_api_client/models/update_job_status.py +108 -0
- northrays_api_client/models/update_organization_default_region.py +103 -0
- northrays_api_client/models/update_organization_invitation.py +108 -0
- northrays_api_client/models/update_organization_member_access.py +105 -0
- northrays_api_client/models/update_organization_quota.py +192 -0
- northrays_api_client/models/update_organization_region_quota.py +189 -0
- northrays_api_client/models/update_organization_role.py +107 -0
- northrays_api_client/models/update_region.py +122 -0
- northrays_api_client/models/update_sandbox_network_settings.py +107 -0
- northrays_api_client/models/update_sandbox_state_dto.py +107 -0
- northrays_api_client/models/url.py +103 -0
- northrays_api_client/models/user.py +120 -0
- northrays_api_client/models/user_home_dir_response.py +103 -0
- northrays_api_client/models/user_public_key.py +105 -0
- northrays_api_client/models/volume_dto.py +128 -0
- northrays_api_client/models/volume_state.py +48 -0
- northrays_api_client/models/webhook_app_portal_access.py +105 -0
- northrays_api_client/models/webhook_event.py +48 -0
- northrays_api_client/models/webhook_initialization_status.py +123 -0
- northrays_api_client/models/windows_response.py +105 -0
- northrays_api_client/models/work_dir_response.py +103 -0
- northrays_api_client/py.typed +0 -0
- northrays_api_client/rest.py +264 -0
- northrays_api_client_async/__init__.py +684 -0
- northrays_api_client_async/api/__init__.py +64 -0
- northrays_api_client_async/api/admin_api.py +5998 -0
- northrays_api_client_async/api/api_keys_api.py +1672 -0
- northrays_api_client_async/api/audit_api.py +402 -0
- northrays_api_client_async/api/config_api.py +278 -0
- northrays_api_client_async/api/docker_registry_api.py +1707 -0
- northrays_api_client_async/api/health_api.py +517 -0
- northrays_api_client_async/api/jobs_api.py +1185 -0
- northrays_api_client_async/api/object_storage_api.py +298 -0
- northrays_api_client_async/api/organizations_api.py +10857 -0
- northrays_api_client_async/api/preview_api.py +1104 -0
- northrays_api_client_async/api/regions_api.py +279 -0
- northrays_api_client_async/api/runners_api.py +2987 -0
- northrays_api_client_async/api/sandbox_api.py +12813 -0
- northrays_api_client_async/api/snapshots_api.py +2331 -0
- northrays_api_client_async/api/toolbox_api.py +20758 -0
- northrays_api_client_async/api/users_api.py +1304 -0
- northrays_api_client_async/api/volumes_api.py +1421 -0
- northrays_api_client_async/api/webhooks_api.py +1135 -0
- northrays_api_client_async/api_client.py +813 -0
- northrays_api_client_async/api_response.py +21 -0
- northrays_api_client_async/configuration.py +605 -0
- northrays_api_client_async/exceptions.py +219 -0
- northrays_api_client_async/models/__init__.py +405 -0
- northrays_api_client_async/models/account_provider.py +105 -0
- northrays_api_client_async/models/admin_create_runner.py +131 -0
- northrays_api_client_async/models/admin_get_webhook_status200_response.py +103 -0
- northrays_api_client_async/models/announcement.py +105 -0
- northrays_api_client_async/models/api_key_list.py +126 -0
- northrays_api_client_async/models/api_key_response.py +117 -0
- northrays_api_client_async/models/audit_log.py +134 -0
- northrays_api_client_async/models/build_info.py +112 -0
- northrays_api_client_async/models/command.py +107 -0
- northrays_api_client_async/models/completion_context.py +105 -0
- northrays_api_client_async/models/completion_item.py +115 -0
- northrays_api_client_async/models/completion_list.py +113 -0
- northrays_api_client_async/models/compressed_screenshot_response.py +107 -0
- northrays_api_client_async/models/computer_use_start_response.py +105 -0
- northrays_api_client_async/models/computer_use_status_response.py +103 -0
- northrays_api_client_async/models/computer_use_stop_response.py +105 -0
- northrays_api_client_async/models/create_api_key.py +113 -0
- northrays_api_client_async/models/create_build_info.py +105 -0
- northrays_api_client_async/models/create_docker_registry.py +111 -0
- northrays_api_client_async/models/create_linked_account.py +105 -0
- northrays_api_client_async/models/create_organization.py +105 -0
- northrays_api_client_async/models/create_organization_invitation.py +110 -0
- northrays_api_client_async/models/create_organization_quota.py +119 -0
- northrays_api_client_async/models/create_organization_region_quota.py +169 -0
- northrays_api_client_async/models/create_organization_role.py +107 -0
- northrays_api_client_async/models/create_region.py +124 -0
- northrays_api_client_async/models/create_region_response.py +131 -0
- northrays_api_client_async/models/create_runner.py +107 -0
- northrays_api_client_async/models/create_runner_response.py +105 -0
- northrays_api_client_async/models/create_sandbox.py +156 -0
- northrays_api_client_async/models/create_sandbox_snapshot.py +105 -0
- northrays_api_client_async/models/create_session_request.py +103 -0
- northrays_api_client_async/models/create_snapshot.py +129 -0
- northrays_api_client_async/models/create_user.py +119 -0
- northrays_api_client_async/models/create_volume.py +103 -0
- northrays_api_client_async/models/display_info_response.py +103 -0
- northrays_api_client_async/models/docker_registry.py +118 -0
- northrays_api_client_async/models/download_files.py +103 -0
- northrays_api_client_async/models/execute_request.py +107 -0
- northrays_api_client_async/models/execute_response.py +105 -0
- northrays_api_client_async/models/file_info.py +117 -0
- northrays_api_client_async/models/file_status.py +109 -0
- northrays_api_client_async/models/fork_sandbox.py +103 -0
- northrays_api_client_async/models/git_add_request.py +105 -0
- northrays_api_client_async/models/git_branch_request.py +105 -0
- northrays_api_client_async/models/git_checkout_request.py +105 -0
- northrays_api_client_async/models/git_clone_request.py +113 -0
- northrays_api_client_async/models/git_commit_info.py +111 -0
- northrays_api_client_async/models/git_commit_request.py +111 -0
- northrays_api_client_async/models/git_commit_response.py +103 -0
- northrays_api_client_async/models/git_delete_branch_request.py +105 -0
- northrays_api_client_async/models/git_repo_request.py +107 -0
- northrays_api_client_async/models/git_status.py +119 -0
- northrays_api_client_async/models/gpu_type.py +43 -0
- northrays_api_client_async/models/health_controller_check200_response.py +156 -0
- northrays_api_client_async/models/health_controller_check200_response_info_value.py +103 -0
- northrays_api_client_async/models/health_controller_check503_response.py +156 -0
- northrays_api_client_async/models/job.py +123 -0
- northrays_api_client_async/models/job_status.py +45 -0
- northrays_api_client_async/models/job_type.py +56 -0
- northrays_api_client_async/models/keyboard_hotkey_request.py +103 -0
- northrays_api_client_async/models/keyboard_press_request.py +105 -0
- northrays_api_client_async/models/keyboard_type_request.py +105 -0
- northrays_api_client_async/models/list_branch_response.py +103 -0
- northrays_api_client_async/models/list_sandboxes_response.py +118 -0
- northrays_api_client_async/models/log_entry.py +119 -0
- northrays_api_client_async/models/lsp_completion_params.py +119 -0
- northrays_api_client_async/models/lsp_document_request.py +107 -0
- northrays_api_client_async/models/lsp_location.py +109 -0
- northrays_api_client_async/models/lsp_server_request.py +105 -0
- northrays_api_client_async/models/lsp_symbol.py +111 -0
- northrays_api_client_async/models/match.py +107 -0
- northrays_api_client_async/models/metric_data_point.py +105 -0
- northrays_api_client_async/models/metric_series.py +113 -0
- northrays_api_client_async/models/metrics_response.py +111 -0
- northrays_api_client_async/models/mouse_click_request.py +109 -0
- northrays_api_client_async/models/mouse_click_response.py +105 -0
- northrays_api_client_async/models/mouse_drag_request.py +111 -0
- northrays_api_client_async/models/mouse_drag_response.py +105 -0
- northrays_api_client_async/models/mouse_move_request.py +105 -0
- northrays_api_client_async/models/mouse_move_response.py +105 -0
- northrays_api_client_async/models/mouse_position.py +105 -0
- northrays_api_client_async/models/mouse_scroll_request.py +109 -0
- northrays_api_client_async/models/mouse_scroll_response.py +103 -0
- northrays_api_client_async/models/northrays_configuration.py +162 -0
- northrays_api_client_async/models/oidc_config.py +107 -0
- northrays_api_client_async/models/organization.py +191 -0
- northrays_api_client_async/models/organization_invitation.py +132 -0
- northrays_api_client_async/models/organization_role.py +116 -0
- northrays_api_client_async/models/organization_sandbox_default_limited_network_egress.py +103 -0
- northrays_api_client_async/models/organization_suspension.py +109 -0
- northrays_api_client_async/models/organization_usage_overview.py +119 -0
- northrays_api_client_async/models/organization_user.py +126 -0
- northrays_api_client_async/models/otel_config.py +110 -0
- northrays_api_client_async/models/paginated_audit_logs.py +119 -0
- northrays_api_client_async/models/paginated_jobs.py +117 -0
- northrays_api_client_async/models/paginated_logs.py +117 -0
- northrays_api_client_async/models/paginated_sandboxes_deprecated.py +117 -0
- northrays_api_client_async/models/paginated_snapshots.py +117 -0
- northrays_api_client_async/models/paginated_traces.py +117 -0
- northrays_api_client_async/models/poll_jobs_response.py +111 -0
- northrays_api_client_async/models/port_preview_url.py +107 -0
- northrays_api_client_async/models/position.py +105 -0
- northrays_api_client_async/models/posthog_config.py +105 -0
- northrays_api_client_async/models/process_errors_response.py +105 -0
- northrays_api_client_async/models/process_logs_response.py +105 -0
- northrays_api_client_async/models/process_restart_response.py +105 -0
- northrays_api_client_async/models/process_status_response.py +105 -0
- northrays_api_client_async/models/project_dir_response.py +103 -0
- northrays_api_client_async/models/pty_create_request.py +113 -0
- northrays_api_client_async/models/pty_create_response.py +103 -0
- northrays_api_client_async/models/pty_list_response.py +111 -0
- northrays_api_client_async/models/pty_resize_request.py +105 -0
- northrays_api_client_async/models/pty_session_info.py +117 -0
- northrays_api_client_async/models/range.py +112 -0
- northrays_api_client_async/models/rate_limit_config.py +122 -0
- northrays_api_client_async/models/rate_limit_entry.py +105 -0
- northrays_api_client_async/models/regenerate_api_key_response.py +103 -0
- northrays_api_client_async/models/region.py +140 -0
- northrays_api_client_async/models/region_quota.py +168 -0
- northrays_api_client_async/models/region_screenshot_response.py +107 -0
- northrays_api_client_async/models/region_type.py +44 -0
- northrays_api_client_async/models/region_usage_overview.py +174 -0
- northrays_api_client_async/models/registry_push_access_dto.py +113 -0
- northrays_api_client_async/models/replace_request.py +107 -0
- northrays_api_client_async/models/replace_result.py +107 -0
- northrays_api_client_async/models/resize_sandbox.py +108 -0
- northrays_api_client_async/models/runner.py +166 -0
- northrays_api_client_async/models/runner_class.py +42 -0
- northrays_api_client_async/models/runner_full.py +171 -0
- northrays_api_client_async/models/runner_health_metrics.py +129 -0
- northrays_api_client_async/models/runner_healthcheck.py +125 -0
- northrays_api_client_async/models/runner_service_health.py +107 -0
- northrays_api_client_async/models/runner_snapshot_dto.py +107 -0
- northrays_api_client_async/models/runner_state.py +46 -0
- northrays_api_client_async/models/sandbox.py +188 -0
- northrays_api_client_async/models/sandbox_class.py +45 -0
- northrays_api_client_async/models/sandbox_desired_state.py +47 -0
- northrays_api_client_async/models/sandbox_labels.py +103 -0
- northrays_api_client_async/models/sandbox_list_item.py +161 -0
- northrays_api_client_async/models/sandbox_list_sort_direction.py +43 -0
- northrays_api_client_async/models/sandbox_list_sort_field.py +47 -0
- northrays_api_client_async/models/sandbox_state.py +63 -0
- northrays_api_client_async/models/sandbox_volume.py +107 -0
- northrays_api_client_async/models/screenshot_response.py +107 -0
- northrays_api_client_async/models/search_files_response.py +103 -0
- northrays_api_client_async/models/send_webhook_dto.py +108 -0
- northrays_api_client_async/models/session.py +118 -0
- northrays_api_client_async/models/session_execute_request.py +107 -0
- northrays_api_client_async/models/session_execute_response.py +107 -0
- northrays_api_client_async/models/set_snapshot_general_status_dto.py +103 -0
- northrays_api_client_async/models/signed_port_preview_url.py +109 -0
- northrays_api_client_async/models/snapshot_dto.py +172 -0
- northrays_api_client_async/models/snapshot_manager_credentials.py +105 -0
- northrays_api_client_async/models/snapshot_state.py +49 -0
- northrays_api_client_async/models/ssh_access_dto.py +116 -0
- northrays_api_client_async/models/ssh_access_validation_dto.py +105 -0
- northrays_api_client_async/models/storage_access_dto.py +113 -0
- northrays_api_client_async/models/toolbox_proxy_url.py +103 -0
- northrays_api_client_async/models/trace_span.py +119 -0
- northrays_api_client_async/models/trace_summary.py +115 -0
- northrays_api_client_async/models/update_docker_registry.py +111 -0
- northrays_api_client_async/models/update_job_status.py +108 -0
- northrays_api_client_async/models/update_organization_default_region.py +103 -0
- northrays_api_client_async/models/update_organization_invitation.py +108 -0
- northrays_api_client_async/models/update_organization_member_access.py +105 -0
- northrays_api_client_async/models/update_organization_quota.py +192 -0
- northrays_api_client_async/models/update_organization_region_quota.py +189 -0
- northrays_api_client_async/models/update_organization_role.py +107 -0
- northrays_api_client_async/models/update_region.py +122 -0
- northrays_api_client_async/models/update_sandbox_network_settings.py +107 -0
- northrays_api_client_async/models/update_sandbox_state_dto.py +107 -0
- northrays_api_client_async/models/url.py +103 -0
- northrays_api_client_async/models/user.py +120 -0
- northrays_api_client_async/models/user_home_dir_response.py +103 -0
- northrays_api_client_async/models/user_public_key.py +105 -0
- northrays_api_client_async/models/volume_dto.py +128 -0
- northrays_api_client_async/models/volume_state.py +48 -0
- northrays_api_client_async/models/webhook_app_portal_access.py +105 -0
- northrays_api_client_async/models/webhook_event.py +48 -0
- northrays_api_client_async/models/webhook_initialization_status.py +123 -0
- northrays_api_client_async/models/windows_response.py +105 -0
- northrays_api_client_async/models/work_dir_response.py +103 -0
- northrays_api_client_async/py.typed +0 -0
- northrays_api_client_async/rest.py +227 -0
- northrays_toolbox_api_client/__init__.py +386 -0
- northrays_toolbox_api_client/api/__init__.py +46 -0
- northrays_toolbox_api_client/api/computer_use_api.py +9075 -0
- northrays_toolbox_api_client/api/file_system_api.py +3583 -0
- northrays_toolbox_api_client/api/git_api.py +2969 -0
- northrays_toolbox_api_client/api/info_api.py +773 -0
- northrays_toolbox_api_client/api/interpreter_api.py +1075 -0
- northrays_toolbox_api_client/api/lsp_api.py +1971 -0
- northrays_toolbox_api_client/api/port_api.py +543 -0
- northrays_toolbox_api_client/api/process_api.py +4865 -0
- northrays_toolbox_api_client/api/server_api.py +298 -0
- northrays_toolbox_api_client/api_client.py +809 -0
- northrays_toolbox_api_client/api_response.py +21 -0
- northrays_toolbox_api_client/configuration.py +626 -0
- northrays_toolbox_api_client/exceptions.py +218 -0
- northrays_toolbox_api_client/models/__init__.py +224 -0
- northrays_toolbox_api_client/models/accessibility_bounds.py +108 -0
- northrays_toolbox_api_client/models/accessibility_invoke_request.py +104 -0
- northrays_toolbox_api_client/models/accessibility_node_request.py +102 -0
- northrays_toolbox_api_client/models/accessibility_nodes_response.py +112 -0
- northrays_toolbox_api_client/models/accessibility_set_value_request.py +104 -0
- northrays_toolbox_api_client/models/accessibility_tree_response.py +108 -0
- northrays_toolbox_api_client/models/chart.py +132 -0
- northrays_toolbox_api_client/models/chart_element.py +134 -0
- northrays_toolbox_api_client/models/code_run_artifacts.py +110 -0
- northrays_toolbox_api_client/models/code_run_request.py +110 -0
- northrays_toolbox_api_client/models/code_run_response.py +110 -0
- northrays_toolbox_api_client/models/command.py +106 -0
- northrays_toolbox_api_client/models/completion_context.py +104 -0
- northrays_toolbox_api_client/models/completion_item.py +114 -0
- northrays_toolbox_api_client/models/completion_list.py +112 -0
- northrays_toolbox_api_client/models/computer_use_accessibility_node.py +129 -0
- northrays_toolbox_api_client/models/computer_use_start_response.py +117 -0
- northrays_toolbox_api_client/models/computer_use_status_response.py +102 -0
- northrays_toolbox_api_client/models/computer_use_stop_response.py +117 -0
- northrays_toolbox_api_client/models/create_context_request.py +104 -0
- northrays_toolbox_api_client/models/create_session_request.py +102 -0
- northrays_toolbox_api_client/models/display_info.py +112 -0
- northrays_toolbox_api_client/models/display_info_response.py +110 -0
- northrays_toolbox_api_client/models/execute_request.py +108 -0
- northrays_toolbox_api_client/models/execute_response.py +104 -0
- northrays_toolbox_api_client/models/file_info.py +118 -0
- northrays_toolbox_api_client/models/file_status.py +109 -0
- northrays_toolbox_api_client/models/files_download_request.py +102 -0
- northrays_toolbox_api_client/models/find_accessibility_nodes_request.py +114 -0
- northrays_toolbox_api_client/models/git_add_request.py +104 -0
- northrays_toolbox_api_client/models/git_branch_request.py +104 -0
- northrays_toolbox_api_client/models/git_checkout_request.py +104 -0
- northrays_toolbox_api_client/models/git_clone_request.py +114 -0
- northrays_toolbox_api_client/models/git_commit_info.py +110 -0
- northrays_toolbox_api_client/models/git_commit_request.py +110 -0
- northrays_toolbox_api_client/models/git_commit_response.py +102 -0
- northrays_toolbox_api_client/models/git_delete_branch_request.py +104 -0
- northrays_toolbox_api_client/models/git_repo_request.py +106 -0
- northrays_toolbox_api_client/models/git_status.py +118 -0
- northrays_toolbox_api_client/models/initialize_request.py +102 -0
- northrays_toolbox_api_client/models/interpreter_context.py +110 -0
- northrays_toolbox_api_client/models/is_port_in_use_response.py +102 -0
- northrays_toolbox_api_client/models/keyboard_hotkey_request.py +102 -0
- northrays_toolbox_api_client/models/keyboard_press_request.py +104 -0
- northrays_toolbox_api_client/models/keyboard_type_request.py +104 -0
- northrays_toolbox_api_client/models/list_branch_response.py +102 -0
- northrays_toolbox_api_client/models/list_contexts_response.py +110 -0
- northrays_toolbox_api_client/models/list_recordings_response.py +110 -0
- northrays_toolbox_api_client/models/lsp_completion_params.py +118 -0
- northrays_toolbox_api_client/models/lsp_document_request.py +106 -0
- northrays_toolbox_api_client/models/lsp_location.py +108 -0
- northrays_toolbox_api_client/models/lsp_position.py +104 -0
- northrays_toolbox_api_client/models/lsp_range.py +111 -0
- northrays_toolbox_api_client/models/lsp_server_request.py +104 -0
- northrays_toolbox_api_client/models/lsp_symbol.py +110 -0
- northrays_toolbox_api_client/models/match.py +106 -0
- northrays_toolbox_api_client/models/mouse_click_request.py +108 -0
- northrays_toolbox_api_client/models/mouse_click_response.py +104 -0
- northrays_toolbox_api_client/models/mouse_drag_request.py +110 -0
- northrays_toolbox_api_client/models/mouse_drag_response.py +104 -0
- northrays_toolbox_api_client/models/mouse_move_request.py +104 -0
- northrays_toolbox_api_client/models/mouse_position_response.py +104 -0
- northrays_toolbox_api_client/models/mouse_scroll_request.py +109 -0
- northrays_toolbox_api_client/models/port_list.py +102 -0
- northrays_toolbox_api_client/models/position.py +104 -0
- northrays_toolbox_api_client/models/process_errors_response.py +104 -0
- northrays_toolbox_api_client/models/process_logs_response.py +104 -0
- northrays_toolbox_api_client/models/process_restart_response.py +104 -0
- northrays_toolbox_api_client/models/process_status.py +108 -0
- northrays_toolbox_api_client/models/process_status_response.py +104 -0
- northrays_toolbox_api_client/models/pty_create_request.py +112 -0
- northrays_toolbox_api_client/models/pty_create_response.py +102 -0
- northrays_toolbox_api_client/models/pty_list_response.py +110 -0
- northrays_toolbox_api_client/models/pty_resize_request.py +105 -0
- northrays_toolbox_api_client/models/pty_session_info.py +116 -0
- northrays_toolbox_api_client/models/recording.py +116 -0
- northrays_toolbox_api_client/models/replace_request.py +106 -0
- northrays_toolbox_api_client/models/replace_result.py +106 -0
- northrays_toolbox_api_client/models/screenshot_response.py +110 -0
- northrays_toolbox_api_client/models/scroll_response.py +102 -0
- northrays_toolbox_api_client/models/search_files_response.py +102 -0
- northrays_toolbox_api_client/models/session.py +112 -0
- northrays_toolbox_api_client/models/session_command_logs_response.py +106 -0
- northrays_toolbox_api_client/models/session_execute_request.py +108 -0
- northrays_toolbox_api_client/models/session_execute_response.py +110 -0
- northrays_toolbox_api_client/models/session_send_input_request.py +102 -0
- northrays_toolbox_api_client/models/start_recording_request.py +102 -0
- northrays_toolbox_api_client/models/status.py +48 -0
- northrays_toolbox_api_client/models/stop_recording_request.py +102 -0
- northrays_toolbox_api_client/models/user_home_dir_response.py +102 -0
- northrays_toolbox_api_client/models/window_info.py +114 -0
- northrays_toolbox_api_client/models/windows_response.py +110 -0
- northrays_toolbox_api_client/models/work_dir_response.py +102 -0
- northrays_toolbox_api_client/py.typed +0 -0
- northrays_toolbox_api_client/rest.py +263 -0
- northrays_toolbox_api_client_async/__init__.py +386 -0
- northrays_toolbox_api_client_async/api/__init__.py +46 -0
- northrays_toolbox_api_client_async/api/computer_use_api.py +9075 -0
- northrays_toolbox_api_client_async/api/file_system_api.py +3583 -0
- northrays_toolbox_api_client_async/api/git_api.py +2969 -0
- northrays_toolbox_api_client_async/api/info_api.py +773 -0
- northrays_toolbox_api_client_async/api/interpreter_api.py +1075 -0
- northrays_toolbox_api_client_async/api/lsp_api.py +1971 -0
- northrays_toolbox_api_client_async/api/port_api.py +543 -0
- northrays_toolbox_api_client_async/api/process_api.py +4865 -0
- northrays_toolbox_api_client_async/api/server_api.py +298 -0
- northrays_toolbox_api_client_async/api_client.py +812 -0
- northrays_toolbox_api_client_async/api_response.py +21 -0
- northrays_toolbox_api_client_async/configuration.py +624 -0
- northrays_toolbox_api_client_async/exceptions.py +218 -0
- northrays_toolbox_api_client_async/models/__init__.py +224 -0
- northrays_toolbox_api_client_async/models/accessibility_bounds.py +108 -0
- northrays_toolbox_api_client_async/models/accessibility_invoke_request.py +104 -0
- northrays_toolbox_api_client_async/models/accessibility_node_request.py +102 -0
- northrays_toolbox_api_client_async/models/accessibility_nodes_response.py +112 -0
- northrays_toolbox_api_client_async/models/accessibility_set_value_request.py +104 -0
- northrays_toolbox_api_client_async/models/accessibility_tree_response.py +108 -0
- northrays_toolbox_api_client_async/models/chart.py +132 -0
- northrays_toolbox_api_client_async/models/chart_element.py +134 -0
- northrays_toolbox_api_client_async/models/code_run_artifacts.py +110 -0
- northrays_toolbox_api_client_async/models/code_run_request.py +110 -0
- northrays_toolbox_api_client_async/models/code_run_response.py +110 -0
- northrays_toolbox_api_client_async/models/command.py +106 -0
- northrays_toolbox_api_client_async/models/completion_context.py +104 -0
- northrays_toolbox_api_client_async/models/completion_item.py +114 -0
- northrays_toolbox_api_client_async/models/completion_list.py +112 -0
- northrays_toolbox_api_client_async/models/computer_use_accessibility_node.py +129 -0
- northrays_toolbox_api_client_async/models/computer_use_start_response.py +117 -0
- northrays_toolbox_api_client_async/models/computer_use_status_response.py +102 -0
- northrays_toolbox_api_client_async/models/computer_use_stop_response.py +117 -0
- northrays_toolbox_api_client_async/models/create_context_request.py +104 -0
- northrays_toolbox_api_client_async/models/create_session_request.py +102 -0
- northrays_toolbox_api_client_async/models/display_info.py +112 -0
- northrays_toolbox_api_client_async/models/display_info_response.py +110 -0
- northrays_toolbox_api_client_async/models/execute_request.py +108 -0
- northrays_toolbox_api_client_async/models/execute_response.py +104 -0
- northrays_toolbox_api_client_async/models/file_info.py +118 -0
- northrays_toolbox_api_client_async/models/file_status.py +109 -0
- northrays_toolbox_api_client_async/models/files_download_request.py +102 -0
- northrays_toolbox_api_client_async/models/find_accessibility_nodes_request.py +114 -0
- northrays_toolbox_api_client_async/models/git_add_request.py +104 -0
- northrays_toolbox_api_client_async/models/git_branch_request.py +104 -0
- northrays_toolbox_api_client_async/models/git_checkout_request.py +104 -0
- northrays_toolbox_api_client_async/models/git_clone_request.py +114 -0
- northrays_toolbox_api_client_async/models/git_commit_info.py +110 -0
- northrays_toolbox_api_client_async/models/git_commit_request.py +110 -0
- northrays_toolbox_api_client_async/models/git_commit_response.py +102 -0
- northrays_toolbox_api_client_async/models/git_delete_branch_request.py +104 -0
- northrays_toolbox_api_client_async/models/git_repo_request.py +106 -0
- northrays_toolbox_api_client_async/models/git_status.py +118 -0
- northrays_toolbox_api_client_async/models/initialize_request.py +102 -0
- northrays_toolbox_api_client_async/models/interpreter_context.py +110 -0
- northrays_toolbox_api_client_async/models/is_port_in_use_response.py +102 -0
- northrays_toolbox_api_client_async/models/keyboard_hotkey_request.py +102 -0
- northrays_toolbox_api_client_async/models/keyboard_press_request.py +104 -0
- northrays_toolbox_api_client_async/models/keyboard_type_request.py +104 -0
- northrays_toolbox_api_client_async/models/list_branch_response.py +102 -0
- northrays_toolbox_api_client_async/models/list_contexts_response.py +110 -0
- northrays_toolbox_api_client_async/models/list_recordings_response.py +110 -0
- northrays_toolbox_api_client_async/models/lsp_completion_params.py +118 -0
- northrays_toolbox_api_client_async/models/lsp_document_request.py +106 -0
- northrays_toolbox_api_client_async/models/lsp_location.py +108 -0
- northrays_toolbox_api_client_async/models/lsp_position.py +104 -0
- northrays_toolbox_api_client_async/models/lsp_range.py +111 -0
- northrays_toolbox_api_client_async/models/lsp_server_request.py +104 -0
- northrays_toolbox_api_client_async/models/lsp_symbol.py +110 -0
- northrays_toolbox_api_client_async/models/match.py +106 -0
- northrays_toolbox_api_client_async/models/mouse_click_request.py +108 -0
- northrays_toolbox_api_client_async/models/mouse_click_response.py +104 -0
- northrays_toolbox_api_client_async/models/mouse_drag_request.py +110 -0
- northrays_toolbox_api_client_async/models/mouse_drag_response.py +104 -0
- northrays_toolbox_api_client_async/models/mouse_move_request.py +104 -0
- northrays_toolbox_api_client_async/models/mouse_position_response.py +104 -0
- northrays_toolbox_api_client_async/models/mouse_scroll_request.py +109 -0
- northrays_toolbox_api_client_async/models/port_list.py +102 -0
- northrays_toolbox_api_client_async/models/position.py +104 -0
- northrays_toolbox_api_client_async/models/process_errors_response.py +104 -0
- northrays_toolbox_api_client_async/models/process_logs_response.py +104 -0
- northrays_toolbox_api_client_async/models/process_restart_response.py +104 -0
- northrays_toolbox_api_client_async/models/process_status.py +108 -0
- northrays_toolbox_api_client_async/models/process_status_response.py +104 -0
- northrays_toolbox_api_client_async/models/pty_create_request.py +112 -0
- northrays_toolbox_api_client_async/models/pty_create_response.py +102 -0
- northrays_toolbox_api_client_async/models/pty_list_response.py +110 -0
- northrays_toolbox_api_client_async/models/pty_resize_request.py +105 -0
- northrays_toolbox_api_client_async/models/pty_session_info.py +116 -0
- northrays_toolbox_api_client_async/models/recording.py +116 -0
- northrays_toolbox_api_client_async/models/replace_request.py +106 -0
- northrays_toolbox_api_client_async/models/replace_result.py +106 -0
- northrays_toolbox_api_client_async/models/screenshot_response.py +110 -0
- northrays_toolbox_api_client_async/models/scroll_response.py +102 -0
- northrays_toolbox_api_client_async/models/search_files_response.py +102 -0
- northrays_toolbox_api_client_async/models/session.py +112 -0
- northrays_toolbox_api_client_async/models/session_command_logs_response.py +106 -0
- northrays_toolbox_api_client_async/models/session_execute_request.py +108 -0
- northrays_toolbox_api_client_async/models/session_execute_response.py +110 -0
- northrays_toolbox_api_client_async/models/session_send_input_request.py +102 -0
- northrays_toolbox_api_client_async/models/start_recording_request.py +102 -0
- northrays_toolbox_api_client_async/models/status.py +48 -0
- northrays_toolbox_api_client_async/models/stop_recording_request.py +102 -0
- northrays_toolbox_api_client_async/models/user_home_dir_response.py +102 -0
- northrays_toolbox_api_client_async/models/window_info.py +114 -0
- northrays_toolbox_api_client_async/models/windows_response.py +110 -0
- northrays_toolbox_api_client_async/models/work_dir_response.py +102 -0
- northrays_toolbox_api_client_async/py.typed +0 -0
- northrays_toolbox_api_client_async/rest.py +226 -0
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Northrays
|
|
5
|
+
|
|
6
|
+
Northrays AI platform API Docs
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0
|
|
9
|
+
Contact: support@northrays.com
|
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
|
+
|
|
12
|
+
Do not edit the class manually.
|
|
13
|
+
""" # noqa: E501
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
from __future__ import annotations
|
|
17
|
+
import pprint
|
|
18
|
+
import re # noqa: F401
|
|
19
|
+
import json
|
|
20
|
+
|
|
21
|
+
from pydantic import BaseModel, ConfigDict, Field
|
|
22
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
23
|
+
from northrays_api_client.models.rate_limit_entry import RateLimitEntry
|
|
24
|
+
from pydantic import TypeAdapter
|
|
25
|
+
from typing import Optional, Set
|
|
26
|
+
from typing_extensions import Self
|
|
27
|
+
|
|
28
|
+
_JSON_ADAPTER = TypeAdapter(Dict[str, Any])
|
|
29
|
+
|
|
30
|
+
class RateLimitConfig(BaseModel):
|
|
31
|
+
"""
|
|
32
|
+
RateLimitConfig
|
|
33
|
+
""" # noqa: E501
|
|
34
|
+
failed_auth: Optional[RateLimitEntry] = Field(default=None, description="Failed authentication rate limit", serialization_alias="failedAuth")
|
|
35
|
+
authenticated: Optional[RateLimitEntry] = Field(default=None, description="Authenticated rate limit")
|
|
36
|
+
sandbox_create: Optional[RateLimitEntry] = Field(default=None, description="Sandbox create rate limit", serialization_alias="sandboxCreate")
|
|
37
|
+
sandbox_lifecycle: Optional[RateLimitEntry] = Field(default=None, description="Sandbox lifecycle rate limit", serialization_alias="sandboxLifecycle")
|
|
38
|
+
additional_properties: Dict[str, Any] = {}
|
|
39
|
+
__properties: ClassVar[List[str]] = ["failedAuth", "authenticated", "sandboxCreate", "sandboxLifecycle"]
|
|
40
|
+
|
|
41
|
+
model_config = ConfigDict(
|
|
42
|
+
populate_by_name=True,
|
|
43
|
+
validate_assignment=True,
|
|
44
|
+
protected_namespaces=(),
|
|
45
|
+
)
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
def to_str(self) -> str:
|
|
49
|
+
"""Returns the string representation of the model using alias"""
|
|
50
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
51
|
+
|
|
52
|
+
def to_json(self) -> str:
|
|
53
|
+
"""Returns the JSON representation of the model using alias"""
|
|
54
|
+
return _JSON_ADAPTER.dump_json(self.to_dict()).decode()
|
|
55
|
+
|
|
56
|
+
@classmethod
|
|
57
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
58
|
+
"""Create an instance of RateLimitConfig from a JSON string"""
|
|
59
|
+
return cls.from_dict(json.loads(json_str))
|
|
60
|
+
|
|
61
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
62
|
+
"""Return the dictionary representation of the model using alias.
|
|
63
|
+
|
|
64
|
+
This has the following differences from calling pydantic's
|
|
65
|
+
`self.model_dump(by_alias=True)`:
|
|
66
|
+
|
|
67
|
+
* `None` is only added to the output dict for nullable fields that
|
|
68
|
+
were set at model initialization. Other fields with value `None`
|
|
69
|
+
are ignored.
|
|
70
|
+
* Fields in `self.additional_properties` are added to the output dict.
|
|
71
|
+
"""
|
|
72
|
+
excluded_fields: Set[str] = set([
|
|
73
|
+
"additional_properties",
|
|
74
|
+
])
|
|
75
|
+
|
|
76
|
+
_dict = self.model_dump(
|
|
77
|
+
by_alias=True,
|
|
78
|
+
exclude=excluded_fields,
|
|
79
|
+
exclude_none=True,
|
|
80
|
+
)
|
|
81
|
+
# override the default output from pydantic by calling `to_dict()` of failed_auth
|
|
82
|
+
if self.failed_auth:
|
|
83
|
+
_dict['failedAuth'] = self.failed_auth.to_dict()
|
|
84
|
+
# override the default output from pydantic by calling `to_dict()` of authenticated
|
|
85
|
+
if self.authenticated:
|
|
86
|
+
_dict['authenticated'] = self.authenticated.to_dict()
|
|
87
|
+
# override the default output from pydantic by calling `to_dict()` of sandbox_create
|
|
88
|
+
if self.sandbox_create:
|
|
89
|
+
_dict['sandboxCreate'] = self.sandbox_create.to_dict()
|
|
90
|
+
# override the default output from pydantic by calling `to_dict()` of sandbox_lifecycle
|
|
91
|
+
if self.sandbox_lifecycle:
|
|
92
|
+
_dict['sandboxLifecycle'] = self.sandbox_lifecycle.to_dict()
|
|
93
|
+
# puts key-value pairs in additional_properties in the top level
|
|
94
|
+
if self.additional_properties is not None:
|
|
95
|
+
for _key, _value in self.additional_properties.items():
|
|
96
|
+
_dict[_key] = _value
|
|
97
|
+
|
|
98
|
+
return _dict
|
|
99
|
+
|
|
100
|
+
@classmethod
|
|
101
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
102
|
+
"""Create an instance of RateLimitConfig from a dict"""
|
|
103
|
+
if obj is None:
|
|
104
|
+
return None
|
|
105
|
+
|
|
106
|
+
if not isinstance(obj, dict):
|
|
107
|
+
return cls.model_validate(obj)
|
|
108
|
+
|
|
109
|
+
_obj = cls.model_validate({
|
|
110
|
+
"failed_auth": RateLimitEntry.from_dict(obj["failedAuth"]) if obj.get("failedAuth") is not None else None,
|
|
111
|
+
"authenticated": RateLimitEntry.from_dict(obj["authenticated"]) if obj.get("authenticated") is not None else None,
|
|
112
|
+
"sandbox_create": RateLimitEntry.from_dict(obj["sandboxCreate"]) if obj.get("sandboxCreate") is not None else None,
|
|
113
|
+
"sandbox_lifecycle": RateLimitEntry.from_dict(obj["sandboxLifecycle"]) if obj.get("sandboxLifecycle") is not None else None
|
|
114
|
+
})
|
|
115
|
+
# store additional fields in additional_properties
|
|
116
|
+
for _key in obj.keys():
|
|
117
|
+
if _key not in cls.__properties:
|
|
118
|
+
_obj.additional_properties[_key] = obj.get(_key)
|
|
119
|
+
|
|
120
|
+
return _obj
|
|
121
|
+
|
|
122
|
+
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Northrays
|
|
5
|
+
|
|
6
|
+
Northrays AI platform API Docs
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0
|
|
9
|
+
Contact: support@northrays.com
|
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
|
+
|
|
12
|
+
Do not edit the class manually.
|
|
13
|
+
""" # noqa: E501
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
from __future__ import annotations
|
|
17
|
+
import pprint
|
|
18
|
+
import re # noqa: F401
|
|
19
|
+
import json
|
|
20
|
+
|
|
21
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt
|
|
22
|
+
from typing import Any, ClassVar, Dict, List, Optional, Union
|
|
23
|
+
from pydantic import TypeAdapter
|
|
24
|
+
from typing import Optional, Set
|
|
25
|
+
from typing_extensions import Self
|
|
26
|
+
|
|
27
|
+
_JSON_ADAPTER = TypeAdapter(Dict[str, Any])
|
|
28
|
+
|
|
29
|
+
class RateLimitEntry(BaseModel):
|
|
30
|
+
"""
|
|
31
|
+
RateLimitEntry
|
|
32
|
+
""" # noqa: E501
|
|
33
|
+
ttl: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Rate limit TTL in seconds")
|
|
34
|
+
limit: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Rate limit max requests")
|
|
35
|
+
additional_properties: Dict[str, Any] = {}
|
|
36
|
+
__properties: ClassVar[List[str]] = ["ttl", "limit"]
|
|
37
|
+
|
|
38
|
+
model_config = ConfigDict(
|
|
39
|
+
populate_by_name=True,
|
|
40
|
+
validate_assignment=True,
|
|
41
|
+
protected_namespaces=(),
|
|
42
|
+
)
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
def to_str(self) -> str:
|
|
46
|
+
"""Returns the string representation of the model using alias"""
|
|
47
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
48
|
+
|
|
49
|
+
def to_json(self) -> str:
|
|
50
|
+
"""Returns the JSON representation of the model using alias"""
|
|
51
|
+
return _JSON_ADAPTER.dump_json(self.to_dict()).decode()
|
|
52
|
+
|
|
53
|
+
@classmethod
|
|
54
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
55
|
+
"""Create an instance of RateLimitEntry from a JSON string"""
|
|
56
|
+
return cls.from_dict(json.loads(json_str))
|
|
57
|
+
|
|
58
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
59
|
+
"""Return the dictionary representation of the model using alias.
|
|
60
|
+
|
|
61
|
+
This has the following differences from calling pydantic's
|
|
62
|
+
`self.model_dump(by_alias=True)`:
|
|
63
|
+
|
|
64
|
+
* `None` is only added to the output dict for nullable fields that
|
|
65
|
+
were set at model initialization. Other fields with value `None`
|
|
66
|
+
are ignored.
|
|
67
|
+
* Fields in `self.additional_properties` are added to the output dict.
|
|
68
|
+
"""
|
|
69
|
+
excluded_fields: Set[str] = set([
|
|
70
|
+
"additional_properties",
|
|
71
|
+
])
|
|
72
|
+
|
|
73
|
+
_dict = self.model_dump(
|
|
74
|
+
by_alias=True,
|
|
75
|
+
exclude=excluded_fields,
|
|
76
|
+
exclude_none=True,
|
|
77
|
+
)
|
|
78
|
+
# puts key-value pairs in additional_properties in the top level
|
|
79
|
+
if self.additional_properties is not None:
|
|
80
|
+
for _key, _value in self.additional_properties.items():
|
|
81
|
+
_dict[_key] = _value
|
|
82
|
+
|
|
83
|
+
return _dict
|
|
84
|
+
|
|
85
|
+
@classmethod
|
|
86
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
87
|
+
"""Create an instance of RateLimitEntry from a dict"""
|
|
88
|
+
if obj is None:
|
|
89
|
+
return None
|
|
90
|
+
|
|
91
|
+
if not isinstance(obj, dict):
|
|
92
|
+
return cls.model_validate(obj)
|
|
93
|
+
|
|
94
|
+
_obj = cls.model_validate({
|
|
95
|
+
"ttl": obj.get("ttl"),
|
|
96
|
+
"limit": obj.get("limit")
|
|
97
|
+
})
|
|
98
|
+
# store additional fields in additional_properties
|
|
99
|
+
for _key in obj.keys():
|
|
100
|
+
if _key not in cls.__properties:
|
|
101
|
+
_obj.additional_properties[_key] = obj.get(_key)
|
|
102
|
+
|
|
103
|
+
return _obj
|
|
104
|
+
|
|
105
|
+
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Northrays
|
|
5
|
+
|
|
6
|
+
Northrays AI platform API Docs
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0
|
|
9
|
+
Contact: support@northrays.com
|
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
|
+
|
|
12
|
+
Do not edit the class manually.
|
|
13
|
+
""" # noqa: E501
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
from __future__ import annotations
|
|
17
|
+
import pprint
|
|
18
|
+
import re # noqa: F401
|
|
19
|
+
import json
|
|
20
|
+
|
|
21
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
22
|
+
from typing import Any, ClassVar, Dict, List
|
|
23
|
+
from pydantic import TypeAdapter
|
|
24
|
+
from typing import Optional, Set
|
|
25
|
+
from typing_extensions import Self
|
|
26
|
+
|
|
27
|
+
_JSON_ADAPTER = TypeAdapter(Dict[str, Any])
|
|
28
|
+
|
|
29
|
+
class RegenerateApiKeyResponse(BaseModel):
|
|
30
|
+
"""
|
|
31
|
+
RegenerateApiKeyResponse
|
|
32
|
+
""" # noqa: E501
|
|
33
|
+
api_key: StrictStr = Field(description="The newly generated API key", serialization_alias="apiKey")
|
|
34
|
+
additional_properties: Dict[str, Any] = {}
|
|
35
|
+
__properties: ClassVar[List[str]] = ["apiKey"]
|
|
36
|
+
|
|
37
|
+
model_config = ConfigDict(
|
|
38
|
+
populate_by_name=True,
|
|
39
|
+
validate_assignment=True,
|
|
40
|
+
protected_namespaces=(),
|
|
41
|
+
)
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
def to_str(self) -> str:
|
|
45
|
+
"""Returns the string representation of the model using alias"""
|
|
46
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
47
|
+
|
|
48
|
+
def to_json(self) -> str:
|
|
49
|
+
"""Returns the JSON representation of the model using alias"""
|
|
50
|
+
return _JSON_ADAPTER.dump_json(self.to_dict()).decode()
|
|
51
|
+
|
|
52
|
+
@classmethod
|
|
53
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
54
|
+
"""Create an instance of RegenerateApiKeyResponse from a JSON string"""
|
|
55
|
+
return cls.from_dict(json.loads(json_str))
|
|
56
|
+
|
|
57
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
58
|
+
"""Return the dictionary representation of the model using alias.
|
|
59
|
+
|
|
60
|
+
This has the following differences from calling pydantic's
|
|
61
|
+
`self.model_dump(by_alias=True)`:
|
|
62
|
+
|
|
63
|
+
* `None` is only added to the output dict for nullable fields that
|
|
64
|
+
were set at model initialization. Other fields with value `None`
|
|
65
|
+
are ignored.
|
|
66
|
+
* Fields in `self.additional_properties` are added to the output dict.
|
|
67
|
+
"""
|
|
68
|
+
excluded_fields: Set[str] = set([
|
|
69
|
+
"additional_properties",
|
|
70
|
+
])
|
|
71
|
+
|
|
72
|
+
_dict = self.model_dump(
|
|
73
|
+
by_alias=True,
|
|
74
|
+
exclude=excluded_fields,
|
|
75
|
+
exclude_none=True,
|
|
76
|
+
)
|
|
77
|
+
# puts key-value pairs in additional_properties in the top level
|
|
78
|
+
if self.additional_properties is not None:
|
|
79
|
+
for _key, _value in self.additional_properties.items():
|
|
80
|
+
_dict[_key] = _value
|
|
81
|
+
|
|
82
|
+
return _dict
|
|
83
|
+
|
|
84
|
+
@classmethod
|
|
85
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
86
|
+
"""Create an instance of RegenerateApiKeyResponse from a dict"""
|
|
87
|
+
if obj is None:
|
|
88
|
+
return None
|
|
89
|
+
|
|
90
|
+
if not isinstance(obj, dict):
|
|
91
|
+
return cls.model_validate(obj)
|
|
92
|
+
|
|
93
|
+
_obj = cls.model_validate({
|
|
94
|
+
"api_key": obj.get("apiKey")
|
|
95
|
+
})
|
|
96
|
+
# store additional fields in additional_properties
|
|
97
|
+
for _key in obj.keys():
|
|
98
|
+
if _key not in cls.__properties:
|
|
99
|
+
_obj.additional_properties[_key] = obj.get(_key)
|
|
100
|
+
|
|
101
|
+
return _obj
|
|
102
|
+
|
|
103
|
+
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Northrays
|
|
5
|
+
|
|
6
|
+
Northrays AI platform API Docs
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0
|
|
9
|
+
Contact: support@northrays.com
|
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
|
+
|
|
12
|
+
Do not edit the class manually.
|
|
13
|
+
""" # noqa: E501
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
from __future__ import annotations
|
|
17
|
+
import pprint
|
|
18
|
+
import re # noqa: F401
|
|
19
|
+
import json
|
|
20
|
+
|
|
21
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
22
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
23
|
+
from northrays_api_client.models.region_type import RegionType
|
|
24
|
+
from pydantic import TypeAdapter
|
|
25
|
+
from typing import Optional, Set
|
|
26
|
+
from typing_extensions import Self
|
|
27
|
+
|
|
28
|
+
_JSON_ADAPTER = TypeAdapter(Dict[str, Any])
|
|
29
|
+
|
|
30
|
+
class Region(BaseModel):
|
|
31
|
+
"""
|
|
32
|
+
Region
|
|
33
|
+
""" # noqa: E501
|
|
34
|
+
id: StrictStr = Field(description="Region ID")
|
|
35
|
+
name: StrictStr = Field(description="Region name")
|
|
36
|
+
organization_id: Optional[StrictStr] = Field(default=None, description="Organization ID", serialization_alias="organizationId")
|
|
37
|
+
region_type: RegionType = Field(description="The type of the region", serialization_alias="regionType")
|
|
38
|
+
created_at: StrictStr = Field(description="Creation timestamp", serialization_alias="createdAt")
|
|
39
|
+
updated_at: StrictStr = Field(description="Last update timestamp", serialization_alias="updatedAt")
|
|
40
|
+
proxy_url: Optional[StrictStr] = Field(default=None, description="Proxy URL for the region", serialization_alias="proxyUrl")
|
|
41
|
+
ssh_gateway_url: Optional[StrictStr] = Field(default=None, description="SSH Gateway URL for the region", serialization_alias="sshGatewayUrl")
|
|
42
|
+
snapshot_manager_url: Optional[StrictStr] = Field(default=None, description="Snapshot Manager URL for the region", serialization_alias="snapshotManagerUrl")
|
|
43
|
+
additional_properties: Dict[str, Any] = {}
|
|
44
|
+
__properties: ClassVar[List[str]] = ["id", "name", "organizationId", "regionType", "createdAt", "updatedAt", "proxyUrl", "sshGatewayUrl", "snapshotManagerUrl"]
|
|
45
|
+
|
|
46
|
+
model_config = ConfigDict(
|
|
47
|
+
populate_by_name=True,
|
|
48
|
+
validate_assignment=True,
|
|
49
|
+
protected_namespaces=(),
|
|
50
|
+
)
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
def to_str(self) -> str:
|
|
54
|
+
"""Returns the string representation of the model using alias"""
|
|
55
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
56
|
+
|
|
57
|
+
def to_json(self) -> str:
|
|
58
|
+
"""Returns the JSON representation of the model using alias"""
|
|
59
|
+
return _JSON_ADAPTER.dump_json(self.to_dict()).decode()
|
|
60
|
+
|
|
61
|
+
@classmethod
|
|
62
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
63
|
+
"""Create an instance of Region from a JSON string"""
|
|
64
|
+
return cls.from_dict(json.loads(json_str))
|
|
65
|
+
|
|
66
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
67
|
+
"""Return the dictionary representation of the model using alias.
|
|
68
|
+
|
|
69
|
+
This has the following differences from calling pydantic's
|
|
70
|
+
`self.model_dump(by_alias=True)`:
|
|
71
|
+
|
|
72
|
+
* `None` is only added to the output dict for nullable fields that
|
|
73
|
+
were set at model initialization. Other fields with value `None`
|
|
74
|
+
are ignored.
|
|
75
|
+
* Fields in `self.additional_properties` are added to the output dict.
|
|
76
|
+
"""
|
|
77
|
+
excluded_fields: Set[str] = set([
|
|
78
|
+
"additional_properties",
|
|
79
|
+
])
|
|
80
|
+
|
|
81
|
+
_dict = self.model_dump(
|
|
82
|
+
by_alias=True,
|
|
83
|
+
exclude=excluded_fields,
|
|
84
|
+
exclude_none=True,
|
|
85
|
+
)
|
|
86
|
+
# puts key-value pairs in additional_properties in the top level
|
|
87
|
+
if self.additional_properties is not None:
|
|
88
|
+
for _key, _value in self.additional_properties.items():
|
|
89
|
+
_dict[_key] = _value
|
|
90
|
+
|
|
91
|
+
# set to None if organization_id (nullable) is None
|
|
92
|
+
# and model_fields_set contains the field
|
|
93
|
+
if self.organization_id is None and "organization_id" in self.model_fields_set:
|
|
94
|
+
_dict['organizationId'] = None
|
|
95
|
+
|
|
96
|
+
# set to None if proxy_url (nullable) is None
|
|
97
|
+
# and model_fields_set contains the field
|
|
98
|
+
if self.proxy_url is None and "proxy_url" in self.model_fields_set:
|
|
99
|
+
_dict['proxyUrl'] = None
|
|
100
|
+
|
|
101
|
+
# set to None if ssh_gateway_url (nullable) is None
|
|
102
|
+
# and model_fields_set contains the field
|
|
103
|
+
if self.ssh_gateway_url is None and "ssh_gateway_url" in self.model_fields_set:
|
|
104
|
+
_dict['sshGatewayUrl'] = None
|
|
105
|
+
|
|
106
|
+
# set to None if snapshot_manager_url (nullable) is None
|
|
107
|
+
# and model_fields_set contains the field
|
|
108
|
+
if self.snapshot_manager_url is None and "snapshot_manager_url" in self.model_fields_set:
|
|
109
|
+
_dict['snapshotManagerUrl'] = None
|
|
110
|
+
|
|
111
|
+
return _dict
|
|
112
|
+
|
|
113
|
+
@classmethod
|
|
114
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
115
|
+
"""Create an instance of Region from a dict"""
|
|
116
|
+
if obj is None:
|
|
117
|
+
return None
|
|
118
|
+
|
|
119
|
+
if not isinstance(obj, dict):
|
|
120
|
+
return cls.model_validate(obj)
|
|
121
|
+
|
|
122
|
+
_obj = cls.model_validate({
|
|
123
|
+
"id": obj.get("id"),
|
|
124
|
+
"name": obj.get("name"),
|
|
125
|
+
"organization_id": obj.get("organizationId"),
|
|
126
|
+
"region_type": obj.get("regionType"),
|
|
127
|
+
"created_at": obj.get("createdAt"),
|
|
128
|
+
"updated_at": obj.get("updatedAt"),
|
|
129
|
+
"proxy_url": obj.get("proxyUrl"),
|
|
130
|
+
"ssh_gateway_url": obj.get("sshGatewayUrl"),
|
|
131
|
+
"snapshot_manager_url": obj.get("snapshotManagerUrl")
|
|
132
|
+
})
|
|
133
|
+
# store additional fields in additional_properties
|
|
134
|
+
for _key in obj.keys():
|
|
135
|
+
if _key not in cls.__properties:
|
|
136
|
+
_obj.additional_properties[_key] = obj.get(_key)
|
|
137
|
+
|
|
138
|
+
return _obj
|
|
139
|
+
|
|
140
|
+
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Northrays
|
|
5
|
+
|
|
6
|
+
Northrays AI platform API Docs
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0
|
|
9
|
+
Contact: support@northrays.com
|
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
|
+
|
|
12
|
+
Do not edit the class manually.
|
|
13
|
+
""" # noqa: E501
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
from __future__ import annotations
|
|
17
|
+
import pprint
|
|
18
|
+
import re # noqa: F401
|
|
19
|
+
import json
|
|
20
|
+
|
|
21
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr
|
|
22
|
+
from typing import Any, ClassVar, Dict, List, Optional, Union
|
|
23
|
+
from northrays_api_client.models.gpu_type import GpuType
|
|
24
|
+
from northrays_api_client.models.sandbox_class import SandboxClass
|
|
25
|
+
from pydantic import TypeAdapter
|
|
26
|
+
from typing import Optional, Set
|
|
27
|
+
from typing_extensions import Self
|
|
28
|
+
|
|
29
|
+
_JSON_ADAPTER = TypeAdapter(Dict[str, Any])
|
|
30
|
+
|
|
31
|
+
class RegionQuota(BaseModel):
|
|
32
|
+
"""
|
|
33
|
+
RegionQuota
|
|
34
|
+
""" # noqa: E501
|
|
35
|
+
organization_id: StrictStr = Field(serialization_alias="organizationId")
|
|
36
|
+
region_id: StrictStr = Field(serialization_alias="regionId")
|
|
37
|
+
sandbox_class: SandboxClass = Field(serialization_alias="sandboxClass")
|
|
38
|
+
total_cpu_quota: Union[StrictFloat, StrictInt] = Field(serialization_alias="totalCpuQuota")
|
|
39
|
+
total_memory_quota: Union[StrictFloat, StrictInt] = Field(serialization_alias="totalMemoryQuota")
|
|
40
|
+
total_disk_quota: Union[StrictFloat, StrictInt] = Field(serialization_alias="totalDiskQuota")
|
|
41
|
+
total_gpu_quota: Union[StrictFloat, StrictInt] = Field(serialization_alias="totalGpuQuota")
|
|
42
|
+
allowed_gpu_types: Optional[List[GpuType]] = Field(default=None, serialization_alias="allowedGpuTypes")
|
|
43
|
+
max_cpu_per_sandbox: Optional[Union[StrictFloat, StrictInt]] = Field(serialization_alias="maxCpuPerSandbox")
|
|
44
|
+
max_memory_per_sandbox: Optional[Union[StrictFloat, StrictInt]] = Field(serialization_alias="maxMemoryPerSandbox")
|
|
45
|
+
max_disk_per_sandbox: Optional[Union[StrictFloat, StrictInt]] = Field(serialization_alias="maxDiskPerSandbox")
|
|
46
|
+
max_disk_per_non_ephemeral_sandbox: Optional[Union[StrictFloat, StrictInt]] = Field(serialization_alias="maxDiskPerNonEphemeralSandbox")
|
|
47
|
+
max_cpu_per_gpu_sandbox: Optional[Union[StrictFloat, StrictInt]] = Field(serialization_alias="maxCpuPerGpuSandbox")
|
|
48
|
+
max_memory_per_gpu_sandbox: Optional[Union[StrictFloat, StrictInt]] = Field(serialization_alias="maxMemoryPerGpuSandbox")
|
|
49
|
+
max_disk_per_gpu_sandbox: Optional[Union[StrictFloat, StrictInt]] = Field(serialization_alias="maxDiskPerGpuSandbox")
|
|
50
|
+
additional_properties: Dict[str, Any] = {}
|
|
51
|
+
__properties: ClassVar[List[str]] = ["organizationId", "regionId", "sandboxClass", "totalCpuQuota", "totalMemoryQuota", "totalDiskQuota", "totalGpuQuota", "allowedGpuTypes", "maxCpuPerSandbox", "maxMemoryPerSandbox", "maxDiskPerSandbox", "maxDiskPerNonEphemeralSandbox", "maxCpuPerGpuSandbox", "maxMemoryPerGpuSandbox", "maxDiskPerGpuSandbox"]
|
|
52
|
+
|
|
53
|
+
model_config = ConfigDict(
|
|
54
|
+
populate_by_name=True,
|
|
55
|
+
validate_assignment=True,
|
|
56
|
+
protected_namespaces=(),
|
|
57
|
+
)
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
def to_str(self) -> str:
|
|
61
|
+
"""Returns the string representation of the model using alias"""
|
|
62
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
63
|
+
|
|
64
|
+
def to_json(self) -> str:
|
|
65
|
+
"""Returns the JSON representation of the model using alias"""
|
|
66
|
+
return _JSON_ADAPTER.dump_json(self.to_dict()).decode()
|
|
67
|
+
|
|
68
|
+
@classmethod
|
|
69
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
70
|
+
"""Create an instance of RegionQuota from a JSON string"""
|
|
71
|
+
return cls.from_dict(json.loads(json_str))
|
|
72
|
+
|
|
73
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
74
|
+
"""Return the dictionary representation of the model using alias.
|
|
75
|
+
|
|
76
|
+
This has the following differences from calling pydantic's
|
|
77
|
+
`self.model_dump(by_alias=True)`:
|
|
78
|
+
|
|
79
|
+
* `None` is only added to the output dict for nullable fields that
|
|
80
|
+
were set at model initialization. Other fields with value `None`
|
|
81
|
+
are ignored.
|
|
82
|
+
* Fields in `self.additional_properties` are added to the output dict.
|
|
83
|
+
"""
|
|
84
|
+
excluded_fields: Set[str] = set([
|
|
85
|
+
"additional_properties",
|
|
86
|
+
])
|
|
87
|
+
|
|
88
|
+
_dict = self.model_dump(
|
|
89
|
+
by_alias=True,
|
|
90
|
+
exclude=excluded_fields,
|
|
91
|
+
exclude_none=True,
|
|
92
|
+
)
|
|
93
|
+
# puts key-value pairs in additional_properties in the top level
|
|
94
|
+
if self.additional_properties is not None:
|
|
95
|
+
for _key, _value in self.additional_properties.items():
|
|
96
|
+
_dict[_key] = _value
|
|
97
|
+
|
|
98
|
+
# set to None if max_cpu_per_sandbox (nullable) is None
|
|
99
|
+
# and model_fields_set contains the field
|
|
100
|
+
if self.max_cpu_per_sandbox is None and "max_cpu_per_sandbox" in self.model_fields_set:
|
|
101
|
+
_dict['maxCpuPerSandbox'] = None
|
|
102
|
+
|
|
103
|
+
# set to None if max_memory_per_sandbox (nullable) is None
|
|
104
|
+
# and model_fields_set contains the field
|
|
105
|
+
if self.max_memory_per_sandbox is None and "max_memory_per_sandbox" in self.model_fields_set:
|
|
106
|
+
_dict['maxMemoryPerSandbox'] = None
|
|
107
|
+
|
|
108
|
+
# set to None if max_disk_per_sandbox (nullable) is None
|
|
109
|
+
# and model_fields_set contains the field
|
|
110
|
+
if self.max_disk_per_sandbox is None and "max_disk_per_sandbox" in self.model_fields_set:
|
|
111
|
+
_dict['maxDiskPerSandbox'] = None
|
|
112
|
+
|
|
113
|
+
# set to None if max_disk_per_non_ephemeral_sandbox (nullable) is None
|
|
114
|
+
# and model_fields_set contains the field
|
|
115
|
+
if self.max_disk_per_non_ephemeral_sandbox is None and "max_disk_per_non_ephemeral_sandbox" in self.model_fields_set:
|
|
116
|
+
_dict['maxDiskPerNonEphemeralSandbox'] = None
|
|
117
|
+
|
|
118
|
+
# set to None if max_cpu_per_gpu_sandbox (nullable) is None
|
|
119
|
+
# and model_fields_set contains the field
|
|
120
|
+
if self.max_cpu_per_gpu_sandbox is None and "max_cpu_per_gpu_sandbox" in self.model_fields_set:
|
|
121
|
+
_dict['maxCpuPerGpuSandbox'] = None
|
|
122
|
+
|
|
123
|
+
# set to None if max_memory_per_gpu_sandbox (nullable) is None
|
|
124
|
+
# and model_fields_set contains the field
|
|
125
|
+
if self.max_memory_per_gpu_sandbox is None and "max_memory_per_gpu_sandbox" in self.model_fields_set:
|
|
126
|
+
_dict['maxMemoryPerGpuSandbox'] = None
|
|
127
|
+
|
|
128
|
+
# set to None if max_disk_per_gpu_sandbox (nullable) is None
|
|
129
|
+
# and model_fields_set contains the field
|
|
130
|
+
if self.max_disk_per_gpu_sandbox is None and "max_disk_per_gpu_sandbox" in self.model_fields_set:
|
|
131
|
+
_dict['maxDiskPerGpuSandbox'] = None
|
|
132
|
+
|
|
133
|
+
return _dict
|
|
134
|
+
|
|
135
|
+
@classmethod
|
|
136
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
137
|
+
"""Create an instance of RegionQuota from a dict"""
|
|
138
|
+
if obj is None:
|
|
139
|
+
return None
|
|
140
|
+
|
|
141
|
+
if not isinstance(obj, dict):
|
|
142
|
+
return cls.model_validate(obj)
|
|
143
|
+
|
|
144
|
+
_obj = cls.model_validate({
|
|
145
|
+
"organization_id": obj.get("organizationId"),
|
|
146
|
+
"region_id": obj.get("regionId"),
|
|
147
|
+
"sandbox_class": obj.get("sandboxClass"),
|
|
148
|
+
"total_cpu_quota": obj.get("totalCpuQuota"),
|
|
149
|
+
"total_memory_quota": obj.get("totalMemoryQuota"),
|
|
150
|
+
"total_disk_quota": obj.get("totalDiskQuota"),
|
|
151
|
+
"total_gpu_quota": obj.get("totalGpuQuota"),
|
|
152
|
+
"allowed_gpu_types": obj.get("allowedGpuTypes"),
|
|
153
|
+
"max_cpu_per_sandbox": obj.get("maxCpuPerSandbox"),
|
|
154
|
+
"max_memory_per_sandbox": obj.get("maxMemoryPerSandbox"),
|
|
155
|
+
"max_disk_per_sandbox": obj.get("maxDiskPerSandbox"),
|
|
156
|
+
"max_disk_per_non_ephemeral_sandbox": obj.get("maxDiskPerNonEphemeralSandbox"),
|
|
157
|
+
"max_cpu_per_gpu_sandbox": obj.get("maxCpuPerGpuSandbox"),
|
|
158
|
+
"max_memory_per_gpu_sandbox": obj.get("maxMemoryPerGpuSandbox"),
|
|
159
|
+
"max_disk_per_gpu_sandbox": obj.get("maxDiskPerGpuSandbox")
|
|
160
|
+
})
|
|
161
|
+
# store additional fields in additional_properties
|
|
162
|
+
for _key in obj.keys():
|
|
163
|
+
if _key not in cls.__properties:
|
|
164
|
+
_obj.additional_properties[_key] = obj.get(_key)
|
|
165
|
+
|
|
166
|
+
return _obj
|
|
167
|
+
|
|
168
|
+
|