northrays 0.1.0__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 (711) hide show
  1. northrays/__init__.py +245 -0
  2. northrays/_async/__init__.py +2 -0
  3. northrays/_async/code_interpreter.py +302 -0
  4. northrays/_async/computer_use.py +930 -0
  5. northrays/_async/filesystem.py +1240 -0
  6. northrays/_async/git.py +391 -0
  7. northrays/_async/lsp_server.py +256 -0
  8. northrays/_async/northrays.py +819 -0
  9. northrays/_async/object_storage.py +190 -0
  10. northrays/_async/process.py +781 -0
  11. northrays/_async/sandbox.py +904 -0
  12. northrays/_async/snapshot.py +262 -0
  13. northrays/_async/volume.py +94 -0
  14. northrays/_sync/__init__.py +2 -0
  15. northrays/_sync/code_interpreter.py +271 -0
  16. northrays/_sync/computer_use.py +929 -0
  17. northrays/_sync/filesystem.py +1063 -0
  18. northrays/_sync/git.py +389 -0
  19. northrays/_sync/lsp_server.py +256 -0
  20. northrays/_sync/northrays.py +704 -0
  21. northrays/_sync/object_storage.py +184 -0
  22. northrays/_sync/process.py +778 -0
  23. northrays/_sync/sandbox.py +919 -0
  24. northrays/_sync/snapshot.py +262 -0
  25. northrays/_sync/volume.py +94 -0
  26. northrays/_utils/__init__.py +2 -0
  27. northrays/_utils/deprecation.py +95 -0
  28. northrays/_utils/docs_ignore.py +11 -0
  29. northrays/_utils/enum.py +27 -0
  30. northrays/_utils/env.py +38 -0
  31. northrays/_utils/environment.py +23 -0
  32. northrays/_utils/errors.py +298 -0
  33. northrays/_utils/otel_decorator.py +331 -0
  34. northrays/_utils/stream.py +368 -0
  35. northrays/_utils/timeout.py +484 -0
  36. northrays/_utils/types.py +16 -0
  37. northrays/common/__init__.py +2 -0
  38. northrays/common/charts.py +118 -0
  39. northrays/common/code_interpreter.py +44 -0
  40. northrays/common/computer_use.py +44 -0
  41. northrays/common/errors.py +187 -0
  42. northrays/common/file_transfer.py +69 -0
  43. northrays/common/filesystem.py +177 -0
  44. northrays/common/git.py +13 -0
  45. northrays/common/image.py +700 -0
  46. northrays/common/lsp_server.py +45 -0
  47. northrays/common/northrays.py +202 -0
  48. northrays/common/process.py +140 -0
  49. northrays/common/protocols.py +14 -0
  50. northrays/common/pty.py +65 -0
  51. northrays/common/sandbox.py +99 -0
  52. northrays/common/snapshot.py +84 -0
  53. northrays/common/volume.py +39 -0
  54. northrays/handle/async_pty_handle.py +323 -0
  55. northrays/handle/pty_handle.py +341 -0
  56. northrays/internal/__init__.py +2 -0
  57. northrays/internal/api_client_proxy.py +22 -0
  58. northrays/internal/http_client.py +99 -0
  59. northrays/internal/pool_tracker.py +44 -0
  60. northrays/internal/shared_session.py +262 -0
  61. northrays/internal/toolbox_api_client_proxy.py +114 -0
  62. northrays/internal/urllib3_retry.py +53 -0
  63. northrays/py.typed +0 -0
  64. northrays-0.1.0.dist-info/METADATA +211 -0
  65. northrays-0.1.0.dist-info/RECORD +711 -0
  66. northrays-0.1.0.dist-info/WHEEL +5 -0
  67. northrays-0.1.0.dist-info/licenses/LICENSE +191 -0
  68. northrays-0.1.0.dist-info/licenses/NOTICE +46 -0
  69. northrays-0.1.0.dist-info/top_level.txt +5 -0
  70. northrays_api_client/__init__.py +684 -0
  71. northrays_api_client/api/__init__.py +64 -0
  72. northrays_api_client/api/admin_api.py +5998 -0
  73. northrays_api_client/api/api_keys_api.py +1672 -0
  74. northrays_api_client/api/audit_api.py +402 -0
  75. northrays_api_client/api/config_api.py +278 -0
  76. northrays_api_client/api/docker_registry_api.py +1707 -0
  77. northrays_api_client/api/health_api.py +517 -0
  78. northrays_api_client/api/jobs_api.py +1185 -0
  79. northrays_api_client/api/object_storage_api.py +298 -0
  80. northrays_api_client/api/organizations_api.py +10857 -0
  81. northrays_api_client/api/preview_api.py +1104 -0
  82. northrays_api_client/api/regions_api.py +279 -0
  83. northrays_api_client/api/runners_api.py +2987 -0
  84. northrays_api_client/api/sandbox_api.py +12813 -0
  85. northrays_api_client/api/snapshots_api.py +2331 -0
  86. northrays_api_client/api/toolbox_api.py +20758 -0
  87. northrays_api_client/api/users_api.py +1304 -0
  88. northrays_api_client/api/volumes_api.py +1421 -0
  89. northrays_api_client/api/webhooks_api.py +1135 -0
  90. northrays_api_client/api_client.py +810 -0
  91. northrays_api_client/api_response.py +21 -0
  92. northrays_api_client/configuration.py +607 -0
  93. northrays_api_client/exceptions.py +219 -0
  94. northrays_api_client/models/__init__.py +405 -0
  95. northrays_api_client/models/account_provider.py +105 -0
  96. northrays_api_client/models/admin_create_runner.py +131 -0
  97. northrays_api_client/models/admin_get_webhook_status200_response.py +103 -0
  98. northrays_api_client/models/announcement.py +105 -0
  99. northrays_api_client/models/api_key_list.py +126 -0
  100. northrays_api_client/models/api_key_response.py +117 -0
  101. northrays_api_client/models/audit_log.py +134 -0
  102. northrays_api_client/models/build_info.py +112 -0
  103. northrays_api_client/models/command.py +107 -0
  104. northrays_api_client/models/completion_context.py +105 -0
  105. northrays_api_client/models/completion_item.py +115 -0
  106. northrays_api_client/models/completion_list.py +113 -0
  107. northrays_api_client/models/compressed_screenshot_response.py +107 -0
  108. northrays_api_client/models/computer_use_start_response.py +105 -0
  109. northrays_api_client/models/computer_use_status_response.py +103 -0
  110. northrays_api_client/models/computer_use_stop_response.py +105 -0
  111. northrays_api_client/models/create_api_key.py +113 -0
  112. northrays_api_client/models/create_build_info.py +105 -0
  113. northrays_api_client/models/create_docker_registry.py +111 -0
  114. northrays_api_client/models/create_linked_account.py +105 -0
  115. northrays_api_client/models/create_organization.py +105 -0
  116. northrays_api_client/models/create_organization_invitation.py +110 -0
  117. northrays_api_client/models/create_organization_quota.py +119 -0
  118. northrays_api_client/models/create_organization_region_quota.py +169 -0
  119. northrays_api_client/models/create_organization_role.py +107 -0
  120. northrays_api_client/models/create_region.py +124 -0
  121. northrays_api_client/models/create_region_response.py +131 -0
  122. northrays_api_client/models/create_runner.py +107 -0
  123. northrays_api_client/models/create_runner_response.py +105 -0
  124. northrays_api_client/models/create_sandbox.py +156 -0
  125. northrays_api_client/models/create_sandbox_snapshot.py +105 -0
  126. northrays_api_client/models/create_session_request.py +103 -0
  127. northrays_api_client/models/create_snapshot.py +129 -0
  128. northrays_api_client/models/create_user.py +119 -0
  129. northrays_api_client/models/create_volume.py +103 -0
  130. northrays_api_client/models/display_info_response.py +103 -0
  131. northrays_api_client/models/docker_registry.py +118 -0
  132. northrays_api_client/models/download_files.py +103 -0
  133. northrays_api_client/models/execute_request.py +107 -0
  134. northrays_api_client/models/execute_response.py +105 -0
  135. northrays_api_client/models/file_info.py +117 -0
  136. northrays_api_client/models/file_status.py +109 -0
  137. northrays_api_client/models/fork_sandbox.py +103 -0
  138. northrays_api_client/models/git_add_request.py +105 -0
  139. northrays_api_client/models/git_branch_request.py +105 -0
  140. northrays_api_client/models/git_checkout_request.py +105 -0
  141. northrays_api_client/models/git_clone_request.py +113 -0
  142. northrays_api_client/models/git_commit_info.py +111 -0
  143. northrays_api_client/models/git_commit_request.py +111 -0
  144. northrays_api_client/models/git_commit_response.py +103 -0
  145. northrays_api_client/models/git_delete_branch_request.py +105 -0
  146. northrays_api_client/models/git_repo_request.py +107 -0
  147. northrays_api_client/models/git_status.py +119 -0
  148. northrays_api_client/models/gpu_type.py +43 -0
  149. northrays_api_client/models/health_controller_check200_response.py +156 -0
  150. northrays_api_client/models/health_controller_check200_response_info_value.py +103 -0
  151. northrays_api_client/models/health_controller_check503_response.py +156 -0
  152. northrays_api_client/models/job.py +123 -0
  153. northrays_api_client/models/job_status.py +45 -0
  154. northrays_api_client/models/job_type.py +56 -0
  155. northrays_api_client/models/keyboard_hotkey_request.py +103 -0
  156. northrays_api_client/models/keyboard_press_request.py +105 -0
  157. northrays_api_client/models/keyboard_type_request.py +105 -0
  158. northrays_api_client/models/list_branch_response.py +103 -0
  159. northrays_api_client/models/list_sandboxes_response.py +118 -0
  160. northrays_api_client/models/log_entry.py +119 -0
  161. northrays_api_client/models/lsp_completion_params.py +119 -0
  162. northrays_api_client/models/lsp_document_request.py +107 -0
  163. northrays_api_client/models/lsp_location.py +109 -0
  164. northrays_api_client/models/lsp_server_request.py +105 -0
  165. northrays_api_client/models/lsp_symbol.py +111 -0
  166. northrays_api_client/models/match.py +107 -0
  167. northrays_api_client/models/metric_data_point.py +105 -0
  168. northrays_api_client/models/metric_series.py +113 -0
  169. northrays_api_client/models/metrics_response.py +111 -0
  170. northrays_api_client/models/mouse_click_request.py +109 -0
  171. northrays_api_client/models/mouse_click_response.py +105 -0
  172. northrays_api_client/models/mouse_drag_request.py +111 -0
  173. northrays_api_client/models/mouse_drag_response.py +105 -0
  174. northrays_api_client/models/mouse_move_request.py +105 -0
  175. northrays_api_client/models/mouse_move_response.py +105 -0
  176. northrays_api_client/models/mouse_position.py +105 -0
  177. northrays_api_client/models/mouse_scroll_request.py +109 -0
  178. northrays_api_client/models/mouse_scroll_response.py +103 -0
  179. northrays_api_client/models/northrays_configuration.py +162 -0
  180. northrays_api_client/models/oidc_config.py +107 -0
  181. northrays_api_client/models/organization.py +191 -0
  182. northrays_api_client/models/organization_invitation.py +132 -0
  183. northrays_api_client/models/organization_role.py +116 -0
  184. northrays_api_client/models/organization_sandbox_default_limited_network_egress.py +103 -0
  185. northrays_api_client/models/organization_suspension.py +109 -0
  186. northrays_api_client/models/organization_usage_overview.py +119 -0
  187. northrays_api_client/models/organization_user.py +126 -0
  188. northrays_api_client/models/otel_config.py +110 -0
  189. northrays_api_client/models/paginated_audit_logs.py +119 -0
  190. northrays_api_client/models/paginated_jobs.py +117 -0
  191. northrays_api_client/models/paginated_logs.py +117 -0
  192. northrays_api_client/models/paginated_sandboxes_deprecated.py +117 -0
  193. northrays_api_client/models/paginated_snapshots.py +117 -0
  194. northrays_api_client/models/paginated_traces.py +117 -0
  195. northrays_api_client/models/poll_jobs_response.py +111 -0
  196. northrays_api_client/models/port_preview_url.py +107 -0
  197. northrays_api_client/models/position.py +105 -0
  198. northrays_api_client/models/posthog_config.py +105 -0
  199. northrays_api_client/models/process_errors_response.py +105 -0
  200. northrays_api_client/models/process_logs_response.py +105 -0
  201. northrays_api_client/models/process_restart_response.py +105 -0
  202. northrays_api_client/models/process_status_response.py +105 -0
  203. northrays_api_client/models/project_dir_response.py +103 -0
  204. northrays_api_client/models/pty_create_request.py +113 -0
  205. northrays_api_client/models/pty_create_response.py +103 -0
  206. northrays_api_client/models/pty_list_response.py +111 -0
  207. northrays_api_client/models/pty_resize_request.py +105 -0
  208. northrays_api_client/models/pty_session_info.py +117 -0
  209. northrays_api_client/models/range.py +112 -0
  210. northrays_api_client/models/rate_limit_config.py +122 -0
  211. northrays_api_client/models/rate_limit_entry.py +105 -0
  212. northrays_api_client/models/regenerate_api_key_response.py +103 -0
  213. northrays_api_client/models/region.py +140 -0
  214. northrays_api_client/models/region_quota.py +168 -0
  215. northrays_api_client/models/region_screenshot_response.py +107 -0
  216. northrays_api_client/models/region_type.py +44 -0
  217. northrays_api_client/models/region_usage_overview.py +174 -0
  218. northrays_api_client/models/registry_push_access_dto.py +113 -0
  219. northrays_api_client/models/replace_request.py +107 -0
  220. northrays_api_client/models/replace_result.py +107 -0
  221. northrays_api_client/models/resize_sandbox.py +108 -0
  222. northrays_api_client/models/runner.py +166 -0
  223. northrays_api_client/models/runner_class.py +42 -0
  224. northrays_api_client/models/runner_full.py +171 -0
  225. northrays_api_client/models/runner_health_metrics.py +129 -0
  226. northrays_api_client/models/runner_healthcheck.py +125 -0
  227. northrays_api_client/models/runner_service_health.py +107 -0
  228. northrays_api_client/models/runner_snapshot_dto.py +107 -0
  229. northrays_api_client/models/runner_state.py +46 -0
  230. northrays_api_client/models/sandbox.py +188 -0
  231. northrays_api_client/models/sandbox_class.py +45 -0
  232. northrays_api_client/models/sandbox_desired_state.py +47 -0
  233. northrays_api_client/models/sandbox_labels.py +103 -0
  234. northrays_api_client/models/sandbox_list_item.py +161 -0
  235. northrays_api_client/models/sandbox_list_sort_direction.py +43 -0
  236. northrays_api_client/models/sandbox_list_sort_field.py +47 -0
  237. northrays_api_client/models/sandbox_state.py +63 -0
  238. northrays_api_client/models/sandbox_volume.py +107 -0
  239. northrays_api_client/models/screenshot_response.py +107 -0
  240. northrays_api_client/models/search_files_response.py +103 -0
  241. northrays_api_client/models/send_webhook_dto.py +108 -0
  242. northrays_api_client/models/session.py +118 -0
  243. northrays_api_client/models/session_execute_request.py +107 -0
  244. northrays_api_client/models/session_execute_response.py +107 -0
  245. northrays_api_client/models/set_snapshot_general_status_dto.py +103 -0
  246. northrays_api_client/models/signed_port_preview_url.py +109 -0
  247. northrays_api_client/models/snapshot_dto.py +172 -0
  248. northrays_api_client/models/snapshot_manager_credentials.py +105 -0
  249. northrays_api_client/models/snapshot_state.py +49 -0
  250. northrays_api_client/models/ssh_access_dto.py +116 -0
  251. northrays_api_client/models/ssh_access_validation_dto.py +105 -0
  252. northrays_api_client/models/storage_access_dto.py +113 -0
  253. northrays_api_client/models/toolbox_proxy_url.py +103 -0
  254. northrays_api_client/models/trace_span.py +119 -0
  255. northrays_api_client/models/trace_summary.py +115 -0
  256. northrays_api_client/models/update_docker_registry.py +111 -0
  257. northrays_api_client/models/update_job_status.py +108 -0
  258. northrays_api_client/models/update_organization_default_region.py +103 -0
  259. northrays_api_client/models/update_organization_invitation.py +108 -0
  260. northrays_api_client/models/update_organization_member_access.py +105 -0
  261. northrays_api_client/models/update_organization_quota.py +192 -0
  262. northrays_api_client/models/update_organization_region_quota.py +189 -0
  263. northrays_api_client/models/update_organization_role.py +107 -0
  264. northrays_api_client/models/update_region.py +122 -0
  265. northrays_api_client/models/update_sandbox_network_settings.py +107 -0
  266. northrays_api_client/models/update_sandbox_state_dto.py +107 -0
  267. northrays_api_client/models/url.py +103 -0
  268. northrays_api_client/models/user.py +120 -0
  269. northrays_api_client/models/user_home_dir_response.py +103 -0
  270. northrays_api_client/models/user_public_key.py +105 -0
  271. northrays_api_client/models/volume_dto.py +128 -0
  272. northrays_api_client/models/volume_state.py +48 -0
  273. northrays_api_client/models/webhook_app_portal_access.py +105 -0
  274. northrays_api_client/models/webhook_event.py +48 -0
  275. northrays_api_client/models/webhook_initialization_status.py +123 -0
  276. northrays_api_client/models/windows_response.py +105 -0
  277. northrays_api_client/models/work_dir_response.py +103 -0
  278. northrays_api_client/py.typed +0 -0
  279. northrays_api_client/rest.py +264 -0
  280. northrays_api_client_async/__init__.py +684 -0
  281. northrays_api_client_async/api/__init__.py +64 -0
  282. northrays_api_client_async/api/admin_api.py +5998 -0
  283. northrays_api_client_async/api/api_keys_api.py +1672 -0
  284. northrays_api_client_async/api/audit_api.py +402 -0
  285. northrays_api_client_async/api/config_api.py +278 -0
  286. northrays_api_client_async/api/docker_registry_api.py +1707 -0
  287. northrays_api_client_async/api/health_api.py +517 -0
  288. northrays_api_client_async/api/jobs_api.py +1185 -0
  289. northrays_api_client_async/api/object_storage_api.py +298 -0
  290. northrays_api_client_async/api/organizations_api.py +10857 -0
  291. northrays_api_client_async/api/preview_api.py +1104 -0
  292. northrays_api_client_async/api/regions_api.py +279 -0
  293. northrays_api_client_async/api/runners_api.py +2987 -0
  294. northrays_api_client_async/api/sandbox_api.py +12813 -0
  295. northrays_api_client_async/api/snapshots_api.py +2331 -0
  296. northrays_api_client_async/api/toolbox_api.py +20758 -0
  297. northrays_api_client_async/api/users_api.py +1304 -0
  298. northrays_api_client_async/api/volumes_api.py +1421 -0
  299. northrays_api_client_async/api/webhooks_api.py +1135 -0
  300. northrays_api_client_async/api_client.py +813 -0
  301. northrays_api_client_async/api_response.py +21 -0
  302. northrays_api_client_async/configuration.py +605 -0
  303. northrays_api_client_async/exceptions.py +219 -0
  304. northrays_api_client_async/models/__init__.py +405 -0
  305. northrays_api_client_async/models/account_provider.py +105 -0
  306. northrays_api_client_async/models/admin_create_runner.py +131 -0
  307. northrays_api_client_async/models/admin_get_webhook_status200_response.py +103 -0
  308. northrays_api_client_async/models/announcement.py +105 -0
  309. northrays_api_client_async/models/api_key_list.py +126 -0
  310. northrays_api_client_async/models/api_key_response.py +117 -0
  311. northrays_api_client_async/models/audit_log.py +134 -0
  312. northrays_api_client_async/models/build_info.py +112 -0
  313. northrays_api_client_async/models/command.py +107 -0
  314. northrays_api_client_async/models/completion_context.py +105 -0
  315. northrays_api_client_async/models/completion_item.py +115 -0
  316. northrays_api_client_async/models/completion_list.py +113 -0
  317. northrays_api_client_async/models/compressed_screenshot_response.py +107 -0
  318. northrays_api_client_async/models/computer_use_start_response.py +105 -0
  319. northrays_api_client_async/models/computer_use_status_response.py +103 -0
  320. northrays_api_client_async/models/computer_use_stop_response.py +105 -0
  321. northrays_api_client_async/models/create_api_key.py +113 -0
  322. northrays_api_client_async/models/create_build_info.py +105 -0
  323. northrays_api_client_async/models/create_docker_registry.py +111 -0
  324. northrays_api_client_async/models/create_linked_account.py +105 -0
  325. northrays_api_client_async/models/create_organization.py +105 -0
  326. northrays_api_client_async/models/create_organization_invitation.py +110 -0
  327. northrays_api_client_async/models/create_organization_quota.py +119 -0
  328. northrays_api_client_async/models/create_organization_region_quota.py +169 -0
  329. northrays_api_client_async/models/create_organization_role.py +107 -0
  330. northrays_api_client_async/models/create_region.py +124 -0
  331. northrays_api_client_async/models/create_region_response.py +131 -0
  332. northrays_api_client_async/models/create_runner.py +107 -0
  333. northrays_api_client_async/models/create_runner_response.py +105 -0
  334. northrays_api_client_async/models/create_sandbox.py +156 -0
  335. northrays_api_client_async/models/create_sandbox_snapshot.py +105 -0
  336. northrays_api_client_async/models/create_session_request.py +103 -0
  337. northrays_api_client_async/models/create_snapshot.py +129 -0
  338. northrays_api_client_async/models/create_user.py +119 -0
  339. northrays_api_client_async/models/create_volume.py +103 -0
  340. northrays_api_client_async/models/display_info_response.py +103 -0
  341. northrays_api_client_async/models/docker_registry.py +118 -0
  342. northrays_api_client_async/models/download_files.py +103 -0
  343. northrays_api_client_async/models/execute_request.py +107 -0
  344. northrays_api_client_async/models/execute_response.py +105 -0
  345. northrays_api_client_async/models/file_info.py +117 -0
  346. northrays_api_client_async/models/file_status.py +109 -0
  347. northrays_api_client_async/models/fork_sandbox.py +103 -0
  348. northrays_api_client_async/models/git_add_request.py +105 -0
  349. northrays_api_client_async/models/git_branch_request.py +105 -0
  350. northrays_api_client_async/models/git_checkout_request.py +105 -0
  351. northrays_api_client_async/models/git_clone_request.py +113 -0
  352. northrays_api_client_async/models/git_commit_info.py +111 -0
  353. northrays_api_client_async/models/git_commit_request.py +111 -0
  354. northrays_api_client_async/models/git_commit_response.py +103 -0
  355. northrays_api_client_async/models/git_delete_branch_request.py +105 -0
  356. northrays_api_client_async/models/git_repo_request.py +107 -0
  357. northrays_api_client_async/models/git_status.py +119 -0
  358. northrays_api_client_async/models/gpu_type.py +43 -0
  359. northrays_api_client_async/models/health_controller_check200_response.py +156 -0
  360. northrays_api_client_async/models/health_controller_check200_response_info_value.py +103 -0
  361. northrays_api_client_async/models/health_controller_check503_response.py +156 -0
  362. northrays_api_client_async/models/job.py +123 -0
  363. northrays_api_client_async/models/job_status.py +45 -0
  364. northrays_api_client_async/models/job_type.py +56 -0
  365. northrays_api_client_async/models/keyboard_hotkey_request.py +103 -0
  366. northrays_api_client_async/models/keyboard_press_request.py +105 -0
  367. northrays_api_client_async/models/keyboard_type_request.py +105 -0
  368. northrays_api_client_async/models/list_branch_response.py +103 -0
  369. northrays_api_client_async/models/list_sandboxes_response.py +118 -0
  370. northrays_api_client_async/models/log_entry.py +119 -0
  371. northrays_api_client_async/models/lsp_completion_params.py +119 -0
  372. northrays_api_client_async/models/lsp_document_request.py +107 -0
  373. northrays_api_client_async/models/lsp_location.py +109 -0
  374. northrays_api_client_async/models/lsp_server_request.py +105 -0
  375. northrays_api_client_async/models/lsp_symbol.py +111 -0
  376. northrays_api_client_async/models/match.py +107 -0
  377. northrays_api_client_async/models/metric_data_point.py +105 -0
  378. northrays_api_client_async/models/metric_series.py +113 -0
  379. northrays_api_client_async/models/metrics_response.py +111 -0
  380. northrays_api_client_async/models/mouse_click_request.py +109 -0
  381. northrays_api_client_async/models/mouse_click_response.py +105 -0
  382. northrays_api_client_async/models/mouse_drag_request.py +111 -0
  383. northrays_api_client_async/models/mouse_drag_response.py +105 -0
  384. northrays_api_client_async/models/mouse_move_request.py +105 -0
  385. northrays_api_client_async/models/mouse_move_response.py +105 -0
  386. northrays_api_client_async/models/mouse_position.py +105 -0
  387. northrays_api_client_async/models/mouse_scroll_request.py +109 -0
  388. northrays_api_client_async/models/mouse_scroll_response.py +103 -0
  389. northrays_api_client_async/models/northrays_configuration.py +162 -0
  390. northrays_api_client_async/models/oidc_config.py +107 -0
  391. northrays_api_client_async/models/organization.py +191 -0
  392. northrays_api_client_async/models/organization_invitation.py +132 -0
  393. northrays_api_client_async/models/organization_role.py +116 -0
  394. northrays_api_client_async/models/organization_sandbox_default_limited_network_egress.py +103 -0
  395. northrays_api_client_async/models/organization_suspension.py +109 -0
  396. northrays_api_client_async/models/organization_usage_overview.py +119 -0
  397. northrays_api_client_async/models/organization_user.py +126 -0
  398. northrays_api_client_async/models/otel_config.py +110 -0
  399. northrays_api_client_async/models/paginated_audit_logs.py +119 -0
  400. northrays_api_client_async/models/paginated_jobs.py +117 -0
  401. northrays_api_client_async/models/paginated_logs.py +117 -0
  402. northrays_api_client_async/models/paginated_sandboxes_deprecated.py +117 -0
  403. northrays_api_client_async/models/paginated_snapshots.py +117 -0
  404. northrays_api_client_async/models/paginated_traces.py +117 -0
  405. northrays_api_client_async/models/poll_jobs_response.py +111 -0
  406. northrays_api_client_async/models/port_preview_url.py +107 -0
  407. northrays_api_client_async/models/position.py +105 -0
  408. northrays_api_client_async/models/posthog_config.py +105 -0
  409. northrays_api_client_async/models/process_errors_response.py +105 -0
  410. northrays_api_client_async/models/process_logs_response.py +105 -0
  411. northrays_api_client_async/models/process_restart_response.py +105 -0
  412. northrays_api_client_async/models/process_status_response.py +105 -0
  413. northrays_api_client_async/models/project_dir_response.py +103 -0
  414. northrays_api_client_async/models/pty_create_request.py +113 -0
  415. northrays_api_client_async/models/pty_create_response.py +103 -0
  416. northrays_api_client_async/models/pty_list_response.py +111 -0
  417. northrays_api_client_async/models/pty_resize_request.py +105 -0
  418. northrays_api_client_async/models/pty_session_info.py +117 -0
  419. northrays_api_client_async/models/range.py +112 -0
  420. northrays_api_client_async/models/rate_limit_config.py +122 -0
  421. northrays_api_client_async/models/rate_limit_entry.py +105 -0
  422. northrays_api_client_async/models/regenerate_api_key_response.py +103 -0
  423. northrays_api_client_async/models/region.py +140 -0
  424. northrays_api_client_async/models/region_quota.py +168 -0
  425. northrays_api_client_async/models/region_screenshot_response.py +107 -0
  426. northrays_api_client_async/models/region_type.py +44 -0
  427. northrays_api_client_async/models/region_usage_overview.py +174 -0
  428. northrays_api_client_async/models/registry_push_access_dto.py +113 -0
  429. northrays_api_client_async/models/replace_request.py +107 -0
  430. northrays_api_client_async/models/replace_result.py +107 -0
  431. northrays_api_client_async/models/resize_sandbox.py +108 -0
  432. northrays_api_client_async/models/runner.py +166 -0
  433. northrays_api_client_async/models/runner_class.py +42 -0
  434. northrays_api_client_async/models/runner_full.py +171 -0
  435. northrays_api_client_async/models/runner_health_metrics.py +129 -0
  436. northrays_api_client_async/models/runner_healthcheck.py +125 -0
  437. northrays_api_client_async/models/runner_service_health.py +107 -0
  438. northrays_api_client_async/models/runner_snapshot_dto.py +107 -0
  439. northrays_api_client_async/models/runner_state.py +46 -0
  440. northrays_api_client_async/models/sandbox.py +188 -0
  441. northrays_api_client_async/models/sandbox_class.py +45 -0
  442. northrays_api_client_async/models/sandbox_desired_state.py +47 -0
  443. northrays_api_client_async/models/sandbox_labels.py +103 -0
  444. northrays_api_client_async/models/sandbox_list_item.py +161 -0
  445. northrays_api_client_async/models/sandbox_list_sort_direction.py +43 -0
  446. northrays_api_client_async/models/sandbox_list_sort_field.py +47 -0
  447. northrays_api_client_async/models/sandbox_state.py +63 -0
  448. northrays_api_client_async/models/sandbox_volume.py +107 -0
  449. northrays_api_client_async/models/screenshot_response.py +107 -0
  450. northrays_api_client_async/models/search_files_response.py +103 -0
  451. northrays_api_client_async/models/send_webhook_dto.py +108 -0
  452. northrays_api_client_async/models/session.py +118 -0
  453. northrays_api_client_async/models/session_execute_request.py +107 -0
  454. northrays_api_client_async/models/session_execute_response.py +107 -0
  455. northrays_api_client_async/models/set_snapshot_general_status_dto.py +103 -0
  456. northrays_api_client_async/models/signed_port_preview_url.py +109 -0
  457. northrays_api_client_async/models/snapshot_dto.py +172 -0
  458. northrays_api_client_async/models/snapshot_manager_credentials.py +105 -0
  459. northrays_api_client_async/models/snapshot_state.py +49 -0
  460. northrays_api_client_async/models/ssh_access_dto.py +116 -0
  461. northrays_api_client_async/models/ssh_access_validation_dto.py +105 -0
  462. northrays_api_client_async/models/storage_access_dto.py +113 -0
  463. northrays_api_client_async/models/toolbox_proxy_url.py +103 -0
  464. northrays_api_client_async/models/trace_span.py +119 -0
  465. northrays_api_client_async/models/trace_summary.py +115 -0
  466. northrays_api_client_async/models/update_docker_registry.py +111 -0
  467. northrays_api_client_async/models/update_job_status.py +108 -0
  468. northrays_api_client_async/models/update_organization_default_region.py +103 -0
  469. northrays_api_client_async/models/update_organization_invitation.py +108 -0
  470. northrays_api_client_async/models/update_organization_member_access.py +105 -0
  471. northrays_api_client_async/models/update_organization_quota.py +192 -0
  472. northrays_api_client_async/models/update_organization_region_quota.py +189 -0
  473. northrays_api_client_async/models/update_organization_role.py +107 -0
  474. northrays_api_client_async/models/update_region.py +122 -0
  475. northrays_api_client_async/models/update_sandbox_network_settings.py +107 -0
  476. northrays_api_client_async/models/update_sandbox_state_dto.py +107 -0
  477. northrays_api_client_async/models/url.py +103 -0
  478. northrays_api_client_async/models/user.py +120 -0
  479. northrays_api_client_async/models/user_home_dir_response.py +103 -0
  480. northrays_api_client_async/models/user_public_key.py +105 -0
  481. northrays_api_client_async/models/volume_dto.py +128 -0
  482. northrays_api_client_async/models/volume_state.py +48 -0
  483. northrays_api_client_async/models/webhook_app_portal_access.py +105 -0
  484. northrays_api_client_async/models/webhook_event.py +48 -0
  485. northrays_api_client_async/models/webhook_initialization_status.py +123 -0
  486. northrays_api_client_async/models/windows_response.py +105 -0
  487. northrays_api_client_async/models/work_dir_response.py +103 -0
  488. northrays_api_client_async/py.typed +0 -0
  489. northrays_api_client_async/rest.py +227 -0
  490. northrays_toolbox_api_client/__init__.py +386 -0
  491. northrays_toolbox_api_client/api/__init__.py +46 -0
  492. northrays_toolbox_api_client/api/computer_use_api.py +9075 -0
  493. northrays_toolbox_api_client/api/file_system_api.py +3583 -0
  494. northrays_toolbox_api_client/api/git_api.py +2969 -0
  495. northrays_toolbox_api_client/api/info_api.py +773 -0
  496. northrays_toolbox_api_client/api/interpreter_api.py +1075 -0
  497. northrays_toolbox_api_client/api/lsp_api.py +1971 -0
  498. northrays_toolbox_api_client/api/port_api.py +543 -0
  499. northrays_toolbox_api_client/api/process_api.py +4865 -0
  500. northrays_toolbox_api_client/api/server_api.py +298 -0
  501. northrays_toolbox_api_client/api_client.py +809 -0
  502. northrays_toolbox_api_client/api_response.py +21 -0
  503. northrays_toolbox_api_client/configuration.py +626 -0
  504. northrays_toolbox_api_client/exceptions.py +218 -0
  505. northrays_toolbox_api_client/models/__init__.py +224 -0
  506. northrays_toolbox_api_client/models/accessibility_bounds.py +108 -0
  507. northrays_toolbox_api_client/models/accessibility_invoke_request.py +104 -0
  508. northrays_toolbox_api_client/models/accessibility_node_request.py +102 -0
  509. northrays_toolbox_api_client/models/accessibility_nodes_response.py +112 -0
  510. northrays_toolbox_api_client/models/accessibility_set_value_request.py +104 -0
  511. northrays_toolbox_api_client/models/accessibility_tree_response.py +108 -0
  512. northrays_toolbox_api_client/models/chart.py +132 -0
  513. northrays_toolbox_api_client/models/chart_element.py +134 -0
  514. northrays_toolbox_api_client/models/code_run_artifacts.py +110 -0
  515. northrays_toolbox_api_client/models/code_run_request.py +110 -0
  516. northrays_toolbox_api_client/models/code_run_response.py +110 -0
  517. northrays_toolbox_api_client/models/command.py +106 -0
  518. northrays_toolbox_api_client/models/completion_context.py +104 -0
  519. northrays_toolbox_api_client/models/completion_item.py +114 -0
  520. northrays_toolbox_api_client/models/completion_list.py +112 -0
  521. northrays_toolbox_api_client/models/computer_use_accessibility_node.py +129 -0
  522. northrays_toolbox_api_client/models/computer_use_start_response.py +117 -0
  523. northrays_toolbox_api_client/models/computer_use_status_response.py +102 -0
  524. northrays_toolbox_api_client/models/computer_use_stop_response.py +117 -0
  525. northrays_toolbox_api_client/models/create_context_request.py +104 -0
  526. northrays_toolbox_api_client/models/create_session_request.py +102 -0
  527. northrays_toolbox_api_client/models/display_info.py +112 -0
  528. northrays_toolbox_api_client/models/display_info_response.py +110 -0
  529. northrays_toolbox_api_client/models/execute_request.py +108 -0
  530. northrays_toolbox_api_client/models/execute_response.py +104 -0
  531. northrays_toolbox_api_client/models/file_info.py +118 -0
  532. northrays_toolbox_api_client/models/file_status.py +109 -0
  533. northrays_toolbox_api_client/models/files_download_request.py +102 -0
  534. northrays_toolbox_api_client/models/find_accessibility_nodes_request.py +114 -0
  535. northrays_toolbox_api_client/models/git_add_request.py +104 -0
  536. northrays_toolbox_api_client/models/git_branch_request.py +104 -0
  537. northrays_toolbox_api_client/models/git_checkout_request.py +104 -0
  538. northrays_toolbox_api_client/models/git_clone_request.py +114 -0
  539. northrays_toolbox_api_client/models/git_commit_info.py +110 -0
  540. northrays_toolbox_api_client/models/git_commit_request.py +110 -0
  541. northrays_toolbox_api_client/models/git_commit_response.py +102 -0
  542. northrays_toolbox_api_client/models/git_delete_branch_request.py +104 -0
  543. northrays_toolbox_api_client/models/git_repo_request.py +106 -0
  544. northrays_toolbox_api_client/models/git_status.py +118 -0
  545. northrays_toolbox_api_client/models/initialize_request.py +102 -0
  546. northrays_toolbox_api_client/models/interpreter_context.py +110 -0
  547. northrays_toolbox_api_client/models/is_port_in_use_response.py +102 -0
  548. northrays_toolbox_api_client/models/keyboard_hotkey_request.py +102 -0
  549. northrays_toolbox_api_client/models/keyboard_press_request.py +104 -0
  550. northrays_toolbox_api_client/models/keyboard_type_request.py +104 -0
  551. northrays_toolbox_api_client/models/list_branch_response.py +102 -0
  552. northrays_toolbox_api_client/models/list_contexts_response.py +110 -0
  553. northrays_toolbox_api_client/models/list_recordings_response.py +110 -0
  554. northrays_toolbox_api_client/models/lsp_completion_params.py +118 -0
  555. northrays_toolbox_api_client/models/lsp_document_request.py +106 -0
  556. northrays_toolbox_api_client/models/lsp_location.py +108 -0
  557. northrays_toolbox_api_client/models/lsp_position.py +104 -0
  558. northrays_toolbox_api_client/models/lsp_range.py +111 -0
  559. northrays_toolbox_api_client/models/lsp_server_request.py +104 -0
  560. northrays_toolbox_api_client/models/lsp_symbol.py +110 -0
  561. northrays_toolbox_api_client/models/match.py +106 -0
  562. northrays_toolbox_api_client/models/mouse_click_request.py +108 -0
  563. northrays_toolbox_api_client/models/mouse_click_response.py +104 -0
  564. northrays_toolbox_api_client/models/mouse_drag_request.py +110 -0
  565. northrays_toolbox_api_client/models/mouse_drag_response.py +104 -0
  566. northrays_toolbox_api_client/models/mouse_move_request.py +104 -0
  567. northrays_toolbox_api_client/models/mouse_position_response.py +104 -0
  568. northrays_toolbox_api_client/models/mouse_scroll_request.py +109 -0
  569. northrays_toolbox_api_client/models/port_list.py +102 -0
  570. northrays_toolbox_api_client/models/position.py +104 -0
  571. northrays_toolbox_api_client/models/process_errors_response.py +104 -0
  572. northrays_toolbox_api_client/models/process_logs_response.py +104 -0
  573. northrays_toolbox_api_client/models/process_restart_response.py +104 -0
  574. northrays_toolbox_api_client/models/process_status.py +108 -0
  575. northrays_toolbox_api_client/models/process_status_response.py +104 -0
  576. northrays_toolbox_api_client/models/pty_create_request.py +112 -0
  577. northrays_toolbox_api_client/models/pty_create_response.py +102 -0
  578. northrays_toolbox_api_client/models/pty_list_response.py +110 -0
  579. northrays_toolbox_api_client/models/pty_resize_request.py +105 -0
  580. northrays_toolbox_api_client/models/pty_session_info.py +116 -0
  581. northrays_toolbox_api_client/models/recording.py +116 -0
  582. northrays_toolbox_api_client/models/replace_request.py +106 -0
  583. northrays_toolbox_api_client/models/replace_result.py +106 -0
  584. northrays_toolbox_api_client/models/screenshot_response.py +110 -0
  585. northrays_toolbox_api_client/models/scroll_response.py +102 -0
  586. northrays_toolbox_api_client/models/search_files_response.py +102 -0
  587. northrays_toolbox_api_client/models/session.py +112 -0
  588. northrays_toolbox_api_client/models/session_command_logs_response.py +106 -0
  589. northrays_toolbox_api_client/models/session_execute_request.py +108 -0
  590. northrays_toolbox_api_client/models/session_execute_response.py +110 -0
  591. northrays_toolbox_api_client/models/session_send_input_request.py +102 -0
  592. northrays_toolbox_api_client/models/start_recording_request.py +102 -0
  593. northrays_toolbox_api_client/models/status.py +48 -0
  594. northrays_toolbox_api_client/models/stop_recording_request.py +102 -0
  595. northrays_toolbox_api_client/models/user_home_dir_response.py +102 -0
  596. northrays_toolbox_api_client/models/window_info.py +114 -0
  597. northrays_toolbox_api_client/models/windows_response.py +110 -0
  598. northrays_toolbox_api_client/models/work_dir_response.py +102 -0
  599. northrays_toolbox_api_client/py.typed +0 -0
  600. northrays_toolbox_api_client/rest.py +263 -0
  601. northrays_toolbox_api_client_async/__init__.py +386 -0
  602. northrays_toolbox_api_client_async/api/__init__.py +46 -0
  603. northrays_toolbox_api_client_async/api/computer_use_api.py +9075 -0
  604. northrays_toolbox_api_client_async/api/file_system_api.py +3583 -0
  605. northrays_toolbox_api_client_async/api/git_api.py +2969 -0
  606. northrays_toolbox_api_client_async/api/info_api.py +773 -0
  607. northrays_toolbox_api_client_async/api/interpreter_api.py +1075 -0
  608. northrays_toolbox_api_client_async/api/lsp_api.py +1971 -0
  609. northrays_toolbox_api_client_async/api/port_api.py +543 -0
  610. northrays_toolbox_api_client_async/api/process_api.py +4865 -0
  611. northrays_toolbox_api_client_async/api/server_api.py +298 -0
  612. northrays_toolbox_api_client_async/api_client.py +812 -0
  613. northrays_toolbox_api_client_async/api_response.py +21 -0
  614. northrays_toolbox_api_client_async/configuration.py +624 -0
  615. northrays_toolbox_api_client_async/exceptions.py +218 -0
  616. northrays_toolbox_api_client_async/models/__init__.py +224 -0
  617. northrays_toolbox_api_client_async/models/accessibility_bounds.py +108 -0
  618. northrays_toolbox_api_client_async/models/accessibility_invoke_request.py +104 -0
  619. northrays_toolbox_api_client_async/models/accessibility_node_request.py +102 -0
  620. northrays_toolbox_api_client_async/models/accessibility_nodes_response.py +112 -0
  621. northrays_toolbox_api_client_async/models/accessibility_set_value_request.py +104 -0
  622. northrays_toolbox_api_client_async/models/accessibility_tree_response.py +108 -0
  623. northrays_toolbox_api_client_async/models/chart.py +132 -0
  624. northrays_toolbox_api_client_async/models/chart_element.py +134 -0
  625. northrays_toolbox_api_client_async/models/code_run_artifacts.py +110 -0
  626. northrays_toolbox_api_client_async/models/code_run_request.py +110 -0
  627. northrays_toolbox_api_client_async/models/code_run_response.py +110 -0
  628. northrays_toolbox_api_client_async/models/command.py +106 -0
  629. northrays_toolbox_api_client_async/models/completion_context.py +104 -0
  630. northrays_toolbox_api_client_async/models/completion_item.py +114 -0
  631. northrays_toolbox_api_client_async/models/completion_list.py +112 -0
  632. northrays_toolbox_api_client_async/models/computer_use_accessibility_node.py +129 -0
  633. northrays_toolbox_api_client_async/models/computer_use_start_response.py +117 -0
  634. northrays_toolbox_api_client_async/models/computer_use_status_response.py +102 -0
  635. northrays_toolbox_api_client_async/models/computer_use_stop_response.py +117 -0
  636. northrays_toolbox_api_client_async/models/create_context_request.py +104 -0
  637. northrays_toolbox_api_client_async/models/create_session_request.py +102 -0
  638. northrays_toolbox_api_client_async/models/display_info.py +112 -0
  639. northrays_toolbox_api_client_async/models/display_info_response.py +110 -0
  640. northrays_toolbox_api_client_async/models/execute_request.py +108 -0
  641. northrays_toolbox_api_client_async/models/execute_response.py +104 -0
  642. northrays_toolbox_api_client_async/models/file_info.py +118 -0
  643. northrays_toolbox_api_client_async/models/file_status.py +109 -0
  644. northrays_toolbox_api_client_async/models/files_download_request.py +102 -0
  645. northrays_toolbox_api_client_async/models/find_accessibility_nodes_request.py +114 -0
  646. northrays_toolbox_api_client_async/models/git_add_request.py +104 -0
  647. northrays_toolbox_api_client_async/models/git_branch_request.py +104 -0
  648. northrays_toolbox_api_client_async/models/git_checkout_request.py +104 -0
  649. northrays_toolbox_api_client_async/models/git_clone_request.py +114 -0
  650. northrays_toolbox_api_client_async/models/git_commit_info.py +110 -0
  651. northrays_toolbox_api_client_async/models/git_commit_request.py +110 -0
  652. northrays_toolbox_api_client_async/models/git_commit_response.py +102 -0
  653. northrays_toolbox_api_client_async/models/git_delete_branch_request.py +104 -0
  654. northrays_toolbox_api_client_async/models/git_repo_request.py +106 -0
  655. northrays_toolbox_api_client_async/models/git_status.py +118 -0
  656. northrays_toolbox_api_client_async/models/initialize_request.py +102 -0
  657. northrays_toolbox_api_client_async/models/interpreter_context.py +110 -0
  658. northrays_toolbox_api_client_async/models/is_port_in_use_response.py +102 -0
  659. northrays_toolbox_api_client_async/models/keyboard_hotkey_request.py +102 -0
  660. northrays_toolbox_api_client_async/models/keyboard_press_request.py +104 -0
  661. northrays_toolbox_api_client_async/models/keyboard_type_request.py +104 -0
  662. northrays_toolbox_api_client_async/models/list_branch_response.py +102 -0
  663. northrays_toolbox_api_client_async/models/list_contexts_response.py +110 -0
  664. northrays_toolbox_api_client_async/models/list_recordings_response.py +110 -0
  665. northrays_toolbox_api_client_async/models/lsp_completion_params.py +118 -0
  666. northrays_toolbox_api_client_async/models/lsp_document_request.py +106 -0
  667. northrays_toolbox_api_client_async/models/lsp_location.py +108 -0
  668. northrays_toolbox_api_client_async/models/lsp_position.py +104 -0
  669. northrays_toolbox_api_client_async/models/lsp_range.py +111 -0
  670. northrays_toolbox_api_client_async/models/lsp_server_request.py +104 -0
  671. northrays_toolbox_api_client_async/models/lsp_symbol.py +110 -0
  672. northrays_toolbox_api_client_async/models/match.py +106 -0
  673. northrays_toolbox_api_client_async/models/mouse_click_request.py +108 -0
  674. northrays_toolbox_api_client_async/models/mouse_click_response.py +104 -0
  675. northrays_toolbox_api_client_async/models/mouse_drag_request.py +110 -0
  676. northrays_toolbox_api_client_async/models/mouse_drag_response.py +104 -0
  677. northrays_toolbox_api_client_async/models/mouse_move_request.py +104 -0
  678. northrays_toolbox_api_client_async/models/mouse_position_response.py +104 -0
  679. northrays_toolbox_api_client_async/models/mouse_scroll_request.py +109 -0
  680. northrays_toolbox_api_client_async/models/port_list.py +102 -0
  681. northrays_toolbox_api_client_async/models/position.py +104 -0
  682. northrays_toolbox_api_client_async/models/process_errors_response.py +104 -0
  683. northrays_toolbox_api_client_async/models/process_logs_response.py +104 -0
  684. northrays_toolbox_api_client_async/models/process_restart_response.py +104 -0
  685. northrays_toolbox_api_client_async/models/process_status.py +108 -0
  686. northrays_toolbox_api_client_async/models/process_status_response.py +104 -0
  687. northrays_toolbox_api_client_async/models/pty_create_request.py +112 -0
  688. northrays_toolbox_api_client_async/models/pty_create_response.py +102 -0
  689. northrays_toolbox_api_client_async/models/pty_list_response.py +110 -0
  690. northrays_toolbox_api_client_async/models/pty_resize_request.py +105 -0
  691. northrays_toolbox_api_client_async/models/pty_session_info.py +116 -0
  692. northrays_toolbox_api_client_async/models/recording.py +116 -0
  693. northrays_toolbox_api_client_async/models/replace_request.py +106 -0
  694. northrays_toolbox_api_client_async/models/replace_result.py +106 -0
  695. northrays_toolbox_api_client_async/models/screenshot_response.py +110 -0
  696. northrays_toolbox_api_client_async/models/scroll_response.py +102 -0
  697. northrays_toolbox_api_client_async/models/search_files_response.py +102 -0
  698. northrays_toolbox_api_client_async/models/session.py +112 -0
  699. northrays_toolbox_api_client_async/models/session_command_logs_response.py +106 -0
  700. northrays_toolbox_api_client_async/models/session_execute_request.py +108 -0
  701. northrays_toolbox_api_client_async/models/session_execute_response.py +110 -0
  702. northrays_toolbox_api_client_async/models/session_send_input_request.py +102 -0
  703. northrays_toolbox_api_client_async/models/start_recording_request.py +102 -0
  704. northrays_toolbox_api_client_async/models/status.py +48 -0
  705. northrays_toolbox_api_client_async/models/stop_recording_request.py +102 -0
  706. northrays_toolbox_api_client_async/models/user_home_dir_response.py +102 -0
  707. northrays_toolbox_api_client_async/models/window_info.py +114 -0
  708. northrays_toolbox_api_client_async/models/windows_response.py +110 -0
  709. northrays_toolbox_api_client_async/models/work_dir_response.py +102 -0
  710. northrays_toolbox_api_client_async/py.typed +0 -0
  711. northrays_toolbox_api_client_async/rest.py +226 -0
@@ -0,0 +1,1672 @@
1
+ """
2
+ Northrays
3
+
4
+ Northrays AI platform API Docs
5
+
6
+ The version of the OpenAPI document: 1.0
7
+ Contact: support@northrays.com
8
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
9
+
10
+ Do not edit the class manually.
11
+ """ # noqa: E501
12
+
13
+
14
+ import warnings
15
+ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
16
+ from typing import Any, Dict, List, Optional, Tuple, Union
17
+ from typing_extensions import Annotated
18
+
19
+ from pydantic import Field, StrictStr
20
+ from typing import List, Optional
21
+ from typing_extensions import Annotated
22
+ from northrays_api_client.models.api_key_list import ApiKeyList
23
+ from northrays_api_client.models.api_key_response import ApiKeyResponse
24
+ from northrays_api_client.models.create_api_key import CreateApiKey
25
+
26
+ from northrays_api_client.api_client import ApiClient, RequestSerialized
27
+ from northrays_api_client.api_response import ApiResponse
28
+ from northrays_api_client.rest import RESTResponseType
29
+
30
+
31
+ class ApiKeysApi:
32
+ """NOTE: This class is auto generated by OpenAPI Generator
33
+ Ref: https://openapi-generator.tech
34
+
35
+ Do not edit the class manually.
36
+ """
37
+
38
+ def __init__(self, api_client=None) -> None:
39
+ if api_client is None:
40
+ api_client = ApiClient.get_default()
41
+ self.api_client = api_client
42
+
43
+
44
+ @validate_call
45
+ def create_api_key(
46
+ self,
47
+ create_api_key: CreateApiKey,
48
+ x_northrays_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
49
+ _request_timeout: Union[
50
+ None,
51
+ Annotated[StrictFloat, Field(gt=0)],
52
+ Tuple[
53
+ Annotated[StrictFloat, Field(gt=0)],
54
+ Annotated[StrictFloat, Field(gt=0)]
55
+ ]
56
+ ] = None,
57
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
58
+ _content_type: Optional[StrictStr] = None,
59
+ _headers: Optional[Dict[StrictStr, Any]] = None,
60
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
61
+ ) -> ApiKeyResponse:
62
+ """Create API key
63
+
64
+
65
+ :param create_api_key: (required)
66
+ :type create_api_key: CreateApiKey
67
+ :param x_northrays_organization_id: Use with JWT to specify the organization ID
68
+ :type x_northrays_organization_id: str
69
+ :param _request_timeout: timeout setting for this request. If one
70
+ number provided, it will be total request
71
+ timeout. It can also be a pair (tuple) of
72
+ (connection, read) timeouts.
73
+ :type _request_timeout: int, tuple(int, int), optional
74
+ :param _request_auth: set to override the auth_settings for an a single
75
+ request; this effectively ignores the
76
+ authentication in the spec for a single request.
77
+ :type _request_auth: dict, optional
78
+ :param _content_type: force content-type for the request.
79
+ :type _content_type: str, Optional
80
+ :param _headers: set to override the headers for a single
81
+ request; this effectively ignores the headers
82
+ in the spec for a single request.
83
+ :type _headers: dict, optional
84
+ :param _host_index: set to override the host_index for a single
85
+ request; this effectively ignores the host_index
86
+ in the spec for a single request.
87
+ :type _host_index: int, optional
88
+ :return: Returns the result object.
89
+ """ # noqa: E501
90
+
91
+ _param = self._create_api_key_serialize(
92
+ create_api_key=create_api_key,
93
+ x_northrays_organization_id=x_northrays_organization_id,
94
+ _request_auth=_request_auth,
95
+ _content_type=_content_type,
96
+ _headers=_headers,
97
+ _host_index=_host_index
98
+ )
99
+
100
+ _response_types_map: Dict[str, Optional[str]] = {
101
+ '201': "ApiKeyResponse",
102
+ }
103
+ response_data = self.api_client.call_api(
104
+ *_param,
105
+ _request_timeout=_request_timeout
106
+ )
107
+ response_data.read()
108
+ return self.api_client.response_deserialize(
109
+ response_data=response_data,
110
+ response_types_map=_response_types_map,
111
+ ).data
112
+
113
+
114
+ @validate_call
115
+ def create_api_key_with_http_info(
116
+ self,
117
+ create_api_key: CreateApiKey,
118
+ x_northrays_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
119
+ _request_timeout: Union[
120
+ None,
121
+ Annotated[StrictFloat, Field(gt=0)],
122
+ Tuple[
123
+ Annotated[StrictFloat, Field(gt=0)],
124
+ Annotated[StrictFloat, Field(gt=0)]
125
+ ]
126
+ ] = None,
127
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
128
+ _content_type: Optional[StrictStr] = None,
129
+ _headers: Optional[Dict[StrictStr, Any]] = None,
130
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
131
+ ) -> ApiResponse[ApiKeyResponse]:
132
+ """Create API key
133
+
134
+
135
+ :param create_api_key: (required)
136
+ :type create_api_key: CreateApiKey
137
+ :param x_northrays_organization_id: Use with JWT to specify the organization ID
138
+ :type x_northrays_organization_id: str
139
+ :param _request_timeout: timeout setting for this request. If one
140
+ number provided, it will be total request
141
+ timeout. It can also be a pair (tuple) of
142
+ (connection, read) timeouts.
143
+ :type _request_timeout: int, tuple(int, int), optional
144
+ :param _request_auth: set to override the auth_settings for an a single
145
+ request; this effectively ignores the
146
+ authentication in the spec for a single request.
147
+ :type _request_auth: dict, optional
148
+ :param _content_type: force content-type for the request.
149
+ :type _content_type: str, Optional
150
+ :param _headers: set to override the headers for a single
151
+ request; this effectively ignores the headers
152
+ in the spec for a single request.
153
+ :type _headers: dict, optional
154
+ :param _host_index: set to override the host_index for a single
155
+ request; this effectively ignores the host_index
156
+ in the spec for a single request.
157
+ :type _host_index: int, optional
158
+ :return: Returns the result object.
159
+ """ # noqa: E501
160
+
161
+ _param = self._create_api_key_serialize(
162
+ create_api_key=create_api_key,
163
+ x_northrays_organization_id=x_northrays_organization_id,
164
+ _request_auth=_request_auth,
165
+ _content_type=_content_type,
166
+ _headers=_headers,
167
+ _host_index=_host_index
168
+ )
169
+
170
+ _response_types_map: Dict[str, Optional[str]] = {
171
+ '201': "ApiKeyResponse",
172
+ }
173
+ response_data = self.api_client.call_api(
174
+ *_param,
175
+ _request_timeout=_request_timeout
176
+ )
177
+ response_data.read()
178
+ return self.api_client.response_deserialize(
179
+ response_data=response_data,
180
+ response_types_map=_response_types_map,
181
+ )
182
+
183
+
184
+ @validate_call
185
+ def create_api_key_without_preload_content(
186
+ self,
187
+ create_api_key: CreateApiKey,
188
+ x_northrays_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
189
+ _request_timeout: Union[
190
+ None,
191
+ Annotated[StrictFloat, Field(gt=0)],
192
+ Tuple[
193
+ Annotated[StrictFloat, Field(gt=0)],
194
+ Annotated[StrictFloat, Field(gt=0)]
195
+ ]
196
+ ] = None,
197
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
198
+ _content_type: Optional[StrictStr] = None,
199
+ _headers: Optional[Dict[StrictStr, Any]] = None,
200
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
201
+ ) -> RESTResponseType:
202
+ """Create API key
203
+
204
+
205
+ :param create_api_key: (required)
206
+ :type create_api_key: CreateApiKey
207
+ :param x_northrays_organization_id: Use with JWT to specify the organization ID
208
+ :type x_northrays_organization_id: str
209
+ :param _request_timeout: timeout setting for this request. If one
210
+ number provided, it will be total request
211
+ timeout. It can also be a pair (tuple) of
212
+ (connection, read) timeouts.
213
+ :type _request_timeout: int, tuple(int, int), optional
214
+ :param _request_auth: set to override the auth_settings for an a single
215
+ request; this effectively ignores the
216
+ authentication in the spec for a single request.
217
+ :type _request_auth: dict, optional
218
+ :param _content_type: force content-type for the request.
219
+ :type _content_type: str, Optional
220
+ :param _headers: set to override the headers for a single
221
+ request; this effectively ignores the headers
222
+ in the spec for a single request.
223
+ :type _headers: dict, optional
224
+ :param _host_index: set to override the host_index for a single
225
+ request; this effectively ignores the host_index
226
+ in the spec for a single request.
227
+ :type _host_index: int, optional
228
+ :return: Returns the result object.
229
+ """ # noqa: E501
230
+
231
+ _param = self._create_api_key_serialize(
232
+ create_api_key=create_api_key,
233
+ x_northrays_organization_id=x_northrays_organization_id,
234
+ _request_auth=_request_auth,
235
+ _content_type=_content_type,
236
+ _headers=_headers,
237
+ _host_index=_host_index
238
+ )
239
+
240
+ _response_types_map: Dict[str, Optional[str]] = {
241
+ '201': "ApiKeyResponse",
242
+ }
243
+ response_data = self.api_client.call_api(
244
+ *_param,
245
+ _request_timeout=_request_timeout
246
+ )
247
+ return response_data.response
248
+
249
+
250
+ def _create_api_key_serialize(
251
+ self,
252
+ create_api_key,
253
+ x_northrays_organization_id,
254
+ _request_auth,
255
+ _content_type,
256
+ _headers,
257
+ _host_index,
258
+ ) -> RequestSerialized:
259
+
260
+ _host = None
261
+
262
+ _collection_formats: Dict[str, str] = {
263
+ }
264
+
265
+ _path_params: Dict[str, str] = {}
266
+ _query_params: List[Tuple[str, str]] = []
267
+ _header_params: Dict[str, Optional[str]] = _headers or {}
268
+ _form_params: List[Tuple[str, str]] = []
269
+ _files: Dict[
270
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
271
+ ] = {}
272
+ _body_params: Optional[bytes] = None
273
+
274
+ # process the path parameters
275
+ # process the query parameters
276
+ # process the header parameters
277
+ if x_northrays_organization_id is not None:
278
+ _header_params['X-Northrays-Organization-ID'] = x_northrays_organization_id
279
+ # process the form parameters
280
+ # process the body parameter
281
+ if create_api_key is not None:
282
+ _body_params = create_api_key
283
+
284
+
285
+ # set the HTTP header `Accept`
286
+ if 'Accept' not in _header_params:
287
+ _header_params['Accept'] = self.api_client.select_header_accept(
288
+ [
289
+ 'application/json'
290
+ ]
291
+ )
292
+
293
+ # set the HTTP header `Content-Type`
294
+ if _content_type:
295
+ _header_params['Content-Type'] = _content_type
296
+ else:
297
+ _default_content_type = (
298
+ self.api_client.select_header_content_type(
299
+ [
300
+ 'application/json'
301
+ ]
302
+ )
303
+ )
304
+ if _default_content_type is not None:
305
+ _header_params['Content-Type'] = _default_content_type
306
+
307
+ # authentication setting
308
+ _auth_settings: List[str] = [
309
+ 'bearer',
310
+ 'oauth2'
311
+ ]
312
+
313
+ return self.api_client.param_serialize(
314
+ method='POST',
315
+ resource_path='/api-keys',
316
+ path_params=_path_params,
317
+ query_params=_query_params,
318
+ header_params=_header_params,
319
+ body=_body_params,
320
+ post_params=_form_params,
321
+ files=_files,
322
+ auth_settings=_auth_settings,
323
+ collection_formats=_collection_formats,
324
+ _host=_host,
325
+ _request_auth=_request_auth
326
+ )
327
+
328
+
329
+
330
+
331
+ @validate_call
332
+ def delete_api_key(
333
+ self,
334
+ name: StrictStr,
335
+ x_northrays_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
336
+ _request_timeout: Union[
337
+ None,
338
+ Annotated[StrictFloat, Field(gt=0)],
339
+ Tuple[
340
+ Annotated[StrictFloat, Field(gt=0)],
341
+ Annotated[StrictFloat, Field(gt=0)]
342
+ ]
343
+ ] = None,
344
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
345
+ _content_type: Optional[StrictStr] = None,
346
+ _headers: Optional[Dict[StrictStr, Any]] = None,
347
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
348
+ ) -> None:
349
+ """Delete API key
350
+
351
+
352
+ :param name: (required)
353
+ :type name: str
354
+ :param x_northrays_organization_id: Use with JWT to specify the organization ID
355
+ :type x_northrays_organization_id: str
356
+ :param _request_timeout: timeout setting for this request. If one
357
+ number provided, it will be total request
358
+ timeout. It can also be a pair (tuple) of
359
+ (connection, read) timeouts.
360
+ :type _request_timeout: int, tuple(int, int), optional
361
+ :param _request_auth: set to override the auth_settings for an a single
362
+ request; this effectively ignores the
363
+ authentication in the spec for a single request.
364
+ :type _request_auth: dict, optional
365
+ :param _content_type: force content-type for the request.
366
+ :type _content_type: str, Optional
367
+ :param _headers: set to override the headers for a single
368
+ request; this effectively ignores the headers
369
+ in the spec for a single request.
370
+ :type _headers: dict, optional
371
+ :param _host_index: set to override the host_index for a single
372
+ request; this effectively ignores the host_index
373
+ in the spec for a single request.
374
+ :type _host_index: int, optional
375
+ :return: Returns the result object.
376
+ """ # noqa: E501
377
+
378
+ _param = self._delete_api_key_serialize(
379
+ name=name,
380
+ x_northrays_organization_id=x_northrays_organization_id,
381
+ _request_auth=_request_auth,
382
+ _content_type=_content_type,
383
+ _headers=_headers,
384
+ _host_index=_host_index
385
+ )
386
+
387
+ _response_types_map: Dict[str, Optional[str]] = {
388
+ '204': None,
389
+ }
390
+ response_data = self.api_client.call_api(
391
+ *_param,
392
+ _request_timeout=_request_timeout
393
+ )
394
+ response_data.read()
395
+ return self.api_client.response_deserialize(
396
+ response_data=response_data,
397
+ response_types_map=_response_types_map,
398
+ ).data
399
+
400
+
401
+ @validate_call
402
+ def delete_api_key_with_http_info(
403
+ self,
404
+ name: StrictStr,
405
+ x_northrays_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
406
+ _request_timeout: Union[
407
+ None,
408
+ Annotated[StrictFloat, Field(gt=0)],
409
+ Tuple[
410
+ Annotated[StrictFloat, Field(gt=0)],
411
+ Annotated[StrictFloat, Field(gt=0)]
412
+ ]
413
+ ] = None,
414
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
415
+ _content_type: Optional[StrictStr] = None,
416
+ _headers: Optional[Dict[StrictStr, Any]] = None,
417
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
418
+ ) -> ApiResponse[None]:
419
+ """Delete API key
420
+
421
+
422
+ :param name: (required)
423
+ :type name: str
424
+ :param x_northrays_organization_id: Use with JWT to specify the organization ID
425
+ :type x_northrays_organization_id: str
426
+ :param _request_timeout: timeout setting for this request. If one
427
+ number provided, it will be total request
428
+ timeout. It can also be a pair (tuple) of
429
+ (connection, read) timeouts.
430
+ :type _request_timeout: int, tuple(int, int), optional
431
+ :param _request_auth: set to override the auth_settings for an a single
432
+ request; this effectively ignores the
433
+ authentication in the spec for a single request.
434
+ :type _request_auth: dict, optional
435
+ :param _content_type: force content-type for the request.
436
+ :type _content_type: str, Optional
437
+ :param _headers: set to override the headers for a single
438
+ request; this effectively ignores the headers
439
+ in the spec for a single request.
440
+ :type _headers: dict, optional
441
+ :param _host_index: set to override the host_index for a single
442
+ request; this effectively ignores the host_index
443
+ in the spec for a single request.
444
+ :type _host_index: int, optional
445
+ :return: Returns the result object.
446
+ """ # noqa: E501
447
+
448
+ _param = self._delete_api_key_serialize(
449
+ name=name,
450
+ x_northrays_organization_id=x_northrays_organization_id,
451
+ _request_auth=_request_auth,
452
+ _content_type=_content_type,
453
+ _headers=_headers,
454
+ _host_index=_host_index
455
+ )
456
+
457
+ _response_types_map: Dict[str, Optional[str]] = {
458
+ '204': None,
459
+ }
460
+ response_data = self.api_client.call_api(
461
+ *_param,
462
+ _request_timeout=_request_timeout
463
+ )
464
+ response_data.read()
465
+ return self.api_client.response_deserialize(
466
+ response_data=response_data,
467
+ response_types_map=_response_types_map,
468
+ )
469
+
470
+
471
+ @validate_call
472
+ def delete_api_key_without_preload_content(
473
+ self,
474
+ name: StrictStr,
475
+ x_northrays_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
476
+ _request_timeout: Union[
477
+ None,
478
+ Annotated[StrictFloat, Field(gt=0)],
479
+ Tuple[
480
+ Annotated[StrictFloat, Field(gt=0)],
481
+ Annotated[StrictFloat, Field(gt=0)]
482
+ ]
483
+ ] = None,
484
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
485
+ _content_type: Optional[StrictStr] = None,
486
+ _headers: Optional[Dict[StrictStr, Any]] = None,
487
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
488
+ ) -> RESTResponseType:
489
+ """Delete API key
490
+
491
+
492
+ :param name: (required)
493
+ :type name: str
494
+ :param x_northrays_organization_id: Use with JWT to specify the organization ID
495
+ :type x_northrays_organization_id: str
496
+ :param _request_timeout: timeout setting for this request. If one
497
+ number provided, it will be total request
498
+ timeout. It can also be a pair (tuple) of
499
+ (connection, read) timeouts.
500
+ :type _request_timeout: int, tuple(int, int), optional
501
+ :param _request_auth: set to override the auth_settings for an a single
502
+ request; this effectively ignores the
503
+ authentication in the spec for a single request.
504
+ :type _request_auth: dict, optional
505
+ :param _content_type: force content-type for the request.
506
+ :type _content_type: str, Optional
507
+ :param _headers: set to override the headers for a single
508
+ request; this effectively ignores the headers
509
+ in the spec for a single request.
510
+ :type _headers: dict, optional
511
+ :param _host_index: set to override the host_index for a single
512
+ request; this effectively ignores the host_index
513
+ in the spec for a single request.
514
+ :type _host_index: int, optional
515
+ :return: Returns the result object.
516
+ """ # noqa: E501
517
+
518
+ _param = self._delete_api_key_serialize(
519
+ name=name,
520
+ x_northrays_organization_id=x_northrays_organization_id,
521
+ _request_auth=_request_auth,
522
+ _content_type=_content_type,
523
+ _headers=_headers,
524
+ _host_index=_host_index
525
+ )
526
+
527
+ _response_types_map: Dict[str, Optional[str]] = {
528
+ '204': None,
529
+ }
530
+ response_data = self.api_client.call_api(
531
+ *_param,
532
+ _request_timeout=_request_timeout
533
+ )
534
+ return response_data.response
535
+
536
+
537
+ def _delete_api_key_serialize(
538
+ self,
539
+ name,
540
+ x_northrays_organization_id,
541
+ _request_auth,
542
+ _content_type,
543
+ _headers,
544
+ _host_index,
545
+ ) -> RequestSerialized:
546
+
547
+ _host = None
548
+
549
+ _collection_formats: Dict[str, str] = {
550
+ }
551
+
552
+ _path_params: Dict[str, str] = {}
553
+ _query_params: List[Tuple[str, str]] = []
554
+ _header_params: Dict[str, Optional[str]] = _headers or {}
555
+ _form_params: List[Tuple[str, str]] = []
556
+ _files: Dict[
557
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
558
+ ] = {}
559
+ _body_params: Optional[bytes] = None
560
+
561
+ # process the path parameters
562
+ if name is not None:
563
+ _path_params['name'] = name
564
+ # process the query parameters
565
+ # process the header parameters
566
+ if x_northrays_organization_id is not None:
567
+ _header_params['X-Northrays-Organization-ID'] = x_northrays_organization_id
568
+ # process the form parameters
569
+ # process the body parameter
570
+
571
+
572
+
573
+
574
+ # authentication setting
575
+ _auth_settings: List[str] = [
576
+ 'bearer',
577
+ 'oauth2'
578
+ ]
579
+
580
+ return self.api_client.param_serialize(
581
+ method='DELETE',
582
+ resource_path='/api-keys/{name}',
583
+ path_params=_path_params,
584
+ query_params=_query_params,
585
+ header_params=_header_params,
586
+ body=_body_params,
587
+ post_params=_form_params,
588
+ files=_files,
589
+ auth_settings=_auth_settings,
590
+ collection_formats=_collection_formats,
591
+ _host=_host,
592
+ _request_auth=_request_auth
593
+ )
594
+
595
+
596
+
597
+
598
+ @validate_call
599
+ def delete_api_key_for_user(
600
+ self,
601
+ user_id: StrictStr,
602
+ name: StrictStr,
603
+ x_northrays_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
604
+ _request_timeout: Union[
605
+ None,
606
+ Annotated[StrictFloat, Field(gt=0)],
607
+ Tuple[
608
+ Annotated[StrictFloat, Field(gt=0)],
609
+ Annotated[StrictFloat, Field(gt=0)]
610
+ ]
611
+ ] = None,
612
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
613
+ _content_type: Optional[StrictStr] = None,
614
+ _headers: Optional[Dict[StrictStr, Any]] = None,
615
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
616
+ ) -> None:
617
+ """Delete API key for user
618
+
619
+
620
+ :param user_id: (required)
621
+ :type user_id: str
622
+ :param name: (required)
623
+ :type name: str
624
+ :param x_northrays_organization_id: Use with JWT to specify the organization ID
625
+ :type x_northrays_organization_id: str
626
+ :param _request_timeout: timeout setting for this request. If one
627
+ number provided, it will be total request
628
+ timeout. It can also be a pair (tuple) of
629
+ (connection, read) timeouts.
630
+ :type _request_timeout: int, tuple(int, int), optional
631
+ :param _request_auth: set to override the auth_settings for an a single
632
+ request; this effectively ignores the
633
+ authentication in the spec for a single request.
634
+ :type _request_auth: dict, optional
635
+ :param _content_type: force content-type for the request.
636
+ :type _content_type: str, Optional
637
+ :param _headers: set to override the headers for a single
638
+ request; this effectively ignores the headers
639
+ in the spec for a single request.
640
+ :type _headers: dict, optional
641
+ :param _host_index: set to override the host_index for a single
642
+ request; this effectively ignores the host_index
643
+ in the spec for a single request.
644
+ :type _host_index: int, optional
645
+ :return: Returns the result object.
646
+ """ # noqa: E501
647
+
648
+ _param = self._delete_api_key_for_user_serialize(
649
+ user_id=user_id,
650
+ name=name,
651
+ x_northrays_organization_id=x_northrays_organization_id,
652
+ _request_auth=_request_auth,
653
+ _content_type=_content_type,
654
+ _headers=_headers,
655
+ _host_index=_host_index
656
+ )
657
+
658
+ _response_types_map: Dict[str, Optional[str]] = {
659
+ '204': None,
660
+ }
661
+ response_data = self.api_client.call_api(
662
+ *_param,
663
+ _request_timeout=_request_timeout
664
+ )
665
+ response_data.read()
666
+ return self.api_client.response_deserialize(
667
+ response_data=response_data,
668
+ response_types_map=_response_types_map,
669
+ ).data
670
+
671
+
672
+ @validate_call
673
+ def delete_api_key_for_user_with_http_info(
674
+ self,
675
+ user_id: StrictStr,
676
+ name: StrictStr,
677
+ x_northrays_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
678
+ _request_timeout: Union[
679
+ None,
680
+ Annotated[StrictFloat, Field(gt=0)],
681
+ Tuple[
682
+ Annotated[StrictFloat, Field(gt=0)],
683
+ Annotated[StrictFloat, Field(gt=0)]
684
+ ]
685
+ ] = None,
686
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
687
+ _content_type: Optional[StrictStr] = None,
688
+ _headers: Optional[Dict[StrictStr, Any]] = None,
689
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
690
+ ) -> ApiResponse[None]:
691
+ """Delete API key for user
692
+
693
+
694
+ :param user_id: (required)
695
+ :type user_id: str
696
+ :param name: (required)
697
+ :type name: str
698
+ :param x_northrays_organization_id: Use with JWT to specify the organization ID
699
+ :type x_northrays_organization_id: str
700
+ :param _request_timeout: timeout setting for this request. If one
701
+ number provided, it will be total request
702
+ timeout. It can also be a pair (tuple) of
703
+ (connection, read) timeouts.
704
+ :type _request_timeout: int, tuple(int, int), optional
705
+ :param _request_auth: set to override the auth_settings for an a single
706
+ request; this effectively ignores the
707
+ authentication in the spec for a single request.
708
+ :type _request_auth: dict, optional
709
+ :param _content_type: force content-type for the request.
710
+ :type _content_type: str, Optional
711
+ :param _headers: set to override the headers for a single
712
+ request; this effectively ignores the headers
713
+ in the spec for a single request.
714
+ :type _headers: dict, optional
715
+ :param _host_index: set to override the host_index for a single
716
+ request; this effectively ignores the host_index
717
+ in the spec for a single request.
718
+ :type _host_index: int, optional
719
+ :return: Returns the result object.
720
+ """ # noqa: E501
721
+
722
+ _param = self._delete_api_key_for_user_serialize(
723
+ user_id=user_id,
724
+ name=name,
725
+ x_northrays_organization_id=x_northrays_organization_id,
726
+ _request_auth=_request_auth,
727
+ _content_type=_content_type,
728
+ _headers=_headers,
729
+ _host_index=_host_index
730
+ )
731
+
732
+ _response_types_map: Dict[str, Optional[str]] = {
733
+ '204': None,
734
+ }
735
+ response_data = self.api_client.call_api(
736
+ *_param,
737
+ _request_timeout=_request_timeout
738
+ )
739
+ response_data.read()
740
+ return self.api_client.response_deserialize(
741
+ response_data=response_data,
742
+ response_types_map=_response_types_map,
743
+ )
744
+
745
+
746
+ @validate_call
747
+ def delete_api_key_for_user_without_preload_content(
748
+ self,
749
+ user_id: StrictStr,
750
+ name: StrictStr,
751
+ x_northrays_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
752
+ _request_timeout: Union[
753
+ None,
754
+ Annotated[StrictFloat, Field(gt=0)],
755
+ Tuple[
756
+ Annotated[StrictFloat, Field(gt=0)],
757
+ Annotated[StrictFloat, Field(gt=0)]
758
+ ]
759
+ ] = None,
760
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
761
+ _content_type: Optional[StrictStr] = None,
762
+ _headers: Optional[Dict[StrictStr, Any]] = None,
763
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
764
+ ) -> RESTResponseType:
765
+ """Delete API key for user
766
+
767
+
768
+ :param user_id: (required)
769
+ :type user_id: str
770
+ :param name: (required)
771
+ :type name: str
772
+ :param x_northrays_organization_id: Use with JWT to specify the organization ID
773
+ :type x_northrays_organization_id: str
774
+ :param _request_timeout: timeout setting for this request. If one
775
+ number provided, it will be total request
776
+ timeout. It can also be a pair (tuple) of
777
+ (connection, read) timeouts.
778
+ :type _request_timeout: int, tuple(int, int), optional
779
+ :param _request_auth: set to override the auth_settings for an a single
780
+ request; this effectively ignores the
781
+ authentication in the spec for a single request.
782
+ :type _request_auth: dict, optional
783
+ :param _content_type: force content-type for the request.
784
+ :type _content_type: str, Optional
785
+ :param _headers: set to override the headers for a single
786
+ request; this effectively ignores the headers
787
+ in the spec for a single request.
788
+ :type _headers: dict, optional
789
+ :param _host_index: set to override the host_index for a single
790
+ request; this effectively ignores the host_index
791
+ in the spec for a single request.
792
+ :type _host_index: int, optional
793
+ :return: Returns the result object.
794
+ """ # noqa: E501
795
+
796
+ _param = self._delete_api_key_for_user_serialize(
797
+ user_id=user_id,
798
+ name=name,
799
+ x_northrays_organization_id=x_northrays_organization_id,
800
+ _request_auth=_request_auth,
801
+ _content_type=_content_type,
802
+ _headers=_headers,
803
+ _host_index=_host_index
804
+ )
805
+
806
+ _response_types_map: Dict[str, Optional[str]] = {
807
+ '204': None,
808
+ }
809
+ response_data = self.api_client.call_api(
810
+ *_param,
811
+ _request_timeout=_request_timeout
812
+ )
813
+ return response_data.response
814
+
815
+
816
+ def _delete_api_key_for_user_serialize(
817
+ self,
818
+ user_id,
819
+ name,
820
+ x_northrays_organization_id,
821
+ _request_auth,
822
+ _content_type,
823
+ _headers,
824
+ _host_index,
825
+ ) -> RequestSerialized:
826
+
827
+ _host = None
828
+
829
+ _collection_formats: Dict[str, str] = {
830
+ }
831
+
832
+ _path_params: Dict[str, str] = {}
833
+ _query_params: List[Tuple[str, str]] = []
834
+ _header_params: Dict[str, Optional[str]] = _headers or {}
835
+ _form_params: List[Tuple[str, str]] = []
836
+ _files: Dict[
837
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
838
+ ] = {}
839
+ _body_params: Optional[bytes] = None
840
+
841
+ # process the path parameters
842
+ if user_id is not None:
843
+ _path_params['userId'] = user_id
844
+ if name is not None:
845
+ _path_params['name'] = name
846
+ # process the query parameters
847
+ # process the header parameters
848
+ if x_northrays_organization_id is not None:
849
+ _header_params['X-Northrays-Organization-ID'] = x_northrays_organization_id
850
+ # process the form parameters
851
+ # process the body parameter
852
+
853
+
854
+
855
+
856
+ # authentication setting
857
+ _auth_settings: List[str] = [
858
+ 'bearer',
859
+ 'oauth2'
860
+ ]
861
+
862
+ return self.api_client.param_serialize(
863
+ method='DELETE',
864
+ resource_path='/api-keys/{userId}/{name}',
865
+ path_params=_path_params,
866
+ query_params=_query_params,
867
+ header_params=_header_params,
868
+ body=_body_params,
869
+ post_params=_form_params,
870
+ files=_files,
871
+ auth_settings=_auth_settings,
872
+ collection_formats=_collection_formats,
873
+ _host=_host,
874
+ _request_auth=_request_auth
875
+ )
876
+
877
+
878
+
879
+
880
+ @validate_call
881
+ def get_api_key(
882
+ self,
883
+ name: StrictStr,
884
+ x_northrays_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
885
+ _request_timeout: Union[
886
+ None,
887
+ Annotated[StrictFloat, Field(gt=0)],
888
+ Tuple[
889
+ Annotated[StrictFloat, Field(gt=0)],
890
+ Annotated[StrictFloat, Field(gt=0)]
891
+ ]
892
+ ] = None,
893
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
894
+ _content_type: Optional[StrictStr] = None,
895
+ _headers: Optional[Dict[StrictStr, Any]] = None,
896
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
897
+ ) -> ApiKeyList:
898
+ """Get API key
899
+
900
+
901
+ :param name: (required)
902
+ :type name: str
903
+ :param x_northrays_organization_id: Use with JWT to specify the organization ID
904
+ :type x_northrays_organization_id: str
905
+ :param _request_timeout: timeout setting for this request. If one
906
+ number provided, it will be total request
907
+ timeout. It can also be a pair (tuple) of
908
+ (connection, read) timeouts.
909
+ :type _request_timeout: int, tuple(int, int), optional
910
+ :param _request_auth: set to override the auth_settings for an a single
911
+ request; this effectively ignores the
912
+ authentication in the spec for a single request.
913
+ :type _request_auth: dict, optional
914
+ :param _content_type: force content-type for the request.
915
+ :type _content_type: str, Optional
916
+ :param _headers: set to override the headers for a single
917
+ request; this effectively ignores the headers
918
+ in the spec for a single request.
919
+ :type _headers: dict, optional
920
+ :param _host_index: set to override the host_index for a single
921
+ request; this effectively ignores the host_index
922
+ in the spec for a single request.
923
+ :type _host_index: int, optional
924
+ :return: Returns the result object.
925
+ """ # noqa: E501
926
+
927
+ _param = self._get_api_key_serialize(
928
+ name=name,
929
+ x_northrays_organization_id=x_northrays_organization_id,
930
+ _request_auth=_request_auth,
931
+ _content_type=_content_type,
932
+ _headers=_headers,
933
+ _host_index=_host_index
934
+ )
935
+
936
+ _response_types_map: Dict[str, Optional[str]] = {
937
+ '200': "ApiKeyList",
938
+ }
939
+ response_data = self.api_client.call_api(
940
+ *_param,
941
+ _request_timeout=_request_timeout
942
+ )
943
+ response_data.read()
944
+ return self.api_client.response_deserialize(
945
+ response_data=response_data,
946
+ response_types_map=_response_types_map,
947
+ ).data
948
+
949
+
950
+ @validate_call
951
+ def get_api_key_with_http_info(
952
+ self,
953
+ name: StrictStr,
954
+ x_northrays_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
955
+ _request_timeout: Union[
956
+ None,
957
+ Annotated[StrictFloat, Field(gt=0)],
958
+ Tuple[
959
+ Annotated[StrictFloat, Field(gt=0)],
960
+ Annotated[StrictFloat, Field(gt=0)]
961
+ ]
962
+ ] = None,
963
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
964
+ _content_type: Optional[StrictStr] = None,
965
+ _headers: Optional[Dict[StrictStr, Any]] = None,
966
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
967
+ ) -> ApiResponse[ApiKeyList]:
968
+ """Get API key
969
+
970
+
971
+ :param name: (required)
972
+ :type name: str
973
+ :param x_northrays_organization_id: Use with JWT to specify the organization ID
974
+ :type x_northrays_organization_id: str
975
+ :param _request_timeout: timeout setting for this request. If one
976
+ number provided, it will be total request
977
+ timeout. It can also be a pair (tuple) of
978
+ (connection, read) timeouts.
979
+ :type _request_timeout: int, tuple(int, int), optional
980
+ :param _request_auth: set to override the auth_settings for an a single
981
+ request; this effectively ignores the
982
+ authentication in the spec for a single request.
983
+ :type _request_auth: dict, optional
984
+ :param _content_type: force content-type for the request.
985
+ :type _content_type: str, Optional
986
+ :param _headers: set to override the headers for a single
987
+ request; this effectively ignores the headers
988
+ in the spec for a single request.
989
+ :type _headers: dict, optional
990
+ :param _host_index: set to override the host_index for a single
991
+ request; this effectively ignores the host_index
992
+ in the spec for a single request.
993
+ :type _host_index: int, optional
994
+ :return: Returns the result object.
995
+ """ # noqa: E501
996
+
997
+ _param = self._get_api_key_serialize(
998
+ name=name,
999
+ x_northrays_organization_id=x_northrays_organization_id,
1000
+ _request_auth=_request_auth,
1001
+ _content_type=_content_type,
1002
+ _headers=_headers,
1003
+ _host_index=_host_index
1004
+ )
1005
+
1006
+ _response_types_map: Dict[str, Optional[str]] = {
1007
+ '200': "ApiKeyList",
1008
+ }
1009
+ response_data = self.api_client.call_api(
1010
+ *_param,
1011
+ _request_timeout=_request_timeout
1012
+ )
1013
+ response_data.read()
1014
+ return self.api_client.response_deserialize(
1015
+ response_data=response_data,
1016
+ response_types_map=_response_types_map,
1017
+ )
1018
+
1019
+
1020
+ @validate_call
1021
+ def get_api_key_without_preload_content(
1022
+ self,
1023
+ name: StrictStr,
1024
+ x_northrays_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
1025
+ _request_timeout: Union[
1026
+ None,
1027
+ Annotated[StrictFloat, Field(gt=0)],
1028
+ Tuple[
1029
+ Annotated[StrictFloat, Field(gt=0)],
1030
+ Annotated[StrictFloat, Field(gt=0)]
1031
+ ]
1032
+ ] = None,
1033
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1034
+ _content_type: Optional[StrictStr] = None,
1035
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1036
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1037
+ ) -> RESTResponseType:
1038
+ """Get API key
1039
+
1040
+
1041
+ :param name: (required)
1042
+ :type name: str
1043
+ :param x_northrays_organization_id: Use with JWT to specify the organization ID
1044
+ :type x_northrays_organization_id: str
1045
+ :param _request_timeout: timeout setting for this request. If one
1046
+ number provided, it will be total request
1047
+ timeout. It can also be a pair (tuple) of
1048
+ (connection, read) timeouts.
1049
+ :type _request_timeout: int, tuple(int, int), optional
1050
+ :param _request_auth: set to override the auth_settings for an a single
1051
+ request; this effectively ignores the
1052
+ authentication in the spec for a single request.
1053
+ :type _request_auth: dict, optional
1054
+ :param _content_type: force content-type for the request.
1055
+ :type _content_type: str, Optional
1056
+ :param _headers: set to override the headers for a single
1057
+ request; this effectively ignores the headers
1058
+ in the spec for a single request.
1059
+ :type _headers: dict, optional
1060
+ :param _host_index: set to override the host_index for a single
1061
+ request; this effectively ignores the host_index
1062
+ in the spec for a single request.
1063
+ :type _host_index: int, optional
1064
+ :return: Returns the result object.
1065
+ """ # noqa: E501
1066
+
1067
+ _param = self._get_api_key_serialize(
1068
+ name=name,
1069
+ x_northrays_organization_id=x_northrays_organization_id,
1070
+ _request_auth=_request_auth,
1071
+ _content_type=_content_type,
1072
+ _headers=_headers,
1073
+ _host_index=_host_index
1074
+ )
1075
+
1076
+ _response_types_map: Dict[str, Optional[str]] = {
1077
+ '200': "ApiKeyList",
1078
+ }
1079
+ response_data = self.api_client.call_api(
1080
+ *_param,
1081
+ _request_timeout=_request_timeout
1082
+ )
1083
+ return response_data.response
1084
+
1085
+
1086
+ def _get_api_key_serialize(
1087
+ self,
1088
+ name,
1089
+ x_northrays_organization_id,
1090
+ _request_auth,
1091
+ _content_type,
1092
+ _headers,
1093
+ _host_index,
1094
+ ) -> RequestSerialized:
1095
+
1096
+ _host = None
1097
+
1098
+ _collection_formats: Dict[str, str] = {
1099
+ }
1100
+
1101
+ _path_params: Dict[str, str] = {}
1102
+ _query_params: List[Tuple[str, str]] = []
1103
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1104
+ _form_params: List[Tuple[str, str]] = []
1105
+ _files: Dict[
1106
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1107
+ ] = {}
1108
+ _body_params: Optional[bytes] = None
1109
+
1110
+ # process the path parameters
1111
+ if name is not None:
1112
+ _path_params['name'] = name
1113
+ # process the query parameters
1114
+ # process the header parameters
1115
+ if x_northrays_organization_id is not None:
1116
+ _header_params['X-Northrays-Organization-ID'] = x_northrays_organization_id
1117
+ # process the form parameters
1118
+ # process the body parameter
1119
+
1120
+
1121
+ # set the HTTP header `Accept`
1122
+ if 'Accept' not in _header_params:
1123
+ _header_params['Accept'] = self.api_client.select_header_accept(
1124
+ [
1125
+ 'application/json'
1126
+ ]
1127
+ )
1128
+
1129
+
1130
+ # authentication setting
1131
+ _auth_settings: List[str] = [
1132
+ 'bearer',
1133
+ 'oauth2'
1134
+ ]
1135
+
1136
+ return self.api_client.param_serialize(
1137
+ method='GET',
1138
+ resource_path='/api-keys/{name}',
1139
+ path_params=_path_params,
1140
+ query_params=_query_params,
1141
+ header_params=_header_params,
1142
+ body=_body_params,
1143
+ post_params=_form_params,
1144
+ files=_files,
1145
+ auth_settings=_auth_settings,
1146
+ collection_formats=_collection_formats,
1147
+ _host=_host,
1148
+ _request_auth=_request_auth
1149
+ )
1150
+
1151
+
1152
+
1153
+
1154
+ @validate_call
1155
+ def get_current_api_key(
1156
+ self,
1157
+ x_northrays_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
1158
+ _request_timeout: Union[
1159
+ None,
1160
+ Annotated[StrictFloat, Field(gt=0)],
1161
+ Tuple[
1162
+ Annotated[StrictFloat, Field(gt=0)],
1163
+ Annotated[StrictFloat, Field(gt=0)]
1164
+ ]
1165
+ ] = None,
1166
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1167
+ _content_type: Optional[StrictStr] = None,
1168
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1169
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1170
+ ) -> ApiKeyList:
1171
+ """Get current API key's details
1172
+
1173
+
1174
+ :param x_northrays_organization_id: Use with JWT to specify the organization ID
1175
+ :type x_northrays_organization_id: str
1176
+ :param _request_timeout: timeout setting for this request. If one
1177
+ number provided, it will be total request
1178
+ timeout. It can also be a pair (tuple) of
1179
+ (connection, read) timeouts.
1180
+ :type _request_timeout: int, tuple(int, int), optional
1181
+ :param _request_auth: set to override the auth_settings for an a single
1182
+ request; this effectively ignores the
1183
+ authentication in the spec for a single request.
1184
+ :type _request_auth: dict, optional
1185
+ :param _content_type: force content-type for the request.
1186
+ :type _content_type: str, Optional
1187
+ :param _headers: set to override the headers for a single
1188
+ request; this effectively ignores the headers
1189
+ in the spec for a single request.
1190
+ :type _headers: dict, optional
1191
+ :param _host_index: set to override the host_index for a single
1192
+ request; this effectively ignores the host_index
1193
+ in the spec for a single request.
1194
+ :type _host_index: int, optional
1195
+ :return: Returns the result object.
1196
+ """ # noqa: E501
1197
+
1198
+ _param = self._get_current_api_key_serialize(
1199
+ x_northrays_organization_id=x_northrays_organization_id,
1200
+ _request_auth=_request_auth,
1201
+ _content_type=_content_type,
1202
+ _headers=_headers,
1203
+ _host_index=_host_index
1204
+ )
1205
+
1206
+ _response_types_map: Dict[str, Optional[str]] = {
1207
+ '200': "ApiKeyList",
1208
+ }
1209
+ response_data = self.api_client.call_api(
1210
+ *_param,
1211
+ _request_timeout=_request_timeout
1212
+ )
1213
+ response_data.read()
1214
+ return self.api_client.response_deserialize(
1215
+ response_data=response_data,
1216
+ response_types_map=_response_types_map,
1217
+ ).data
1218
+
1219
+
1220
+ @validate_call
1221
+ def get_current_api_key_with_http_info(
1222
+ self,
1223
+ x_northrays_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
1224
+ _request_timeout: Union[
1225
+ None,
1226
+ Annotated[StrictFloat, Field(gt=0)],
1227
+ Tuple[
1228
+ Annotated[StrictFloat, Field(gt=0)],
1229
+ Annotated[StrictFloat, Field(gt=0)]
1230
+ ]
1231
+ ] = None,
1232
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1233
+ _content_type: Optional[StrictStr] = None,
1234
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1235
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1236
+ ) -> ApiResponse[ApiKeyList]:
1237
+ """Get current API key's details
1238
+
1239
+
1240
+ :param x_northrays_organization_id: Use with JWT to specify the organization ID
1241
+ :type x_northrays_organization_id: str
1242
+ :param _request_timeout: timeout setting for this request. If one
1243
+ number provided, it will be total request
1244
+ timeout. It can also be a pair (tuple) of
1245
+ (connection, read) timeouts.
1246
+ :type _request_timeout: int, tuple(int, int), optional
1247
+ :param _request_auth: set to override the auth_settings for an a single
1248
+ request; this effectively ignores the
1249
+ authentication in the spec for a single request.
1250
+ :type _request_auth: dict, optional
1251
+ :param _content_type: force content-type for the request.
1252
+ :type _content_type: str, Optional
1253
+ :param _headers: set to override the headers for a single
1254
+ request; this effectively ignores the headers
1255
+ in the spec for a single request.
1256
+ :type _headers: dict, optional
1257
+ :param _host_index: set to override the host_index for a single
1258
+ request; this effectively ignores the host_index
1259
+ in the spec for a single request.
1260
+ :type _host_index: int, optional
1261
+ :return: Returns the result object.
1262
+ """ # noqa: E501
1263
+
1264
+ _param = self._get_current_api_key_serialize(
1265
+ x_northrays_organization_id=x_northrays_organization_id,
1266
+ _request_auth=_request_auth,
1267
+ _content_type=_content_type,
1268
+ _headers=_headers,
1269
+ _host_index=_host_index
1270
+ )
1271
+
1272
+ _response_types_map: Dict[str, Optional[str]] = {
1273
+ '200': "ApiKeyList",
1274
+ }
1275
+ response_data = self.api_client.call_api(
1276
+ *_param,
1277
+ _request_timeout=_request_timeout
1278
+ )
1279
+ response_data.read()
1280
+ return self.api_client.response_deserialize(
1281
+ response_data=response_data,
1282
+ response_types_map=_response_types_map,
1283
+ )
1284
+
1285
+
1286
+ @validate_call
1287
+ def get_current_api_key_without_preload_content(
1288
+ self,
1289
+ x_northrays_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
1290
+ _request_timeout: Union[
1291
+ None,
1292
+ Annotated[StrictFloat, Field(gt=0)],
1293
+ Tuple[
1294
+ Annotated[StrictFloat, Field(gt=0)],
1295
+ Annotated[StrictFloat, Field(gt=0)]
1296
+ ]
1297
+ ] = None,
1298
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1299
+ _content_type: Optional[StrictStr] = None,
1300
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1301
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1302
+ ) -> RESTResponseType:
1303
+ """Get current API key's details
1304
+
1305
+
1306
+ :param x_northrays_organization_id: Use with JWT to specify the organization ID
1307
+ :type x_northrays_organization_id: str
1308
+ :param _request_timeout: timeout setting for this request. If one
1309
+ number provided, it will be total request
1310
+ timeout. It can also be a pair (tuple) of
1311
+ (connection, read) timeouts.
1312
+ :type _request_timeout: int, tuple(int, int), optional
1313
+ :param _request_auth: set to override the auth_settings for an a single
1314
+ request; this effectively ignores the
1315
+ authentication in the spec for a single request.
1316
+ :type _request_auth: dict, optional
1317
+ :param _content_type: force content-type for the request.
1318
+ :type _content_type: str, Optional
1319
+ :param _headers: set to override the headers for a single
1320
+ request; this effectively ignores the headers
1321
+ in the spec for a single request.
1322
+ :type _headers: dict, optional
1323
+ :param _host_index: set to override the host_index for a single
1324
+ request; this effectively ignores the host_index
1325
+ in the spec for a single request.
1326
+ :type _host_index: int, optional
1327
+ :return: Returns the result object.
1328
+ """ # noqa: E501
1329
+
1330
+ _param = self._get_current_api_key_serialize(
1331
+ x_northrays_organization_id=x_northrays_organization_id,
1332
+ _request_auth=_request_auth,
1333
+ _content_type=_content_type,
1334
+ _headers=_headers,
1335
+ _host_index=_host_index
1336
+ )
1337
+
1338
+ _response_types_map: Dict[str, Optional[str]] = {
1339
+ '200': "ApiKeyList",
1340
+ }
1341
+ response_data = self.api_client.call_api(
1342
+ *_param,
1343
+ _request_timeout=_request_timeout
1344
+ )
1345
+ return response_data.response
1346
+
1347
+
1348
+ def _get_current_api_key_serialize(
1349
+ self,
1350
+ x_northrays_organization_id,
1351
+ _request_auth,
1352
+ _content_type,
1353
+ _headers,
1354
+ _host_index,
1355
+ ) -> RequestSerialized:
1356
+
1357
+ _host = None
1358
+
1359
+ _collection_formats: Dict[str, str] = {
1360
+ }
1361
+
1362
+ _path_params: Dict[str, str] = {}
1363
+ _query_params: List[Tuple[str, str]] = []
1364
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1365
+ _form_params: List[Tuple[str, str]] = []
1366
+ _files: Dict[
1367
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1368
+ ] = {}
1369
+ _body_params: Optional[bytes] = None
1370
+
1371
+ # process the path parameters
1372
+ # process the query parameters
1373
+ # process the header parameters
1374
+ if x_northrays_organization_id is not None:
1375
+ _header_params['X-Northrays-Organization-ID'] = x_northrays_organization_id
1376
+ # process the form parameters
1377
+ # process the body parameter
1378
+
1379
+
1380
+ # set the HTTP header `Accept`
1381
+ if 'Accept' not in _header_params:
1382
+ _header_params['Accept'] = self.api_client.select_header_accept(
1383
+ [
1384
+ 'application/json'
1385
+ ]
1386
+ )
1387
+
1388
+
1389
+ # authentication setting
1390
+ _auth_settings: List[str] = [
1391
+ 'bearer',
1392
+ 'oauth2'
1393
+ ]
1394
+
1395
+ return self.api_client.param_serialize(
1396
+ method='GET',
1397
+ resource_path='/api-keys/current',
1398
+ path_params=_path_params,
1399
+ query_params=_query_params,
1400
+ header_params=_header_params,
1401
+ body=_body_params,
1402
+ post_params=_form_params,
1403
+ files=_files,
1404
+ auth_settings=_auth_settings,
1405
+ collection_formats=_collection_formats,
1406
+ _host=_host,
1407
+ _request_auth=_request_auth
1408
+ )
1409
+
1410
+
1411
+
1412
+
1413
+ @validate_call
1414
+ def list_api_keys(
1415
+ self,
1416
+ x_northrays_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
1417
+ _request_timeout: Union[
1418
+ None,
1419
+ Annotated[StrictFloat, Field(gt=0)],
1420
+ Tuple[
1421
+ Annotated[StrictFloat, Field(gt=0)],
1422
+ Annotated[StrictFloat, Field(gt=0)]
1423
+ ]
1424
+ ] = None,
1425
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1426
+ _content_type: Optional[StrictStr] = None,
1427
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1428
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1429
+ ) -> List[ApiKeyList]:
1430
+ """List API keys
1431
+
1432
+
1433
+ :param x_northrays_organization_id: Use with JWT to specify the organization ID
1434
+ :type x_northrays_organization_id: str
1435
+ :param _request_timeout: timeout setting for this request. If one
1436
+ number provided, it will be total request
1437
+ timeout. It can also be a pair (tuple) of
1438
+ (connection, read) timeouts.
1439
+ :type _request_timeout: int, tuple(int, int), optional
1440
+ :param _request_auth: set to override the auth_settings for an a single
1441
+ request; this effectively ignores the
1442
+ authentication in the spec for a single request.
1443
+ :type _request_auth: dict, optional
1444
+ :param _content_type: force content-type for the request.
1445
+ :type _content_type: str, Optional
1446
+ :param _headers: set to override the headers for a single
1447
+ request; this effectively ignores the headers
1448
+ in the spec for a single request.
1449
+ :type _headers: dict, optional
1450
+ :param _host_index: set to override the host_index for a single
1451
+ request; this effectively ignores the host_index
1452
+ in the spec for a single request.
1453
+ :type _host_index: int, optional
1454
+ :return: Returns the result object.
1455
+ """ # noqa: E501
1456
+
1457
+ _param = self._list_api_keys_serialize(
1458
+ x_northrays_organization_id=x_northrays_organization_id,
1459
+ _request_auth=_request_auth,
1460
+ _content_type=_content_type,
1461
+ _headers=_headers,
1462
+ _host_index=_host_index
1463
+ )
1464
+
1465
+ _response_types_map: Dict[str, Optional[str]] = {
1466
+ '200': "List[ApiKeyList]",
1467
+ '500': None,
1468
+ }
1469
+ response_data = self.api_client.call_api(
1470
+ *_param,
1471
+ _request_timeout=_request_timeout
1472
+ )
1473
+ response_data.read()
1474
+ return self.api_client.response_deserialize(
1475
+ response_data=response_data,
1476
+ response_types_map=_response_types_map,
1477
+ ).data
1478
+
1479
+
1480
+ @validate_call
1481
+ def list_api_keys_with_http_info(
1482
+ self,
1483
+ x_northrays_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
1484
+ _request_timeout: Union[
1485
+ None,
1486
+ Annotated[StrictFloat, Field(gt=0)],
1487
+ Tuple[
1488
+ Annotated[StrictFloat, Field(gt=0)],
1489
+ Annotated[StrictFloat, Field(gt=0)]
1490
+ ]
1491
+ ] = None,
1492
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1493
+ _content_type: Optional[StrictStr] = None,
1494
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1495
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1496
+ ) -> ApiResponse[List[ApiKeyList]]:
1497
+ """List API keys
1498
+
1499
+
1500
+ :param x_northrays_organization_id: Use with JWT to specify the organization ID
1501
+ :type x_northrays_organization_id: str
1502
+ :param _request_timeout: timeout setting for this request. If one
1503
+ number provided, it will be total request
1504
+ timeout. It can also be a pair (tuple) of
1505
+ (connection, read) timeouts.
1506
+ :type _request_timeout: int, tuple(int, int), optional
1507
+ :param _request_auth: set to override the auth_settings for an a single
1508
+ request; this effectively ignores the
1509
+ authentication in the spec for a single request.
1510
+ :type _request_auth: dict, optional
1511
+ :param _content_type: force content-type for the request.
1512
+ :type _content_type: str, Optional
1513
+ :param _headers: set to override the headers for a single
1514
+ request; this effectively ignores the headers
1515
+ in the spec for a single request.
1516
+ :type _headers: dict, optional
1517
+ :param _host_index: set to override the host_index for a single
1518
+ request; this effectively ignores the host_index
1519
+ in the spec for a single request.
1520
+ :type _host_index: int, optional
1521
+ :return: Returns the result object.
1522
+ """ # noqa: E501
1523
+
1524
+ _param = self._list_api_keys_serialize(
1525
+ x_northrays_organization_id=x_northrays_organization_id,
1526
+ _request_auth=_request_auth,
1527
+ _content_type=_content_type,
1528
+ _headers=_headers,
1529
+ _host_index=_host_index
1530
+ )
1531
+
1532
+ _response_types_map: Dict[str, Optional[str]] = {
1533
+ '200': "List[ApiKeyList]",
1534
+ '500': None,
1535
+ }
1536
+ response_data = self.api_client.call_api(
1537
+ *_param,
1538
+ _request_timeout=_request_timeout
1539
+ )
1540
+ response_data.read()
1541
+ return self.api_client.response_deserialize(
1542
+ response_data=response_data,
1543
+ response_types_map=_response_types_map,
1544
+ )
1545
+
1546
+
1547
+ @validate_call
1548
+ def list_api_keys_without_preload_content(
1549
+ self,
1550
+ x_northrays_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
1551
+ _request_timeout: Union[
1552
+ None,
1553
+ Annotated[StrictFloat, Field(gt=0)],
1554
+ Tuple[
1555
+ Annotated[StrictFloat, Field(gt=0)],
1556
+ Annotated[StrictFloat, Field(gt=0)]
1557
+ ]
1558
+ ] = None,
1559
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1560
+ _content_type: Optional[StrictStr] = None,
1561
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1562
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1563
+ ) -> RESTResponseType:
1564
+ """List API keys
1565
+
1566
+
1567
+ :param x_northrays_organization_id: Use with JWT to specify the organization ID
1568
+ :type x_northrays_organization_id: str
1569
+ :param _request_timeout: timeout setting for this request. If one
1570
+ number provided, it will be total request
1571
+ timeout. It can also be a pair (tuple) of
1572
+ (connection, read) timeouts.
1573
+ :type _request_timeout: int, tuple(int, int), optional
1574
+ :param _request_auth: set to override the auth_settings for an a single
1575
+ request; this effectively ignores the
1576
+ authentication in the spec for a single request.
1577
+ :type _request_auth: dict, optional
1578
+ :param _content_type: force content-type for the request.
1579
+ :type _content_type: str, Optional
1580
+ :param _headers: set to override the headers for a single
1581
+ request; this effectively ignores the headers
1582
+ in the spec for a single request.
1583
+ :type _headers: dict, optional
1584
+ :param _host_index: set to override the host_index for a single
1585
+ request; this effectively ignores the host_index
1586
+ in the spec for a single request.
1587
+ :type _host_index: int, optional
1588
+ :return: Returns the result object.
1589
+ """ # noqa: E501
1590
+
1591
+ _param = self._list_api_keys_serialize(
1592
+ x_northrays_organization_id=x_northrays_organization_id,
1593
+ _request_auth=_request_auth,
1594
+ _content_type=_content_type,
1595
+ _headers=_headers,
1596
+ _host_index=_host_index
1597
+ )
1598
+
1599
+ _response_types_map: Dict[str, Optional[str]] = {
1600
+ '200': "List[ApiKeyList]",
1601
+ '500': None,
1602
+ }
1603
+ response_data = self.api_client.call_api(
1604
+ *_param,
1605
+ _request_timeout=_request_timeout
1606
+ )
1607
+ return response_data.response
1608
+
1609
+
1610
+ def _list_api_keys_serialize(
1611
+ self,
1612
+ x_northrays_organization_id,
1613
+ _request_auth,
1614
+ _content_type,
1615
+ _headers,
1616
+ _host_index,
1617
+ ) -> RequestSerialized:
1618
+
1619
+ _host = None
1620
+
1621
+ _collection_formats: Dict[str, str] = {
1622
+ }
1623
+
1624
+ _path_params: Dict[str, str] = {}
1625
+ _query_params: List[Tuple[str, str]] = []
1626
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1627
+ _form_params: List[Tuple[str, str]] = []
1628
+ _files: Dict[
1629
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1630
+ ] = {}
1631
+ _body_params: Optional[bytes] = None
1632
+
1633
+ # process the path parameters
1634
+ # process the query parameters
1635
+ # process the header parameters
1636
+ if x_northrays_organization_id is not None:
1637
+ _header_params['X-Northrays-Organization-ID'] = x_northrays_organization_id
1638
+ # process the form parameters
1639
+ # process the body parameter
1640
+
1641
+
1642
+ # set the HTTP header `Accept`
1643
+ if 'Accept' not in _header_params:
1644
+ _header_params['Accept'] = self.api_client.select_header_accept(
1645
+ [
1646
+ 'application/json'
1647
+ ]
1648
+ )
1649
+
1650
+
1651
+ # authentication setting
1652
+ _auth_settings: List[str] = [
1653
+ 'bearer',
1654
+ 'oauth2'
1655
+ ]
1656
+
1657
+ return self.api_client.param_serialize(
1658
+ method='GET',
1659
+ resource_path='/api-keys',
1660
+ path_params=_path_params,
1661
+ query_params=_query_params,
1662
+ header_params=_header_params,
1663
+ body=_body_params,
1664
+ post_params=_form_params,
1665
+ files=_files,
1666
+ auth_settings=_auth_settings,
1667
+ collection_formats=_collection_formats,
1668
+ _host=_host,
1669
+ _request_auth=_request_auth
1670
+ )
1671
+
1672
+