archil-openapi 0.0.35__tar.gz → 0.0.37__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.
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/PKG-INFO +1 -1
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/pyproject.toml +1 -1
- archil_openapi-0.0.37/src/archil_openapi/api/billing/set_billing_default_payment_method.py +201 -0
- archil_openapi-0.0.37/src/archil_openapi/api/sandboxes/create_image.py +220 -0
- archil_openapi-0.0.37/src/archil_openapi/api/sandboxes/get_image.py +185 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/__init__.py +20 -0
- archil_openapi-0.0.37/src/archil_openapi/models/api_response_billing_default_payment_method.py +73 -0
- archil_openapi-0.0.37/src/archil_openapi/models/api_response_billing_default_payment_method_data.py +87 -0
- archil_openapi-0.0.37/src/archil_openapi/models/api_response_billing_default_payment_method_data_scope.py +9 -0
- archil_openapi-0.0.37/src/archil_openapi/models/api_response_image.py +73 -0
- archil_openapi-0.0.37/src/archil_openapi/models/create_image_request.py +83 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/create_sandbox_request.py +13 -2
- archil_openapi-0.0.37/src/archil_openapi/models/image.py +142 -0
- archil_openapi-0.0.37/src/archil_openapi/models/image_failure_reason.py +9 -0
- archil_openapi-0.0.37/src/archil_openapi/models/image_state.py +10 -0
- archil_openapi-0.0.37/src/archil_openapi/models/registry_auth.py +67 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/sandbox.py +11 -1
- archil_openapi-0.0.37/src/archil_openapi/models/set_billing_default_payment_method_body.py +49 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/LICENSE +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/README.md +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/__init__.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/api/__init__.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/api/activity/__init__.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/api/activity/list_activity.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/api/api_tokens/__init__.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/api/api_tokens/create_api_token.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/api/api_tokens/delete_api_token.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/api/api_tokens/list_api_tokens.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/api/billing/__init__.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/api/billing/create_billing_setup_intent.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/api/billing/get_billing_summary.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/api/billing/list_billing_payment_methods.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/api/disk_configuration/__init__.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/api/disk_configuration/get_allowed_i_ps.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/api/disk_configuration/list_delegations.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/api/disk_configuration/revoke_delegation.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/api/disk_configuration/set_allowed_i_ps.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/api/disk_users/__init__.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/api/disk_users/add_disk_user.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/api/disk_users/remove_disk_user.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/api/disks/__init__.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/api/disks/create_disk.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/api/disks/create_share_url.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/api/disks/delete_disk.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/api/disks/exec_.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/api/disks/exec_disk.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/api/disks/get_disk.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/api/disks/grep_disk.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/api/disks/list_disks.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/api/sandboxes/__init__.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/api/sandboxes/create_sandbox.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/api/sandboxes/create_sandbox_connection.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/api/sandboxes/create_sandbox_port_token.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/api/sandboxes/delete_sandbox.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/api/sandboxes/delete_sandbox_port.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/api/sandboxes/delete_sandbox_port_token.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/api/sandboxes/expose_sandbox_port.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/api/sandboxes/fork_sandbox.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/api/sandboxes/get_sandbox.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/api/sandboxes/get_sandbox_network.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/api/sandboxes/get_sandbox_port_token.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/api/sandboxes/list_sandbox_port_tokens.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/api/sandboxes/list_sandbox_ports.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/api/sandboxes/list_sandboxes.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/api/sandboxes/pause_sandbox.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/api/sandboxes/resume_sandbox.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/api/sandboxes/set_sandbox_timeout.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/api/sandboxes/start_sandbox.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/api/sandboxes/stop_sandbox.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/api/sandboxes/update_sandbox_network.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/client.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/errors.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/activity_event.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/activity_event_details.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/activity_event_level.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/api_response_activity_list.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/api_response_allowed_i_ps.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/api_response_allowed_i_ps_data.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/api_response_authorized_user.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/api_response_billing_payment_methods.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/api_response_billing_setup_intent.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/api_response_billing_setup_intent_data.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/api_response_billing_summary.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/api_response_create_disk.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/api_response_create_disk_data.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/api_response_created_sandbox_port_token.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/api_response_delegations.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/api_response_delegations_data.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/api_response_disk.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/api_response_disk_list.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/api_response_empty.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/api_response_exec.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/api_response_exec_disk.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/api_response_grep_disk.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/api_response_message.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/api_response_message_data.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/api_response_sandbox.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/api_response_sandbox_connection.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/api_response_sandbox_list.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/api_response_sandbox_list_data.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/api_response_sandbox_network.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/api_response_sandbox_port.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/api_response_sandbox_port_list.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/api_response_sandbox_port_token.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/api_response_sandbox_port_token_list.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/api_response_share_url.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/api_response_share_url_data.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/api_response_token_created.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/api_response_token_created_data.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/api_response_token_list.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/api_response_token_list_data.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/api_token_response.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/authorized_user.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/authorized_user_status.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/authorized_user_type.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/aws_sts_user.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/aws_sts_user_type.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/azure_blob_storage.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/azure_blob_storage_type.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/billing_owner.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/billing_owner_type.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/billing_payment_health.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/billing_payment_health_status.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/billing_payment_method.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/billing_payment_method_card.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/billing_period.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/billing_scheduled_change.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/billing_scheduled_change_target_plan.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/billing_scheduled_change_type.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/billing_summary.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/billing_summary_actions.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/billing_summary_billing_mode.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/billing_summary_plan.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/cloudflare_r2.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/cloudflare_r2_type.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/connected_client.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/create_api_token_request.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/create_disk_request.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/create_sandbox_port_token_request.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/create_sandbox_request_env.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/create_share_url_request.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/created_sandbox_port_token.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/delegation_entry.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/disk_metrics.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/disk_response.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/disk_response_capabilities_item.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/disk_response_status.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/error_response.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/exec_disk_request.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/exec_disk_result.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/exec_mount.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/exec_request.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/exec_request_disks.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/exec_timing.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/fork_sandbox_request.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/google_cloud_storage.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/google_cloud_storage_type.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/grep_disk_request.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/grep_disk_result.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/grep_match.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/grep_stopped_reason.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/list_activity_level_item.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/mount_config_response.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/mount_response.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/mount_response_access_mode.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/mount_response_authorization_type.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/mount_response_connection_status.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/mount_response_type.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/remove_disk_user_user_type.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/revoke_delegation_request.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/root_attrs.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/s3.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/s3_compatible.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/s3_compatible_type.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/s3_type.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/sandbox_connection.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/sandbox_egress_policy.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/sandbox_egress_rule.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/sandbox_egress_transform.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/sandbox_egress_transform_headers.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/sandbox_endpoint.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/sandbox_mount.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/sandbox_network.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/sandbox_network_action.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/sandbox_platform.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/sandbox_port.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/sandbox_port_list.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/sandbox_port_token.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/sandbox_port_token_list.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/sandbox_state.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/sandbox_timeout_request.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/set_allowed_i_ps_body.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/start_sandbox_request.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/token_user.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/models/token_user_type.py +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/py.typed +0 -0
- {archil_openapi-0.0.35 → archil_openapi-0.0.37}/src/archil_openapi/types.py +0 -0
|
@@ -0,0 +1,201 @@
|
|
|
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.api_response_billing_default_payment_method import ApiResponseBillingDefaultPaymentMethod
|
|
9
|
+
from ...models.error_response import ErrorResponse
|
|
10
|
+
from ...models.set_billing_default_payment_method_body import SetBillingDefaultPaymentMethodBody
|
|
11
|
+
from ...types import Response
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
def _get_kwargs(
|
|
15
|
+
*,
|
|
16
|
+
body: SetBillingDefaultPaymentMethodBody,
|
|
17
|
+
) -> dict[str, Any]:
|
|
18
|
+
headers: dict[str, Any] = {}
|
|
19
|
+
|
|
20
|
+
_kwargs: dict[str, Any] = {
|
|
21
|
+
"method": "put",
|
|
22
|
+
"url": "/api/billing/default-payment-method",
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
_kwargs["json"] = body.to_dict()
|
|
26
|
+
|
|
27
|
+
headers["Content-Type"] = "application/json"
|
|
28
|
+
|
|
29
|
+
_kwargs["headers"] = headers
|
|
30
|
+
return _kwargs
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
def _parse_response(
|
|
34
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
35
|
+
) -> Optional[Union[ApiResponseBillingDefaultPaymentMethod, ErrorResponse, str]]:
|
|
36
|
+
if response.status_code == 200:
|
|
37
|
+
response_200 = ApiResponseBillingDefaultPaymentMethod.from_dict(response.json())
|
|
38
|
+
|
|
39
|
+
return response_200
|
|
40
|
+
|
|
41
|
+
if response.status_code == 400:
|
|
42
|
+
response_400 = ErrorResponse.from_dict(response.json())
|
|
43
|
+
|
|
44
|
+
return response_400
|
|
45
|
+
|
|
46
|
+
if response.status_code == 401:
|
|
47
|
+
response_401 = response.text
|
|
48
|
+
return response_401
|
|
49
|
+
|
|
50
|
+
if response.status_code == 404:
|
|
51
|
+
response_404 = ErrorResponse.from_dict(response.json())
|
|
52
|
+
|
|
53
|
+
return response_404
|
|
54
|
+
|
|
55
|
+
if response.status_code == 409:
|
|
56
|
+
response_409 = ErrorResponse.from_dict(response.json())
|
|
57
|
+
|
|
58
|
+
return response_409
|
|
59
|
+
|
|
60
|
+
if response.status_code == 502:
|
|
61
|
+
response_502 = ErrorResponse.from_dict(response.json())
|
|
62
|
+
|
|
63
|
+
return response_502
|
|
64
|
+
|
|
65
|
+
if client.raise_on_unexpected_status:
|
|
66
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
67
|
+
else:
|
|
68
|
+
return None
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
def _build_response(
|
|
72
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
73
|
+
) -> Response[Union[ApiResponseBillingDefaultPaymentMethod, ErrorResponse, str]]:
|
|
74
|
+
return Response(
|
|
75
|
+
status_code=HTTPStatus(response.status_code),
|
|
76
|
+
content=response.content,
|
|
77
|
+
headers=response.headers,
|
|
78
|
+
parsed=_parse_response(client=client, response=response),
|
|
79
|
+
)
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
def sync_detailed(
|
|
83
|
+
*,
|
|
84
|
+
client: AuthenticatedClient,
|
|
85
|
+
body: SetBillingDefaultPaymentMethodBody,
|
|
86
|
+
) -> Response[Union[ApiResponseBillingDefaultPaymentMethod, ErrorResponse, str]]:
|
|
87
|
+
"""Set the default method for customer invoices and the current subscription
|
|
88
|
+
|
|
89
|
+
Provide a saved method ID or a succeeded SetupIntent ID. The method must belong to the authenticated
|
|
90
|
+
account's Stripe customer. Existing invoice debt is not paid by this action. Accounts with multiple
|
|
91
|
+
billable subscriptions require support review.
|
|
92
|
+
|
|
93
|
+
Args:
|
|
94
|
+
body (SetBillingDefaultPaymentMethodBody):
|
|
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[ApiResponseBillingDefaultPaymentMethod, ErrorResponse, str]]
|
|
102
|
+
"""
|
|
103
|
+
|
|
104
|
+
kwargs = _get_kwargs(
|
|
105
|
+
body=body,
|
|
106
|
+
)
|
|
107
|
+
|
|
108
|
+
response = client.get_httpx_client().request(
|
|
109
|
+
**kwargs,
|
|
110
|
+
)
|
|
111
|
+
|
|
112
|
+
return _build_response(client=client, response=response)
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
def sync(
|
|
116
|
+
*,
|
|
117
|
+
client: AuthenticatedClient,
|
|
118
|
+
body: SetBillingDefaultPaymentMethodBody,
|
|
119
|
+
) -> Optional[Union[ApiResponseBillingDefaultPaymentMethod, ErrorResponse, str]]:
|
|
120
|
+
"""Set the default method for customer invoices and the current subscription
|
|
121
|
+
|
|
122
|
+
Provide a saved method ID or a succeeded SetupIntent ID. The method must belong to the authenticated
|
|
123
|
+
account's Stripe customer. Existing invoice debt is not paid by this action. Accounts with multiple
|
|
124
|
+
billable subscriptions require support review.
|
|
125
|
+
|
|
126
|
+
Args:
|
|
127
|
+
body (SetBillingDefaultPaymentMethodBody):
|
|
128
|
+
|
|
129
|
+
Raises:
|
|
130
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
131
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
132
|
+
|
|
133
|
+
Returns:
|
|
134
|
+
Union[ApiResponseBillingDefaultPaymentMethod, ErrorResponse, str]
|
|
135
|
+
"""
|
|
136
|
+
|
|
137
|
+
return sync_detailed(
|
|
138
|
+
client=client,
|
|
139
|
+
body=body,
|
|
140
|
+
).parsed
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
async def asyncio_detailed(
|
|
144
|
+
*,
|
|
145
|
+
client: AuthenticatedClient,
|
|
146
|
+
body: SetBillingDefaultPaymentMethodBody,
|
|
147
|
+
) -> Response[Union[ApiResponseBillingDefaultPaymentMethod, ErrorResponse, str]]:
|
|
148
|
+
"""Set the default method for customer invoices and the current subscription
|
|
149
|
+
|
|
150
|
+
Provide a saved method ID or a succeeded SetupIntent ID. The method must belong to the authenticated
|
|
151
|
+
account's Stripe customer. Existing invoice debt is not paid by this action. Accounts with multiple
|
|
152
|
+
billable subscriptions require support review.
|
|
153
|
+
|
|
154
|
+
Args:
|
|
155
|
+
body (SetBillingDefaultPaymentMethodBody):
|
|
156
|
+
|
|
157
|
+
Raises:
|
|
158
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
159
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
160
|
+
|
|
161
|
+
Returns:
|
|
162
|
+
Response[Union[ApiResponseBillingDefaultPaymentMethod, ErrorResponse, str]]
|
|
163
|
+
"""
|
|
164
|
+
|
|
165
|
+
kwargs = _get_kwargs(
|
|
166
|
+
body=body,
|
|
167
|
+
)
|
|
168
|
+
|
|
169
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
170
|
+
|
|
171
|
+
return _build_response(client=client, response=response)
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
async def asyncio(
|
|
175
|
+
*,
|
|
176
|
+
client: AuthenticatedClient,
|
|
177
|
+
body: SetBillingDefaultPaymentMethodBody,
|
|
178
|
+
) -> Optional[Union[ApiResponseBillingDefaultPaymentMethod, ErrorResponse, str]]:
|
|
179
|
+
"""Set the default method for customer invoices and the current subscription
|
|
180
|
+
|
|
181
|
+
Provide a saved method ID or a succeeded SetupIntent ID. The method must belong to the authenticated
|
|
182
|
+
account's Stripe customer. Existing invoice debt is not paid by this action. Accounts with multiple
|
|
183
|
+
billable subscriptions require support review.
|
|
184
|
+
|
|
185
|
+
Args:
|
|
186
|
+
body (SetBillingDefaultPaymentMethodBody):
|
|
187
|
+
|
|
188
|
+
Raises:
|
|
189
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
190
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
191
|
+
|
|
192
|
+
Returns:
|
|
193
|
+
Union[ApiResponseBillingDefaultPaymentMethod, ErrorResponse, str]
|
|
194
|
+
"""
|
|
195
|
+
|
|
196
|
+
return (
|
|
197
|
+
await asyncio_detailed(
|
|
198
|
+
client=client,
|
|
199
|
+
body=body,
|
|
200
|
+
)
|
|
201
|
+
).parsed
|
|
@@ -0,0 +1,220 @@
|
|
|
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.api_response_image import ApiResponseImage
|
|
9
|
+
from ...models.create_image_request import CreateImageRequest
|
|
10
|
+
from ...models.error_response import ErrorResponse
|
|
11
|
+
from ...types import Response
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
def _get_kwargs(
|
|
15
|
+
*,
|
|
16
|
+
body: CreateImageRequest,
|
|
17
|
+
) -> dict[str, Any]:
|
|
18
|
+
headers: dict[str, Any] = {}
|
|
19
|
+
|
|
20
|
+
_kwargs: dict[str, Any] = {
|
|
21
|
+
"method": "post",
|
|
22
|
+
"url": "/api/images",
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
_kwargs["json"] = body.to_dict()
|
|
26
|
+
|
|
27
|
+
headers["Content-Type"] = "application/json"
|
|
28
|
+
|
|
29
|
+
_kwargs["headers"] = headers
|
|
30
|
+
return _kwargs
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
def _parse_response(
|
|
34
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
35
|
+
) -> Optional[Union[ApiResponseImage, ErrorResponse]]:
|
|
36
|
+
if response.status_code == 202:
|
|
37
|
+
response_202 = ApiResponseImage.from_dict(response.json())
|
|
38
|
+
|
|
39
|
+
return response_202
|
|
40
|
+
|
|
41
|
+
if response.status_code == 400:
|
|
42
|
+
response_400 = ErrorResponse.from_dict(response.json())
|
|
43
|
+
|
|
44
|
+
return response_400
|
|
45
|
+
|
|
46
|
+
if response.status_code == 401:
|
|
47
|
+
response_401 = ErrorResponse.from_dict(response.json())
|
|
48
|
+
|
|
49
|
+
return response_401
|
|
50
|
+
|
|
51
|
+
if response.status_code == 500:
|
|
52
|
+
response_500 = ErrorResponse.from_dict(response.json())
|
|
53
|
+
|
|
54
|
+
return response_500
|
|
55
|
+
|
|
56
|
+
if client.raise_on_unexpected_status:
|
|
57
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
58
|
+
else:
|
|
59
|
+
return None
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
def _build_response(
|
|
63
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
64
|
+
) -> Response[Union[ApiResponseImage, ErrorResponse]]:
|
|
65
|
+
return Response(
|
|
66
|
+
status_code=HTTPStatus(response.status_code),
|
|
67
|
+
content=response.content,
|
|
68
|
+
headers=response.headers,
|
|
69
|
+
parsed=_parse_response(client=client, response=response),
|
|
70
|
+
)
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
def sync_detailed(
|
|
74
|
+
*,
|
|
75
|
+
client: Union[AuthenticatedClient, Client],
|
|
76
|
+
body: CreateImageRequest,
|
|
77
|
+
) -> Response[Union[ApiResponseImage, ErrorResponse]]:
|
|
78
|
+
"""Build a sandbox image
|
|
79
|
+
|
|
80
|
+
Starts pulling and converting an OCI image, or joins the build already
|
|
81
|
+
running for it. Poll the image until it is `ready`, then pass its
|
|
82
|
+
`image_id` when creating a sandbox. Requesting the same `source` again
|
|
83
|
+
returns the same image. A finished tag rebuilds, since the tag may have
|
|
84
|
+
moved; until the rebuild is `ready`, new sandboxes boot the previous
|
|
85
|
+
`digest`. A finished digest reference returns immediately.
|
|
86
|
+
`registry_auth` pulls from a private registry, and a private image is
|
|
87
|
+
visible only to its account. The credentials are passed to the build
|
|
88
|
+
and never stored. A failed build, or a build whose runtime host does
|
|
89
|
+
not answer, builds again on the next request.
|
|
90
|
+
|
|
91
|
+
Args:
|
|
92
|
+
body (CreateImageRequest):
|
|
93
|
+
|
|
94
|
+
Raises:
|
|
95
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
96
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
97
|
+
|
|
98
|
+
Returns:
|
|
99
|
+
Response[Union[ApiResponseImage, ErrorResponse]]
|
|
100
|
+
"""
|
|
101
|
+
|
|
102
|
+
kwargs = _get_kwargs(
|
|
103
|
+
body=body,
|
|
104
|
+
)
|
|
105
|
+
|
|
106
|
+
response = client.get_httpx_client().request(
|
|
107
|
+
**kwargs,
|
|
108
|
+
)
|
|
109
|
+
|
|
110
|
+
return _build_response(client=client, response=response)
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
def sync(
|
|
114
|
+
*,
|
|
115
|
+
client: Union[AuthenticatedClient, Client],
|
|
116
|
+
body: CreateImageRequest,
|
|
117
|
+
) -> Optional[Union[ApiResponseImage, ErrorResponse]]:
|
|
118
|
+
"""Build a sandbox image
|
|
119
|
+
|
|
120
|
+
Starts pulling and converting an OCI image, or joins the build already
|
|
121
|
+
running for it. Poll the image until it is `ready`, then pass its
|
|
122
|
+
`image_id` when creating a sandbox. Requesting the same `source` again
|
|
123
|
+
returns the same image. A finished tag rebuilds, since the tag may have
|
|
124
|
+
moved; until the rebuild is `ready`, new sandboxes boot the previous
|
|
125
|
+
`digest`. A finished digest reference returns immediately.
|
|
126
|
+
`registry_auth` pulls from a private registry, and a private image is
|
|
127
|
+
visible only to its account. The credentials are passed to the build
|
|
128
|
+
and never stored. A failed build, or a build whose runtime host does
|
|
129
|
+
not answer, builds again on the next request.
|
|
130
|
+
|
|
131
|
+
Args:
|
|
132
|
+
body (CreateImageRequest):
|
|
133
|
+
|
|
134
|
+
Raises:
|
|
135
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
136
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
137
|
+
|
|
138
|
+
Returns:
|
|
139
|
+
Union[ApiResponseImage, ErrorResponse]
|
|
140
|
+
"""
|
|
141
|
+
|
|
142
|
+
return sync_detailed(
|
|
143
|
+
client=client,
|
|
144
|
+
body=body,
|
|
145
|
+
).parsed
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
async def asyncio_detailed(
|
|
149
|
+
*,
|
|
150
|
+
client: Union[AuthenticatedClient, Client],
|
|
151
|
+
body: CreateImageRequest,
|
|
152
|
+
) -> Response[Union[ApiResponseImage, ErrorResponse]]:
|
|
153
|
+
"""Build a sandbox image
|
|
154
|
+
|
|
155
|
+
Starts pulling and converting an OCI image, or joins the build already
|
|
156
|
+
running for it. Poll the image until it is `ready`, then pass its
|
|
157
|
+
`image_id` when creating a sandbox. Requesting the same `source` again
|
|
158
|
+
returns the same image. A finished tag rebuilds, since the tag may have
|
|
159
|
+
moved; until the rebuild is `ready`, new sandboxes boot the previous
|
|
160
|
+
`digest`. A finished digest reference returns immediately.
|
|
161
|
+
`registry_auth` pulls from a private registry, and a private image is
|
|
162
|
+
visible only to its account. The credentials are passed to the build
|
|
163
|
+
and never stored. A failed build, or a build whose runtime host does
|
|
164
|
+
not answer, builds again on the next request.
|
|
165
|
+
|
|
166
|
+
Args:
|
|
167
|
+
body (CreateImageRequest):
|
|
168
|
+
|
|
169
|
+
Raises:
|
|
170
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
171
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
172
|
+
|
|
173
|
+
Returns:
|
|
174
|
+
Response[Union[ApiResponseImage, ErrorResponse]]
|
|
175
|
+
"""
|
|
176
|
+
|
|
177
|
+
kwargs = _get_kwargs(
|
|
178
|
+
body=body,
|
|
179
|
+
)
|
|
180
|
+
|
|
181
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
182
|
+
|
|
183
|
+
return _build_response(client=client, response=response)
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
async def asyncio(
|
|
187
|
+
*,
|
|
188
|
+
client: Union[AuthenticatedClient, Client],
|
|
189
|
+
body: CreateImageRequest,
|
|
190
|
+
) -> Optional[Union[ApiResponseImage, ErrorResponse]]:
|
|
191
|
+
"""Build a sandbox image
|
|
192
|
+
|
|
193
|
+
Starts pulling and converting an OCI image, or joins the build already
|
|
194
|
+
running for it. Poll the image until it is `ready`, then pass its
|
|
195
|
+
`image_id` when creating a sandbox. Requesting the same `source` again
|
|
196
|
+
returns the same image. A finished tag rebuilds, since the tag may have
|
|
197
|
+
moved; until the rebuild is `ready`, new sandboxes boot the previous
|
|
198
|
+
`digest`. A finished digest reference returns immediately.
|
|
199
|
+
`registry_auth` pulls from a private registry, and a private image is
|
|
200
|
+
visible only to its account. The credentials are passed to the build
|
|
201
|
+
and never stored. A failed build, or a build whose runtime host does
|
|
202
|
+
not answer, builds again on the next request.
|
|
203
|
+
|
|
204
|
+
Args:
|
|
205
|
+
body (CreateImageRequest):
|
|
206
|
+
|
|
207
|
+
Raises:
|
|
208
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
209
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
210
|
+
|
|
211
|
+
Returns:
|
|
212
|
+
Union[ApiResponseImage, ErrorResponse]
|
|
213
|
+
"""
|
|
214
|
+
|
|
215
|
+
return (
|
|
216
|
+
await asyncio_detailed(
|
|
217
|
+
client=client,
|
|
218
|
+
body=body,
|
|
219
|
+
)
|
|
220
|
+
).parsed
|
|
@@ -0,0 +1,185 @@
|
|
|
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.api_response_image import ApiResponseImage
|
|
9
|
+
from ...models.error_response import ErrorResponse
|
|
10
|
+
from ...types import Response
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def _get_kwargs(
|
|
14
|
+
image_id: str,
|
|
15
|
+
) -> dict[str, Any]:
|
|
16
|
+
_kwargs: dict[str, Any] = {
|
|
17
|
+
"method": "get",
|
|
18
|
+
"url": "/api/images/{image_id}".format(
|
|
19
|
+
image_id=image_id,
|
|
20
|
+
),
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
return _kwargs
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
def _parse_response(
|
|
27
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
28
|
+
) -> Optional[Union[ApiResponseImage, ErrorResponse]]:
|
|
29
|
+
if response.status_code == 200:
|
|
30
|
+
response_200 = ApiResponseImage.from_dict(response.json())
|
|
31
|
+
|
|
32
|
+
return response_200
|
|
33
|
+
|
|
34
|
+
if response.status_code == 401:
|
|
35
|
+
response_401 = ErrorResponse.from_dict(response.json())
|
|
36
|
+
|
|
37
|
+
return response_401
|
|
38
|
+
|
|
39
|
+
if response.status_code == 404:
|
|
40
|
+
response_404 = ErrorResponse.from_dict(response.json())
|
|
41
|
+
|
|
42
|
+
return response_404
|
|
43
|
+
|
|
44
|
+
if response.status_code == 500:
|
|
45
|
+
response_500 = ErrorResponse.from_dict(response.json())
|
|
46
|
+
|
|
47
|
+
return response_500
|
|
48
|
+
|
|
49
|
+
if client.raise_on_unexpected_status:
|
|
50
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
51
|
+
else:
|
|
52
|
+
return None
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
def _build_response(
|
|
56
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
57
|
+
) -> Response[Union[ApiResponseImage, ErrorResponse]]:
|
|
58
|
+
return Response(
|
|
59
|
+
status_code=HTTPStatus(response.status_code),
|
|
60
|
+
content=response.content,
|
|
61
|
+
headers=response.headers,
|
|
62
|
+
parsed=_parse_response(client=client, response=response),
|
|
63
|
+
)
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
def sync_detailed(
|
|
67
|
+
image_id: str,
|
|
68
|
+
*,
|
|
69
|
+
client: Union[AuthenticatedClient, Client],
|
|
70
|
+
) -> Response[Union[ApiResponseImage, ErrorResponse]]:
|
|
71
|
+
"""Get a sandbox image
|
|
72
|
+
|
|
73
|
+
Reports build progress. A build its runtime host failed or lost reports `failed` with
|
|
74
|
+
`failure_reason: interrupted`; one whose host does not answer stays `building`. Request the image
|
|
75
|
+
again to rebuild either.
|
|
76
|
+
|
|
77
|
+
Args:
|
|
78
|
+
image_id (str):
|
|
79
|
+
|
|
80
|
+
Raises:
|
|
81
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
82
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
83
|
+
|
|
84
|
+
Returns:
|
|
85
|
+
Response[Union[ApiResponseImage, ErrorResponse]]
|
|
86
|
+
"""
|
|
87
|
+
|
|
88
|
+
kwargs = _get_kwargs(
|
|
89
|
+
image_id=image_id,
|
|
90
|
+
)
|
|
91
|
+
|
|
92
|
+
response = client.get_httpx_client().request(
|
|
93
|
+
**kwargs,
|
|
94
|
+
)
|
|
95
|
+
|
|
96
|
+
return _build_response(client=client, response=response)
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
def sync(
|
|
100
|
+
image_id: str,
|
|
101
|
+
*,
|
|
102
|
+
client: Union[AuthenticatedClient, Client],
|
|
103
|
+
) -> Optional[Union[ApiResponseImage, ErrorResponse]]:
|
|
104
|
+
"""Get a sandbox image
|
|
105
|
+
|
|
106
|
+
Reports build progress. A build its runtime host failed or lost reports `failed` with
|
|
107
|
+
`failure_reason: interrupted`; one whose host does not answer stays `building`. Request the image
|
|
108
|
+
again to rebuild either.
|
|
109
|
+
|
|
110
|
+
Args:
|
|
111
|
+
image_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[ApiResponseImage, ErrorResponse]
|
|
119
|
+
"""
|
|
120
|
+
|
|
121
|
+
return sync_detailed(
|
|
122
|
+
image_id=image_id,
|
|
123
|
+
client=client,
|
|
124
|
+
).parsed
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
async def asyncio_detailed(
|
|
128
|
+
image_id: str,
|
|
129
|
+
*,
|
|
130
|
+
client: Union[AuthenticatedClient, Client],
|
|
131
|
+
) -> Response[Union[ApiResponseImage, ErrorResponse]]:
|
|
132
|
+
"""Get a sandbox image
|
|
133
|
+
|
|
134
|
+
Reports build progress. A build its runtime host failed or lost reports `failed` with
|
|
135
|
+
`failure_reason: interrupted`; one whose host does not answer stays `building`. Request the image
|
|
136
|
+
again to rebuild either.
|
|
137
|
+
|
|
138
|
+
Args:
|
|
139
|
+
image_id (str):
|
|
140
|
+
|
|
141
|
+
Raises:
|
|
142
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
143
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
144
|
+
|
|
145
|
+
Returns:
|
|
146
|
+
Response[Union[ApiResponseImage, ErrorResponse]]
|
|
147
|
+
"""
|
|
148
|
+
|
|
149
|
+
kwargs = _get_kwargs(
|
|
150
|
+
image_id=image_id,
|
|
151
|
+
)
|
|
152
|
+
|
|
153
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
154
|
+
|
|
155
|
+
return _build_response(client=client, response=response)
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
async def asyncio(
|
|
159
|
+
image_id: str,
|
|
160
|
+
*,
|
|
161
|
+
client: Union[AuthenticatedClient, Client],
|
|
162
|
+
) -> Optional[Union[ApiResponseImage, ErrorResponse]]:
|
|
163
|
+
"""Get a sandbox image
|
|
164
|
+
|
|
165
|
+
Reports build progress. A build its runtime host failed or lost reports `failed` with
|
|
166
|
+
`failure_reason: interrupted`; one whose host does not answer stays `building`. Request the image
|
|
167
|
+
again to rebuild either.
|
|
168
|
+
|
|
169
|
+
Args:
|
|
170
|
+
image_id (str):
|
|
171
|
+
|
|
172
|
+
Raises:
|
|
173
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
174
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
175
|
+
|
|
176
|
+
Returns:
|
|
177
|
+
Union[ApiResponseImage, ErrorResponse]
|
|
178
|
+
"""
|
|
179
|
+
|
|
180
|
+
return (
|
|
181
|
+
await asyncio_detailed(
|
|
182
|
+
image_id=image_id,
|
|
183
|
+
client=client,
|
|
184
|
+
)
|
|
185
|
+
).parsed
|