e2b 2.58.0__tar.gz → 2.60.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.58.0 → e2b-2.60.0}/PKG-INFO +1 -1
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/api/sandboxes/post_sandboxes.py +8 -4
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/api/sandboxes/post_v2_sandboxes.py +32 -1
- e2b-2.60.0/e2b/api/client/api/tags/get_templates_template_id_tags_count.py +183 -0
- e2b-2.60.0/e2b/api/client/api/tags/get_templates_template_id_tags_exists.py +208 -0
- e2b-2.60.0/e2b/api/client/api/tags/get_templates_template_id_tags_groups.py +293 -0
- e2b-2.60.0/e2b/api/client/api/tags/get_templates_template_id_tags_tag_assignments.py +236 -0
- e2b-2.60.0/e2b/api/client/api/templates/get_default_templates.py +172 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/models/__init__.py +18 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/models/error.py +5 -2
- e2b-2.60.0/e2b/api/client/models/get_templates_template_id_tags_groups_sort.py +11 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/models/new_sandbox.py +2 -1
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/models/sandbox_detail.py +20 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/models/sandbox_network_config.py +35 -6
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/models/sandbox_network_update_config.py +15 -1
- e2b-2.60.0/e2b/api/client/models/sandbox_pause_mode.py +9 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/models/template.py +21 -0
- e2b-2.60.0/e2b/api/client/models/template_tag_assignment.py +111 -0
- e2b-2.60.0/e2b/api/client/models/template_tag_assignments_response.py +87 -0
- e2b-2.60.0/e2b/api/client/models/template_tag_exists_response.py +67 -0
- e2b-2.60.0/e2b/api/client/models/template_tag_group.py +89 -0
- e2b-2.60.0/e2b/api/client/models/template_tag_groups_response.py +88 -0
- e2b-2.60.0/e2b/api/client/models/template_tags_count_response.py +59 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/models/template_with_builds.py +108 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/connection_config.py +12 -14
- {e2b-2.58.0 → e2b-2.60.0}/e2b/retry.py +23 -86
- {e2b-2.58.0 → e2b-2.60.0}/e2b/sandbox/sandbox_api.py +48 -2
- e2b-2.60.0/e2b/sandbox_domains.py +13 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/template/utils.py +12 -6
- {e2b-2.58.0 → e2b-2.60.0}/e2b/template_async/build_api.py +1 -1
- {e2b-2.58.0 → e2b-2.60.0}/e2b/template_sync/build_api.py +1 -1
- e2b-2.60.0/pyproject.toml +80 -0
- e2b-2.58.0/pyproject.toml → e2b-2.60.0/pyproject.toml.orig +2 -2
- e2b-2.58.0/e2b/sandbox_domains.py +0 -5
- {e2b-2.58.0 → e2b-2.60.0}/README.md +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/__init__.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/__init__.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/__init__.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/api/__init__.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/api/sandboxes/__init__.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/api/sandboxes/delete_sandboxes_sandbox_id.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/api/sandboxes/get_sandboxes.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/api/sandboxes/get_sandboxes_metrics.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/api/sandboxes/get_sandboxes_sandbox_id.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/api/sandboxes/get_sandboxes_sandbox_id_logs.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/api/sandboxes/get_sandboxes_sandbox_id_metrics.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/api/sandboxes/get_v2_sandboxes.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/api/sandboxes/get_v_2_sandboxes_sandbox_id_logs.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/api/sandboxes/post_sandboxes_sandbox_id_connect.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/api/sandboxes/post_sandboxes_sandbox_id_fork.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/api/sandboxes/post_sandboxes_sandbox_id_pause.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/api/sandboxes/post_sandboxes_sandbox_id_refreshes.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/api/sandboxes/post_sandboxes_sandbox_id_resume.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/api/sandboxes/post_sandboxes_sandbox_id_snapshots.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/api/sandboxes/post_sandboxes_sandbox_id_timeout.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/api/sandboxes/post_v_2_sandboxes_sandbox_id_connect.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/api/sandboxes/put_sandboxes_sandbox_id_network.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/api/secrets/__init__.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/api/secrets/delete_secrets_secret_id.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/api/secrets/get_secrets.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/api/secrets/get_secrets_secret_id.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/api/secrets/post_secrets.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/api/secrets/post_secrets_secret_id.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/api/snapshots/__init__.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/api/snapshots/get_snapshots.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/api/tags/__init__.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/api/tags/delete_templates_tags.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/api/tags/get_templates_template_id_tags.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/api/tags/post_templates_tags.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/api/templates/__init__.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/api/templates/delete_templates_template_id.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/api/templates/get_templates.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/api/templates/get_templates_aliases_alias.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/api/templates/get_templates_template_id.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/api/templates/get_templates_template_id_builds_build_id_logs.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/api/templates/get_templates_template_id_builds_build_id_status.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/api/templates/get_templates_template_id_files_hash.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/api/templates/get_v2_templates.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/api/templates/patch_templates_template_id.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/api/templates/patch_v_2_templates_template_id.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/api/templates/post_v3_templates.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/api/templates/post_v_2_templates_template_id_builds_build_id.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/api/volumes/__init__.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/api/volumes/delete_volumes_volume_id.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/api/volumes/get_volumes.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/api/volumes/get_volumes_volume_id.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/api/volumes/post_volumes.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/client.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/errors.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/models/assign_template_tags_request.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/models/assigned_template_tags.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/models/aws_registry.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/models/aws_registry_type.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/models/build_log_entry.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/models/build_status_reason.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/models/connect_sandbox.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/models/connect_sandbox_v2.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/models/delete_template_tags_request.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/models/gcp_registry.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/models/gcp_registry_type.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/models/general_registry.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/models/general_registry_type.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/models/listed_sandbox.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/models/log_level.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/models/logs_direction.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/models/logs_source.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/models/mcp_type_0.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/models/new_sandbox_v2.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/models/new_secret.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/models/new_volume.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/models/order_direction.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/models/resumed_sandbox.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/models/sandbox.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/models/sandbox_auto_resume_config.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/models/sandbox_egress_proxy_config_type_0.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/models/sandbox_egress_proxy_tls_config_type_0.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/models/sandbox_fork_request.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/models/sandbox_fork_result.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/models/sandbox_iam.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/models/sandbox_iam_token.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/models/sandbox_iam_tokens.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/models/sandbox_lifecycle.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/models/sandbox_log.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/models/sandbox_log_entry.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/models/sandbox_log_entry_fields.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/models/sandbox_logs.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/models/sandbox_logs_v2_response.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/models/sandbox_metric.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/models/sandbox_network_config_rules.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/models/sandbox_network_rule.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/models/sandbox_network_transform.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/models/sandbox_network_transform_headers.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/models/sandbox_network_update_config_rules.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/models/sandbox_on_timeout.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/models/sandbox_pause_request.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/models/sandbox_refresh_request.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/models/sandbox_snapshot_request.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/models/sandbox_state.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/models/sandbox_timeout_request.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/models/sandbox_volume_mount.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/models/sandboxes_with_metrics.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/models/secret.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/models/secret_metadata.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/models/secret_update.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/models/snapshot_info.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/models/team_user.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/models/template_alias_response.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/models/template_build.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/models/template_build_file_upload.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/models/template_build_file_upload_headers.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/models/template_build_info.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/models/template_build_logs_response.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/models/template_build_request_v3.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/models/template_build_start_v2.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/models/template_build_status.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/models/template_request_response_v3.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/models/template_step.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/models/template_tag.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/models/template_update_request.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/models/template_update_response.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/models/volume.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/models/volume_and_token.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/py.typed +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client/types.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client_async/__init__.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/client_sync/__init__.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/api/metadata.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/client.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/envd/__init__.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/envd/api.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/envd/client_async/__init__.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/envd/client_shared.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/envd/client_sync/__init__.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/envd/filesystem/__init__.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/envd/filesystem/filesystem_connect.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/envd/filesystem/filesystem_pb.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/envd/interceptors.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/envd/process/__init__.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/envd/process/process_connect.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/envd/process/process_pb.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/envd/rpc.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/envd/utils.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/envd/versions.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/exceptions.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/io_utils.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/paginator.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/py.typed +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/sandbox/_git/__init__.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/sandbox/_git/args.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/sandbox/_git/auth.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/sandbox/_git/config.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/sandbox/_git/parse.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/sandbox/_git/types.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/sandbox/commands/command_handle.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/sandbox/commands/main.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/sandbox/commands/stream_input.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/sandbox/filesystem/filesystem.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/sandbox/filesystem/watch_handle.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/sandbox/iam.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/sandbox/main.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/sandbox/mcp.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/sandbox/network.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/sandbox/signature.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/sandbox/utils.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/sandbox_async/commands/command.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/sandbox_async/commands/command_handle.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/sandbox_async/commands/command_input_handle.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/sandbox_async/commands/pty.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/sandbox_async/filesystem/filesystem.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/sandbox_async/filesystem/watch_handle.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/sandbox_async/git.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/sandbox_async/main.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/sandbox_async/paginator.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/sandbox_async/sandbox_api.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/sandbox_async/utils.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/sandbox_sync/commands/command.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/sandbox_sync/commands/command_handle.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/sandbox_sync/commands/pty.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/sandbox_sync/filesystem/filesystem.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/sandbox_sync/filesystem/watch_handle.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/sandbox_sync/git.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/sandbox_sync/main.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/sandbox_sync/paginator.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/sandbox_sync/sandbox_api.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/secret/__init__.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/secret/base.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/secret/secret_async.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/secret/secret_sync.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/secret/types.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/template/consts.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/template/dockerfile_parser.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/template/logger.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/template/main.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/template/readycmd.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/template/types.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/template_async/main.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/template_sync/main.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/volume/client/__init__.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/volume/client/api/__init__.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/volume/client/api/volumes/__init__.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/volume/client/api/volumes/delete_volumecontent_volume_id_path.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/volume/client/api/volumes/get_volumecontent_volume_id_dir.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/volume/client/api/volumes/get_volumecontent_volume_id_file.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/volume/client/api/volumes/get_volumecontent_volume_id_path.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/volume/client/api/volumes/patch_volumecontent_volume_id_path.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/volume/client/api/volumes/post_volumecontent_volume_id_dir.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/volume/client/api/volumes/put_volumecontent_volume_id_file.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/volume/client/client.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/volume/client/errors.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/volume/client/models/__init__.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/volume/client/models/error.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/volume/client/models/patch_volumecontent_volume_id_path_body.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/volume/client/models/volume_entry_stat.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/volume/client/models/volume_entry_stat_type.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/volume/client/py.typed +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/volume/client/types.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/volume/client_async/__init__.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/volume/client_sync/__init__.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/volume/connection_config.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/volume/types.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/volume/utils.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/volume/volume_async.py +0 -0
- {e2b-2.58.0 → e2b-2.60.0}/e2b/volume/volume_sync.py +0 -0
|
@@ -85,7 +85,8 @@ def sync_detailed(
|
|
|
85
85
|
) -> Response[Union[Error, Sandbox]]:
|
|
86
86
|
"""Create sandbox
|
|
87
87
|
|
|
88
|
-
Create a sandbox from the template.
|
|
88
|
+
Create a sandbox from the template. All system communication with the sandbox is secured. Use POST
|
|
89
|
+
/v2/sandboxes instead.
|
|
89
90
|
|
|
90
91
|
Args:
|
|
91
92
|
body (NewSandbox):
|
|
@@ -116,7 +117,8 @@ def sync(
|
|
|
116
117
|
) -> Optional[Union[Error, Sandbox]]:
|
|
117
118
|
"""Create sandbox
|
|
118
119
|
|
|
119
|
-
Create a sandbox from the template.
|
|
120
|
+
Create a sandbox from the template. All system communication with the sandbox is secured. Use POST
|
|
121
|
+
/v2/sandboxes instead.
|
|
120
122
|
|
|
121
123
|
Args:
|
|
122
124
|
body (NewSandbox):
|
|
@@ -142,7 +144,8 @@ async def asyncio_detailed(
|
|
|
142
144
|
) -> Response[Union[Error, Sandbox]]:
|
|
143
145
|
"""Create sandbox
|
|
144
146
|
|
|
145
|
-
Create a sandbox from the template.
|
|
147
|
+
Create a sandbox from the template. All system communication with the sandbox is secured. Use POST
|
|
148
|
+
/v2/sandboxes instead.
|
|
146
149
|
|
|
147
150
|
Args:
|
|
148
151
|
body (NewSandbox):
|
|
@@ -171,7 +174,8 @@ async def asyncio(
|
|
|
171
174
|
) -> Optional[Union[Error, Sandbox]]:
|
|
172
175
|
"""Create sandbox
|
|
173
176
|
|
|
174
|
-
Create a sandbox from the template.
|
|
177
|
+
Create a sandbox from the template. All system communication with the sandbox is secured. Use POST
|
|
178
|
+
/v2/sandboxes instead.
|
|
175
179
|
|
|
176
180
|
Args:
|
|
177
181
|
body (NewSandbox):
|
|
@@ -8,14 +8,17 @@ from ...client import AuthenticatedClient, Client
|
|
|
8
8
|
from ...models.error import Error
|
|
9
9
|
from ...models.new_sandbox_v2 import NewSandboxV2
|
|
10
10
|
from ...models.sandbox import Sandbox
|
|
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: NewSandboxV2,
|
|
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",
|
|
@@ -45,6 +48,22 @@ 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
|
|
55
|
+
if response.status_code == 404:
|
|
56
|
+
response_404 = Error.from_dict(response.json())
|
|
57
|
+
|
|
58
|
+
return response_404
|
|
59
|
+
if response.status_code == 409:
|
|
60
|
+
response_409 = Error.from_dict(response.json())
|
|
61
|
+
|
|
62
|
+
return response_409
|
|
63
|
+
if response.status_code == 422:
|
|
64
|
+
response_422 = Error.from_dict(response.json())
|
|
65
|
+
|
|
66
|
+
return response_422
|
|
48
67
|
if response.status_code == 429:
|
|
49
68
|
response_429 = Error.from_dict(response.json())
|
|
50
69
|
|
|
@@ -82,12 +101,14 @@ def sync_detailed(
|
|
|
82
101
|
*,
|
|
83
102
|
client: AuthenticatedClient,
|
|
84
103
|
body: NewSandboxV2,
|
|
104
|
+
idempotency_key: Union[Unset, str] = UNSET,
|
|
85
105
|
) -> Response[Union[Error, Sandbox]]:
|
|
86
106
|
"""Create sandbox (v2)
|
|
87
107
|
|
|
88
108
|
Create a sandbox from the template. All system communication with the sandbox is secured.
|
|
89
109
|
|
|
90
110
|
Args:
|
|
111
|
+
idempotency_key (Union[Unset, str]):
|
|
91
112
|
body (NewSandboxV2): Sandbox creation request. All system communication with the sandbox
|
|
92
113
|
is always secured; the template's envd version must support secured access.
|
|
93
114
|
|
|
@@ -101,6 +122,7 @@ def sync_detailed(
|
|
|
101
122
|
|
|
102
123
|
kwargs = _get_kwargs(
|
|
103
124
|
body=body,
|
|
125
|
+
idempotency_key=idempotency_key,
|
|
104
126
|
)
|
|
105
127
|
|
|
106
128
|
response = client.get_httpx_client().request(
|
|
@@ -114,12 +136,14 @@ def sync(
|
|
|
114
136
|
*,
|
|
115
137
|
client: AuthenticatedClient,
|
|
116
138
|
body: NewSandboxV2,
|
|
139
|
+
idempotency_key: Union[Unset, str] = UNSET,
|
|
117
140
|
) -> Optional[Union[Error, Sandbox]]:
|
|
118
141
|
"""Create sandbox (v2)
|
|
119
142
|
|
|
120
143
|
Create a sandbox from the template. All system communication with the sandbox is secured.
|
|
121
144
|
|
|
122
145
|
Args:
|
|
146
|
+
idempotency_key (Union[Unset, str]):
|
|
123
147
|
body (NewSandboxV2): Sandbox creation request. All system communication with the sandbox
|
|
124
148
|
is always secured; the template's envd version must support secured access.
|
|
125
149
|
|
|
@@ -134,6 +158,7 @@ def sync(
|
|
|
134
158
|
return sync_detailed(
|
|
135
159
|
client=client,
|
|
136
160
|
body=body,
|
|
161
|
+
idempotency_key=idempotency_key,
|
|
137
162
|
).parsed
|
|
138
163
|
|
|
139
164
|
|
|
@@ -141,12 +166,14 @@ async def asyncio_detailed(
|
|
|
141
166
|
*,
|
|
142
167
|
client: AuthenticatedClient,
|
|
143
168
|
body: NewSandboxV2,
|
|
169
|
+
idempotency_key: Union[Unset, str] = UNSET,
|
|
144
170
|
) -> Response[Union[Error, Sandbox]]:
|
|
145
171
|
"""Create sandbox (v2)
|
|
146
172
|
|
|
147
173
|
Create a sandbox from the template. All system communication with the sandbox is secured.
|
|
148
174
|
|
|
149
175
|
Args:
|
|
176
|
+
idempotency_key (Union[Unset, str]):
|
|
150
177
|
body (NewSandboxV2): Sandbox creation request. All system communication with the sandbox
|
|
151
178
|
is always secured; the template's envd version must support secured access.
|
|
152
179
|
|
|
@@ -160,6 +187,7 @@ async def asyncio_detailed(
|
|
|
160
187
|
|
|
161
188
|
kwargs = _get_kwargs(
|
|
162
189
|
body=body,
|
|
190
|
+
idempotency_key=idempotency_key,
|
|
163
191
|
)
|
|
164
192
|
|
|
165
193
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -171,12 +199,14 @@ async def asyncio(
|
|
|
171
199
|
*,
|
|
172
200
|
client: AuthenticatedClient,
|
|
173
201
|
body: NewSandboxV2,
|
|
202
|
+
idempotency_key: Union[Unset, str] = UNSET,
|
|
174
203
|
) -> Optional[Union[Error, Sandbox]]:
|
|
175
204
|
"""Create sandbox (v2)
|
|
176
205
|
|
|
177
206
|
Create a sandbox from the template. All system communication with the sandbox is secured.
|
|
178
207
|
|
|
179
208
|
Args:
|
|
209
|
+
idempotency_key (Union[Unset, str]):
|
|
180
210
|
body (NewSandboxV2): Sandbox creation request. All system communication with the sandbox
|
|
181
211
|
is always secured; the template's envd version must support secured access.
|
|
182
212
|
|
|
@@ -192,5 +222,6 @@ async def asyncio(
|
|
|
192
222
|
await asyncio_detailed(
|
|
193
223
|
client=client,
|
|
194
224
|
body=body,
|
|
225
|
+
idempotency_key=idempotency_key,
|
|
195
226
|
)
|
|
196
227
|
).parsed
|
|
@@ -0,0 +1,183 @@
|
|
|
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.template_tags_count_response import TemplateTagsCountResponse
|
|
10
|
+
from ...types import Response
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def _get_kwargs(
|
|
14
|
+
template_id: str,
|
|
15
|
+
) -> dict[str, Any]:
|
|
16
|
+
_kwargs: dict[str, Any] = {
|
|
17
|
+
"method": "get",
|
|
18
|
+
"url": f"/templates/{template_id}/tags/count",
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
return _kwargs
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
def _parse_response(
|
|
25
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
26
|
+
) -> Optional[Union[Error, TemplateTagsCountResponse]]:
|
|
27
|
+
if response.status_code == 200:
|
|
28
|
+
response_200 = TemplateTagsCountResponse.from_dict(response.json())
|
|
29
|
+
|
|
30
|
+
return response_200
|
|
31
|
+
if response.status_code == 401:
|
|
32
|
+
response_401 = Error.from_dict(response.json())
|
|
33
|
+
|
|
34
|
+
return response_401
|
|
35
|
+
if response.status_code == 403:
|
|
36
|
+
response_403 = Error.from_dict(response.json())
|
|
37
|
+
|
|
38
|
+
return response_403
|
|
39
|
+
if response.status_code == 404:
|
|
40
|
+
response_404 = Error.from_dict(response.json())
|
|
41
|
+
|
|
42
|
+
return response_404
|
|
43
|
+
if response.status_code == 429:
|
|
44
|
+
response_429 = Error.from_dict(response.json())
|
|
45
|
+
|
|
46
|
+
return response_429
|
|
47
|
+
if response.status_code == 500:
|
|
48
|
+
response_500 = Error.from_dict(response.json())
|
|
49
|
+
|
|
50
|
+
return response_500
|
|
51
|
+
if client.raise_on_unexpected_status:
|
|
52
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
53
|
+
else:
|
|
54
|
+
return None
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
def _build_response(
|
|
58
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
59
|
+
) -> Response[Union[Error, TemplateTagsCountResponse]]:
|
|
60
|
+
return Response(
|
|
61
|
+
status_code=HTTPStatus(response.status_code),
|
|
62
|
+
content=response.content,
|
|
63
|
+
headers=response.headers,
|
|
64
|
+
parsed=_parse_response(client=client, response=response),
|
|
65
|
+
)
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
def sync_detailed(
|
|
69
|
+
template_id: str,
|
|
70
|
+
*,
|
|
71
|
+
client: AuthenticatedClient,
|
|
72
|
+
) -> Response[Union[Error, TemplateTagsCountResponse]]:
|
|
73
|
+
"""Count template tags
|
|
74
|
+
|
|
75
|
+
Returns the number of distinct tags of the template that have at least one ready build. Returns 404
|
|
76
|
+
when the template does not exist or belongs to another team.
|
|
77
|
+
|
|
78
|
+
Args:
|
|
79
|
+
template_id (str):
|
|
80
|
+
|
|
81
|
+
Raises:
|
|
82
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
83
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
84
|
+
|
|
85
|
+
Returns:
|
|
86
|
+
Response[Union[Error, TemplateTagsCountResponse]]
|
|
87
|
+
"""
|
|
88
|
+
|
|
89
|
+
kwargs = _get_kwargs(
|
|
90
|
+
template_id=template_id,
|
|
91
|
+
)
|
|
92
|
+
|
|
93
|
+
response = client.get_httpx_client().request(
|
|
94
|
+
**kwargs,
|
|
95
|
+
)
|
|
96
|
+
|
|
97
|
+
return _build_response(client=client, response=response)
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
def sync(
|
|
101
|
+
template_id: str,
|
|
102
|
+
*,
|
|
103
|
+
client: AuthenticatedClient,
|
|
104
|
+
) -> Optional[Union[Error, TemplateTagsCountResponse]]:
|
|
105
|
+
"""Count template tags
|
|
106
|
+
|
|
107
|
+
Returns the number of distinct tags of the template that have at least one ready build. Returns 404
|
|
108
|
+
when the template does not exist or belongs to another team.
|
|
109
|
+
|
|
110
|
+
Args:
|
|
111
|
+
template_id (str):
|
|
112
|
+
|
|
113
|
+
Raises:
|
|
114
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
115
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
116
|
+
|
|
117
|
+
Returns:
|
|
118
|
+
Union[Error, TemplateTagsCountResponse]
|
|
119
|
+
"""
|
|
120
|
+
|
|
121
|
+
return sync_detailed(
|
|
122
|
+
template_id=template_id,
|
|
123
|
+
client=client,
|
|
124
|
+
).parsed
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
async def asyncio_detailed(
|
|
128
|
+
template_id: str,
|
|
129
|
+
*,
|
|
130
|
+
client: AuthenticatedClient,
|
|
131
|
+
) -> Response[Union[Error, TemplateTagsCountResponse]]:
|
|
132
|
+
"""Count template tags
|
|
133
|
+
|
|
134
|
+
Returns the number of distinct tags of the template that have at least one ready build. Returns 404
|
|
135
|
+
when the template does not exist or belongs to another team.
|
|
136
|
+
|
|
137
|
+
Args:
|
|
138
|
+
template_id (str):
|
|
139
|
+
|
|
140
|
+
Raises:
|
|
141
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
142
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
143
|
+
|
|
144
|
+
Returns:
|
|
145
|
+
Response[Union[Error, TemplateTagsCountResponse]]
|
|
146
|
+
"""
|
|
147
|
+
|
|
148
|
+
kwargs = _get_kwargs(
|
|
149
|
+
template_id=template_id,
|
|
150
|
+
)
|
|
151
|
+
|
|
152
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
153
|
+
|
|
154
|
+
return _build_response(client=client, response=response)
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
async def asyncio(
|
|
158
|
+
template_id: str,
|
|
159
|
+
*,
|
|
160
|
+
client: AuthenticatedClient,
|
|
161
|
+
) -> Optional[Union[Error, TemplateTagsCountResponse]]:
|
|
162
|
+
"""Count template tags
|
|
163
|
+
|
|
164
|
+
Returns the number of distinct tags of the template that have at least one ready build. Returns 404
|
|
165
|
+
when the template does not exist or belongs to another team.
|
|
166
|
+
|
|
167
|
+
Args:
|
|
168
|
+
template_id (str):
|
|
169
|
+
|
|
170
|
+
Raises:
|
|
171
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
172
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
173
|
+
|
|
174
|
+
Returns:
|
|
175
|
+
Union[Error, TemplateTagsCountResponse]
|
|
176
|
+
"""
|
|
177
|
+
|
|
178
|
+
return (
|
|
179
|
+
await asyncio_detailed(
|
|
180
|
+
template_id=template_id,
|
|
181
|
+
client=client,
|
|
182
|
+
)
|
|
183
|
+
).parsed
|
|
@@ -0,0 +1,208 @@
|
|
|
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.template_tag_exists_response import TemplateTagExistsResponse
|
|
10
|
+
from ...types import UNSET, Response
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def _get_kwargs(
|
|
14
|
+
template_id: str,
|
|
15
|
+
*,
|
|
16
|
+
tag: str,
|
|
17
|
+
) -> dict[str, Any]:
|
|
18
|
+
params: dict[str, Any] = {}
|
|
19
|
+
|
|
20
|
+
params["tag"] = tag
|
|
21
|
+
|
|
22
|
+
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
23
|
+
|
|
24
|
+
_kwargs: dict[str, Any] = {
|
|
25
|
+
"method": "get",
|
|
26
|
+
"url": f"/templates/{template_id}/tags/exists",
|
|
27
|
+
"params": params,
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
return _kwargs
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
def _parse_response(
|
|
34
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
35
|
+
) -> Optional[Union[Error, TemplateTagExistsResponse]]:
|
|
36
|
+
if response.status_code == 200:
|
|
37
|
+
response_200 = TemplateTagExistsResponse.from_dict(response.json())
|
|
38
|
+
|
|
39
|
+
return response_200
|
|
40
|
+
if response.status_code == 400:
|
|
41
|
+
response_400 = Error.from_dict(response.json())
|
|
42
|
+
|
|
43
|
+
return response_400
|
|
44
|
+
if response.status_code == 401:
|
|
45
|
+
response_401 = Error.from_dict(response.json())
|
|
46
|
+
|
|
47
|
+
return response_401
|
|
48
|
+
if response.status_code == 403:
|
|
49
|
+
response_403 = Error.from_dict(response.json())
|
|
50
|
+
|
|
51
|
+
return response_403
|
|
52
|
+
if response.status_code == 404:
|
|
53
|
+
response_404 = Error.from_dict(response.json())
|
|
54
|
+
|
|
55
|
+
return response_404
|
|
56
|
+
if response.status_code == 429:
|
|
57
|
+
response_429 = Error.from_dict(response.json())
|
|
58
|
+
|
|
59
|
+
return response_429
|
|
60
|
+
if response.status_code == 500:
|
|
61
|
+
response_500 = Error.from_dict(response.json())
|
|
62
|
+
|
|
63
|
+
return response_500
|
|
64
|
+
if client.raise_on_unexpected_status:
|
|
65
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
66
|
+
else:
|
|
67
|
+
return None
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
def _build_response(
|
|
71
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
72
|
+
) -> Response[Union[Error, TemplateTagExistsResponse]]:
|
|
73
|
+
return Response(
|
|
74
|
+
status_code=HTTPStatus(response.status_code),
|
|
75
|
+
content=response.content,
|
|
76
|
+
headers=response.headers,
|
|
77
|
+
parsed=_parse_response(client=client, response=response),
|
|
78
|
+
)
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
def sync_detailed(
|
|
82
|
+
template_id: str,
|
|
83
|
+
*,
|
|
84
|
+
client: AuthenticatedClient,
|
|
85
|
+
tag: str,
|
|
86
|
+
) -> Response[Union[Error, TemplateTagExistsResponse]]:
|
|
87
|
+
"""Check template tag
|
|
88
|
+
|
|
89
|
+
Checks whether a tag of the template has at least one ready build. Returns 404 when the template
|
|
90
|
+
does not exist or belongs to another team.
|
|
91
|
+
|
|
92
|
+
Args:
|
|
93
|
+
template_id (str):
|
|
94
|
+
tag (str):
|
|
95
|
+
|
|
96
|
+
Raises:
|
|
97
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
98
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
99
|
+
|
|
100
|
+
Returns:
|
|
101
|
+
Response[Union[Error, TemplateTagExistsResponse]]
|
|
102
|
+
"""
|
|
103
|
+
|
|
104
|
+
kwargs = _get_kwargs(
|
|
105
|
+
template_id=template_id,
|
|
106
|
+
tag=tag,
|
|
107
|
+
)
|
|
108
|
+
|
|
109
|
+
response = client.get_httpx_client().request(
|
|
110
|
+
**kwargs,
|
|
111
|
+
)
|
|
112
|
+
|
|
113
|
+
return _build_response(client=client, response=response)
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
def sync(
|
|
117
|
+
template_id: str,
|
|
118
|
+
*,
|
|
119
|
+
client: AuthenticatedClient,
|
|
120
|
+
tag: str,
|
|
121
|
+
) -> Optional[Union[Error, TemplateTagExistsResponse]]:
|
|
122
|
+
"""Check template tag
|
|
123
|
+
|
|
124
|
+
Checks whether a tag of the template has at least one ready build. Returns 404 when the template
|
|
125
|
+
does not exist or belongs to another team.
|
|
126
|
+
|
|
127
|
+
Args:
|
|
128
|
+
template_id (str):
|
|
129
|
+
tag (str):
|
|
130
|
+
|
|
131
|
+
Raises:
|
|
132
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
133
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
134
|
+
|
|
135
|
+
Returns:
|
|
136
|
+
Union[Error, TemplateTagExistsResponse]
|
|
137
|
+
"""
|
|
138
|
+
|
|
139
|
+
return sync_detailed(
|
|
140
|
+
template_id=template_id,
|
|
141
|
+
client=client,
|
|
142
|
+
tag=tag,
|
|
143
|
+
).parsed
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
async def asyncio_detailed(
|
|
147
|
+
template_id: str,
|
|
148
|
+
*,
|
|
149
|
+
client: AuthenticatedClient,
|
|
150
|
+
tag: str,
|
|
151
|
+
) -> Response[Union[Error, TemplateTagExistsResponse]]:
|
|
152
|
+
"""Check template tag
|
|
153
|
+
|
|
154
|
+
Checks whether a tag of the template has at least one ready build. Returns 404 when the template
|
|
155
|
+
does not exist or belongs to another team.
|
|
156
|
+
|
|
157
|
+
Args:
|
|
158
|
+
template_id (str):
|
|
159
|
+
tag (str):
|
|
160
|
+
|
|
161
|
+
Raises:
|
|
162
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
163
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
164
|
+
|
|
165
|
+
Returns:
|
|
166
|
+
Response[Union[Error, TemplateTagExistsResponse]]
|
|
167
|
+
"""
|
|
168
|
+
|
|
169
|
+
kwargs = _get_kwargs(
|
|
170
|
+
template_id=template_id,
|
|
171
|
+
tag=tag,
|
|
172
|
+
)
|
|
173
|
+
|
|
174
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
175
|
+
|
|
176
|
+
return _build_response(client=client, response=response)
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
async def asyncio(
|
|
180
|
+
template_id: str,
|
|
181
|
+
*,
|
|
182
|
+
client: AuthenticatedClient,
|
|
183
|
+
tag: str,
|
|
184
|
+
) -> Optional[Union[Error, TemplateTagExistsResponse]]:
|
|
185
|
+
"""Check template tag
|
|
186
|
+
|
|
187
|
+
Checks whether a tag of the template has at least one ready build. Returns 404 when the template
|
|
188
|
+
does not exist or belongs to another team.
|
|
189
|
+
|
|
190
|
+
Args:
|
|
191
|
+
template_id (str):
|
|
192
|
+
tag (str):
|
|
193
|
+
|
|
194
|
+
Raises:
|
|
195
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
196
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
197
|
+
|
|
198
|
+
Returns:
|
|
199
|
+
Union[Error, TemplateTagExistsResponse]
|
|
200
|
+
"""
|
|
201
|
+
|
|
202
|
+
return (
|
|
203
|
+
await asyncio_detailed(
|
|
204
|
+
template_id=template_id,
|
|
205
|
+
client=client,
|
|
206
|
+
tag=tag,
|
|
207
|
+
)
|
|
208
|
+
).parsed
|