e2b 2.62.1__tar.gz → 2.63.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.
- {e2b-2.62.1 → e2b-2.63.0}/PKG-INFO +1 -1
- {e2b-2.62.1 → e2b-2.63.0}/e2b/__init__.py +2 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/__init__.py +6 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/api/sandboxes/delete_sandboxes_sandbox_id.py +4 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/api/sandboxes/get_sandboxes.py +8 -4
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/api/sandboxes/post_sandboxes_sandbox_id_connect.py +12 -4
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/api/sandboxes/post_sandboxes_sandbox_id_pause.py +12 -4
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/api/sandboxes/post_sandboxes_sandbox_id_resume.py +16 -4
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/api/sandboxes/post_sandboxes_sandbox_id_snapshots.py +4 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/api/sandboxes/post_v_2_sandboxes_sandbox_id_connect.py +12 -4
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/api/templates/get_templates.py +12 -4
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/connect_sandbox.py +2 -1
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/connect_sandbox_v2.py +2 -1
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/error.py +5 -1
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/listed_sandbox.py +13 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/resumed_sandbox.py +2 -1
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/sandbox_detail.py +13 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/sandbox_pause_request.py +14 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/exceptions.py +16 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/sandbox/sandbox_api.py +5 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/sandbox_async/main.py +10 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/sandbox_async/sandbox_api.py +5 -1
- {e2b-2.62.1 → e2b-2.63.0}/e2b/sandbox_sync/main.py +10 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/sandbox_sync/sandbox_api.py +5 -1
- {e2b-2.62.1 → e2b-2.63.0}/pyproject.toml +1 -1
- {e2b-2.62.1 → e2b-2.63.0}/pyproject.toml.orig +1 -1
- {e2b-2.62.1 → e2b-2.63.0}/README.md +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/__init__.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/api/__init__.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/api/sandboxes/__init__.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/api/sandboxes/get_sandboxes_metrics.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/api/sandboxes/get_sandboxes_sandbox_id.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/api/sandboxes/get_sandboxes_sandbox_id_logs.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/api/sandboxes/get_sandboxes_sandbox_id_metrics.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/api/sandboxes/get_v2_sandboxes.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/api/sandboxes/get_v_2_sandboxes_sandbox_id_logs.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/api/sandboxes/post_sandboxes.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/api/sandboxes/post_sandboxes_sandbox_id_fork.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/api/sandboxes/post_sandboxes_sandbox_id_refreshes.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/api/sandboxes/post_sandboxes_sandbox_id_timeout.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/api/sandboxes/post_v2_sandboxes.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/api/sandboxes/put_sandboxes_sandbox_id_network.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/api/secrets/__init__.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/api/secrets/delete_secrets_secret_id.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/api/secrets/get_secrets.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/api/secrets/get_secrets_secret_id.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/api/secrets/post_secrets.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/api/secrets/post_secrets_secret_id.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/api/snapshots/__init__.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/api/snapshots/get_snapshots.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/api/tags/__init__.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/api/tags/delete_templates_tags.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/api/tags/get_templates_template_id_tags.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/api/tags/get_templates_template_id_tags_count.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/api/tags/get_templates_template_id_tags_exists.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/api/tags/get_templates_template_id_tags_groups.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/api/tags/get_templates_template_id_tags_tag_assignments.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/api/tags/post_templates_tags.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/api/templates/__init__.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/api/templates/delete_templates_template_id.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/api/templates/get_default_templates.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/api/templates/get_templates_aliases_alias.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/api/templates/get_templates_template_id.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/api/templates/get_templates_template_id_builds_build_id_logs.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/api/templates/get_templates_template_id_builds_build_id_status.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/api/templates/get_templates_template_id_files_hash.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/api/templates/get_v2_templates.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/api/templates/patch_templates_template_id.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/api/templates/patch_v_2_templates_template_id.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/api/templates/post_v3_templates.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/api/templates/post_v_2_templates_template_id_builds_build_id.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/api/volumes/__init__.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/api/volumes/delete_volumes_volume_id.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/api/volumes/get_volumes.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/api/volumes/get_volumes_volume_id.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/api/volumes/post_volumes.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/client.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/errors.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/__init__.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/assign_template_tags_request.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/assigned_template_tags.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/aws_registry.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/aws_registry_type.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/build_log_entry.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/build_status_reason.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/delete_template_tags_request.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/gcp_registry.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/gcp_registry_type.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/general_registry.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/general_registry_type.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/get_templates_template_id_tags_groups_sort.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/log_level.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/logs_direction.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/logs_source.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/mcp_type_0.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/new_sandbox.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/new_sandbox_v2.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/new_secret.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/new_volume.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/order_direction.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/sandbox.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/sandbox_auto_resume_config.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/sandbox_egress_proxy_config_type_0.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/sandbox_egress_proxy_tls_config_type_0.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/sandbox_fork_request.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/sandbox_fork_result.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/sandbox_iam.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/sandbox_iam_token.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/sandbox_iam_tokens.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/sandbox_lifecycle.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/sandbox_log.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/sandbox_log_entry.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/sandbox_log_entry_fields.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/sandbox_logs.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/sandbox_logs_v2_response.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/sandbox_metric.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/sandbox_network_config.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/sandbox_network_config_rules.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/sandbox_network_rule.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/sandbox_network_transform.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/sandbox_network_transform_headers.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/sandbox_network_update_config.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/sandbox_network_update_config_rules.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/sandbox_on_timeout.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/sandbox_pause_mode.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/sandbox_refresh_request.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/sandbox_snapshot_request.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/sandbox_state.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/sandbox_timeout_request.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/sandbox_volume_mount.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/sandboxes_with_metrics.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/secret.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/secret_metadata.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/secret_update.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/snapshot_info.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/team_user.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/template.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/template_alias_response.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/template_build.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/template_build_file_upload.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/template_build_file_upload_headers.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/template_build_info.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/template_build_logs_response.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/template_build_request_v3.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/template_build_start_v2.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/template_build_status.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/template_request_response_v3.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/template_step.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/template_tag.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/template_tag_assignment.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/template_tag_assignments_response.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/template_tag_exists_response.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/template_tag_group.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/template_tag_groups_response.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/template_tags_count_response.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/template_update_request.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/template_update_response.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/template_with_builds.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/volume.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/models/volume_and_token.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/py.typed +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/types.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client_async/__init__.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/client_sync/__init__.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/api/metadata.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/client.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/connection_config.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/envd/__init__.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/envd/api.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/envd/client_async/__init__.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/envd/client_shared.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/envd/client_sync/__init__.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/envd/filesystem/__init__.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/envd/filesystem/filesystem_connect.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/envd/filesystem/filesystem_pb.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/envd/interceptors.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/envd/process/__init__.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/envd/process/process_connect.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/envd/process/process_pb.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/envd/rpc.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/envd/utils.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/envd/versions.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/io_utils.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/paginator.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/py.typed +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/retry.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/sandbox/_git/__init__.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/sandbox/_git/args.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/sandbox/_git/auth.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/sandbox/_git/config.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/sandbox/_git/parse.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/sandbox/_git/types.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/sandbox/commands/command_handle.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/sandbox/commands/main.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/sandbox/commands/stream_input.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/sandbox/filesystem/filesystem.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/sandbox/filesystem/watch_handle.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/sandbox/iam.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/sandbox/main.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/sandbox/mcp.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/sandbox/network.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/sandbox/signature.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/sandbox/utils.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/sandbox_async/commands/command.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/sandbox_async/commands/command_handle.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/sandbox_async/commands/command_input_handle.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/sandbox_async/commands/pty.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/sandbox_async/filesystem/filesystem.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/sandbox_async/filesystem/watch_handle.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/sandbox_async/git.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/sandbox_async/paginator.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/sandbox_async/utils.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/sandbox_domains.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/sandbox_sync/commands/command.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/sandbox_sync/commands/command_handle.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/sandbox_sync/commands/pty.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/sandbox_sync/filesystem/filesystem.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/sandbox_sync/filesystem/watch_handle.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/sandbox_sync/git.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/sandbox_sync/paginator.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/secret/__init__.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/secret/base.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/secret/secret_async.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/secret/secret_sync.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/secret/types.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/template/consts.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/template/dockerfile_parser.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/template/logger.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/template/main.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/template/readycmd.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/template/types.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/template/utils.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/template_async/build_api.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/template_async/main.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/template_sync/build_api.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/template_sync/main.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/volume/client/__init__.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/volume/client/api/__init__.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/volume/client/api/volumes/__init__.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/volume/client/api/volumes/delete_volumecontent_volume_id_path.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/volume/client/api/volumes/get_volumecontent_volume_id_dir.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/volume/client/api/volumes/get_volumecontent_volume_id_file.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/volume/client/api/volumes/get_volumecontent_volume_id_path.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/volume/client/api/volumes/patch_volumecontent_volume_id_path.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/volume/client/api/volumes/post_volumecontent_volume_id_dir.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/volume/client/api/volumes/put_volumecontent_volume_id_file.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/volume/client/client.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/volume/client/errors.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/volume/client/models/__init__.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/volume/client/models/error.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/volume/client/models/patch_volumecontent_volume_id_path_body.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/volume/client/models/volume_entry_stat.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/volume/client/models/volume_entry_stat_type.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/volume/client/py.typed +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/volume/client/types.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/volume/client_async/__init__.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/volume/client_sync/__init__.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/volume/connection_config.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/volume/types.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/volume/utils.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/volume/volume_async.py +0 -0
- {e2b-2.62.1 → e2b-2.63.0}/e2b/volume/volume_sync.py +0 -0
|
@@ -44,6 +44,7 @@ from .exceptions import (
|
|
|
44
44
|
GitUpstreamException,
|
|
45
45
|
BuildException,
|
|
46
46
|
FileUploadException,
|
|
47
|
+
GuestUnresponsiveException,
|
|
47
48
|
InvalidArgumentException,
|
|
48
49
|
NotEnoughSpaceException,
|
|
49
50
|
NotFoundException,
|
|
@@ -208,6 +209,7 @@ __all__ = [
|
|
|
208
209
|
"DockerfileSyntaxError",
|
|
209
210
|
"BuildException",
|
|
210
211
|
"FileUploadException",
|
|
212
|
+
"GuestUnresponsiveException",
|
|
211
213
|
"RateLimitException",
|
|
212
214
|
"VolumeException",
|
|
213
215
|
"VolumeNotFoundException",
|
|
@@ -22,6 +22,7 @@ from e2b.api.metadata import default_headers
|
|
|
22
22
|
from e2b.connection_config import ConnectionConfig, ProxyTypes
|
|
23
23
|
from e2b.exceptions import (
|
|
24
24
|
AuthenticationException,
|
|
25
|
+
GuestUnresponsiveException,
|
|
25
26
|
InvalidArgumentException,
|
|
26
27
|
RateLimitException,
|
|
27
28
|
ServiceBusyException,
|
|
@@ -199,6 +200,11 @@ def handle_api_exception(
|
|
|
199
200
|
body = {}
|
|
200
201
|
|
|
201
202
|
message = body["message"] if "message" in body else None
|
|
203
|
+
if body.get("error_code") == GuestUnresponsiveException.code:
|
|
204
|
+
return GuestUnresponsiveException(
|
|
205
|
+
f'{message}. Resume the sandbox with on_resume="reboot".'
|
|
206
|
+
).with_traceback(stack_trace)
|
|
207
|
+
|
|
202
208
|
if message is None and e.status_code not in (401, 429, 503):
|
|
203
209
|
err = default_exception_class(f"{e.status_code}: {e.content}").with_traceback(
|
|
204
210
|
stack_trace
|
|
@@ -34,6 +34,10 @@ def _parse_response(
|
|
|
34
34
|
response_404 = Error.from_dict(response.json())
|
|
35
35
|
|
|
36
36
|
return response_404
|
|
37
|
+
if response.status_code == 409:
|
|
38
|
+
response_409 = Error.from_dict(response.json())
|
|
39
|
+
|
|
40
|
+
return response_409
|
|
37
41
|
if response.status_code == 429:
|
|
38
42
|
response_429 = Error.from_dict(response.json())
|
|
39
43
|
|
|
@@ -81,7 +81,8 @@ def sync_detailed(
|
|
|
81
81
|
) -> Response[Union[Error, list["ListedSandbox"]]]:
|
|
82
82
|
"""List running sandboxes
|
|
83
83
|
|
|
84
|
-
List all running sandboxes.
|
|
84
|
+
List all running sandboxes. Returns 400 when more than 5000 running sandboxes match; use GET
|
|
85
|
+
/v2/sandboxes to page through them.
|
|
85
86
|
|
|
86
87
|
Args:
|
|
87
88
|
metadata (Union[Unset, str]):
|
|
@@ -112,7 +113,8 @@ def sync(
|
|
|
112
113
|
) -> Optional[Union[Error, list["ListedSandbox"]]]:
|
|
113
114
|
"""List running sandboxes
|
|
114
115
|
|
|
115
|
-
List all running sandboxes.
|
|
116
|
+
List all running sandboxes. Returns 400 when more than 5000 running sandboxes match; use GET
|
|
117
|
+
/v2/sandboxes to page through them.
|
|
116
118
|
|
|
117
119
|
Args:
|
|
118
120
|
metadata (Union[Unset, str]):
|
|
@@ -138,7 +140,8 @@ async def asyncio_detailed(
|
|
|
138
140
|
) -> Response[Union[Error, list["ListedSandbox"]]]:
|
|
139
141
|
"""List running sandboxes
|
|
140
142
|
|
|
141
|
-
List all running sandboxes.
|
|
143
|
+
List all running sandboxes. Returns 400 when more than 5000 running sandboxes match; use GET
|
|
144
|
+
/v2/sandboxes to page through them.
|
|
142
145
|
|
|
143
146
|
Args:
|
|
144
147
|
metadata (Union[Unset, str]):
|
|
@@ -167,7 +170,8 @@ async def asyncio(
|
|
|
167
170
|
) -> Optional[Union[Error, list["ListedSandbox"]]]:
|
|
168
171
|
"""List running sandboxes
|
|
169
172
|
|
|
170
|
-
List all running sandboxes.
|
|
173
|
+
List all running sandboxes. Returns 400 when more than 5000 running sandboxes match; use GET
|
|
174
|
+
/v2/sandboxes to page through them.
|
|
171
175
|
|
|
172
176
|
Args:
|
|
173
177
|
metadata (Union[Unset, str]):
|
|
@@ -100,7 +100,9 @@ def sync_detailed(
|
|
|
100
100
|
"""Connect sandbox
|
|
101
101
|
|
|
102
102
|
Returns sandbox details. If the sandbox is paused, it will be resumed. TTL is only extended. Use
|
|
103
|
-
POST /v2/sandboxes/{sandboxID}/connect instead.
|
|
103
|
+
POST /v2/sandboxes/{sandboxID}/connect instead. Answers 409 with error_code
|
|
104
|
+
sandbox_snapshot_guest_agent_unresponsive when the paused sandbox's snapshot was taken while its
|
|
105
|
+
guest agent was not responding and the request did not ask for `memory: false`.
|
|
104
106
|
|
|
105
107
|
Args:
|
|
106
108
|
sandbox_id (str):
|
|
@@ -135,7 +137,9 @@ def sync(
|
|
|
135
137
|
"""Connect sandbox
|
|
136
138
|
|
|
137
139
|
Returns sandbox details. If the sandbox is paused, it will be resumed. TTL is only extended. Use
|
|
138
|
-
POST /v2/sandboxes/{sandboxID}/connect instead.
|
|
140
|
+
POST /v2/sandboxes/{sandboxID}/connect instead. Answers 409 with error_code
|
|
141
|
+
sandbox_snapshot_guest_agent_unresponsive when the paused sandbox's snapshot was taken while its
|
|
142
|
+
guest agent was not responding and the request did not ask for `memory: false`.
|
|
139
143
|
|
|
140
144
|
Args:
|
|
141
145
|
sandbox_id (str):
|
|
@@ -165,7 +169,9 @@ async def asyncio_detailed(
|
|
|
165
169
|
"""Connect sandbox
|
|
166
170
|
|
|
167
171
|
Returns sandbox details. If the sandbox is paused, it will be resumed. TTL is only extended. Use
|
|
168
|
-
POST /v2/sandboxes/{sandboxID}/connect instead.
|
|
172
|
+
POST /v2/sandboxes/{sandboxID}/connect instead. Answers 409 with error_code
|
|
173
|
+
sandbox_snapshot_guest_agent_unresponsive when the paused sandbox's snapshot was taken while its
|
|
174
|
+
guest agent was not responding and the request did not ask for `memory: false`.
|
|
169
175
|
|
|
170
176
|
Args:
|
|
171
177
|
sandbox_id (str):
|
|
@@ -198,7 +204,9 @@ async def asyncio(
|
|
|
198
204
|
"""Connect sandbox
|
|
199
205
|
|
|
200
206
|
Returns sandbox details. If the sandbox is paused, it will be resumed. TTL is only extended. Use
|
|
201
|
-
POST /v2/sandboxes/{sandboxID}/connect instead.
|
|
207
|
+
POST /v2/sandboxes/{sandboxID}/connect instead. Answers 409 with error_code
|
|
208
|
+
sandbox_snapshot_guest_agent_unresponsive when the paused sandbox's snapshot was taken while its
|
|
209
|
+
guest agent was not responding and the request did not ask for `memory: false`.
|
|
202
210
|
|
|
203
211
|
Args:
|
|
204
212
|
sandbox_id (str):
|
|
@@ -85,7 +85,9 @@ def sync_detailed(
|
|
|
85
85
|
) -> Response[Union[Any, Error]]:
|
|
86
86
|
"""Pause sandbox
|
|
87
87
|
|
|
88
|
-
Pause the sandbox
|
|
88
|
+
Pause the sandbox. Answers 503 and leaves the sandbox running when it cannot be paused right now:
|
|
89
|
+
its node is busy, it is being snapshotted, or `requireHealthyGuest` was set and the sandbox guest
|
|
90
|
+
agent is not responding; retry later.
|
|
89
91
|
|
|
90
92
|
Args:
|
|
91
93
|
sandbox_id (str):
|
|
@@ -119,7 +121,9 @@ def sync(
|
|
|
119
121
|
) -> Optional[Union[Any, Error]]:
|
|
120
122
|
"""Pause sandbox
|
|
121
123
|
|
|
122
|
-
Pause the sandbox
|
|
124
|
+
Pause the sandbox. Answers 503 and leaves the sandbox running when it cannot be paused right now:
|
|
125
|
+
its node is busy, it is being snapshotted, or `requireHealthyGuest` was set and the sandbox guest
|
|
126
|
+
agent is not responding; retry later.
|
|
123
127
|
|
|
124
128
|
Args:
|
|
125
129
|
sandbox_id (str):
|
|
@@ -148,7 +152,9 @@ async def asyncio_detailed(
|
|
|
148
152
|
) -> Response[Union[Any, Error]]:
|
|
149
153
|
"""Pause sandbox
|
|
150
154
|
|
|
151
|
-
Pause the sandbox
|
|
155
|
+
Pause the sandbox. Answers 503 and leaves the sandbox running when it cannot be paused right now:
|
|
156
|
+
its node is busy, it is being snapshotted, or `requireHealthyGuest` was set and the sandbox guest
|
|
157
|
+
agent is not responding; retry later.
|
|
152
158
|
|
|
153
159
|
Args:
|
|
154
160
|
sandbox_id (str):
|
|
@@ -180,7 +186,9 @@ async def asyncio(
|
|
|
180
186
|
) -> Optional[Union[Any, Error]]:
|
|
181
187
|
"""Pause sandbox
|
|
182
188
|
|
|
183
|
-
Pause the sandbox
|
|
189
|
+
Pause the sandbox. Answers 503 and leaves the sandbox running when it cannot be paused right now:
|
|
190
|
+
its node is busy, it is being snapshotted, or `requireHealthyGuest` was set and the sandbox guest
|
|
191
|
+
agent is not responding; retry later.
|
|
184
192
|
|
|
185
193
|
Args:
|
|
186
194
|
sandbox_id (str):
|
|
@@ -95,7 +95,10 @@ def sync_detailed(
|
|
|
95
95
|
) -> Response[Union[Error, Sandbox]]:
|
|
96
96
|
"""Resume sandbox
|
|
97
97
|
|
|
98
|
-
Resume the sandbox
|
|
98
|
+
Resume the sandbox. Answers 409 when the sandbox is already running, or when its snapshot was taken
|
|
99
|
+
while the sandbox guest agent was not responding and a plain resume would restore that memory
|
|
100
|
+
(error_code sandbox_snapshot_guest_agent_unresponsive); resume such a sandbox without memory
|
|
101
|
+
(`memory: false`).
|
|
99
102
|
|
|
100
103
|
Args:
|
|
101
104
|
sandbox_id (str):
|
|
@@ -129,7 +132,10 @@ def sync(
|
|
|
129
132
|
) -> Optional[Union[Error, Sandbox]]:
|
|
130
133
|
"""Resume sandbox
|
|
131
134
|
|
|
132
|
-
Resume the sandbox
|
|
135
|
+
Resume the sandbox. Answers 409 when the sandbox is already running, or when its snapshot was taken
|
|
136
|
+
while the sandbox guest agent was not responding and a plain resume would restore that memory
|
|
137
|
+
(error_code sandbox_snapshot_guest_agent_unresponsive); resume such a sandbox without memory
|
|
138
|
+
(`memory: false`).
|
|
133
139
|
|
|
134
140
|
Args:
|
|
135
141
|
sandbox_id (str):
|
|
@@ -158,7 +164,10 @@ async def asyncio_detailed(
|
|
|
158
164
|
) -> Response[Union[Error, Sandbox]]:
|
|
159
165
|
"""Resume sandbox
|
|
160
166
|
|
|
161
|
-
Resume the sandbox
|
|
167
|
+
Resume the sandbox. Answers 409 when the sandbox is already running, or when its snapshot was taken
|
|
168
|
+
while the sandbox guest agent was not responding and a plain resume would restore that memory
|
|
169
|
+
(error_code sandbox_snapshot_guest_agent_unresponsive); resume such a sandbox without memory
|
|
170
|
+
(`memory: false`).
|
|
162
171
|
|
|
163
172
|
Args:
|
|
164
173
|
sandbox_id (str):
|
|
@@ -190,7 +199,10 @@ async def asyncio(
|
|
|
190
199
|
) -> Optional[Union[Error, Sandbox]]:
|
|
191
200
|
"""Resume sandbox
|
|
192
201
|
|
|
193
|
-
Resume the sandbox
|
|
202
|
+
Resume the sandbox. Answers 409 when the sandbox is already running, or when its snapshot was taken
|
|
203
|
+
while the sandbox guest agent was not responding and a plain resume would restore that memory
|
|
204
|
+
(error_code sandbox_snapshot_guest_agent_unresponsive); resume such a sandbox without memory
|
|
205
|
+
(`memory: false`).
|
|
194
206
|
|
|
195
207
|
Args:
|
|
196
208
|
sandbox_id (str):
|
{e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/api/sandboxes/post_sandboxes_sandbox_id_snapshots.py
RENAMED
|
@@ -58,6 +58,10 @@ def _parse_response(
|
|
|
58
58
|
response_500 = Error.from_dict(response.json())
|
|
59
59
|
|
|
60
60
|
return response_500
|
|
61
|
+
if response.status_code == 503:
|
|
62
|
+
response_503 = Error.from_dict(response.json())
|
|
63
|
+
|
|
64
|
+
return response_503
|
|
61
65
|
if client.raise_on_unexpected_status:
|
|
62
66
|
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
63
67
|
else:
|
{e2b-2.62.1 → e2b-2.63.0}/e2b/api/client/api/sandboxes/post_v_2_sandboxes_sandbox_id_connect.py
RENAMED
|
@@ -100,7 +100,9 @@ def sync_detailed(
|
|
|
100
100
|
"""Connect sandbox (v2)
|
|
101
101
|
|
|
102
102
|
Returns sandbox details. If the sandbox is paused, it will be resumed. TTL is only extended. The
|
|
103
|
-
request body is optional; an omitted timeout defaults to 300 seconds.
|
|
103
|
+
request body is optional; an omitted timeout defaults to 300 seconds. Answers 409 with error_code
|
|
104
|
+
sandbox_snapshot_guest_agent_unresponsive when the paused sandbox's snapshot was taken while its
|
|
105
|
+
guest agent was not responding and the request did not ask for `memory: false`.
|
|
104
106
|
|
|
105
107
|
Args:
|
|
106
108
|
sandbox_id (str):
|
|
@@ -135,7 +137,9 @@ def sync(
|
|
|
135
137
|
"""Connect sandbox (v2)
|
|
136
138
|
|
|
137
139
|
Returns sandbox details. If the sandbox is paused, it will be resumed. TTL is only extended. The
|
|
138
|
-
request body is optional; an omitted timeout defaults to 300 seconds.
|
|
140
|
+
request body is optional; an omitted timeout defaults to 300 seconds. Answers 409 with error_code
|
|
141
|
+
sandbox_snapshot_guest_agent_unresponsive when the paused sandbox's snapshot was taken while its
|
|
142
|
+
guest agent was not responding and the request did not ask for `memory: false`.
|
|
139
143
|
|
|
140
144
|
Args:
|
|
141
145
|
sandbox_id (str):
|
|
@@ -165,7 +169,9 @@ async def asyncio_detailed(
|
|
|
165
169
|
"""Connect sandbox (v2)
|
|
166
170
|
|
|
167
171
|
Returns sandbox details. If the sandbox is paused, it will be resumed. TTL is only extended. The
|
|
168
|
-
request body is optional; an omitted timeout defaults to 300 seconds.
|
|
172
|
+
request body is optional; an omitted timeout defaults to 300 seconds. Answers 409 with error_code
|
|
173
|
+
sandbox_snapshot_guest_agent_unresponsive when the paused sandbox's snapshot was taken while its
|
|
174
|
+
guest agent was not responding and the request did not ask for `memory: false`.
|
|
169
175
|
|
|
170
176
|
Args:
|
|
171
177
|
sandbox_id (str):
|
|
@@ -198,7 +204,9 @@ async def asyncio(
|
|
|
198
204
|
"""Connect sandbox (v2)
|
|
199
205
|
|
|
200
206
|
Returns sandbox details. If the sandbox is paused, it will be resumed. TTL is only extended. The
|
|
201
|
-
request body is optional; an omitted timeout defaults to 300 seconds.
|
|
207
|
+
request body is optional; an omitted timeout defaults to 300 seconds. Answers 409 with error_code
|
|
208
|
+
sandbox_snapshot_guest_agent_unresponsive when the paused sandbox's snapshot was taken while its
|
|
209
|
+
guest agent was not responding and the request did not ask for `memory: false`.
|
|
202
210
|
|
|
203
211
|
Args:
|
|
204
212
|
sandbox_id (str):
|
|
@@ -41,6 +41,10 @@ def _parse_response(
|
|
|
41
41
|
response_200.append(response_200_item)
|
|
42
42
|
|
|
43
43
|
return response_200
|
|
44
|
+
if response.status_code == 400:
|
|
45
|
+
response_400 = Error.from_dict(response.json())
|
|
46
|
+
|
|
47
|
+
return response_400
|
|
44
48
|
if response.status_code == 401:
|
|
45
49
|
response_401 = Error.from_dict(response.json())
|
|
46
50
|
|
|
@@ -77,7 +81,8 @@ def sync_detailed(
|
|
|
77
81
|
) -> Response[Union[Error, list["Template"]]]:
|
|
78
82
|
"""List templates
|
|
79
83
|
|
|
80
|
-
List all templates
|
|
84
|
+
List all templates. Returns 400 when the team has more than 5000 templates; use /v2/templates to
|
|
85
|
+
page through them.
|
|
81
86
|
|
|
82
87
|
Args:
|
|
83
88
|
team_id (Union[Unset, str]): Identifier of the team, as its UUID or its public project ID
|
|
@@ -109,7 +114,8 @@ def sync(
|
|
|
109
114
|
) -> Optional[Union[Error, list["Template"]]]:
|
|
110
115
|
"""List templates
|
|
111
116
|
|
|
112
|
-
List all templates
|
|
117
|
+
List all templates. Returns 400 when the team has more than 5000 templates; use /v2/templates to
|
|
118
|
+
page through them.
|
|
113
119
|
|
|
114
120
|
Args:
|
|
115
121
|
team_id (Union[Unset, str]): Identifier of the team, as its UUID or its public project ID
|
|
@@ -136,7 +142,8 @@ async def asyncio_detailed(
|
|
|
136
142
|
) -> Response[Union[Error, list["Template"]]]:
|
|
137
143
|
"""List templates
|
|
138
144
|
|
|
139
|
-
List all templates
|
|
145
|
+
List all templates. Returns 400 when the team has more than 5000 templates; use /v2/templates to
|
|
146
|
+
page through them.
|
|
140
147
|
|
|
141
148
|
Args:
|
|
142
149
|
team_id (Union[Unset, str]): Identifier of the team, as its UUID or its public project ID
|
|
@@ -166,7 +173,8 @@ async def asyncio(
|
|
|
166
173
|
) -> Optional[Union[Error, list["Template"]]]:
|
|
167
174
|
"""List templates
|
|
168
175
|
|
|
169
|
-
List all templates
|
|
176
|
+
List all templates. Returns 400 when the team has more than 5000 templates; use /v2/templates to
|
|
177
|
+
page through them.
|
|
170
178
|
|
|
171
179
|
Args:
|
|
172
180
|
team_id (Union[Unset, str]): Identifier of the team, as its UUID or its public project ID
|
|
@@ -18,7 +18,8 @@ class ConnectSandbox:
|
|
|
18
18
|
only: the sandbox cold-boots fresh and any memory in the snapshot is ignored, never modified or deleted. Disk
|
|
19
19
|
state has crash-recovery semantics — writes not flushed before the pause may be lost. A no-op for snapshots that
|
|
20
20
|
contain no memory. Rejected with an error in environments where this capability is not enabled, never silently
|
|
21
|
-
downgraded to a memory restore.
|
|
21
|
+
downgraded to a memory restore. A snapshot taken while the sandbox guest agent was not responding
|
|
22
|
+
(envdUnresponsiveAtPause) can only be resumed this way, and needs no enablement.
|
|
22
23
|
"""
|
|
23
24
|
|
|
24
25
|
timeout: int
|
|
@@ -19,7 +19,8 @@ class ConnectSandboxV2:
|
|
|
19
19
|
only: the sandbox cold-boots fresh and any memory in the snapshot is ignored, never modified or deleted. Disk
|
|
20
20
|
state has crash-recovery semantics — writes not flushed before the pause may be lost. A no-op for snapshots that
|
|
21
21
|
contain no memory. Rejected with an error in environments where this capability is not enabled, never silently
|
|
22
|
-
downgraded to a memory restore.
|
|
22
|
+
downgraded to a memory restore. A snapshot taken while the sandbox guest agent was not responding
|
|
23
|
+
(envdUnresponsiveAtPause) can only be resumed this way, and needs no enablement.
|
|
23
24
|
"""
|
|
24
25
|
|
|
25
26
|
timeout: Union[Unset, int] = 300
|
|
@@ -20,7 +20,11 @@ class Error:
|
|
|
20
20
|
node could not create the sandbox this time; retry), sandbox_create_refused (a node refused the sandbox for a
|
|
21
21
|
reason no retry changes, such as a vcpu count out of bounds in the stored build; a server error, since no
|
|
22
22
|
request field reaches that check), internal_server_error, secret_limit_reached, idempotency_request_mismatch,
|
|
23
|
-
idempotency_in_progress, idempotency_outcome_unknown
|
|
23
|
+
idempotency_in_progress, idempotency_outcome_unknown, cluster_registration_invalid,
|
|
24
|
+
cluster_registration_conflict, cluster_assignment_invalid, cluster_assignment_project_not_found,
|
|
25
|
+
cluster_assignment_cluster_not_found, cluster_assignment_already_assigned, cluster_assignment_cluster_deleting,
|
|
26
|
+
sandbox_snapshot_guest_agent_unresponsive (a plain resume of a snapshot taken while the sandbox guest agent was
|
|
27
|
+
not responding; resume it with memory: false).
|
|
24
28
|
"""
|
|
25
29
|
|
|
26
30
|
code: int
|
|
@@ -32,6 +32,11 @@ class ListedSandbox:
|
|
|
32
32
|
envd_version (str): Version of the envd running in the sandbox
|
|
33
33
|
alias (Union[Unset, str]): Alias of the template
|
|
34
34
|
metadata (Union[Unset, Any]):
|
|
35
|
+
envd_unresponsive_at_pause (Union[Unset, bool]): True when the snapshot a paused sandbox would resume from was
|
|
36
|
+
taken while the sandbox guest agent was not responding. A plain resume of it is refused with 409 and error_code
|
|
37
|
+
sandbox_snapshot_guest_agent_unresponsive, because restoring that memory would bring the unresponsive agent
|
|
38
|
+
back; resume it without memory (`memory: false`), which cold-boots the sandbox from its disk. Omitted for a
|
|
39
|
+
running sandbox and for a snapshot whose agent answered.
|
|
35
40
|
volume_mounts (Union[Unset, list['SandboxVolumeMount']]):
|
|
36
41
|
"""
|
|
37
42
|
|
|
@@ -47,6 +52,7 @@ class ListedSandbox:
|
|
|
47
52
|
envd_version: str
|
|
48
53
|
alias: Union[Unset, str] = UNSET
|
|
49
54
|
metadata: Union[Unset, Any] = UNSET
|
|
55
|
+
envd_unresponsive_at_pause: Union[Unset, bool] = UNSET
|
|
50
56
|
volume_mounts: Union[Unset, list["SandboxVolumeMount"]] = UNSET
|
|
51
57
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
52
58
|
|
|
@@ -75,6 +81,8 @@ class ListedSandbox:
|
|
|
75
81
|
|
|
76
82
|
metadata = self.metadata
|
|
77
83
|
|
|
84
|
+
envd_unresponsive_at_pause = self.envd_unresponsive_at_pause
|
|
85
|
+
|
|
78
86
|
volume_mounts: Union[Unset, list[dict[str, Any]]] = UNSET
|
|
79
87
|
if not isinstance(self.volume_mounts, Unset):
|
|
80
88
|
volume_mounts = []
|
|
@@ -102,6 +110,8 @@ class ListedSandbox:
|
|
|
102
110
|
field_dict["alias"] = alias
|
|
103
111
|
if metadata is not UNSET:
|
|
104
112
|
field_dict["metadata"] = metadata
|
|
113
|
+
if envd_unresponsive_at_pause is not UNSET:
|
|
114
|
+
field_dict["envdUnresponsiveAtPause"] = envd_unresponsive_at_pause
|
|
105
115
|
if volume_mounts is not UNSET:
|
|
106
116
|
field_dict["volumeMounts"] = volume_mounts
|
|
107
117
|
|
|
@@ -136,6 +146,8 @@ class ListedSandbox:
|
|
|
136
146
|
|
|
137
147
|
metadata = d.pop("metadata", UNSET)
|
|
138
148
|
|
|
149
|
+
envd_unresponsive_at_pause = d.pop("envdUnresponsiveAtPause", UNSET)
|
|
150
|
+
|
|
139
151
|
volume_mounts = []
|
|
140
152
|
_volume_mounts = d.pop("volumeMounts", UNSET)
|
|
141
153
|
for volume_mounts_item_data in _volume_mounts or []:
|
|
@@ -156,6 +168,7 @@ class ListedSandbox:
|
|
|
156
168
|
envd_version=envd_version,
|
|
157
169
|
alias=alias,
|
|
158
170
|
metadata=metadata,
|
|
171
|
+
envd_unresponsive_at_pause=envd_unresponsive_at_pause,
|
|
159
172
|
volume_mounts=volume_mounts,
|
|
160
173
|
)
|
|
161
174
|
|
|
@@ -19,7 +19,8 @@ class ResumedSandbox:
|
|
|
19
19
|
fresh and any memory in the snapshot is ignored, never modified or deleted. Disk state has crash-recovery
|
|
20
20
|
semantics — writes not flushed before the pause may be lost. A no-op for snapshots that contain no memory.
|
|
21
21
|
Rejected with an error in environments where this capability is not enabled, never silently downgraded to a
|
|
22
|
-
memory restore.
|
|
22
|
+
memory restore. A snapshot taken while the sandbox guest agent was not responding (envdUnresponsiveAtPause) can
|
|
23
|
+
only be resumed this way, and needs no enablement.
|
|
23
24
|
"""
|
|
24
25
|
|
|
25
26
|
timeout: Union[Unset, int] = 15
|
|
@@ -34,6 +34,11 @@ class SandboxDetail:
|
|
|
34
34
|
disk_size_mb (int): Disk size for the sandbox in MiB
|
|
35
35
|
state (SandboxState): State of the sandbox
|
|
36
36
|
alias (Union[Unset, str]): Alias of the template
|
|
37
|
+
envd_unresponsive_at_pause (Union[Unset, bool]): True when the snapshot a paused sandbox would resume from was
|
|
38
|
+
taken while the sandbox guest agent was not responding. A plain resume of it is refused with 409 and error_code
|
|
39
|
+
sandbox_snapshot_guest_agent_unresponsive, because restoring that memory would bring the unresponsive agent
|
|
40
|
+
back; resume it without memory (`memory: false`), which cold-boots the sandbox from its disk. Omitted for a
|
|
41
|
+
running sandbox and for a snapshot whose agent answered.
|
|
37
42
|
envd_access_token (Union[Unset, str]): Access token used for envd communication
|
|
38
43
|
allow_internet_access (Union[None, Unset, bool]): Whether internet access was explicitly enabled or disabled for
|
|
39
44
|
the sandbox. Null means it was not explicitly set.
|
|
@@ -59,6 +64,7 @@ class SandboxDetail:
|
|
|
59
64
|
disk_size_mb: int
|
|
60
65
|
state: SandboxState
|
|
61
66
|
alias: Union[Unset, str] = UNSET
|
|
67
|
+
envd_unresponsive_at_pause: Union[Unset, bool] = UNSET
|
|
62
68
|
envd_access_token: Union[Unset, str] = UNSET
|
|
63
69
|
allow_internet_access: Union[None, Unset, bool] = UNSET
|
|
64
70
|
domain: Union[None, Unset, str] = UNSET
|
|
@@ -92,6 +98,8 @@ class SandboxDetail:
|
|
|
92
98
|
|
|
93
99
|
alias = self.alias
|
|
94
100
|
|
|
101
|
+
envd_unresponsive_at_pause = self.envd_unresponsive_at_pause
|
|
102
|
+
|
|
95
103
|
envd_access_token = self.envd_access_token
|
|
96
104
|
|
|
97
105
|
allow_internet_access: Union[None, Unset, bool]
|
|
@@ -145,6 +153,8 @@ class SandboxDetail:
|
|
|
145
153
|
)
|
|
146
154
|
if alias is not UNSET:
|
|
147
155
|
field_dict["alias"] = alias
|
|
156
|
+
if envd_unresponsive_at_pause is not UNSET:
|
|
157
|
+
field_dict["envdUnresponsiveAtPause"] = envd_unresponsive_at_pause
|
|
148
158
|
if envd_access_token is not UNSET:
|
|
149
159
|
field_dict["envdAccessToken"] = envd_access_token
|
|
150
160
|
if allow_internet_access is not UNSET:
|
|
@@ -193,6 +203,8 @@ class SandboxDetail:
|
|
|
193
203
|
|
|
194
204
|
alias = d.pop("alias", UNSET)
|
|
195
205
|
|
|
206
|
+
envd_unresponsive_at_pause = d.pop("envdUnresponsiveAtPause", UNSET)
|
|
207
|
+
|
|
196
208
|
envd_access_token = d.pop("envdAccessToken", UNSET)
|
|
197
209
|
|
|
198
210
|
def _parse_allow_internet_access(data: object) -> Union[None, Unset, bool]:
|
|
@@ -257,6 +269,7 @@ class SandboxDetail:
|
|
|
257
269
|
disk_size_mb=disk_size_mb,
|
|
258
270
|
state=state,
|
|
259
271
|
alias=alias,
|
|
272
|
+
envd_unresponsive_at_pause=envd_unresponsive_at_pause,
|
|
260
273
|
envd_access_token=envd_access_token,
|
|
261
274
|
allow_internet_access=allow_internet_access,
|
|
262
275
|
domain=domain,
|
|
@@ -17,19 +17,30 @@ class SandboxPauseRequest:
|
|
|
17
17
|
persisted and resuming the sandbox cold-boots (reboots) it from disk, losing in-memory state, running processes,
|
|
18
18
|
and open connections. Resume it with an explicit request (connect or resume); auto-resume, which can be
|
|
19
19
|
triggered by arbitrary traffic, refuses such a sandbox. Defaults to true. Default: True.
|
|
20
|
+
require_healthy_guest (Union[Unset, bool]): The pause checks that the sandbox guest agent answers before it
|
|
21
|
+
takes the snapshot. By default an unresponsive agent is recorded on the snapshot and the pause proceeds; the
|
|
22
|
+
sandbox then shows `envdUnresponsiveAtPause` and a later resume must ask for `memory: false`, since restoring
|
|
23
|
+
that memory would bring the unresponsive agent back. With this true, the pause is instead refused with 503 while
|
|
24
|
+
the agent does not answer, and the sandbox keeps running. A filesystem-only pause (`memory: false`) is always
|
|
25
|
+
refused while the agent does not answer, whatever this says. Default: False.
|
|
20
26
|
"""
|
|
21
27
|
|
|
22
28
|
memory: Union[Unset, bool] = True
|
|
29
|
+
require_healthy_guest: Union[Unset, bool] = False
|
|
23
30
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
24
31
|
|
|
25
32
|
def to_dict(self) -> dict[str, Any]:
|
|
26
33
|
memory = self.memory
|
|
27
34
|
|
|
35
|
+
require_healthy_guest = self.require_healthy_guest
|
|
36
|
+
|
|
28
37
|
field_dict: dict[str, Any] = {}
|
|
29
38
|
field_dict.update(self.additional_properties)
|
|
30
39
|
field_dict.update({})
|
|
31
40
|
if memory is not UNSET:
|
|
32
41
|
field_dict["memory"] = memory
|
|
42
|
+
if require_healthy_guest is not UNSET:
|
|
43
|
+
field_dict["requireHealthyGuest"] = require_healthy_guest
|
|
33
44
|
|
|
34
45
|
return field_dict
|
|
35
46
|
|
|
@@ -38,8 +49,11 @@ class SandboxPauseRequest:
|
|
|
38
49
|
d = dict(src_dict)
|
|
39
50
|
memory = d.pop("memory", UNSET)
|
|
40
51
|
|
|
52
|
+
require_healthy_guest = d.pop("requireHealthyGuest", UNSET)
|
|
53
|
+
|
|
41
54
|
sandbox_pause_request = cls(
|
|
42
55
|
memory=memory,
|
|
56
|
+
require_healthy_guest=require_healthy_guest,
|
|
43
57
|
)
|
|
44
58
|
|
|
45
59
|
sandbox_pause_request.additional_properties = d
|
|
@@ -203,6 +203,22 @@ class RateLimitException(SandboxException):
|
|
|
203
203
|
super().__init__(*args, status_code=429)
|
|
204
204
|
|
|
205
205
|
|
|
206
|
+
class GuestUnresponsiveException(SandboxException):
|
|
207
|
+
"""
|
|
208
|
+
Raised when a paused sandbox cannot be resumed with its memory because its
|
|
209
|
+
snapshot was taken while the sandbox's guest agent (envd) was not
|
|
210
|
+
responding (`envd_unresponsive_at_pause` in sandbox info). Restoring that
|
|
211
|
+
memory would bring the unresponsive agent back; resume the sandbox with
|
|
212
|
+
`on_resume="reboot"`, which cold-boots it from disk.
|
|
213
|
+
"""
|
|
214
|
+
|
|
215
|
+
code = "sandbox_snapshot_guest_agent_unresponsive"
|
|
216
|
+
"""The API's `error_code` for this exception."""
|
|
217
|
+
|
|
218
|
+
def __init__(self, *args):
|
|
219
|
+
super().__init__(*args, status_code=409)
|
|
220
|
+
|
|
221
|
+
|
|
206
222
|
class ServiceBusyException(Exception):
|
|
207
223
|
"""
|
|
208
224
|
Raised when the API refused the operation because the service is
|
|
@@ -1259,6 +1259,8 @@ class SandboxInfo:
|
|
|
1259
1259
|
"""Sandbox lifecycle configuration."""
|
|
1260
1260
|
volume_mounts: List[Dict[str, str]] = field(default_factory=list)
|
|
1261
1261
|
"""Volume mounts for the sandbox."""
|
|
1262
|
+
envd_unresponsive_at_pause: Optional[bool] = None
|
|
1263
|
+
"""`True` when the snapshot this paused sandbox resumes from was taken while its guest agent (envd) was not responding. Such a sandbox resumes only with `on_resume="reboot"`; a plain resume raises `GuestUnresponsiveException`. `None` otherwise."""
|
|
1262
1264
|
|
|
1263
1265
|
@classmethod
|
|
1264
1266
|
def _from_sandbox_data(
|
|
@@ -1292,6 +1294,9 @@ class SandboxInfo:
|
|
|
1292
1294
|
allow_internet_access=allow_internet_access,
|
|
1293
1295
|
network=network,
|
|
1294
1296
|
lifecycle=lifecycle,
|
|
1297
|
+
envd_unresponsive_at_pause=(
|
|
1298
|
+
True if sandbox.envd_unresponsive_at_pause is True else None
|
|
1299
|
+
),
|
|
1295
1300
|
)
|
|
1296
1301
|
|
|
1297
1302
|
@classmethod
|