harbor-framework-client 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 (433) hide show
  1. harbor_client/__init__.py +49 -0
  2. harbor_client/__init__.pyi +661 -0
  3. harbor_client/_openapi.json.gz +0 -0
  4. harbor_client/account/__init__.py +3 -0
  5. harbor_client/account/client.py +236 -0
  6. harbor_client/agents/__init__.py +3 -0
  7. harbor_client/agents/client.py +230 -0
  8. harbor_client/api_keys/__init__.py +3 -0
  9. harbor_client/api_keys/client.py +457 -0
  10. harbor_client/api_keys/types/__init__.py +13 -0
  11. harbor_client/api_keys/types/api_keys_list_bad_request_response.py +13 -0
  12. harbor_client/base_client.py +912 -0
  13. harbor_client/client.py +207 -0
  14. harbor_client/core/__init__.py +20 -0
  15. harbor_client/core/api_error.py +3 -0
  16. harbor_client/core/client_wrapper.py +73 -0
  17. harbor_client/core/file.py +57 -0
  18. harbor_client/core/http_response.py +5 -0
  19. harbor_client/core/httpx_session.py +136 -0
  20. harbor_client/core/jsonable_encoder.py +52 -0
  21. harbor_client/core/remove_none_from_dict.py +5 -0
  22. harbor_client/core/request_options.py +47 -0
  23. harbor_client/environment.py +4 -0
  24. harbor_client/errors.py +119 -0
  25. harbor_client/jobs/__init__.py +3 -0
  26. harbor_client/jobs/client.py +2994 -0
  27. harbor_client/jobs/types/__init__.py +97 -0
  28. harbor_client/jobs/types/jobs_get_filters_request_field.py +3 -0
  29. harbor_client/jobs/types/jobs_get_overview_request_force_combined.py +3 -0
  30. harbor_client/jobs/types/jobs_list_bad_request_response.py +13 -0
  31. harbor_client/jobs/types/jobs_list_request_sort.py +3 -0
  32. harbor_client/jobs/types/jobs_list_tasks_bad_request_response.py +13 -0
  33. harbor_client/jobs/types/jobs_list_tasks_request_sort_by.py +3 -0
  34. harbor_client/jobs/types/jobs_list_tasks_request_sort_order.py +3 -0
  35. harbor_client/jobs/types/jobs_submit_response.py +3 -0
  36. harbor_client/jobs/types/result_job_create_visibility.py +3 -0
  37. harbor_client/jobs/types/submit_job_request_config.py +3 -0
  38. harbor_client/jobs/types/submit_job_request_config_agent_setup_timeout_multiplier.py +3 -0
  39. harbor_client/jobs/types/submit_job_request_config_agent_setup_timeout_multiplier_one.py +3 -0
  40. harbor_client/jobs/types/submit_job_request_config_agent_timeout_multiplier.py +3 -0
  41. harbor_client/jobs/types/submit_job_request_config_agent_timeout_multiplier_one.py +3 -0
  42. harbor_client/jobs/types/submit_job_request_config_artifacts_item.py +3 -0
  43. harbor_client/jobs/types/submit_job_request_config_credential_mode.py +3 -0
  44. harbor_client/jobs/types/submit_job_request_config_environment_build_timeout_multiplier.py +3 -0
  45. harbor_client/jobs/types/submit_job_request_config_environment_build_timeout_multiplier_one.py +3 -0
  46. harbor_client/jobs/types/submit_job_request_config_timeout_multiplier.py +3 -0
  47. harbor_client/jobs/types/submit_job_request_config_timeout_multiplier_one.py +3 -0
  48. harbor_client/jobs/types/submit_job_request_config_verifier_timeout_multiplier.py +3 -0
  49. harbor_client/jobs/types/submit_job_request_config_verifier_timeout_multiplier_one.py +3 -0
  50. harbor_client/jobs/types/submit_job_request_regrade.py +3 -0
  51. harbor_client/jobs/types/submit_job_request_regrade_source_trial_id.py +3 -0
  52. harbor_client/jobs/types/update_job_sharing_request_visibility.py +3 -0
  53. harbor_client/leaderboards/__init__.py +3 -0
  54. harbor_client/leaderboards/client.py +1354 -0
  55. harbor_client/leaderboards/types/__init__.py +61 -0
  56. harbor_client/leaderboards/types/leaderboards_create_request_visibility.py +3 -0
  57. harbor_client/leaderboards/types/leaderboards_list_bad_request_response.py +13 -0
  58. harbor_client/leaderboards/types/leaderboards_list_rows_bad_request_response.py +13 -0
  59. harbor_client/leaderboards/types/leaderboards_list_trials_bad_request_response.py +13 -0
  60. harbor_client/leaderboards/types/leaderboards_update_request_definition.py +3 -0
  61. harbor_client/leaderboards/types/leaderboards_update_request_definition_visibility.py +3 -0
  62. harbor_client/leaderboards/types/leaderboards_update_request_row_deletes_item.py +3 -0
  63. harbor_client/leaderboards/types/leaderboards_update_request_row_updates_item.py +3 -0
  64. harbor_client/leaderboards/types/leaderboards_update_request_row_updates_item_status.py +3 -0
  65. harbor_client/leaderboards/types/leaderboards_update_request_trial_updates_item.py +3 -0
  66. harbor_client/leaderboards/types/leaderboards_update_request_trial_updates_item_operation.py +3 -0
  67. harbor_client/net/__init__.py +0 -0
  68. harbor_client/net/environment/__init__.py +4 -0
  69. harbor_client/net/environment/environment.py +32 -0
  70. harbor_client/net/headers/__init__.py +0 -0
  71. harbor_client/net/headers/access_token_auth.py +75 -0
  72. harbor_client/net/headers/base_header.py +34 -0
  73. harbor_client/net/request_chain/__init__.py +0 -0
  74. harbor_client/net/request_chain/handlers/__init__.py +0 -0
  75. harbor_client/net/request_chain/handlers/base_handler.py +51 -0
  76. harbor_client/net/request_chain/handlers/http_handler.py +607 -0
  77. harbor_client/net/request_chain/handlers/logging_handler.py +186 -0
  78. harbor_client/net/request_chain/handlers/retry_handler.py +295 -0
  79. harbor_client/net/request_chain/request_chain.py +76 -0
  80. harbor_client/net/sdk_config.py +101 -0
  81. harbor_client/net/transport/__init__.py +0 -0
  82. harbor_client/net/transport/api_error.py +118 -0
  83. harbor_client/net/transport/http_response.py +83 -0
  84. harbor_client/net/transport/pagination.py +156 -0
  85. harbor_client/net/transport/request.py +190 -0
  86. harbor_client/net/transport/request_error.py +34 -0
  87. harbor_client/net/transport/response.py +456 -0
  88. harbor_client/net/transport/serializer.py +490 -0
  89. harbor_client/net/transport/utils.py +41 -0
  90. harbor_client/organizations/__init__.py +3 -0
  91. harbor_client/organizations/client.py +346 -0
  92. harbor_client/packages/__init__.py +3 -0
  93. harbor_client/packages/client.py +2277 -0
  94. harbor_client/packages/types/__init__.py +53 -0
  95. harbor_client/packages/types/packages_list_version_catalog_bad_request_response.py +13 -0
  96. harbor_client/packages/types/packages_list_version_catalog_request_include_yanked.py +3 -0
  97. harbor_client/packages/types/packages_list_version_catalog_request_type.py +3 -0
  98. harbor_client/packages/types/packages_list_version_files_bad_request_response.py +13 -0
  99. harbor_client/packages/types/packages_list_versions_bad_request_response.py +13 -0
  100. harbor_client/packages/types/packages_list_versions_request_include_yanked.py +3 -0
  101. harbor_client/packages/types/packages_set_visibility_request_visibility.py +3 -0
  102. harbor_client/packages/types/packages_update_organization_access_request_action.py +3 -0
  103. harbor_client/py.typed +1 -0
  104. harbor_client/rollouts/__init__.py +3 -0
  105. harbor_client/rollouts/client.py +1364 -0
  106. harbor_client/rollouts/types/__init__.py +31 -0
  107. harbor_client/rollouts/types/rollouts_get_filters_request_attempts.py +3 -0
  108. harbor_client/rollouts/types/rollouts_get_filters_request_failed_only.py +3 -0
  109. harbor_client/rollouts/types/rollouts_get_filters_request_field.py +3 -0
  110. harbor_client/rollouts/types/rollouts_get_filters_request_terminal.py +3 -0
  111. harbor_client/rollouts/types/rollouts_list_bad_request_response.py +13 -0
  112. harbor_client/rollouts/types/rollouts_list_request_attempts.py +3 -0
  113. harbor_client/rollouts/types/rollouts_list_request_failed_only.py +3 -0
  114. harbor_client/rollouts/types/rollouts_list_request_sort.py +3 -0
  115. harbor_client/rollouts/types/rollouts_list_request_terminal.py +3 -0
  116. harbor_client/secrets/__init__.py +3 -0
  117. harbor_client/secrets/client.py +1309 -0
  118. harbor_client/secrets/types/__init__.py +61 -0
  119. harbor_client/secrets/types/registry_credential_upsert_encoded_provider.py +3 -0
  120. harbor_client/secrets/types/secrets_list_bad_request_response.py +13 -0
  121. harbor_client/secrets/types/secrets_list_registry_credentials_request_status.py +3 -0
  122. harbor_client/secrets/types/secrets_list_registry_credentials_response.py +3 -0
  123. harbor_client/secrets/types/secrets_list_request_status_filter.py +3 -0
  124. harbor_client/secrets/types/secrets_preflight_request_config.py +3 -0
  125. harbor_client/secrets/types/secrets_preflight_request_config_credential_mode.py +3 -0
  126. harbor_client/secrets/types/secrets_revoke_registry_credential_request_purge.py +3 -0
  127. harbor_client/secrets/types/secrets_revoke_request_scope.py +3 -0
  128. harbor_client/secrets/types/secrets_revoke_response.py +3 -0
  129. harbor_client/secrets/types/secrets_upsert_conflict_response.py +13 -0
  130. harbor_client/secrets/types/secrets_upsert_registry_credential_conflict_response.py +11 -0
  131. harbor_client/secrets/types/secrets_upsert_request_scope.py +3 -0
  132. harbor_client/services/__init__.py +0 -0
  133. harbor_client/services/async_/__init__.py +0 -0
  134. harbor_client/services/async_/utils/__init__.py +0 -0
  135. harbor_client/services/async_/utils/to_async.py +20 -0
  136. harbor_client/services/utils/__init__.py +0 -0
  137. harbor_client/services/utils/base_service.py +408 -0
  138. harbor_client/services/utils/default_headers.py +69 -0
  139. harbor_client/services/utils/validator.py +474 -0
  140. harbor_client/storage/__init__.py +3 -0
  141. harbor_client/storage/client.py +269 -0
  142. harbor_client/transfers.py +724 -0
  143. harbor_client/trials/__init__.py +3 -0
  144. harbor_client/trials/client.py +1939 -0
  145. harbor_client/trials/types/__init__.py +29 -0
  146. harbor_client/trials/types/trials_get_filters_request_attempts.py +3 -0
  147. harbor_client/trials/types/trials_get_filters_request_failed_only.py +3 -0
  148. harbor_client/trials/types/trials_get_filters_request_field.py +3 -0
  149. harbor_client/trials/types/trials_get_filters_request_terminal.py +3 -0
  150. harbor_client/trials/types/trials_list_bad_request_response.py +13 -0
  151. harbor_client/trials/types/trials_list_request_attempts.py +3 -0
  152. harbor_client/trials/types/trials_list_request_failed_only.py +3 -0
  153. harbor_client/trials/types/trials_list_request_sort.py +3 -0
  154. harbor_client/trials/types/trials_list_request_terminal.py +3 -0
  155. harbor_client/types/__init__.py +1006 -0
  156. harbor_client/types/__init__.pyi +644 -0
  157. harbor_client/types/account_identity.py +15 -0
  158. harbor_client/types/agent_identity.py +19 -0
  159. harbor_client/types/agent_options.py +1 -0
  160. harbor_client/types/agent_source.py +40 -0
  161. harbor_client/types/agent_source_manifest.py +57 -0
  162. harbor_client/types/agent_source_runtime.py +33 -0
  163. harbor_client/types/agents_response.py +16 -0
  164. harbor_client/types/api_key_create.py +19 -0
  165. harbor_client/types/api_key_created.py +44 -0
  166. harbor_client/types/api_key_metadata.py +41 -0
  167. harbor_client/types/api_key_metadata_page.py +24 -0
  168. harbor_client/types/api_keys_list_bad_request_response.py +35 -0
  169. harbor_client/types/artifact_config.py +26 -0
  170. harbor_client/types/available_dataset_task_dependency.py +97 -0
  171. harbor_client/types/bad_request_encoded.py +79 -0
  172. harbor_client/types/bad_request_error_body.py +35 -0
  173. harbor_client/types/cancel_job_request.py +15 -0
  174. harbor_client/types/cancel_trial_request.py +15 -0
  175. harbor_client/types/conflict_encoded.py +77 -0
  176. harbor_client/types/conflict_error_body.py +38 -0
  177. harbor_client/types/create_leaderboard_response.py +22 -0
  178. harbor_client/types/create_leaderboard_row_input.py +32 -0
  179. harbor_client/types/created_result_job.py +49 -0
  180. harbor_client/types/created_result_trial.py +28 -0
  181. harbor_client/types/credential_proxy_header_transform.py +16 -0
  182. harbor_client/types/credential_proxy_path_match.py +15 -0
  183. harbor_client/types/credential_proxy_policy_rule.py +21 -0
  184. harbor_client/types/credential_proxy_request_match.py +20 -0
  185. harbor_client/types/dataset_publish_task_reference.py +21 -0
  186. harbor_client/types/dataset_version_detail.py +95 -0
  187. harbor_client/types/dataset_version_file.py +50 -0
  188. harbor_client/types/dataset_version_manifest.py +91 -0
  189. harbor_client/types/dataset_version_revision_summary.py +22 -0
  190. harbor_client/types/delete_jobs_request.py +17 -0
  191. harbor_client/types/delete_jobs_response.py +22 -0
  192. harbor_client/types/dry_run_response.py +15 -0
  193. harbor_client/types/ensure_organization_response.py +18 -0
  194. harbor_client/types/evaluation_comparison.py +27 -0
  195. harbor_client/types/evaluation_comparison_agent_model.py +34 -0
  196. harbor_client/types/evaluation_comparison_cell.py +109 -0
  197. harbor_client/types/evaluation_comparison_task.py +22 -0
  198. harbor_client/types/evaluation_job_reference.py +48 -0
  199. harbor_client/types/evaluation_metric_set.py +42 -0
  200. harbor_client/types/evaluation_summary.py +21 -0
  201. harbor_client/types/evaluation_summary_row.py +128 -0
  202. harbor_client/types/existing_registry_credential.py +28 -0
  203. harbor_client/types/existing_secret_summary.py +31 -0
  204. harbor_client/types/filter_values_response.py +72 -0
  205. harbor_client/types/forbidden_encoded.py +79 -0
  206. harbor_client/types/hosted_agent_config.py +72 -0
  207. harbor_client/types/hosted_dataset_config.py +62 -0
  208. harbor_client/types/hosted_diff_selectors.py +22 -0
  209. harbor_client/types/hosted_github_agent_source.py +30 -0
  210. harbor_client/types/hosted_job_trial_regrade_source.py +19 -0
  211. harbor_client/types/hosted_local_task_requirements.py +20 -0
  212. harbor_client/types/hosted_preflight_environment_config.py +24 -0
  213. harbor_client/types/hosted_retry_config.py +32 -0
  214. harbor_client/types/hosted_secret_selection.py +21 -0
  215. harbor_client/types/hosted_submission_credential_proxy_path_match.py +17 -0
  216. harbor_client/types/hosted_submission_credential_proxy_policy_rule.py +23 -0
  217. harbor_client/types/hosted_submission_credential_proxy_request_match.py +22 -0
  218. harbor_client/types/hosted_submission_dataset_config.py +64 -0
  219. harbor_client/types/hosted_submission_environment_config.py +26 -0
  220. harbor_client/types/hosted_submission_retry_config.py +32 -0
  221. harbor_client/types/hosted_submission_task_config.py +45 -0
  222. harbor_client/types/hosted_task_config.py +45 -0
  223. harbor_client/types/hosted_task_environment_requirement.py +26 -0
  224. harbor_client/types/hosted_verifier_config.py +75 -0
  225. harbor_client/types/internal_server_error_encoded.py +93 -0
  226. harbor_client/types/invalid_page_size_encoded.py +58 -0
  227. harbor_client/types/invalid_page_token_encoded.py +60 -0
  228. harbor_client/types/job_artifact_type.py +5 -0
  229. harbor_client/types/job_bucket_circuit_state.py +93 -0
  230. harbor_client/types/job_cancellation_summary.py +47 -0
  231. harbor_client/types/job_circuit_state.py +90 -0
  232. harbor_client/types/job_creator.py +28 -0
  233. harbor_client/types/job_detail.py +84 -0
  234. harbor_client/types/job_manual_pause_summary.py +66 -0
  235. harbor_client/types/job_overview.py +332 -0
  236. harbor_client/types/job_overview_statistics.py +97 -0
  237. harbor_client/types/job_owner_organization.py +28 -0
  238. harbor_client/types/job_package_run_target.py +21 -0
  239. harbor_client/types/job_page.py +24 -0
  240. harbor_client/types/job_path_run_target.py +24 -0
  241. harbor_client/types/job_response.py +17 -0
  242. harbor_client/types/job_reward_metric_set.py +42 -0
  243. harbor_client/types/job_share_organization_summary.py +22 -0
  244. harbor_client/types/job_sharing.py +38 -0
  245. harbor_client/types/job_summary.py +73 -0
  246. harbor_client/types/job_task_page.py +24 -0
  247. harbor_client/types/job_task_summary.py +146 -0
  248. harbor_client/types/job_trial_status.py +4 -0
  249. harbor_client/types/job_trial_status_item.py +128 -0
  250. harbor_client/types/jobs_copy_request.py +22 -0
  251. harbor_client/types/jobs_get_filters_request_field.py +17 -0
  252. harbor_client/types/jobs_get_overview_request_force_combined.py +7 -0
  253. harbor_client/types/jobs_list_bad_request_response.py +35 -0
  254. harbor_client/types/jobs_list_request_sort.py +21 -0
  255. harbor_client/types/jobs_list_tasks_bad_request_response.py +35 -0
  256. harbor_client/types/jobs_list_tasks_request_sort_by.py +25 -0
  257. harbor_client/types/jobs_list_tasks_request_sort_order.py +5 -0
  258. harbor_client/types/jobs_rename_request.py +15 -0
  259. harbor_client/types/jobs_submit_response.py +15 -0
  260. harbor_client/types/jobs_transfer_request.py +22 -0
  261. harbor_client/types/leaderboard_change_summary.py +37 -0
  262. harbor_client/types/leaderboard_definition.py +67 -0
  263. harbor_client/types/leaderboard_detail.py +17 -0
  264. harbor_client/types/leaderboard_mutation_record.py +64 -0
  265. harbor_client/types/leaderboard_mutation_row.py +43 -0
  266. harbor_client/types/leaderboard_package_selector_encoded.py +16 -0
  267. harbor_client/types/leaderboard_ranked_row.py +44 -0
  268. harbor_client/types/leaderboard_read_column_definition.py +55 -0
  269. harbor_client/types/leaderboard_read_ranking_rule.py +30 -0
  270. harbor_client/types/leaderboard_row_detail.py +17 -0
  271. harbor_client/types/leaderboard_rows_page.py +28 -0
  272. harbor_client/types/leaderboard_summary.py +64 -0
  273. harbor_client/types/leaderboard_summary_page.py +24 -0
  274. harbor_client/types/leaderboard_trial_link.py +18 -0
  275. harbor_client/types/leaderboard_trial_link_page.py +23 -0
  276. harbor_client/types/leaderboard_write_column_definition.py +55 -0
  277. harbor_client/types/leaderboard_write_ranking_rule.py +30 -0
  278. harbor_client/types/leaderboards_create_request.py +59 -0
  279. harbor_client/types/leaderboards_list_bad_request_response.py +37 -0
  280. harbor_client/types/leaderboards_list_rows_bad_request_response.py +37 -0
  281. harbor_client/types/leaderboards_list_trials_bad_request_response.py +39 -0
  282. harbor_client/types/leaderboards_update_request.py +152 -0
  283. harbor_client/types/mean_aggregate.py +19 -0
  284. harbor_client/types/metric_config.py +20 -0
  285. harbor_client/types/model_identity.py +22 -0
  286. harbor_client/types/my_organizations.py +4 -0
  287. harbor_client/types/my_organizations_item.py +36 -0
  288. harbor_client/types/not_found_encoded.py +77 -0
  289. harbor_client/types/organization_detail.py +38 -0
  290. harbor_client/types/organizations_ensure_request.py +15 -0
  291. harbor_client/types/owner_organization.py +31 -0
  292. harbor_client/types/package_access.py +46 -0
  293. harbor_client/types/package_access_grant_creator.py +22 -0
  294. harbor_client/types/package_access_organization_summary.py +30 -0
  295. harbor_client/types/package_name_reference.py +18 -0
  296. harbor_client/types/package_organization_grant.py +44 -0
  297. harbor_client/types/package_public_grant.py +40 -0
  298. harbor_client/types/package_tag.py +24 -0
  299. harbor_client/types/package_tags.py +4 -0
  300. harbor_client/types/package_version_catalog_page.py +21 -0
  301. harbor_client/types/package_version_detail.py +27 -0
  302. harbor_client/types/package_version_file_page.py +21 -0
  303. harbor_client/types/package_version_manifest.py +27 -0
  304. harbor_client/types/package_version_summary.py +69 -0
  305. harbor_client/types/packages_list_version_catalog_bad_request_response.py +41 -0
  306. harbor_client/types/packages_list_version_catalog_request_include_yanked.py +7 -0
  307. harbor_client/types/packages_list_version_catalog_request_type.py +7 -0
  308. harbor_client/types/packages_list_version_files_bad_request_response.py +41 -0
  309. harbor_client/types/packages_list_versions_bad_request_response.py +37 -0
  310. harbor_client/types/packages_list_versions_request_include_yanked.py +7 -0
  311. harbor_client/types/packages_set_visibility_request.py +27 -0
  312. harbor_client/types/packages_update_organization_access_request.py +26 -0
  313. harbor_client/types/registry_credential.py +44 -0
  314. harbor_client/types/registry_credential_replacement_required_encoded.py +86 -0
  315. harbor_client/types/registry_credential_replacement_stale_encoded.py +79 -0
  316. harbor_client/types/registry_credential_revoke_result.py +21 -0
  317. harbor_client/types/registry_credential_summary.py +46 -0
  318. harbor_client/types/registry_credential_upsert_encoded.py +48 -0
  319. harbor_client/types/registry_package.py +37 -0
  320. harbor_client/types/registry_package_version.py +44 -0
  321. harbor_client/types/registry_package_version_page.py +25 -0
  322. harbor_client/types/registry_version_file.py +47 -0
  323. harbor_client/types/rename_job_response.py +21 -0
  324. harbor_client/types/reserve_temporary_package_request.py +25 -0
  325. harbor_client/types/reserve_temporary_task_response.py +27 -0
  326. harbor_client/types/resolved_task_step.py +38 -0
  327. harbor_client/types/result_job_create.py +40 -0
  328. harbor_client/types/result_model_usage.py +31 -0
  329. harbor_client/types/result_trial_create.py +92 -0
  330. harbor_client/types/retry_rollout_response.py +15 -0
  331. harbor_client/types/retry_trial_response.py +15 -0
  332. harbor_client/types/reward_value.py +3 -0
  333. harbor_client/types/rollout_response.py +17 -0
  334. harbor_client/types/rollouts_get_filters_request_attempts.py +7 -0
  335. harbor_client/types/rollouts_get_filters_request_failed_only.py +7 -0
  336. harbor_client/types/rollouts_get_filters_request_field.py +18 -0
  337. harbor_client/types/rollouts_get_filters_request_terminal.py +7 -0
  338. harbor_client/types/rollouts_list_bad_request_response.py +34 -0
  339. harbor_client/types/rollouts_list_request_attempts.py +5 -0
  340. harbor_client/types/rollouts_list_request_failed_only.py +7 -0
  341. harbor_client/types/rollouts_list_request_sort.py +47 -0
  342. harbor_client/types/rollouts_list_request_terminal.py +5 -0
  343. harbor_client/types/run_state.py +10 -0
  344. harbor_client/types/secret_metadata.py +54 -0
  345. harbor_client/types/secret_metadata_page.py +21 -0
  346. harbor_client/types/secret_preflight.py +152 -0
  347. harbor_client/types/secret_replacement_required_encoded.py +72 -0
  348. harbor_client/types/secret_replacement_stale_encoded.py +67 -0
  349. harbor_client/types/secret_write_result.py +51 -0
  350. harbor_client/types/secrets_list_bad_request_response.py +35 -0
  351. harbor_client/types/secrets_list_registry_credentials_request_status.py +7 -0
  352. harbor_client/types/secrets_list_registry_credentials_response.py +18 -0
  353. harbor_client/types/secrets_list_request_status_filter.py +7 -0
  354. harbor_client/types/secrets_preflight_request.py +76 -0
  355. harbor_client/types/secrets_revoke_registry_credential_request_purge.py +7 -0
  356. harbor_client/types/secrets_revoke_request.py +33 -0
  357. harbor_client/types/secrets_revoke_response.py +34 -0
  358. harbor_client/types/secrets_upsert_conflict_response.py +39 -0
  359. harbor_client/types/secrets_upsert_registry_credential_conflict_response.py +40 -0
  360. harbor_client/types/secrets_upsert_request.py +43 -0
  361. harbor_client/types/selected_secret.py +48 -0
  362. harbor_client/types/service_unavailable_encoded.py +85 -0
  363. harbor_client/types/set_package_visibility_response.py +50 -0
  364. harbor_client/types/storage_copy_result.py +60 -0
  365. harbor_client/types/storage_dataset_upload_create.py +50 -0
  366. harbor_client/types/storage_dataset_upload_metadata.py +49 -0
  367. harbor_client/types/storage_dataset_upload_result.py +50 -0
  368. harbor_client/types/storage_download.py +64 -0
  369. harbor_client/types/storage_http_transfer.py +33 -0
  370. harbor_client/types/storage_job_upload_create.py +39 -0
  371. harbor_client/types/storage_job_upload_metadata.py +45 -0
  372. harbor_client/types/storage_publication_file.py +25 -0
  373. harbor_client/types/storage_result_upload_result.py +15 -0
  374. harbor_client/types/storage_task_upload_create.py +50 -0
  375. harbor_client/types/storage_task_upload_metadata.py +79 -0
  376. harbor_client/types/storage_task_upload_result.py +39 -0
  377. harbor_client/types/storage_trial_upload_create.py +41 -0
  378. harbor_client/types/storage_tus_transfer.py +56 -0
  379. harbor_client/types/storage_upload_create.py +44 -0
  380. harbor_client/types/storage_upload_file.py +63 -0
  381. harbor_client/types/storage_upload_file_input.py +32 -0
  382. harbor_client/types/storage_upload_receipt.py +53 -0
  383. harbor_client/types/storage_upload_session.py +61 -0
  384. harbor_client/types/submit_job_request.py +277 -0
  385. harbor_client/types/submit_job_response.py +51 -0
  386. harbor_client/types/sum_aggregate.py +19 -0
  387. harbor_client/types/tag_package_version_request.py +15 -0
  388. harbor_client/types/tag_package_version_response.py +18 -0
  389. harbor_client/types/task_environment_requirement.py +26 -0
  390. harbor_client/types/task_identity.py +22 -0
  391. harbor_client/types/task_publish_step.py +47 -0
  392. harbor_client/types/task_version_detail.py +115 -0
  393. harbor_client/types/task_version_manifest.py +119 -0
  394. harbor_client/types/too_many_requests_encoded.py +81 -0
  395. harbor_client/types/transfer_job_response.py +36 -0
  396. harbor_client/types/trial_artifact_type.py +5 -0
  397. harbor_client/types/trial_counts.py +33 -0
  398. harbor_client/types/trial_detail.py +103 -0
  399. harbor_client/types/trial_filter_values_response.py +76 -0
  400. harbor_client/types/trial_page.py +24 -0
  401. harbor_client/types/trial_response.py +17 -0
  402. harbor_client/types/trial_summary.py +83 -0
  403. harbor_client/types/trials_copy_request.py +22 -0
  404. harbor_client/types/trials_get_filters_request_attempts.py +7 -0
  405. harbor_client/types/trials_get_filters_request_failed_only.py +7 -0
  406. harbor_client/types/trials_get_filters_request_field.py +18 -0
  407. harbor_client/types/trials_get_filters_request_terminal.py +7 -0
  408. harbor_client/types/trials_list_bad_request_response.py +35 -0
  409. harbor_client/types/trials_list_request_attempts.py +5 -0
  410. harbor_client/types/trials_list_request_failed_only.py +5 -0
  411. harbor_client/types/trials_list_request_sort.py +47 -0
  412. harbor_client/types/trials_list_request_terminal.py +5 -0
  413. harbor_client/types/unauthorized_encoded.py +79 -0
  414. harbor_client/types/unavailable_dataset_task_dependency.py +43 -0
  415. harbor_client/types/update_job_sharing_request.py +36 -0
  416. harbor_client/types/update_leaderboard_response.py +29 -0
  417. harbor_client/types/update_package_access_response.py +65 -0
  418. harbor_client/types/usage.py +25 -0
  419. harbor_client/types/usage_aggregates.py +26 -0
  420. harbor_client/types/utils/__init__.py +0 -0
  421. harbor_client/types/utils/base_error.py +127 -0
  422. harbor_client/types/utils/base_model.py +439 -0
  423. harbor_client/types/utils/cast_models.py +226 -0
  424. harbor_client/types/utils/json_map.py +84 -0
  425. harbor_client/types/utils/one_of_base_model.py +173 -0
  426. harbor_client/types/utils/sentinel.py +19 -0
  427. harbor_client/validation.py +335 -0
  428. harbor_client/version.py +9 -0
  429. harbor_framework_client-0.1.0.dist-info/METADATA +134 -0
  430. harbor_framework_client-0.1.0.dist-info/RECORD +433 -0
  431. harbor_framework_client-0.1.0.dist-info/WHEEL +5 -0
  432. harbor_framework_client-0.1.0.dist-info/licenses/LICENSE +201 -0
  433. harbor_framework_client-0.1.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,15 @@
1
+ from __future__ import annotations
2
+ from pydantic import Field
3
+ from typing import Optional
4
+ from typing import Any
5
+ from .utils.base_model import BaseModel
6
+
7
+
8
+ class AccountIdentity(BaseModel):
9
+ """AccountIdentity
10
+
11
+ :param id: id
12
+ :type id: str
13
+ """
14
+
15
+ id: str
@@ -0,0 +1,19 @@
1
+ from __future__ import annotations
2
+ from pydantic import Field
3
+ from typing import Optional
4
+ from typing import Any
5
+ from typing import Union
6
+ from .utils.base_model import BaseModel
7
+
8
+
9
+ class AgentIdentity(BaseModel):
10
+ """AgentIdentity
11
+
12
+ :param name: name
13
+ :type name: str
14
+ :param version: version
15
+ :type version: str
16
+ """
17
+
18
+ name: Optional[str]
19
+ version: Optional[str]
@@ -0,0 +1 @@
1
+ AgentOptions = dict
@@ -0,0 +1,40 @@
1
+ from __future__ import annotations
2
+ import typing
3
+ from pydantic import Field
4
+ from typing import Optional
5
+ from typing import Any
6
+ from .utils.base_model import BaseModel
7
+ from .agent_source_manifest import AgentSourceManifest
8
+
9
+ AgentSourceAccessMode = typing.Union[typing.Literal["github_app", "public"], typing.Any]
10
+
11
+
12
+ class AgentSource(BaseModel):
13
+ """AgentSource
14
+
15
+ :param agent_ordinal: agent_ordinal
16
+ :type agent_ordinal: int
17
+ :param access_mode: access_mode
18
+ :type access_mode: AgentSourceAccessMode
19
+ :param repo: repo
20
+ :type repo: str
21
+ :param commit_sha: commit_sha
22
+ :type commit_sha: str
23
+ :param source_path: source_path
24
+ :type source_path: str
25
+ :param manifest_path: manifest_path
26
+ :type manifest_path: str
27
+ :param manifest_sha256: manifest_sha256
28
+ :type manifest_sha256: str
29
+ :param manifest: manifest
30
+ :type manifest: AgentSourceManifest
31
+ """
32
+
33
+ agent_ordinal: int
34
+ access_mode: AgentSourceAccessMode
35
+ repo: str
36
+ commit_sha: str
37
+ source_path: str
38
+ manifest_path: str
39
+ manifest_sha256: str
40
+ manifest: AgentSourceManifest
@@ -0,0 +1,57 @@
1
+ from __future__ import annotations
2
+ from enum import Enum
3
+ import typing
4
+ from pydantic import Field
5
+ from typing import Optional
6
+ from typing import Any
7
+ from .utils.base_model import BaseModel
8
+ from .agent_source_runtime import AgentSourceRuntime
9
+
10
+
11
+ class AgentSourceManifestSchemaVersion(float, Enum):
12
+ """An enumeration representing different categories.
13
+
14
+ :cvar _1: 1
15
+ :vartype _1: float
16
+ """
17
+
18
+ _1 = 1
19
+
20
+ @staticmethod
21
+ def list():
22
+ """Lists all enum values.
23
+
24
+ :return: A list of all enum values.
25
+ :rtype: list
26
+ """
27
+ return list(
28
+ map(
29
+ lambda x: x.value,
30
+ AgentSourceManifestSchemaVersion._member_map_.values(),
31
+ )
32
+ )
33
+
34
+
35
+ AgentSourceManifestProtocol = typing.Union[typing.Literal["acp"], typing.Any]
36
+
37
+
38
+ class AgentSourceManifest(BaseModel):
39
+ """AgentSourceManifest
40
+
41
+ :param schema_version: schema_version
42
+ :type schema_version: AgentSourceManifestSchemaVersion
43
+ :param id: id
44
+ :type id: str
45
+ :param version: version
46
+ :type version: str
47
+ :param protocol: protocol
48
+ :type protocol: AgentSourceManifestProtocol
49
+ :param runtime: runtime
50
+ :type runtime: AgentSourceRuntime
51
+ """
52
+
53
+ schema_version: AgentSourceManifestSchemaVersion = Field(default=1)
54
+ id: str
55
+ version: str
56
+ protocol: AgentSourceManifestProtocol = Field(default="acp")
57
+ runtime: AgentSourceRuntime
@@ -0,0 +1,33 @@
1
+ from __future__ import annotations
2
+ import typing
3
+ from typing import List
4
+ from pydantic import Field
5
+ from typing import Optional
6
+ from typing import Any
7
+ from .utils.base_model import BaseModel
8
+
9
+ AgentSourceRuntimeKind = typing.Union[typing.Literal["python-uv"], typing.Any]
10
+
11
+ AgentSourceRuntimePython = typing.Union[typing.Literal["3.12"], typing.Any]
12
+
13
+
14
+ class AgentSourceRuntime(BaseModel):
15
+ """AgentSourceRuntime
16
+
17
+ :param kind: kind
18
+ :type kind: AgentSourceRuntimeKind
19
+ :param python: python
20
+ :type python: AgentSourceRuntimePython
21
+ :param project: project
22
+ :type project: str
23
+ :param lockfile: lockfile
24
+ :type lockfile: str
25
+ :param entrypoint: entrypoint
26
+ :type entrypoint: List[str]
27
+ """
28
+
29
+ kind: AgentSourceRuntimeKind = Field(default="python-uv")
30
+ python: AgentSourceRuntimePython = Field(default="3.12")
31
+ project: str
32
+ lockfile: str
33
+ entrypoint: List[str]
@@ -0,0 +1,16 @@
1
+ from __future__ import annotations
2
+ from typing import List
3
+ from pydantic import Field
4
+ from typing import Optional
5
+ from typing import Any
6
+ from .utils.base_model import BaseModel
7
+
8
+
9
+ class AgentsResponse(BaseModel):
10
+ """AgentsResponse
11
+
12
+ :param agents: agents
13
+ :type agents: List[str]
14
+ """
15
+
16
+ agents: List[str]
@@ -0,0 +1,19 @@
1
+ from __future__ import annotations
2
+ from pydantic import Field
3
+ from typing import Optional
4
+ from typing import Any
5
+ from typing import Union
6
+ from .utils.base_model import BaseModel
7
+
8
+
9
+ class ApiKeyCreate(BaseModel):
10
+ """ApiKeyCreate
11
+
12
+ :param name: name
13
+ :type name: str
14
+ :param expires_at: expires_at, defaults to None
15
+ :type expires_at: str, optional
16
+ """
17
+
18
+ name: str
19
+ expires_at: Optional[str] = Field(default=None)
@@ -0,0 +1,44 @@
1
+ from __future__ import annotations
2
+ from typing import List
3
+ from pydantic import Field
4
+ from typing import Optional
5
+ from typing import Any
6
+ from typing import Union
7
+ from .utils.base_model import BaseModel
8
+
9
+
10
+ class ApiKeyCreated(BaseModel):
11
+ """ApiKeyCreated
12
+
13
+ :param api_key: api_key
14
+ :type api_key: str
15
+ :param key_id: key_id
16
+ :type key_id: str
17
+ :param name: name
18
+ :type name: str
19
+ :param key_prefix: key_prefix
20
+ :type key_prefix: str
21
+ :param last4: last4
22
+ :type last4: str
23
+ :param created_at: created_at
24
+ :type created_at: str
25
+ :param last_used_at: last_used_at
26
+ :type last_used_at: str
27
+ :param expires_at: expires_at
28
+ :type expires_at: str
29
+ :param revoked_at: revoked_at
30
+ :type revoked_at: str
31
+ :param scopes: scopes
32
+ :type scopes: List[str]
33
+ """
34
+
35
+ api_key: str
36
+ key_id: str
37
+ name: str
38
+ key_prefix: str
39
+ last4: Optional[str]
40
+ created_at: str
41
+ last_used_at: Optional[str]
42
+ expires_at: Optional[str]
43
+ revoked_at: Optional[str]
44
+ scopes: List[str]
@@ -0,0 +1,41 @@
1
+ from __future__ import annotations
2
+ from typing import List
3
+ from pydantic import Field
4
+ from typing import Optional
5
+ from typing import Any
6
+ from typing import Union
7
+ from .utils.base_model import BaseModel
8
+
9
+
10
+ class ApiKeyMetadata(BaseModel):
11
+ """ApiKeyMetadata
12
+
13
+ :param key_id: key_id
14
+ :type key_id: str
15
+ :param name: name
16
+ :type name: str
17
+ :param key_prefix: key_prefix
18
+ :type key_prefix: str
19
+ :param last4: last4
20
+ :type last4: str
21
+ :param created_at: created_at
22
+ :type created_at: str
23
+ :param last_used_at: last_used_at
24
+ :type last_used_at: str
25
+ :param expires_at: expires_at
26
+ :type expires_at: str
27
+ :param revoked_at: revoked_at
28
+ :type revoked_at: str
29
+ :param scopes: scopes
30
+ :type scopes: List[str]
31
+ """
32
+
33
+ key_id: str
34
+ name: str
35
+ key_prefix: str
36
+ last4: Optional[str]
37
+ created_at: str
38
+ last_used_at: Optional[str]
39
+ expires_at: Optional[str]
40
+ revoked_at: Optional[str]
41
+ scopes: List[str]
@@ -0,0 +1,24 @@
1
+ from __future__ import annotations
2
+ from typing import List
3
+ from pydantic import Field
4
+ from typing import Optional
5
+ from typing import Any
6
+ from typing import Union
7
+ from .utils.base_model import BaseModel
8
+ from .api_key_metadata import ApiKeyMetadata
9
+
10
+
11
+ class ApiKeyMetadataPage(BaseModel):
12
+ """ApiKeyMetadataPage
13
+
14
+ :param api_keys: api_keys
15
+ :type api_keys: List[ApiKeyMetadata]
16
+ :param next_page_token: next_page_token
17
+ :type next_page_token: str
18
+ :param total_size: total_size
19
+ :type total_size: int
20
+ """
21
+
22
+ api_keys: List[ApiKeyMetadata]
23
+ next_page_token: str
24
+ total_size: int
@@ -0,0 +1,35 @@
1
+ from __future__ import annotations
2
+ from typing import Union
3
+ from typing import Any
4
+ from typing import Annotated
5
+ from pydantic import TypeAdapter
6
+ from .bad_request_encoded import BadRequestEncodedData
7
+ from .invalid_page_size_encoded import InvalidPageSizeEncoded
8
+ from .invalid_page_token_encoded import InvalidPageTokenEncoded
9
+
10
+
11
+ # fernMode variant type for a shared-component member of ApiKeysListBadRequestResponse
12
+ class ApiKeysListBadRequestResponse_BadRequest(BadRequestEncodedData):
13
+ pass
14
+
15
+
16
+ # fernMode variant type for a shared-component member of ApiKeysListBadRequestResponse
17
+ class ApiKeysListBadRequestResponse_InvalidPageSize(InvalidPageSizeEncoded):
18
+ pass
19
+
20
+
21
+ # fernMode variant type for a shared-component member of ApiKeysListBadRequestResponse
22
+ class ApiKeysListBadRequestResponse_InvalidPageToken(InvalidPageTokenEncoded):
23
+ pass
24
+
25
+
26
+ # Union type for ApiKeysListBadRequestResponse
27
+ # Pydantic will attempt to validate against each type in order
28
+ ApiKeysListBadRequestResponse = Union[
29
+ BadRequestEncodedData, InvalidPageSizeEncoded, InvalidPageTokenEncoded
30
+ ]
31
+ # TypeAdapter for runtime validation of ApiKeysListBadRequestResponse
32
+ # This allows validation of Union types which are not directly instantiable
33
+ from pydantic import TypeAdapter
34
+
35
+ ApiKeysListBadRequestResponse_adapter = TypeAdapter(ApiKeysListBadRequestResponse)
@@ -0,0 +1,26 @@
1
+ from __future__ import annotations
2
+ from typing import List
3
+ from pydantic import Field
4
+ from typing import Optional
5
+ from typing import Any
6
+ from typing import Union
7
+ from .utils.base_model import BaseModel
8
+
9
+
10
+ class ArtifactConfig(BaseModel):
11
+ """ArtifactConfig
12
+
13
+ :param source: source
14
+ :type source: str
15
+ :param destination: destination, defaults to None
16
+ :type destination: str, optional
17
+ :param exclude: exclude, defaults to None
18
+ :type exclude: List[str], optional
19
+ :param service: service, defaults to None
20
+ :type service: str, optional
21
+ """
22
+
23
+ source: str
24
+ destination: Optional[str] = Field(default=None)
25
+ exclude: Optional[List[str]] = Field(default=None)
26
+ service: Optional[str] = Field(default=None)
@@ -0,0 +1,97 @@
1
+ from __future__ import annotations
2
+ from enum import Enum
3
+ from typing import List
4
+ from pydantic import Field
5
+ from typing import Optional
6
+ from typing import Any
7
+ from typing import Union
8
+ from typing import Dict
9
+ from .utils.base_model import BaseModel
10
+
11
+
12
+ class AvailableDatasetTaskDependencyAvailable(Enum):
13
+ """An enumeration representing different categories.
14
+
15
+ :cvar TRUE: True
16
+ :vartype TRUE: str
17
+ """
18
+
19
+ TRUE = True
20
+
21
+ @staticmethod
22
+ def list():
23
+ """Lists all enum values.
24
+
25
+ :return: A list of all enum values.
26
+ :rtype: list
27
+ """
28
+ return list(
29
+ map(
30
+ lambda x: x.value,
31
+ AvailableDatasetTaskDependencyAvailable._member_map_.values(),
32
+ )
33
+ )
34
+
35
+
36
+ class AvailableDatasetTaskDependency(BaseModel):
37
+ """AvailableDatasetTaskDependency
38
+
39
+ :param id: id
40
+ :type id: str
41
+ :param task_version_id: task_version_id
42
+ :type task_version_id: str
43
+ :param available: available
44
+ :type available: AvailableDatasetTaskDependencyAvailable
45
+ :param organization_name: organization_name
46
+ :type organization_name: str
47
+ :param task_name: task_name
48
+ :type task_name: str
49
+ :param revision: revision
50
+ :type revision: int
51
+ :param version: version
52
+ :type version: str
53
+ :param archive_path: archive_path
54
+ :type archive_path: str
55
+ :param content_hash: content_hash
56
+ :type content_hash: str
57
+ :param config: config
58
+ :type config: Dict[str, Any]
59
+ :param description: description
60
+ :type description: str
61
+ :param keywords: keywords
62
+ :type keywords: List[str]
63
+ :param instruction: instruction
64
+ :type instruction: str
65
+ :param metadata: metadata
66
+ :type metadata: Any
67
+ :param verifier_config: verifier_config
68
+ :type verifier_config: Any
69
+ :param agent_config: agent_config
70
+ :type agent_config: Any
71
+ :param environment_config: environment_config
72
+ :type environment_config: Any
73
+ :param published_at: published_at
74
+ :type published_at: str
75
+ :param yanked_at: yanked_at
76
+ :type yanked_at: str
77
+ """
78
+
79
+ id: str
80
+ task_version_id: str
81
+ available: AvailableDatasetTaskDependencyAvailable = Field(default=True)
82
+ organization_name: Optional[str]
83
+ task_name: Optional[str]
84
+ revision: int
85
+ version: str
86
+ archive_path: str
87
+ content_hash: str
88
+ config: Optional[Dict[str, Any]]
89
+ description: Optional[str]
90
+ keywords: Optional[List[str]]
91
+ instruction: Optional[str]
92
+ metadata: Any
93
+ verifier_config: Any
94
+ agent_config: Any
95
+ environment_config: Any
96
+ published_at: str
97
+ yanked_at: Optional[str]
@@ -0,0 +1,79 @@
1
+ from __future__ import annotations
2
+ from enum import Enum
3
+ import typing
4
+ from pydantic import Field
5
+ from typing import Optional
6
+ from typing import Any
7
+ from .utils.base_error import BaseError
8
+ from .utils.base_model import BaseModel
9
+
10
+ BadRequestEncodedTag = typing.Union[typing.Literal["BadRequest"], typing.Any]
11
+
12
+ BadRequestEncodedType = typing.Union[typing.Literal["about:blank"], typing.Any]
13
+
14
+ BadRequestEncodedTitle = typing.Union[typing.Literal["Bad Request"], typing.Any]
15
+
16
+
17
+ class BadRequestEncodedStatus(float, Enum):
18
+ """An enumeration representing different categories.
19
+
20
+ :cvar _400: 400
21
+ :vartype _400: float
22
+ """
23
+
24
+ _400 = 400
25
+
26
+ @staticmethod
27
+ def list():
28
+ """Lists all enum values.
29
+
30
+ :return: A list of all enum values.
31
+ :rtype: list
32
+ """
33
+ return list(
34
+ map(lambda x: x.value, BadRequestEncodedStatus._member_map_.values())
35
+ )
36
+
37
+
38
+ # Pydantic validation model for BadRequestEncoded
39
+ class BadRequestEncodedData(BaseModel):
40
+ """BadRequestEncoded
41
+
42
+ :param tag: tag
43
+ :type tag: BadRequestEncodedTag
44
+ :param type: type
45
+ :type type: BadRequestEncodedType
46
+ :param title: title
47
+ :type title: BadRequestEncodedTitle
48
+ :param status: status
49
+ :type status: BadRequestEncodedStatus
50
+ :param detail: detail
51
+ :type detail: str
52
+ """
53
+
54
+ tag: BadRequestEncodedTag = Field(
55
+ alias="_tag", serialization_alias="_tag", default="BadRequest"
56
+ )
57
+ type: BadRequestEncodedType = Field(default="about:blank")
58
+ title: BadRequestEncodedTitle = Field(default="Bad Request")
59
+ status: BadRequestEncodedStatus = Field(default=400)
60
+ detail: str
61
+
62
+
63
+ # Error exception class
64
+ class BadRequestEncoded(BaseError):
65
+ """BadRequestEncoded
66
+
67
+ :param tag: tag
68
+ :type tag: BadRequestEncodedTag
69
+ :param type: type
70
+ :type type: BadRequestEncodedType
71
+ :param title: title
72
+ :type title: BadRequestEncodedTitle
73
+ :param status: status
74
+ :type status: BadRequestEncodedStatus
75
+ :param detail: detail
76
+ :type detail: str
77
+ """
78
+
79
+ _model_class = BadRequestEncodedData
@@ -0,0 +1,35 @@
1
+ from __future__ import annotations
2
+ from typing import Union
3
+ from typing import Any
4
+ from typing import Annotated
5
+ from pydantic import TypeAdapter
6
+ from .bad_request_encoded import BadRequestEncodedData
7
+ from .invalid_page_size_encoded import InvalidPageSizeEncoded
8
+ from .invalid_page_token_encoded import InvalidPageTokenEncoded
9
+
10
+
11
+ # fernMode variant type for a shared-component member of BadRequestErrorBody
12
+ class BadRequestErrorBody_BadRequest(BadRequestEncodedData):
13
+ pass
14
+
15
+
16
+ # fernMode variant type for a shared-component member of BadRequestErrorBody
17
+ class BadRequestErrorBody_InvalidPageSize(InvalidPageSizeEncoded):
18
+ pass
19
+
20
+
21
+ # fernMode variant type for a shared-component member of BadRequestErrorBody
22
+ class BadRequestErrorBody_InvalidPageToken(InvalidPageTokenEncoded):
23
+ pass
24
+
25
+
26
+ # Union type for BadRequestErrorBody
27
+ # Pydantic will attempt to validate against each type in order
28
+ BadRequestErrorBody = Union[
29
+ BadRequestEncodedData, InvalidPageSizeEncoded, InvalidPageTokenEncoded
30
+ ]
31
+ # TypeAdapter for runtime validation of BadRequestErrorBody
32
+ # This allows validation of Union types which are not directly instantiable
33
+ from pydantic import TypeAdapter
34
+
35
+ BadRequestErrorBody_adapter = TypeAdapter(BadRequestErrorBody)
@@ -0,0 +1,15 @@
1
+ from __future__ import annotations
2
+ from pydantic import Field
3
+ from typing import Optional
4
+ from typing import Any
5
+ from .utils.base_model import BaseModel
6
+
7
+
8
+ class CancelJobRequest(BaseModel):
9
+ """CancelJobRequest
10
+
11
+ :param force: force, defaults to None
12
+ :type force: bool, optional
13
+ """
14
+
15
+ force: Optional[bool] = Field(default=None)
@@ -0,0 +1,15 @@
1
+ from __future__ import annotations
2
+ from pydantic import Field
3
+ from typing import Optional
4
+ from typing import Any
5
+ from .utils.base_model import BaseModel
6
+
7
+
8
+ class CancelTrialRequest(BaseModel):
9
+ """CancelTrialRequest
10
+
11
+ :param force: force, defaults to None
12
+ :type force: bool, optional
13
+ """
14
+
15
+ force: Optional[bool] = Field(default=None)