e2b 2.63.0__tar.gz → 2.65.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.63.0 → e2b-2.65.0}/PKG-INFO +1 -1
- {e2b-2.63.0 → e2b-2.65.0}/e2b/__init__.py +19 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/__init__.py +21 -5
- e2b-2.65.0/e2b/api/client/api/sandboxes/get_unstable_sandboxes_sandbox_id_record.py +191 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/api/sandboxes/post_sandboxes_sandbox_id_pause.py +4 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/api/sandboxes/post_sandboxes_sandbox_id_snapshots.py +24 -1
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/api/tags/post_templates_tags.py +53 -15
- e2b-2.65.0/e2b/api/client/api/templates/get_templates_template_id_builds.py +272 -0
- e2b-2.65.0/e2b/api/client/api/templates/get_v_2_templates_template_id.py +183 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/api/templates/post_v3_templates.py +28 -5
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/api/templates/post_v_2_templates_template_id_builds_build_id.py +44 -5
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/__init__.py +6 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/new_sandbox.py +9 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/new_sandbox_v2.py +9 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/resumed_sandbox.py +9 -0
- e2b-2.65.0/e2b/api/client/models/sandbox_record.py +180 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/template.py +9 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/template_build.py +9 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/template_build_request_v3.py +9 -0
- e2b-2.65.0/e2b/api/client/models/template_build_with_tags.py +157 -0
- e2b-2.65.0/e2b/api/client/models/template_v2.py +217 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/template_with_builds.py +9 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/exceptions.py +9 -22
- e2b-2.65.0/e2b/sandbox/commands/main.py +62 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/sandbox/sandbox_api.py +2 -2
- {e2b-2.63.0 → e2b-2.65.0}/e2b/sandbox_async/commands/command.py +28 -4
- {e2b-2.63.0 → e2b-2.65.0}/e2b/sandbox_async/git.py +38 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/sandbox_async/main.py +6 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/sandbox_async/sandbox_api.py +4 -15
- {e2b-2.63.0 → e2b-2.65.0}/e2b/sandbox_sync/commands/command.py +18 -5
- {e2b-2.63.0 → e2b-2.65.0}/e2b/sandbox_sync/git.py +38 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/sandbox_sync/main.py +6 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/sandbox_sync/sandbox_api.py +4 -15
- e2b-2.65.0/e2b/template/paginator.py +103 -0
- e2b-2.65.0/e2b/template/types.py +452 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/template/utils.py +39 -1
- {e2b-2.63.0 → e2b-2.65.0}/e2b/template_async/build_api.py +75 -3
- {e2b-2.63.0 → e2b-2.65.0}/e2b/template_async/main.py +172 -2
- e2b-2.65.0/e2b/template_async/paginator.py +101 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/template_sync/build_api.py +73 -3
- {e2b-2.63.0 → e2b-2.65.0}/e2b/template_sync/main.py +172 -2
- e2b-2.65.0/e2b/template_sync/paginator.py +99 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/volume/client/api/volumes/delete_volumecontent_volume_id_path.py +4 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/volume/client/api/volumes/get_volumecontent_volume_id_dir.py +4 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/volume/client/api/volumes/get_volumecontent_volume_id_file.py +4 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/volume/client/api/volumes/get_volumecontent_volume_id_path.py +4 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/volume/client/api/volumes/patch_volumecontent_volume_id_path.py +15 -10
- {e2b-2.63.0 → e2b-2.65.0}/e2b/volume/client/api/volumes/post_volumecontent_volume_id_dir.py +4 -0
- {e2b-2.63.0 → e2b-2.65.0}/pyproject.toml +1 -1
- {e2b-2.63.0 → e2b-2.65.0}/pyproject.toml.orig +1 -1
- e2b-2.63.0/e2b/sandbox/commands/main.py +0 -39
- e2b-2.63.0/e2b/template/types.py +0 -194
- {e2b-2.63.0 → e2b-2.65.0}/README.md +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/__init__.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/api/__init__.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/api/sandboxes/__init__.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/api/sandboxes/delete_sandboxes_sandbox_id.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/api/sandboxes/get_sandboxes.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/api/sandboxes/get_sandboxes_metrics.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/api/sandboxes/get_sandboxes_sandbox_id.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/api/sandboxes/get_sandboxes_sandbox_id_logs.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/api/sandboxes/get_sandboxes_sandbox_id_metrics.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/api/sandboxes/get_v2_sandboxes.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/api/sandboxes/get_v_2_sandboxes_sandbox_id_logs.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/api/sandboxes/post_sandboxes.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/api/sandboxes/post_sandboxes_sandbox_id_connect.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/api/sandboxes/post_sandboxes_sandbox_id_fork.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/api/sandboxes/post_sandboxes_sandbox_id_refreshes.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/api/sandboxes/post_sandboxes_sandbox_id_resume.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/api/sandboxes/post_sandboxes_sandbox_id_timeout.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/api/sandboxes/post_v2_sandboxes.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/api/sandboxes/post_v_2_sandboxes_sandbox_id_connect.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/api/sandboxes/put_sandboxes_sandbox_id_network.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/api/secrets/__init__.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/api/secrets/delete_secrets_secret_id.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/api/secrets/get_secrets.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/api/secrets/get_secrets_secret_id.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/api/secrets/post_secrets.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/api/secrets/post_secrets_secret_id.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/api/snapshots/__init__.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/api/snapshots/get_snapshots.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/api/tags/__init__.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/api/tags/delete_templates_tags.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/api/tags/get_templates_template_id_tags.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/api/tags/get_templates_template_id_tags_count.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/api/tags/get_templates_template_id_tags_exists.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/api/tags/get_templates_template_id_tags_groups.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/api/tags/get_templates_template_id_tags_tag_assignments.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/api/templates/__init__.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/api/templates/delete_templates_template_id.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/api/templates/get_default_templates.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/api/templates/get_templates.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/api/templates/get_templates_aliases_alias.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/api/templates/get_templates_template_id.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/api/templates/get_templates_template_id_builds_build_id_logs.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/api/templates/get_templates_template_id_builds_build_id_status.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/api/templates/get_templates_template_id_files_hash.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/api/templates/get_v2_templates.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/api/templates/patch_templates_template_id.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/api/templates/patch_v_2_templates_template_id.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/api/volumes/__init__.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/api/volumes/delete_volumes_volume_id.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/api/volumes/get_volumes.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/api/volumes/get_volumes_volume_id.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/api/volumes/post_volumes.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/client.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/errors.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/assign_template_tags_request.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/assigned_template_tags.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/aws_registry.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/aws_registry_type.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/build_log_entry.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/build_status_reason.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/connect_sandbox.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/connect_sandbox_v2.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/delete_template_tags_request.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/error.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/gcp_registry.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/gcp_registry_type.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/general_registry.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/general_registry_type.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/get_templates_template_id_tags_groups_sort.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/listed_sandbox.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/log_level.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/logs_direction.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/logs_source.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/mcp_type_0.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/new_secret.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/new_volume.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/order_direction.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/sandbox.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/sandbox_auto_resume_config.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/sandbox_detail.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/sandbox_egress_proxy_config_type_0.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/sandbox_egress_proxy_tls_config_type_0.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/sandbox_fork_request.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/sandbox_fork_result.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/sandbox_iam.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/sandbox_iam_token.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/sandbox_iam_tokens.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/sandbox_lifecycle.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/sandbox_log.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/sandbox_log_entry.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/sandbox_log_entry_fields.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/sandbox_logs.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/sandbox_logs_v2_response.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/sandbox_metric.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/sandbox_network_config.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/sandbox_network_config_rules.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/sandbox_network_rule.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/sandbox_network_transform.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/sandbox_network_transform_headers.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/sandbox_network_update_config.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/sandbox_network_update_config_rules.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/sandbox_on_timeout.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/sandbox_pause_mode.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/sandbox_pause_request.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/sandbox_refresh_request.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/sandbox_snapshot_request.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/sandbox_state.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/sandbox_timeout_request.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/sandbox_volume_mount.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/sandboxes_with_metrics.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/secret.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/secret_metadata.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/secret_update.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/snapshot_info.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/team_user.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/template_alias_response.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/template_build_file_upload.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/template_build_file_upload_headers.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/template_build_info.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/template_build_logs_response.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/template_build_start_v2.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/template_build_status.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/template_request_response_v3.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/template_step.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/template_tag.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/template_tag_assignment.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/template_tag_assignments_response.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/template_tag_exists_response.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/template_tag_group.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/template_tag_groups_response.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/template_tags_count_response.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/template_update_request.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/template_update_response.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/volume.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/models/volume_and_token.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/py.typed +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/types.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client_async/__init__.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/client_sync/__init__.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/api/metadata.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/client.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/connection_config.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/envd/__init__.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/envd/api.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/envd/client_async/__init__.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/envd/client_shared.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/envd/client_sync/__init__.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/envd/filesystem/__init__.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/envd/filesystem/filesystem_connect.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/envd/filesystem/filesystem_pb.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/envd/interceptors.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/envd/process/__init__.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/envd/process/process_connect.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/envd/process/process_pb.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/envd/rpc.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/envd/utils.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/envd/versions.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/io_utils.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/paginator.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/py.typed +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/retry.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/sandbox/_git/__init__.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/sandbox/_git/args.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/sandbox/_git/auth.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/sandbox/_git/config.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/sandbox/_git/parse.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/sandbox/_git/types.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/sandbox/commands/command_handle.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/sandbox/commands/stream_input.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/sandbox/filesystem/filesystem.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/sandbox/filesystem/watch_handle.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/sandbox/iam.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/sandbox/main.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/sandbox/mcp.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/sandbox/network.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/sandbox/signature.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/sandbox/utils.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/sandbox_async/commands/command_handle.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/sandbox_async/commands/command_input_handle.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/sandbox_async/commands/pty.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/sandbox_async/filesystem/filesystem.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/sandbox_async/filesystem/watch_handle.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/sandbox_async/paginator.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/sandbox_async/utils.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/sandbox_domains.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/sandbox_sync/commands/command_handle.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/sandbox_sync/commands/pty.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/sandbox_sync/filesystem/filesystem.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/sandbox_sync/filesystem/watch_handle.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/sandbox_sync/paginator.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/secret/__init__.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/secret/base.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/secret/secret_async.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/secret/secret_sync.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/secret/types.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/template/consts.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/template/dockerfile_parser.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/template/logger.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/template/main.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/template/readycmd.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/volume/client/__init__.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/volume/client/api/__init__.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/volume/client/api/volumes/__init__.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/volume/client/api/volumes/put_volumecontent_volume_id_file.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/volume/client/client.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/volume/client/errors.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/volume/client/models/__init__.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/volume/client/models/error.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/volume/client/models/patch_volumecontent_volume_id_path_body.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/volume/client/models/volume_entry_stat.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/volume/client/models/volume_entry_stat_type.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/volume/client/py.typed +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/volume/client/types.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/volume/client_async/__init__.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/volume/client_sync/__init__.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/volume/connection_config.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/volume/types.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/volume/utils.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/volume/volume_async.py +0 -0
- {e2b-2.63.0 → e2b-2.65.0}/e2b/volume/volume_sync.py +0 -0
|
@@ -55,6 +55,7 @@ from .exceptions import (
|
|
|
55
55
|
SandboxNotRunningException,
|
|
56
56
|
SandboxUnreachableException,
|
|
57
57
|
TemplateException,
|
|
58
|
+
TemplateNotFoundException,
|
|
58
59
|
TimeoutException,
|
|
59
60
|
VolumeException,
|
|
60
61
|
VolumeNotFoundException,
|
|
@@ -158,13 +159,22 @@ from .template.types import (
|
|
|
158
159
|
BuildInfo,
|
|
159
160
|
BuildStatusReason,
|
|
160
161
|
CopyItem,
|
|
162
|
+
TemplateBuildInfo,
|
|
161
163
|
TemplateBuildStatus,
|
|
162
164
|
TemplateBuildStatusResponse,
|
|
165
|
+
TemplateBuildWithTags,
|
|
166
|
+
TemplateDetail,
|
|
167
|
+
TemplateInfo,
|
|
163
168
|
TemplateTag,
|
|
164
169
|
TemplateTagInfo,
|
|
165
170
|
)
|
|
166
171
|
from .template_async.main import AsyncTemplate
|
|
172
|
+
from .template_async.paginator import (
|
|
173
|
+
AsyncTemplateBuildPaginator,
|
|
174
|
+
AsyncTemplatePaginator,
|
|
175
|
+
)
|
|
167
176
|
from .template_sync.main import Template
|
|
177
|
+
from .template_sync.paginator import TemplateBuildPaginator, TemplatePaginator
|
|
168
178
|
|
|
169
179
|
from .volume.volume_sync import Volume
|
|
170
180
|
from .volume.volume_async import AsyncVolume
|
|
@@ -206,6 +216,7 @@ __all__ = [
|
|
|
206
216
|
"InvalidArgumentException",
|
|
207
217
|
"NotEnoughSpaceException",
|
|
208
218
|
"TemplateException",
|
|
219
|
+
"TemplateNotFoundException",
|
|
209
220
|
"DockerfileSyntaxError",
|
|
210
221
|
"BuildException",
|
|
211
222
|
"FileUploadException",
|
|
@@ -300,8 +311,16 @@ __all__ = [
|
|
|
300
311
|
"CopyItem",
|
|
301
312
|
"BuildInfo",
|
|
302
313
|
"BuildStatusReason",
|
|
314
|
+
"TemplateBuildInfo",
|
|
303
315
|
"TemplateBuildStatus",
|
|
304
316
|
"TemplateBuildStatusResponse",
|
|
317
|
+
"TemplateBuildWithTags",
|
|
318
|
+
"TemplateDetail",
|
|
319
|
+
"TemplateInfo",
|
|
320
|
+
"TemplatePaginator",
|
|
321
|
+
"AsyncTemplatePaginator",
|
|
322
|
+
"TemplateBuildPaginator",
|
|
323
|
+
"AsyncTemplateBuildPaginator",
|
|
305
324
|
"TemplateTag",
|
|
306
325
|
"TemplateTagInfo",
|
|
307
326
|
"ReadyCmd",
|
|
@@ -199,7 +199,7 @@ def handle_api_exception(
|
|
|
199
199
|
except json.JSONDecodeError:
|
|
200
200
|
body = {}
|
|
201
201
|
|
|
202
|
-
message = body
|
|
202
|
+
message = body.get("message")
|
|
203
203
|
if body.get("error_code") == GuestUnresponsiveException.code:
|
|
204
204
|
return GuestUnresponsiveException(
|
|
205
205
|
f'{message}. Resume the sandbox with on_resume="reboot".'
|
|
@@ -246,15 +246,31 @@ class ApiClient(AuthenticatedClient):
|
|
|
246
246
|
):
|
|
247
247
|
self._proxy = config.proxy
|
|
248
248
|
|
|
249
|
-
|
|
249
|
+
# An `Authorization` header (e.g. an OAuth access token passed through
|
|
250
|
+
# `api_headers`) authenticates the request in place of an API key.
|
|
251
|
+
authorization = next(
|
|
252
|
+
(
|
|
253
|
+
(name, value)
|
|
254
|
+
for name, value in (config.headers or {}).items()
|
|
255
|
+
if name.lower() == "authorization"
|
|
256
|
+
),
|
|
257
|
+
None,
|
|
258
|
+
)
|
|
259
|
+
|
|
260
|
+
# Like the JS SDK, an empty E2B_API_KEY counts as unset.
|
|
261
|
+
if config.api_key:
|
|
262
|
+
token = config.api_key
|
|
263
|
+
auth_header_name = "X-API-KEY"
|
|
264
|
+
elif authorization is not None:
|
|
265
|
+
# The generated client always writes `token` to `auth_header_name`;
|
|
266
|
+
# point it at the caller's own header so it isn't sent twice.
|
|
267
|
+
auth_header_name, token = authorization
|
|
268
|
+
else:
|
|
250
269
|
raise AuthenticationException(
|
|
251
270
|
"API key is required, please visit the API Keys tab at https://e2b.dev/dashboard?tab=keys to get your API key. "
|
|
252
271
|
"You can either set the environment variable `E2B_API_KEY` "
|
|
253
272
|
'or you can pass it directly to the method like api_key="e2b_..."',
|
|
254
273
|
)
|
|
255
|
-
|
|
256
|
-
token = config.api_key
|
|
257
|
-
auth_header_name = "X-API-KEY"
|
|
258
274
|
prefix = ""
|
|
259
275
|
|
|
260
276
|
self._logger = config.logger
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
from http import HTTPStatus
|
|
2
|
+
from typing import Any, Optional, Union
|
|
3
|
+
|
|
4
|
+
import httpx
|
|
5
|
+
|
|
6
|
+
from ... import errors
|
|
7
|
+
from ...client import AuthenticatedClient, Client
|
|
8
|
+
from ...models.error import Error
|
|
9
|
+
from ...models.sandbox_record import SandboxRecord
|
|
10
|
+
from ...types import Response
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def _get_kwargs(
|
|
14
|
+
sandbox_id: str,
|
|
15
|
+
) -> dict[str, Any]:
|
|
16
|
+
_kwargs: dict[str, Any] = {
|
|
17
|
+
"method": "get",
|
|
18
|
+
"url": f"/unstable/sandboxes/{sandbox_id}/record",
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
return _kwargs
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
def _parse_response(
|
|
25
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
26
|
+
) -> Optional[Union[Error, SandboxRecord]]:
|
|
27
|
+
if response.status_code == 200:
|
|
28
|
+
response_200 = SandboxRecord.from_dict(response.json())
|
|
29
|
+
|
|
30
|
+
return response_200
|
|
31
|
+
if response.status_code == 400:
|
|
32
|
+
response_400 = Error.from_dict(response.json())
|
|
33
|
+
|
|
34
|
+
return response_400
|
|
35
|
+
if response.status_code == 401:
|
|
36
|
+
response_401 = Error.from_dict(response.json())
|
|
37
|
+
|
|
38
|
+
return response_401
|
|
39
|
+
if response.status_code == 403:
|
|
40
|
+
response_403 = Error.from_dict(response.json())
|
|
41
|
+
|
|
42
|
+
return response_403
|
|
43
|
+
if response.status_code == 404:
|
|
44
|
+
response_404 = Error.from_dict(response.json())
|
|
45
|
+
|
|
46
|
+
return response_404
|
|
47
|
+
if response.status_code == 429:
|
|
48
|
+
response_429 = Error.from_dict(response.json())
|
|
49
|
+
|
|
50
|
+
return response_429
|
|
51
|
+
if response.status_code == 500:
|
|
52
|
+
response_500 = Error.from_dict(response.json())
|
|
53
|
+
|
|
54
|
+
return response_500
|
|
55
|
+
if client.raise_on_unexpected_status:
|
|
56
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
57
|
+
else:
|
|
58
|
+
return None
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
def _build_response(
|
|
62
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
63
|
+
) -> Response[Union[Error, SandboxRecord]]:
|
|
64
|
+
return Response(
|
|
65
|
+
status_code=HTTPStatus(response.status_code),
|
|
66
|
+
content=response.content,
|
|
67
|
+
headers=response.headers,
|
|
68
|
+
parsed=_parse_response(client=client, response=response),
|
|
69
|
+
)
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
def sync_detailed(
|
|
73
|
+
sandbox_id: str,
|
|
74
|
+
*,
|
|
75
|
+
client: AuthenticatedClient,
|
|
76
|
+
) -> Response[Union[Error, SandboxRecord]]:
|
|
77
|
+
"""Sandbox record
|
|
78
|
+
|
|
79
|
+
Returns the team's latest recorded run of the sandbox, including runs that have already ended, and
|
|
80
|
+
whether its monitoring, logs and events data are still retained. Returns 404 when the team has no
|
|
81
|
+
recorded run of the sandbox.
|
|
82
|
+
|
|
83
|
+
Args:
|
|
84
|
+
sandbox_id (str):
|
|
85
|
+
|
|
86
|
+
Raises:
|
|
87
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
88
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
89
|
+
|
|
90
|
+
Returns:
|
|
91
|
+
Response[Union[Error, SandboxRecord]]
|
|
92
|
+
"""
|
|
93
|
+
|
|
94
|
+
kwargs = _get_kwargs(
|
|
95
|
+
sandbox_id=sandbox_id,
|
|
96
|
+
)
|
|
97
|
+
|
|
98
|
+
response = client.get_httpx_client().request(
|
|
99
|
+
**kwargs,
|
|
100
|
+
)
|
|
101
|
+
|
|
102
|
+
return _build_response(client=client, response=response)
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
def sync(
|
|
106
|
+
sandbox_id: str,
|
|
107
|
+
*,
|
|
108
|
+
client: AuthenticatedClient,
|
|
109
|
+
) -> Optional[Union[Error, SandboxRecord]]:
|
|
110
|
+
"""Sandbox record
|
|
111
|
+
|
|
112
|
+
Returns the team's latest recorded run of the sandbox, including runs that have already ended, and
|
|
113
|
+
whether its monitoring, logs and events data are still retained. Returns 404 when the team has no
|
|
114
|
+
recorded run of the sandbox.
|
|
115
|
+
|
|
116
|
+
Args:
|
|
117
|
+
sandbox_id (str):
|
|
118
|
+
|
|
119
|
+
Raises:
|
|
120
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
121
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
122
|
+
|
|
123
|
+
Returns:
|
|
124
|
+
Union[Error, SandboxRecord]
|
|
125
|
+
"""
|
|
126
|
+
|
|
127
|
+
return sync_detailed(
|
|
128
|
+
sandbox_id=sandbox_id,
|
|
129
|
+
client=client,
|
|
130
|
+
).parsed
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
async def asyncio_detailed(
|
|
134
|
+
sandbox_id: str,
|
|
135
|
+
*,
|
|
136
|
+
client: AuthenticatedClient,
|
|
137
|
+
) -> Response[Union[Error, SandboxRecord]]:
|
|
138
|
+
"""Sandbox record
|
|
139
|
+
|
|
140
|
+
Returns the team's latest recorded run of the sandbox, including runs that have already ended, and
|
|
141
|
+
whether its monitoring, logs and events data are still retained. Returns 404 when the team has no
|
|
142
|
+
recorded run of the sandbox.
|
|
143
|
+
|
|
144
|
+
Args:
|
|
145
|
+
sandbox_id (str):
|
|
146
|
+
|
|
147
|
+
Raises:
|
|
148
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
149
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
150
|
+
|
|
151
|
+
Returns:
|
|
152
|
+
Response[Union[Error, SandboxRecord]]
|
|
153
|
+
"""
|
|
154
|
+
|
|
155
|
+
kwargs = _get_kwargs(
|
|
156
|
+
sandbox_id=sandbox_id,
|
|
157
|
+
)
|
|
158
|
+
|
|
159
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
160
|
+
|
|
161
|
+
return _build_response(client=client, response=response)
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
async def asyncio(
|
|
165
|
+
sandbox_id: str,
|
|
166
|
+
*,
|
|
167
|
+
client: AuthenticatedClient,
|
|
168
|
+
) -> Optional[Union[Error, SandboxRecord]]:
|
|
169
|
+
"""Sandbox record
|
|
170
|
+
|
|
171
|
+
Returns the team's latest recorded run of the sandbox, including runs that have already ended, and
|
|
172
|
+
whether its monitoring, logs and events data are still retained. Returns 404 when the team has no
|
|
173
|
+
recorded run of the sandbox.
|
|
174
|
+
|
|
175
|
+
Args:
|
|
176
|
+
sandbox_id (str):
|
|
177
|
+
|
|
178
|
+
Raises:
|
|
179
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
180
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
181
|
+
|
|
182
|
+
Returns:
|
|
183
|
+
Union[Error, SandboxRecord]
|
|
184
|
+
"""
|
|
185
|
+
|
|
186
|
+
return (
|
|
187
|
+
await asyncio_detailed(
|
|
188
|
+
sandbox_id=sandbox_id,
|
|
189
|
+
client=client,
|
|
190
|
+
)
|
|
191
|
+
).parsed
|
|
@@ -36,6 +36,10 @@ def _parse_response(
|
|
|
36
36
|
if response.status_code == 204:
|
|
37
37
|
response_204 = cast(Any, None)
|
|
38
38
|
return response_204
|
|
39
|
+
if response.status_code == 400:
|
|
40
|
+
response_400 = Error.from_dict(response.json())
|
|
41
|
+
|
|
42
|
+
return response_400
|
|
39
43
|
if response.status_code == 401:
|
|
40
44
|
response_401 = Error.from_dict(response.json())
|
|
41
45
|
|
{e2b-2.63.0 → e2b-2.65.0}/e2b/api/client/api/sandboxes/post_sandboxes_sandbox_id_snapshots.py
RENAMED
|
@@ -8,15 +8,18 @@ from ...client import AuthenticatedClient, Client
|
|
|
8
8
|
from ...models.error import Error
|
|
9
9
|
from ...models.sandbox_snapshot_request import SandboxSnapshotRequest
|
|
10
10
|
from ...models.snapshot_info import SnapshotInfo
|
|
11
|
-
from ...types import Response
|
|
11
|
+
from ...types import UNSET, Response, Unset
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
def _get_kwargs(
|
|
15
15
|
sandbox_id: str,
|
|
16
16
|
*,
|
|
17
17
|
body: SandboxSnapshotRequest,
|
|
18
|
+
idempotency_key: Union[Unset, str] = UNSET,
|
|
18
19
|
) -> dict[str, Any]:
|
|
19
20
|
headers: dict[str, Any] = {}
|
|
21
|
+
if not isinstance(idempotency_key, Unset):
|
|
22
|
+
headers["Idempotency-Key"] = idempotency_key
|
|
20
23
|
|
|
21
24
|
_kwargs: dict[str, Any] = {
|
|
22
25
|
"method": "post",
|
|
@@ -50,6 +53,14 @@ def _parse_response(
|
|
|
50
53
|
response_404 = Error.from_dict(response.json())
|
|
51
54
|
|
|
52
55
|
return response_404
|
|
56
|
+
if response.status_code == 409:
|
|
57
|
+
response_409 = Error.from_dict(response.json())
|
|
58
|
+
|
|
59
|
+
return response_409
|
|
60
|
+
if response.status_code == 422:
|
|
61
|
+
response_422 = Error.from_dict(response.json())
|
|
62
|
+
|
|
63
|
+
return response_422
|
|
53
64
|
if response.status_code == 429:
|
|
54
65
|
response_429 = Error.from_dict(response.json())
|
|
55
66
|
|
|
@@ -84,6 +95,7 @@ def sync_detailed(
|
|
|
84
95
|
*,
|
|
85
96
|
client: AuthenticatedClient,
|
|
86
97
|
body: SandboxSnapshotRequest,
|
|
98
|
+
idempotency_key: Union[Unset, str] = UNSET,
|
|
87
99
|
) -> Response[Union[Error, SnapshotInfo]]:
|
|
88
100
|
"""Create snapshot
|
|
89
101
|
|
|
@@ -92,6 +104,7 @@ def sync_detailed(
|
|
|
92
104
|
|
|
93
105
|
Args:
|
|
94
106
|
sandbox_id (str):
|
|
107
|
+
idempotency_key (Union[Unset, str]):
|
|
95
108
|
body (SandboxSnapshotRequest):
|
|
96
109
|
|
|
97
110
|
Raises:
|
|
@@ -105,6 +118,7 @@ def sync_detailed(
|
|
|
105
118
|
kwargs = _get_kwargs(
|
|
106
119
|
sandbox_id=sandbox_id,
|
|
107
120
|
body=body,
|
|
121
|
+
idempotency_key=idempotency_key,
|
|
108
122
|
)
|
|
109
123
|
|
|
110
124
|
response = client.get_httpx_client().request(
|
|
@@ -119,6 +133,7 @@ def sync(
|
|
|
119
133
|
*,
|
|
120
134
|
client: AuthenticatedClient,
|
|
121
135
|
body: SandboxSnapshotRequest,
|
|
136
|
+
idempotency_key: Union[Unset, str] = UNSET,
|
|
122
137
|
) -> Optional[Union[Error, SnapshotInfo]]:
|
|
123
138
|
"""Create snapshot
|
|
124
139
|
|
|
@@ -127,6 +142,7 @@ def sync(
|
|
|
127
142
|
|
|
128
143
|
Args:
|
|
129
144
|
sandbox_id (str):
|
|
145
|
+
idempotency_key (Union[Unset, str]):
|
|
130
146
|
body (SandboxSnapshotRequest):
|
|
131
147
|
|
|
132
148
|
Raises:
|
|
@@ -141,6 +157,7 @@ def sync(
|
|
|
141
157
|
sandbox_id=sandbox_id,
|
|
142
158
|
client=client,
|
|
143
159
|
body=body,
|
|
160
|
+
idempotency_key=idempotency_key,
|
|
144
161
|
).parsed
|
|
145
162
|
|
|
146
163
|
|
|
@@ -149,6 +166,7 @@ async def asyncio_detailed(
|
|
|
149
166
|
*,
|
|
150
167
|
client: AuthenticatedClient,
|
|
151
168
|
body: SandboxSnapshotRequest,
|
|
169
|
+
idempotency_key: Union[Unset, str] = UNSET,
|
|
152
170
|
) -> Response[Union[Error, SnapshotInfo]]:
|
|
153
171
|
"""Create snapshot
|
|
154
172
|
|
|
@@ -157,6 +175,7 @@ async def asyncio_detailed(
|
|
|
157
175
|
|
|
158
176
|
Args:
|
|
159
177
|
sandbox_id (str):
|
|
178
|
+
idempotency_key (Union[Unset, str]):
|
|
160
179
|
body (SandboxSnapshotRequest):
|
|
161
180
|
|
|
162
181
|
Raises:
|
|
@@ -170,6 +189,7 @@ async def asyncio_detailed(
|
|
|
170
189
|
kwargs = _get_kwargs(
|
|
171
190
|
sandbox_id=sandbox_id,
|
|
172
191
|
body=body,
|
|
192
|
+
idempotency_key=idempotency_key,
|
|
173
193
|
)
|
|
174
194
|
|
|
175
195
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -182,6 +202,7 @@ async def asyncio(
|
|
|
182
202
|
*,
|
|
183
203
|
client: AuthenticatedClient,
|
|
184
204
|
body: SandboxSnapshotRequest,
|
|
205
|
+
idempotency_key: Union[Unset, str] = UNSET,
|
|
185
206
|
) -> Optional[Union[Error, SnapshotInfo]]:
|
|
186
207
|
"""Create snapshot
|
|
187
208
|
|
|
@@ -190,6 +211,7 @@ async def asyncio(
|
|
|
190
211
|
|
|
191
212
|
Args:
|
|
192
213
|
sandbox_id (str):
|
|
214
|
+
idempotency_key (Union[Unset, str]):
|
|
193
215
|
body (SandboxSnapshotRequest):
|
|
194
216
|
|
|
195
217
|
Raises:
|
|
@@ -205,5 +227,6 @@ async def asyncio(
|
|
|
205
227
|
sandbox_id=sandbox_id,
|
|
206
228
|
client=client,
|
|
207
229
|
body=body,
|
|
230
|
+
idempotency_key=idempotency_key,
|
|
208
231
|
)
|
|
209
232
|
).parsed
|
|
@@ -8,14 +8,17 @@ from ...client import AuthenticatedClient, Client
|
|
|
8
8
|
from ...models.assign_template_tags_request import AssignTemplateTagsRequest
|
|
9
9
|
from ...models.assigned_template_tags import AssignedTemplateTags
|
|
10
10
|
from ...models.error import Error
|
|
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: AssignTemplateTagsRequest,
|
|
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",
|
|
@@ -32,7 +35,7 @@ def _get_kwargs(
|
|
|
32
35
|
|
|
33
36
|
def _parse_response(
|
|
34
37
|
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
35
|
-
) -> Optional[Union[AssignedTemplateTags, Error]]:
|
|
38
|
+
) -> Optional[Union[AssignedTemplateTags, Error, str]]:
|
|
36
39
|
if response.status_code == 201:
|
|
37
40
|
response_201 = AssignedTemplateTags.from_dict(response.json())
|
|
38
41
|
|
|
@@ -45,10 +48,29 @@ def _parse_response(
|
|
|
45
48
|
response_401 = Error.from_dict(response.json())
|
|
46
49
|
|
|
47
50
|
return response_401
|
|
51
|
+
if response.status_code == 403:
|
|
52
|
+
response_403 = Error.from_dict(response.json())
|
|
53
|
+
|
|
54
|
+
return response_403
|
|
48
55
|
if response.status_code == 404:
|
|
49
56
|
response_404 = Error.from_dict(response.json())
|
|
50
57
|
|
|
51
58
|
return response_404
|
|
59
|
+
if response.status_code == 408:
|
|
60
|
+
response_408 = Error.from_dict(response.json())
|
|
61
|
+
|
|
62
|
+
return response_408
|
|
63
|
+
if response.status_code == 409:
|
|
64
|
+
response_409 = Error.from_dict(response.json())
|
|
65
|
+
|
|
66
|
+
return response_409
|
|
67
|
+
if response.status_code == 413:
|
|
68
|
+
response_413 = response.text
|
|
69
|
+
return response_413
|
|
70
|
+
if response.status_code == 422:
|
|
71
|
+
response_422 = Error.from_dict(response.json())
|
|
72
|
+
|
|
73
|
+
return response_422
|
|
52
74
|
if response.status_code == 429:
|
|
53
75
|
response_429 = Error.from_dict(response.json())
|
|
54
76
|
|
|
@@ -57,6 +79,10 @@ def _parse_response(
|
|
|
57
79
|
response_500 = Error.from_dict(response.json())
|
|
58
80
|
|
|
59
81
|
return response_500
|
|
82
|
+
if response.status_code == 503:
|
|
83
|
+
response_503 = Error.from_dict(response.json())
|
|
84
|
+
|
|
85
|
+
return response_503
|
|
60
86
|
if client.raise_on_unexpected_status:
|
|
61
87
|
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
62
88
|
else:
|
|
@@ -65,7 +91,7 @@ def _parse_response(
|
|
|
65
91
|
|
|
66
92
|
def _build_response(
|
|
67
93
|
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
68
|
-
) -> Response[Union[AssignedTemplateTags, Error]]:
|
|
94
|
+
) -> Response[Union[AssignedTemplateTags, Error, str]]:
|
|
69
95
|
return Response(
|
|
70
96
|
status_code=HTTPStatus(response.status_code),
|
|
71
97
|
content=response.content,
|
|
@@ -78,12 +104,14 @@ def sync_detailed(
|
|
|
78
104
|
*,
|
|
79
105
|
client: AuthenticatedClient,
|
|
80
106
|
body: AssignTemplateTagsRequest,
|
|
81
|
-
|
|
107
|
+
idempotency_key: Union[Unset, str] = UNSET,
|
|
108
|
+
) -> Response[Union[AssignedTemplateTags, Error, str]]:
|
|
82
109
|
"""Assign template tags
|
|
83
110
|
|
|
84
|
-
Assign tag(s) to a template build
|
|
111
|
+
Assign tag(s) to a template build.
|
|
85
112
|
|
|
86
113
|
Args:
|
|
114
|
+
idempotency_key (Union[Unset, str]):
|
|
87
115
|
body (AssignTemplateTagsRequest):
|
|
88
116
|
|
|
89
117
|
Raises:
|
|
@@ -91,11 +119,12 @@ def sync_detailed(
|
|
|
91
119
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
92
120
|
|
|
93
121
|
Returns:
|
|
94
|
-
Response[Union[AssignedTemplateTags, Error]]
|
|
122
|
+
Response[Union[AssignedTemplateTags, Error, str]]
|
|
95
123
|
"""
|
|
96
124
|
|
|
97
125
|
kwargs = _get_kwargs(
|
|
98
126
|
body=body,
|
|
127
|
+
idempotency_key=idempotency_key,
|
|
99
128
|
)
|
|
100
129
|
|
|
101
130
|
response = client.get_httpx_client().request(
|
|
@@ -109,12 +138,14 @@ def sync(
|
|
|
109
138
|
*,
|
|
110
139
|
client: AuthenticatedClient,
|
|
111
140
|
body: AssignTemplateTagsRequest,
|
|
112
|
-
|
|
141
|
+
idempotency_key: Union[Unset, str] = UNSET,
|
|
142
|
+
) -> Optional[Union[AssignedTemplateTags, Error, str]]:
|
|
113
143
|
"""Assign template tags
|
|
114
144
|
|
|
115
|
-
Assign tag(s) to a template build
|
|
145
|
+
Assign tag(s) to a template build.
|
|
116
146
|
|
|
117
147
|
Args:
|
|
148
|
+
idempotency_key (Union[Unset, str]):
|
|
118
149
|
body (AssignTemplateTagsRequest):
|
|
119
150
|
|
|
120
151
|
Raises:
|
|
@@ -122,12 +153,13 @@ def sync(
|
|
|
122
153
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
123
154
|
|
|
124
155
|
Returns:
|
|
125
|
-
Union[AssignedTemplateTags, Error]
|
|
156
|
+
Union[AssignedTemplateTags, Error, str]
|
|
126
157
|
"""
|
|
127
158
|
|
|
128
159
|
return sync_detailed(
|
|
129
160
|
client=client,
|
|
130
161
|
body=body,
|
|
162
|
+
idempotency_key=idempotency_key,
|
|
131
163
|
).parsed
|
|
132
164
|
|
|
133
165
|
|
|
@@ -135,12 +167,14 @@ async def asyncio_detailed(
|
|
|
135
167
|
*,
|
|
136
168
|
client: AuthenticatedClient,
|
|
137
169
|
body: AssignTemplateTagsRequest,
|
|
138
|
-
|
|
170
|
+
idempotency_key: Union[Unset, str] = UNSET,
|
|
171
|
+
) -> Response[Union[AssignedTemplateTags, Error, str]]:
|
|
139
172
|
"""Assign template tags
|
|
140
173
|
|
|
141
|
-
Assign tag(s) to a template build
|
|
174
|
+
Assign tag(s) to a template build.
|
|
142
175
|
|
|
143
176
|
Args:
|
|
177
|
+
idempotency_key (Union[Unset, str]):
|
|
144
178
|
body (AssignTemplateTagsRequest):
|
|
145
179
|
|
|
146
180
|
Raises:
|
|
@@ -148,11 +182,12 @@ async def asyncio_detailed(
|
|
|
148
182
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
149
183
|
|
|
150
184
|
Returns:
|
|
151
|
-
Response[Union[AssignedTemplateTags, Error]]
|
|
185
|
+
Response[Union[AssignedTemplateTags, Error, str]]
|
|
152
186
|
"""
|
|
153
187
|
|
|
154
188
|
kwargs = _get_kwargs(
|
|
155
189
|
body=body,
|
|
190
|
+
idempotency_key=idempotency_key,
|
|
156
191
|
)
|
|
157
192
|
|
|
158
193
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -164,12 +199,14 @@ async def asyncio(
|
|
|
164
199
|
*,
|
|
165
200
|
client: AuthenticatedClient,
|
|
166
201
|
body: AssignTemplateTagsRequest,
|
|
167
|
-
|
|
202
|
+
idempotency_key: Union[Unset, str] = UNSET,
|
|
203
|
+
) -> Optional[Union[AssignedTemplateTags, Error, str]]:
|
|
168
204
|
"""Assign template tags
|
|
169
205
|
|
|
170
|
-
Assign tag(s) to a template build
|
|
206
|
+
Assign tag(s) to a template build.
|
|
171
207
|
|
|
172
208
|
Args:
|
|
209
|
+
idempotency_key (Union[Unset, str]):
|
|
173
210
|
body (AssignTemplateTagsRequest):
|
|
174
211
|
|
|
175
212
|
Raises:
|
|
@@ -177,12 +214,13 @@ async def asyncio(
|
|
|
177
214
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
178
215
|
|
|
179
216
|
Returns:
|
|
180
|
-
Union[AssignedTemplateTags, Error]
|
|
217
|
+
Union[AssignedTemplateTags, Error, str]
|
|
181
218
|
"""
|
|
182
219
|
|
|
183
220
|
return (
|
|
184
221
|
await asyncio_detailed(
|
|
185
222
|
client=client,
|
|
186
223
|
body=body,
|
|
224
|
+
idempotency_key=idempotency_key,
|
|
187
225
|
)
|
|
188
226
|
).parsed
|