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.
- harbor_client/__init__.py +49 -0
- harbor_client/__init__.pyi +661 -0
- harbor_client/_openapi.json.gz +0 -0
- harbor_client/account/__init__.py +3 -0
- harbor_client/account/client.py +236 -0
- harbor_client/agents/__init__.py +3 -0
- harbor_client/agents/client.py +230 -0
- harbor_client/api_keys/__init__.py +3 -0
- harbor_client/api_keys/client.py +457 -0
- harbor_client/api_keys/types/__init__.py +13 -0
- harbor_client/api_keys/types/api_keys_list_bad_request_response.py +13 -0
- harbor_client/base_client.py +912 -0
- harbor_client/client.py +207 -0
- harbor_client/core/__init__.py +20 -0
- harbor_client/core/api_error.py +3 -0
- harbor_client/core/client_wrapper.py +73 -0
- harbor_client/core/file.py +57 -0
- harbor_client/core/http_response.py +5 -0
- harbor_client/core/httpx_session.py +136 -0
- harbor_client/core/jsonable_encoder.py +52 -0
- harbor_client/core/remove_none_from_dict.py +5 -0
- harbor_client/core/request_options.py +47 -0
- harbor_client/environment.py +4 -0
- harbor_client/errors.py +119 -0
- harbor_client/jobs/__init__.py +3 -0
- harbor_client/jobs/client.py +2994 -0
- harbor_client/jobs/types/__init__.py +97 -0
- harbor_client/jobs/types/jobs_get_filters_request_field.py +3 -0
- harbor_client/jobs/types/jobs_get_overview_request_force_combined.py +3 -0
- harbor_client/jobs/types/jobs_list_bad_request_response.py +13 -0
- harbor_client/jobs/types/jobs_list_request_sort.py +3 -0
- harbor_client/jobs/types/jobs_list_tasks_bad_request_response.py +13 -0
- harbor_client/jobs/types/jobs_list_tasks_request_sort_by.py +3 -0
- harbor_client/jobs/types/jobs_list_tasks_request_sort_order.py +3 -0
- harbor_client/jobs/types/jobs_submit_response.py +3 -0
- harbor_client/jobs/types/result_job_create_visibility.py +3 -0
- harbor_client/jobs/types/submit_job_request_config.py +3 -0
- harbor_client/jobs/types/submit_job_request_config_agent_setup_timeout_multiplier.py +3 -0
- harbor_client/jobs/types/submit_job_request_config_agent_setup_timeout_multiplier_one.py +3 -0
- harbor_client/jobs/types/submit_job_request_config_agent_timeout_multiplier.py +3 -0
- harbor_client/jobs/types/submit_job_request_config_agent_timeout_multiplier_one.py +3 -0
- harbor_client/jobs/types/submit_job_request_config_artifacts_item.py +3 -0
- harbor_client/jobs/types/submit_job_request_config_credential_mode.py +3 -0
- harbor_client/jobs/types/submit_job_request_config_environment_build_timeout_multiplier.py +3 -0
- harbor_client/jobs/types/submit_job_request_config_environment_build_timeout_multiplier_one.py +3 -0
- harbor_client/jobs/types/submit_job_request_config_timeout_multiplier.py +3 -0
- harbor_client/jobs/types/submit_job_request_config_timeout_multiplier_one.py +3 -0
- harbor_client/jobs/types/submit_job_request_config_verifier_timeout_multiplier.py +3 -0
- harbor_client/jobs/types/submit_job_request_config_verifier_timeout_multiplier_one.py +3 -0
- harbor_client/jobs/types/submit_job_request_regrade.py +3 -0
- harbor_client/jobs/types/submit_job_request_regrade_source_trial_id.py +3 -0
- harbor_client/jobs/types/update_job_sharing_request_visibility.py +3 -0
- harbor_client/leaderboards/__init__.py +3 -0
- harbor_client/leaderboards/client.py +1354 -0
- harbor_client/leaderboards/types/__init__.py +61 -0
- harbor_client/leaderboards/types/leaderboards_create_request_visibility.py +3 -0
- harbor_client/leaderboards/types/leaderboards_list_bad_request_response.py +13 -0
- harbor_client/leaderboards/types/leaderboards_list_rows_bad_request_response.py +13 -0
- harbor_client/leaderboards/types/leaderboards_list_trials_bad_request_response.py +13 -0
- harbor_client/leaderboards/types/leaderboards_update_request_definition.py +3 -0
- harbor_client/leaderboards/types/leaderboards_update_request_definition_visibility.py +3 -0
- harbor_client/leaderboards/types/leaderboards_update_request_row_deletes_item.py +3 -0
- harbor_client/leaderboards/types/leaderboards_update_request_row_updates_item.py +3 -0
- harbor_client/leaderboards/types/leaderboards_update_request_row_updates_item_status.py +3 -0
- harbor_client/leaderboards/types/leaderboards_update_request_trial_updates_item.py +3 -0
- harbor_client/leaderboards/types/leaderboards_update_request_trial_updates_item_operation.py +3 -0
- harbor_client/net/__init__.py +0 -0
- harbor_client/net/environment/__init__.py +4 -0
- harbor_client/net/environment/environment.py +32 -0
- harbor_client/net/headers/__init__.py +0 -0
- harbor_client/net/headers/access_token_auth.py +75 -0
- harbor_client/net/headers/base_header.py +34 -0
- harbor_client/net/request_chain/__init__.py +0 -0
- harbor_client/net/request_chain/handlers/__init__.py +0 -0
- harbor_client/net/request_chain/handlers/base_handler.py +51 -0
- harbor_client/net/request_chain/handlers/http_handler.py +607 -0
- harbor_client/net/request_chain/handlers/logging_handler.py +186 -0
- harbor_client/net/request_chain/handlers/retry_handler.py +295 -0
- harbor_client/net/request_chain/request_chain.py +76 -0
- harbor_client/net/sdk_config.py +101 -0
- harbor_client/net/transport/__init__.py +0 -0
- harbor_client/net/transport/api_error.py +118 -0
- harbor_client/net/transport/http_response.py +83 -0
- harbor_client/net/transport/pagination.py +156 -0
- harbor_client/net/transport/request.py +190 -0
- harbor_client/net/transport/request_error.py +34 -0
- harbor_client/net/transport/response.py +456 -0
- harbor_client/net/transport/serializer.py +490 -0
- harbor_client/net/transport/utils.py +41 -0
- harbor_client/organizations/__init__.py +3 -0
- harbor_client/organizations/client.py +346 -0
- harbor_client/packages/__init__.py +3 -0
- harbor_client/packages/client.py +2277 -0
- harbor_client/packages/types/__init__.py +53 -0
- harbor_client/packages/types/packages_list_version_catalog_bad_request_response.py +13 -0
- harbor_client/packages/types/packages_list_version_catalog_request_include_yanked.py +3 -0
- harbor_client/packages/types/packages_list_version_catalog_request_type.py +3 -0
- harbor_client/packages/types/packages_list_version_files_bad_request_response.py +13 -0
- harbor_client/packages/types/packages_list_versions_bad_request_response.py +13 -0
- harbor_client/packages/types/packages_list_versions_request_include_yanked.py +3 -0
- harbor_client/packages/types/packages_set_visibility_request_visibility.py +3 -0
- harbor_client/packages/types/packages_update_organization_access_request_action.py +3 -0
- harbor_client/py.typed +1 -0
- harbor_client/rollouts/__init__.py +3 -0
- harbor_client/rollouts/client.py +1364 -0
- harbor_client/rollouts/types/__init__.py +31 -0
- harbor_client/rollouts/types/rollouts_get_filters_request_attempts.py +3 -0
- harbor_client/rollouts/types/rollouts_get_filters_request_failed_only.py +3 -0
- harbor_client/rollouts/types/rollouts_get_filters_request_field.py +3 -0
- harbor_client/rollouts/types/rollouts_get_filters_request_terminal.py +3 -0
- harbor_client/rollouts/types/rollouts_list_bad_request_response.py +13 -0
- harbor_client/rollouts/types/rollouts_list_request_attempts.py +3 -0
- harbor_client/rollouts/types/rollouts_list_request_failed_only.py +3 -0
- harbor_client/rollouts/types/rollouts_list_request_sort.py +3 -0
- harbor_client/rollouts/types/rollouts_list_request_terminal.py +3 -0
- harbor_client/secrets/__init__.py +3 -0
- harbor_client/secrets/client.py +1309 -0
- harbor_client/secrets/types/__init__.py +61 -0
- harbor_client/secrets/types/registry_credential_upsert_encoded_provider.py +3 -0
- harbor_client/secrets/types/secrets_list_bad_request_response.py +13 -0
- harbor_client/secrets/types/secrets_list_registry_credentials_request_status.py +3 -0
- harbor_client/secrets/types/secrets_list_registry_credentials_response.py +3 -0
- harbor_client/secrets/types/secrets_list_request_status_filter.py +3 -0
- harbor_client/secrets/types/secrets_preflight_request_config.py +3 -0
- harbor_client/secrets/types/secrets_preflight_request_config_credential_mode.py +3 -0
- harbor_client/secrets/types/secrets_revoke_registry_credential_request_purge.py +3 -0
- harbor_client/secrets/types/secrets_revoke_request_scope.py +3 -0
- harbor_client/secrets/types/secrets_revoke_response.py +3 -0
- harbor_client/secrets/types/secrets_upsert_conflict_response.py +13 -0
- harbor_client/secrets/types/secrets_upsert_registry_credential_conflict_response.py +11 -0
- harbor_client/secrets/types/secrets_upsert_request_scope.py +3 -0
- harbor_client/services/__init__.py +0 -0
- harbor_client/services/async_/__init__.py +0 -0
- harbor_client/services/async_/utils/__init__.py +0 -0
- harbor_client/services/async_/utils/to_async.py +20 -0
- harbor_client/services/utils/__init__.py +0 -0
- harbor_client/services/utils/base_service.py +408 -0
- harbor_client/services/utils/default_headers.py +69 -0
- harbor_client/services/utils/validator.py +474 -0
- harbor_client/storage/__init__.py +3 -0
- harbor_client/storage/client.py +269 -0
- harbor_client/transfers.py +724 -0
- harbor_client/trials/__init__.py +3 -0
- harbor_client/trials/client.py +1939 -0
- harbor_client/trials/types/__init__.py +29 -0
- harbor_client/trials/types/trials_get_filters_request_attempts.py +3 -0
- harbor_client/trials/types/trials_get_filters_request_failed_only.py +3 -0
- harbor_client/trials/types/trials_get_filters_request_field.py +3 -0
- harbor_client/trials/types/trials_get_filters_request_terminal.py +3 -0
- harbor_client/trials/types/trials_list_bad_request_response.py +13 -0
- harbor_client/trials/types/trials_list_request_attempts.py +3 -0
- harbor_client/trials/types/trials_list_request_failed_only.py +3 -0
- harbor_client/trials/types/trials_list_request_sort.py +3 -0
- harbor_client/trials/types/trials_list_request_terminal.py +3 -0
- harbor_client/types/__init__.py +1006 -0
- harbor_client/types/__init__.pyi +644 -0
- harbor_client/types/account_identity.py +15 -0
- harbor_client/types/agent_identity.py +19 -0
- harbor_client/types/agent_options.py +1 -0
- harbor_client/types/agent_source.py +40 -0
- harbor_client/types/agent_source_manifest.py +57 -0
- harbor_client/types/agent_source_runtime.py +33 -0
- harbor_client/types/agents_response.py +16 -0
- harbor_client/types/api_key_create.py +19 -0
- harbor_client/types/api_key_created.py +44 -0
- harbor_client/types/api_key_metadata.py +41 -0
- harbor_client/types/api_key_metadata_page.py +24 -0
- harbor_client/types/api_keys_list_bad_request_response.py +35 -0
- harbor_client/types/artifact_config.py +26 -0
- harbor_client/types/available_dataset_task_dependency.py +97 -0
- harbor_client/types/bad_request_encoded.py +79 -0
- harbor_client/types/bad_request_error_body.py +35 -0
- harbor_client/types/cancel_job_request.py +15 -0
- harbor_client/types/cancel_trial_request.py +15 -0
- harbor_client/types/conflict_encoded.py +77 -0
- harbor_client/types/conflict_error_body.py +38 -0
- harbor_client/types/create_leaderboard_response.py +22 -0
- harbor_client/types/create_leaderboard_row_input.py +32 -0
- harbor_client/types/created_result_job.py +49 -0
- harbor_client/types/created_result_trial.py +28 -0
- harbor_client/types/credential_proxy_header_transform.py +16 -0
- harbor_client/types/credential_proxy_path_match.py +15 -0
- harbor_client/types/credential_proxy_policy_rule.py +21 -0
- harbor_client/types/credential_proxy_request_match.py +20 -0
- harbor_client/types/dataset_publish_task_reference.py +21 -0
- harbor_client/types/dataset_version_detail.py +95 -0
- harbor_client/types/dataset_version_file.py +50 -0
- harbor_client/types/dataset_version_manifest.py +91 -0
- harbor_client/types/dataset_version_revision_summary.py +22 -0
- harbor_client/types/delete_jobs_request.py +17 -0
- harbor_client/types/delete_jobs_response.py +22 -0
- harbor_client/types/dry_run_response.py +15 -0
- harbor_client/types/ensure_organization_response.py +18 -0
- harbor_client/types/evaluation_comparison.py +27 -0
- harbor_client/types/evaluation_comparison_agent_model.py +34 -0
- harbor_client/types/evaluation_comparison_cell.py +109 -0
- harbor_client/types/evaluation_comparison_task.py +22 -0
- harbor_client/types/evaluation_job_reference.py +48 -0
- harbor_client/types/evaluation_metric_set.py +42 -0
- harbor_client/types/evaluation_summary.py +21 -0
- harbor_client/types/evaluation_summary_row.py +128 -0
- harbor_client/types/existing_registry_credential.py +28 -0
- harbor_client/types/existing_secret_summary.py +31 -0
- harbor_client/types/filter_values_response.py +72 -0
- harbor_client/types/forbidden_encoded.py +79 -0
- harbor_client/types/hosted_agent_config.py +72 -0
- harbor_client/types/hosted_dataset_config.py +62 -0
- harbor_client/types/hosted_diff_selectors.py +22 -0
- harbor_client/types/hosted_github_agent_source.py +30 -0
- harbor_client/types/hosted_job_trial_regrade_source.py +19 -0
- harbor_client/types/hosted_local_task_requirements.py +20 -0
- harbor_client/types/hosted_preflight_environment_config.py +24 -0
- harbor_client/types/hosted_retry_config.py +32 -0
- harbor_client/types/hosted_secret_selection.py +21 -0
- harbor_client/types/hosted_submission_credential_proxy_path_match.py +17 -0
- harbor_client/types/hosted_submission_credential_proxy_policy_rule.py +23 -0
- harbor_client/types/hosted_submission_credential_proxy_request_match.py +22 -0
- harbor_client/types/hosted_submission_dataset_config.py +64 -0
- harbor_client/types/hosted_submission_environment_config.py +26 -0
- harbor_client/types/hosted_submission_retry_config.py +32 -0
- harbor_client/types/hosted_submission_task_config.py +45 -0
- harbor_client/types/hosted_task_config.py +45 -0
- harbor_client/types/hosted_task_environment_requirement.py +26 -0
- harbor_client/types/hosted_verifier_config.py +75 -0
- harbor_client/types/internal_server_error_encoded.py +93 -0
- harbor_client/types/invalid_page_size_encoded.py +58 -0
- harbor_client/types/invalid_page_token_encoded.py +60 -0
- harbor_client/types/job_artifact_type.py +5 -0
- harbor_client/types/job_bucket_circuit_state.py +93 -0
- harbor_client/types/job_cancellation_summary.py +47 -0
- harbor_client/types/job_circuit_state.py +90 -0
- harbor_client/types/job_creator.py +28 -0
- harbor_client/types/job_detail.py +84 -0
- harbor_client/types/job_manual_pause_summary.py +66 -0
- harbor_client/types/job_overview.py +332 -0
- harbor_client/types/job_overview_statistics.py +97 -0
- harbor_client/types/job_owner_organization.py +28 -0
- harbor_client/types/job_package_run_target.py +21 -0
- harbor_client/types/job_page.py +24 -0
- harbor_client/types/job_path_run_target.py +24 -0
- harbor_client/types/job_response.py +17 -0
- harbor_client/types/job_reward_metric_set.py +42 -0
- harbor_client/types/job_share_organization_summary.py +22 -0
- harbor_client/types/job_sharing.py +38 -0
- harbor_client/types/job_summary.py +73 -0
- harbor_client/types/job_task_page.py +24 -0
- harbor_client/types/job_task_summary.py +146 -0
- harbor_client/types/job_trial_status.py +4 -0
- harbor_client/types/job_trial_status_item.py +128 -0
- harbor_client/types/jobs_copy_request.py +22 -0
- harbor_client/types/jobs_get_filters_request_field.py +17 -0
- harbor_client/types/jobs_get_overview_request_force_combined.py +7 -0
- harbor_client/types/jobs_list_bad_request_response.py +35 -0
- harbor_client/types/jobs_list_request_sort.py +21 -0
- harbor_client/types/jobs_list_tasks_bad_request_response.py +35 -0
- harbor_client/types/jobs_list_tasks_request_sort_by.py +25 -0
- harbor_client/types/jobs_list_tasks_request_sort_order.py +5 -0
- harbor_client/types/jobs_rename_request.py +15 -0
- harbor_client/types/jobs_submit_response.py +15 -0
- harbor_client/types/jobs_transfer_request.py +22 -0
- harbor_client/types/leaderboard_change_summary.py +37 -0
- harbor_client/types/leaderboard_definition.py +67 -0
- harbor_client/types/leaderboard_detail.py +17 -0
- harbor_client/types/leaderboard_mutation_record.py +64 -0
- harbor_client/types/leaderboard_mutation_row.py +43 -0
- harbor_client/types/leaderboard_package_selector_encoded.py +16 -0
- harbor_client/types/leaderboard_ranked_row.py +44 -0
- harbor_client/types/leaderboard_read_column_definition.py +55 -0
- harbor_client/types/leaderboard_read_ranking_rule.py +30 -0
- harbor_client/types/leaderboard_row_detail.py +17 -0
- harbor_client/types/leaderboard_rows_page.py +28 -0
- harbor_client/types/leaderboard_summary.py +64 -0
- harbor_client/types/leaderboard_summary_page.py +24 -0
- harbor_client/types/leaderboard_trial_link.py +18 -0
- harbor_client/types/leaderboard_trial_link_page.py +23 -0
- harbor_client/types/leaderboard_write_column_definition.py +55 -0
- harbor_client/types/leaderboard_write_ranking_rule.py +30 -0
- harbor_client/types/leaderboards_create_request.py +59 -0
- harbor_client/types/leaderboards_list_bad_request_response.py +37 -0
- harbor_client/types/leaderboards_list_rows_bad_request_response.py +37 -0
- harbor_client/types/leaderboards_list_trials_bad_request_response.py +39 -0
- harbor_client/types/leaderboards_update_request.py +152 -0
- harbor_client/types/mean_aggregate.py +19 -0
- harbor_client/types/metric_config.py +20 -0
- harbor_client/types/model_identity.py +22 -0
- harbor_client/types/my_organizations.py +4 -0
- harbor_client/types/my_organizations_item.py +36 -0
- harbor_client/types/not_found_encoded.py +77 -0
- harbor_client/types/organization_detail.py +38 -0
- harbor_client/types/organizations_ensure_request.py +15 -0
- harbor_client/types/owner_organization.py +31 -0
- harbor_client/types/package_access.py +46 -0
- harbor_client/types/package_access_grant_creator.py +22 -0
- harbor_client/types/package_access_organization_summary.py +30 -0
- harbor_client/types/package_name_reference.py +18 -0
- harbor_client/types/package_organization_grant.py +44 -0
- harbor_client/types/package_public_grant.py +40 -0
- harbor_client/types/package_tag.py +24 -0
- harbor_client/types/package_tags.py +4 -0
- harbor_client/types/package_version_catalog_page.py +21 -0
- harbor_client/types/package_version_detail.py +27 -0
- harbor_client/types/package_version_file_page.py +21 -0
- harbor_client/types/package_version_manifest.py +27 -0
- harbor_client/types/package_version_summary.py +69 -0
- harbor_client/types/packages_list_version_catalog_bad_request_response.py +41 -0
- harbor_client/types/packages_list_version_catalog_request_include_yanked.py +7 -0
- harbor_client/types/packages_list_version_catalog_request_type.py +7 -0
- harbor_client/types/packages_list_version_files_bad_request_response.py +41 -0
- harbor_client/types/packages_list_versions_bad_request_response.py +37 -0
- harbor_client/types/packages_list_versions_request_include_yanked.py +7 -0
- harbor_client/types/packages_set_visibility_request.py +27 -0
- harbor_client/types/packages_update_organization_access_request.py +26 -0
- harbor_client/types/registry_credential.py +44 -0
- harbor_client/types/registry_credential_replacement_required_encoded.py +86 -0
- harbor_client/types/registry_credential_replacement_stale_encoded.py +79 -0
- harbor_client/types/registry_credential_revoke_result.py +21 -0
- harbor_client/types/registry_credential_summary.py +46 -0
- harbor_client/types/registry_credential_upsert_encoded.py +48 -0
- harbor_client/types/registry_package.py +37 -0
- harbor_client/types/registry_package_version.py +44 -0
- harbor_client/types/registry_package_version_page.py +25 -0
- harbor_client/types/registry_version_file.py +47 -0
- harbor_client/types/rename_job_response.py +21 -0
- harbor_client/types/reserve_temporary_package_request.py +25 -0
- harbor_client/types/reserve_temporary_task_response.py +27 -0
- harbor_client/types/resolved_task_step.py +38 -0
- harbor_client/types/result_job_create.py +40 -0
- harbor_client/types/result_model_usage.py +31 -0
- harbor_client/types/result_trial_create.py +92 -0
- harbor_client/types/retry_rollout_response.py +15 -0
- harbor_client/types/retry_trial_response.py +15 -0
- harbor_client/types/reward_value.py +3 -0
- harbor_client/types/rollout_response.py +17 -0
- harbor_client/types/rollouts_get_filters_request_attempts.py +7 -0
- harbor_client/types/rollouts_get_filters_request_failed_only.py +7 -0
- harbor_client/types/rollouts_get_filters_request_field.py +18 -0
- harbor_client/types/rollouts_get_filters_request_terminal.py +7 -0
- harbor_client/types/rollouts_list_bad_request_response.py +34 -0
- harbor_client/types/rollouts_list_request_attempts.py +5 -0
- harbor_client/types/rollouts_list_request_failed_only.py +7 -0
- harbor_client/types/rollouts_list_request_sort.py +47 -0
- harbor_client/types/rollouts_list_request_terminal.py +5 -0
- harbor_client/types/run_state.py +10 -0
- harbor_client/types/secret_metadata.py +54 -0
- harbor_client/types/secret_metadata_page.py +21 -0
- harbor_client/types/secret_preflight.py +152 -0
- harbor_client/types/secret_replacement_required_encoded.py +72 -0
- harbor_client/types/secret_replacement_stale_encoded.py +67 -0
- harbor_client/types/secret_write_result.py +51 -0
- harbor_client/types/secrets_list_bad_request_response.py +35 -0
- harbor_client/types/secrets_list_registry_credentials_request_status.py +7 -0
- harbor_client/types/secrets_list_registry_credentials_response.py +18 -0
- harbor_client/types/secrets_list_request_status_filter.py +7 -0
- harbor_client/types/secrets_preflight_request.py +76 -0
- harbor_client/types/secrets_revoke_registry_credential_request_purge.py +7 -0
- harbor_client/types/secrets_revoke_request.py +33 -0
- harbor_client/types/secrets_revoke_response.py +34 -0
- harbor_client/types/secrets_upsert_conflict_response.py +39 -0
- harbor_client/types/secrets_upsert_registry_credential_conflict_response.py +40 -0
- harbor_client/types/secrets_upsert_request.py +43 -0
- harbor_client/types/selected_secret.py +48 -0
- harbor_client/types/service_unavailable_encoded.py +85 -0
- harbor_client/types/set_package_visibility_response.py +50 -0
- harbor_client/types/storage_copy_result.py +60 -0
- harbor_client/types/storage_dataset_upload_create.py +50 -0
- harbor_client/types/storage_dataset_upload_metadata.py +49 -0
- harbor_client/types/storage_dataset_upload_result.py +50 -0
- harbor_client/types/storage_download.py +64 -0
- harbor_client/types/storage_http_transfer.py +33 -0
- harbor_client/types/storage_job_upload_create.py +39 -0
- harbor_client/types/storage_job_upload_metadata.py +45 -0
- harbor_client/types/storage_publication_file.py +25 -0
- harbor_client/types/storage_result_upload_result.py +15 -0
- harbor_client/types/storage_task_upload_create.py +50 -0
- harbor_client/types/storage_task_upload_metadata.py +79 -0
- harbor_client/types/storage_task_upload_result.py +39 -0
- harbor_client/types/storage_trial_upload_create.py +41 -0
- harbor_client/types/storage_tus_transfer.py +56 -0
- harbor_client/types/storage_upload_create.py +44 -0
- harbor_client/types/storage_upload_file.py +63 -0
- harbor_client/types/storage_upload_file_input.py +32 -0
- harbor_client/types/storage_upload_receipt.py +53 -0
- harbor_client/types/storage_upload_session.py +61 -0
- harbor_client/types/submit_job_request.py +277 -0
- harbor_client/types/submit_job_response.py +51 -0
- harbor_client/types/sum_aggregate.py +19 -0
- harbor_client/types/tag_package_version_request.py +15 -0
- harbor_client/types/tag_package_version_response.py +18 -0
- harbor_client/types/task_environment_requirement.py +26 -0
- harbor_client/types/task_identity.py +22 -0
- harbor_client/types/task_publish_step.py +47 -0
- harbor_client/types/task_version_detail.py +115 -0
- harbor_client/types/task_version_manifest.py +119 -0
- harbor_client/types/too_many_requests_encoded.py +81 -0
- harbor_client/types/transfer_job_response.py +36 -0
- harbor_client/types/trial_artifact_type.py +5 -0
- harbor_client/types/trial_counts.py +33 -0
- harbor_client/types/trial_detail.py +103 -0
- harbor_client/types/trial_filter_values_response.py +76 -0
- harbor_client/types/trial_page.py +24 -0
- harbor_client/types/trial_response.py +17 -0
- harbor_client/types/trial_summary.py +83 -0
- harbor_client/types/trials_copy_request.py +22 -0
- harbor_client/types/trials_get_filters_request_attempts.py +7 -0
- harbor_client/types/trials_get_filters_request_failed_only.py +7 -0
- harbor_client/types/trials_get_filters_request_field.py +18 -0
- harbor_client/types/trials_get_filters_request_terminal.py +7 -0
- harbor_client/types/trials_list_bad_request_response.py +35 -0
- harbor_client/types/trials_list_request_attempts.py +5 -0
- harbor_client/types/trials_list_request_failed_only.py +5 -0
- harbor_client/types/trials_list_request_sort.py +47 -0
- harbor_client/types/trials_list_request_terminal.py +5 -0
- harbor_client/types/unauthorized_encoded.py +79 -0
- harbor_client/types/unavailable_dataset_task_dependency.py +43 -0
- harbor_client/types/update_job_sharing_request.py +36 -0
- harbor_client/types/update_leaderboard_response.py +29 -0
- harbor_client/types/update_package_access_response.py +65 -0
- harbor_client/types/usage.py +25 -0
- harbor_client/types/usage_aggregates.py +26 -0
- harbor_client/types/utils/__init__.py +0 -0
- harbor_client/types/utils/base_error.py +127 -0
- harbor_client/types/utils/base_model.py +439 -0
- harbor_client/types/utils/cast_models.py +226 -0
- harbor_client/types/utils/json_map.py +84 -0
- harbor_client/types/utils/one_of_base_model.py +173 -0
- harbor_client/types/utils/sentinel.py +19 -0
- harbor_client/validation.py +335 -0
- harbor_client/version.py +9 -0
- harbor_framework_client-0.1.0.dist-info/METADATA +134 -0
- harbor_framework_client-0.1.0.dist-info/RECORD +433 -0
- harbor_framework_client-0.1.0.dist-info/WHEEL +5 -0
- harbor_framework_client-0.1.0.dist-info/licenses/LICENSE +201 -0
- harbor_framework_client-0.1.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
import typing
|
|
3
|
+
from typing import Union
|
|
4
|
+
from typing import List
|
|
5
|
+
from pydantic import Field
|
|
6
|
+
from typing import Optional
|
|
7
|
+
from typing import Any
|
|
8
|
+
from typing import Annotated
|
|
9
|
+
from pydantic import TypeAdapter
|
|
10
|
+
from .utils.base_model import BaseModel
|
|
11
|
+
from .storage_upload_file import StorageUploadFile
|
|
12
|
+
from .storage_task_upload_result import StorageTaskUploadResult
|
|
13
|
+
from .storage_dataset_upload_result import StorageDatasetUploadResult
|
|
14
|
+
from .storage_result_upload_result import StorageResultUploadResult
|
|
15
|
+
|
|
16
|
+
StorageUploadSessionKind = typing.Union[
|
|
17
|
+
typing.Literal["task", "dataset", "job", "trial"], typing.Any
|
|
18
|
+
]
|
|
19
|
+
|
|
20
|
+
StorageUploadSessionState = typing.Union[
|
|
21
|
+
typing.Literal["pending", "verified", "completed"], typing.Any
|
|
22
|
+
]
|
|
23
|
+
|
|
24
|
+
# Union type for StorageUploadSessionResult
|
|
25
|
+
# Pydantic will attempt to validate against each type in order
|
|
26
|
+
StorageUploadSessionResult = Union[
|
|
27
|
+
StorageTaskUploadResult, StorageDatasetUploadResult, StorageResultUploadResult
|
|
28
|
+
]
|
|
29
|
+
# TypeAdapter for runtime validation of StorageUploadSessionResult
|
|
30
|
+
# This allows validation of Union types which are not directly instantiable
|
|
31
|
+
from pydantic import TypeAdapter
|
|
32
|
+
|
|
33
|
+
StorageUploadSessionResult_adapter = TypeAdapter(StorageUploadSessionResult)
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
class StorageUploadSession(BaseModel):
|
|
37
|
+
"""StorageUploadSession
|
|
38
|
+
|
|
39
|
+
:param id: id
|
|
40
|
+
:type id: str
|
|
41
|
+
:param kind: kind
|
|
42
|
+
:type kind: StorageUploadSessionKind
|
|
43
|
+
:param resource_id: resource_id
|
|
44
|
+
:type resource_id: str
|
|
45
|
+
:param state: state
|
|
46
|
+
:type state: StorageUploadSessionState
|
|
47
|
+
:param result: result
|
|
48
|
+
:type result: StorageUploadSessionResult
|
|
49
|
+
:param expires_at: expires_at
|
|
50
|
+
:type expires_at: str
|
|
51
|
+
:param files: files
|
|
52
|
+
:type files: List[StorageUploadFile]
|
|
53
|
+
"""
|
|
54
|
+
|
|
55
|
+
id: str
|
|
56
|
+
kind: StorageUploadSessionKind
|
|
57
|
+
resource_id: str
|
|
58
|
+
state: StorageUploadSessionState
|
|
59
|
+
result: Optional[StorageUploadSessionResult]
|
|
60
|
+
expires_at: str
|
|
61
|
+
files: List[StorageUploadFile]
|
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
import typing
|
|
3
|
+
from typing import Union
|
|
4
|
+
from typing import List
|
|
5
|
+
from pydantic import Field
|
|
6
|
+
from typing import Optional
|
|
7
|
+
from typing import Any
|
|
8
|
+
from typing import Annotated
|
|
9
|
+
from pydantic import TypeAdapter
|
|
10
|
+
from typing import Dict
|
|
11
|
+
from .utils.base_model import BaseModel
|
|
12
|
+
from .hosted_diff_selectors import HostedDiffSelectors
|
|
13
|
+
from .hosted_agent_config import HostedAgentConfig
|
|
14
|
+
from .hosted_submission_environment_config import HostedSubmissionEnvironmentConfig
|
|
15
|
+
from .hosted_submission_task_config import HostedSubmissionTaskConfig
|
|
16
|
+
from .hosted_submission_dataset_config import HostedSubmissionDatasetConfig
|
|
17
|
+
from .hosted_submission_retry_config import HostedSubmissionRetryConfig
|
|
18
|
+
from .hosted_verifier_config import HostedVerifierConfig
|
|
19
|
+
from .metric_config import MetricConfig
|
|
20
|
+
from .artifact_config import ArtifactConfig
|
|
21
|
+
from .hosted_job_trial_regrade_source import HostedJobTrialRegradeSource
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
class SubmitJobRequest(BaseModel):
|
|
25
|
+
"""SubmitJobRequest
|
|
26
|
+
|
|
27
|
+
:param config: config
|
|
28
|
+
:type config: SubmitJobRequestConfig
|
|
29
|
+
:param dry_run: dry_run, defaults to None
|
|
30
|
+
:type dry_run: bool, optional
|
|
31
|
+
:param job_secrets: job_secrets, defaults to None
|
|
32
|
+
:type job_secrets: Dict[str, Any], optional
|
|
33
|
+
:param registry_credentials: registry_credentials, defaults to None
|
|
34
|
+
:type registry_credentials: Dict[str, Any], optional
|
|
35
|
+
:param regrade: regrade, defaults to None
|
|
36
|
+
:type regrade: SubmitJobRequestRegrade, optional
|
|
37
|
+
:param organization_id: organization_id, defaults to None
|
|
38
|
+
:type organization_id: str, optional
|
|
39
|
+
:param relay_inference: relay_inference, defaults to None
|
|
40
|
+
:type relay_inference: bool, optional
|
|
41
|
+
:param session_id: session_id, defaults to None
|
|
42
|
+
:type session_id: str, optional
|
|
43
|
+
"""
|
|
44
|
+
|
|
45
|
+
config: SubmitJobRequestConfig
|
|
46
|
+
dry_run: Optional[bool] = Field(default=None)
|
|
47
|
+
job_secrets: Optional[Dict[str, Any]] = Field(default=None)
|
|
48
|
+
registry_credentials: Optional[Dict[str, Any]] = Field(default=None)
|
|
49
|
+
regrade: Optional[SubmitJobRequestRegrade] = Field(default=None)
|
|
50
|
+
organization_id: Optional[str] = Field(default=None)
|
|
51
|
+
relay_inference: Optional[bool] = Field(default=None)
|
|
52
|
+
session_id: Optional[str] = Field(default=None)
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
class SubmitJobRequestConfig(BaseModel):
|
|
56
|
+
"""SubmitJobRequestConfig
|
|
57
|
+
|
|
58
|
+
:param diff: diff, defaults to None
|
|
59
|
+
:type diff: HostedDiffSelectors, optional
|
|
60
|
+
:param install_only: install_only, defaults to None
|
|
61
|
+
:type install_only: bool, optional
|
|
62
|
+
:param static_outbound_ip: static_outbound_ip, defaults to None
|
|
63
|
+
:type static_outbound_ip: bool, optional
|
|
64
|
+
:param credential_mode: credential_mode, defaults to None
|
|
65
|
+
:type credential_mode: SubmitJobRequestConfigCredentialMode, optional
|
|
66
|
+
:param agents: agents
|
|
67
|
+
:type agents: List[HostedAgentConfig]
|
|
68
|
+
:param environment: environment, defaults to None
|
|
69
|
+
:type environment: HostedSubmissionEnvironmentConfig, optional
|
|
70
|
+
:param tasks: tasks, defaults to None
|
|
71
|
+
:type tasks: List[HostedSubmissionTaskConfig], optional
|
|
72
|
+
:param datasets: datasets, defaults to None
|
|
73
|
+
:type datasets: List[HostedSubmissionDatasetConfig], optional
|
|
74
|
+
:param retry: retry, defaults to None
|
|
75
|
+
:type retry: HostedSubmissionRetryConfig, optional
|
|
76
|
+
:param n_attempts: n_attempts, defaults to None
|
|
77
|
+
:type n_attempts: float, optional
|
|
78
|
+
:param n_concurrent_trials: n_concurrent_trials, defaults to None
|
|
79
|
+
:type n_concurrent_trials: float, optional
|
|
80
|
+
:param job_name: job_name, defaults to None
|
|
81
|
+
:type job_name: str, optional
|
|
82
|
+
:param jobs_dir: jobs_dir, defaults to None
|
|
83
|
+
:type jobs_dir: str, optional
|
|
84
|
+
:param timeout_multiplier: timeout_multiplier, defaults to None
|
|
85
|
+
:type timeout_multiplier: SubmitJobRequestConfigTimeoutMultiplier, optional
|
|
86
|
+
:param agent_timeout_multiplier: agent_timeout_multiplier, defaults to None
|
|
87
|
+
:type agent_timeout_multiplier: SubmitJobRequestConfigAgentTimeoutMultiplier, optional
|
|
88
|
+
:param verifier_timeout_multiplier: verifier_timeout_multiplier, defaults to None
|
|
89
|
+
:type verifier_timeout_multiplier: SubmitJobRequestConfigVerifierTimeoutMultiplier, optional
|
|
90
|
+
:param agent_setup_timeout_multiplier: agent_setup_timeout_multiplier, defaults to None
|
|
91
|
+
:type agent_setup_timeout_multiplier: SubmitJobRequestConfigAgentSetupTimeoutMultiplier, optional
|
|
92
|
+
:param environment_build_timeout_multiplier: environment_build_timeout_multiplier, defaults to None
|
|
93
|
+
:type environment_build_timeout_multiplier: SubmitJobRequestConfigEnvironmentBuildTimeoutMultiplier, optional
|
|
94
|
+
:param debug: debug, defaults to None
|
|
95
|
+
:type debug: bool, optional
|
|
96
|
+
:param quiet: quiet, defaults to None
|
|
97
|
+
:type quiet: bool, optional
|
|
98
|
+
:param verifier: verifier, defaults to None
|
|
99
|
+
:type verifier: HostedVerifierConfig, optional
|
|
100
|
+
:param metrics: metrics, defaults to None
|
|
101
|
+
:type metrics: List[MetricConfig], optional
|
|
102
|
+
:param artifacts: artifacts, defaults to None
|
|
103
|
+
:type artifacts: List[SubmitJobRequestConfigArtifactsItem], optional
|
|
104
|
+
:param extra_instruction_paths: extra_instruction_paths, defaults to None
|
|
105
|
+
:type extra_instruction_paths: List[str], optional
|
|
106
|
+
:param extra_instructions: extra_instructions, defaults to None
|
|
107
|
+
:type extra_instructions: List[str], optional
|
|
108
|
+
"""
|
|
109
|
+
|
|
110
|
+
diff: Optional[HostedDiffSelectors] = Field(default=None)
|
|
111
|
+
install_only: Optional[bool] = Field(default=None)
|
|
112
|
+
static_outbound_ip: Optional[bool] = Field(default=None)
|
|
113
|
+
credential_mode: Optional[SubmitJobRequestConfigCredentialMode] = Field(
|
|
114
|
+
default=None
|
|
115
|
+
)
|
|
116
|
+
agents: List[HostedAgentConfig]
|
|
117
|
+
environment: Optional[HostedSubmissionEnvironmentConfig] = Field(default=None)
|
|
118
|
+
tasks: Optional[List[HostedSubmissionTaskConfig]] = Field(default=None)
|
|
119
|
+
datasets: Optional[List[HostedSubmissionDatasetConfig]] = Field(default=None)
|
|
120
|
+
retry: Optional[HostedSubmissionRetryConfig] = Field(default=None)
|
|
121
|
+
n_attempts: Optional[float] = Field(default=None)
|
|
122
|
+
n_concurrent_trials: Optional[float] = Field(default=None)
|
|
123
|
+
job_name: Optional[str] = Field(default=None)
|
|
124
|
+
jobs_dir: Optional[str] = Field(default=None)
|
|
125
|
+
timeout_multiplier: Optional[SubmitJobRequestConfigTimeoutMultiplier] = Field(
|
|
126
|
+
default=None
|
|
127
|
+
)
|
|
128
|
+
agent_timeout_multiplier: Optional[SubmitJobRequestConfigAgentTimeoutMultiplier] = (
|
|
129
|
+
Field(default=None)
|
|
130
|
+
)
|
|
131
|
+
verifier_timeout_multiplier: Optional[
|
|
132
|
+
SubmitJobRequestConfigVerifierTimeoutMultiplier
|
|
133
|
+
] = Field(default=None)
|
|
134
|
+
agent_setup_timeout_multiplier: Optional[
|
|
135
|
+
SubmitJobRequestConfigAgentSetupTimeoutMultiplier
|
|
136
|
+
] = Field(default=None)
|
|
137
|
+
environment_build_timeout_multiplier: Optional[
|
|
138
|
+
SubmitJobRequestConfigEnvironmentBuildTimeoutMultiplier
|
|
139
|
+
] = Field(default=None)
|
|
140
|
+
debug: Optional[bool] = Field(default=None)
|
|
141
|
+
quiet: Optional[bool] = Field(default=None)
|
|
142
|
+
verifier: Optional[HostedVerifierConfig] = Field(default=None)
|
|
143
|
+
metrics: Optional[List[MetricConfig]] = Field(default=None)
|
|
144
|
+
artifacts: Optional[List[SubmitJobRequestConfigArtifactsItem]] = Field(default=None)
|
|
145
|
+
extra_instruction_paths: Optional[List[str]] = Field(default=None)
|
|
146
|
+
extra_instructions: Optional[List[str]] = Field(default=None)
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
SubmitJobRequestConfigCredentialMode = typing.Union[
|
|
150
|
+
typing.Literal["gateway", "direct"], typing.Any
|
|
151
|
+
]
|
|
152
|
+
|
|
153
|
+
SubmitJobRequestConfigTimeoutMultiplierOne = typing.Union[
|
|
154
|
+
typing.Literal["Infinity", "-Infinity", "NaN"], typing.Any
|
|
155
|
+
]
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
# Union type for SubmitJobRequestConfigTimeoutMultiplier
|
|
159
|
+
# Pydantic will attempt to validate against each type in order
|
|
160
|
+
SubmitJobRequestConfigTimeoutMultiplier = Union[float, str]
|
|
161
|
+
# TypeAdapter for runtime validation of SubmitJobRequestConfigTimeoutMultiplier
|
|
162
|
+
# This allows validation of Union types which are not directly instantiable
|
|
163
|
+
from pydantic import TypeAdapter
|
|
164
|
+
|
|
165
|
+
SubmitJobRequestConfigTimeoutMultiplier_adapter = TypeAdapter(
|
|
166
|
+
SubmitJobRequestConfigTimeoutMultiplier
|
|
167
|
+
)
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
SubmitJobRequestConfigAgentTimeoutMultiplierOne = typing.Union[
|
|
171
|
+
typing.Literal["Infinity", "-Infinity", "NaN"], typing.Any
|
|
172
|
+
]
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
# Union type for SubmitJobRequestConfigAgentTimeoutMultiplier
|
|
176
|
+
# Pydantic will attempt to validate against each type in order
|
|
177
|
+
SubmitJobRequestConfigAgentTimeoutMultiplier = Union[float, str]
|
|
178
|
+
# TypeAdapter for runtime validation of SubmitJobRequestConfigAgentTimeoutMultiplier
|
|
179
|
+
# This allows validation of Union types which are not directly instantiable
|
|
180
|
+
from pydantic import TypeAdapter
|
|
181
|
+
|
|
182
|
+
SubmitJobRequestConfigAgentTimeoutMultiplier_adapter = TypeAdapter(
|
|
183
|
+
SubmitJobRequestConfigAgentTimeoutMultiplier
|
|
184
|
+
)
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
SubmitJobRequestConfigVerifierTimeoutMultiplierOne = typing.Union[
|
|
188
|
+
typing.Literal["Infinity", "-Infinity", "NaN"], typing.Any
|
|
189
|
+
]
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
# Union type for SubmitJobRequestConfigVerifierTimeoutMultiplier
|
|
193
|
+
# Pydantic will attempt to validate against each type in order
|
|
194
|
+
SubmitJobRequestConfigVerifierTimeoutMultiplier = Union[float, str]
|
|
195
|
+
# TypeAdapter for runtime validation of SubmitJobRequestConfigVerifierTimeoutMultiplier
|
|
196
|
+
# This allows validation of Union types which are not directly instantiable
|
|
197
|
+
from pydantic import TypeAdapter
|
|
198
|
+
|
|
199
|
+
SubmitJobRequestConfigVerifierTimeoutMultiplier_adapter = TypeAdapter(
|
|
200
|
+
SubmitJobRequestConfigVerifierTimeoutMultiplier
|
|
201
|
+
)
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
SubmitJobRequestConfigAgentSetupTimeoutMultiplierOne = typing.Union[
|
|
205
|
+
typing.Literal["Infinity", "-Infinity", "NaN"], typing.Any
|
|
206
|
+
]
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
# Union type for SubmitJobRequestConfigAgentSetupTimeoutMultiplier
|
|
210
|
+
# Pydantic will attempt to validate against each type in order
|
|
211
|
+
SubmitJobRequestConfigAgentSetupTimeoutMultiplier = Union[float, str]
|
|
212
|
+
# TypeAdapter for runtime validation of SubmitJobRequestConfigAgentSetupTimeoutMultiplier
|
|
213
|
+
# This allows validation of Union types which are not directly instantiable
|
|
214
|
+
from pydantic import TypeAdapter
|
|
215
|
+
|
|
216
|
+
SubmitJobRequestConfigAgentSetupTimeoutMultiplier_adapter = TypeAdapter(
|
|
217
|
+
SubmitJobRequestConfigAgentSetupTimeoutMultiplier
|
|
218
|
+
)
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
SubmitJobRequestConfigEnvironmentBuildTimeoutMultiplierOne = typing.Union[
|
|
222
|
+
typing.Literal["Infinity", "-Infinity", "NaN"], typing.Any
|
|
223
|
+
]
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
# Union type for SubmitJobRequestConfigEnvironmentBuildTimeoutMultiplier
|
|
227
|
+
# Pydantic will attempt to validate against each type in order
|
|
228
|
+
SubmitJobRequestConfigEnvironmentBuildTimeoutMultiplier = Union[float, str]
|
|
229
|
+
# TypeAdapter for runtime validation of SubmitJobRequestConfigEnvironmentBuildTimeoutMultiplier
|
|
230
|
+
# This allows validation of Union types which are not directly instantiable
|
|
231
|
+
from pydantic import TypeAdapter
|
|
232
|
+
|
|
233
|
+
SubmitJobRequestConfigEnvironmentBuildTimeoutMultiplier_adapter = TypeAdapter(
|
|
234
|
+
SubmitJobRequestConfigEnvironmentBuildTimeoutMultiplier
|
|
235
|
+
)
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
# Union type for SubmitJobRequestConfigArtifactsItem
|
|
239
|
+
# Pydantic will attempt to validate against each type in order
|
|
240
|
+
SubmitJobRequestConfigArtifactsItem = Union[str, ArtifactConfig]
|
|
241
|
+
# TypeAdapter for runtime validation of SubmitJobRequestConfigArtifactsItem
|
|
242
|
+
# This allows validation of Union types which are not directly instantiable
|
|
243
|
+
from pydantic import TypeAdapter
|
|
244
|
+
|
|
245
|
+
SubmitJobRequestConfigArtifactsItem_adapter = TypeAdapter(
|
|
246
|
+
SubmitJobRequestConfigArtifactsItem
|
|
247
|
+
)
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
# Rebuild model to resolve forward references from submodels
|
|
251
|
+
SubmitJobRequestConfig.model_rebuild()
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
class SubmitJobRequestRegradeSourceTrialId(BaseModel):
|
|
255
|
+
"""SubmitJobRequestRegradeSourceTrialId
|
|
256
|
+
|
|
257
|
+
:param source_trial_id: source_trial_id
|
|
258
|
+
:type source_trial_id: str
|
|
259
|
+
"""
|
|
260
|
+
|
|
261
|
+
source_trial_id: str
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
# Union type for SubmitJobRequestRegrade
|
|
265
|
+
# Pydantic will attempt to validate against each type in order
|
|
266
|
+
SubmitJobRequestRegrade = Union[
|
|
267
|
+
SubmitJobRequestRegradeSourceTrialId, HostedJobTrialRegradeSource
|
|
268
|
+
]
|
|
269
|
+
# TypeAdapter for runtime validation of SubmitJobRequestRegrade
|
|
270
|
+
# This allows validation of Union types which are not directly instantiable
|
|
271
|
+
from pydantic import TypeAdapter
|
|
272
|
+
|
|
273
|
+
SubmitJobRequestRegrade_adapter = TypeAdapter(SubmitJobRequestRegrade)
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
# Rebuild model to resolve forward references from submodels
|
|
277
|
+
SubmitJobRequest.model_rebuild()
|
|
@@ -0,0 +1,51 @@
|
|
|
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 typing import Dict
|
|
8
|
+
from .utils.base_model import BaseModel
|
|
9
|
+
from .owner_organization import OwnerOrganization
|
|
10
|
+
from .selected_secret import SelectedSecret
|
|
11
|
+
from .agent_source import AgentSource
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class SubmitJobResponse(BaseModel):
|
|
15
|
+
"""SubmitJobResponse
|
|
16
|
+
|
|
17
|
+
:param job_id: job_id
|
|
18
|
+
:type job_id: str
|
|
19
|
+
:param job_name: job_name, defaults to None
|
|
20
|
+
:type job_name: str, optional
|
|
21
|
+
:param viewer_url: viewer_url, defaults to None
|
|
22
|
+
:type viewer_url: str, optional
|
|
23
|
+
:param status_url: status_url, defaults to None
|
|
24
|
+
:type status_url: str, optional
|
|
25
|
+
:param n_trials: n_trials, defaults to None
|
|
26
|
+
:type n_trials: int, optional
|
|
27
|
+
:param config: config, defaults to None
|
|
28
|
+
:type config: Dict[str, Any], optional
|
|
29
|
+
:param owner_organization: owner_organization, defaults to None
|
|
30
|
+
:type owner_organization: OwnerOrganization, optional
|
|
31
|
+
:param warnings: warnings, defaults to None
|
|
32
|
+
:type warnings: List[str], optional
|
|
33
|
+
:param selected_secrets: selected_secrets, defaults to None
|
|
34
|
+
:type selected_secrets: List[SelectedSecret], optional
|
|
35
|
+
:param agent_sources: agent_sources, defaults to None
|
|
36
|
+
:type agent_sources: List[AgentSource], optional
|
|
37
|
+
:param session_id: session_id, defaults to None
|
|
38
|
+
:type session_id: str, optional
|
|
39
|
+
"""
|
|
40
|
+
|
|
41
|
+
job_id: str
|
|
42
|
+
job_name: Optional[str] = Field(default=None)
|
|
43
|
+
viewer_url: Optional[str] = Field(default=None)
|
|
44
|
+
status_url: Optional[str] = Field(default=None)
|
|
45
|
+
n_trials: Optional[int] = Field(default=None)
|
|
46
|
+
config: Optional[Dict[str, Any]] = Field(default=None)
|
|
47
|
+
owner_organization: Optional[OwnerOrganization] = Field(default=None)
|
|
48
|
+
warnings: Optional[List[str]] = Field(default=None)
|
|
49
|
+
selected_secrets: Optional[List[SelectedSecret]] = Field(default=None)
|
|
50
|
+
agent_sources: Optional[List[AgentSource]] = Field(default=None)
|
|
51
|
+
session_id: Optional[str] = Field(default=None)
|
|
@@ -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 SumAggregate(BaseModel):
|
|
10
|
+
"""SumAggregate
|
|
11
|
+
|
|
12
|
+
:param sum: sum
|
|
13
|
+
:type sum: float
|
|
14
|
+
:param count: count
|
|
15
|
+
:type count: int
|
|
16
|
+
"""
|
|
17
|
+
|
|
18
|
+
sum: Optional[float]
|
|
19
|
+
count: int
|
|
@@ -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 TagPackageVersionRequest(BaseModel):
|
|
9
|
+
"""TagPackageVersionRequest
|
|
10
|
+
|
|
11
|
+
:param revision: revision
|
|
12
|
+
:type revision: int
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
revision: int
|
|
@@ -0,0 +1,18 @@
|
|
|
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 TagPackageVersionResponse(BaseModel):
|
|
9
|
+
"""TagPackageVersionResponse
|
|
10
|
+
|
|
11
|
+
:param tag: tag
|
|
12
|
+
:type tag: str
|
|
13
|
+
:param revision: revision
|
|
14
|
+
:type revision: int
|
|
15
|
+
"""
|
|
16
|
+
|
|
17
|
+
tag: str
|
|
18
|
+
revision: int
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
|
|
8
|
+
TaskEnvironmentRequirementPhase = typing.Union[
|
|
9
|
+
typing.Literal["agent", "environment", "verifier"], typing.Any
|
|
10
|
+
]
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class TaskEnvironmentRequirement(BaseModel):
|
|
14
|
+
"""TaskEnvironmentRequirement
|
|
15
|
+
|
|
16
|
+
:param env_var: env_var
|
|
17
|
+
:type env_var: str
|
|
18
|
+
:param phase: phase
|
|
19
|
+
:type phase: TaskEnvironmentRequirementPhase
|
|
20
|
+
:param has_default: has_default
|
|
21
|
+
:type has_default: bool
|
|
22
|
+
"""
|
|
23
|
+
|
|
24
|
+
env_var: str
|
|
25
|
+
phase: TaskEnvironmentRequirementPhase
|
|
26
|
+
has_default: bool
|
|
@@ -0,0 +1,22 @@
|
|
|
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 TaskIdentity(BaseModel):
|
|
10
|
+
"""TaskIdentity
|
|
11
|
+
|
|
12
|
+
:param name: name
|
|
13
|
+
:type name: str
|
|
14
|
+
:param digest: digest
|
|
15
|
+
:type digest: str
|
|
16
|
+
:param source: source
|
|
17
|
+
:type source: str
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
name: str
|
|
21
|
+
digest: str
|
|
22
|
+
source: Optional[str]
|
|
@@ -0,0 +1,47 @@
|
|
|
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 typing import Dict
|
|
7
|
+
from .utils.base_model import BaseModel
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class TaskPublishStep(BaseModel):
|
|
11
|
+
"""TaskPublishStep
|
|
12
|
+
|
|
13
|
+
:param step_index: step_index
|
|
14
|
+
:type step_index: int
|
|
15
|
+
:param name: name
|
|
16
|
+
:type name: str
|
|
17
|
+
:param instruction: instruction
|
|
18
|
+
:type instruction: str
|
|
19
|
+
:param config: config, defaults to None
|
|
20
|
+
:type config: Dict[str, Any], optional
|
|
21
|
+
:param agent_config: agent_config, defaults to None
|
|
22
|
+
:type agent_config: Any, optional
|
|
23
|
+
:param verifier_config: verifier_config, defaults to None
|
|
24
|
+
:type verifier_config: Any, optional
|
|
25
|
+
:param healthcheck_config: healthcheck_config, defaults to None
|
|
26
|
+
:type healthcheck_config: Any, optional
|
|
27
|
+
:param agent: agent, defaults to None
|
|
28
|
+
:type agent: Any, optional
|
|
29
|
+
:param verifier: verifier, defaults to None
|
|
30
|
+
:type verifier: Any, optional
|
|
31
|
+
:param healthcheck: healthcheck, defaults to None
|
|
32
|
+
:type healthcheck: Any, optional
|
|
33
|
+
:param min_reward: min_reward, defaults to None
|
|
34
|
+
:type min_reward: Any, optional
|
|
35
|
+
"""
|
|
36
|
+
|
|
37
|
+
step_index: int
|
|
38
|
+
name: str
|
|
39
|
+
instruction: str
|
|
40
|
+
config: Optional[Dict[str, Any]] = Field(default=None)
|
|
41
|
+
agent_config: Optional[Any] = Field(default=None)
|
|
42
|
+
verifier_config: Optional[Any] = Field(default=None)
|
|
43
|
+
healthcheck_config: Optional[Any] = Field(default=None)
|
|
44
|
+
agent: Optional[Any] = Field(default=None)
|
|
45
|
+
verifier: Optional[Any] = Field(default=None)
|
|
46
|
+
healthcheck: Optional[Any] = Field(default=None)
|
|
47
|
+
min_reward: Optional[Any] = Field(default=None)
|
|
@@ -0,0 +1,115 @@
|
|
|
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 typing import Union
|
|
8
|
+
from typing import Dict
|
|
9
|
+
from .utils.base_model import BaseModel
|
|
10
|
+
from .task_environment_requirement import TaskEnvironmentRequirement
|
|
11
|
+
from .resolved_task_step import ResolvedTaskStep
|
|
12
|
+
|
|
13
|
+
TaskVersionDetailType = typing.Union[typing.Literal["task"], typing.Any]
|
|
14
|
+
|
|
15
|
+
TaskVersionDetailMultiStepRewardStrategy = typing.Union[
|
|
16
|
+
typing.Literal["mean", "final"], typing.Any
|
|
17
|
+
]
|
|
18
|
+
|
|
19
|
+
TaskVersionDetailVisibility = typing.Union[
|
|
20
|
+
typing.Literal["public", "private"], typing.Any
|
|
21
|
+
]
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
class TaskVersionDetail(BaseModel):
|
|
25
|
+
"""TaskVersionDetail
|
|
26
|
+
|
|
27
|
+
:param type: type
|
|
28
|
+
:type type: TaskVersionDetailType
|
|
29
|
+
:param id: id
|
|
30
|
+
:type id: str
|
|
31
|
+
:param organization_name: organization_name
|
|
32
|
+
:type organization_name: str
|
|
33
|
+
:param task_name: task_name
|
|
34
|
+
:type task_name: str
|
|
35
|
+
:param revision: revision
|
|
36
|
+
:type revision: int
|
|
37
|
+
:param version: version
|
|
38
|
+
:type version: str
|
|
39
|
+
:param archive_path: archive_path
|
|
40
|
+
:type archive_path: str
|
|
41
|
+
:param content_hash: content_hash
|
|
42
|
+
:type content_hash: str
|
|
43
|
+
:param config: config
|
|
44
|
+
:type config: Dict[str, Any]
|
|
45
|
+
:param description: description
|
|
46
|
+
:type description: str
|
|
47
|
+
:param authors: authors
|
|
48
|
+
:type authors: Any
|
|
49
|
+
:param keywords: keywords
|
|
50
|
+
:type keywords: List[str]
|
|
51
|
+
:param instruction: instruction
|
|
52
|
+
:type instruction: str
|
|
53
|
+
:param readme: readme
|
|
54
|
+
:type readme: str
|
|
55
|
+
:param metadata: metadata
|
|
56
|
+
:type metadata: Any
|
|
57
|
+
:param verifier_config: verifier_config
|
|
58
|
+
:type verifier_config: Any
|
|
59
|
+
:param agent_config: agent_config
|
|
60
|
+
:type agent_config: Any
|
|
61
|
+
:param environment_config: environment_config
|
|
62
|
+
:type environment_config: Any
|
|
63
|
+
:param required_env: required_env, defaults to None
|
|
64
|
+
:type required_env: List[TaskEnvironmentRequirement], optional
|
|
65
|
+
:param healthcheck_config: healthcheck_config
|
|
66
|
+
:type healthcheck_config: Any
|
|
67
|
+
:param multi_step_reward_strategy: multi_step_reward_strategy
|
|
68
|
+
:type multi_step_reward_strategy: TaskVersionDetailMultiStepRewardStrategy
|
|
69
|
+
:param steps: steps
|
|
70
|
+
:type steps: List[ResolvedTaskStep]
|
|
71
|
+
:param package_id: package_id
|
|
72
|
+
:type package_id: str
|
|
73
|
+
:param published_at: published_at
|
|
74
|
+
:type published_at: str
|
|
75
|
+
:param published_by: published_by
|
|
76
|
+
:type published_by: str
|
|
77
|
+
:param yanked_at: yanked_at
|
|
78
|
+
:type yanked_at: str
|
|
79
|
+
:param yanked_by: yanked_by
|
|
80
|
+
:type yanked_by: str
|
|
81
|
+
:param yanked_reason: yanked_reason
|
|
82
|
+
:type yanked_reason: str
|
|
83
|
+
:param visibility: visibility
|
|
84
|
+
:type visibility: TaskVersionDetailVisibility
|
|
85
|
+
"""
|
|
86
|
+
|
|
87
|
+
type: TaskVersionDetailType = Field(default="task")
|
|
88
|
+
id: str
|
|
89
|
+
organization_name: str
|
|
90
|
+
task_name: str
|
|
91
|
+
revision: int
|
|
92
|
+
version: str
|
|
93
|
+
archive_path: str
|
|
94
|
+
content_hash: str
|
|
95
|
+
config: Optional[Dict[str, Any]]
|
|
96
|
+
description: Optional[str]
|
|
97
|
+
authors: Any
|
|
98
|
+
keywords: Optional[List[str]]
|
|
99
|
+
instruction: Optional[str]
|
|
100
|
+
readme: Optional[str]
|
|
101
|
+
metadata: Any
|
|
102
|
+
verifier_config: Any
|
|
103
|
+
agent_config: Any
|
|
104
|
+
environment_config: Any
|
|
105
|
+
required_env: Optional[List[TaskEnvironmentRequirement]] = Field(default=None)
|
|
106
|
+
healthcheck_config: Any
|
|
107
|
+
multi_step_reward_strategy: Optional[TaskVersionDetailMultiStepRewardStrategy]
|
|
108
|
+
steps: List[ResolvedTaskStep]
|
|
109
|
+
package_id: str
|
|
110
|
+
published_at: str
|
|
111
|
+
published_by: Optional[str]
|
|
112
|
+
yanked_at: Optional[str]
|
|
113
|
+
yanked_by: Optional[str]
|
|
114
|
+
yanked_reason: Optional[str]
|
|
115
|
+
visibility: TaskVersionDetailVisibility
|