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,64 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
import typing
|
|
3
|
+
from typing import Union
|
|
4
|
+
from pydantic import Field
|
|
5
|
+
from typing import Optional
|
|
6
|
+
from typing import Any
|
|
7
|
+
from typing import Annotated
|
|
8
|
+
from pydantic import TypeAdapter
|
|
9
|
+
from typing import Dict
|
|
10
|
+
from .utils.base_model import BaseModel
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class StorageDownload(BaseModel):
|
|
14
|
+
"""StorageDownload
|
|
15
|
+
|
|
16
|
+
:param protocol: protocol
|
|
17
|
+
:type protocol: StorageDownloadProtocol
|
|
18
|
+
:param method: method
|
|
19
|
+
:type method: StorageDownloadMethod
|
|
20
|
+
:param url: url
|
|
21
|
+
:type url: str
|
|
22
|
+
:param headers: headers
|
|
23
|
+
:type headers: Dict[str, str]
|
|
24
|
+
:param expires_at: expires_at
|
|
25
|
+
:type expires_at: str
|
|
26
|
+
:param version: version
|
|
27
|
+
:type version: str
|
|
28
|
+
:param size_bytes: size_bytes
|
|
29
|
+
:type size_bytes: StorageDownloadSizeBytes
|
|
30
|
+
:param archive_member: archive_member, defaults to None
|
|
31
|
+
:type archive_member: str, optional
|
|
32
|
+
"""
|
|
33
|
+
|
|
34
|
+
protocol: StorageDownloadProtocol = Field(default="http")
|
|
35
|
+
method: StorageDownloadMethod
|
|
36
|
+
url: str
|
|
37
|
+
headers: Dict[str, str]
|
|
38
|
+
expires_at: str
|
|
39
|
+
version: Optional[str]
|
|
40
|
+
size_bytes: Optional[StorageDownloadSizeBytes]
|
|
41
|
+
archive_member: Optional[str] = Field(default=None)
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
StorageDownloadProtocol = typing.Union[typing.Literal["http"], typing.Any]
|
|
45
|
+
|
|
46
|
+
StorageDownloadMethod = typing.Union[typing.Literal["GET", "PUT"], typing.Any]
|
|
47
|
+
|
|
48
|
+
StorageDownloadSizeBytesOne = typing.Union[
|
|
49
|
+
typing.Literal["Infinity", "-Infinity", "NaN"], typing.Any
|
|
50
|
+
]
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
# Union type for StorageDownloadSizeBytes
|
|
54
|
+
# Pydantic will attempt to validate against each type in order
|
|
55
|
+
StorageDownloadSizeBytes = Union[float, str]
|
|
56
|
+
# TypeAdapter for runtime validation of StorageDownloadSizeBytes
|
|
57
|
+
# This allows validation of Union types which are not directly instantiable
|
|
58
|
+
from pydantic import TypeAdapter
|
|
59
|
+
|
|
60
|
+
StorageDownloadSizeBytes_adapter = TypeAdapter(StorageDownloadSizeBytes)
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
# Rebuild model to resolve forward references from submodels
|
|
64
|
+
StorageDownload.model_rebuild()
|
|
@@ -0,0 +1,33 @@
|
|
|
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 typing import Dict
|
|
7
|
+
from .utils.base_model import BaseModel
|
|
8
|
+
|
|
9
|
+
StorageHttpTransferProtocol = typing.Union[typing.Literal["http"], typing.Any]
|
|
10
|
+
|
|
11
|
+
StorageHttpTransferMethod = typing.Union[typing.Literal["GET", "PUT"], typing.Any]
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class StorageHttpTransfer(BaseModel):
|
|
15
|
+
"""StorageHttpTransfer
|
|
16
|
+
|
|
17
|
+
:param protocol: protocol
|
|
18
|
+
:type protocol: StorageHttpTransferProtocol
|
|
19
|
+
:param method: method
|
|
20
|
+
:type method: StorageHttpTransferMethod
|
|
21
|
+
:param url: url
|
|
22
|
+
:type url: str
|
|
23
|
+
:param headers: headers
|
|
24
|
+
:type headers: Dict[str, str]
|
|
25
|
+
:param expires_at: expires_at
|
|
26
|
+
:type expires_at: str
|
|
27
|
+
"""
|
|
28
|
+
|
|
29
|
+
protocol: StorageHttpTransferProtocol = Field(default="http")
|
|
30
|
+
method: StorageHttpTransferMethod
|
|
31
|
+
url: str
|
|
32
|
+
headers: Dict[str, str]
|
|
33
|
+
expires_at: str
|
|
@@ -0,0 +1,39 @@
|
|
|
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 .utils.base_model import BaseModel
|
|
9
|
+
from .storage_upload_file_input import StorageUploadFileInput
|
|
10
|
+
from .storage_job_upload_metadata import StorageJobUploadMetadata
|
|
11
|
+
|
|
12
|
+
StorageJobUploadCreateProtocol = typing.Union[typing.Literal["http", "tus"], typing.Any]
|
|
13
|
+
|
|
14
|
+
StorageJobUploadCreateKind = typing.Union[typing.Literal["job"], typing.Any]
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class StorageJobUploadCreate(BaseModel):
|
|
18
|
+
"""StorageJobUploadCreate
|
|
19
|
+
|
|
20
|
+
:param request_id: request_id
|
|
21
|
+
:type request_id: str
|
|
22
|
+
:param resource_id: resource_id, defaults to None
|
|
23
|
+
:type resource_id: str, optional
|
|
24
|
+
:param protocol: protocol, defaults to None
|
|
25
|
+
:type protocol: StorageJobUploadCreateProtocol, optional
|
|
26
|
+
:param files: files
|
|
27
|
+
:type files: List[StorageUploadFileInput]
|
|
28
|
+
:param kind: kind
|
|
29
|
+
:type kind: StorageJobUploadCreateKind
|
|
30
|
+
:param metadata: metadata
|
|
31
|
+
:type metadata: StorageJobUploadMetadata
|
|
32
|
+
"""
|
|
33
|
+
|
|
34
|
+
request_id: str
|
|
35
|
+
resource_id: Optional[str] = Field(default=None)
|
|
36
|
+
protocol: Optional[StorageJobUploadCreateProtocol] = Field(default=None)
|
|
37
|
+
files: List[StorageUploadFileInput]
|
|
38
|
+
kind: StorageJobUploadCreateKind = Field(default="job")
|
|
39
|
+
metadata: StorageJobUploadMetadata
|
|
@@ -0,0 +1,45 @@
|
|
|
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 typing import Union
|
|
7
|
+
from typing import Dict
|
|
8
|
+
from .utils.base_model import BaseModel
|
|
9
|
+
|
|
10
|
+
StorageJobUploadMetadataVisibility = typing.Union[
|
|
11
|
+
typing.Literal["public", "private"], typing.Any
|
|
12
|
+
]
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class StorageJobUploadMetadata(BaseModel):
|
|
16
|
+
"""StorageJobUploadMetadata
|
|
17
|
+
|
|
18
|
+
:param job_id: job_id
|
|
19
|
+
:type job_id: str
|
|
20
|
+
:param job_name: job_name
|
|
21
|
+
:type job_name: str
|
|
22
|
+
:param config: config
|
|
23
|
+
:type config: Dict[str, Any]
|
|
24
|
+
:param organization_id: organization_id, defaults to None
|
|
25
|
+
:type organization_id: str, optional
|
|
26
|
+
:param visibility: visibility, defaults to None
|
|
27
|
+
:type visibility: StorageJobUploadMetadataVisibility, optional
|
|
28
|
+
:param started_at: ISO timestamp with a valid calendar date; an omitted timezone means UTC, defaults to None
|
|
29
|
+
:type started_at: str, optional
|
|
30
|
+
:param n_planned_trials: n_planned_trials, defaults to None
|
|
31
|
+
:type n_planned_trials: int, optional
|
|
32
|
+
:param finished_at: ISO timestamp with a valid calendar date; an omitted timezone means UTC
|
|
33
|
+
:type finished_at: str
|
|
34
|
+
"""
|
|
35
|
+
|
|
36
|
+
job_id: str
|
|
37
|
+
job_name: str
|
|
38
|
+
config: Dict[str, Any]
|
|
39
|
+
organization_id: Optional[str] = Field(default=None)
|
|
40
|
+
visibility: Optional[StorageJobUploadMetadataVisibility] = Field(default=None)
|
|
41
|
+
started_at: Optional[str] = Field(default=None)
|
|
42
|
+
n_planned_trials: Optional[int] = Field(default=None)
|
|
43
|
+
finished_at: str = Field(
|
|
44
|
+
description="ISO timestamp with a valid calendar date; an omitted timezone means UTC"
|
|
45
|
+
)
|
|
@@ -0,0 +1,25 @@
|
|
|
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 StoragePublicationFile(BaseModel):
|
|
10
|
+
"""StoragePublicationFile
|
|
11
|
+
|
|
12
|
+
:param path: path
|
|
13
|
+
:type path: str
|
|
14
|
+
:param content_hash: content_hash
|
|
15
|
+
:type content_hash: str
|
|
16
|
+
:param size_bytes: size_bytes, defaults to None
|
|
17
|
+
:type size_bytes: int, optional
|
|
18
|
+
:param storage_path: storage_path, defaults to None
|
|
19
|
+
:type storage_path: Any, optional
|
|
20
|
+
"""
|
|
21
|
+
|
|
22
|
+
path: str
|
|
23
|
+
content_hash: str
|
|
24
|
+
size_bytes: Optional[int] = Field(default=None)
|
|
25
|
+
storage_path: None = 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 StorageResultUploadResult(BaseModel):
|
|
9
|
+
"""StorageResultUploadResult
|
|
10
|
+
|
|
11
|
+
:param id: id
|
|
12
|
+
:type id: str
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
id: str
|
|
@@ -0,0 +1,50 @@
|
|
|
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 .utils.base_model import BaseModel
|
|
9
|
+
from .storage_upload_file_input import StorageUploadFileInput
|
|
10
|
+
from .storage_task_upload_metadata import StorageTaskUploadMetadata
|
|
11
|
+
|
|
12
|
+
StorageTaskUploadCreateProtocol = typing.Union[
|
|
13
|
+
typing.Literal["http", "tus"], typing.Any
|
|
14
|
+
]
|
|
15
|
+
|
|
16
|
+
StorageTaskUploadCreateKind = typing.Union[typing.Literal["task"], typing.Any]
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class StorageTaskUploadCreate(BaseModel):
|
|
20
|
+
"""StorageTaskUploadCreate
|
|
21
|
+
|
|
22
|
+
:param request_id: request_id
|
|
23
|
+
:type request_id: str
|
|
24
|
+
:param resource_id: resource_id, defaults to None
|
|
25
|
+
:type resource_id: str, optional
|
|
26
|
+
:param protocol: protocol, defaults to None
|
|
27
|
+
:type protocol: StorageTaskUploadCreateProtocol, optional
|
|
28
|
+
:param files: files
|
|
29
|
+
:type files: List[StorageUploadFileInput]
|
|
30
|
+
:param organization_id: organization_id
|
|
31
|
+
:type organization_id: str
|
|
32
|
+
:param name: name
|
|
33
|
+
:type name: str
|
|
34
|
+
:param kind: kind
|
|
35
|
+
:type kind: StorageTaskUploadCreateKind
|
|
36
|
+
:param content_hash: content_hash
|
|
37
|
+
:type content_hash: str
|
|
38
|
+
:param metadata: metadata
|
|
39
|
+
:type metadata: StorageTaskUploadMetadata
|
|
40
|
+
"""
|
|
41
|
+
|
|
42
|
+
request_id: str
|
|
43
|
+
resource_id: Optional[str] = Field(default=None)
|
|
44
|
+
protocol: Optional[StorageTaskUploadCreateProtocol] = Field(default=None)
|
|
45
|
+
files: List[StorageUploadFileInput]
|
|
46
|
+
organization_id: str
|
|
47
|
+
name: str
|
|
48
|
+
kind: StorageTaskUploadCreateKind = Field(default="task")
|
|
49
|
+
content_hash: str
|
|
50
|
+
metadata: StorageTaskUploadMetadata
|
|
@@ -0,0 +1,79 @@
|
|
|
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_publish_step import TaskPublishStep
|
|
11
|
+
from .storage_publication_file import StoragePublicationFile
|
|
12
|
+
|
|
13
|
+
StorageTaskUploadMetadataVisibility = typing.Union[
|
|
14
|
+
typing.Literal["public", "private"], typing.Any
|
|
15
|
+
]
|
|
16
|
+
|
|
17
|
+
StorageTaskUploadMetadataMultiStepRewardStrategy = typing.Union[
|
|
18
|
+
typing.Literal["mean", "final"], typing.Any
|
|
19
|
+
]
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class StorageTaskUploadMetadata(BaseModel):
|
|
23
|
+
"""StorageTaskUploadMetadata
|
|
24
|
+
|
|
25
|
+
:param tags: tags, defaults to None
|
|
26
|
+
:type tags: List[str], optional
|
|
27
|
+
:param description: description, defaults to None
|
|
28
|
+
:type description: str, optional
|
|
29
|
+
:param authors: authors, defaults to None
|
|
30
|
+
:type authors: List[Dict[str, Any]], optional
|
|
31
|
+
:param visibility: visibility, defaults to None
|
|
32
|
+
:type visibility: StorageTaskUploadMetadataVisibility, optional
|
|
33
|
+
:param readme: readme, defaults to None
|
|
34
|
+
:type readme: str, optional
|
|
35
|
+
:param version: version, defaults to None
|
|
36
|
+
:type version: str, optional
|
|
37
|
+
:param keywords: keywords, defaults to None
|
|
38
|
+
:type keywords: List[str], optional
|
|
39
|
+
:param metadata: metadata, defaults to None
|
|
40
|
+
:type metadata: Any, optional
|
|
41
|
+
:param verifier_config: verifier_config, defaults to None
|
|
42
|
+
:type verifier_config: Any, optional
|
|
43
|
+
:param agent_config: agent_config, defaults to None
|
|
44
|
+
:type agent_config: Any, optional
|
|
45
|
+
:param environment_config: environment_config, defaults to None
|
|
46
|
+
:type environment_config: Any, optional
|
|
47
|
+
:param instruction: instruction, defaults to None
|
|
48
|
+
:type instruction: str, optional
|
|
49
|
+
:param multi_step_reward_strategy: multi_step_reward_strategy, defaults to None
|
|
50
|
+
:type multi_step_reward_strategy: StorageTaskUploadMetadataMultiStepRewardStrategy, optional
|
|
51
|
+
:param healthcheck_config: healthcheck_config, defaults to None
|
|
52
|
+
:type healthcheck_config: Any, optional
|
|
53
|
+
:param steps: steps, defaults to None
|
|
54
|
+
:type steps: List[TaskPublishStep], optional
|
|
55
|
+
:param config: config, defaults to None
|
|
56
|
+
:type config: Dict[str, Any], optional
|
|
57
|
+
:param files: files, defaults to None
|
|
58
|
+
:type files: List[StoragePublicationFile], optional
|
|
59
|
+
"""
|
|
60
|
+
|
|
61
|
+
tags: Optional[List[str]] = Field(default=None)
|
|
62
|
+
description: Optional[str] = Field(default=None)
|
|
63
|
+
authors: Optional[List[Dict[str, Any]]] = Field(default=None)
|
|
64
|
+
visibility: Optional[StorageTaskUploadMetadataVisibility] = Field(default=None)
|
|
65
|
+
readme: Optional[str] = Field(default=None)
|
|
66
|
+
version: Optional[str] = Field(default=None)
|
|
67
|
+
keywords: Optional[List[str]] = Field(default=None)
|
|
68
|
+
metadata: Optional[Any] = Field(default=None)
|
|
69
|
+
verifier_config: Optional[Any] = Field(default=None)
|
|
70
|
+
agent_config: Optional[Any] = Field(default=None)
|
|
71
|
+
environment_config: Optional[Any] = Field(default=None)
|
|
72
|
+
instruction: Optional[str] = Field(default=None)
|
|
73
|
+
multi_step_reward_strategy: Optional[
|
|
74
|
+
StorageTaskUploadMetadataMultiStepRewardStrategy
|
|
75
|
+
] = Field(default=None)
|
|
76
|
+
healthcheck_config: Optional[Any] = Field(default=None)
|
|
77
|
+
steps: Optional[List[TaskPublishStep]] = Field(default=None)
|
|
78
|
+
config: Optional[Dict[str, Any]] = Field(default=None)
|
|
79
|
+
files: Optional[List[StoragePublicationFile]] = Field(default=None)
|
|
@@ -0,0 +1,39 @@
|
|
|
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 typing import Union
|
|
7
|
+
from .utils.base_model import BaseModel
|
|
8
|
+
|
|
9
|
+
StorageTaskUploadResultVisibility = typing.Union[
|
|
10
|
+
typing.Literal["public", "private"], typing.Any
|
|
11
|
+
]
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class StorageTaskUploadResult(BaseModel):
|
|
15
|
+
"""StorageTaskUploadResult
|
|
16
|
+
|
|
17
|
+
:param package_id: package_id
|
|
18
|
+
:type package_id: str
|
|
19
|
+
:param revision: revision
|
|
20
|
+
:type revision: int
|
|
21
|
+
:param version: version
|
|
22
|
+
:type version: str
|
|
23
|
+
:param content_hash: content_hash
|
|
24
|
+
:type content_hash: str
|
|
25
|
+
:param visibility: visibility
|
|
26
|
+
:type visibility: StorageTaskUploadResultVisibility
|
|
27
|
+
:param created: created
|
|
28
|
+
:type created: bool
|
|
29
|
+
:param task_version_id: task_version_id
|
|
30
|
+
:type task_version_id: str
|
|
31
|
+
"""
|
|
32
|
+
|
|
33
|
+
package_id: str
|
|
34
|
+
revision: int
|
|
35
|
+
version: Optional[str]
|
|
36
|
+
content_hash: str
|
|
37
|
+
visibility: StorageTaskUploadResultVisibility
|
|
38
|
+
created: bool
|
|
39
|
+
task_version_id: str
|
|
@@ -0,0 +1,41 @@
|
|
|
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 .utils.base_model import BaseModel
|
|
9
|
+
from .storage_upload_file_input import StorageUploadFileInput
|
|
10
|
+
from .result_trial_create import ResultTrialCreate
|
|
11
|
+
|
|
12
|
+
StorageTrialUploadCreateProtocol = typing.Union[
|
|
13
|
+
typing.Literal["http", "tus"], typing.Any
|
|
14
|
+
]
|
|
15
|
+
|
|
16
|
+
StorageTrialUploadCreateKind = typing.Union[typing.Literal["trial"], typing.Any]
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class StorageTrialUploadCreate(BaseModel):
|
|
20
|
+
"""StorageTrialUploadCreate
|
|
21
|
+
|
|
22
|
+
:param request_id: request_id
|
|
23
|
+
:type request_id: str
|
|
24
|
+
:param resource_id: resource_id, defaults to None
|
|
25
|
+
:type resource_id: str, optional
|
|
26
|
+
:param protocol: protocol, defaults to None
|
|
27
|
+
:type protocol: StorageTrialUploadCreateProtocol, optional
|
|
28
|
+
:param files: files
|
|
29
|
+
:type files: List[StorageUploadFileInput]
|
|
30
|
+
:param kind: kind
|
|
31
|
+
:type kind: StorageTrialUploadCreateKind
|
|
32
|
+
:param metadata: metadata
|
|
33
|
+
:type metadata: ResultTrialCreate
|
|
34
|
+
"""
|
|
35
|
+
|
|
36
|
+
request_id: str
|
|
37
|
+
resource_id: Optional[str] = Field(default=None)
|
|
38
|
+
protocol: Optional[StorageTrialUploadCreateProtocol] = Field(default=None)
|
|
39
|
+
files: List[StorageUploadFileInput]
|
|
40
|
+
kind: StorageTrialUploadCreateKind = Field(default="trial")
|
|
41
|
+
metadata: ResultTrialCreate
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
import typing
|
|
3
|
+
from typing import Union
|
|
4
|
+
from pydantic import Field
|
|
5
|
+
from typing import Optional
|
|
6
|
+
from typing import Any
|
|
7
|
+
from typing import Annotated
|
|
8
|
+
from pydantic import TypeAdapter
|
|
9
|
+
from typing import Dict
|
|
10
|
+
from .utils.base_model import BaseModel
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class StorageTusTransfer(BaseModel):
|
|
14
|
+
"""StorageTusTransfer
|
|
15
|
+
|
|
16
|
+
:param protocol: protocol
|
|
17
|
+
:type protocol: StorageTusTransferProtocol
|
|
18
|
+
:param url: url
|
|
19
|
+
:type url: str
|
|
20
|
+
:param headers: headers
|
|
21
|
+
:type headers: Dict[str, str]
|
|
22
|
+
:param metadata: metadata
|
|
23
|
+
:type metadata: Dict[str, str]
|
|
24
|
+
:param chunk_size: chunk_size
|
|
25
|
+
:type chunk_size: StorageTusTransferChunkSize
|
|
26
|
+
:param expires_at: expires_at
|
|
27
|
+
:type expires_at: str
|
|
28
|
+
"""
|
|
29
|
+
|
|
30
|
+
protocol: StorageTusTransferProtocol = Field(default="tus")
|
|
31
|
+
url: str
|
|
32
|
+
headers: Dict[str, str]
|
|
33
|
+
metadata: Dict[str, str]
|
|
34
|
+
chunk_size: StorageTusTransferChunkSize
|
|
35
|
+
expires_at: str
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
StorageTusTransferProtocol = typing.Union[typing.Literal["tus"], typing.Any]
|
|
39
|
+
|
|
40
|
+
StorageTusTransferChunkSizeOne = typing.Union[
|
|
41
|
+
typing.Literal["Infinity", "-Infinity", "NaN"], typing.Any
|
|
42
|
+
]
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
# Union type for StorageTusTransferChunkSize
|
|
46
|
+
# Pydantic will attempt to validate against each type in order
|
|
47
|
+
StorageTusTransferChunkSize = Union[float, str]
|
|
48
|
+
# TypeAdapter for runtime validation of StorageTusTransferChunkSize
|
|
49
|
+
# This allows validation of Union types which are not directly instantiable
|
|
50
|
+
from pydantic import TypeAdapter
|
|
51
|
+
|
|
52
|
+
StorageTusTransferChunkSize_adapter = TypeAdapter(StorageTusTransferChunkSize)
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
# Rebuild model to resolve forward references from submodels
|
|
56
|
+
StorageTusTransfer.model_rebuild()
|
|
@@ -0,0 +1,44 @@
|
|
|
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 .storage_task_upload_create import StorageTaskUploadCreate
|
|
7
|
+
from .storage_dataset_upload_create import StorageDatasetUploadCreate
|
|
8
|
+
from .storage_job_upload_create import StorageJobUploadCreate
|
|
9
|
+
from .storage_trial_upload_create import StorageTrialUploadCreate
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
# fernMode variant type for a shared-component member of StorageUploadCreate
|
|
13
|
+
class StorageUploadCreate_Task(StorageTaskUploadCreate):
|
|
14
|
+
pass
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# fernMode variant type for a shared-component member of StorageUploadCreate
|
|
18
|
+
class StorageUploadCreate_Dataset(StorageDatasetUploadCreate):
|
|
19
|
+
pass
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# fernMode variant type for a shared-component member of StorageUploadCreate
|
|
23
|
+
class StorageUploadCreate_Job(StorageJobUploadCreate):
|
|
24
|
+
pass
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
# fernMode variant type for a shared-component member of StorageUploadCreate
|
|
28
|
+
class StorageUploadCreate_Trial(StorageTrialUploadCreate):
|
|
29
|
+
pass
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
# Union type for StorageUploadCreate
|
|
33
|
+
# Pydantic will attempt to validate against each type in order
|
|
34
|
+
StorageUploadCreate = Union[
|
|
35
|
+
StorageTaskUploadCreate,
|
|
36
|
+
StorageDatasetUploadCreate,
|
|
37
|
+
StorageJobUploadCreate,
|
|
38
|
+
StorageTrialUploadCreate,
|
|
39
|
+
]
|
|
40
|
+
# TypeAdapter for runtime validation of StorageUploadCreate
|
|
41
|
+
# This allows validation of Union types which are not directly instantiable
|
|
42
|
+
from pydantic import TypeAdapter
|
|
43
|
+
|
|
44
|
+
StorageUploadCreate_adapter = TypeAdapter(StorageUploadCreate)
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
import typing
|
|
3
|
+
from typing import Union
|
|
4
|
+
from pydantic import Field
|
|
5
|
+
from typing import Optional
|
|
6
|
+
from typing import Any
|
|
7
|
+
from typing import Annotated
|
|
8
|
+
from pydantic import TypeAdapter
|
|
9
|
+
from .utils.base_model import BaseModel
|
|
10
|
+
from .storage_http_transfer import StorageHttpTransfer
|
|
11
|
+
from .storage_tus_transfer import StorageTusTransfer
|
|
12
|
+
|
|
13
|
+
StorageUploadFileRole = typing.Union[
|
|
14
|
+
typing.Literal["archive", "file", "trajectory", "log"], typing.Any
|
|
15
|
+
]
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
# fernMode variant type for a shared-component member of StorageUploadFileUpload
|
|
19
|
+
class StorageUploadFileUpload_Http(StorageHttpTransfer):
|
|
20
|
+
pass
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
# fernMode variant type for a shared-component member of StorageUploadFileUpload
|
|
24
|
+
class StorageUploadFileUpload_Tus(StorageTusTransfer):
|
|
25
|
+
pass
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
# Union type for StorageUploadFileUpload
|
|
29
|
+
# Pydantic will attempt to validate against each type in order
|
|
30
|
+
StorageUploadFileUpload = Union[StorageHttpTransfer, StorageTusTransfer]
|
|
31
|
+
# TypeAdapter for runtime validation of StorageUploadFileUpload
|
|
32
|
+
# This allows validation of Union types which are not directly instantiable
|
|
33
|
+
from pydantic import TypeAdapter
|
|
34
|
+
|
|
35
|
+
StorageUploadFileUpload_adapter = TypeAdapter(StorageUploadFileUpload)
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
class StorageUploadFile(BaseModel):
|
|
39
|
+
"""StorageUploadFile
|
|
40
|
+
|
|
41
|
+
:param id: id
|
|
42
|
+
:type id: str
|
|
43
|
+
:param path: path
|
|
44
|
+
:type path: str
|
|
45
|
+
:param role: role
|
|
46
|
+
:type role: StorageUploadFileRole
|
|
47
|
+
:param size_bytes: size_bytes
|
|
48
|
+
:type size_bytes: int
|
|
49
|
+
:param sha256: sha256
|
|
50
|
+
:type sha256: str
|
|
51
|
+
:param optional: optional, defaults to None
|
|
52
|
+
:type optional: bool, optional
|
|
53
|
+
:param upload: upload
|
|
54
|
+
:type upload: StorageUploadFileUpload
|
|
55
|
+
"""
|
|
56
|
+
|
|
57
|
+
id: str
|
|
58
|
+
path: str
|
|
59
|
+
role: StorageUploadFileRole
|
|
60
|
+
size_bytes: int
|
|
61
|
+
sha256: Optional[str]
|
|
62
|
+
optional: Optional[bool] = Field(default=None)
|
|
63
|
+
upload: StorageUploadFileUpload
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
StorageUploadFileInputRole = typing.Union[
|
|
9
|
+
typing.Literal["archive", "file", "trajectory", "log"], typing.Any
|
|
10
|
+
]
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class StorageUploadFileInput(BaseModel):
|
|
14
|
+
"""StorageUploadFileInput
|
|
15
|
+
|
|
16
|
+
:param path: path
|
|
17
|
+
:type path: str
|
|
18
|
+
:param role: role
|
|
19
|
+
:type role: StorageUploadFileInputRole
|
|
20
|
+
:param size_bytes: size_bytes
|
|
21
|
+
:type size_bytes: int
|
|
22
|
+
:param sha256: sha256, defaults to None
|
|
23
|
+
:type sha256: str, optional
|
|
24
|
+
:param optional: optional, defaults to None
|
|
25
|
+
:type optional: bool, optional
|
|
26
|
+
"""
|
|
27
|
+
|
|
28
|
+
path: str
|
|
29
|
+
role: StorageUploadFileInputRole
|
|
30
|
+
size_bytes: int
|
|
31
|
+
sha256: Optional[str] = Field(default=None)
|
|
32
|
+
optional: Optional[bool] = Field(default=None)
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
import typing
|
|
3
|
+
from typing import Union
|
|
4
|
+
from pydantic import Field
|
|
5
|
+
from typing import Optional
|
|
6
|
+
from typing import Any
|
|
7
|
+
from typing import Annotated
|
|
8
|
+
from pydantic import TypeAdapter
|
|
9
|
+
from .utils.base_model import BaseModel
|
|
10
|
+
from .storage_task_upload_result import StorageTaskUploadResult
|
|
11
|
+
from .storage_dataset_upload_result import StorageDatasetUploadResult
|
|
12
|
+
from .storage_result_upload_result import StorageResultUploadResult
|
|
13
|
+
|
|
14
|
+
StorageUploadReceiptKind = typing.Union[
|
|
15
|
+
typing.Literal["task", "dataset", "job", "trial"], typing.Any
|
|
16
|
+
]
|
|
17
|
+
|
|
18
|
+
StorageUploadReceiptState = typing.Union[
|
|
19
|
+
typing.Literal["pending", "verified", "completed"], typing.Any
|
|
20
|
+
]
|
|
21
|
+
|
|
22
|
+
# Union type for StorageUploadReceiptResult
|
|
23
|
+
# Pydantic will attempt to validate against each type in order
|
|
24
|
+
StorageUploadReceiptResult = Union[
|
|
25
|
+
StorageTaskUploadResult, StorageDatasetUploadResult, StorageResultUploadResult
|
|
26
|
+
]
|
|
27
|
+
# TypeAdapter for runtime validation of StorageUploadReceiptResult
|
|
28
|
+
# This allows validation of Union types which are not directly instantiable
|
|
29
|
+
from pydantic import TypeAdapter
|
|
30
|
+
|
|
31
|
+
StorageUploadReceiptResult_adapter = TypeAdapter(StorageUploadReceiptResult)
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
class StorageUploadReceipt(BaseModel):
|
|
35
|
+
"""StorageUploadReceipt
|
|
36
|
+
|
|
37
|
+
:param id: id
|
|
38
|
+
:type id: str
|
|
39
|
+
:param kind: kind
|
|
40
|
+
:type kind: StorageUploadReceiptKind
|
|
41
|
+
:param resource_id: resource_id
|
|
42
|
+
:type resource_id: str
|
|
43
|
+
:param state: state
|
|
44
|
+
:type state: StorageUploadReceiptState
|
|
45
|
+
:param result: result
|
|
46
|
+
:type result: StorageUploadReceiptResult
|
|
47
|
+
"""
|
|
48
|
+
|
|
49
|
+
id: str
|
|
50
|
+
kind: StorageUploadReceiptKind
|
|
51
|
+
resource_id: str
|
|
52
|
+
state: StorageUploadReceiptState
|
|
53
|
+
result: Optional[StorageUploadReceiptResult]
|