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,77 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
from enum import Enum
|
|
3
|
+
import typing
|
|
4
|
+
from pydantic import Field
|
|
5
|
+
from typing import Optional
|
|
6
|
+
from typing import Any
|
|
7
|
+
from .utils.base_error import BaseError
|
|
8
|
+
from .utils.base_model import BaseModel
|
|
9
|
+
|
|
10
|
+
ConflictEncodedTag = typing.Union[typing.Literal["Conflict"], typing.Any]
|
|
11
|
+
|
|
12
|
+
ConflictEncodedType = typing.Union[typing.Literal["about:blank"], typing.Any]
|
|
13
|
+
|
|
14
|
+
ConflictEncodedTitle = typing.Union[typing.Literal["Conflict"], typing.Any]
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class ConflictEncodedStatus(float, Enum):
|
|
18
|
+
"""An enumeration representing different categories.
|
|
19
|
+
|
|
20
|
+
:cvar _409: 409
|
|
21
|
+
:vartype _409: float
|
|
22
|
+
"""
|
|
23
|
+
|
|
24
|
+
_409 = 409
|
|
25
|
+
|
|
26
|
+
@staticmethod
|
|
27
|
+
def list():
|
|
28
|
+
"""Lists all enum values.
|
|
29
|
+
|
|
30
|
+
:return: A list of all enum values.
|
|
31
|
+
:rtype: list
|
|
32
|
+
"""
|
|
33
|
+
return list(map(lambda x: x.value, ConflictEncodedStatus._member_map_.values()))
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
# Pydantic validation model for ConflictEncoded
|
|
37
|
+
class ConflictEncodedData(BaseModel):
|
|
38
|
+
"""ConflictEncoded
|
|
39
|
+
|
|
40
|
+
:param tag: tag
|
|
41
|
+
:type tag: ConflictEncodedTag
|
|
42
|
+
:param type: type
|
|
43
|
+
:type type: ConflictEncodedType
|
|
44
|
+
:param title: title
|
|
45
|
+
:type title: ConflictEncodedTitle
|
|
46
|
+
:param status: status
|
|
47
|
+
:type status: ConflictEncodedStatus
|
|
48
|
+
:param detail: detail
|
|
49
|
+
:type detail: str
|
|
50
|
+
"""
|
|
51
|
+
|
|
52
|
+
tag: ConflictEncodedTag = Field(
|
|
53
|
+
alias="_tag", serialization_alias="_tag", default="Conflict"
|
|
54
|
+
)
|
|
55
|
+
type: ConflictEncodedType = Field(default="about:blank")
|
|
56
|
+
title: ConflictEncodedTitle = Field(default="Conflict")
|
|
57
|
+
status: ConflictEncodedStatus = Field(default=409)
|
|
58
|
+
detail: str
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
# Error exception class
|
|
62
|
+
class ConflictEncoded(BaseError):
|
|
63
|
+
"""ConflictEncoded
|
|
64
|
+
|
|
65
|
+
:param tag: tag
|
|
66
|
+
:type tag: ConflictEncodedTag
|
|
67
|
+
:param type: type
|
|
68
|
+
:type type: ConflictEncodedType
|
|
69
|
+
:param title: title
|
|
70
|
+
:type title: ConflictEncodedTitle
|
|
71
|
+
:param status: status
|
|
72
|
+
:type status: ConflictEncodedStatus
|
|
73
|
+
:param detail: detail
|
|
74
|
+
:type detail: str
|
|
75
|
+
"""
|
|
76
|
+
|
|
77
|
+
_model_class = ConflictEncodedData
|
|
@@ -0,0 +1,38 @@
|
|
|
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 .registry_credential_replacement_required_encoded import (
|
|
7
|
+
RegistryCredentialReplacementRequiredEncoded,
|
|
8
|
+
)
|
|
9
|
+
from .registry_credential_replacement_stale_encoded import (
|
|
10
|
+
RegistryCredentialReplacementStaleEncoded,
|
|
11
|
+
)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# fernMode variant type for a shared-component member of ConflictErrorBody
|
|
15
|
+
class ConflictErrorBody_RegistryCredentialReplacementRequired(
|
|
16
|
+
RegistryCredentialReplacementRequiredEncoded
|
|
17
|
+
):
|
|
18
|
+
pass
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
# fernMode variant type for a shared-component member of ConflictErrorBody
|
|
22
|
+
class ConflictErrorBody_RegistryCredentialReplacementStale(
|
|
23
|
+
RegistryCredentialReplacementStaleEncoded
|
|
24
|
+
):
|
|
25
|
+
pass
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
# Union type for ConflictErrorBody
|
|
29
|
+
# Pydantic will attempt to validate against each type in order
|
|
30
|
+
ConflictErrorBody = Union[
|
|
31
|
+
RegistryCredentialReplacementRequiredEncoded,
|
|
32
|
+
RegistryCredentialReplacementStaleEncoded,
|
|
33
|
+
]
|
|
34
|
+
# TypeAdapter for runtime validation of ConflictErrorBody
|
|
35
|
+
# This allows validation of Union types which are not directly instantiable
|
|
36
|
+
from pydantic import TypeAdapter
|
|
37
|
+
|
|
38
|
+
ConflictErrorBody_adapter = TypeAdapter(ConflictErrorBody)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
from typing import List
|
|
3
|
+
from pydantic import Field
|
|
4
|
+
from typing import Optional
|
|
5
|
+
from typing import Any
|
|
6
|
+
from typing import Union
|
|
7
|
+
from .utils.base_model import BaseModel
|
|
8
|
+
from .leaderboard_mutation_record import LeaderboardMutationRecord
|
|
9
|
+
from .leaderboard_mutation_row import LeaderboardMutationRow
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class CreateLeaderboardResponse(BaseModel):
|
|
13
|
+
"""CreateLeaderboardResponse
|
|
14
|
+
|
|
15
|
+
:param leaderboard: leaderboard
|
|
16
|
+
:type leaderboard: LeaderboardMutationRecord
|
|
17
|
+
:param rows: rows
|
|
18
|
+
:type rows: List[LeaderboardMutationRow]
|
|
19
|
+
"""
|
|
20
|
+
|
|
21
|
+
leaderboard: LeaderboardMutationRecord
|
|
22
|
+
rows: List[LeaderboardMutationRow]
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
|
|
11
|
+
CreateLeaderboardRowInputStatus = typing.Union[
|
|
12
|
+
typing.Literal["display", "hide"], typing.Any
|
|
13
|
+
]
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class CreateLeaderboardRowInput(BaseModel):
|
|
17
|
+
"""CreateLeaderboardRowInput
|
|
18
|
+
|
|
19
|
+
:param metadata: metadata, defaults to None
|
|
20
|
+
:type metadata: Dict[str, Any], optional
|
|
21
|
+
:param metrics: metrics, defaults to None
|
|
22
|
+
:type metrics: Dict[str, Any], optional
|
|
23
|
+
:param status: status, defaults to None
|
|
24
|
+
:type status: CreateLeaderboardRowInputStatus, optional
|
|
25
|
+
:param trial_ids: trial_ids, defaults to None
|
|
26
|
+
:type trial_ids: List[str], optional
|
|
27
|
+
"""
|
|
28
|
+
|
|
29
|
+
metadata: Optional[Dict[str, Any]] = Field(default=None)
|
|
30
|
+
metrics: Optional[Dict[str, Any]] = Field(default=None)
|
|
31
|
+
status: Optional[CreateLeaderboardRowInputStatus] = Field(default=None)
|
|
32
|
+
trial_ids: Optional[List[str]] = Field(default=None)
|
|
@@ -0,0 +1,49 @@
|
|
|
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
|
+
CreatedResultJobVisibility = typing.Union[
|
|
11
|
+
typing.Literal["public", "private"], typing.Any
|
|
12
|
+
]
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class CreatedResultJob(BaseModel):
|
|
16
|
+
"""CreatedResultJob
|
|
17
|
+
|
|
18
|
+
:param id: id
|
|
19
|
+
:type id: str
|
|
20
|
+
:param job_name: job_name
|
|
21
|
+
:type job_name: str
|
|
22
|
+
:param archive_path: archive_path
|
|
23
|
+
:type archive_path: str
|
|
24
|
+
:param config: config
|
|
25
|
+
:type config: Dict[str, Any]
|
|
26
|
+
:param started_at: started_at
|
|
27
|
+
:type started_at: str
|
|
28
|
+
:param finished_at: finished_at
|
|
29
|
+
:type finished_at: str
|
|
30
|
+
:param n_planned_trials: n_planned_trials
|
|
31
|
+
:type n_planned_trials: int
|
|
32
|
+
:param visibility: visibility
|
|
33
|
+
:type visibility: CreatedResultJobVisibility
|
|
34
|
+
:param organization_id: organization_id
|
|
35
|
+
:type organization_id: str
|
|
36
|
+
:param inserted: inserted
|
|
37
|
+
:type inserted: bool
|
|
38
|
+
"""
|
|
39
|
+
|
|
40
|
+
id: str
|
|
41
|
+
job_name: str
|
|
42
|
+
archive_path: Optional[str]
|
|
43
|
+
config: Dict[str, Any]
|
|
44
|
+
started_at: Optional[str]
|
|
45
|
+
finished_at: Optional[str]
|
|
46
|
+
n_planned_trials: Optional[int]
|
|
47
|
+
visibility: CreatedResultJobVisibility
|
|
48
|
+
organization_id: str
|
|
49
|
+
inserted: bool
|
|
@@ -0,0 +1,28 @@
|
|
|
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 CreatedResultTrial(BaseModel):
|
|
10
|
+
"""CreatedResultTrial
|
|
11
|
+
|
|
12
|
+
:param id: id
|
|
13
|
+
:type id: str
|
|
14
|
+
:param job_id: job_id
|
|
15
|
+
:type job_id: str
|
|
16
|
+
:param agent_id: agent_id
|
|
17
|
+
:type agent_id: str
|
|
18
|
+
:param archive_path: archive_path
|
|
19
|
+
:type archive_path: str
|
|
20
|
+
:param inserted: inserted
|
|
21
|
+
:type inserted: bool
|
|
22
|
+
"""
|
|
23
|
+
|
|
24
|
+
id: str
|
|
25
|
+
job_id: str
|
|
26
|
+
agent_id: str
|
|
27
|
+
archive_path: Optional[str]
|
|
28
|
+
inserted: bool
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
from pydantic import Field
|
|
3
|
+
from typing import Optional
|
|
4
|
+
from typing import Any
|
|
5
|
+
from typing import Dict
|
|
6
|
+
from .utils.base_model import BaseModel
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class CredentialProxyHeaderTransform(BaseModel):
|
|
10
|
+
"""CredentialProxyHeaderTransform
|
|
11
|
+
|
|
12
|
+
:param headers: headers
|
|
13
|
+
:type headers: Dict[str, str]
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
headers: Dict[str, str]
|
|
@@ -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 CredentialProxyPathMatch(BaseModel):
|
|
9
|
+
"""CredentialProxyPathMatch
|
|
10
|
+
|
|
11
|
+
:param starts_with: starts_with
|
|
12
|
+
:type starts_with: str
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
starts_with: str = Field(alias="startsWith", serialization_alias="startsWith")
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
from typing import List
|
|
3
|
+
from pydantic import Field
|
|
4
|
+
from typing import Optional
|
|
5
|
+
from typing import Any
|
|
6
|
+
from .utils.base_model import BaseModel
|
|
7
|
+
from .credential_proxy_request_match import CredentialProxyRequestMatch
|
|
8
|
+
from .credential_proxy_header_transform import CredentialProxyHeaderTransform
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class CredentialProxyPolicyRule(BaseModel):
|
|
12
|
+
"""CredentialProxyPolicyRule
|
|
13
|
+
|
|
14
|
+
:param match: match, defaults to None
|
|
15
|
+
:type match: CredentialProxyRequestMatch, optional
|
|
16
|
+
:param transform: transform
|
|
17
|
+
:type transform: List[CredentialProxyHeaderTransform]
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
match: Optional[CredentialProxyRequestMatch] = Field(default=None)
|
|
21
|
+
transform: List[CredentialProxyHeaderTransform]
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
from typing import List
|
|
3
|
+
from pydantic import Field
|
|
4
|
+
from typing import Optional
|
|
5
|
+
from typing import Any
|
|
6
|
+
from .utils.base_model import BaseModel
|
|
7
|
+
from .credential_proxy_path_match import CredentialProxyPathMatch
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class CredentialProxyRequestMatch(BaseModel):
|
|
11
|
+
"""CredentialProxyRequestMatch
|
|
12
|
+
|
|
13
|
+
:param path: path, defaults to None
|
|
14
|
+
:type path: CredentialProxyPathMatch, optional
|
|
15
|
+
:param method: method, defaults to None
|
|
16
|
+
:type method: List[str], optional
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
path: Optional[CredentialProxyPathMatch] = Field(default=None)
|
|
20
|
+
method: Optional[List[str]] = Field(default=None)
|
|
@@ -0,0 +1,21 @@
|
|
|
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 DatasetPublishTaskReference(BaseModel):
|
|
9
|
+
"""DatasetPublishTaskReference
|
|
10
|
+
|
|
11
|
+
:param organization_name: organization_name
|
|
12
|
+
:type organization_name: str
|
|
13
|
+
:param name: name
|
|
14
|
+
:type name: str
|
|
15
|
+
:param digest: digest
|
|
16
|
+
:type digest: str
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
organization_name: str
|
|
20
|
+
name: str
|
|
21
|
+
digest: str
|
|
@@ -0,0 +1,95 @@
|
|
|
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 .dataset_version_file import DatasetVersionFile
|
|
10
|
+
from .dataset_version_revision_summary import DatasetVersionRevisionSummary
|
|
11
|
+
|
|
12
|
+
DatasetVersionDetailType = typing.Union[typing.Literal["dataset"], typing.Any]
|
|
13
|
+
|
|
14
|
+
DatasetVersionDetailVisibility = typing.Union[
|
|
15
|
+
typing.Literal["public", "private"], typing.Any
|
|
16
|
+
]
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class DatasetVersionDetail(BaseModel):
|
|
20
|
+
"""DatasetVersionDetail
|
|
21
|
+
|
|
22
|
+
:param type: type
|
|
23
|
+
:type type: DatasetVersionDetailType
|
|
24
|
+
:param id: id
|
|
25
|
+
:type id: str
|
|
26
|
+
:param package_id: package_id
|
|
27
|
+
:type package_id: str
|
|
28
|
+
:param organization_name: organization_name
|
|
29
|
+
:type organization_name: str
|
|
30
|
+
:param dataset_name: dataset_name
|
|
31
|
+
:type dataset_name: str
|
|
32
|
+
:param revision: revision
|
|
33
|
+
:type revision: int
|
|
34
|
+
:param version: version
|
|
35
|
+
:type version: str
|
|
36
|
+
:param content_hash: content_hash
|
|
37
|
+
:type content_hash: str
|
|
38
|
+
:param description: description
|
|
39
|
+
:type description: str
|
|
40
|
+
:param authors: authors
|
|
41
|
+
:type authors: Any
|
|
42
|
+
:param published_at: published_at
|
|
43
|
+
:type published_at: str
|
|
44
|
+
:param yanked_at: yanked_at, defaults to None
|
|
45
|
+
:type yanked_at: str, optional
|
|
46
|
+
:param yanked_by: yanked_by, defaults to None
|
|
47
|
+
:type yanked_by: str, optional
|
|
48
|
+
:param yanked_reason: yanked_reason, defaults to None
|
|
49
|
+
:type yanked_reason: str, optional
|
|
50
|
+
:param missing_task_count: missing_task_count
|
|
51
|
+
:type missing_task_count: int
|
|
52
|
+
:param files: files
|
|
53
|
+
:type files: List[DatasetVersionFile]
|
|
54
|
+
:param visibility: visibility
|
|
55
|
+
:type visibility: DatasetVersionDetailVisibility
|
|
56
|
+
:param organization_id: organization_id
|
|
57
|
+
:type organization_id: str
|
|
58
|
+
:param published_by: published_by
|
|
59
|
+
:type published_by: str
|
|
60
|
+
:param task_count: task_count
|
|
61
|
+
:type task_count: int
|
|
62
|
+
:param revisions: revisions
|
|
63
|
+
:type revisions: List[DatasetVersionRevisionSummary]
|
|
64
|
+
:param is_member: is_member
|
|
65
|
+
:type is_member: bool
|
|
66
|
+
:param private_task_count: private_task_count
|
|
67
|
+
:type private_task_count: int
|
|
68
|
+
:param readme: readme
|
|
69
|
+
:type readme: str
|
|
70
|
+
"""
|
|
71
|
+
|
|
72
|
+
type: DatasetVersionDetailType = Field(default="dataset")
|
|
73
|
+
id: str
|
|
74
|
+
package_id: str
|
|
75
|
+
organization_name: str
|
|
76
|
+
dataset_name: str
|
|
77
|
+
revision: int
|
|
78
|
+
version: str
|
|
79
|
+
content_hash: str
|
|
80
|
+
description: Optional[str]
|
|
81
|
+
authors: Any
|
|
82
|
+
published_at: str
|
|
83
|
+
yanked_at: Optional[str] = Field(default=None)
|
|
84
|
+
yanked_by: Optional[str] = Field(default=None)
|
|
85
|
+
yanked_reason: Optional[str] = Field(default=None)
|
|
86
|
+
missing_task_count: int
|
|
87
|
+
files: List[DatasetVersionFile]
|
|
88
|
+
visibility: DatasetVersionDetailVisibility
|
|
89
|
+
organization_id: str
|
|
90
|
+
published_by: Optional[str]
|
|
91
|
+
task_count: int
|
|
92
|
+
revisions: List[DatasetVersionRevisionSummary]
|
|
93
|
+
is_member: bool
|
|
94
|
+
private_task_count: int
|
|
95
|
+
readme: Optional[str]
|
|
@@ -0,0 +1,50 @@
|
|
|
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
|
+
|
|
11
|
+
|
|
12
|
+
class DatasetVersionFile(BaseModel):
|
|
13
|
+
"""DatasetVersionFile
|
|
14
|
+
|
|
15
|
+
:param id: id
|
|
16
|
+
:type id: str
|
|
17
|
+
:param path: path
|
|
18
|
+
:type path: str
|
|
19
|
+
:param storage_path: storage_path
|
|
20
|
+
:type storage_path: str
|
|
21
|
+
:param content_hash: content_hash
|
|
22
|
+
:type content_hash: str
|
|
23
|
+
:param size_bytes: size_bytes
|
|
24
|
+
:type size_bytes: DatasetVersionFileSizeBytes
|
|
25
|
+
"""
|
|
26
|
+
|
|
27
|
+
id: str
|
|
28
|
+
path: str
|
|
29
|
+
storage_path: str
|
|
30
|
+
content_hash: str
|
|
31
|
+
size_bytes: Optional[DatasetVersionFileSizeBytes]
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
DatasetVersionFileSizeBytesOne = typing.Union[
|
|
35
|
+
typing.Literal["Infinity", "-Infinity", "NaN"], typing.Any
|
|
36
|
+
]
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
# Union type for DatasetVersionFileSizeBytes
|
|
40
|
+
# Pydantic will attempt to validate against each type in order
|
|
41
|
+
DatasetVersionFileSizeBytes = Union[float, str]
|
|
42
|
+
# TypeAdapter for runtime validation of DatasetVersionFileSizeBytes
|
|
43
|
+
# This allows validation of Union types which are not directly instantiable
|
|
44
|
+
from pydantic import TypeAdapter
|
|
45
|
+
|
|
46
|
+
DatasetVersionFileSizeBytes_adapter = TypeAdapter(DatasetVersionFileSizeBytes)
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
# Rebuild model to resolve forward references from submodels
|
|
50
|
+
DatasetVersionFile.model_rebuild()
|
|
@@ -0,0 +1,91 @@
|
|
|
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 .dataset_version_file import DatasetVersionFile
|
|
12
|
+
from .unavailable_dataset_task_dependency import UnavailableDatasetTaskDependency
|
|
13
|
+
from .available_dataset_task_dependency import AvailableDatasetTaskDependency
|
|
14
|
+
|
|
15
|
+
DatasetVersionManifestType = typing.Union[typing.Literal["dataset"], typing.Any]
|
|
16
|
+
|
|
17
|
+
DatasetVersionManifestVisibility = typing.Union[
|
|
18
|
+
typing.Literal["public", "private"], typing.Any
|
|
19
|
+
]
|
|
20
|
+
|
|
21
|
+
# Union type for DatasetVersionManifestTasksItem
|
|
22
|
+
# Pydantic will attempt to validate against each type in order
|
|
23
|
+
DatasetVersionManifestTasksItem = Union[
|
|
24
|
+
UnavailableDatasetTaskDependency, AvailableDatasetTaskDependency
|
|
25
|
+
]
|
|
26
|
+
# TypeAdapter for runtime validation of DatasetVersionManifestTasksItem
|
|
27
|
+
# This allows validation of Union types which are not directly instantiable
|
|
28
|
+
from pydantic import TypeAdapter
|
|
29
|
+
|
|
30
|
+
DatasetVersionManifestTasksItem_adapter = TypeAdapter(DatasetVersionManifestTasksItem)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
class DatasetVersionManifest(BaseModel):
|
|
34
|
+
"""DatasetVersionManifest
|
|
35
|
+
|
|
36
|
+
:param type: type
|
|
37
|
+
:type type: DatasetVersionManifestType
|
|
38
|
+
:param id: id
|
|
39
|
+
:type id: str
|
|
40
|
+
:param package_id: package_id
|
|
41
|
+
:type package_id: str
|
|
42
|
+
:param organization_name: organization_name
|
|
43
|
+
:type organization_name: str
|
|
44
|
+
:param dataset_name: dataset_name
|
|
45
|
+
:type dataset_name: str
|
|
46
|
+
:param revision: revision
|
|
47
|
+
:type revision: int
|
|
48
|
+
:param version: version
|
|
49
|
+
:type version: str
|
|
50
|
+
:param content_hash: content_hash
|
|
51
|
+
:type content_hash: str
|
|
52
|
+
:param description: description
|
|
53
|
+
:type description: str
|
|
54
|
+
:param authors: authors
|
|
55
|
+
:type authors: Any
|
|
56
|
+
:param published_at: published_at
|
|
57
|
+
:type published_at: str
|
|
58
|
+
:param yanked_at: yanked_at, defaults to None
|
|
59
|
+
:type yanked_at: str, optional
|
|
60
|
+
:param yanked_by: yanked_by, defaults to None
|
|
61
|
+
:type yanked_by: str, optional
|
|
62
|
+
:param yanked_reason: yanked_reason, defaults to None
|
|
63
|
+
:type yanked_reason: str, optional
|
|
64
|
+
:param missing_task_count: missing_task_count
|
|
65
|
+
:type missing_task_count: int
|
|
66
|
+
:param files: files
|
|
67
|
+
:type files: List[DatasetVersionFile]
|
|
68
|
+
:param visibility: visibility
|
|
69
|
+
:type visibility: DatasetVersionManifestVisibility
|
|
70
|
+
:param tasks: tasks
|
|
71
|
+
:type tasks: List[DatasetVersionManifestTasksItem]
|
|
72
|
+
"""
|
|
73
|
+
|
|
74
|
+
type: DatasetVersionManifestType = Field(default="dataset")
|
|
75
|
+
id: str
|
|
76
|
+
package_id: str
|
|
77
|
+
organization_name: str
|
|
78
|
+
dataset_name: str
|
|
79
|
+
revision: int
|
|
80
|
+
version: str
|
|
81
|
+
content_hash: str
|
|
82
|
+
description: Optional[str]
|
|
83
|
+
authors: Any
|
|
84
|
+
published_at: str
|
|
85
|
+
yanked_at: Optional[str] = Field(default=None)
|
|
86
|
+
yanked_by: Optional[str] = Field(default=None)
|
|
87
|
+
yanked_reason: Optional[str] = Field(default=None)
|
|
88
|
+
missing_task_count: int
|
|
89
|
+
files: List[DatasetVersionFile]
|
|
90
|
+
visibility: DatasetVersionManifestVisibility
|
|
91
|
+
tasks: List[DatasetVersionManifestTasksItem]
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
from typing import List
|
|
3
|
+
from pydantic import Field
|
|
4
|
+
from typing import Optional
|
|
5
|
+
from typing import Any
|
|
6
|
+
from .utils.base_model import BaseModel
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class DatasetVersionRevisionSummary(BaseModel):
|
|
10
|
+
"""DatasetVersionRevisionSummary
|
|
11
|
+
|
|
12
|
+
:param revision: revision
|
|
13
|
+
:type revision: int
|
|
14
|
+
:param version: version
|
|
15
|
+
:type version: str
|
|
16
|
+
:param tags: tags
|
|
17
|
+
:type tags: List[str]
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
revision: int
|
|
21
|
+
version: str
|
|
22
|
+
tags: List[str]
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
from typing import List
|
|
3
|
+
from pydantic import Field
|
|
4
|
+
from typing import Optional
|
|
5
|
+
from typing import Any
|
|
6
|
+
from typing import Union
|
|
7
|
+
from .utils.base_model import BaseModel
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class DeleteJobsRequest(BaseModel):
|
|
11
|
+
"""DeleteJobsRequest
|
|
12
|
+
|
|
13
|
+
:param job_ids: job_ids
|
|
14
|
+
:type job_ids: List[str]
|
|
15
|
+
"""
|
|
16
|
+
|
|
17
|
+
job_ids: Optional[List[str]]
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
from typing import List
|
|
3
|
+
from pydantic import Field
|
|
4
|
+
from typing import Optional
|
|
5
|
+
from typing import Any
|
|
6
|
+
from .utils.base_model import BaseModel
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class DeleteJobsResponse(BaseModel):
|
|
10
|
+
"""DeleteJobsResponse
|
|
11
|
+
|
|
12
|
+
:param requested_count: requested_count
|
|
13
|
+
:type requested_count: int
|
|
14
|
+
:param deleted_count: deleted_count
|
|
15
|
+
:type deleted_count: int
|
|
16
|
+
:param deleted_ids: deleted_ids
|
|
17
|
+
:type deleted_ids: List[str]
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
requested_count: int
|
|
21
|
+
deleted_count: int
|
|
22
|
+
deleted_ids: List[str]
|
|
@@ -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 DryRunResponse(BaseModel):
|
|
9
|
+
"""DryRunResponse
|
|
10
|
+
|
|
11
|
+
:param n_trials: n_trials
|
|
12
|
+
:type n_trials: int
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
n_trials: 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 EnsureOrganizationResponse(BaseModel):
|
|
9
|
+
"""EnsureOrganizationResponse
|
|
10
|
+
|
|
11
|
+
:param organization_id: organization_id
|
|
12
|
+
:type organization_id: str
|
|
13
|
+
:param created: created
|
|
14
|
+
:type created: bool
|
|
15
|
+
"""
|
|
16
|
+
|
|
17
|
+
organization_id: str
|
|
18
|
+
created: bool
|