archil-openapi 0.0.43__tar.gz → 0.0.45__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.43 → archil_openapi-0.0.45}/PKG-INFO +1 -1
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/pyproject.toml +1 -1
- archil_openapi-0.0.45/src/archil_openapi/api/disks/create_branch.py +265 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/api/disks/create_disk.py +5 -0
- archil_openapi-0.0.45/src/archil_openapi/api/disks/get_branch.py +192 -0
- archil_openapi-0.0.45/src/archil_openapi/api/disks/list_branches.py +190 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/__init__.py +8 -0
- archil_openapi-0.0.45/src/archil_openapi/models/branch_api_response.py +73 -0
- archil_openapi-0.0.45/src/archil_openapi/models/branch_list_api_response.py +81 -0
- archil_openapi-0.0.45/src/archil_openapi/models/branch_response.py +102 -0
- archil_openapi-0.0.45/src/archil_openapi/models/create_branch_request.py +80 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/LICENSE +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/README.md +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/__init__.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/api/__init__.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/api/activity/__init__.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/api/activity/list_activity.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/api/api_tokens/__init__.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/api/api_tokens/create_api_token.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/api/api_tokens/delete_api_token.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/api/api_tokens/list_api_tokens.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/api/billing/__init__.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/api/billing/create_billing_setup_intent.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/api/billing/delete_billing_payment_method.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/api/billing/get_billing_invoice.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/api/billing/get_billing_profile.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/api/billing/get_billing_summary.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/api/billing/list_billing_invoices.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/api/billing/list_billing_payment_methods.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/api/billing/set_billing_default_payment_method.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/api/billing/update_billing_payment_method.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/api/billing/update_billing_profile.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/api/disk_configuration/__init__.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/api/disk_configuration/get_allowed_i_ps.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/api/disk_configuration/list_delegations.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/api/disk_configuration/revoke_delegation.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/api/disk_configuration/set_allowed_i_ps.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/api/disk_users/__init__.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/api/disk_users/add_disk_user.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/api/disk_users/remove_disk_user.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/api/disks/__init__.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/api/disks/create_share_url.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/api/disks/delete_disk.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/api/disks/exec_.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/api/disks/exec_disk.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/api/disks/get_disk.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/api/disks/grep_disk.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/api/disks/list_disks.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/api/sandboxes/__init__.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/api/sandboxes/create_image.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/api/sandboxes/create_sandbox.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/api/sandboxes/create_sandbox_connection.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/api/sandboxes/create_sandbox_port_token.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/api/sandboxes/delete_sandbox.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/api/sandboxes/delete_sandbox_port.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/api/sandboxes/delete_sandbox_port_token.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/api/sandboxes/expose_sandbox_port.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/api/sandboxes/fork_sandbox.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/api/sandboxes/get_image.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/api/sandboxes/get_sandbox.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/api/sandboxes/get_sandbox_network.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/api/sandboxes/get_sandbox_port_token.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/api/sandboxes/list_sandbox_port_tokens.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/api/sandboxes/list_sandbox_ports.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/api/sandboxes/list_sandboxes.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/api/sandboxes/pause_sandbox.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/api/sandboxes/resume_sandbox.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/api/sandboxes/set_sandbox_timeout.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/api/sandboxes/start_sandbox.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/api/sandboxes/stop_sandbox.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/api/sandboxes/update_sandbox_network.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/client.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/errors.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/activity_event.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/activity_event_details.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/activity_event_level.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/api_response_activity_list.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/api_response_allowed_i_ps.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/api_response_allowed_i_ps_data.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/api_response_authorized_user.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/api_response_billing_default_payment_method.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/api_response_billing_default_payment_method_data.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/api_response_billing_default_payment_method_data_scope.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/api_response_billing_invoice_detail.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/api_response_billing_invoices.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/api_response_billing_method_removed.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/api_response_billing_method_removed_data.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/api_response_billing_payment_method.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/api_response_billing_payment_methods.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/api_response_billing_profile.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/api_response_billing_setup_intent.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/api_response_billing_setup_intent_data.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/api_response_billing_summary.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/api_response_create_disk.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/api_response_create_disk_data.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/api_response_created_sandbox_port_token.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/api_response_delegations.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/api_response_delegations_data.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/api_response_disk.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/api_response_disk_list.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/api_response_empty.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/api_response_exec.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/api_response_exec_disk.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/api_response_grep_disk.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/api_response_image.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/api_response_message.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/api_response_message_data.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/api_response_sandbox.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/api_response_sandbox_connection.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/api_response_sandbox_list.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/api_response_sandbox_list_data.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/api_response_sandbox_network.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/api_response_sandbox_port.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/api_response_sandbox_port_list.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/api_response_sandbox_port_token.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/api_response_sandbox_port_token_list.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/api_response_share_url.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/api_response_share_url_data.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/api_response_token_created.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/api_response_token_created_data.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/api_response_token_list.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/api_response_token_list_data.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/api_token_response.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/authorized_user.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/authorized_user_status.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/authorized_user_type.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/aws_sts_user.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/aws_sts_user_type.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/azure_blob_storage.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/azure_blob_storage_type.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/billing_address.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/billing_address_patch.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/billing_credit_note.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/billing_invoice_credit.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/billing_invoice_detail.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/billing_invoice_line.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/billing_invoice_summary.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/billing_invoice_tax.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/billing_owner.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/billing_owner_type.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/billing_payment_health.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/billing_payment_health_status.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/billing_payment_method.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/billing_payment_method_billing_details.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/billing_payment_method_card.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/billing_period.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/billing_profile.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/billing_profile_billing_mode.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/billing_profile_validation_error.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/billing_profile_validation_error_code.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/billing_profile_validation_error_data.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/billing_profile_validation_error_data_field_errors.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/billing_scheduled_change.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/billing_scheduled_change_target_plan.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/billing_scheduled_change_type.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/billing_summary.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/billing_summary_actions.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/billing_summary_billing_mode.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/billing_summary_plan.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/cloudflare_r2.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/cloudflare_r2_type.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/connected_client.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/create_api_token_request.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/create_disk_request.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/create_image_request.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/create_sandbox_port_token_request.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/create_sandbox_request.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/create_sandbox_request_env.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/create_share_url_request.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/created_sandbox_port_token.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/delegation_entry.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/disk_metrics.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/disk_response.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/disk_response_capabilities_item.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/disk_response_status.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/error_response.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/exec_disk_request.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/exec_disk_result.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/exec_mount.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/exec_request.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/exec_request_disks.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/exec_timing.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/fork_sandbox_request.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/google_cloud_storage.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/google_cloud_storage_type.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/grep_disk_request.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/grep_disk_result.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/grep_match.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/grep_stopped_reason.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/image.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/image_failure_reason.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/image_state.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/list_activity_level_item.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/mount_config_response.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/mount_response.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/mount_response_access_mode.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/mount_response_authorization_type.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/mount_response_connection_status.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/mount_response_type.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/registry_auth.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/remove_disk_user_user_type.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/revoke_delegation_request.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/root_attrs.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/s3.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/s3_compatible.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/s3_compatible_type.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/s3_type.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/sandbox.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/sandbox_connection.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/sandbox_egress_policy.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/sandbox_egress_rule.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/sandbox_egress_transform.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/sandbox_egress_transform_headers.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/sandbox_endpoint.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/sandbox_mount.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/sandbox_network.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/sandbox_network_action.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/sandbox_platform.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/sandbox_port.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/sandbox_port_list.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/sandbox_port_token.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/sandbox_port_token_list.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/sandbox_state.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/sandbox_timeout_request.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/set_allowed_i_ps_body.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/set_billing_default_payment_method_body.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/start_sandbox_request.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/token_user.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/token_user_type.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/update_billing_payment_method_body.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/models/update_billing_profile_body.py +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/py.typed +0 -0
- {archil_openapi-0.0.43 → archil_openapi-0.0.45}/src/archil_openapi/types.py +0 -0
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
from http import HTTPStatus
|
|
2
|
+
from typing import Any, Optional, Union
|
|
3
|
+
from uuid import UUID
|
|
4
|
+
|
|
5
|
+
import httpx
|
|
6
|
+
|
|
7
|
+
from ... import errors
|
|
8
|
+
from ...client import AuthenticatedClient, Client
|
|
9
|
+
from ...models.branch_api_response import BranchApiResponse
|
|
10
|
+
from ...models.create_branch_request import CreateBranchRequest
|
|
11
|
+
from ...models.error_response import ErrorResponse
|
|
12
|
+
from ...types import UNSET, Response, Unset
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
def _get_kwargs(
|
|
16
|
+
id: str,
|
|
17
|
+
*,
|
|
18
|
+
body: CreateBranchRequest,
|
|
19
|
+
idempotency_key: Union[Unset, UUID] = UNSET,
|
|
20
|
+
) -> dict[str, Any]:
|
|
21
|
+
headers: dict[str, Any] = {}
|
|
22
|
+
if not isinstance(idempotency_key, Unset):
|
|
23
|
+
headers["Idempotency-Key"] = idempotency_key
|
|
24
|
+
|
|
25
|
+
_kwargs: dict[str, Any] = {
|
|
26
|
+
"method": "post",
|
|
27
|
+
"url": "/api/disks/{id}/branches".format(
|
|
28
|
+
id=id,
|
|
29
|
+
),
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
_kwargs["json"] = body.to_dict()
|
|
33
|
+
|
|
34
|
+
headers["Content-Type"] = "application/json"
|
|
35
|
+
|
|
36
|
+
_kwargs["headers"] = headers
|
|
37
|
+
return _kwargs
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
def _parse_response(
|
|
41
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
42
|
+
) -> Optional[Union[BranchApiResponse, ErrorResponse, str]]:
|
|
43
|
+
if response.status_code == 201:
|
|
44
|
+
response_201 = BranchApiResponse.from_dict(response.json())
|
|
45
|
+
|
|
46
|
+
return response_201
|
|
47
|
+
|
|
48
|
+
if response.status_code == 400:
|
|
49
|
+
response_400 = ErrorResponse.from_dict(response.json())
|
|
50
|
+
|
|
51
|
+
return response_400
|
|
52
|
+
|
|
53
|
+
if response.status_code == 401:
|
|
54
|
+
response_401 = response.text
|
|
55
|
+
return response_401
|
|
56
|
+
|
|
57
|
+
if response.status_code == 404:
|
|
58
|
+
response_404 = ErrorResponse.from_dict(response.json())
|
|
59
|
+
|
|
60
|
+
return response_404
|
|
61
|
+
|
|
62
|
+
if response.status_code == 409:
|
|
63
|
+
response_409 = ErrorResponse.from_dict(response.json())
|
|
64
|
+
|
|
65
|
+
return response_409
|
|
66
|
+
|
|
67
|
+
if response.status_code == 500:
|
|
68
|
+
response_500 = ErrorResponse.from_dict(response.json())
|
|
69
|
+
|
|
70
|
+
return response_500
|
|
71
|
+
|
|
72
|
+
if response.status_code == 504:
|
|
73
|
+
response_504 = ErrorResponse.from_dict(response.json())
|
|
74
|
+
|
|
75
|
+
return response_504
|
|
76
|
+
|
|
77
|
+
if client.raise_on_unexpected_status:
|
|
78
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
79
|
+
else:
|
|
80
|
+
return None
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
def _build_response(
|
|
84
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
85
|
+
) -> Response[Union[BranchApiResponse, ErrorResponse, str]]:
|
|
86
|
+
return Response(
|
|
87
|
+
status_code=HTTPStatus(response.status_code),
|
|
88
|
+
content=response.content,
|
|
89
|
+
headers=response.headers,
|
|
90
|
+
parsed=_parse_response(client=client, response=response),
|
|
91
|
+
)
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
def sync_detailed(
|
|
95
|
+
id: str,
|
|
96
|
+
*,
|
|
97
|
+
client: Union[AuthenticatedClient, Client],
|
|
98
|
+
body: CreateBranchRequest,
|
|
99
|
+
idempotency_key: Union[Unset, UUID] = UNSET,
|
|
100
|
+
) -> Response[Union[BranchApiResponse, ErrorResponse, str]]:
|
|
101
|
+
"""Create a writable branch from a checkpoint
|
|
102
|
+
|
|
103
|
+
Create a branch: an independent, writable fork of the disk that starts
|
|
104
|
+
from a committed checkpoint. The checkpoint is looked up on the root
|
|
105
|
+
disk, or on `from_branch` when supplied. Writes on the branch don't
|
|
106
|
+
affect its source.
|
|
107
|
+
|
|
108
|
+
Branch names are unique across the disk, including branches created
|
|
109
|
+
from other branches. Creating a branch with a name that already exists
|
|
110
|
+
returns 409, unless the request carries the `Idempotency-Key` that
|
|
111
|
+
created it, in which case the existing branch is returned with 201. To
|
|
112
|
+
retry safely, send the same `Idempotency-Key` and request body.
|
|
113
|
+
|
|
114
|
+
Args:
|
|
115
|
+
id (str): Example: dsk-0123456789abcdef.
|
|
116
|
+
idempotency_key (Union[Unset, UUID]):
|
|
117
|
+
body (CreateBranchRequest):
|
|
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
|
+
Response[Union[BranchApiResponse, ErrorResponse, str]]
|
|
125
|
+
"""
|
|
126
|
+
|
|
127
|
+
kwargs = _get_kwargs(
|
|
128
|
+
id=id,
|
|
129
|
+
body=body,
|
|
130
|
+
idempotency_key=idempotency_key,
|
|
131
|
+
)
|
|
132
|
+
|
|
133
|
+
response = client.get_httpx_client().request(
|
|
134
|
+
**kwargs,
|
|
135
|
+
)
|
|
136
|
+
|
|
137
|
+
return _build_response(client=client, response=response)
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
def sync(
|
|
141
|
+
id: str,
|
|
142
|
+
*,
|
|
143
|
+
client: Union[AuthenticatedClient, Client],
|
|
144
|
+
body: CreateBranchRequest,
|
|
145
|
+
idempotency_key: Union[Unset, UUID] = UNSET,
|
|
146
|
+
) -> Optional[Union[BranchApiResponse, ErrorResponse, str]]:
|
|
147
|
+
"""Create a writable branch from a checkpoint
|
|
148
|
+
|
|
149
|
+
Create a branch: an independent, writable fork of the disk that starts
|
|
150
|
+
from a committed checkpoint. The checkpoint is looked up on the root
|
|
151
|
+
disk, or on `from_branch` when supplied. Writes on the branch don't
|
|
152
|
+
affect its source.
|
|
153
|
+
|
|
154
|
+
Branch names are unique across the disk, including branches created
|
|
155
|
+
from other branches. Creating a branch with a name that already exists
|
|
156
|
+
returns 409, unless the request carries the `Idempotency-Key` that
|
|
157
|
+
created it, in which case the existing branch is returned with 201. To
|
|
158
|
+
retry safely, send the same `Idempotency-Key` and request body.
|
|
159
|
+
|
|
160
|
+
Args:
|
|
161
|
+
id (str): Example: dsk-0123456789abcdef.
|
|
162
|
+
idempotency_key (Union[Unset, UUID]):
|
|
163
|
+
body (CreateBranchRequest):
|
|
164
|
+
|
|
165
|
+
Raises:
|
|
166
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
167
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
168
|
+
|
|
169
|
+
Returns:
|
|
170
|
+
Union[BranchApiResponse, ErrorResponse, str]
|
|
171
|
+
"""
|
|
172
|
+
|
|
173
|
+
return sync_detailed(
|
|
174
|
+
id=id,
|
|
175
|
+
client=client,
|
|
176
|
+
body=body,
|
|
177
|
+
idempotency_key=idempotency_key,
|
|
178
|
+
).parsed
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
async def asyncio_detailed(
|
|
182
|
+
id: str,
|
|
183
|
+
*,
|
|
184
|
+
client: Union[AuthenticatedClient, Client],
|
|
185
|
+
body: CreateBranchRequest,
|
|
186
|
+
idempotency_key: Union[Unset, UUID] = UNSET,
|
|
187
|
+
) -> Response[Union[BranchApiResponse, ErrorResponse, str]]:
|
|
188
|
+
"""Create a writable branch from a checkpoint
|
|
189
|
+
|
|
190
|
+
Create a branch: an independent, writable fork of the disk that starts
|
|
191
|
+
from a committed checkpoint. The checkpoint is looked up on the root
|
|
192
|
+
disk, or on `from_branch` when supplied. Writes on the branch don't
|
|
193
|
+
affect its source.
|
|
194
|
+
|
|
195
|
+
Branch names are unique across the disk, including branches created
|
|
196
|
+
from other branches. Creating a branch with a name that already exists
|
|
197
|
+
returns 409, unless the request carries the `Idempotency-Key` that
|
|
198
|
+
created it, in which case the existing branch is returned with 201. To
|
|
199
|
+
retry safely, send the same `Idempotency-Key` and request body.
|
|
200
|
+
|
|
201
|
+
Args:
|
|
202
|
+
id (str): Example: dsk-0123456789abcdef.
|
|
203
|
+
idempotency_key (Union[Unset, UUID]):
|
|
204
|
+
body (CreateBranchRequest):
|
|
205
|
+
|
|
206
|
+
Raises:
|
|
207
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
208
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
209
|
+
|
|
210
|
+
Returns:
|
|
211
|
+
Response[Union[BranchApiResponse, ErrorResponse, str]]
|
|
212
|
+
"""
|
|
213
|
+
|
|
214
|
+
kwargs = _get_kwargs(
|
|
215
|
+
id=id,
|
|
216
|
+
body=body,
|
|
217
|
+
idempotency_key=idempotency_key,
|
|
218
|
+
)
|
|
219
|
+
|
|
220
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
221
|
+
|
|
222
|
+
return _build_response(client=client, response=response)
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
async def asyncio(
|
|
226
|
+
id: str,
|
|
227
|
+
*,
|
|
228
|
+
client: Union[AuthenticatedClient, Client],
|
|
229
|
+
body: CreateBranchRequest,
|
|
230
|
+
idempotency_key: Union[Unset, UUID] = UNSET,
|
|
231
|
+
) -> Optional[Union[BranchApiResponse, ErrorResponse, str]]:
|
|
232
|
+
"""Create a writable branch from a checkpoint
|
|
233
|
+
|
|
234
|
+
Create a branch: an independent, writable fork of the disk that starts
|
|
235
|
+
from a committed checkpoint. The checkpoint is looked up on the root
|
|
236
|
+
disk, or on `from_branch` when supplied. Writes on the branch don't
|
|
237
|
+
affect its source.
|
|
238
|
+
|
|
239
|
+
Branch names are unique across the disk, including branches created
|
|
240
|
+
from other branches. Creating a branch with a name that already exists
|
|
241
|
+
returns 409, unless the request carries the `Idempotency-Key` that
|
|
242
|
+
created it, in which case the existing branch is returned with 201. To
|
|
243
|
+
retry safely, send the same `Idempotency-Key` and request body.
|
|
244
|
+
|
|
245
|
+
Args:
|
|
246
|
+
id (str): Example: dsk-0123456789abcdef.
|
|
247
|
+
idempotency_key (Union[Unset, UUID]):
|
|
248
|
+
body (CreateBranchRequest):
|
|
249
|
+
|
|
250
|
+
Raises:
|
|
251
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
252
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
253
|
+
|
|
254
|
+
Returns:
|
|
255
|
+
Union[BranchApiResponse, ErrorResponse, str]
|
|
256
|
+
"""
|
|
257
|
+
|
|
258
|
+
return (
|
|
259
|
+
await asyncio_detailed(
|
|
260
|
+
id=id,
|
|
261
|
+
client=client,
|
|
262
|
+
body=body,
|
|
263
|
+
idempotency_key=idempotency_key,
|
|
264
|
+
)
|
|
265
|
+
).parsed
|
|
@@ -73,6 +73,11 @@ def _parse_response(
|
|
|
73
73
|
|
|
74
74
|
return response_503
|
|
75
75
|
|
|
76
|
+
if response.status_code == 504:
|
|
77
|
+
response_504 = ErrorResponse.from_dict(response.json())
|
|
78
|
+
|
|
79
|
+
return response_504
|
|
80
|
+
|
|
76
81
|
if client.raise_on_unexpected_status:
|
|
77
82
|
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
78
83
|
else:
|
|
@@ -0,0 +1,192 @@
|
|
|
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.branch_api_response import BranchApiResponse
|
|
9
|
+
from ...models.error_response import ErrorResponse
|
|
10
|
+
from ...types import Response
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def _get_kwargs(
|
|
14
|
+
id: str,
|
|
15
|
+
name: str,
|
|
16
|
+
) -> dict[str, Any]:
|
|
17
|
+
_kwargs: dict[str, Any] = {
|
|
18
|
+
"method": "get",
|
|
19
|
+
"url": "/api/disks/{id}/branches/{name}".format(
|
|
20
|
+
id=id,
|
|
21
|
+
name=name,
|
|
22
|
+
),
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
return _kwargs
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
def _parse_response(
|
|
29
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
30
|
+
) -> Optional[Union[BranchApiResponse, ErrorResponse, str]]:
|
|
31
|
+
if response.status_code == 200:
|
|
32
|
+
response_200 = BranchApiResponse.from_dict(response.json())
|
|
33
|
+
|
|
34
|
+
return response_200
|
|
35
|
+
|
|
36
|
+
if response.status_code == 400:
|
|
37
|
+
response_400 = ErrorResponse.from_dict(response.json())
|
|
38
|
+
|
|
39
|
+
return response_400
|
|
40
|
+
|
|
41
|
+
if response.status_code == 401:
|
|
42
|
+
response_401 = response.text
|
|
43
|
+
return response_401
|
|
44
|
+
|
|
45
|
+
if response.status_code == 404:
|
|
46
|
+
response_404 = ErrorResponse.from_dict(response.json())
|
|
47
|
+
|
|
48
|
+
return response_404
|
|
49
|
+
|
|
50
|
+
if response.status_code == 500:
|
|
51
|
+
response_500 = ErrorResponse.from_dict(response.json())
|
|
52
|
+
|
|
53
|
+
return response_500
|
|
54
|
+
|
|
55
|
+
if response.status_code == 504:
|
|
56
|
+
response_504 = ErrorResponse.from_dict(response.json())
|
|
57
|
+
|
|
58
|
+
return response_504
|
|
59
|
+
|
|
60
|
+
if client.raise_on_unexpected_status:
|
|
61
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
62
|
+
else:
|
|
63
|
+
return None
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
def _build_response(
|
|
67
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
68
|
+
) -> Response[Union[BranchApiResponse, ErrorResponse, str]]:
|
|
69
|
+
return Response(
|
|
70
|
+
status_code=HTTPStatus(response.status_code),
|
|
71
|
+
content=response.content,
|
|
72
|
+
headers=response.headers,
|
|
73
|
+
parsed=_parse_response(client=client, response=response),
|
|
74
|
+
)
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
def sync_detailed(
|
|
78
|
+
id: str,
|
|
79
|
+
name: str,
|
|
80
|
+
*,
|
|
81
|
+
client: Union[AuthenticatedClient, Client],
|
|
82
|
+
) -> Response[Union[BranchApiResponse, ErrorResponse, str]]:
|
|
83
|
+
"""Get a disk branch
|
|
84
|
+
|
|
85
|
+
Args:
|
|
86
|
+
id (str): Example: dsk-0123456789abcdef.
|
|
87
|
+
name (str): 1-100 letters, digits, hyphens, or underscores. Unique across the disk.
|
|
88
|
+
|
|
89
|
+
Raises:
|
|
90
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
91
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
92
|
+
|
|
93
|
+
Returns:
|
|
94
|
+
Response[Union[BranchApiResponse, ErrorResponse, str]]
|
|
95
|
+
"""
|
|
96
|
+
|
|
97
|
+
kwargs = _get_kwargs(
|
|
98
|
+
id=id,
|
|
99
|
+
name=name,
|
|
100
|
+
)
|
|
101
|
+
|
|
102
|
+
response = client.get_httpx_client().request(
|
|
103
|
+
**kwargs,
|
|
104
|
+
)
|
|
105
|
+
|
|
106
|
+
return _build_response(client=client, response=response)
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
def sync(
|
|
110
|
+
id: str,
|
|
111
|
+
name: str,
|
|
112
|
+
*,
|
|
113
|
+
client: Union[AuthenticatedClient, Client],
|
|
114
|
+
) -> Optional[Union[BranchApiResponse, ErrorResponse, str]]:
|
|
115
|
+
"""Get a disk branch
|
|
116
|
+
|
|
117
|
+
Args:
|
|
118
|
+
id (str): Example: dsk-0123456789abcdef.
|
|
119
|
+
name (str): 1-100 letters, digits, hyphens, or underscores. Unique across the disk.
|
|
120
|
+
|
|
121
|
+
Raises:
|
|
122
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
123
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
124
|
+
|
|
125
|
+
Returns:
|
|
126
|
+
Union[BranchApiResponse, ErrorResponse, str]
|
|
127
|
+
"""
|
|
128
|
+
|
|
129
|
+
return sync_detailed(
|
|
130
|
+
id=id,
|
|
131
|
+
name=name,
|
|
132
|
+
client=client,
|
|
133
|
+
).parsed
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
async def asyncio_detailed(
|
|
137
|
+
id: str,
|
|
138
|
+
name: str,
|
|
139
|
+
*,
|
|
140
|
+
client: Union[AuthenticatedClient, Client],
|
|
141
|
+
) -> Response[Union[BranchApiResponse, ErrorResponse, str]]:
|
|
142
|
+
"""Get a disk branch
|
|
143
|
+
|
|
144
|
+
Args:
|
|
145
|
+
id (str): Example: dsk-0123456789abcdef.
|
|
146
|
+
name (str): 1-100 letters, digits, hyphens, or underscores. Unique across the disk.
|
|
147
|
+
|
|
148
|
+
Raises:
|
|
149
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
150
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
151
|
+
|
|
152
|
+
Returns:
|
|
153
|
+
Response[Union[BranchApiResponse, ErrorResponse, str]]
|
|
154
|
+
"""
|
|
155
|
+
|
|
156
|
+
kwargs = _get_kwargs(
|
|
157
|
+
id=id,
|
|
158
|
+
name=name,
|
|
159
|
+
)
|
|
160
|
+
|
|
161
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
162
|
+
|
|
163
|
+
return _build_response(client=client, response=response)
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
async def asyncio(
|
|
167
|
+
id: str,
|
|
168
|
+
name: str,
|
|
169
|
+
*,
|
|
170
|
+
client: Union[AuthenticatedClient, Client],
|
|
171
|
+
) -> Optional[Union[BranchApiResponse, ErrorResponse, str]]:
|
|
172
|
+
"""Get a disk branch
|
|
173
|
+
|
|
174
|
+
Args:
|
|
175
|
+
id (str): Example: dsk-0123456789abcdef.
|
|
176
|
+
name (str): 1-100 letters, digits, hyphens, or underscores. Unique across the disk.
|
|
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[BranchApiResponse, ErrorResponse, str]
|
|
184
|
+
"""
|
|
185
|
+
|
|
186
|
+
return (
|
|
187
|
+
await asyncio_detailed(
|
|
188
|
+
id=id,
|
|
189
|
+
name=name,
|
|
190
|
+
client=client,
|
|
191
|
+
)
|
|
192
|
+
).parsed
|
|
@@ -0,0 +1,190 @@
|
|
|
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.branch_list_api_response import BranchListApiResponse
|
|
9
|
+
from ...models.error_response import ErrorResponse
|
|
10
|
+
from ...types import Response
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def _get_kwargs(
|
|
14
|
+
id: str,
|
|
15
|
+
) -> dict[str, Any]:
|
|
16
|
+
_kwargs: dict[str, Any] = {
|
|
17
|
+
"method": "get",
|
|
18
|
+
"url": "/api/disks/{id}/branches".format(
|
|
19
|
+
id=id,
|
|
20
|
+
),
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
return _kwargs
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
def _parse_response(
|
|
27
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
28
|
+
) -> Optional[Union[BranchListApiResponse, ErrorResponse, str]]:
|
|
29
|
+
if response.status_code == 200:
|
|
30
|
+
response_200 = BranchListApiResponse.from_dict(response.json())
|
|
31
|
+
|
|
32
|
+
return response_200
|
|
33
|
+
|
|
34
|
+
if response.status_code == 400:
|
|
35
|
+
response_400 = ErrorResponse.from_dict(response.json())
|
|
36
|
+
|
|
37
|
+
return response_400
|
|
38
|
+
|
|
39
|
+
if response.status_code == 401:
|
|
40
|
+
response_401 = response.text
|
|
41
|
+
return response_401
|
|
42
|
+
|
|
43
|
+
if response.status_code == 404:
|
|
44
|
+
response_404 = ErrorResponse.from_dict(response.json())
|
|
45
|
+
|
|
46
|
+
return response_404
|
|
47
|
+
|
|
48
|
+
if response.status_code == 500:
|
|
49
|
+
response_500 = ErrorResponse.from_dict(response.json())
|
|
50
|
+
|
|
51
|
+
return response_500
|
|
52
|
+
|
|
53
|
+
if response.status_code == 504:
|
|
54
|
+
response_504 = ErrorResponse.from_dict(response.json())
|
|
55
|
+
|
|
56
|
+
return response_504
|
|
57
|
+
|
|
58
|
+
if client.raise_on_unexpected_status:
|
|
59
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
60
|
+
else:
|
|
61
|
+
return None
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
def _build_response(
|
|
65
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
66
|
+
) -> Response[Union[BranchListApiResponse, ErrorResponse, str]]:
|
|
67
|
+
return Response(
|
|
68
|
+
status_code=HTTPStatus(response.status_code),
|
|
69
|
+
content=response.content,
|
|
70
|
+
headers=response.headers,
|
|
71
|
+
parsed=_parse_response(client=client, response=response),
|
|
72
|
+
)
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
def sync_detailed(
|
|
76
|
+
id: str,
|
|
77
|
+
*,
|
|
78
|
+
client: Union[AuthenticatedClient, Client],
|
|
79
|
+
) -> Response[Union[BranchListApiResponse, ErrorResponse, str]]:
|
|
80
|
+
"""List disk branches
|
|
81
|
+
|
|
82
|
+
List every branch of the disk, including branches created from other
|
|
83
|
+
branches, in no particular order.
|
|
84
|
+
|
|
85
|
+
Args:
|
|
86
|
+
id (str): Example: dsk-0123456789abcdef.
|
|
87
|
+
|
|
88
|
+
Raises:
|
|
89
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
90
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
91
|
+
|
|
92
|
+
Returns:
|
|
93
|
+
Response[Union[BranchListApiResponse, ErrorResponse, str]]
|
|
94
|
+
"""
|
|
95
|
+
|
|
96
|
+
kwargs = _get_kwargs(
|
|
97
|
+
id=id,
|
|
98
|
+
)
|
|
99
|
+
|
|
100
|
+
response = client.get_httpx_client().request(
|
|
101
|
+
**kwargs,
|
|
102
|
+
)
|
|
103
|
+
|
|
104
|
+
return _build_response(client=client, response=response)
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
def sync(
|
|
108
|
+
id: str,
|
|
109
|
+
*,
|
|
110
|
+
client: Union[AuthenticatedClient, Client],
|
|
111
|
+
) -> Optional[Union[BranchListApiResponse, ErrorResponse, str]]:
|
|
112
|
+
"""List disk branches
|
|
113
|
+
|
|
114
|
+
List every branch of the disk, including branches created from other
|
|
115
|
+
branches, in no particular order.
|
|
116
|
+
|
|
117
|
+
Args:
|
|
118
|
+
id (str): Example: dsk-0123456789abcdef.
|
|
119
|
+
|
|
120
|
+
Raises:
|
|
121
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
122
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
123
|
+
|
|
124
|
+
Returns:
|
|
125
|
+
Union[BranchListApiResponse, ErrorResponse, str]
|
|
126
|
+
"""
|
|
127
|
+
|
|
128
|
+
return sync_detailed(
|
|
129
|
+
id=id,
|
|
130
|
+
client=client,
|
|
131
|
+
).parsed
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
async def asyncio_detailed(
|
|
135
|
+
id: str,
|
|
136
|
+
*,
|
|
137
|
+
client: Union[AuthenticatedClient, Client],
|
|
138
|
+
) -> Response[Union[BranchListApiResponse, ErrorResponse, str]]:
|
|
139
|
+
"""List disk branches
|
|
140
|
+
|
|
141
|
+
List every branch of the disk, including branches created from other
|
|
142
|
+
branches, in no particular order.
|
|
143
|
+
|
|
144
|
+
Args:
|
|
145
|
+
id (str): Example: dsk-0123456789abcdef.
|
|
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[BranchListApiResponse, ErrorResponse, str]]
|
|
153
|
+
"""
|
|
154
|
+
|
|
155
|
+
kwargs = _get_kwargs(
|
|
156
|
+
id=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
|
+
id: str,
|
|
166
|
+
*,
|
|
167
|
+
client: Union[AuthenticatedClient, Client],
|
|
168
|
+
) -> Optional[Union[BranchListApiResponse, ErrorResponse, str]]:
|
|
169
|
+
"""List disk branches
|
|
170
|
+
|
|
171
|
+
List every branch of the disk, including branches created from other
|
|
172
|
+
branches, in no particular order.
|
|
173
|
+
|
|
174
|
+
Args:
|
|
175
|
+
id (str): Example: dsk-0123456789abcdef.
|
|
176
|
+
|
|
177
|
+
Raises:
|
|
178
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
179
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
180
|
+
|
|
181
|
+
Returns:
|
|
182
|
+
Union[BranchListApiResponse, ErrorResponse, str]
|
|
183
|
+
"""
|
|
184
|
+
|
|
185
|
+
return (
|
|
186
|
+
await asyncio_detailed(
|
|
187
|
+
id=id,
|
|
188
|
+
client=client,
|
|
189
|
+
)
|
|
190
|
+
).parsed
|
|
@@ -86,10 +86,14 @@ from .billing_summary import BillingSummary
|
|
|
86
86
|
from .billing_summary_actions import BillingSummaryActions
|
|
87
87
|
from .billing_summary_billing_mode import BillingSummaryBillingMode
|
|
88
88
|
from .billing_summary_plan import BillingSummaryPlan
|
|
89
|
+
from .branch_api_response import BranchApiResponse
|
|
90
|
+
from .branch_list_api_response import BranchListApiResponse
|
|
91
|
+
from .branch_response import BranchResponse
|
|
89
92
|
from .cloudflare_r2 import CloudflareR2
|
|
90
93
|
from .cloudflare_r2_type import CloudflareR2Type
|
|
91
94
|
from .connected_client import ConnectedClient
|
|
92
95
|
from .create_api_token_request import CreateApiTokenRequest
|
|
96
|
+
from .create_branch_request import CreateBranchRequest
|
|
93
97
|
from .create_disk_request import CreateDiskRequest
|
|
94
98
|
from .create_image_request import CreateImageRequest
|
|
95
99
|
from .create_sandbox_port_token_request import CreateSandboxPortTokenRequest
|
|
@@ -246,10 +250,14 @@ __all__ = (
|
|
|
246
250
|
"BillingSummaryActions",
|
|
247
251
|
"BillingSummaryBillingMode",
|
|
248
252
|
"BillingSummaryPlan",
|
|
253
|
+
"BranchApiResponse",
|
|
254
|
+
"BranchListApiResponse",
|
|
255
|
+
"BranchResponse",
|
|
249
256
|
"CloudflareR2",
|
|
250
257
|
"CloudflareR2Type",
|
|
251
258
|
"ConnectedClient",
|
|
252
259
|
"CreateApiTokenRequest",
|
|
260
|
+
"CreateBranchRequest",
|
|
253
261
|
"CreateDiskRequest",
|
|
254
262
|
"CreatedSandboxPortToken",
|
|
255
263
|
"CreateImageRequest",
|