archil-api-types 0.0.109__py3-none-any.whl
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_api_types/__init__.py +8 -0
- archil_api_types/api/__init__.py +1 -0
- archil_api_types/api/activity/__init__.py +1 -0
- archil_api_types/api/activity/list_activity.py +268 -0
- archil_api_types/api/api_tokens/__init__.py +1 -0
- archil_api_types/api/api_tokens/create_api_token.py +188 -0
- archil_api_types/api/api_tokens/delete_api_token.py +177 -0
- archil_api_types/api/api_tokens/list_api_tokens.py +193 -0
- archil_api_types/api/billing/__init__.py +1 -0
- archil_api_types/api/billing/cancel_billing_subscription.py +198 -0
- archil_api_types/api/billing/change_billing_subscription.py +211 -0
- archil_api_types/api/billing/create_billing_setup_intent.py +145 -0
- archil_api_types/api/billing/create_billing_subscription.py +216 -0
- archil_api_types/api/billing/delete_billing_payment_method.py +190 -0
- archil_api_types/api/billing/get_billing_credits.py +219 -0
- archil_api_types/api/billing/get_billing_invoice.py +249 -0
- archil_api_types/api/billing/get_billing_operation.py +190 -0
- archil_api_types/api/billing/get_billing_profile.py +138 -0
- archil_api_types/api/billing/get_billing_subscription.py +149 -0
- archil_api_types/api/billing/get_billing_summary.py +223 -0
- archil_api_types/api/billing/get_billing_usage.py +301 -0
- archil_api_types/api/billing/keep_billing_subscription.py +182 -0
- archil_api_types/api/billing/list_billing_invoices.py +206 -0
- archil_api_types/api/billing/list_billing_payment_methods.py +189 -0
- archil_api_types/api/billing/pay_billing_invoice.py +221 -0
- archil_api_types/api/billing/preview_billing_code.py +201 -0
- archil_api_types/api/billing/preview_billing_subscription.py +211 -0
- archil_api_types/api/billing/redeem_billing_code.py +206 -0
- archil_api_types/api/billing/set_billing_default_payment_method.py +201 -0
- archil_api_types/api/billing/update_billing_payment_method.py +200 -0
- archil_api_types/api/billing/update_billing_profile.py +177 -0
- archil_api_types/api/billing/withdraw_billing_scheduled_change.py +144 -0
- archil_api_types/api/disk_configuration/__init__.py +1 -0
- archil_api_types/api/disk_configuration/get_allowed_i_ps.py +181 -0
- archil_api_types/api/disk_configuration/get_sandbox_mount.py +177 -0
- archil_api_types/api/disk_configuration/list_delegations.py +189 -0
- archil_api_types/api/disk_configuration/revoke_all_delegations.py +182 -0
- archil_api_types/api/disk_configuration/revoke_delegation.py +208 -0
- archil_api_types/api/disk_configuration/set_allowed_i_ps.py +232 -0
- archil_api_types/api/disk_configuration/set_sandbox_mount.py +216 -0
- archil_api_types/api/disk_users/__init__.py +1 -0
- archil_api_types/api/disk_users/add_disk_user.py +231 -0
- archil_api_types/api/disk_users/remove_disk_user.py +228 -0
- archil_api_types/api/disks/__init__.py +1 -0
- archil_api_types/api/disks/cancel_exec.py +181 -0
- archil_api_types/api/disks/create_branch.py +265 -0
- archil_api_types/api/disks/create_disk.py +233 -0
- archil_api_types/api/disks/create_share_url.py +208 -0
- archil_api_types/api/disks/delete_disk.py +260 -0
- archil_api_types/api/disks/exec_.py +246 -0
- archil_api_types/api/disks/exec_disk.py +237 -0
- archil_api_types/api/disks/exec_stream.py +178 -0
- archil_api_types/api/disks/get_branch.py +192 -0
- archil_api_types/api/disks/get_checkpoint_diff.py +331 -0
- archil_api_types/api/disks/get_disk.py +182 -0
- archil_api_types/api/disks/get_disk_metrics.py +237 -0
- archil_api_types/api/disks/get_exec.py +211 -0
- archil_api_types/api/disks/grep_disk.py +296 -0
- archil_api_types/api/disks/list_branches.py +190 -0
- archil_api_types/api/disks/list_disks.py +242 -0
- archil_api_types/api/disks/prefetch_disk.py +229 -0
- archil_api_types/api/sandboxes/__init__.py +1 -0
- archil_api_types/api/sandboxes/create_image.py +273 -0
- archil_api_types/api/sandboxes/create_image_context.py +225 -0
- archil_api_types/api/sandboxes/create_sandbox.py +248 -0
- archil_api_types/api/sandboxes/create_sandbox_connection.py +203 -0
- archil_api_types/api/sandboxes/create_sandbox_port_token.py +221 -0
- archil_api_types/api/sandboxes/delete_sandbox.py +185 -0
- archil_api_types/api/sandboxes/delete_sandbox_port.py +199 -0
- archil_api_types/api/sandboxes/delete_sandbox_port_token.py +194 -0
- archil_api_types/api/sandboxes/expose_sandbox_port.py +202 -0
- archil_api_types/api/sandboxes/fork_sandbox.py +284 -0
- archil_api_types/api/sandboxes/get_image.py +185 -0
- archil_api_types/api/sandboxes/get_sandbox.py +170 -0
- archil_api_types/api/sandboxes/get_sandbox_network.py +183 -0
- archil_api_types/api/sandboxes/get_sandbox_port_token.py +192 -0
- archil_api_types/api/sandboxes/get_sandbox_usage.py +211 -0
- archil_api_types/api/sandboxes/list_sandbox_port_tokens.py +219 -0
- archil_api_types/api/sandboxes/list_sandbox_ports.py +178 -0
- archil_api_types/api/sandboxes/list_sandboxes.py +270 -0
- archil_api_types/api/sandboxes/pause_sandbox.py +218 -0
- archil_api_types/api/sandboxes/resume_sandbox.py +236 -0
- archil_api_types/api/sandboxes/set_sandbox_timeout.py +252 -0
- archil_api_types/api/sandboxes/start_sandbox.py +265 -0
- archil_api_types/api/sandboxes/stop_sandbox.py +210 -0
- archil_api_types/api/sandboxes/update_sandbox_network.py +280 -0
- archil_api_types/client.py +268 -0
- archil_api_types/errors.py +16 -0
- archil_api_types/models/__init__.py +583 -0
- archil_api_types/models/activity_event.py +119 -0
- archil_api_types/models/activity_event_details.py +47 -0
- archil_api_types/models/activity_event_level.py +10 -0
- archil_api_types/models/api_response_activity_list.py +93 -0
- archil_api_types/models/api_response_allowed_i_ps.py +73 -0
- archil_api_types/models/api_response_allowed_i_ps_data.py +65 -0
- archil_api_types/models/api_response_authorized_user.py +73 -0
- archil_api_types/models/api_response_billing_cancellation.py +73 -0
- archil_api_types/models/api_response_billing_credits.py +84 -0
- archil_api_types/models/api_response_billing_default_payment_method.py +73 -0
- archil_api_types/models/api_response_billing_default_payment_method_data.py +87 -0
- archil_api_types/models/api_response_billing_default_payment_method_data_scope.py +9 -0
- archil_api_types/models/api_response_billing_invoice_detail.py +73 -0
- archil_api_types/models/api_response_billing_invoices.py +92 -0
- archil_api_types/models/api_response_billing_method_removed.py +73 -0
- archil_api_types/models/api_response_billing_method_removed_data.py +67 -0
- archil_api_types/models/api_response_billing_operation.py +73 -0
- archil_api_types/models/api_response_billing_payment_method.py +73 -0
- archil_api_types/models/api_response_billing_payment_methods.py +92 -0
- archil_api_types/models/api_response_billing_profile.py +73 -0
- archil_api_types/models/api_response_billing_redeem_preview.py +73 -0
- archil_api_types/models/api_response_billing_redeem_preview_data.py +136 -0
- archil_api_types/models/api_response_billing_redeem_preview_data_kind.py +9 -0
- archil_api_types/models/api_response_billing_redeem_preview_data_lasts.py +70 -0
- archil_api_types/models/api_response_billing_redeem_preview_data_lasts_unit.py +11 -0
- archil_api_types/models/api_response_billing_redeem_preview_data_plans_item.py +77 -0
- archil_api_types/models/api_response_billing_redeem_preview_data_plans_item_plan.py +9 -0
- archil_api_types/models/api_response_billing_redeem_result.py +73 -0
- archil_api_types/models/api_response_billing_redeem_result_data.py +59 -0
- archil_api_types/models/api_response_billing_setup_intent.py +73 -0
- archil_api_types/models/api_response_billing_setup_intent_data.py +67 -0
- archil_api_types/models/api_response_billing_subscription.py +73 -0
- archil_api_types/models/api_response_billing_subscription_preview.py +73 -0
- archil_api_types/models/api_response_billing_subscription_state.py +73 -0
- archil_api_types/models/api_response_billing_summary.py +73 -0
- archil_api_types/models/api_response_billing_usage.py +73 -0
- archil_api_types/models/api_response_create_disk.py +73 -0
- archil_api_types/models/api_response_create_disk_data.py +84 -0
- archil_api_types/models/api_response_created_sandbox_port_token.py +73 -0
- archil_api_types/models/api_response_delegations.py +73 -0
- archil_api_types/models/api_response_delegations_data.py +73 -0
- archil_api_types/models/api_response_disk.py +73 -0
- archil_api_types/models/api_response_disk_list.py +104 -0
- archil_api_types/models/api_response_disk_metric_series.py +73 -0
- archil_api_types/models/api_response_empty.py +59 -0
- archil_api_types/models/api_response_exec.py +73 -0
- archil_api_types/models/api_response_exec_accepted.py +73 -0
- archil_api_types/models/api_response_exec_accepted_data.py +69 -0
- archil_api_types/models/api_response_exec_accepted_data_status.py +8 -0
- archil_api_types/models/api_response_exec_disk.py +73 -0
- archil_api_types/models/api_response_exec_status.py +73 -0
- archil_api_types/models/api_response_grep_disk.py +73 -0
- archil_api_types/models/api_response_image.py +73 -0
- archil_api_types/models/api_response_image_context_upload.py +73 -0
- archil_api_types/models/api_response_message.py +73 -0
- archil_api_types/models/api_response_message_data.py +59 -0
- archil_api_types/models/api_response_prefetch.py +73 -0
- archil_api_types/models/api_response_prefetch_data.py +73 -0
- archil_api_types/models/api_response_sandbox.py +73 -0
- archil_api_types/models/api_response_sandbox_connection.py +73 -0
- archil_api_types/models/api_response_sandbox_list.py +84 -0
- archil_api_types/models/api_response_sandbox_list_data.py +75 -0
- archil_api_types/models/api_response_sandbox_mount.py +73 -0
- archil_api_types/models/api_response_sandbox_mount_data.py +59 -0
- archil_api_types/models/api_response_sandbox_network.py +80 -0
- archil_api_types/models/api_response_sandbox_port.py +73 -0
- archil_api_types/models/api_response_sandbox_port_list.py +73 -0
- archil_api_types/models/api_response_sandbox_port_token.py +73 -0
- archil_api_types/models/api_response_sandbox_port_token_list.py +84 -0
- archil_api_types/models/api_response_sandbox_usage.py +73 -0
- archil_api_types/models/api_response_share_url.py +73 -0
- archil_api_types/models/api_response_share_url_data.py +67 -0
- archil_api_types/models/api_response_token_created.py +73 -0
- archil_api_types/models/api_response_token_created_data.py +138 -0
- archil_api_types/models/api_response_token_list.py +73 -0
- archil_api_types/models/api_response_token_list_data.py +75 -0
- archil_api_types/models/api_token_response.py +129 -0
- archil_api_types/models/authorized_user.py +221 -0
- archil_api_types/models/authorized_user_status.py +11 -0
- archil_api_types/models/authorized_user_type.py +10 -0
- archil_api_types/models/aws_sts_user.py +118 -0
- archil_api_types/models/aws_sts_user_type.py +8 -0
- archil_api_types/models/azure_blob_storage.py +124 -0
- archil_api_types/models/azure_blob_storage_type.py +8 -0
- archil_api_types/models/billing_active_discount.py +118 -0
- archil_api_types/models/billing_address.py +99 -0
- archil_api_types/models/billing_address_patch.py +85 -0
- archil_api_types/models/billing_balance_transaction.py +119 -0
- archil_api_types/models/billing_cancel_request.py +82 -0
- archil_api_types/models/billing_cancel_request_reason.py +57 -0
- archil_api_types/models/billing_cancel_request_reason_feedback.py +15 -0
- archil_api_types/models/billing_cancel_request_timing.py +8 -0
- archil_api_types/models/billing_cancellation.py +83 -0
- archil_api_types/models/billing_cancellation_settlement.py +110 -0
- archil_api_types/models/billing_cancellation_settlement_method.py +8 -0
- archil_api_types/models/billing_change_request.py +78 -0
- archil_api_types/models/billing_change_request_plan.py +9 -0
- archil_api_types/models/billing_change_request_timing.py +9 -0
- archil_api_types/models/billing_credit_grant.py +120 -0
- archil_api_types/models/billing_credit_note.py +123 -0
- archil_api_types/models/billing_credits.py +97 -0
- archil_api_types/models/billing_discount_terms.py +92 -0
- archil_api_types/models/billing_discount_terms_duration.py +71 -0
- archil_api_types/models/billing_discount_terms_duration_type.py +10 -0
- archil_api_types/models/billing_discount_terms_type.py +9 -0
- archil_api_types/models/billing_invoice_credit.py +67 -0
- archil_api_types/models/billing_invoice_detail.py +294 -0
- archil_api_types/models/billing_invoice_line.py +151 -0
- archil_api_types/models/billing_invoice_summary.py +159 -0
- archil_api_types/models/billing_invoice_tax.py +75 -0
- archil_api_types/models/billing_issued_invoice.py +81 -0
- archil_api_types/models/billing_issued_invoice_status.py +11 -0
- archil_api_types/models/billing_keep_request.py +41 -0
- archil_api_types/models/billing_line.py +138 -0
- archil_api_types/models/billing_line_type.py +11 -0
- archil_api_types/models/billing_next_action.py +82 -0
- archil_api_types/models/billing_next_action_type.py +10 -0
- archil_api_types/models/billing_operation.py +206 -0
- archil_api_types/models/billing_operation_failure.py +70 -0
- archil_api_types/models/billing_operation_invoice.py +83 -0
- archil_api_types/models/billing_operation_plan.py +12 -0
- archil_api_types/models/billing_operation_state.py +10 -0
- archil_api_types/models/billing_operation_status.py +13 -0
- archil_api_types/models/billing_operation_type.py +9 -0
- archil_api_types/models/billing_owner.py +69 -0
- archil_api_types/models/billing_owner_type.py +9 -0
- archil_api_types/models/billing_pay_invoice_request.py +52 -0
- archil_api_types/models/billing_payment_health.py +126 -0
- archil_api_types/models/billing_payment_health_status.py +12 -0
- archil_api_types/models/billing_payment_method.py +133 -0
- archil_api_types/models/billing_payment_method_billing_details.py +83 -0
- archil_api_types/models/billing_payment_method_card.py +83 -0
- archil_api_types/models/billing_period.py +67 -0
- archil_api_types/models/billing_preview_line.py +107 -0
- archil_api_types/models/billing_preview_request.py +84 -0
- archil_api_types/models/billing_preview_request_plan.py +9 -0
- archil_api_types/models/billing_preview_request_timing.py +9 -0
- archil_api_types/models/billing_profile.py +108 -0
- archil_api_types/models/billing_profile_billing_mode.py +9 -0
- archil_api_types/models/billing_profile_validation_error.py +91 -0
- archil_api_types/models/billing_profile_validation_error_code.py +8 -0
- archil_api_types/models/billing_profile_validation_error_data.py +67 -0
- archil_api_types/models/billing_profile_validation_error_data_field_errors.py +44 -0
- archil_api_types/models/billing_recurring_price.py +112 -0
- archil_api_types/models/billing_recurring_price_component.py +9 -0
- archil_api_types/models/billing_recurring_price_usage_type.py +9 -0
- archil_api_types/models/billing_redeem_request.py +59 -0
- archil_api_types/models/billing_scheduled_change.py +87 -0
- archil_api_types/models/billing_scheduled_change_target_plan.py +10 -0
- archil_api_types/models/billing_scheduled_change_type.py +9 -0
- archil_api_types/models/billing_state_conflict.py +100 -0
- archil_api_types/models/billing_subscribe_request.py +102 -0
- archil_api_types/models/billing_subscribe_request_plan.py +9 -0
- archil_api_types/models/billing_subscription.py +190 -0
- archil_api_types/models/billing_subscription_actions.py +123 -0
- archil_api_types/models/billing_subscription_billing_mode.py +9 -0
- archil_api_types/models/billing_subscription_plan.py +12 -0
- archil_api_types/models/billing_subscription_preview.py +237 -0
- archil_api_types/models/billing_subscription_preview_current_plan.py +13 -0
- archil_api_types/models/billing_subscription_preview_kind.py +11 -0
- archil_api_types/models/billing_subscription_preview_qualifications_item.py +12 -0
- archil_api_types/models/billing_subscription_preview_target_plan.py +9 -0
- archil_api_types/models/billing_subscription_preview_timing.py +9 -0
- archil_api_types/models/billing_subscription_state.py +131 -0
- archil_api_types/models/billing_subscription_state_plan.py +12 -0
- archil_api_types/models/billing_subscription_state_subscription_status.py +10 -0
- archil_api_types/models/billing_subscription_subscription_status.py +10 -0
- archil_api_types/models/billing_summary.py +177 -0
- archil_api_types/models/billing_summary_plan.py +67 -0
- archil_api_types/models/billing_summary_projection.py +69 -0
- archil_api_types/models/billing_usage.py +142 -0
- archil_api_types/models/billing_usage_granularity.py +9 -0
- archil_api_types/models/billing_usage_interval.py +89 -0
- archil_api_types/models/billing_usage_interval_features.py +57 -0
- archil_api_types/models/billing_usage_quantity.py +75 -0
- archil_api_types/models/billing_usage_rates_per_unit.py +47 -0
- archil_api_types/models/billing_usage_window.py +92 -0
- archil_api_types/models/billing_usage_window_features.py +57 -0
- archil_api_types/models/branch_api_response.py +73 -0
- archil_api_types/models/branch_list_api_response.py +81 -0
- archil_api_types/models/branch_response.py +102 -0
- archil_api_types/models/checkpoint_diff_api_response.py +73 -0
- archil_api_types/models/checkpoint_diff_entry.py +173 -0
- archil_api_types/models/checkpoint_diff_entry_change.py +12 -0
- archil_api_types/models/checkpoint_diff_entry_changed_item.py +10 -0
- archil_api_types/models/checkpoint_diff_entry_kind.py +11 -0
- archil_api_types/models/checkpoint_diff_page.py +84 -0
- archil_api_types/models/checkpoint_diff_side.py +82 -0
- archil_api_types/models/checkpoint_flush_backlog.py +72 -0
- archil_api_types/models/checkpoint_not_flushed_response.py +101 -0
- archil_api_types/models/cloudflare_r2.py +113 -0
- archil_api_types/models/cloudflare_r2_type.py +8 -0
- archil_api_types/models/connected_client.py +86 -0
- archil_api_types/models/create_api_token_request.py +82 -0
- archil_api_types/models/create_branch_request.py +80 -0
- archil_api_types/models/create_disk_request.py +262 -0
- archil_api_types/models/create_image_request.py +120 -0
- archil_api_types/models/create_sandbox_port_token_request.py +72 -0
- archil_api_types/models/create_sandbox_request.py +264 -0
- archil_api_types/models/create_sandbox_request_env.py +44 -0
- archil_api_types/models/create_share_url_request.py +70 -0
- archil_api_types/models/created_sandbox_port_token.py +111 -0
- archil_api_types/models/delegation_entry.py +96 -0
- archil_api_types/models/disk_metric_point.py +67 -0
- archil_api_types/models/disk_metric_series.py +97 -0
- archil_api_types/models/disk_metric_series_series.py +77 -0
- archil_api_types/models/disk_metrics.py +77 -0
- archil_api_types/models/disk_response.py +348 -0
- archil_api_types/models/disk_response_capabilities_item.py +8 -0
- archil_api_types/models/disk_response_status.py +12 -0
- archil_api_types/models/error_response.py +78 -0
- archil_api_types/models/exec_disk_request.py +147 -0
- archil_api_types/models/exec_disk_result.py +89 -0
- archil_api_types/models/exec_mount.py +123 -0
- archil_api_types/models/exec_network.py +81 -0
- archil_api_types/models/exec_request.py +180 -0
- archil_api_types/models/exec_request_disks.py +93 -0
- archil_api_types/models/exec_status.py +116 -0
- archil_api_types/models/exec_status_status.py +11 -0
- archil_api_types/models/exec_timing.py +80 -0
- archil_api_types/models/fork_sandbox_request.py +96 -0
- archil_api_types/models/get_billing_usage_for.py +13 -0
- archil_api_types/models/get_billing_usage_granularity.py +9 -0
- archil_api_types/models/google_cloud_storage.py +105 -0
- archil_api_types/models/google_cloud_storage_type.py +8 -0
- archil_api_types/models/grep_disk_request.py +216 -0
- archil_api_types/models/grep_disk_result.py +177 -0
- archil_api_types/models/grep_group.py +84 -0
- archil_api_types/models/grep_group_line.py +75 -0
- archil_api_types/models/grep_match.py +90 -0
- archil_api_types/models/grep_stopped_reason.py +12 -0
- archil_api_types/models/image.py +169 -0
- archil_api_types/models/image_context_request.py +67 -0
- archil_api_types/models/image_context_upload.py +110 -0
- archil_api_types/models/image_context_upload_upload_headers.py +44 -0
- archil_api_types/models/image_failure_reason.py +9 -0
- archil_api_types/models/image_state.py +10 -0
- archil_api_types/models/list_activity_level_item.py +10 -0
- archil_api_types/models/mount_config_response.py +96 -0
- archil_api_types/models/mount_response.py +177 -0
- archil_api_types/models/mount_response_access_mode.py +9 -0
- archil_api_types/models/mount_response_authorization_type.py +10 -0
- archil_api_types/models/mount_response_connection_status.py +9 -0
- archil_api_types/models/mount_response_type.py +12 -0
- archil_api_types/models/prefetch_range.py +60 -0
- archil_api_types/models/prefetch_range_result.py +95 -0
- archil_api_types/models/prefetch_range_result_error.py +9 -0
- archil_api_types/models/prefetch_request.py +54 -0
- archil_api_types/models/registry_auth.py +67 -0
- archil_api_types/models/remove_disk_user_user_type.py +10 -0
- archil_api_types/models/revoke_all_delegations_response_200.py +73 -0
- archil_api_types/models/revoke_all_delegations_response_200_data.py +67 -0
- archil_api_types/models/revoke_delegation_request.py +67 -0
- archil_api_types/models/root_attrs.py +88 -0
- archil_api_types/models/s3.py +116 -0
- archil_api_types/models/s3_compatible.py +113 -0
- archil_api_types/models/s3_compatible_type.py +8 -0
- archil_api_types/models/s3_type.py +8 -0
- archil_api_types/models/s3_user.py +114 -0
- archil_api_types/models/s3_user_type.py +8 -0
- archil_api_types/models/sandbox.py +325 -0
- archil_api_types/models/sandbox_connection.py +86 -0
- archil_api_types/models/sandbox_egress_policy.py +147 -0
- archil_api_types/models/sandbox_egress_rule.py +82 -0
- archil_api_types/models/sandbox_egress_transform.py +56 -0
- archil_api_types/models/sandbox_egress_transform_headers.py +44 -0
- archil_api_types/models/sandbox_endpoint.py +67 -0
- archil_api_types/models/sandbox_labels.py +47 -0
- archil_api_types/models/sandbox_mount.py +110 -0
- archil_api_types/models/sandbox_network.py +94 -0
- archil_api_types/models/sandbox_network_action.py +9 -0
- archil_api_types/models/sandbox_platform.py +9 -0
- archil_api_types/models/sandbox_port.py +67 -0
- archil_api_types/models/sandbox_port_list.py +73 -0
- archil_api_types/models/sandbox_port_token.py +95 -0
- archil_api_types/models/sandbox_port_token_list.py +73 -0
- archil_api_types/models/sandbox_state.py +17 -0
- archil_api_types/models/sandbox_timeout_action.py +9 -0
- archil_api_types/models/sandbox_timeout_request.py +52 -0
- archil_api_types/models/sandbox_usage.py +107 -0
- archil_api_types/models/sandbox_usage_rates.py +67 -0
- archil_api_types/models/set_allowed_i_ps_body.py +64 -0
- archil_api_types/models/set_billing_default_payment_method_body.py +49 -0
- archil_api_types/models/set_sandbox_mount_body.py +59 -0
- archil_api_types/models/start_sandbox_request.py +76 -0
- archil_api_types/models/token_user.py +141 -0
- archil_api_types/models/token_user_type.py +8 -0
- archil_api_types/models/update_billing_payment_method_body.py +62 -0
- archil_api_types/models/update_billing_profile_body.py +80 -0
- archil_api_types/process_pb2.py +88 -0
- archil_api_types/process_pb2.pyi +272 -0
- archil_api_types/py.typed +0 -0
- archil_api_types/types.py +54 -0
- archil_api_types-0.0.109.dist-info/METADATA +97 -0
- archil_api_types-0.0.109.dist-info/RECORD +385 -0
- archil_api_types-0.0.109.dist-info/WHEEL +4 -0
|
@@ -0,0 +1,219 @@
|
|
|
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_credits import ApiResponseBillingCredits
|
|
9
|
+
from ...models.error_response import ErrorResponse
|
|
10
|
+
from ...types import UNSET, Response, Unset
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def _get_kwargs(
|
|
14
|
+
*,
|
|
15
|
+
limit: Union[Unset, int] = 24,
|
|
16
|
+
cursor: Union[Unset, str] = UNSET,
|
|
17
|
+
) -> dict[str, Any]:
|
|
18
|
+
params: dict[str, Any] = {}
|
|
19
|
+
|
|
20
|
+
params["limit"] = limit
|
|
21
|
+
|
|
22
|
+
params["cursor"] = cursor
|
|
23
|
+
|
|
24
|
+
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
25
|
+
|
|
26
|
+
_kwargs: dict[str, Any] = {
|
|
27
|
+
"method": "get",
|
|
28
|
+
"url": "/api/billing/credits",
|
|
29
|
+
"params": params,
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
return _kwargs
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
def _parse_response(
|
|
36
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
37
|
+
) -> Optional[Union[ApiResponseBillingCredits, ErrorResponse]]:
|
|
38
|
+
if response.status_code == 200:
|
|
39
|
+
response_200 = ApiResponseBillingCredits.from_dict(response.json())
|
|
40
|
+
|
|
41
|
+
return response_200
|
|
42
|
+
|
|
43
|
+
if response.status_code == 400:
|
|
44
|
+
response_400 = ErrorResponse.from_dict(response.json())
|
|
45
|
+
|
|
46
|
+
return response_400
|
|
47
|
+
|
|
48
|
+
if response.status_code == 401:
|
|
49
|
+
response_401 = ErrorResponse.from_dict(response.json())
|
|
50
|
+
|
|
51
|
+
return response_401
|
|
52
|
+
|
|
53
|
+
if response.status_code == 409:
|
|
54
|
+
response_409 = ErrorResponse.from_dict(response.json())
|
|
55
|
+
|
|
56
|
+
return response_409
|
|
57
|
+
|
|
58
|
+
if response.status_code == 502:
|
|
59
|
+
response_502 = ErrorResponse.from_dict(response.json())
|
|
60
|
+
|
|
61
|
+
return response_502
|
|
62
|
+
|
|
63
|
+
if client.raise_on_unexpected_status:
|
|
64
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
65
|
+
else:
|
|
66
|
+
return None
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
def _build_response(
|
|
70
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
71
|
+
) -> Response[Union[ApiResponseBillingCredits, ErrorResponse]]:
|
|
72
|
+
return Response(
|
|
73
|
+
status_code=HTTPStatus(response.status_code),
|
|
74
|
+
content=response.content,
|
|
75
|
+
headers=response.headers,
|
|
76
|
+
parsed=_parse_response(client=client, response=response),
|
|
77
|
+
)
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
def sync_detailed(
|
|
81
|
+
*,
|
|
82
|
+
client: AuthenticatedClient,
|
|
83
|
+
limit: Union[Unset, int] = 24,
|
|
84
|
+
cursor: Union[Unset, str] = UNSET,
|
|
85
|
+
) -> Response[Union[ApiResponseBillingCredits, ErrorResponse]]:
|
|
86
|
+
"""Get the account credit balance
|
|
87
|
+
|
|
88
|
+
Deprecated: the plan's credit pool on `/api/billing/summary` replaces the Stripe customer balance,
|
|
89
|
+
and credit notes are on each invoice under `/api/billing/invoices/{invoiceID}`; this route goes once
|
|
90
|
+
the console no longer calls it. Returns the customer credit balance and one page of balance
|
|
91
|
+
transactions, newest first, such as credit notes applied to the balance. Pass nextCursor as cursor
|
|
92
|
+
to continue.
|
|
93
|
+
|
|
94
|
+
Args:
|
|
95
|
+
limit (Union[Unset, int]): Default: 24.
|
|
96
|
+
cursor (Union[Unset, str]):
|
|
97
|
+
|
|
98
|
+
Raises:
|
|
99
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
100
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
101
|
+
|
|
102
|
+
Returns:
|
|
103
|
+
Response[Union[ApiResponseBillingCredits, ErrorResponse]]
|
|
104
|
+
"""
|
|
105
|
+
|
|
106
|
+
kwargs = _get_kwargs(
|
|
107
|
+
limit=limit,
|
|
108
|
+
cursor=cursor,
|
|
109
|
+
)
|
|
110
|
+
|
|
111
|
+
response = client.get_httpx_client().request(
|
|
112
|
+
**kwargs,
|
|
113
|
+
)
|
|
114
|
+
|
|
115
|
+
return _build_response(client=client, response=response)
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
def sync(
|
|
119
|
+
*,
|
|
120
|
+
client: AuthenticatedClient,
|
|
121
|
+
limit: Union[Unset, int] = 24,
|
|
122
|
+
cursor: Union[Unset, str] = UNSET,
|
|
123
|
+
) -> Optional[Union[ApiResponseBillingCredits, ErrorResponse]]:
|
|
124
|
+
"""Get the account credit balance
|
|
125
|
+
|
|
126
|
+
Deprecated: the plan's credit pool on `/api/billing/summary` replaces the Stripe customer balance,
|
|
127
|
+
and credit notes are on each invoice under `/api/billing/invoices/{invoiceID}`; this route goes once
|
|
128
|
+
the console no longer calls it. Returns the customer credit balance and one page of balance
|
|
129
|
+
transactions, newest first, such as credit notes applied to the balance. Pass nextCursor as cursor
|
|
130
|
+
to continue.
|
|
131
|
+
|
|
132
|
+
Args:
|
|
133
|
+
limit (Union[Unset, int]): Default: 24.
|
|
134
|
+
cursor (Union[Unset, str]):
|
|
135
|
+
|
|
136
|
+
Raises:
|
|
137
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
138
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
139
|
+
|
|
140
|
+
Returns:
|
|
141
|
+
Union[ApiResponseBillingCredits, ErrorResponse]
|
|
142
|
+
"""
|
|
143
|
+
|
|
144
|
+
return sync_detailed(
|
|
145
|
+
client=client,
|
|
146
|
+
limit=limit,
|
|
147
|
+
cursor=cursor,
|
|
148
|
+
).parsed
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
async def asyncio_detailed(
|
|
152
|
+
*,
|
|
153
|
+
client: AuthenticatedClient,
|
|
154
|
+
limit: Union[Unset, int] = 24,
|
|
155
|
+
cursor: Union[Unset, str] = UNSET,
|
|
156
|
+
) -> Response[Union[ApiResponseBillingCredits, ErrorResponse]]:
|
|
157
|
+
"""Get the account credit balance
|
|
158
|
+
|
|
159
|
+
Deprecated: the plan's credit pool on `/api/billing/summary` replaces the Stripe customer balance,
|
|
160
|
+
and credit notes are on each invoice under `/api/billing/invoices/{invoiceID}`; this route goes once
|
|
161
|
+
the console no longer calls it. Returns the customer credit balance and one page of balance
|
|
162
|
+
transactions, newest first, such as credit notes applied to the balance. Pass nextCursor as cursor
|
|
163
|
+
to continue.
|
|
164
|
+
|
|
165
|
+
Args:
|
|
166
|
+
limit (Union[Unset, int]): Default: 24.
|
|
167
|
+
cursor (Union[Unset, str]):
|
|
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[ApiResponseBillingCredits, ErrorResponse]]
|
|
175
|
+
"""
|
|
176
|
+
|
|
177
|
+
kwargs = _get_kwargs(
|
|
178
|
+
limit=limit,
|
|
179
|
+
cursor=cursor,
|
|
180
|
+
)
|
|
181
|
+
|
|
182
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
183
|
+
|
|
184
|
+
return _build_response(client=client, response=response)
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
async def asyncio(
|
|
188
|
+
*,
|
|
189
|
+
client: AuthenticatedClient,
|
|
190
|
+
limit: Union[Unset, int] = 24,
|
|
191
|
+
cursor: Union[Unset, str] = UNSET,
|
|
192
|
+
) -> Optional[Union[ApiResponseBillingCredits, ErrorResponse]]:
|
|
193
|
+
"""Get the account credit balance
|
|
194
|
+
|
|
195
|
+
Deprecated: the plan's credit pool on `/api/billing/summary` replaces the Stripe customer balance,
|
|
196
|
+
and credit notes are on each invoice under `/api/billing/invoices/{invoiceID}`; this route goes once
|
|
197
|
+
the console no longer calls it. Returns the customer credit balance and one page of balance
|
|
198
|
+
transactions, newest first, such as credit notes applied to the balance. Pass nextCursor as cursor
|
|
199
|
+
to continue.
|
|
200
|
+
|
|
201
|
+
Args:
|
|
202
|
+
limit (Union[Unset, int]): Default: 24.
|
|
203
|
+
cursor (Union[Unset, str]):
|
|
204
|
+
|
|
205
|
+
Raises:
|
|
206
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
207
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
208
|
+
|
|
209
|
+
Returns:
|
|
210
|
+
Union[ApiResponseBillingCredits, ErrorResponse]
|
|
211
|
+
"""
|
|
212
|
+
|
|
213
|
+
return (
|
|
214
|
+
await asyncio_detailed(
|
|
215
|
+
client=client,
|
|
216
|
+
limit=limit,
|
|
217
|
+
cursor=cursor,
|
|
218
|
+
)
|
|
219
|
+
).parsed
|
|
@@ -0,0 +1,249 @@
|
|
|
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_invoice_detail import ApiResponseBillingInvoiceDetail
|
|
9
|
+
from ...models.error_response import ErrorResponse
|
|
10
|
+
from ...types import UNSET, Response, Unset
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def _get_kwargs(
|
|
14
|
+
invoice_id: str,
|
|
15
|
+
*,
|
|
16
|
+
limit: Union[Unset, int] = 24,
|
|
17
|
+
line_cursor: Union[Unset, str] = UNSET,
|
|
18
|
+
credit_note_cursor: Union[Unset, str] = UNSET,
|
|
19
|
+
) -> dict[str, Any]:
|
|
20
|
+
params: dict[str, Any] = {}
|
|
21
|
+
|
|
22
|
+
params["limit"] = limit
|
|
23
|
+
|
|
24
|
+
params["lineCursor"] = line_cursor
|
|
25
|
+
|
|
26
|
+
params["creditNoteCursor"] = credit_note_cursor
|
|
27
|
+
|
|
28
|
+
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
29
|
+
|
|
30
|
+
_kwargs: dict[str, Any] = {
|
|
31
|
+
"method": "get",
|
|
32
|
+
"url": "/api/billing/invoices/{invoice_id}".format(
|
|
33
|
+
invoice_id=invoice_id,
|
|
34
|
+
),
|
|
35
|
+
"params": params,
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
return _kwargs
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
def _parse_response(
|
|
42
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
43
|
+
) -> Optional[Union[ApiResponseBillingInvoiceDetail, ErrorResponse]]:
|
|
44
|
+
if response.status_code == 200:
|
|
45
|
+
response_200 = ApiResponseBillingInvoiceDetail.from_dict(response.json())
|
|
46
|
+
|
|
47
|
+
return response_200
|
|
48
|
+
|
|
49
|
+
if response.status_code == 400:
|
|
50
|
+
response_400 = ErrorResponse.from_dict(response.json())
|
|
51
|
+
|
|
52
|
+
return response_400
|
|
53
|
+
|
|
54
|
+
if response.status_code == 401:
|
|
55
|
+
response_401 = ErrorResponse.from_dict(response.json())
|
|
56
|
+
|
|
57
|
+
return response_401
|
|
58
|
+
|
|
59
|
+
if response.status_code == 404:
|
|
60
|
+
response_404 = ErrorResponse.from_dict(response.json())
|
|
61
|
+
|
|
62
|
+
return response_404
|
|
63
|
+
|
|
64
|
+
if response.status_code == 502:
|
|
65
|
+
response_502 = ErrorResponse.from_dict(response.json())
|
|
66
|
+
|
|
67
|
+
return response_502
|
|
68
|
+
|
|
69
|
+
if client.raise_on_unexpected_status:
|
|
70
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
71
|
+
else:
|
|
72
|
+
return None
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
def _build_response(
|
|
76
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
77
|
+
) -> Response[Union[ApiResponseBillingInvoiceDetail, ErrorResponse]]:
|
|
78
|
+
return Response(
|
|
79
|
+
status_code=HTTPStatus(response.status_code),
|
|
80
|
+
content=response.content,
|
|
81
|
+
headers=response.headers,
|
|
82
|
+
parsed=_parse_response(client=client, response=response),
|
|
83
|
+
)
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
def sync_detailed(
|
|
87
|
+
invoice_id: str,
|
|
88
|
+
*,
|
|
89
|
+
client: AuthenticatedClient,
|
|
90
|
+
limit: Union[Unset, int] = 24,
|
|
91
|
+
line_cursor: Union[Unset, str] = UNSET,
|
|
92
|
+
credit_note_cursor: Union[Unset, str] = UNSET,
|
|
93
|
+
) -> Response[Union[ApiResponseBillingInvoiceDetail, ErrorResponse]]:
|
|
94
|
+
"""Get invoice details and a PDF download link
|
|
95
|
+
|
|
96
|
+
Returns invoice details and an optional invoicePdf download link. Line items and credit notes are
|
|
97
|
+
paginated independently; limit applies to each section and defaults to 24, with values from 1 to 100
|
|
98
|
+
accepted. A true partialData value means at least one section has more items. To continue a section,
|
|
99
|
+
pass its lineNextCursor as lineCursor or its creditNoteNextCursor as creditNoteCursor. Retrieve a
|
|
100
|
+
new PDF link when needed rather than storing it for later use.
|
|
101
|
+
|
|
102
|
+
Args:
|
|
103
|
+
invoice_id (str):
|
|
104
|
+
limit (Union[Unset, int]): Default: 24.
|
|
105
|
+
line_cursor (Union[Unset, str]):
|
|
106
|
+
credit_note_cursor (Union[Unset, str]):
|
|
107
|
+
|
|
108
|
+
Raises:
|
|
109
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
110
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
111
|
+
|
|
112
|
+
Returns:
|
|
113
|
+
Response[Union[ApiResponseBillingInvoiceDetail, ErrorResponse]]
|
|
114
|
+
"""
|
|
115
|
+
|
|
116
|
+
kwargs = _get_kwargs(
|
|
117
|
+
invoice_id=invoice_id,
|
|
118
|
+
limit=limit,
|
|
119
|
+
line_cursor=line_cursor,
|
|
120
|
+
credit_note_cursor=credit_note_cursor,
|
|
121
|
+
)
|
|
122
|
+
|
|
123
|
+
response = client.get_httpx_client().request(
|
|
124
|
+
**kwargs,
|
|
125
|
+
)
|
|
126
|
+
|
|
127
|
+
return _build_response(client=client, response=response)
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
def sync(
|
|
131
|
+
invoice_id: str,
|
|
132
|
+
*,
|
|
133
|
+
client: AuthenticatedClient,
|
|
134
|
+
limit: Union[Unset, int] = 24,
|
|
135
|
+
line_cursor: Union[Unset, str] = UNSET,
|
|
136
|
+
credit_note_cursor: Union[Unset, str] = UNSET,
|
|
137
|
+
) -> Optional[Union[ApiResponseBillingInvoiceDetail, ErrorResponse]]:
|
|
138
|
+
"""Get invoice details and a PDF download link
|
|
139
|
+
|
|
140
|
+
Returns invoice details and an optional invoicePdf download link. Line items and credit notes are
|
|
141
|
+
paginated independently; limit applies to each section and defaults to 24, with values from 1 to 100
|
|
142
|
+
accepted. A true partialData value means at least one section has more items. To continue a section,
|
|
143
|
+
pass its lineNextCursor as lineCursor or its creditNoteNextCursor as creditNoteCursor. Retrieve a
|
|
144
|
+
new PDF link when needed rather than storing it for later use.
|
|
145
|
+
|
|
146
|
+
Args:
|
|
147
|
+
invoice_id (str):
|
|
148
|
+
limit (Union[Unset, int]): Default: 24.
|
|
149
|
+
line_cursor (Union[Unset, str]):
|
|
150
|
+
credit_note_cursor (Union[Unset, str]):
|
|
151
|
+
|
|
152
|
+
Raises:
|
|
153
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
154
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
155
|
+
|
|
156
|
+
Returns:
|
|
157
|
+
Union[ApiResponseBillingInvoiceDetail, ErrorResponse]
|
|
158
|
+
"""
|
|
159
|
+
|
|
160
|
+
return sync_detailed(
|
|
161
|
+
invoice_id=invoice_id,
|
|
162
|
+
client=client,
|
|
163
|
+
limit=limit,
|
|
164
|
+
line_cursor=line_cursor,
|
|
165
|
+
credit_note_cursor=credit_note_cursor,
|
|
166
|
+
).parsed
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
async def asyncio_detailed(
|
|
170
|
+
invoice_id: str,
|
|
171
|
+
*,
|
|
172
|
+
client: AuthenticatedClient,
|
|
173
|
+
limit: Union[Unset, int] = 24,
|
|
174
|
+
line_cursor: Union[Unset, str] = UNSET,
|
|
175
|
+
credit_note_cursor: Union[Unset, str] = UNSET,
|
|
176
|
+
) -> Response[Union[ApiResponseBillingInvoiceDetail, ErrorResponse]]:
|
|
177
|
+
"""Get invoice details and a PDF download link
|
|
178
|
+
|
|
179
|
+
Returns invoice details and an optional invoicePdf download link. Line items and credit notes are
|
|
180
|
+
paginated independently; limit applies to each section and defaults to 24, with values from 1 to 100
|
|
181
|
+
accepted. A true partialData value means at least one section has more items. To continue a section,
|
|
182
|
+
pass its lineNextCursor as lineCursor or its creditNoteNextCursor as creditNoteCursor. Retrieve a
|
|
183
|
+
new PDF link when needed rather than storing it for later use.
|
|
184
|
+
|
|
185
|
+
Args:
|
|
186
|
+
invoice_id (str):
|
|
187
|
+
limit (Union[Unset, int]): Default: 24.
|
|
188
|
+
line_cursor (Union[Unset, str]):
|
|
189
|
+
credit_note_cursor (Union[Unset, str]):
|
|
190
|
+
|
|
191
|
+
Raises:
|
|
192
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
193
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
194
|
+
|
|
195
|
+
Returns:
|
|
196
|
+
Response[Union[ApiResponseBillingInvoiceDetail, ErrorResponse]]
|
|
197
|
+
"""
|
|
198
|
+
|
|
199
|
+
kwargs = _get_kwargs(
|
|
200
|
+
invoice_id=invoice_id,
|
|
201
|
+
limit=limit,
|
|
202
|
+
line_cursor=line_cursor,
|
|
203
|
+
credit_note_cursor=credit_note_cursor,
|
|
204
|
+
)
|
|
205
|
+
|
|
206
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
207
|
+
|
|
208
|
+
return _build_response(client=client, response=response)
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
async def asyncio(
|
|
212
|
+
invoice_id: str,
|
|
213
|
+
*,
|
|
214
|
+
client: AuthenticatedClient,
|
|
215
|
+
limit: Union[Unset, int] = 24,
|
|
216
|
+
line_cursor: Union[Unset, str] = UNSET,
|
|
217
|
+
credit_note_cursor: Union[Unset, str] = UNSET,
|
|
218
|
+
) -> Optional[Union[ApiResponseBillingInvoiceDetail, ErrorResponse]]:
|
|
219
|
+
"""Get invoice details and a PDF download link
|
|
220
|
+
|
|
221
|
+
Returns invoice details and an optional invoicePdf download link. Line items and credit notes are
|
|
222
|
+
paginated independently; limit applies to each section and defaults to 24, with values from 1 to 100
|
|
223
|
+
accepted. A true partialData value means at least one section has more items. To continue a section,
|
|
224
|
+
pass its lineNextCursor as lineCursor or its creditNoteNextCursor as creditNoteCursor. Retrieve a
|
|
225
|
+
new PDF link when needed rather than storing it for later use.
|
|
226
|
+
|
|
227
|
+
Args:
|
|
228
|
+
invoice_id (str):
|
|
229
|
+
limit (Union[Unset, int]): Default: 24.
|
|
230
|
+
line_cursor (Union[Unset, str]):
|
|
231
|
+
credit_note_cursor (Union[Unset, str]):
|
|
232
|
+
|
|
233
|
+
Raises:
|
|
234
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
235
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
236
|
+
|
|
237
|
+
Returns:
|
|
238
|
+
Union[ApiResponseBillingInvoiceDetail, ErrorResponse]
|
|
239
|
+
"""
|
|
240
|
+
|
|
241
|
+
return (
|
|
242
|
+
await asyncio_detailed(
|
|
243
|
+
invoice_id=invoice_id,
|
|
244
|
+
client=client,
|
|
245
|
+
limit=limit,
|
|
246
|
+
line_cursor=line_cursor,
|
|
247
|
+
credit_note_cursor=credit_note_cursor,
|
|
248
|
+
)
|
|
249
|
+
).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.api_response_billing_operation import ApiResponseBillingOperation
|
|
9
|
+
from ...models.error_response import ErrorResponse
|
|
10
|
+
from ...types import Response
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def _get_kwargs(
|
|
14
|
+
operation_id: str,
|
|
15
|
+
) -> dict[str, Any]:
|
|
16
|
+
_kwargs: dict[str, Any] = {
|
|
17
|
+
"method": "get",
|
|
18
|
+
"url": "/api/billing/operations/{operation_id}".format(
|
|
19
|
+
operation_id=operation_id,
|
|
20
|
+
),
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
return _kwargs
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
def _parse_response(
|
|
27
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
28
|
+
) -> Optional[Union[ApiResponseBillingOperation, ErrorResponse]]:
|
|
29
|
+
if response.status_code == 200:
|
|
30
|
+
response_200 = ApiResponseBillingOperation.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 = ErrorResponse.from_dict(response.json())
|
|
41
|
+
|
|
42
|
+
return response_401
|
|
43
|
+
|
|
44
|
+
if response.status_code == 404:
|
|
45
|
+
response_404 = ErrorResponse.from_dict(response.json())
|
|
46
|
+
|
|
47
|
+
return response_404
|
|
48
|
+
|
|
49
|
+
if response.status_code == 502:
|
|
50
|
+
response_502 = ErrorResponse.from_dict(response.json())
|
|
51
|
+
|
|
52
|
+
return response_502
|
|
53
|
+
|
|
54
|
+
if client.raise_on_unexpected_status:
|
|
55
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
56
|
+
else:
|
|
57
|
+
return None
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
def _build_response(
|
|
61
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
62
|
+
) -> Response[Union[ApiResponseBillingOperation, ErrorResponse]]:
|
|
63
|
+
return Response(
|
|
64
|
+
status_code=HTTPStatus(response.status_code),
|
|
65
|
+
content=response.content,
|
|
66
|
+
headers=response.headers,
|
|
67
|
+
parsed=_parse_response(client=client, response=response),
|
|
68
|
+
)
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
def sync_detailed(
|
|
72
|
+
operation_id: str,
|
|
73
|
+
*,
|
|
74
|
+
client: AuthenticatedClient,
|
|
75
|
+
) -> Response[Union[ApiResponseBillingOperation, ErrorResponse]]:
|
|
76
|
+
"""Get the state of a billing operation
|
|
77
|
+
|
|
78
|
+
Recovers an operation after a refresh, timeout, or closed tab. The operation ID is the `id` returned
|
|
79
|
+
by subscribe, change, or pay. State is read live from the payment processor. If the original
|
|
80
|
+
request's response never arrived, retry that request with the same operationId instead.
|
|
81
|
+
|
|
82
|
+
Args:
|
|
83
|
+
operation_id (str):
|
|
84
|
+
|
|
85
|
+
Raises:
|
|
86
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
87
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
88
|
+
|
|
89
|
+
Returns:
|
|
90
|
+
Response[Union[ApiResponseBillingOperation, ErrorResponse]]
|
|
91
|
+
"""
|
|
92
|
+
|
|
93
|
+
kwargs = _get_kwargs(
|
|
94
|
+
operation_id=operation_id,
|
|
95
|
+
)
|
|
96
|
+
|
|
97
|
+
response = client.get_httpx_client().request(
|
|
98
|
+
**kwargs,
|
|
99
|
+
)
|
|
100
|
+
|
|
101
|
+
return _build_response(client=client, response=response)
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
def sync(
|
|
105
|
+
operation_id: str,
|
|
106
|
+
*,
|
|
107
|
+
client: AuthenticatedClient,
|
|
108
|
+
) -> Optional[Union[ApiResponseBillingOperation, ErrorResponse]]:
|
|
109
|
+
"""Get the state of a billing operation
|
|
110
|
+
|
|
111
|
+
Recovers an operation after a refresh, timeout, or closed tab. The operation ID is the `id` returned
|
|
112
|
+
by subscribe, change, or pay. State is read live from the payment processor. If the original
|
|
113
|
+
request's response never arrived, retry that request with the same operationId instead.
|
|
114
|
+
|
|
115
|
+
Args:
|
|
116
|
+
operation_id (str):
|
|
117
|
+
|
|
118
|
+
Raises:
|
|
119
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
120
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
121
|
+
|
|
122
|
+
Returns:
|
|
123
|
+
Union[ApiResponseBillingOperation, ErrorResponse]
|
|
124
|
+
"""
|
|
125
|
+
|
|
126
|
+
return sync_detailed(
|
|
127
|
+
operation_id=operation_id,
|
|
128
|
+
client=client,
|
|
129
|
+
).parsed
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
async def asyncio_detailed(
|
|
133
|
+
operation_id: str,
|
|
134
|
+
*,
|
|
135
|
+
client: AuthenticatedClient,
|
|
136
|
+
) -> Response[Union[ApiResponseBillingOperation, ErrorResponse]]:
|
|
137
|
+
"""Get the state of a billing operation
|
|
138
|
+
|
|
139
|
+
Recovers an operation after a refresh, timeout, or closed tab. The operation ID is the `id` returned
|
|
140
|
+
by subscribe, change, or pay. State is read live from the payment processor. If the original
|
|
141
|
+
request's response never arrived, retry that request with the same operationId instead.
|
|
142
|
+
|
|
143
|
+
Args:
|
|
144
|
+
operation_id (str):
|
|
145
|
+
|
|
146
|
+
Raises:
|
|
147
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
148
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
149
|
+
|
|
150
|
+
Returns:
|
|
151
|
+
Response[Union[ApiResponseBillingOperation, ErrorResponse]]
|
|
152
|
+
"""
|
|
153
|
+
|
|
154
|
+
kwargs = _get_kwargs(
|
|
155
|
+
operation_id=operation_id,
|
|
156
|
+
)
|
|
157
|
+
|
|
158
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
159
|
+
|
|
160
|
+
return _build_response(client=client, response=response)
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
async def asyncio(
|
|
164
|
+
operation_id: str,
|
|
165
|
+
*,
|
|
166
|
+
client: AuthenticatedClient,
|
|
167
|
+
) -> Optional[Union[ApiResponseBillingOperation, ErrorResponse]]:
|
|
168
|
+
"""Get the state of a billing operation
|
|
169
|
+
|
|
170
|
+
Recovers an operation after a refresh, timeout, or closed tab. The operation ID is the `id` returned
|
|
171
|
+
by subscribe, change, or pay. State is read live from the payment processor. If the original
|
|
172
|
+
request's response never arrived, retry that request with the same operationId instead.
|
|
173
|
+
|
|
174
|
+
Args:
|
|
175
|
+
operation_id (str):
|
|
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[ApiResponseBillingOperation, ErrorResponse]
|
|
183
|
+
"""
|
|
184
|
+
|
|
185
|
+
return (
|
|
186
|
+
await asyncio_detailed(
|
|
187
|
+
operation_id=operation_id,
|
|
188
|
+
client=client,
|
|
189
|
+
)
|
|
190
|
+
).parsed
|