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.
Files changed (385) hide show
  1. archil_api_types/__init__.py +8 -0
  2. archil_api_types/api/__init__.py +1 -0
  3. archil_api_types/api/activity/__init__.py +1 -0
  4. archil_api_types/api/activity/list_activity.py +268 -0
  5. archil_api_types/api/api_tokens/__init__.py +1 -0
  6. archil_api_types/api/api_tokens/create_api_token.py +188 -0
  7. archil_api_types/api/api_tokens/delete_api_token.py +177 -0
  8. archil_api_types/api/api_tokens/list_api_tokens.py +193 -0
  9. archil_api_types/api/billing/__init__.py +1 -0
  10. archil_api_types/api/billing/cancel_billing_subscription.py +198 -0
  11. archil_api_types/api/billing/change_billing_subscription.py +211 -0
  12. archil_api_types/api/billing/create_billing_setup_intent.py +145 -0
  13. archil_api_types/api/billing/create_billing_subscription.py +216 -0
  14. archil_api_types/api/billing/delete_billing_payment_method.py +190 -0
  15. archil_api_types/api/billing/get_billing_credits.py +219 -0
  16. archil_api_types/api/billing/get_billing_invoice.py +249 -0
  17. archil_api_types/api/billing/get_billing_operation.py +190 -0
  18. archil_api_types/api/billing/get_billing_profile.py +138 -0
  19. archil_api_types/api/billing/get_billing_subscription.py +149 -0
  20. archil_api_types/api/billing/get_billing_summary.py +223 -0
  21. archil_api_types/api/billing/get_billing_usage.py +301 -0
  22. archil_api_types/api/billing/keep_billing_subscription.py +182 -0
  23. archil_api_types/api/billing/list_billing_invoices.py +206 -0
  24. archil_api_types/api/billing/list_billing_payment_methods.py +189 -0
  25. archil_api_types/api/billing/pay_billing_invoice.py +221 -0
  26. archil_api_types/api/billing/preview_billing_code.py +201 -0
  27. archil_api_types/api/billing/preview_billing_subscription.py +211 -0
  28. archil_api_types/api/billing/redeem_billing_code.py +206 -0
  29. archil_api_types/api/billing/set_billing_default_payment_method.py +201 -0
  30. archil_api_types/api/billing/update_billing_payment_method.py +200 -0
  31. archil_api_types/api/billing/update_billing_profile.py +177 -0
  32. archil_api_types/api/billing/withdraw_billing_scheduled_change.py +144 -0
  33. archil_api_types/api/disk_configuration/__init__.py +1 -0
  34. archil_api_types/api/disk_configuration/get_allowed_i_ps.py +181 -0
  35. archil_api_types/api/disk_configuration/get_sandbox_mount.py +177 -0
  36. archil_api_types/api/disk_configuration/list_delegations.py +189 -0
  37. archil_api_types/api/disk_configuration/revoke_all_delegations.py +182 -0
  38. archil_api_types/api/disk_configuration/revoke_delegation.py +208 -0
  39. archil_api_types/api/disk_configuration/set_allowed_i_ps.py +232 -0
  40. archil_api_types/api/disk_configuration/set_sandbox_mount.py +216 -0
  41. archil_api_types/api/disk_users/__init__.py +1 -0
  42. archil_api_types/api/disk_users/add_disk_user.py +231 -0
  43. archil_api_types/api/disk_users/remove_disk_user.py +228 -0
  44. archil_api_types/api/disks/__init__.py +1 -0
  45. archil_api_types/api/disks/cancel_exec.py +181 -0
  46. archil_api_types/api/disks/create_branch.py +265 -0
  47. archil_api_types/api/disks/create_disk.py +233 -0
  48. archil_api_types/api/disks/create_share_url.py +208 -0
  49. archil_api_types/api/disks/delete_disk.py +260 -0
  50. archil_api_types/api/disks/exec_.py +246 -0
  51. archil_api_types/api/disks/exec_disk.py +237 -0
  52. archil_api_types/api/disks/exec_stream.py +178 -0
  53. archil_api_types/api/disks/get_branch.py +192 -0
  54. archil_api_types/api/disks/get_checkpoint_diff.py +331 -0
  55. archil_api_types/api/disks/get_disk.py +182 -0
  56. archil_api_types/api/disks/get_disk_metrics.py +237 -0
  57. archil_api_types/api/disks/get_exec.py +211 -0
  58. archil_api_types/api/disks/grep_disk.py +296 -0
  59. archil_api_types/api/disks/list_branches.py +190 -0
  60. archil_api_types/api/disks/list_disks.py +242 -0
  61. archil_api_types/api/disks/prefetch_disk.py +229 -0
  62. archil_api_types/api/sandboxes/__init__.py +1 -0
  63. archil_api_types/api/sandboxes/create_image.py +273 -0
  64. archil_api_types/api/sandboxes/create_image_context.py +225 -0
  65. archil_api_types/api/sandboxes/create_sandbox.py +248 -0
  66. archil_api_types/api/sandboxes/create_sandbox_connection.py +203 -0
  67. archil_api_types/api/sandboxes/create_sandbox_port_token.py +221 -0
  68. archil_api_types/api/sandboxes/delete_sandbox.py +185 -0
  69. archil_api_types/api/sandboxes/delete_sandbox_port.py +199 -0
  70. archil_api_types/api/sandboxes/delete_sandbox_port_token.py +194 -0
  71. archil_api_types/api/sandboxes/expose_sandbox_port.py +202 -0
  72. archil_api_types/api/sandboxes/fork_sandbox.py +284 -0
  73. archil_api_types/api/sandboxes/get_image.py +185 -0
  74. archil_api_types/api/sandboxes/get_sandbox.py +170 -0
  75. archil_api_types/api/sandboxes/get_sandbox_network.py +183 -0
  76. archil_api_types/api/sandboxes/get_sandbox_port_token.py +192 -0
  77. archil_api_types/api/sandboxes/get_sandbox_usage.py +211 -0
  78. archil_api_types/api/sandboxes/list_sandbox_port_tokens.py +219 -0
  79. archil_api_types/api/sandboxes/list_sandbox_ports.py +178 -0
  80. archil_api_types/api/sandboxes/list_sandboxes.py +270 -0
  81. archil_api_types/api/sandboxes/pause_sandbox.py +218 -0
  82. archil_api_types/api/sandboxes/resume_sandbox.py +236 -0
  83. archil_api_types/api/sandboxes/set_sandbox_timeout.py +252 -0
  84. archil_api_types/api/sandboxes/start_sandbox.py +265 -0
  85. archil_api_types/api/sandboxes/stop_sandbox.py +210 -0
  86. archil_api_types/api/sandboxes/update_sandbox_network.py +280 -0
  87. archil_api_types/client.py +268 -0
  88. archil_api_types/errors.py +16 -0
  89. archil_api_types/models/__init__.py +583 -0
  90. archil_api_types/models/activity_event.py +119 -0
  91. archil_api_types/models/activity_event_details.py +47 -0
  92. archil_api_types/models/activity_event_level.py +10 -0
  93. archil_api_types/models/api_response_activity_list.py +93 -0
  94. archil_api_types/models/api_response_allowed_i_ps.py +73 -0
  95. archil_api_types/models/api_response_allowed_i_ps_data.py +65 -0
  96. archil_api_types/models/api_response_authorized_user.py +73 -0
  97. archil_api_types/models/api_response_billing_cancellation.py +73 -0
  98. archil_api_types/models/api_response_billing_credits.py +84 -0
  99. archil_api_types/models/api_response_billing_default_payment_method.py +73 -0
  100. archil_api_types/models/api_response_billing_default_payment_method_data.py +87 -0
  101. archil_api_types/models/api_response_billing_default_payment_method_data_scope.py +9 -0
  102. archil_api_types/models/api_response_billing_invoice_detail.py +73 -0
  103. archil_api_types/models/api_response_billing_invoices.py +92 -0
  104. archil_api_types/models/api_response_billing_method_removed.py +73 -0
  105. archil_api_types/models/api_response_billing_method_removed_data.py +67 -0
  106. archil_api_types/models/api_response_billing_operation.py +73 -0
  107. archil_api_types/models/api_response_billing_payment_method.py +73 -0
  108. archil_api_types/models/api_response_billing_payment_methods.py +92 -0
  109. archil_api_types/models/api_response_billing_profile.py +73 -0
  110. archil_api_types/models/api_response_billing_redeem_preview.py +73 -0
  111. archil_api_types/models/api_response_billing_redeem_preview_data.py +136 -0
  112. archil_api_types/models/api_response_billing_redeem_preview_data_kind.py +9 -0
  113. archil_api_types/models/api_response_billing_redeem_preview_data_lasts.py +70 -0
  114. archil_api_types/models/api_response_billing_redeem_preview_data_lasts_unit.py +11 -0
  115. archil_api_types/models/api_response_billing_redeem_preview_data_plans_item.py +77 -0
  116. archil_api_types/models/api_response_billing_redeem_preview_data_plans_item_plan.py +9 -0
  117. archil_api_types/models/api_response_billing_redeem_result.py +73 -0
  118. archil_api_types/models/api_response_billing_redeem_result_data.py +59 -0
  119. archil_api_types/models/api_response_billing_setup_intent.py +73 -0
  120. archil_api_types/models/api_response_billing_setup_intent_data.py +67 -0
  121. archil_api_types/models/api_response_billing_subscription.py +73 -0
  122. archil_api_types/models/api_response_billing_subscription_preview.py +73 -0
  123. archil_api_types/models/api_response_billing_subscription_state.py +73 -0
  124. archil_api_types/models/api_response_billing_summary.py +73 -0
  125. archil_api_types/models/api_response_billing_usage.py +73 -0
  126. archil_api_types/models/api_response_create_disk.py +73 -0
  127. archil_api_types/models/api_response_create_disk_data.py +84 -0
  128. archil_api_types/models/api_response_created_sandbox_port_token.py +73 -0
  129. archil_api_types/models/api_response_delegations.py +73 -0
  130. archil_api_types/models/api_response_delegations_data.py +73 -0
  131. archil_api_types/models/api_response_disk.py +73 -0
  132. archil_api_types/models/api_response_disk_list.py +104 -0
  133. archil_api_types/models/api_response_disk_metric_series.py +73 -0
  134. archil_api_types/models/api_response_empty.py +59 -0
  135. archil_api_types/models/api_response_exec.py +73 -0
  136. archil_api_types/models/api_response_exec_accepted.py +73 -0
  137. archil_api_types/models/api_response_exec_accepted_data.py +69 -0
  138. archil_api_types/models/api_response_exec_accepted_data_status.py +8 -0
  139. archil_api_types/models/api_response_exec_disk.py +73 -0
  140. archil_api_types/models/api_response_exec_status.py +73 -0
  141. archil_api_types/models/api_response_grep_disk.py +73 -0
  142. archil_api_types/models/api_response_image.py +73 -0
  143. archil_api_types/models/api_response_image_context_upload.py +73 -0
  144. archil_api_types/models/api_response_message.py +73 -0
  145. archil_api_types/models/api_response_message_data.py +59 -0
  146. archil_api_types/models/api_response_prefetch.py +73 -0
  147. archil_api_types/models/api_response_prefetch_data.py +73 -0
  148. archil_api_types/models/api_response_sandbox.py +73 -0
  149. archil_api_types/models/api_response_sandbox_connection.py +73 -0
  150. archil_api_types/models/api_response_sandbox_list.py +84 -0
  151. archil_api_types/models/api_response_sandbox_list_data.py +75 -0
  152. archil_api_types/models/api_response_sandbox_mount.py +73 -0
  153. archil_api_types/models/api_response_sandbox_mount_data.py +59 -0
  154. archil_api_types/models/api_response_sandbox_network.py +80 -0
  155. archil_api_types/models/api_response_sandbox_port.py +73 -0
  156. archil_api_types/models/api_response_sandbox_port_list.py +73 -0
  157. archil_api_types/models/api_response_sandbox_port_token.py +73 -0
  158. archil_api_types/models/api_response_sandbox_port_token_list.py +84 -0
  159. archil_api_types/models/api_response_sandbox_usage.py +73 -0
  160. archil_api_types/models/api_response_share_url.py +73 -0
  161. archil_api_types/models/api_response_share_url_data.py +67 -0
  162. archil_api_types/models/api_response_token_created.py +73 -0
  163. archil_api_types/models/api_response_token_created_data.py +138 -0
  164. archil_api_types/models/api_response_token_list.py +73 -0
  165. archil_api_types/models/api_response_token_list_data.py +75 -0
  166. archil_api_types/models/api_token_response.py +129 -0
  167. archil_api_types/models/authorized_user.py +221 -0
  168. archil_api_types/models/authorized_user_status.py +11 -0
  169. archil_api_types/models/authorized_user_type.py +10 -0
  170. archil_api_types/models/aws_sts_user.py +118 -0
  171. archil_api_types/models/aws_sts_user_type.py +8 -0
  172. archil_api_types/models/azure_blob_storage.py +124 -0
  173. archil_api_types/models/azure_blob_storage_type.py +8 -0
  174. archil_api_types/models/billing_active_discount.py +118 -0
  175. archil_api_types/models/billing_address.py +99 -0
  176. archil_api_types/models/billing_address_patch.py +85 -0
  177. archil_api_types/models/billing_balance_transaction.py +119 -0
  178. archil_api_types/models/billing_cancel_request.py +82 -0
  179. archil_api_types/models/billing_cancel_request_reason.py +57 -0
  180. archil_api_types/models/billing_cancel_request_reason_feedback.py +15 -0
  181. archil_api_types/models/billing_cancel_request_timing.py +8 -0
  182. archil_api_types/models/billing_cancellation.py +83 -0
  183. archil_api_types/models/billing_cancellation_settlement.py +110 -0
  184. archil_api_types/models/billing_cancellation_settlement_method.py +8 -0
  185. archil_api_types/models/billing_change_request.py +78 -0
  186. archil_api_types/models/billing_change_request_plan.py +9 -0
  187. archil_api_types/models/billing_change_request_timing.py +9 -0
  188. archil_api_types/models/billing_credit_grant.py +120 -0
  189. archil_api_types/models/billing_credit_note.py +123 -0
  190. archil_api_types/models/billing_credits.py +97 -0
  191. archil_api_types/models/billing_discount_terms.py +92 -0
  192. archil_api_types/models/billing_discount_terms_duration.py +71 -0
  193. archil_api_types/models/billing_discount_terms_duration_type.py +10 -0
  194. archil_api_types/models/billing_discount_terms_type.py +9 -0
  195. archil_api_types/models/billing_invoice_credit.py +67 -0
  196. archil_api_types/models/billing_invoice_detail.py +294 -0
  197. archil_api_types/models/billing_invoice_line.py +151 -0
  198. archil_api_types/models/billing_invoice_summary.py +159 -0
  199. archil_api_types/models/billing_invoice_tax.py +75 -0
  200. archil_api_types/models/billing_issued_invoice.py +81 -0
  201. archil_api_types/models/billing_issued_invoice_status.py +11 -0
  202. archil_api_types/models/billing_keep_request.py +41 -0
  203. archil_api_types/models/billing_line.py +138 -0
  204. archil_api_types/models/billing_line_type.py +11 -0
  205. archil_api_types/models/billing_next_action.py +82 -0
  206. archil_api_types/models/billing_next_action_type.py +10 -0
  207. archil_api_types/models/billing_operation.py +206 -0
  208. archil_api_types/models/billing_operation_failure.py +70 -0
  209. archil_api_types/models/billing_operation_invoice.py +83 -0
  210. archil_api_types/models/billing_operation_plan.py +12 -0
  211. archil_api_types/models/billing_operation_state.py +10 -0
  212. archil_api_types/models/billing_operation_status.py +13 -0
  213. archil_api_types/models/billing_operation_type.py +9 -0
  214. archil_api_types/models/billing_owner.py +69 -0
  215. archil_api_types/models/billing_owner_type.py +9 -0
  216. archil_api_types/models/billing_pay_invoice_request.py +52 -0
  217. archil_api_types/models/billing_payment_health.py +126 -0
  218. archil_api_types/models/billing_payment_health_status.py +12 -0
  219. archil_api_types/models/billing_payment_method.py +133 -0
  220. archil_api_types/models/billing_payment_method_billing_details.py +83 -0
  221. archil_api_types/models/billing_payment_method_card.py +83 -0
  222. archil_api_types/models/billing_period.py +67 -0
  223. archil_api_types/models/billing_preview_line.py +107 -0
  224. archil_api_types/models/billing_preview_request.py +84 -0
  225. archil_api_types/models/billing_preview_request_plan.py +9 -0
  226. archil_api_types/models/billing_preview_request_timing.py +9 -0
  227. archil_api_types/models/billing_profile.py +108 -0
  228. archil_api_types/models/billing_profile_billing_mode.py +9 -0
  229. archil_api_types/models/billing_profile_validation_error.py +91 -0
  230. archil_api_types/models/billing_profile_validation_error_code.py +8 -0
  231. archil_api_types/models/billing_profile_validation_error_data.py +67 -0
  232. archil_api_types/models/billing_profile_validation_error_data_field_errors.py +44 -0
  233. archil_api_types/models/billing_recurring_price.py +112 -0
  234. archil_api_types/models/billing_recurring_price_component.py +9 -0
  235. archil_api_types/models/billing_recurring_price_usage_type.py +9 -0
  236. archil_api_types/models/billing_redeem_request.py +59 -0
  237. archil_api_types/models/billing_scheduled_change.py +87 -0
  238. archil_api_types/models/billing_scheduled_change_target_plan.py +10 -0
  239. archil_api_types/models/billing_scheduled_change_type.py +9 -0
  240. archil_api_types/models/billing_state_conflict.py +100 -0
  241. archil_api_types/models/billing_subscribe_request.py +102 -0
  242. archil_api_types/models/billing_subscribe_request_plan.py +9 -0
  243. archil_api_types/models/billing_subscription.py +190 -0
  244. archil_api_types/models/billing_subscription_actions.py +123 -0
  245. archil_api_types/models/billing_subscription_billing_mode.py +9 -0
  246. archil_api_types/models/billing_subscription_plan.py +12 -0
  247. archil_api_types/models/billing_subscription_preview.py +237 -0
  248. archil_api_types/models/billing_subscription_preview_current_plan.py +13 -0
  249. archil_api_types/models/billing_subscription_preview_kind.py +11 -0
  250. archil_api_types/models/billing_subscription_preview_qualifications_item.py +12 -0
  251. archil_api_types/models/billing_subscription_preview_target_plan.py +9 -0
  252. archil_api_types/models/billing_subscription_preview_timing.py +9 -0
  253. archil_api_types/models/billing_subscription_state.py +131 -0
  254. archil_api_types/models/billing_subscription_state_plan.py +12 -0
  255. archil_api_types/models/billing_subscription_state_subscription_status.py +10 -0
  256. archil_api_types/models/billing_subscription_subscription_status.py +10 -0
  257. archil_api_types/models/billing_summary.py +177 -0
  258. archil_api_types/models/billing_summary_plan.py +67 -0
  259. archil_api_types/models/billing_summary_projection.py +69 -0
  260. archil_api_types/models/billing_usage.py +142 -0
  261. archil_api_types/models/billing_usage_granularity.py +9 -0
  262. archil_api_types/models/billing_usage_interval.py +89 -0
  263. archil_api_types/models/billing_usage_interval_features.py +57 -0
  264. archil_api_types/models/billing_usage_quantity.py +75 -0
  265. archil_api_types/models/billing_usage_rates_per_unit.py +47 -0
  266. archil_api_types/models/billing_usage_window.py +92 -0
  267. archil_api_types/models/billing_usage_window_features.py +57 -0
  268. archil_api_types/models/branch_api_response.py +73 -0
  269. archil_api_types/models/branch_list_api_response.py +81 -0
  270. archil_api_types/models/branch_response.py +102 -0
  271. archil_api_types/models/checkpoint_diff_api_response.py +73 -0
  272. archil_api_types/models/checkpoint_diff_entry.py +173 -0
  273. archil_api_types/models/checkpoint_diff_entry_change.py +12 -0
  274. archil_api_types/models/checkpoint_diff_entry_changed_item.py +10 -0
  275. archil_api_types/models/checkpoint_diff_entry_kind.py +11 -0
  276. archil_api_types/models/checkpoint_diff_page.py +84 -0
  277. archil_api_types/models/checkpoint_diff_side.py +82 -0
  278. archil_api_types/models/checkpoint_flush_backlog.py +72 -0
  279. archil_api_types/models/checkpoint_not_flushed_response.py +101 -0
  280. archil_api_types/models/cloudflare_r2.py +113 -0
  281. archil_api_types/models/cloudflare_r2_type.py +8 -0
  282. archil_api_types/models/connected_client.py +86 -0
  283. archil_api_types/models/create_api_token_request.py +82 -0
  284. archil_api_types/models/create_branch_request.py +80 -0
  285. archil_api_types/models/create_disk_request.py +262 -0
  286. archil_api_types/models/create_image_request.py +120 -0
  287. archil_api_types/models/create_sandbox_port_token_request.py +72 -0
  288. archil_api_types/models/create_sandbox_request.py +264 -0
  289. archil_api_types/models/create_sandbox_request_env.py +44 -0
  290. archil_api_types/models/create_share_url_request.py +70 -0
  291. archil_api_types/models/created_sandbox_port_token.py +111 -0
  292. archil_api_types/models/delegation_entry.py +96 -0
  293. archil_api_types/models/disk_metric_point.py +67 -0
  294. archil_api_types/models/disk_metric_series.py +97 -0
  295. archil_api_types/models/disk_metric_series_series.py +77 -0
  296. archil_api_types/models/disk_metrics.py +77 -0
  297. archil_api_types/models/disk_response.py +348 -0
  298. archil_api_types/models/disk_response_capabilities_item.py +8 -0
  299. archil_api_types/models/disk_response_status.py +12 -0
  300. archil_api_types/models/error_response.py +78 -0
  301. archil_api_types/models/exec_disk_request.py +147 -0
  302. archil_api_types/models/exec_disk_result.py +89 -0
  303. archil_api_types/models/exec_mount.py +123 -0
  304. archil_api_types/models/exec_network.py +81 -0
  305. archil_api_types/models/exec_request.py +180 -0
  306. archil_api_types/models/exec_request_disks.py +93 -0
  307. archil_api_types/models/exec_status.py +116 -0
  308. archil_api_types/models/exec_status_status.py +11 -0
  309. archil_api_types/models/exec_timing.py +80 -0
  310. archil_api_types/models/fork_sandbox_request.py +96 -0
  311. archil_api_types/models/get_billing_usage_for.py +13 -0
  312. archil_api_types/models/get_billing_usage_granularity.py +9 -0
  313. archil_api_types/models/google_cloud_storage.py +105 -0
  314. archil_api_types/models/google_cloud_storage_type.py +8 -0
  315. archil_api_types/models/grep_disk_request.py +216 -0
  316. archil_api_types/models/grep_disk_result.py +177 -0
  317. archil_api_types/models/grep_group.py +84 -0
  318. archil_api_types/models/grep_group_line.py +75 -0
  319. archil_api_types/models/grep_match.py +90 -0
  320. archil_api_types/models/grep_stopped_reason.py +12 -0
  321. archil_api_types/models/image.py +169 -0
  322. archil_api_types/models/image_context_request.py +67 -0
  323. archil_api_types/models/image_context_upload.py +110 -0
  324. archil_api_types/models/image_context_upload_upload_headers.py +44 -0
  325. archil_api_types/models/image_failure_reason.py +9 -0
  326. archil_api_types/models/image_state.py +10 -0
  327. archil_api_types/models/list_activity_level_item.py +10 -0
  328. archil_api_types/models/mount_config_response.py +96 -0
  329. archil_api_types/models/mount_response.py +177 -0
  330. archil_api_types/models/mount_response_access_mode.py +9 -0
  331. archil_api_types/models/mount_response_authorization_type.py +10 -0
  332. archil_api_types/models/mount_response_connection_status.py +9 -0
  333. archil_api_types/models/mount_response_type.py +12 -0
  334. archil_api_types/models/prefetch_range.py +60 -0
  335. archil_api_types/models/prefetch_range_result.py +95 -0
  336. archil_api_types/models/prefetch_range_result_error.py +9 -0
  337. archil_api_types/models/prefetch_request.py +54 -0
  338. archil_api_types/models/registry_auth.py +67 -0
  339. archil_api_types/models/remove_disk_user_user_type.py +10 -0
  340. archil_api_types/models/revoke_all_delegations_response_200.py +73 -0
  341. archil_api_types/models/revoke_all_delegations_response_200_data.py +67 -0
  342. archil_api_types/models/revoke_delegation_request.py +67 -0
  343. archil_api_types/models/root_attrs.py +88 -0
  344. archil_api_types/models/s3.py +116 -0
  345. archil_api_types/models/s3_compatible.py +113 -0
  346. archil_api_types/models/s3_compatible_type.py +8 -0
  347. archil_api_types/models/s3_type.py +8 -0
  348. archil_api_types/models/s3_user.py +114 -0
  349. archil_api_types/models/s3_user_type.py +8 -0
  350. archil_api_types/models/sandbox.py +325 -0
  351. archil_api_types/models/sandbox_connection.py +86 -0
  352. archil_api_types/models/sandbox_egress_policy.py +147 -0
  353. archil_api_types/models/sandbox_egress_rule.py +82 -0
  354. archil_api_types/models/sandbox_egress_transform.py +56 -0
  355. archil_api_types/models/sandbox_egress_transform_headers.py +44 -0
  356. archil_api_types/models/sandbox_endpoint.py +67 -0
  357. archil_api_types/models/sandbox_labels.py +47 -0
  358. archil_api_types/models/sandbox_mount.py +110 -0
  359. archil_api_types/models/sandbox_network.py +94 -0
  360. archil_api_types/models/sandbox_network_action.py +9 -0
  361. archil_api_types/models/sandbox_platform.py +9 -0
  362. archil_api_types/models/sandbox_port.py +67 -0
  363. archil_api_types/models/sandbox_port_list.py +73 -0
  364. archil_api_types/models/sandbox_port_token.py +95 -0
  365. archil_api_types/models/sandbox_port_token_list.py +73 -0
  366. archil_api_types/models/sandbox_state.py +17 -0
  367. archil_api_types/models/sandbox_timeout_action.py +9 -0
  368. archil_api_types/models/sandbox_timeout_request.py +52 -0
  369. archil_api_types/models/sandbox_usage.py +107 -0
  370. archil_api_types/models/sandbox_usage_rates.py +67 -0
  371. archil_api_types/models/set_allowed_i_ps_body.py +64 -0
  372. archil_api_types/models/set_billing_default_payment_method_body.py +49 -0
  373. archil_api_types/models/set_sandbox_mount_body.py +59 -0
  374. archil_api_types/models/start_sandbox_request.py +76 -0
  375. archil_api_types/models/token_user.py +141 -0
  376. archil_api_types/models/token_user_type.py +8 -0
  377. archil_api_types/models/update_billing_payment_method_body.py +62 -0
  378. archil_api_types/models/update_billing_profile_body.py +80 -0
  379. archil_api_types/process_pb2.py +88 -0
  380. archil_api_types/process_pb2.pyi +272 -0
  381. archil_api_types/py.typed +0 -0
  382. archil_api_types/types.py +54 -0
  383. archil_api_types-0.0.109.dist-info/METADATA +97 -0
  384. archil_api_types-0.0.109.dist-info/RECORD +385 -0
  385. archil_api_types-0.0.109.dist-info/WHEEL +4 -0
@@ -0,0 +1,145 @@
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_setup_intent import ApiResponseBillingSetupIntent
9
+ from ...models.error_response import ErrorResponse
10
+ from ...types import Response
11
+
12
+
13
+ def _get_kwargs() -> dict[str, Any]:
14
+ _kwargs: dict[str, Any] = {
15
+ "method": "post",
16
+ "url": "/api/billing/setup-intents",
17
+ }
18
+
19
+ return _kwargs
20
+
21
+
22
+ def _parse_response(
23
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
24
+ ) -> Optional[Union[ApiResponseBillingSetupIntent, ErrorResponse, str]]:
25
+ if response.status_code == 200:
26
+ response_200 = ApiResponseBillingSetupIntent.from_dict(response.json())
27
+
28
+ return response_200
29
+
30
+ if response.status_code == 401:
31
+ response_401 = response.text
32
+ return response_401
33
+
34
+ if response.status_code == 502:
35
+ response_502 = ErrorResponse.from_dict(response.json())
36
+
37
+ return response_502
38
+
39
+ if client.raise_on_unexpected_status:
40
+ raise errors.UnexpectedStatus(response.status_code, response.content)
41
+ else:
42
+ return None
43
+
44
+
45
+ def _build_response(
46
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
47
+ ) -> Response[Union[ApiResponseBillingSetupIntent, ErrorResponse, str]]:
48
+ return Response(
49
+ status_code=HTTPStatus(response.status_code),
50
+ content=response.content,
51
+ headers=response.headers,
52
+ parsed=_parse_response(client=client, response=response),
53
+ )
54
+
55
+
56
+ def sync_detailed(
57
+ *,
58
+ client: AuthenticatedClient,
59
+ ) -> Response[Union[ApiResponseBillingSetupIntent, ErrorResponse, str]]:
60
+ """Start card setup
61
+
62
+ Use the returned clientSecret to confirm card details in the client's payment form.
63
+
64
+ Raises:
65
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
66
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
67
+
68
+ Returns:
69
+ Response[Union[ApiResponseBillingSetupIntent, ErrorResponse, str]]
70
+ """
71
+
72
+ kwargs = _get_kwargs()
73
+
74
+ response = client.get_httpx_client().request(
75
+ **kwargs,
76
+ )
77
+
78
+ return _build_response(client=client, response=response)
79
+
80
+
81
+ def sync(
82
+ *,
83
+ client: AuthenticatedClient,
84
+ ) -> Optional[Union[ApiResponseBillingSetupIntent, ErrorResponse, str]]:
85
+ """Start card setup
86
+
87
+ Use the returned clientSecret to confirm card details in the client's payment form.
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
+ Union[ApiResponseBillingSetupIntent, ErrorResponse, str]
95
+ """
96
+
97
+ return sync_detailed(
98
+ client=client,
99
+ ).parsed
100
+
101
+
102
+ async def asyncio_detailed(
103
+ *,
104
+ client: AuthenticatedClient,
105
+ ) -> Response[Union[ApiResponseBillingSetupIntent, ErrorResponse, str]]:
106
+ """Start card setup
107
+
108
+ Use the returned clientSecret to confirm card details in the client's payment form.
109
+
110
+ Raises:
111
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
112
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
113
+
114
+ Returns:
115
+ Response[Union[ApiResponseBillingSetupIntent, ErrorResponse, str]]
116
+ """
117
+
118
+ kwargs = _get_kwargs()
119
+
120
+ response = await client.get_async_httpx_client().request(**kwargs)
121
+
122
+ return _build_response(client=client, response=response)
123
+
124
+
125
+ async def asyncio(
126
+ *,
127
+ client: AuthenticatedClient,
128
+ ) -> Optional[Union[ApiResponseBillingSetupIntent, ErrorResponse, str]]:
129
+ """Start card setup
130
+
131
+ Use the returned clientSecret to confirm card details in the client's payment form.
132
+
133
+ Raises:
134
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
135
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
136
+
137
+ Returns:
138
+ Union[ApiResponseBillingSetupIntent, ErrorResponse, str]
139
+ """
140
+
141
+ return (
142
+ await asyncio_detailed(
143
+ client=client,
144
+ )
145
+ ).parsed
@@ -0,0 +1,216 @@
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.billing_state_conflict import BillingStateConflict
10
+ from ...models.billing_subscribe_request import BillingSubscribeRequest
11
+ from ...models.error_response import ErrorResponse
12
+ from ...types import Response
13
+
14
+
15
+ def _get_kwargs(
16
+ *,
17
+ body: BillingSubscribeRequest,
18
+ ) -> dict[str, Any]:
19
+ headers: dict[str, Any] = {}
20
+
21
+ _kwargs: dict[str, Any] = {
22
+ "method": "post",
23
+ "url": "/api/billing/subscriptions",
24
+ }
25
+
26
+ _kwargs["json"] = body.to_dict()
27
+
28
+ headers["Content-Type"] = "application/json"
29
+
30
+ _kwargs["headers"] = headers
31
+ return _kwargs
32
+
33
+
34
+ def _parse_response(
35
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
36
+ ) -> Optional[Union[ApiResponseBillingOperation, BillingStateConflict, ErrorResponse]]:
37
+ if response.status_code == 200:
38
+ response_200 = ApiResponseBillingOperation.from_dict(response.json())
39
+
40
+ return response_200
41
+
42
+ if response.status_code == 400:
43
+ response_400 = ErrorResponse.from_dict(response.json())
44
+
45
+ return response_400
46
+
47
+ if response.status_code == 401:
48
+ response_401 = ErrorResponse.from_dict(response.json())
49
+
50
+ return response_401
51
+
52
+ if response.status_code == 404:
53
+ response_404 = ErrorResponse.from_dict(response.json())
54
+
55
+ return response_404
56
+
57
+ if response.status_code == 409:
58
+ response_409 = BillingStateConflict.from_dict(response.json())
59
+
60
+ return response_409
61
+
62
+ if response.status_code == 502:
63
+ response_502 = ErrorResponse.from_dict(response.json())
64
+
65
+ return response_502
66
+
67
+ if response.status_code == 503:
68
+ response_503 = ErrorResponse.from_dict(response.json())
69
+
70
+ return response_503
71
+
72
+ if client.raise_on_unexpected_status:
73
+ raise errors.UnexpectedStatus(response.status_code, response.content)
74
+ else:
75
+ return None
76
+
77
+
78
+ def _build_response(
79
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
80
+ ) -> Response[Union[ApiResponseBillingOperation, BillingStateConflict, ErrorResponse]]:
81
+ return Response(
82
+ status_code=HTTPStatus(response.status_code),
83
+ content=response.content,
84
+ headers=response.headers,
85
+ parsed=_parse_response(client=client, response=response),
86
+ )
87
+
88
+
89
+ def sync_detailed(
90
+ *,
91
+ client: AuthenticatedClient,
92
+ body: BillingSubscribeRequest,
93
+ ) -> Response[Union[ApiResponseBillingOperation, BillingStateConflict, ErrorResponse]]:
94
+ """Subscribe to a previewed plan
95
+
96
+ Subscribes to a plan at current prices. Pass a saved paymentMethodId or a completed setupIntentId to
97
+ charge it; omit both to receive a confirmation secret for entering a new payment method. Retrying
98
+ with the same operationId returns the same operation instead of starting another purchase, and an
99
+ unfinished purchase for the same plan is resumed. Accounts that already have a subscription use POST
100
+ /api/billing/subscription/change.
101
+
102
+ Args:
103
+ body (BillingSubscribeRequest):
104
+
105
+ Raises:
106
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
107
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
108
+
109
+ Returns:
110
+ Response[Union[ApiResponseBillingOperation, BillingStateConflict, ErrorResponse]]
111
+ """
112
+
113
+ kwargs = _get_kwargs(
114
+ body=body,
115
+ )
116
+
117
+ response = client.get_httpx_client().request(
118
+ **kwargs,
119
+ )
120
+
121
+ return _build_response(client=client, response=response)
122
+
123
+
124
+ def sync(
125
+ *,
126
+ client: AuthenticatedClient,
127
+ body: BillingSubscribeRequest,
128
+ ) -> Optional[Union[ApiResponseBillingOperation, BillingStateConflict, ErrorResponse]]:
129
+ """Subscribe to a previewed plan
130
+
131
+ Subscribes to a plan at current prices. Pass a saved paymentMethodId or a completed setupIntentId to
132
+ charge it; omit both to receive a confirmation secret for entering a new payment method. Retrying
133
+ with the same operationId returns the same operation instead of starting another purchase, and an
134
+ unfinished purchase for the same plan is resumed. Accounts that already have a subscription use POST
135
+ /api/billing/subscription/change.
136
+
137
+ Args:
138
+ body (BillingSubscribeRequest):
139
+
140
+ Raises:
141
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
142
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
143
+
144
+ Returns:
145
+ Union[ApiResponseBillingOperation, BillingStateConflict, ErrorResponse]
146
+ """
147
+
148
+ return sync_detailed(
149
+ client=client,
150
+ body=body,
151
+ ).parsed
152
+
153
+
154
+ async def asyncio_detailed(
155
+ *,
156
+ client: AuthenticatedClient,
157
+ body: BillingSubscribeRequest,
158
+ ) -> Response[Union[ApiResponseBillingOperation, BillingStateConflict, ErrorResponse]]:
159
+ """Subscribe to a previewed plan
160
+
161
+ Subscribes to a plan at current prices. Pass a saved paymentMethodId or a completed setupIntentId to
162
+ charge it; omit both to receive a confirmation secret for entering a new payment method. Retrying
163
+ with the same operationId returns the same operation instead of starting another purchase, and an
164
+ unfinished purchase for the same plan is resumed. Accounts that already have a subscription use POST
165
+ /api/billing/subscription/change.
166
+
167
+ Args:
168
+ body (BillingSubscribeRequest):
169
+
170
+ Raises:
171
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
172
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
173
+
174
+ Returns:
175
+ Response[Union[ApiResponseBillingOperation, BillingStateConflict, ErrorResponse]]
176
+ """
177
+
178
+ kwargs = _get_kwargs(
179
+ body=body,
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
+ body: BillingSubscribeRequest,
191
+ ) -> Optional[Union[ApiResponseBillingOperation, BillingStateConflict, ErrorResponse]]:
192
+ """Subscribe to a previewed plan
193
+
194
+ Subscribes to a plan at current prices. Pass a saved paymentMethodId or a completed setupIntentId to
195
+ charge it; omit both to receive a confirmation secret for entering a new payment method. Retrying
196
+ with the same operationId returns the same operation instead of starting another purchase, and an
197
+ unfinished purchase for the same plan is resumed. Accounts that already have a subscription use POST
198
+ /api/billing/subscription/change.
199
+
200
+ Args:
201
+ body (BillingSubscribeRequest):
202
+
203
+ Raises:
204
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
205
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
206
+
207
+ Returns:
208
+ Union[ApiResponseBillingOperation, BillingStateConflict, ErrorResponse]
209
+ """
210
+
211
+ return (
212
+ await asyncio_detailed(
213
+ client=client,
214
+ body=body,
215
+ )
216
+ ).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_method_removed import ApiResponseBillingMethodRemoved
9
+ from ...models.error_response import ErrorResponse
10
+ from ...types import Response
11
+
12
+
13
+ def _get_kwargs(
14
+ payment_method_id: str,
15
+ ) -> dict[str, Any]:
16
+ _kwargs: dict[str, Any] = {
17
+ "method": "delete",
18
+ "url": "/api/billing/payment-methods/{payment_method_id}".format(
19
+ payment_method_id=payment_method_id,
20
+ ),
21
+ }
22
+
23
+ return _kwargs
24
+
25
+
26
+ def _parse_response(
27
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
28
+ ) -> Optional[Union[ApiResponseBillingMethodRemoved, ErrorResponse, str]]:
29
+ if response.status_code == 200:
30
+ response_200 = ApiResponseBillingMethodRemoved.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 == 409:
49
+ response_409 = ErrorResponse.from_dict(response.json())
50
+
51
+ return response_409
52
+
53
+ if response.status_code == 502:
54
+ response_502 = ErrorResponse.from_dict(response.json())
55
+
56
+ return response_502
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[ApiResponseBillingMethodRemoved, 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
+ payment_method_id: str,
77
+ *,
78
+ client: AuthenticatedClient,
79
+ ) -> Response[Union[ApiResponseBillingMethodRemoved, ErrorResponse, str]]:
80
+ """Delete a saved payment method
81
+
82
+ Deletes the saved payment method from the Archil account. To use the same card again, add it as a
83
+ new payment method.
84
+
85
+ Args:
86
+ payment_method_id (str):
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[ApiResponseBillingMethodRemoved, ErrorResponse, str]]
94
+ """
95
+
96
+ kwargs = _get_kwargs(
97
+ payment_method_id=payment_method_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
+ payment_method_id: str,
109
+ *,
110
+ client: AuthenticatedClient,
111
+ ) -> Optional[Union[ApiResponseBillingMethodRemoved, ErrorResponse, str]]:
112
+ """Delete a saved payment method
113
+
114
+ Deletes the saved payment method from the Archil account. To use the same card again, add it as a
115
+ new payment method.
116
+
117
+ Args:
118
+ payment_method_id (str):
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[ApiResponseBillingMethodRemoved, ErrorResponse, str]
126
+ """
127
+
128
+ return sync_detailed(
129
+ payment_method_id=payment_method_id,
130
+ client=client,
131
+ ).parsed
132
+
133
+
134
+ async def asyncio_detailed(
135
+ payment_method_id: str,
136
+ *,
137
+ client: AuthenticatedClient,
138
+ ) -> Response[Union[ApiResponseBillingMethodRemoved, ErrorResponse, str]]:
139
+ """Delete a saved payment method
140
+
141
+ Deletes the saved payment method from the Archil account. To use the same card again, add it as a
142
+ new payment method.
143
+
144
+ Args:
145
+ payment_method_id (str):
146
+
147
+ Raises:
148
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
149
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
150
+
151
+ Returns:
152
+ Response[Union[ApiResponseBillingMethodRemoved, ErrorResponse, str]]
153
+ """
154
+
155
+ kwargs = _get_kwargs(
156
+ payment_method_id=payment_method_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
+ payment_method_id: str,
166
+ *,
167
+ client: AuthenticatedClient,
168
+ ) -> Optional[Union[ApiResponseBillingMethodRemoved, ErrorResponse, str]]:
169
+ """Delete a saved payment method
170
+
171
+ Deletes the saved payment method from the Archil account. To use the same card again, add it as a
172
+ new payment method.
173
+
174
+ Args:
175
+ payment_method_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[ApiResponseBillingMethodRemoved, ErrorResponse, str]
183
+ """
184
+
185
+ return (
186
+ await asyncio_detailed(
187
+ payment_method_id=payment_method_id,
188
+ client=client,
189
+ )
190
+ ).parsed