e2b 2.65.0__tar.gz → 2.66.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.65.0 → e2b-2.66.0}/PKG-INFO +1 -1
- {e2b-2.65.0 → e2b-2.66.0}/e2b/__init__.py +2 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/api/secrets/post_secrets.py +36 -5
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/connect_sandbox_v2.py +18 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/error.py +2 -5
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/new_sandbox.py +9 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/new_sandbox_v2.py +9 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/resumed_sandbox.py +9 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/sandbox.py +18 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/template.py +9 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/template_build.py +9 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/template_build_request_v3.py +9 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/template_build_with_tags.py +9 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/template_with_builds.py +9 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/sandbox/sandbox_api.py +78 -1
- {e2b-2.65.0 → e2b-2.66.0}/e2b/sandbox_async/main.py +34 -4
- {e2b-2.65.0 → e2b-2.66.0}/e2b/sandbox_async/sandbox_api.py +9 -3
- {e2b-2.65.0 → e2b-2.66.0}/e2b/sandbox_sync/main.py +34 -4
- {e2b-2.65.0 → e2b-2.66.0}/e2b/sandbox_sync/sandbox_api.py +9 -3
- {e2b-2.65.0 → e2b-2.66.0}/e2b/template/types.py +17 -2
- {e2b-2.65.0 → e2b-2.66.0}/e2b/template_async/build_api.py +2 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/template_async/main.py +12 -2
- {e2b-2.65.0 → e2b-2.66.0}/e2b/template_sync/build_api.py +2 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/template_sync/main.py +12 -2
- {e2b-2.65.0 → e2b-2.66.0}/pyproject.toml +1 -1
- {e2b-2.65.0 → e2b-2.66.0}/pyproject.toml.orig +1 -1
- {e2b-2.65.0 → e2b-2.66.0}/README.md +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/__init__.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/__init__.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/api/__init__.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/api/sandboxes/__init__.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/api/sandboxes/delete_sandboxes_sandbox_id.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/api/sandboxes/get_sandboxes.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/api/sandboxes/get_sandboxes_metrics.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/api/sandboxes/get_sandboxes_sandbox_id.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/api/sandboxes/get_sandboxes_sandbox_id_logs.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/api/sandboxes/get_sandboxes_sandbox_id_metrics.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/api/sandboxes/get_unstable_sandboxes_sandbox_id_record.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/api/sandboxes/get_v2_sandboxes.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/api/sandboxes/get_v_2_sandboxes_sandbox_id_logs.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/api/sandboxes/post_sandboxes.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/api/sandboxes/post_sandboxes_sandbox_id_connect.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/api/sandboxes/post_sandboxes_sandbox_id_fork.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/api/sandboxes/post_sandboxes_sandbox_id_pause.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/api/sandboxes/post_sandboxes_sandbox_id_refreshes.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/api/sandboxes/post_sandboxes_sandbox_id_resume.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/api/sandboxes/post_sandboxes_sandbox_id_snapshots.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/api/sandboxes/post_sandboxes_sandbox_id_timeout.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/api/sandboxes/post_v2_sandboxes.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/api/sandboxes/post_v_2_sandboxes_sandbox_id_connect.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/api/sandboxes/put_sandboxes_sandbox_id_network.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/api/secrets/__init__.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/api/secrets/delete_secrets_secret_id.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/api/secrets/get_secrets.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/api/secrets/get_secrets_secret_id.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/api/secrets/post_secrets_secret_id.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/api/snapshots/__init__.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/api/snapshots/get_snapshots.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/api/tags/__init__.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/api/tags/delete_templates_tags.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/api/tags/get_templates_template_id_tags.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/api/tags/get_templates_template_id_tags_count.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/api/tags/get_templates_template_id_tags_exists.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/api/tags/get_templates_template_id_tags_groups.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/api/tags/get_templates_template_id_tags_tag_assignments.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/api/tags/post_templates_tags.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/api/templates/__init__.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/api/templates/delete_templates_template_id.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/api/templates/get_default_templates.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/api/templates/get_templates.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/api/templates/get_templates_aliases_alias.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/api/templates/get_templates_template_id.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/api/templates/get_templates_template_id_builds.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/api/templates/get_templates_template_id_builds_build_id_logs.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/api/templates/get_templates_template_id_builds_build_id_status.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/api/templates/get_templates_template_id_files_hash.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/api/templates/get_v2_templates.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/api/templates/get_v_2_templates_template_id.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/api/templates/patch_templates_template_id.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/api/templates/patch_v_2_templates_template_id.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/api/templates/post_v3_templates.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/api/templates/post_v_2_templates_template_id_builds_build_id.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/api/volumes/__init__.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/api/volumes/delete_volumes_volume_id.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/api/volumes/get_volumes.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/api/volumes/get_volumes_volume_id.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/api/volumes/post_volumes.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/client.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/errors.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/__init__.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/assign_template_tags_request.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/assigned_template_tags.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/aws_registry.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/aws_registry_type.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/build_log_entry.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/build_status_reason.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/connect_sandbox.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/delete_template_tags_request.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/gcp_registry.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/gcp_registry_type.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/general_registry.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/general_registry_type.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/get_templates_template_id_tags_groups_sort.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/listed_sandbox.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/log_level.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/logs_direction.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/logs_source.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/mcp_type_0.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/new_secret.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/new_volume.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/order_direction.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/sandbox_auto_resume_config.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/sandbox_detail.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/sandbox_egress_proxy_config_type_0.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/sandbox_egress_proxy_tls_config_type_0.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/sandbox_fork_request.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/sandbox_fork_result.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/sandbox_iam.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/sandbox_iam_token.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/sandbox_iam_tokens.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/sandbox_lifecycle.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/sandbox_log.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/sandbox_log_entry.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/sandbox_log_entry_fields.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/sandbox_logs.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/sandbox_logs_v2_response.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/sandbox_metric.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/sandbox_network_config.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/sandbox_network_config_rules.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/sandbox_network_rule.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/sandbox_network_transform.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/sandbox_network_transform_headers.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/sandbox_network_update_config.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/sandbox_network_update_config_rules.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/sandbox_on_timeout.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/sandbox_pause_mode.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/sandbox_pause_request.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/sandbox_record.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/sandbox_refresh_request.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/sandbox_snapshot_request.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/sandbox_state.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/sandbox_timeout_request.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/sandbox_volume_mount.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/sandboxes_with_metrics.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/secret.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/secret_metadata.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/secret_update.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/snapshot_info.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/team_user.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/template_alias_response.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/template_build_file_upload.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/template_build_file_upload_headers.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/template_build_info.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/template_build_logs_response.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/template_build_start_v2.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/template_build_status.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/template_request_response_v3.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/template_step.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/template_tag.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/template_tag_assignment.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/template_tag_assignments_response.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/template_tag_exists_response.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/template_tag_group.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/template_tag_groups_response.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/template_tags_count_response.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/template_update_request.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/template_update_response.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/template_v2.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/volume.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/models/volume_and_token.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/py.typed +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client/types.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client_async/__init__.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/client_sync/__init__.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/api/metadata.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/client.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/connection_config.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/envd/__init__.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/envd/api.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/envd/client_async/__init__.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/envd/client_shared.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/envd/client_sync/__init__.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/envd/filesystem/__init__.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/envd/filesystem/filesystem_connect.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/envd/filesystem/filesystem_pb.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/envd/interceptors.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/envd/process/__init__.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/envd/process/process_connect.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/envd/process/process_pb.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/envd/rpc.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/envd/utils.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/envd/versions.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/exceptions.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/io_utils.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/paginator.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/py.typed +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/retry.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/sandbox/_git/__init__.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/sandbox/_git/args.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/sandbox/_git/auth.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/sandbox/_git/config.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/sandbox/_git/parse.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/sandbox/_git/types.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/sandbox/commands/command_handle.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/sandbox/commands/main.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/sandbox/commands/stream_input.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/sandbox/filesystem/filesystem.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/sandbox/filesystem/watch_handle.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/sandbox/iam.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/sandbox/main.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/sandbox/mcp.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/sandbox/network.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/sandbox/signature.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/sandbox/utils.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/sandbox_async/commands/command.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/sandbox_async/commands/command_handle.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/sandbox_async/commands/command_input_handle.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/sandbox_async/commands/pty.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/sandbox_async/filesystem/filesystem.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/sandbox_async/filesystem/watch_handle.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/sandbox_async/git.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/sandbox_async/paginator.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/sandbox_async/utils.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/sandbox_domains.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/sandbox_sync/commands/command.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/sandbox_sync/commands/command_handle.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/sandbox_sync/commands/pty.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/sandbox_sync/filesystem/filesystem.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/sandbox_sync/filesystem/watch_handle.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/sandbox_sync/git.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/sandbox_sync/paginator.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/secret/__init__.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/secret/base.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/secret/secret_async.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/secret/secret_sync.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/secret/types.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/template/consts.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/template/dockerfile_parser.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/template/logger.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/template/main.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/template/paginator.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/template/readycmd.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/template/utils.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/template_async/paginator.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/template_sync/paginator.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/volume/client/__init__.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/volume/client/api/__init__.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/volume/client/api/volumes/__init__.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/volume/client/api/volumes/delete_volumecontent_volume_id_path.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/volume/client/api/volumes/get_volumecontent_volume_id_dir.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/volume/client/api/volumes/get_volumecontent_volume_id_file.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/volume/client/api/volumes/get_volumecontent_volume_id_path.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/volume/client/api/volumes/patch_volumecontent_volume_id_path.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/volume/client/api/volumes/post_volumecontent_volume_id_dir.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/volume/client/api/volumes/put_volumecontent_volume_id_file.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/volume/client/client.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/volume/client/errors.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/volume/client/models/__init__.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/volume/client/models/error.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/volume/client/models/patch_volumecontent_volume_id_path_body.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/volume/client/models/volume_entry_stat.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/volume/client/models/volume_entry_stat_type.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/volume/client/py.typed +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/volume/client/types.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/volume/client_async/__init__.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/volume/client_sync/__init__.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/volume/connection_config.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/volume/types.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/volume/utils.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/volume/volume_async.py +0 -0
- {e2b-2.65.0 → e2b-2.66.0}/e2b/volume/volume_sync.py +0 -0
|
@@ -115,6 +115,7 @@ from .sandbox.sandbox_api import (
|
|
|
115
115
|
SandboxNetworkTransformResolver,
|
|
116
116
|
SandboxNetworkUpdate,
|
|
117
117
|
SandboxOnResume,
|
|
118
|
+
SandboxOnResumeOptions,
|
|
118
119
|
SandboxListOrder,
|
|
119
120
|
SandboxQuery,
|
|
120
121
|
SandboxState,
|
|
@@ -272,6 +273,7 @@ __all__ = [
|
|
|
272
273
|
"SandboxLifecycle",
|
|
273
274
|
"SandboxOnTimeout",
|
|
274
275
|
"SandboxOnResume",
|
|
276
|
+
"SandboxOnResumeOptions",
|
|
275
277
|
"ALL_TRAFFIC",
|
|
276
278
|
# IAM
|
|
277
279
|
"SandboxIamOpts",
|
|
@@ -8,14 +8,17 @@ from ...client import AuthenticatedClient, Client
|
|
|
8
8
|
from ...models.error import Error
|
|
9
9
|
from ...models.new_secret import NewSecret
|
|
10
10
|
from ...models.secret import Secret
|
|
11
|
-
from ...types import Response
|
|
11
|
+
from ...types import UNSET, Response, Unset
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
def _get_kwargs(
|
|
15
15
|
*,
|
|
16
16
|
body: NewSecret,
|
|
17
|
+
idempotency_key: Union[Unset, str] = UNSET,
|
|
17
18
|
) -> dict[str, Any]:
|
|
18
19
|
headers: dict[str, Any] = {}
|
|
20
|
+
if not isinstance(idempotency_key, Unset):
|
|
21
|
+
headers["Idempotency-Key"] = idempotency_key
|
|
19
22
|
|
|
20
23
|
_kwargs: dict[str, Any] = {
|
|
21
24
|
"method": "post",
|
|
@@ -57,6 +60,14 @@ def _parse_response(
|
|
|
57
60
|
response_409 = Error.from_dict(response.json())
|
|
58
61
|
|
|
59
62
|
return response_409
|
|
63
|
+
if response.status_code == 413:
|
|
64
|
+
response_413 = Error.from_dict(response.json())
|
|
65
|
+
|
|
66
|
+
return response_413
|
|
67
|
+
if response.status_code == 422:
|
|
68
|
+
response_422 = Error.from_dict(response.json())
|
|
69
|
+
|
|
70
|
+
return response_422
|
|
60
71
|
if response.status_code == 429:
|
|
61
72
|
response_429 = Error.from_dict(response.json())
|
|
62
73
|
|
|
@@ -69,6 +80,10 @@ def _parse_response(
|
|
|
69
80
|
response_502 = Error.from_dict(response.json())
|
|
70
81
|
|
|
71
82
|
return response_502
|
|
83
|
+
if response.status_code == 503:
|
|
84
|
+
response_503 = Error.from_dict(response.json())
|
|
85
|
+
|
|
86
|
+
return response_503
|
|
72
87
|
if response.status_code == 504:
|
|
73
88
|
response_504 = Error.from_dict(response.json())
|
|
74
89
|
|
|
@@ -94,13 +109,16 @@ def sync_detailed(
|
|
|
94
109
|
*,
|
|
95
110
|
client: AuthenticatedClient,
|
|
96
111
|
body: NewSecret,
|
|
112
|
+
idempotency_key: Union[Unset, str] = UNSET,
|
|
97
113
|
) -> Response[Union[Error, Secret]]:
|
|
98
114
|
"""Create a secret
|
|
99
115
|
|
|
100
116
|
Create a secret by storing a runtime marker as its first version. The response carries metadata
|
|
101
|
-
only.
|
|
117
|
+
only. The value is not part of the Idempotency-Key comparison: reusing a key with a different value
|
|
118
|
+
replays the first result.
|
|
102
119
|
|
|
103
120
|
Args:
|
|
121
|
+
idempotency_key (Union[Unset, str]):
|
|
104
122
|
body (NewSecret):
|
|
105
123
|
|
|
106
124
|
Raises:
|
|
@@ -113,6 +131,7 @@ def sync_detailed(
|
|
|
113
131
|
|
|
114
132
|
kwargs = _get_kwargs(
|
|
115
133
|
body=body,
|
|
134
|
+
idempotency_key=idempotency_key,
|
|
116
135
|
)
|
|
117
136
|
|
|
118
137
|
response = client.get_httpx_client().request(
|
|
@@ -126,13 +145,16 @@ def sync(
|
|
|
126
145
|
*,
|
|
127
146
|
client: AuthenticatedClient,
|
|
128
147
|
body: NewSecret,
|
|
148
|
+
idempotency_key: Union[Unset, str] = UNSET,
|
|
129
149
|
) -> Optional[Union[Error, Secret]]:
|
|
130
150
|
"""Create a secret
|
|
131
151
|
|
|
132
152
|
Create a secret by storing a runtime marker as its first version. The response carries metadata
|
|
133
|
-
only.
|
|
153
|
+
only. The value is not part of the Idempotency-Key comparison: reusing a key with a different value
|
|
154
|
+
replays the first result.
|
|
134
155
|
|
|
135
156
|
Args:
|
|
157
|
+
idempotency_key (Union[Unset, str]):
|
|
136
158
|
body (NewSecret):
|
|
137
159
|
|
|
138
160
|
Raises:
|
|
@@ -146,6 +168,7 @@ def sync(
|
|
|
146
168
|
return sync_detailed(
|
|
147
169
|
client=client,
|
|
148
170
|
body=body,
|
|
171
|
+
idempotency_key=idempotency_key,
|
|
149
172
|
).parsed
|
|
150
173
|
|
|
151
174
|
|
|
@@ -153,13 +176,16 @@ async def asyncio_detailed(
|
|
|
153
176
|
*,
|
|
154
177
|
client: AuthenticatedClient,
|
|
155
178
|
body: NewSecret,
|
|
179
|
+
idempotency_key: Union[Unset, str] = UNSET,
|
|
156
180
|
) -> Response[Union[Error, Secret]]:
|
|
157
181
|
"""Create a secret
|
|
158
182
|
|
|
159
183
|
Create a secret by storing a runtime marker as its first version. The response carries metadata
|
|
160
|
-
only.
|
|
184
|
+
only. The value is not part of the Idempotency-Key comparison: reusing a key with a different value
|
|
185
|
+
replays the first result.
|
|
161
186
|
|
|
162
187
|
Args:
|
|
188
|
+
idempotency_key (Union[Unset, str]):
|
|
163
189
|
body (NewSecret):
|
|
164
190
|
|
|
165
191
|
Raises:
|
|
@@ -172,6 +198,7 @@ async def asyncio_detailed(
|
|
|
172
198
|
|
|
173
199
|
kwargs = _get_kwargs(
|
|
174
200
|
body=body,
|
|
201
|
+
idempotency_key=idempotency_key,
|
|
175
202
|
)
|
|
176
203
|
|
|
177
204
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -183,13 +210,16 @@ async def asyncio(
|
|
|
183
210
|
*,
|
|
184
211
|
client: AuthenticatedClient,
|
|
185
212
|
body: NewSecret,
|
|
213
|
+
idempotency_key: Union[Unset, str] = UNSET,
|
|
186
214
|
) -> Optional[Union[Error, Secret]]:
|
|
187
215
|
"""Create a secret
|
|
188
216
|
|
|
189
217
|
Create a secret by storing a runtime marker as its first version. The response carries metadata
|
|
190
|
-
only.
|
|
218
|
+
only. The value is not part of the Idempotency-Key comparison: reusing a key with a different value
|
|
219
|
+
replays the first result.
|
|
191
220
|
|
|
192
221
|
Args:
|
|
222
|
+
idempotency_key (Union[Unset, str]):
|
|
193
223
|
body (NewSecret):
|
|
194
224
|
|
|
195
225
|
Raises:
|
|
@@ -204,5 +234,6 @@ async def asyncio(
|
|
|
204
234
|
await asyncio_detailed(
|
|
205
235
|
client=client,
|
|
206
236
|
body=body,
|
|
237
|
+
idempotency_key=idempotency_key,
|
|
207
238
|
)
|
|
208
239
|
).parsed
|
|
@@ -21,10 +21,14 @@ class ConnectSandboxV2:
|
|
|
21
21
|
contain no memory. Rejected with an error in environments where this capability is not enabled, never silently
|
|
22
22
|
downgraded to a memory restore. A snapshot taken while the sandbox guest agent was not responding
|
|
23
23
|
(envdUnresponsiveAtPause) can only be resumed this way, and needs no enablement.
|
|
24
|
+
memory_mb (Union[Unset, int]): Memory for the sandbox in MiB
|
|
25
|
+
cpu_count (Union[Unset, int]): CPU cores for the sandbox
|
|
24
26
|
"""
|
|
25
27
|
|
|
26
28
|
timeout: Union[Unset, int] = 300
|
|
27
29
|
memory: Union[Unset, bool] = UNSET
|
|
30
|
+
memory_mb: Union[Unset, int] = UNSET
|
|
31
|
+
cpu_count: Union[Unset, int] = UNSET
|
|
28
32
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
29
33
|
|
|
30
34
|
def to_dict(self) -> dict[str, Any]:
|
|
@@ -32,6 +36,10 @@ class ConnectSandboxV2:
|
|
|
32
36
|
|
|
33
37
|
memory = self.memory
|
|
34
38
|
|
|
39
|
+
memory_mb = self.memory_mb
|
|
40
|
+
|
|
41
|
+
cpu_count = self.cpu_count
|
|
42
|
+
|
|
35
43
|
field_dict: dict[str, Any] = {}
|
|
36
44
|
field_dict.update(self.additional_properties)
|
|
37
45
|
field_dict.update({})
|
|
@@ -39,6 +47,10 @@ class ConnectSandboxV2:
|
|
|
39
47
|
field_dict["timeout"] = timeout
|
|
40
48
|
if memory is not UNSET:
|
|
41
49
|
field_dict["memory"] = memory
|
|
50
|
+
if memory_mb is not UNSET:
|
|
51
|
+
field_dict["memoryMB"] = memory_mb
|
|
52
|
+
if cpu_count is not UNSET:
|
|
53
|
+
field_dict["cpuCount"] = cpu_count
|
|
42
54
|
|
|
43
55
|
return field_dict
|
|
44
56
|
|
|
@@ -49,9 +61,15 @@ class ConnectSandboxV2:
|
|
|
49
61
|
|
|
50
62
|
memory = d.pop("memory", UNSET)
|
|
51
63
|
|
|
64
|
+
memory_mb = d.pop("memoryMB", UNSET)
|
|
65
|
+
|
|
66
|
+
cpu_count = d.pop("cpuCount", UNSET)
|
|
67
|
+
|
|
52
68
|
connect_sandbox_v2 = cls(
|
|
53
69
|
timeout=timeout,
|
|
54
70
|
memory=memory,
|
|
71
|
+
memory_mb=memory_mb,
|
|
72
|
+
cpu_count=cpu_count,
|
|
55
73
|
)
|
|
56
74
|
|
|
57
75
|
connect_sandbox_v2.additional_properties = d
|
|
@@ -20,11 +20,8 @@ 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,
|
|
24
|
-
|
|
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).
|
|
23
|
+
idempotency_in_progress, idempotency_outcome_unknown, sandbox_snapshot_guest_agent_unresponsive (a plain resume
|
|
24
|
+
of a snapshot taken while the sandbox guest agent was not responding; resume it with memory: false).
|
|
28
25
|
"""
|
|
29
26
|
|
|
30
27
|
code: int
|
|
@@ -24,6 +24,7 @@ class NewSandbox:
|
|
|
24
24
|
template_id (str): Identifier of the required template
|
|
25
25
|
timeout (Union[Unset, int]): Time to live for the sandbox in seconds. Default: 15.
|
|
26
26
|
cpu_count (Union[Unset, int]): CPU cores for the sandbox
|
|
27
|
+
memory_mb (Union[Unset, int]): Memory for the sandbox in MiB
|
|
27
28
|
auto_pause (Union[Unset, bool]): Automatically pauses the sandbox after the timeout Default: False.
|
|
28
29
|
auto_pause_memory (Union[Unset, bool]): Controls the snapshot kind taken when the sandbox auto-pauses on timeout
|
|
29
30
|
(only relevant when autoPause is true). When false, the auto-pause drops the in-memory state and persists only
|
|
@@ -47,6 +48,7 @@ class NewSandbox:
|
|
|
47
48
|
template_id: str
|
|
48
49
|
timeout: Union[Unset, int] = 15
|
|
49
50
|
cpu_count: Union[Unset, int] = UNSET
|
|
51
|
+
memory_mb: Union[Unset, int] = UNSET
|
|
50
52
|
auto_pause: Union[Unset, bool] = False
|
|
51
53
|
auto_pause_memory: Union[Unset, bool] = True
|
|
52
54
|
auto_resume: Union[Unset, "SandboxAutoResumeConfig"] = UNSET
|
|
@@ -69,6 +71,8 @@ class NewSandbox:
|
|
|
69
71
|
|
|
70
72
|
cpu_count = self.cpu_count
|
|
71
73
|
|
|
74
|
+
memory_mb = self.memory_mb
|
|
75
|
+
|
|
72
76
|
auto_pause = self.auto_pause
|
|
73
77
|
|
|
74
78
|
auto_pause_memory = self.auto_pause_memory
|
|
@@ -119,6 +123,8 @@ class NewSandbox:
|
|
|
119
123
|
field_dict["timeout"] = timeout
|
|
120
124
|
if cpu_count is not UNSET:
|
|
121
125
|
field_dict["cpuCount"] = cpu_count
|
|
126
|
+
if memory_mb is not UNSET:
|
|
127
|
+
field_dict["memoryMB"] = memory_mb
|
|
122
128
|
if auto_pause is not UNSET:
|
|
123
129
|
field_dict["autoPause"] = auto_pause
|
|
124
130
|
if auto_pause_memory is not UNSET:
|
|
@@ -159,6 +165,8 @@ class NewSandbox:
|
|
|
159
165
|
|
|
160
166
|
cpu_count = d.pop("cpuCount", UNSET)
|
|
161
167
|
|
|
168
|
+
memory_mb = d.pop("memoryMB", UNSET)
|
|
169
|
+
|
|
162
170
|
auto_pause = d.pop("autoPause", UNSET)
|
|
163
171
|
|
|
164
172
|
auto_pause_memory = d.pop("autoPauseMemory", UNSET)
|
|
@@ -220,6 +228,7 @@ class NewSandbox:
|
|
|
220
228
|
template_id=template_id,
|
|
221
229
|
timeout=timeout,
|
|
222
230
|
cpu_count=cpu_count,
|
|
231
|
+
memory_mb=memory_mb,
|
|
223
232
|
auto_pause=auto_pause,
|
|
224
233
|
auto_pause_memory=auto_pause_memory,
|
|
225
234
|
auto_resume=auto_resume,
|
|
@@ -26,6 +26,7 @@ class NewSandboxV2:
|
|
|
26
26
|
template_id (str): Identifier of the required template
|
|
27
27
|
timeout (Union[Unset, int]): Time to live for the sandbox in seconds. Default: 300.
|
|
28
28
|
cpu_count (Union[Unset, int]): CPU cores for the sandbox
|
|
29
|
+
memory_mb (Union[Unset, int]): Memory for the sandbox in MiB
|
|
29
30
|
auto_pause (Union[Unset, bool]): Automatically pauses the sandbox after the timeout Default: False.
|
|
30
31
|
auto_pause_memory (Union[Unset, bool]): Controls the snapshot kind taken when the sandbox auto-pauses on timeout
|
|
31
32
|
(only relevant when autoPause is true). When false, the auto-pause drops the in-memory state and persists only
|
|
@@ -47,6 +48,7 @@ class NewSandboxV2:
|
|
|
47
48
|
template_id: str
|
|
48
49
|
timeout: Union[Unset, int] = 300
|
|
49
50
|
cpu_count: Union[Unset, int] = UNSET
|
|
51
|
+
memory_mb: Union[Unset, int] = UNSET
|
|
50
52
|
auto_pause: Union[Unset, bool] = False
|
|
51
53
|
auto_pause_memory: Union[Unset, bool] = True
|
|
52
54
|
auto_resume: Union[Unset, "SandboxAutoResumeConfig"] = UNSET
|
|
@@ -68,6 +70,8 @@ class NewSandboxV2:
|
|
|
68
70
|
|
|
69
71
|
cpu_count = self.cpu_count
|
|
70
72
|
|
|
73
|
+
memory_mb = self.memory_mb
|
|
74
|
+
|
|
71
75
|
auto_pause = self.auto_pause
|
|
72
76
|
|
|
73
77
|
auto_pause_memory = self.auto_pause_memory
|
|
@@ -116,6 +120,8 @@ class NewSandboxV2:
|
|
|
116
120
|
field_dict["timeout"] = timeout
|
|
117
121
|
if cpu_count is not UNSET:
|
|
118
122
|
field_dict["cpuCount"] = cpu_count
|
|
123
|
+
if memory_mb is not UNSET:
|
|
124
|
+
field_dict["memoryMB"] = memory_mb
|
|
119
125
|
if auto_pause is not UNSET:
|
|
120
126
|
field_dict["autoPause"] = auto_pause
|
|
121
127
|
if auto_pause_memory is not UNSET:
|
|
@@ -154,6 +160,8 @@ class NewSandboxV2:
|
|
|
154
160
|
|
|
155
161
|
cpu_count = d.pop("cpuCount", UNSET)
|
|
156
162
|
|
|
163
|
+
memory_mb = d.pop("memoryMB", UNSET)
|
|
164
|
+
|
|
157
165
|
auto_pause = d.pop("autoPause", UNSET)
|
|
158
166
|
|
|
159
167
|
auto_pause_memory = d.pop("autoPauseMemory", UNSET)
|
|
@@ -213,6 +221,7 @@ class NewSandboxV2:
|
|
|
213
221
|
template_id=template_id,
|
|
214
222
|
timeout=timeout,
|
|
215
223
|
cpu_count=cpu_count,
|
|
224
|
+
memory_mb=memory_mb,
|
|
216
225
|
auto_pause=auto_pause,
|
|
217
226
|
auto_pause_memory=auto_pause_memory,
|
|
218
227
|
auto_resume=auto_resume,
|
|
@@ -15,6 +15,7 @@ class ResumedSandbox:
|
|
|
15
15
|
Attributes:
|
|
16
16
|
timeout (Union[Unset, int]): Time to live for the sandbox in seconds. Default: 15.
|
|
17
17
|
cpu_count (Union[Unset, int]): CPU cores for the sandbox
|
|
18
|
+
memory_mb (Union[Unset, int]): Memory for the sandbox in MiB
|
|
18
19
|
auto_pause (Union[Unset, bool]): Automatically pauses the sandbox after the timeout
|
|
19
20
|
memory (Union[Unset, bool]): Defaults to true. When false, resume from disk state only: the sandbox cold-boots
|
|
20
21
|
fresh and any memory in the snapshot is ignored, never modified or deleted. Disk state has crash-recovery
|
|
@@ -26,6 +27,7 @@ class ResumedSandbox:
|
|
|
26
27
|
|
|
27
28
|
timeout: Union[Unset, int] = 15
|
|
28
29
|
cpu_count: Union[Unset, int] = UNSET
|
|
30
|
+
memory_mb: Union[Unset, int] = UNSET
|
|
29
31
|
auto_pause: Union[Unset, bool] = UNSET
|
|
30
32
|
memory: Union[Unset, bool] = UNSET
|
|
31
33
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
@@ -35,6 +37,8 @@ class ResumedSandbox:
|
|
|
35
37
|
|
|
36
38
|
cpu_count = self.cpu_count
|
|
37
39
|
|
|
40
|
+
memory_mb = self.memory_mb
|
|
41
|
+
|
|
38
42
|
auto_pause = self.auto_pause
|
|
39
43
|
|
|
40
44
|
memory = self.memory
|
|
@@ -46,6 +50,8 @@ class ResumedSandbox:
|
|
|
46
50
|
field_dict["timeout"] = timeout
|
|
47
51
|
if cpu_count is not UNSET:
|
|
48
52
|
field_dict["cpuCount"] = cpu_count
|
|
53
|
+
if memory_mb is not UNSET:
|
|
54
|
+
field_dict["memoryMB"] = memory_mb
|
|
49
55
|
if auto_pause is not UNSET:
|
|
50
56
|
field_dict["autoPause"] = auto_pause
|
|
51
57
|
if memory is not UNSET:
|
|
@@ -60,6 +66,8 @@ class ResumedSandbox:
|
|
|
60
66
|
|
|
61
67
|
cpu_count = d.pop("cpuCount", UNSET)
|
|
62
68
|
|
|
69
|
+
memory_mb = d.pop("memoryMB", UNSET)
|
|
70
|
+
|
|
63
71
|
auto_pause = d.pop("autoPause", UNSET)
|
|
64
72
|
|
|
65
73
|
memory = d.pop("memory", UNSET)
|
|
@@ -67,6 +75,7 @@ class ResumedSandbox:
|
|
|
67
75
|
resumed_sandbox = cls(
|
|
68
76
|
timeout=timeout,
|
|
69
77
|
cpu_count=cpu_count,
|
|
78
|
+
memory_mb=memory_mb,
|
|
70
79
|
auto_pause=auto_pause,
|
|
71
80
|
memory=memory,
|
|
72
81
|
)
|
|
@@ -21,6 +21,8 @@ class Sandbox:
|
|
|
21
21
|
envd_access_token (Union[Unset, str]): Access token used for envd communication
|
|
22
22
|
traffic_access_token (Union[None, Unset, str]): Token required for accessing sandbox via proxy.
|
|
23
23
|
domain (Union[None, Unset, str]): Base domain where the sandbox traffic is accessible
|
|
24
|
+
cpu_count (Union[Unset, int]): CPU cores for the sandbox
|
|
25
|
+
memory_mb (Union[Unset, int]): Memory for the sandbox in MiB
|
|
24
26
|
"""
|
|
25
27
|
|
|
26
28
|
template_id: str
|
|
@@ -31,6 +33,8 @@ class Sandbox:
|
|
|
31
33
|
envd_access_token: Union[Unset, str] = UNSET
|
|
32
34
|
traffic_access_token: Union[None, Unset, str] = UNSET
|
|
33
35
|
domain: Union[None, Unset, str] = UNSET
|
|
36
|
+
cpu_count: Union[Unset, int] = UNSET
|
|
37
|
+
memory_mb: Union[Unset, int] = UNSET
|
|
34
38
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
35
39
|
|
|
36
40
|
def to_dict(self) -> dict[str, Any]:
|
|
@@ -58,6 +62,10 @@ class Sandbox:
|
|
|
58
62
|
else:
|
|
59
63
|
domain = self.domain
|
|
60
64
|
|
|
65
|
+
cpu_count = self.cpu_count
|
|
66
|
+
|
|
67
|
+
memory_mb = self.memory_mb
|
|
68
|
+
|
|
61
69
|
field_dict: dict[str, Any] = {}
|
|
62
70
|
field_dict.update(self.additional_properties)
|
|
63
71
|
field_dict.update(
|
|
@@ -76,6 +84,10 @@ class Sandbox:
|
|
|
76
84
|
field_dict["trafficAccessToken"] = traffic_access_token
|
|
77
85
|
if domain is not UNSET:
|
|
78
86
|
field_dict["domain"] = domain
|
|
87
|
+
if cpu_count is not UNSET:
|
|
88
|
+
field_dict["cpuCount"] = cpu_count
|
|
89
|
+
if memory_mb is not UNSET:
|
|
90
|
+
field_dict["memoryMB"] = memory_mb
|
|
79
91
|
|
|
80
92
|
return field_dict
|
|
81
93
|
|
|
@@ -114,6 +126,10 @@ class Sandbox:
|
|
|
114
126
|
|
|
115
127
|
domain = _parse_domain(d.pop("domain", UNSET))
|
|
116
128
|
|
|
129
|
+
cpu_count = d.pop("cpuCount", UNSET)
|
|
130
|
+
|
|
131
|
+
memory_mb = d.pop("memoryMB", UNSET)
|
|
132
|
+
|
|
117
133
|
sandbox = cls(
|
|
118
134
|
template_id=template_id,
|
|
119
135
|
sandbox_id=sandbox_id,
|
|
@@ -123,6 +139,8 @@ class Sandbox:
|
|
|
123
139
|
envd_access_token=envd_access_token,
|
|
124
140
|
traffic_access_token=traffic_access_token,
|
|
125
141
|
domain=domain,
|
|
142
|
+
cpu_count=cpu_count,
|
|
143
|
+
memory_mb=memory_mb,
|
|
126
144
|
)
|
|
127
145
|
|
|
128
146
|
sandbox.additional_properties = d
|
|
@@ -37,6 +37,7 @@ class Template:
|
|
|
37
37
|
envd_version (str): Version of the envd running in the sandbox
|
|
38
38
|
build_status (TemplateBuildStatus): Status of the template build
|
|
39
39
|
max_cpu_count (Union[Unset, int]): CPU cores for the sandbox
|
|
40
|
+
max_memory_mb (Union[Unset, int]): Memory for the sandbox in MiB
|
|
40
41
|
is_default (Union[Unset, bool]): Whether the template is one of the platform's default templates. A default
|
|
41
42
|
template owned by another team carries zero or null usage fields (`spawnCount`, `buildCount`, `lastSpawnedAt`,
|
|
42
43
|
`createdBy`).
|
|
@@ -60,6 +61,7 @@ class Template:
|
|
|
60
61
|
envd_version: str
|
|
61
62
|
build_status: TemplateBuildStatus
|
|
62
63
|
max_cpu_count: Union[Unset, int] = UNSET
|
|
64
|
+
max_memory_mb: Union[Unset, int] = UNSET
|
|
63
65
|
is_default: Union[Unset, bool] = UNSET
|
|
64
66
|
description: Union[Unset, str] = UNSET
|
|
65
67
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
@@ -109,6 +111,8 @@ class Template:
|
|
|
109
111
|
|
|
110
112
|
max_cpu_count = self.max_cpu_count
|
|
111
113
|
|
|
114
|
+
max_memory_mb = self.max_memory_mb
|
|
115
|
+
|
|
112
116
|
is_default = self.is_default
|
|
113
117
|
|
|
114
118
|
description = self.description
|
|
@@ -137,6 +141,8 @@ class Template:
|
|
|
137
141
|
)
|
|
138
142
|
if max_cpu_count is not UNSET:
|
|
139
143
|
field_dict["maxCpuCount"] = max_cpu_count
|
|
144
|
+
if max_memory_mb is not UNSET:
|
|
145
|
+
field_dict["maxMemoryMB"] = max_memory_mb
|
|
140
146
|
if is_default is not UNSET:
|
|
141
147
|
field_dict["isDefault"] = is_default
|
|
142
148
|
if description is not UNSET:
|
|
@@ -209,6 +215,8 @@ class Template:
|
|
|
209
215
|
|
|
210
216
|
max_cpu_count = d.pop("maxCpuCount", UNSET)
|
|
211
217
|
|
|
218
|
+
max_memory_mb = d.pop("maxMemoryMB", UNSET)
|
|
219
|
+
|
|
212
220
|
is_default = d.pop("isDefault", UNSET)
|
|
213
221
|
|
|
214
222
|
description = d.pop("description", UNSET)
|
|
@@ -231,6 +239,7 @@ class Template:
|
|
|
231
239
|
envd_version=envd_version,
|
|
232
240
|
build_status=build_status,
|
|
233
241
|
max_cpu_count=max_cpu_count,
|
|
242
|
+
max_memory_mb=max_memory_mb,
|
|
234
243
|
is_default=is_default,
|
|
235
244
|
description=description,
|
|
236
245
|
)
|
|
@@ -25,6 +25,7 @@ class TemplateBuild:
|
|
|
25
25
|
memory_mb (int): Memory for the sandbox in MiB
|
|
26
26
|
finished_at (Union[Unset, datetime.datetime]): Time when the build was finished
|
|
27
27
|
max_cpu_count (Union[Unset, int]): CPU cores for the sandbox
|
|
28
|
+
max_memory_mb (Union[Unset, int]): Memory for the sandbox in MiB
|
|
28
29
|
disk_size_mb (Union[Unset, int]): Disk size for the sandbox in MiB
|
|
29
30
|
envd_version (Union[Unset, str]): Version of the envd running in the sandbox
|
|
30
31
|
"""
|
|
@@ -37,6 +38,7 @@ class TemplateBuild:
|
|
|
37
38
|
memory_mb: int
|
|
38
39
|
finished_at: Union[Unset, datetime.datetime] = UNSET
|
|
39
40
|
max_cpu_count: Union[Unset, int] = UNSET
|
|
41
|
+
max_memory_mb: Union[Unset, int] = UNSET
|
|
40
42
|
disk_size_mb: Union[Unset, int] = UNSET
|
|
41
43
|
envd_version: Union[Unset, str] = UNSET
|
|
42
44
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
@@ -60,6 +62,8 @@ class TemplateBuild:
|
|
|
60
62
|
|
|
61
63
|
max_cpu_count = self.max_cpu_count
|
|
62
64
|
|
|
65
|
+
max_memory_mb = self.max_memory_mb
|
|
66
|
+
|
|
63
67
|
disk_size_mb = self.disk_size_mb
|
|
64
68
|
|
|
65
69
|
envd_version = self.envd_version
|
|
@@ -80,6 +84,8 @@ class TemplateBuild:
|
|
|
80
84
|
field_dict["finishedAt"] = finished_at
|
|
81
85
|
if max_cpu_count is not UNSET:
|
|
82
86
|
field_dict["maxCpuCount"] = max_cpu_count
|
|
87
|
+
if max_memory_mb is not UNSET:
|
|
88
|
+
field_dict["maxMemoryMB"] = max_memory_mb
|
|
83
89
|
if disk_size_mb is not UNSET:
|
|
84
90
|
field_dict["diskSizeMB"] = disk_size_mb
|
|
85
91
|
if envd_version is not UNSET:
|
|
@@ -111,6 +117,8 @@ class TemplateBuild:
|
|
|
111
117
|
|
|
112
118
|
max_cpu_count = d.pop("maxCpuCount", UNSET)
|
|
113
119
|
|
|
120
|
+
max_memory_mb = d.pop("maxMemoryMB", UNSET)
|
|
121
|
+
|
|
114
122
|
disk_size_mb = d.pop("diskSizeMB", UNSET)
|
|
115
123
|
|
|
116
124
|
envd_version = d.pop("envdVersion", UNSET)
|
|
@@ -124,6 +132,7 @@ class TemplateBuild:
|
|
|
124
132
|
memory_mb=memory_mb,
|
|
125
133
|
finished_at=finished_at,
|
|
126
134
|
max_cpu_count=max_cpu_count,
|
|
135
|
+
max_memory_mb=max_memory_mb,
|
|
127
136
|
disk_size_mb=disk_size_mb,
|
|
128
137
|
envd_version=envd_version,
|
|
129
138
|
)
|
|
@@ -21,6 +21,7 @@ class TemplateBuildRequestV3:
|
|
|
21
21
|
cpu_count (Union[Unset, int]): CPU cores for the sandbox
|
|
22
22
|
max_cpu_count (Union[Unset, int]): CPU cores for the sandbox
|
|
23
23
|
memory_mb (Union[Unset, int]): Memory for the sandbox in MiB
|
|
24
|
+
max_memory_mb (Union[Unset, int]): Memory for the sandbox in MiB
|
|
24
25
|
min_free_disk_mb (Union[Unset, int]): Requested minimum free space after the template's build steps, in MiB.
|
|
25
26
|
Omit to use the team's default. Set to 0 to request no minimum free-disk growth. The filesystem is never shrunk,
|
|
26
27
|
including inherited or already-larger filesystems. Growth is best effort, so filesystem metadata can leave the
|
|
@@ -34,6 +35,7 @@ class TemplateBuildRequestV3:
|
|
|
34
35
|
cpu_count: Union[Unset, int] = UNSET
|
|
35
36
|
max_cpu_count: Union[Unset, int] = UNSET
|
|
36
37
|
memory_mb: Union[Unset, int] = UNSET
|
|
38
|
+
max_memory_mb: Union[Unset, int] = UNSET
|
|
37
39
|
min_free_disk_mb: Union[Unset, int] = UNSET
|
|
38
40
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
39
41
|
|
|
@@ -54,6 +56,8 @@ class TemplateBuildRequestV3:
|
|
|
54
56
|
|
|
55
57
|
memory_mb = self.memory_mb
|
|
56
58
|
|
|
59
|
+
max_memory_mb = self.max_memory_mb
|
|
60
|
+
|
|
57
61
|
min_free_disk_mb = self.min_free_disk_mb
|
|
58
62
|
|
|
59
63
|
field_dict: dict[str, Any] = {}
|
|
@@ -73,6 +77,8 @@ class TemplateBuildRequestV3:
|
|
|
73
77
|
field_dict["maxCpuCount"] = max_cpu_count
|
|
74
78
|
if memory_mb is not UNSET:
|
|
75
79
|
field_dict["memoryMB"] = memory_mb
|
|
80
|
+
if max_memory_mb is not UNSET:
|
|
81
|
+
field_dict["maxMemoryMB"] = max_memory_mb
|
|
76
82
|
if min_free_disk_mb is not UNSET:
|
|
77
83
|
field_dict["minFreeDiskMb"] = min_free_disk_mb
|
|
78
84
|
|
|
@@ -95,6 +101,8 @@ class TemplateBuildRequestV3:
|
|
|
95
101
|
|
|
96
102
|
memory_mb = d.pop("memoryMB", UNSET)
|
|
97
103
|
|
|
104
|
+
max_memory_mb = d.pop("maxMemoryMB", UNSET)
|
|
105
|
+
|
|
98
106
|
min_free_disk_mb = d.pop("minFreeDiskMb", UNSET)
|
|
99
107
|
|
|
100
108
|
template_build_request_v3 = cls(
|
|
@@ -105,6 +113,7 @@ class TemplateBuildRequestV3:
|
|
|
105
113
|
cpu_count=cpu_count,
|
|
106
114
|
max_cpu_count=max_cpu_count,
|
|
107
115
|
memory_mb=memory_mb,
|
|
116
|
+
max_memory_mb=max_memory_mb,
|
|
108
117
|
min_free_disk_mb=min_free_disk_mb,
|
|
109
118
|
)
|
|
110
119
|
|
|
@@ -27,6 +27,7 @@ class TemplateBuildWithTags:
|
|
|
27
27
|
assigned to, the build a sandbox created with that tag starts from.
|
|
28
28
|
finished_at (Union[Unset, datetime.datetime]): Time when the build was finished
|
|
29
29
|
max_cpu_count (Union[Unset, int]): CPU cores for the sandbox
|
|
30
|
+
max_memory_mb (Union[Unset, int]): Memory for the sandbox in MiB
|
|
30
31
|
disk_size_mb (Union[Unset, int]): Disk size for the sandbox in MiB
|
|
31
32
|
envd_version (Union[Unset, str]): Version of the envd running in the sandbox
|
|
32
33
|
"""
|
|
@@ -40,6 +41,7 @@ class TemplateBuildWithTags:
|
|
|
40
41
|
tags: list[str]
|
|
41
42
|
finished_at: Union[Unset, datetime.datetime] = UNSET
|
|
42
43
|
max_cpu_count: Union[Unset, int] = UNSET
|
|
44
|
+
max_memory_mb: Union[Unset, int] = UNSET
|
|
43
45
|
disk_size_mb: Union[Unset, int] = UNSET
|
|
44
46
|
envd_version: Union[Unset, str] = UNSET
|
|
45
47
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
@@ -65,6 +67,8 @@ class TemplateBuildWithTags:
|
|
|
65
67
|
|
|
66
68
|
max_cpu_count = self.max_cpu_count
|
|
67
69
|
|
|
70
|
+
max_memory_mb = self.max_memory_mb
|
|
71
|
+
|
|
68
72
|
disk_size_mb = self.disk_size_mb
|
|
69
73
|
|
|
70
74
|
envd_version = self.envd_version
|
|
@@ -86,6 +90,8 @@ class TemplateBuildWithTags:
|
|
|
86
90
|
field_dict["finishedAt"] = finished_at
|
|
87
91
|
if max_cpu_count is not UNSET:
|
|
88
92
|
field_dict["maxCpuCount"] = max_cpu_count
|
|
93
|
+
if max_memory_mb is not UNSET:
|
|
94
|
+
field_dict["maxMemoryMB"] = max_memory_mb
|
|
89
95
|
if disk_size_mb is not UNSET:
|
|
90
96
|
field_dict["diskSizeMB"] = disk_size_mb
|
|
91
97
|
if envd_version is not UNSET:
|
|
@@ -119,6 +125,8 @@ class TemplateBuildWithTags:
|
|
|
119
125
|
|
|
120
126
|
max_cpu_count = d.pop("maxCpuCount", UNSET)
|
|
121
127
|
|
|
128
|
+
max_memory_mb = d.pop("maxMemoryMB", UNSET)
|
|
129
|
+
|
|
122
130
|
disk_size_mb = d.pop("diskSizeMB", UNSET)
|
|
123
131
|
|
|
124
132
|
envd_version = d.pop("envdVersion", UNSET)
|
|
@@ -133,6 +141,7 @@ class TemplateBuildWithTags:
|
|
|
133
141
|
tags=tags,
|
|
134
142
|
finished_at=finished_at,
|
|
135
143
|
max_cpu_count=max_cpu_count,
|
|
144
|
+
max_memory_mb=max_memory_mb,
|
|
136
145
|
disk_size_mb=disk_size_mb,
|
|
137
146
|
envd_version=envd_version,
|
|
138
147
|
)
|