├── archives ├── .gitkeep ├── docs.tar.gz └── harbor-api-documentation.tar.gz ├── test ├── __init__.py ├── test_icon_api.py ├── test_tag.py ├── test_oidc_api.py ├── test_body.py ├── test_icon.py ├── test_task.py ├── test_ping_api.py ├── test_body1.py ├── test_error.py ├── test_label.py ├── test_quota.py ├── test_robot.py ├── test_stats.py ├── test_access.py ├── test_errors.py ├── test_search.py ├── test_worker.py ├── test_health_api.py ├── test_metrics.py ├── test_project.py ├── test_scanner.py ├── test_search_api.py ├── test_storage.py ├── test_artifact.py ├── test_endpoint.py ├── test_instance.py ├── test_metadata.py ├── test_platform.py ├── test_registry.py ├── test_schedule.py ├── test_audit_log.py ├── test_job_queue.py ├── test_ldap_conf.py ├── test_ldap_user.py ├── test_robot_sec.py ├── test_user_resp.py ├── test_accessory.py ├── test_execution.py ├── test_reference.py ├── test_statistic.py ├── test_event_type.py ├── test_gc_history.py ├── test_is_default.py ├── test_user_group.py ├── test_extra_attrs.py ├── test_notify_type.py ├── test_permission.py ├── test_project_req.py ├── test_repository.py ├── test_system_info.py ├── test_user_entity.py ├── test_user_search.py ├── test_webhook_job.py ├── test_webhookjob_api.py ├── test_worker_pool.py ├── test_annotations.py ├── test_exec_history.py ├── test_filter_style.py ├── test_general_info.py ├── test_password_req.py ├── test_robot_create.py ├── test_role_request.py ├── test_schedule_obj.py ├── test_user_profile.py ├── test_auditlog_api.py ├── test_addition_link.py ├── test_chart_version.py ├── test_cve_allowlist.py ├── test_registry_info.py ├── test_registry_ping.py ├── test_resource_list.py ├── test_robot_created.py ├── test_scan_overview.py ├── test_schedule_task.py ├── test_search_result.py ├── test_oidc_user_info.py ├── test_schedule_api.py ├── test_statistic_api.py ├── test_action_request.py ├── test_addition_links.py ├── test_chart_metadata.py ├── test_immutable_rule.py ├── test_preheat_policy.py ├── test_project_member.py ├── test_retention_rule.py ├── test_robot_create_v1.py ├── test_webhook_policy.py ├── test_configurations.py ├── test_bool_config_item.py ├── test_ldap_ping_result.py ├── test_project_scanner.py ├── test_project_summary.py ├── test_quota_ref_object.py ├── test_quota_update_req.py ├── test_registry_update.py ├── test_project_metadata.py ├── test_replication_task.py ├── test_retention_policy.py ├── test_robot_permission.py ├── test_scheduler_status.py ├── test_ldap_import_users.py ├── test_user_creation_req.py ├── test_authproxy_setting.py ├── test_project_deletable.py ├── test_registry_endpoint.py ├── test_search_repository.py ├── test_cve_allowlist_item.py ├── test_oidc_cli_secret_req.py └── test_string_config_item.py ├── .openapi-generator └── VERSION ├── tox.ini ├── .deepsource.toml ├── docs ├── EventType.md ├── ExtraAttrs.md ├── NotifyType.md ├── AdditionLinks.md ├── Annotations.md ├── ResourceList.md ├── ScanOverview.md ├── QuotaRefObject.md ├── Body.md ├── Body1.md ├── InternalConfigurationsResponse.md ├── Errors.md ├── RobotSec.md ├── OIDCCliSecretReq.md ├── ProjectScanner.md ├── SchedulerStatus.md ├── LdapImportUsers.md ├── ScanDataExportJob.md ├── SystemInfo.md ├── UserSysAdminFlag.md ├── Error.md ├── IsDefault.md ├── RetentionPolicyScope.md ├── ActionRequest.md ├── CVEAllowlistItem.md ├── QuotaUpdateReq.md ├── ReplicationTriggerSettings.md ├── UserSearch.md ├── Storage.md ├── RoleRequest.md ├── StartReplicationExecution.md ├── UserSearchRespItem.md ├── RegistryEndpoint.md ├── UserEntity.md ├── Permission.md ├── UserProfile.md ├── ScannerCapability.md ├── LdapFailedImportUser.md ├── LdapPingResult.md ├── Icon.md ├── RetentionRuleParamMetadata.md ├── RetentionRuleTrigger.md ├── Endpoint.md ├── AdditionLink.md ├── ScanDataExportExecutionList.md ├── PasswordReq.md ├── RetentionSelectorMetadata.md ├── BoolConfigItem.md ├── StringConfigItem.md ├── FilterStyle.md ├── IntegerConfigItem.md ├── SupportedWebhookEventTypes.md ├── ImmutableSelector.md ├── RetentionSelector.md ├── InternalConfigurationValue.md ├── ProjectDeletable.md ├── ProviderUnderProject.md ├── Access.md ├── Scanner.md ├── SearchResult.md ├── ConfigurationsResponseScanAllPolicyParameter.md ├── ProjectSummaryQuota.md ├── RegistryProviderEndpointPattern.md ├── RobotPermission.md ├── UserCreationReq.md ├── ScannerAdapterMetadata.md ├── ReplicationFilter.md ├── ReplicationTrigger.md ├── ComponentHealthStatus.md ├── ProjectMember.md ├── UserGroupSearchItem.md ├── OverallHealthStatus.md ├── LdapUser.md ├── Metadata.md ├── JobQueue.md ├── VulnerabilitySummary.md ├── RegistryProviderInfo.md ├── RetentionRuleMetadata.md ├── RetentionExecution.md ├── WebhookTargetObject.md ├── ConfigurationsResponseScanAllPolicy.md ├── RegistryProviderCredentialPattern.md ├── RegistryCredential.md ├── RetentionPolicy.md ├── RobotCreated.md ├── UserGroup.md ├── RobotCreateV1.md ├── RetentionMetadata.md ├── ChartVersion.md ├── ScheduleTask.md ├── Search.md ├── Platform.md ├── Reference.md ├── WebhookLastTrigger.md ├── ImmutableRule.md ├── RetentionRule.md ├── WorkerPool.md ├── RegistryInfo.md ├── Schedule.md ├── Stats.md ├── ScheduleObj.md ├── Quota.md ├── AuditLog.md ├── RetentionExecutionTask.md ├── RobotCreate.md ├── Metrics.md ├── Worker.md ├── OIDCUserInfo.md ├── Label.md ├── ScannerRegistrationSettings.md ├── ProjectReq.md ├── RegistryPing.md ├── RegistryUpdate.md ├── WebhookJob.md ├── Accessory.md ├── Tag.md ├── SearchRepository.md ├── GCHistory.md ├── ProjectMemberEntity.md ├── ExecHistory.md ├── Task.md ├── CVEAllowlist.md ├── UserResp.md ├── Repository.md ├── ScanDataExportExecution.md ├── Execution.md ├── AuthproxySetting.md ├── Statistic.md └── LdapConf.md ├── .travis.yml ├── .gitlab-ci.yml ├── HOW_TO.md ├── do.sh └── .github └── workflows └── gitlab.yml /archives/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.openapi-generator/VERSION: -------------------------------------------------------------------------------- 1 | 5.2.1 -------------------------------------------------------------------------------- /archives/docs.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/container-registry/harbor-api-client/HEAD/archives/docs.tar.gz -------------------------------------------------------------------------------- /archives/harbor-api-documentation.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/container-registry/harbor-api-client/HEAD/archives/harbor-api-documentation.tar.gz -------------------------------------------------------------------------------- /tox.ini: -------------------------------------------------------------------------------- 1 | [tox] 2 | envlist = py27, py3 3 | 4 | [testenv] 5 | deps=-r{toxinidir}/requirements.txt 6 | -r{toxinidir}/test-requirements.txt 7 | 8 | commands= 9 | nosetests \ 10 | [] 11 | -------------------------------------------------------------------------------- /.deepsource.toml: -------------------------------------------------------------------------------- 1 | version = 1 2 | 3 | [[analyzers]] 4 | name = "shell" 5 | enabled = true 6 | 7 | [[analyzers]] 8 | name = "python" 9 | enabled = true 10 | 11 | [analyzers.meta] 12 | runtime_version = "3.x.x" -------------------------------------------------------------------------------- /docs/EventType.md: -------------------------------------------------------------------------------- 1 | # EventType 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | 7 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 8 | 9 | 10 | -------------------------------------------------------------------------------- /docs/ExtraAttrs.md: -------------------------------------------------------------------------------- 1 | # ExtraAttrs 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | 7 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 8 | 9 | 10 | -------------------------------------------------------------------------------- /docs/NotifyType.md: -------------------------------------------------------------------------------- 1 | # NotifyType 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | 7 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 8 | 9 | 10 | -------------------------------------------------------------------------------- /docs/AdditionLinks.md: -------------------------------------------------------------------------------- 1 | # AdditionLinks 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | 7 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 8 | 9 | 10 | -------------------------------------------------------------------------------- /docs/Annotations.md: -------------------------------------------------------------------------------- 1 | # Annotations 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | 7 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 8 | 9 | 10 | -------------------------------------------------------------------------------- /docs/ResourceList.md: -------------------------------------------------------------------------------- 1 | # ResourceList 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | 7 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 8 | 9 | 10 | -------------------------------------------------------------------------------- /docs/ScanOverview.md: -------------------------------------------------------------------------------- 1 | # ScanOverview 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | 7 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 8 | 9 | 10 | -------------------------------------------------------------------------------- /docs/QuotaRefObject.md: -------------------------------------------------------------------------------- 1 | # QuotaRefObject 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | 7 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 8 | 9 | 10 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | # ref: https://docs.travis-ci.com/user/languages/python 2 | language: python 3 | python: 4 | - "3.6" 5 | - "3.7" 6 | - "3.8" 7 | - "3.9" 8 | # command to install dependencies 9 | install: 10 | - "pip install -r requirements.txt" 11 | - "pip install -r test-requirements.txt" 12 | # command to run tests 13 | script: pytest --cov=harbor_client 14 | -------------------------------------------------------------------------------- /docs/Body.md: -------------------------------------------------------------------------------- 1 | # Body 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **dry_run** | **bool** | | [optional] 7 | 8 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/Body1.md: -------------------------------------------------------------------------------- 1 | # Body1 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **action** | **str** | | [optional] 7 | 8 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/InternalConfigurationsResponse.md: -------------------------------------------------------------------------------- 1 | # InternalConfigurationsResponse 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | 7 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 8 | 9 | 10 | -------------------------------------------------------------------------------- /docs/Errors.md: -------------------------------------------------------------------------------- 1 | # Errors 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **errors** | [**list[Error]**](Error.md) | | [optional] 7 | 8 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/RobotSec.md: -------------------------------------------------------------------------------- 1 | # RobotSec 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **secret** | **str** | The secret of the robot | [optional] 7 | 8 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/OIDCCliSecretReq.md: -------------------------------------------------------------------------------- 1 | # OIDCCliSecretReq 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **secret** | **str** | The new secret | [optional] 7 | 8 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/ProjectScanner.md: -------------------------------------------------------------------------------- 1 | # ProjectScanner 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **uuid** | **str** | The identifier of the scanner registration | 7 | 8 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/SchedulerStatus.md: -------------------------------------------------------------------------------- 1 | # SchedulerStatus 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **paused** | **bool** | if the scheduler is paused | [optional] 7 | 8 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/LdapImportUsers.md: -------------------------------------------------------------------------------- 1 | # LdapImportUsers 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **ldap_uid_list** | **list[str]** | selected uid list | [optional] 7 | 8 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/ScanDataExportJob.md: -------------------------------------------------------------------------------- 1 | # ScanDataExportJob 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **int** | The id of the scan data export job | [optional] 7 | 8 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/SystemInfo.md: -------------------------------------------------------------------------------- 1 | # SystemInfo 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **storage** | [**list[Storage]**](Storage.md) | The storage of system. | [optional] 7 | 8 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/UserSysAdminFlag.md: -------------------------------------------------------------------------------- 1 | # UserSysAdminFlag 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **sysadmin_flag** | **bool** | true-admin, false-not admin. | [optional] 7 | 8 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/Error.md: -------------------------------------------------------------------------------- 1 | # Error 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **code** | **str** | The error code | [optional] 7 | **message** | **str** | The error message | [optional] 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/IsDefault.md: -------------------------------------------------------------------------------- 1 | # IsDefault 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **is_default** | **bool** | A flag indicating whether a scanner registration is default. | [optional] 7 | 8 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/RetentionPolicyScope.md: -------------------------------------------------------------------------------- 1 | # RetentionPolicyScope 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **level** | **str** | | [optional] 7 | **ref** | **int** | | [optional] 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/ActionRequest.md: -------------------------------------------------------------------------------- 1 | # ActionRequest 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **action** | **str** | The action of the request, should be stop, pause or resume | [optional] 7 | 8 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/CVEAllowlistItem.md: -------------------------------------------------------------------------------- 1 | # CVEAllowlistItem 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **cve_id** | **str** | The ID of the CVE, such as \"CVE-2019-10164\" | [optional] 7 | 8 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/QuotaUpdateReq.md: -------------------------------------------------------------------------------- 1 | # QuotaUpdateReq 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **hard** | [**ResourceList**](ResourceList.md) | The new hard limits for the quota | [optional] 7 | 8 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/ReplicationTriggerSettings.md: -------------------------------------------------------------------------------- 1 | # ReplicationTriggerSettings 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **cron** | **str** | The cron string for scheduled trigger | [optional] 7 | 8 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/UserSearch.md: -------------------------------------------------------------------------------- 1 | # UserSearch 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **user_id** | **int** | The ID of the user. | [optional] 7 | **username** | **str** | | [optional] 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/Storage.md: -------------------------------------------------------------------------------- 1 | # Storage 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **total** | **int** | Total volume size. | [optional] 7 | **free** | **int** | Free volume size. | [optional] 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/RoleRequest.md: -------------------------------------------------------------------------------- 1 | # RoleRequest 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **role_id** | **int** | The role id 1 for projectAdmin, 2 for developer, 3 for guest, 4 for maintainer | [optional] 7 | 8 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/StartReplicationExecution.md: -------------------------------------------------------------------------------- 1 | # StartReplicationExecution 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **policy_id** | **int** | The ID of policy that the execution belongs to. | [optional] 7 | 8 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/UserSearchRespItem.md: -------------------------------------------------------------------------------- 1 | # UserSearchRespItem 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **user_id** | **int** | The ID of the user. | [optional] 7 | **username** | **str** | | [optional] 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/RegistryEndpoint.md: -------------------------------------------------------------------------------- 1 | # RegistryEndpoint 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **key** | **str** | The endpoint key | [optional] 7 | **value** | **str** | The endpoint value | [optional] 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/UserEntity.md: -------------------------------------------------------------------------------- 1 | # UserEntity 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **user_id** | **int** | The ID of the user. | [optional] 7 | **username** | **str** | The name of the user. | [optional] 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/Permission.md: -------------------------------------------------------------------------------- 1 | # Permission 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **resource** | **str** | The permission resoruce | [optional] 7 | **action** | **str** | The permission action | [optional] 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/UserProfile.md: -------------------------------------------------------------------------------- 1 | # UserProfile 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **email** | **str** | | [optional] 7 | **realname** | **str** | | [optional] 8 | **comment** | **str** | | [optional] 9 | 10 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/ScannerCapability.md: -------------------------------------------------------------------------------- 1 | # ScannerCapability 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **consumes_mime_types** | **list[str]** | | [optional] 7 | **produces_mime_types** | **list[str]** | | [optional] 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/LdapFailedImportUser.md: -------------------------------------------------------------------------------- 1 | # LdapFailedImportUser 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **uid** | **str** | the uid can't add to system. | [optional] 7 | **error** | **str** | fail reason. | [optional] 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/LdapPingResult.md: -------------------------------------------------------------------------------- 1 | # LdapPingResult 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **success** | **bool** | Test success | [optional] 7 | **message** | **str** | The ping operation output message. | [optional] 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/Icon.md: -------------------------------------------------------------------------------- 1 | # Icon 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **content_type** | **str** | The content type of the icon | [optional] 7 | **content** | **str** | The base64 encoded content of the icon | [optional] 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/RetentionRuleParamMetadata.md: -------------------------------------------------------------------------------- 1 | # RetentionRuleParamMetadata 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **type** | **str** | | [optional] 7 | **unit** | **str** | | [optional] 8 | **required** | **bool** | | [optional] 9 | 10 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/RetentionRuleTrigger.md: -------------------------------------------------------------------------------- 1 | # RetentionRuleTrigger 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **kind** | **str** | | [optional] 7 | **settings** | **object** | | [optional] 8 | **references** | **object** | | [optional] 9 | 10 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/Endpoint.md: -------------------------------------------------------------------------------- 1 | # Endpoint 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **url** | **str** | The URL of OIDC endpoint to be tested. | [optional] 7 | **verify_cert** | **bool** | Whether the certificate should be verified | [optional] 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/AdditionLink.md: -------------------------------------------------------------------------------- 1 | # AdditionLink 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **href** | **str** | The link of the addition | [optional] 7 | **absolute** | **bool** | Determine whether the link is an absolute URL or not | [optional] 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/ScanDataExportExecutionList.md: -------------------------------------------------------------------------------- 1 | # ScanDataExportExecutionList 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **items** | [**list[ScanDataExportExecution]**](ScanDataExportExecution.md) | The list of scan data export executions | [optional] 7 | 8 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/PasswordReq.md: -------------------------------------------------------------------------------- 1 | # PasswordReq 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **old_password** | **str** | The user's existing password. | [optional] 7 | **new_password** | **str** | New password for marking as to be updated. | [optional] 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/RetentionSelectorMetadata.md: -------------------------------------------------------------------------------- 1 | # RetentionSelectorMetadata 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **display_text** | **str** | | [optional] 7 | **kind** | **str** | | [optional] 8 | **decorations** | **list[str]** | | [optional] 9 | 10 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/BoolConfigItem.md: -------------------------------------------------------------------------------- 1 | # BoolConfigItem 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **value** | **bool** | The boolean value of current config item | [optional] 7 | **editable** | **bool** | The configure item can be updated or not | [optional] 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/StringConfigItem.md: -------------------------------------------------------------------------------- 1 | # StringConfigItem 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **value** | **str** | The string value of current config item | [optional] 7 | **editable** | **bool** | The configure item can be updated or not | [optional] 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/FilterStyle.md: -------------------------------------------------------------------------------- 1 | # FilterStyle 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **type** | **str** | The filter type | [optional] 7 | **style** | **str** | The filter style | [optional] 8 | **values** | **list[str]** | The filter values | [optional] 9 | 10 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/IntegerConfigItem.md: -------------------------------------------------------------------------------- 1 | # IntegerConfigItem 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **value** | **int** | The integer value of current config item | [optional] 7 | **editable** | **bool** | The configure item can be updated or not | [optional] 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/SupportedWebhookEventTypes.md: -------------------------------------------------------------------------------- 1 | # SupportedWebhookEventTypes 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **event_type** | [**list[EventType]**](EventType.md) | | [optional] 7 | **notify_type** | [**list[NotifyType]**](NotifyType.md) | | [optional] 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/ImmutableSelector.md: -------------------------------------------------------------------------------- 1 | # ImmutableSelector 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **kind** | **str** | | [optional] 7 | **decoration** | **str** | | [optional] 8 | **pattern** | **str** | | [optional] 9 | **extras** | **str** | | [optional] 10 | 11 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 12 | 13 | 14 | -------------------------------------------------------------------------------- /docs/RetentionSelector.md: -------------------------------------------------------------------------------- 1 | # RetentionSelector 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **kind** | **str** | | [optional] 7 | **decoration** | **str** | | [optional] 8 | **pattern** | **str** | | [optional] 9 | **extras** | **str** | | [optional] 10 | 11 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 12 | 13 | 14 | -------------------------------------------------------------------------------- /docs/InternalConfigurationValue.md: -------------------------------------------------------------------------------- 1 | # InternalConfigurationValue 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **value** | **object** | The value of current config item | [optional] 7 | **editable** | **bool** | The configure item can be updated or not | [optional] 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/ProjectDeletable.md: -------------------------------------------------------------------------------- 1 | # ProjectDeletable 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **deletable** | **bool** | Whether the project can be deleted. | [optional] 7 | **message** | **str** | The detail message when the project can not be deleted. | [optional] 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/ProviderUnderProject.md: -------------------------------------------------------------------------------- 1 | # ProviderUnderProject 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **int** | | [optional] 7 | **provider** | **str** | | [optional] 8 | **enabled** | **bool** | | [optional] 9 | **default** | **bool** | | [optional] 10 | 11 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 12 | 13 | 14 | -------------------------------------------------------------------------------- /docs/Access.md: -------------------------------------------------------------------------------- 1 | # Access 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **resource** | **str** | The resource of the access | [optional] 7 | **action** | **str** | The action of the access | [optional] 8 | **effect** | **str** | The effect of the access | [optional] 9 | 10 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/Scanner.md: -------------------------------------------------------------------------------- 1 | # Scanner 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **name** | **str** | Name of the scanner | [optional] 7 | **vendor** | **str** | Name of the scanner provider | [optional] 8 | **version** | **str** | Version of the scanner adapter | [optional] 9 | 10 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/SearchResult.md: -------------------------------------------------------------------------------- 1 | # SearchResult 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **name** | **str** | The chart name with repo name | [optional] 7 | **score** | **int** | The matched level | [optional] 8 | **chart** | [**ChartVersion**](ChartVersion.md) | | [optional] 9 | 10 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 11 | 12 | 13 | -------------------------------------------------------------------------------- /.gitlab-ci.yml: -------------------------------------------------------------------------------- 1 | # ref: https://docs.gitlab.com/ee/ci/README.html 2 | 3 | stages: 4 | - test 5 | 6 | .tests: 7 | stage: test 8 | script: 9 | - pip install -r requirements.txt 10 | - pip install -r test-requirements.txt 11 | - pytest --cov=harbor_client 12 | 13 | test-3.6: 14 | extends: .tests 15 | image: python:3.6-alpine 16 | test-3.7: 17 | extends: .tests 18 | image: python:3.7-alpine 19 | test-3.8: 20 | extends: .tests 21 | image: python:3.8-alpine 22 | test-3.9: 23 | extends: .tests 24 | image: python:3.9-alpine 25 | -------------------------------------------------------------------------------- /docs/ConfigurationsResponseScanAllPolicyParameter.md: -------------------------------------------------------------------------------- 1 | # ConfigurationsResponseScanAllPolicyParameter 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **daily_time** | **int** | The offset in seconds of UTC 0 o'clock, only valid when the policy type is \"daily\" | [optional] 7 | 8 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/ProjectSummaryQuota.md: -------------------------------------------------------------------------------- 1 | # ProjectSummaryQuota 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **hard** | [**ResourceList**](ResourceList.md) | The hard limits of the quota | [optional] 7 | **used** | [**ResourceList**](ResourceList.md) | The used status of the quota | [optional] 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/RegistryProviderEndpointPattern.md: -------------------------------------------------------------------------------- 1 | # RegistryProviderEndpointPattern 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **endpoint_type** | **str** | The endpoint type | [optional] 7 | **endpoints** | [**list[RegistryEndpoint]**](RegistryEndpoint.md) | The endpoint list | [optional] 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/RobotPermission.md: -------------------------------------------------------------------------------- 1 | # RobotPermission 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **kind** | **str** | The kind of the permission | [optional] 7 | **namespace** | **str** | The namespace of the permission | [optional] 8 | **access** | [**list[Access]**](Access.md) | | [optional] 9 | 10 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/UserCreationReq.md: -------------------------------------------------------------------------------- 1 | # UserCreationReq 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **email** | **str** | | [optional] 7 | **realname** | **str** | | [optional] 8 | **comment** | **str** | | [optional] 9 | **password** | **str** | | [optional] 10 | **username** | **str** | | [optional] 11 | 12 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 13 | 14 | 15 | -------------------------------------------------------------------------------- /docs/ScannerAdapterMetadata.md: -------------------------------------------------------------------------------- 1 | # ScannerAdapterMetadata 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **scanner** | [**Scanner**](Scanner.md) | | [optional] 7 | **capabilities** | [**list[ScannerCapability]**](ScannerCapability.md) | | [optional] 8 | **properties** | **dict(str, str)** | | [optional] 9 | 10 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/ReplicationFilter.md: -------------------------------------------------------------------------------- 1 | # ReplicationFilter 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **type** | **str** | The replication policy filter type. | [optional] 7 | **value** | **object** | The value of replication policy filter. | [optional] 8 | **decoration** | **str** | matches or excludes the result | [optional] 9 | 10 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/ReplicationTrigger.md: -------------------------------------------------------------------------------- 1 | # ReplicationTrigger 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **type** | **str** | The replication policy trigger type. The valid values are manual, event_based and scheduled. | [optional] 7 | **trigger_settings** | [**ReplicationTriggerSettings**](ReplicationTriggerSettings.md) | | [optional] 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /HOW_TO.md: -------------------------------------------------------------------------------- 1 | # Generating the code 2 | 3 | Use the `swagger-codegen-cli` 4 | 5 | ``` 6 | java -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate --additional-properties projectName=harbor_client --additional-properties packageVersion=2.7.0 --api-package harbor_client --config --input-spec ~/Downloads/swagger.yaml --lang python --output harbor_client 7 | ``` 8 | 9 | Replace unwanted namings: 10 | 11 | ``` 12 | grep -rl swagger_client . | xargs sed -i 's/swagger_client/harbor_client/g' 13 | grep -rl "from api" . | xargs sed -i 's/from api/from harbor_client.api./g' 14 | ``` 15 | -------------------------------------------------------------------------------- /docs/ComponentHealthStatus.md: -------------------------------------------------------------------------------- 1 | # ComponentHealthStatus 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **name** | **str** | The component name | [optional] 7 | **status** | **str** | The health status of component | [optional] 8 | **error** | **str** | (optional) The error message when the status is \"unhealthy\" | [optional] 9 | 10 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/ProjectMember.md: -------------------------------------------------------------------------------- 1 | # ProjectMember 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **role_id** | **int** | The role id 1 for projectAdmin, 2 for developer, 3 for guest, 4 for maintainer | [optional] 7 | **member_user** | [**UserEntity**](UserEntity.md) | | [optional] 8 | **member_group** | [**UserGroup**](UserGroup.md) | | [optional] 9 | 10 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/UserGroupSearchItem.md: -------------------------------------------------------------------------------- 1 | # UserGroupSearchItem 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **int** | The ID of the user group | [optional] 7 | **group_name** | **str** | The name of the user group | [optional] 8 | **group_type** | **int** | The group type, 1 for LDAP group, 2 for HTTP group, 3 for OIDC group. | [optional] 9 | 10 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/OverallHealthStatus.md: -------------------------------------------------------------------------------- 1 | # OverallHealthStatus 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **status** | **str** | The overall health status. It is \"healthy\" only when all the components' status are \"healthy\" | [optional] 7 | **components** | [**list[ComponentHealthStatus]**](ComponentHealthStatus.md) | | [optional] 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/LdapUser.md: -------------------------------------------------------------------------------- 1 | # LdapUser 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **username** | **str** | ldap username. | [optional] 7 | **realname** | **str** | The user realname from \"uid\" or \"cn\" attribute. | [optional] 8 | **email** | **str** | The user email address from \"mail\" or \"email\" attribute. | [optional] 9 | 10 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/Metadata.md: -------------------------------------------------------------------------------- 1 | # Metadata 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **str** | id | [optional] 7 | **name** | **str** | name | [optional] 8 | **icon** | **str** | icon | [optional] 9 | **maintainers** | **list[str]** | maintainers | [optional] 10 | **version** | **str** | version | [optional] 11 | **source** | **str** | source | [optional] 12 | 13 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 14 | 15 | 16 | -------------------------------------------------------------------------------- /docs/JobQueue.md: -------------------------------------------------------------------------------- 1 | # JobQueue 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **job_type** | **str** | The type of the job queue | [optional] 7 | **count** | **int** | The count of jobs in the job queue | [optional] 8 | **latency** | **int** | The latency the job queue (seconds) | [optional] 9 | **paused** | **bool** | The paused status of the job queue | [optional] 10 | 11 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 12 | 13 | 14 | -------------------------------------------------------------------------------- /docs/VulnerabilitySummary.md: -------------------------------------------------------------------------------- 1 | # VulnerabilitySummary 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **total** | **int** | The total number of the found vulnerabilities | [optional] 7 | **fixable** | **int** | The number of the fixable vulnerabilities | [optional] 8 | **summary** | **dict(str, int)** | Numbers of the vulnerabilities with different severity | [optional] 9 | 10 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/RegistryProviderInfo.md: -------------------------------------------------------------------------------- 1 | # RegistryProviderInfo 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **endpoint_pattern** | [**RegistryProviderEndpointPattern**](RegistryProviderEndpointPattern.md) | The endpoint pattern | [optional] 7 | **credential_pattern** | [**RegistryProviderCredentialPattern**](RegistryProviderCredentialPattern.md) | The credential pattern | [optional] 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /do.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | # Do - The Simplest Build Tool on Earth. 3 | # Documentation and examples see https://github.com/8gears/do 4 | 5 | set -e -u # -e "Automatic exit from bash shell script on error" -u "Treat unset variables and parameters as errors" 6 | 7 | generateClient() { 8 | openapi-generator generate -i swagger.yaml -g python --package-name harbor_client --additional-properties=packageVersion=2.2 --additional-properties=projectName=harbor_client -o . 9 | } 10 | 11 | 12 | "$@" # <- execute the task 13 | 14 | [ "$#" -gt 0 ] || printf "Usage:\n\t./do.sh %s\n" "($(compgen -A function | grep '^[^_]' | paste -sd '|' -))" 15 | 16 | -------------------------------------------------------------------------------- /docs/RetentionRuleMetadata.md: -------------------------------------------------------------------------------- 1 | # RetentionRuleMetadata 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **rule_template** | **str** | rule id | [optional] 7 | **display_text** | **str** | rule display text | [optional] 8 | **action** | **str** | rule action | [optional] 9 | **params** | [**list[RetentionRuleParamMetadata]**](RetentionRuleParamMetadata.md) | rule params | [optional] 10 | 11 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 12 | 13 | 14 | -------------------------------------------------------------------------------- /docs/RetentionExecution.md: -------------------------------------------------------------------------------- 1 | # RetentionExecution 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **int** | | [optional] 7 | **policy_id** | **int** | | [optional] 8 | **start_time** | **str** | | [optional] 9 | **end_time** | **str** | | [optional] 10 | **status** | **str** | | [optional] 11 | **trigger** | **str** | | [optional] 12 | **dry_run** | **bool** | | [optional] 13 | 14 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 15 | 16 | 17 | -------------------------------------------------------------------------------- /docs/WebhookTargetObject.md: -------------------------------------------------------------------------------- 1 | # WebhookTargetObject 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **type** | **str** | The webhook target notify type. | [optional] 7 | **address** | **str** | The webhook target address. | [optional] 8 | **auth_header** | **str** | The webhook auth header. | [optional] 9 | **skip_cert_verify** | **bool** | Whether or not to skip cert verify. | [optional] 10 | 11 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 12 | 13 | 14 | -------------------------------------------------------------------------------- /docs/ConfigurationsResponseScanAllPolicy.md: -------------------------------------------------------------------------------- 1 | # ConfigurationsResponseScanAllPolicy 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **type** | **str** | The type of scan all policy, currently the valid values are \"none\" and \"daily\" | [optional] 7 | **parameter** | [**ConfigurationsResponseScanAllPolicyParameter**](ConfigurationsResponseScanAllPolicyParameter.md) | | [optional] 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/RegistryProviderCredentialPattern.md: -------------------------------------------------------------------------------- 1 | # RegistryProviderCredentialPattern 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **access_key_type** | **str** | The access key type | [optional] 7 | **access_key_data** | **str** | The access key data | [optional] 8 | **access_secret_type** | **str** | The access secret type | [optional] 9 | **access_secret_data** | **str** | The access secret data | [optional] 10 | 11 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 12 | 13 | 14 | -------------------------------------------------------------------------------- /docs/RegistryCredential.md: -------------------------------------------------------------------------------- 1 | # RegistryCredential 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **type** | **str** | Credential type, such as 'basic', 'oauth'. | [optional] 7 | **access_key** | **str** | Access key, e.g. user name when credential type is 'basic'. | [optional] 8 | **access_secret** | **str** | Access secret, e.g. password when credential type is 'basic'. | [optional] 9 | 10 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/RetentionPolicy.md: -------------------------------------------------------------------------------- 1 | # RetentionPolicy 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **int** | | [optional] 7 | **algorithm** | **str** | | [optional] 8 | **rules** | [**list[RetentionRule]**](RetentionRule.md) | | [optional] 9 | **trigger** | [**RetentionRuleTrigger**](RetentionRuleTrigger.md) | | [optional] 10 | **scope** | [**RetentionPolicyScope**](RetentionPolicyScope.md) | | [optional] 11 | 12 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 13 | 14 | 15 | -------------------------------------------------------------------------------- /docs/RobotCreated.md: -------------------------------------------------------------------------------- 1 | # RobotCreated 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **int** | The ID of the robot | [optional] 7 | **name** | **str** | The name of the tag | [optional] 8 | **secret** | **str** | The secret of the robot | [optional] 9 | **creation_time** | **datetime** | The creation time of the robot. | [optional] 10 | **expires_at** | **int** | The expiration data of the robot | [optional] 11 | 12 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 13 | 14 | 15 | -------------------------------------------------------------------------------- /docs/UserGroup.md: -------------------------------------------------------------------------------- 1 | # UserGroup 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **int** | The ID of the user group | [optional] 7 | **group_name** | **str** | The name of the user group | [optional] 8 | **group_type** | **int** | The group type, 1 for LDAP group, 2 for HTTP group, 3 for OIDC group. | [optional] 9 | **ldap_group_dn** | **str** | The DN of the LDAP group if group type is 1 (LDAP group). | [optional] 10 | 11 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 12 | 13 | 14 | -------------------------------------------------------------------------------- /docs/RobotCreateV1.md: -------------------------------------------------------------------------------- 1 | # RobotCreateV1 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **name** | **str** | The name of robot account | [optional] 7 | **description** | **str** | The description of robot account | [optional] 8 | **expires_at** | **int** | The expiration time on or after which the JWT MUST NOT be accepted for processing. | [optional] 9 | **access** | [**list[Access]**](Access.md) | The permission of robot account | [optional] 10 | 11 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 12 | 13 | 14 | -------------------------------------------------------------------------------- /docs/RetentionMetadata.md: -------------------------------------------------------------------------------- 1 | # RetentionMetadata 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **templates** | [**list[RetentionRuleMetadata]**](RetentionRuleMetadata.md) | templates | [optional] 7 | **scope_selectors** | [**list[RetentionSelectorMetadata]**](RetentionSelectorMetadata.md) | supported scope selectors | [optional] 8 | **tag_selectors** | [**list[RetentionSelectorMetadata]**](RetentionSelectorMetadata.md) | supported tag selectors | [optional] 9 | 10 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/ChartVersion.md: -------------------------------------------------------------------------------- 1 | # ChartVersion 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **labels** | [**list[Label]**](Label.md) | A list of label | [optional] 7 | **created** | **str** | The created time of the chart entry | [optional] 8 | **removed** | **bool** | A flag to indicate if the chart entry is removed | [optional] 9 | **digest** | **str** | The digest value of the chart entry | [optional] 10 | **urls** | **list[str]** | The urls of the chart entry | [optional] 11 | 12 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 13 | 14 | 15 | -------------------------------------------------------------------------------- /docs/ScheduleTask.md: -------------------------------------------------------------------------------- 1 | # ScheduleTask 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **int** | the id of the Schedule task | [optional] 7 | **vendor_type** | **str** | the vendor type of the current schedule task | [optional] 8 | **vendor_id** | **int** | the vendor id of the current task | [optional] 9 | **cron** | **str** | the cron of the current schedule task | [optional] 10 | **update_time** | **datetime** | the update time of the schedule task | [optional] 11 | 12 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 13 | 14 | 15 | -------------------------------------------------------------------------------- /docs/Search.md: -------------------------------------------------------------------------------- 1 | # Search 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **project** | [**list[Project]**](Project.md) | Search results of the projects that matched the filter keywords. | [optional] 7 | **repository** | [**list[SearchRepository]**](SearchRepository.md) | Search results of the repositories that matched the filter keywords. | [optional] 8 | **chart** | [**list[SearchResult]**](SearchResult.md) | Search results of the charts that macthed the filter keywords. | [optional] 9 | 10 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/Platform.md: -------------------------------------------------------------------------------- 1 | # Platform 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **architecture** | **str** | The architecture that the artifact applys to | [optional] 7 | **os** | **str** | The OS that the artifact applys to | [optional] 8 | **os_version** | **str** | The version of the OS that the artifact applys to | [optional] 9 | **os_features** | **list[str]** | The features of the OS that the artifact applys to | [optional] 10 | **variant** | **str** | The variant of the CPU | [optional] 11 | 12 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 13 | 14 | 15 | -------------------------------------------------------------------------------- /docs/Reference.md: -------------------------------------------------------------------------------- 1 | # Reference 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **parent_id** | **int** | The parent ID of the reference | [optional] 7 | **child_id** | **int** | The child ID of the reference | [optional] 8 | **child_digest** | **str** | The digest of the child artifact | [optional] 9 | **platform** | [**Platform**](Platform.md) | | [optional] 10 | **annotations** | [**Annotations**](Annotations.md) | | [optional] 11 | **urls** | **list[str]** | The download URLs | [optional] 12 | 13 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 14 | 15 | 16 | -------------------------------------------------------------------------------- /docs/WebhookLastTrigger.md: -------------------------------------------------------------------------------- 1 | # WebhookLastTrigger 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **policy_name** | **str** | The webhook policy name. | [optional] 7 | **event_type** | **str** | The webhook event type. | [optional] 8 | **enabled** | **bool** | Whether or not the webhook policy enabled. | [optional] 9 | **creation_time** | **datetime** | The creation time of webhook policy. | [optional] 10 | **last_trigger_time** | **datetime** | The last trigger time of webhook policy. | [optional] 11 | 12 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 13 | 14 | 15 | -------------------------------------------------------------------------------- /docs/ImmutableRule.md: -------------------------------------------------------------------------------- 1 | # ImmutableRule 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **int** | | [optional] 7 | **priority** | **int** | | [optional] 8 | **disabled** | **bool** | | [optional] 9 | **action** | **str** | | [optional] 10 | **template** | **str** | | [optional] 11 | **params** | **dict(str, object)** | | [optional] 12 | **tag_selectors** | [**list[ImmutableSelector]**](ImmutableSelector.md) | | [optional] 13 | **scope_selectors** | **dict(str, list[ImmutableSelector])** | | [optional] 14 | 15 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 16 | 17 | 18 | -------------------------------------------------------------------------------- /docs/RetentionRule.md: -------------------------------------------------------------------------------- 1 | # RetentionRule 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **int** | | [optional] 7 | **priority** | **int** | | [optional] 8 | **disabled** | **bool** | | [optional] 9 | **action** | **str** | | [optional] 10 | **template** | **str** | | [optional] 11 | **params** | **dict(str, object)** | | [optional] 12 | **tag_selectors** | [**list[RetentionSelector]**](RetentionSelector.md) | | [optional] 13 | **scope_selectors** | **dict(str, list[RetentionSelector])** | | [optional] 14 | 15 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 16 | 17 | 18 | -------------------------------------------------------------------------------- /docs/WorkerPool.md: -------------------------------------------------------------------------------- 1 | # WorkerPool 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **pid** | **int** | the process id of jobservice | [optional] 7 | **worker_pool_id** | **str** | the id of the worker pool | [optional] 8 | **start_at** | **datetime** | The start time of the work pool | [optional] 9 | **heartbeat_at** | **datetime** | The heartbeat time of the work pool | [optional] 10 | **concurrency** | **int** | The concurrency of the work pool | [optional] 11 | **host** | **str** | The host of the work pool | [optional] 12 | 13 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 14 | 15 | 16 | -------------------------------------------------------------------------------- /docs/RegistryInfo.md: -------------------------------------------------------------------------------- 1 | # RegistryInfo 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **type** | **str** | The registry type | [optional] 7 | **description** | **str** | The description | [optional] 8 | **supported_resource_filters** | [**list[FilterStyle]**](FilterStyle.md) | The filters that the registry supports | [optional] 9 | **supported_triggers** | **list[str]** | The triggers that the registry supports | [optional] 10 | **supported_copy_by_chunk** | **bool** | The registry whether support copy by chunk. | [optional] 11 | 12 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 13 | 14 | 15 | -------------------------------------------------------------------------------- /docs/Schedule.md: -------------------------------------------------------------------------------- 1 | # Schedule 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **int** | The id of the schedule. | [optional] 7 | **status** | **str** | The status of the schedule. | [optional] 8 | **creation_time** | **datetime** | the creation time of the schedule. | [optional] 9 | **update_time** | **datetime** | the update time of the schedule. | [optional] 10 | **schedule** | [**ScheduleObj**](ScheduleObj.md) | | [optional] 11 | **parameters** | **dict(str, object)** | The parameters of schedule job | [optional] 12 | 13 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 14 | 15 | 16 | -------------------------------------------------------------------------------- /docs/Stats.md: -------------------------------------------------------------------------------- 1 | # Stats 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **total** | **int** | The total number of scan processes triggered by the scan all action | [optional] 7 | **completed** | **int** | The number of the finished scan processes triggered by the scan all action | [optional] 8 | **metrics** | **dict(str, int)** | The metrics data for the each status | [optional] 9 | **ongoing** | **bool** | A flag indicating job status of scan all. | [optional] 10 | **trigger** | **str** | The trigger of the scan all job. | [optional] 11 | 12 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 13 | 14 | 15 | -------------------------------------------------------------------------------- /docs/ScheduleObj.md: -------------------------------------------------------------------------------- 1 | # ScheduleObj 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **type** | **str** | The schedule type. The valid values are 'Hourly', 'Daily', 'Weekly', 'Custom', 'Manual' and 'None'. 'Manual' means to trigger it right away and 'None' means to cancel the schedule. | [optional] 7 | **cron** | **str** | A cron expression, a time-based job scheduler. | [optional] 8 | **next_scheduled_time** | **datetime** | The next time to schedule to run the job. | [optional] 9 | 10 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/Quota.md: -------------------------------------------------------------------------------- 1 | # Quota 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **int** | ID of the quota | [optional] 7 | **ref** | [**QuotaRefObject**](QuotaRefObject.md) | The reference object of the quota | [optional] 8 | **hard** | [**ResourceList**](ResourceList.md) | The hard limits of the quota | [optional] 9 | **used** | [**ResourceList**](ResourceList.md) | The used status of the quota | [optional] 10 | **creation_time** | **datetime** | the creation time of the quota | [optional] 11 | **update_time** | **datetime** | the update time of the quota | [optional] 12 | 13 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 14 | 15 | 16 | -------------------------------------------------------------------------------- /docs/AuditLog.md: -------------------------------------------------------------------------------- 1 | # AuditLog 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **int** | The ID of the audit log entry. | [optional] 7 | **username** | **str** | Username of the user in this log entry. | [optional] 8 | **resource** | **str** | Name of the repository in this log entry. | [optional] 9 | **resource_type** | **str** | Tag of the repository in this log entry. | [optional] 10 | **operation** | **str** | The operation against the repository in this log entry. | [optional] 11 | **op_time** | **datetime** | The time when this operation is triggered. | [optional] 12 | 13 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 14 | 15 | 16 | -------------------------------------------------------------------------------- /docs/RetentionExecutionTask.md: -------------------------------------------------------------------------------- 1 | # RetentionExecutionTask 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **int** | | [optional] 7 | **execution_id** | **int** | | [optional] 8 | **repository** | **str** | | [optional] 9 | **job_id** | **str** | | [optional] 10 | **status** | **str** | | [optional] 11 | **status_code** | **int** | | [optional] 12 | **status_revision** | **int** | | [optional] 13 | **start_time** | **str** | | [optional] 14 | **end_time** | **str** | | [optional] 15 | **total** | **int** | | [optional] 16 | **retained** | **int** | | [optional] 17 | 18 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 19 | 20 | 21 | -------------------------------------------------------------------------------- /docs/RobotCreate.md: -------------------------------------------------------------------------------- 1 | # RobotCreate 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **name** | **str** | The name of the tag | [optional] 7 | **description** | **str** | The description of the robot | [optional] 8 | **secret** | **str** | The secret of the robot | [optional] 9 | **level** | **str** | The level of the robot, project or system | [optional] 10 | **disable** | **bool** | The disable status of the robot | [optional] 11 | **duration** | **int** | The duration of the robot in days | [optional] 12 | **permissions** | [**list[RobotPermission]**](RobotPermission.md) | | [optional] 13 | 14 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 15 | 16 | 17 | -------------------------------------------------------------------------------- /docs/Metrics.md: -------------------------------------------------------------------------------- 1 | # Metrics 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **task_count** | **int** | The count of task | [optional] 7 | **success_task_count** | **int** | The count of success task | [optional] 8 | **error_task_count** | **int** | The count of error task | [optional] 9 | **pending_task_count** | **int** | The count of pending task | [optional] 10 | **running_task_count** | **int** | The count of running task | [optional] 11 | **scheduled_task_count** | **int** | The count of scheduled task | [optional] 12 | **stopped_task_count** | **int** | The count of stopped task | [optional] 13 | 14 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 15 | 16 | 17 | -------------------------------------------------------------------------------- /docs/Worker.md: -------------------------------------------------------------------------------- 1 | # Worker 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **str** | the id of the worker | [optional] 7 | **pool_id** | **str** | the id of the worker pool | [optional] 8 | **job_name** | **str** | the name of the running job in the worker | [optional] 9 | **job_id** | **str** | the id of the running job in the worker | [optional] 10 | **start_at** | **datetime** | The start time of the worker | [optional] 11 | **check_in** | **str** | the checkin of the running job in the worker | [optional] 12 | **checkin_at** | **datetime** | The checkin time of the worker | [optional] 13 | 14 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 15 | 16 | 17 | -------------------------------------------------------------------------------- /docs/OIDCUserInfo.md: -------------------------------------------------------------------------------- 1 | # OIDCUserInfo 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **int** | the ID of the OIDC info record | [optional] 7 | **user_id** | **int** | the ID of the user | [optional] 8 | **subiss** | **str** | the concatenation of sub and issuer in the ID token | [optional] 9 | **secret** | **str** | the secret of the OIDC user that can be used for CLI to push/pull artifacts | [optional] 10 | **creation_time** | **datetime** | The creation time of the OIDC user info record. | [optional] 11 | **update_time** | **datetime** | The update time of the OIDC user info record. | [optional] 12 | 13 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 14 | 15 | 16 | -------------------------------------------------------------------------------- /docs/Label.md: -------------------------------------------------------------------------------- 1 | # Label 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **int** | The ID of the label | [optional] 7 | **name** | **str** | The name the label | [optional] 8 | **description** | **str** | The description the label | [optional] 9 | **color** | **str** | The color the label | [optional] 10 | **scope** | **str** | The scope the label | [optional] 11 | **project_id** | **int** | The ID of project that the label belongs to | [optional] 12 | **creation_time** | **datetime** | The creation time the label | [optional] 13 | **update_time** | **datetime** | The update time of the label | [optional] 14 | 15 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 16 | 17 | 18 | -------------------------------------------------------------------------------- /docs/ScannerRegistrationSettings.md: -------------------------------------------------------------------------------- 1 | # ScannerRegistrationSettings 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **name** | **str** | The name of this registration | 7 | **url** | **str** | A base URL of the scanner adapter. | 8 | **auth** | **str** | Specify what authentication approach is adopted for the HTTP communications. Supported types Basic\", \"Bearer\" and api key header \"X-ScannerAdapter-API-Key\" | [optional] [default to ''] 9 | **access_credential** | **str** | An optional value of the HTTP Authorization header sent with each request to the Scanner Adapter API. | [optional] 10 | 11 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 12 | 13 | 14 | -------------------------------------------------------------------------------- /.github/workflows/gitlab.yml: -------------------------------------------------------------------------------- 1 | # This is a basic workflow that is manually triggered 2 | 3 | name: Generate branch on Gitlab 4 | 5 | on: 6 | workflow_dispatch: 7 | inputs: 8 | gitlab_key: 9 | description: 'Gitlab flow trigger' 10 | default: null 11 | required: true 12 | 13 | # A workflow run is made up of one or more jobs that can run sequentially or in parallel 14 | jobs: 15 | # This workflow contains a single job called "greet" 16 | gitlab: 17 | # The type of runner that the job will run on 18 | runs-on: ubuntu-latest 19 | 20 | # Steps represent a sequence of tasks that will be executed as part of the job 21 | steps: 22 | # Runs a single command using the runners shell 23 | - name: Create merge request on Gitlab 24 | run: | 25 | echo "Create merge request on Gitlab" 26 | echo ${{ github.event.inputs.gitlab_key }} 27 | -------------------------------------------------------------------------------- /docs/ProjectReq.md: -------------------------------------------------------------------------------- 1 | # ProjectReq 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **project_name** | **str** | The name of the project. | [optional] 7 | **public** | **bool** | deprecated, reserved for project creation in replication | [optional] 8 | **metadata** | [**ProjectMetadata**](ProjectMetadata.md) | The metadata of the project. | [optional] 9 | **cve_allowlist** | [**CVEAllowlist**](CVEAllowlist.md) | The CVE allowlist of the project. | [optional] 10 | **storage_limit** | **int** | The storage quota of the project. | [optional] 11 | **registry_id** | **int** | The ID of referenced registry when creating the proxy cache project | [optional] 12 | 13 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 14 | 15 | 16 | -------------------------------------------------------------------------------- /docs/RegistryPing.md: -------------------------------------------------------------------------------- 1 | # RegistryPing 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **int** | The registry ID. | [optional] 7 | **type** | **str** | Type of the registry, e.g. 'harbor'. | [optional] 8 | **url** | **str** | The registry URL. | [optional] 9 | **credential_type** | **str** | Credential type of the registry, e.g. 'basic'. | [optional] 10 | **access_key** | **str** | The registry access key. | [optional] 11 | **access_secret** | **str** | The registry access secret. | [optional] 12 | **insecure** | **bool** | Whether or not the certificate will be verified when Harbor tries to access the server. | [optional] 13 | 14 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 15 | 16 | 17 | -------------------------------------------------------------------------------- /docs/RegistryUpdate.md: -------------------------------------------------------------------------------- 1 | # RegistryUpdate 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **name** | **str** | The registry name. | [optional] 7 | **description** | **str** | Description of the registry. | [optional] 8 | **url** | **str** | The registry URL. | [optional] 9 | **credential_type** | **str** | Credential type of the registry, e.g. 'basic'. | [optional] 10 | **access_key** | **str** | The registry access key. | [optional] 11 | **access_secret** | **str** | The registry access secret. | [optional] 12 | **insecure** | **bool** | Whether or not the certificate will be verified when Harbor tries to access the server. | [optional] 13 | 14 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 15 | 16 | 17 | -------------------------------------------------------------------------------- /docs/WebhookJob.md: -------------------------------------------------------------------------------- 1 | # WebhookJob 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **int** | The webhook job ID. | [optional] 7 | **policy_id** | **int** | The webhook policy ID. | [optional] 8 | **event_type** | **str** | The webhook job event type. | [optional] 9 | **notify_type** | **str** | The webhook job notify type. | [optional] 10 | **status** | **str** | The webhook job status. | [optional] 11 | **job_detail** | **str** | The webhook job notify detailed data. | [optional] 12 | **creation_time** | **datetime** | The webhook job creation time. | [optional] 13 | **update_time** | **datetime** | The webhook job update time. | [optional] 14 | 15 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 16 | 17 | 18 | -------------------------------------------------------------------------------- /docs/Accessory.md: -------------------------------------------------------------------------------- 1 | # Accessory 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **int** | The ID of the accessory | [optional] 7 | **artifact_id** | **int** | The artifact id of the accessory | [optional] 8 | **subject_artifact_id** | **int** | The subject artifact id of the accessory | [optional] 9 | **size** | **int** | The artifact size of the accessory | [optional] 10 | **digest** | **str** | The artifact digest of the accessory | [optional] 11 | **type** | **str** | The artifact size of the accessory | [optional] 12 | **icon** | **str** | The icon of the accessory | [optional] 13 | **creation_time** | **datetime** | The creation time of the accessory | [optional] 14 | 15 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 16 | 17 | 18 | -------------------------------------------------------------------------------- /docs/Tag.md: -------------------------------------------------------------------------------- 1 | # Tag 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **int** | The ID of the tag | [optional] 7 | **repository_id** | **int** | The ID of the repository that the tag belongs to | [optional] 8 | **artifact_id** | **int** | The ID of the artifact that the tag attached to | [optional] 9 | **name** | **str** | The name of the tag | [optional] 10 | **push_time** | **datetime** | The push time of the tag | [optional] 11 | **pull_time** | **datetime** | The latest pull time of the tag | [optional] 12 | **immutable** | **bool** | The immutable status of the tag | [optional] 13 | **signed** | **bool** | The attribute indicates whether the tag is signed or not | [optional] 14 | 15 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 16 | 17 | 18 | -------------------------------------------------------------------------------- /docs/SearchRepository.md: -------------------------------------------------------------------------------- 1 | # SearchRepository 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **project_id** | **int** | The ID of the project that the repository belongs to | [optional] 7 | **project_name** | **str** | The name of the project that the repository belongs to | [optional] 8 | **project_public** | **bool** | The flag to indicate the publicity of the project that the repository belongs to (1 is public, 0 is not) | [optional] 9 | **repository_name** | **str** | The name of the repository | [optional] 10 | **pull_count** | **int** | The count how many times the repository is pulled | [optional] 11 | **artifact_count** | **int** | The count of artifacts in the repository | [optional] 12 | 13 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 14 | 15 | 16 | -------------------------------------------------------------------------------- /docs/GCHistory.md: -------------------------------------------------------------------------------- 1 | # GCHistory 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **int** | the id of gc job. | [optional] 7 | **job_name** | **str** | the job name of gc job. | [optional] 8 | **job_kind** | **str** | the job kind of gc job. | [optional] 9 | **job_parameters** | **str** | the job parameters of gc job. | [optional] 10 | **schedule** | [**ScheduleObj**](ScheduleObj.md) | | [optional] 11 | **job_status** | **str** | the status of gc job. | [optional] 12 | **deleted** | **bool** | if gc job was deleted. | [optional] 13 | **creation_time** | **datetime** | the creation time of gc job. | [optional] 14 | **update_time** | **datetime** | the update time of gc job. | [optional] 15 | 16 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 17 | 18 | 19 | -------------------------------------------------------------------------------- /docs/ProjectMemberEntity.md: -------------------------------------------------------------------------------- 1 | # ProjectMemberEntity 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **int** | the project member id | [optional] 7 | **project_id** | **int** | the project id | [optional] 8 | **entity_name** | **str** | the name of the group member. | [optional] 9 | **role_name** | **str** | the name of the role | [optional] 10 | **role_id** | **int** | the role id | [optional] 11 | **entity_id** | **int** | the id of entity, if the member is a user, it is user_id in user table. if the member is a user group, it is the user group's ID in user_group table. | [optional] 12 | **entity_type** | **str** | the entity's type, u for user entity, g for group entity. | [optional] 13 | 14 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 15 | 16 | 17 | -------------------------------------------------------------------------------- /test/test_icon_api.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.api.icon_api import IconApi # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestIconApi(unittest.TestCase): 24 | """IconApi unit test stubs""" 25 | 26 | def setUp(self): 27 | self.api = api.icon_api.IconApi() # noqa: E501 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def test_get_icon(self): 33 | """Test case for get_icon 34 | 35 | Get artifact icon # noqa: E501 36 | """ 37 | pass 38 | 39 | 40 | if __name__ == "__main__": 41 | unittest.main() 42 | -------------------------------------------------------------------------------- /test/test_tag.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.tag import Tag # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestTag(unittest.TestCase): 24 | """Tag unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testTag(self): 33 | """Test Tag""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.tag.Tag() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /docs/ExecHistory.md: -------------------------------------------------------------------------------- 1 | # ExecHistory 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **int** | the id of purge job. | [optional] 7 | **job_name** | **str** | the job name of purge job. | [optional] 8 | **job_kind** | **str** | the job kind of purge job. | [optional] 9 | **job_parameters** | **str** | the job parameters of purge job. | [optional] 10 | **schedule** | [**ScheduleObj**](ScheduleObj.md) | | [optional] 11 | **job_status** | **str** | the status of purge job. | [optional] 12 | **deleted** | **bool** | if purge job was deleted. | [optional] 13 | **creation_time** | **datetime** | the creation time of purge job. | [optional] 14 | **update_time** | **datetime** | the update time of purge job. | [optional] 15 | 16 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 17 | 18 | 19 | -------------------------------------------------------------------------------- /test/test_oidc_api.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.api.oidc_api import OidcApi # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestOidcApi(unittest.TestCase): 24 | """OidcApi unit test stubs""" 25 | 26 | def setUp(self): 27 | self.api = api.oidc_api.OidcApi() # noqa: E501 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def test_ping_oidc(self): 33 | """Test case for ping_oidc 34 | 35 | Test the OIDC endpoint. # noqa: E501 36 | """ 37 | pass 38 | 39 | 40 | if __name__ == "__main__": 41 | unittest.main() 42 | -------------------------------------------------------------------------------- /docs/Task.md: -------------------------------------------------------------------------------- 1 | # Task 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **int** | The ID of task | [optional] 7 | **execution_id** | **int** | The ID of task execution | [optional] 8 | **status** | **str** | The status of task | [optional] 9 | **status_message** | **str** | The status message of task | [optional] 10 | **run_count** | **int** | The count of task run | [optional] 11 | **extra_attrs** | [**ExtraAttrs**](ExtraAttrs.md) | | [optional] 12 | **creation_time** | **str** | The creation time of task | [optional] 13 | **update_time** | **str** | The update time of task | [optional] 14 | **start_time** | **str** | The start time of task | [optional] 15 | **end_time** | **str** | The end time of task | [optional] 16 | 17 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 18 | 19 | 20 | -------------------------------------------------------------------------------- /test/test_body.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.body import Body # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestBody(unittest.TestCase): 24 | """Body unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testBody(self): 33 | """Test Body""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.body.Body() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_icon.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.icon import Icon # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestIcon(unittest.TestCase): 24 | """Icon unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testIcon(self): 33 | """Test Icon""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.icon.Icon() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_task.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.task import Task # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestTask(unittest.TestCase): 24 | """Task unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testTask(self): 33 | """Test Task""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.task.Task() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_ping_api.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.api.ping_api import PingApi # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestPingApi(unittest.TestCase): 24 | """PingApi unit test stubs""" 25 | 26 | def setUp(self): 27 | self.api = api.ping_api.PingApi() # noqa: E501 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def test_get_ping(self): 33 | """Test case for get_ping 34 | 35 | Ping Harbor to check if it's alive. # noqa: E501 36 | """ 37 | pass 38 | 39 | 40 | if __name__ == "__main__": 41 | unittest.main() 42 | -------------------------------------------------------------------------------- /docs/CVEAllowlist.md: -------------------------------------------------------------------------------- 1 | # CVEAllowlist 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **int** | ID of the allowlist | [optional] 7 | **project_id** | **int** | ID of the project which the allowlist belongs to. For system level allowlist this attribute is zero. | [optional] 8 | **expires_at** | **int** | the time for expiration of the allowlist, in the form of seconds since epoch. This is an optional attribute, if it's not set the CVE allowlist does not expire. | [optional] 9 | **items** | [**list[CVEAllowlistItem]**](CVEAllowlistItem.md) | | [optional] 10 | **creation_time** | **datetime** | The creation time of the allowlist. | [optional] 11 | **update_time** | **datetime** | The update time of the allowlist. | [optional] 12 | 13 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 14 | 15 | 16 | -------------------------------------------------------------------------------- /test/test_body1.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.body1 import Body1 # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestBody1(unittest.TestCase): 24 | """Body1 unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testBody1(self): 33 | """Test Body1""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.body1.Body1() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_error.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.error import Error # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestError(unittest.TestCase): 24 | """Error unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testError(self): 33 | """Test Error""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.error.Error() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_label.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.label import Label # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestLabel(unittest.TestCase): 24 | """Label unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testLabel(self): 33 | """Test Label""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.label.Label() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_quota.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.quota import Quota # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestQuota(unittest.TestCase): 24 | """Quota unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testQuota(self): 33 | """Test Quota""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.quota.Quota() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_robot.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.robot import Robot # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestRobot(unittest.TestCase): 24 | """Robot unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testRobot(self): 33 | """Test Robot""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.robot.Robot() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_stats.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.stats import Stats # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestStats(unittest.TestCase): 24 | """Stats unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testStats(self): 33 | """Test Stats""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.stats.Stats() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /docs/UserResp.md: -------------------------------------------------------------------------------- 1 | # UserResp 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **email** | **str** | | [optional] 7 | **realname** | **str** | | [optional] 8 | **comment** | **str** | | [optional] 9 | **user_id** | **int** | | [optional] 10 | **username** | **str** | | [optional] 11 | **sysadmin_flag** | **bool** | | [optional] 12 | **admin_role_in_auth** | **bool** | indicate the admin privilege is grant by authenticator (LDAP), is always false unless it is the current login user | [optional] 13 | **oidc_user_meta** | [**OIDCUserInfo**](OIDCUserInfo.md) | | [optional] 14 | **creation_time** | **datetime** | The creation time of the user. | [optional] 15 | **update_time** | **datetime** | The update time of the user. | [optional] 16 | 17 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 18 | 19 | 20 | -------------------------------------------------------------------------------- /docs/Repository.md: -------------------------------------------------------------------------------- 1 | # Repository 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **int** | The ID of the repository | [optional] 7 | **project_id** | **int** | The ID of the project that the repository belongs to | [optional] 8 | **name** | **str** | The name of the repository | [optional] 9 | **description** | **str** | The description of the repository | [optional] 10 | **artifact_count** | **int** | The count of the artifacts inside the repository | [optional] 11 | **pull_count** | **int** | The count that the artifact inside the repository pulled | [optional] 12 | **creation_time** | **datetime** | The creation time of the repository | [optional] 13 | **update_time** | **datetime** | The update time of the repository | [optional] 14 | 15 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 16 | 17 | 18 | -------------------------------------------------------------------------------- /test/test_access.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.access import Access # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestAccess(unittest.TestCase): 24 | """Access unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testAccess(self): 33 | """Test Access""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.access.Access() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_errors.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.errors import Errors # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestErrors(unittest.TestCase): 24 | """Errors unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testErrors(self): 33 | """Test Errors""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.errors.Errors() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_search.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.search import Search # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestSearch(unittest.TestCase): 24 | """Search unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testSearch(self): 33 | """Test Search""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.search.Search() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_worker.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.worker import Worker # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestWorker(unittest.TestCase): 24 | """Worker unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testWorker(self): 33 | """Test Worker""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.worker.Worker() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /docs/ScanDataExportExecution.md: -------------------------------------------------------------------------------- 1 | # ScanDataExportExecution 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **int** | The ID of the execution | [optional] 7 | **user_id** | **int** | The ID if the user triggering the export job | [optional] 8 | **status** | **str** | The status of the execution | [optional] 9 | **trigger** | **str** | The trigger mode | [optional] 10 | **start_time** | **datetime** | The start time | [optional] 11 | **end_time** | **datetime** | The end time | [optional] 12 | **status_text** | **str** | The status text | [optional] 13 | **user_name** | **str** | The name of the user triggering the job | [optional] 14 | **file_present** | **bool** | Indicates whether the export artifact is present in registry | [optional] 15 | 16 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 17 | 18 | 19 | -------------------------------------------------------------------------------- /test/test_health_api.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.api.health_api import HealthApi # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestHealthApi(unittest.TestCase): 24 | """HealthApi unit test stubs""" 25 | 26 | def setUp(self): 27 | self.api = api.health_api.HealthApi() # noqa: E501 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def test_get_health(self): 33 | """Test case for get_health 34 | 35 | Check the status of Harbor components # noqa: E501 36 | """ 37 | pass 38 | 39 | 40 | if __name__ == "__main__": 41 | unittest.main() 42 | -------------------------------------------------------------------------------- /test/test_metrics.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.metrics import Metrics # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestMetrics(unittest.TestCase): 24 | """Metrics unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testMetrics(self): 33 | """Test Metrics""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.metrics.Metrics() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_project.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.project import Project # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestProject(unittest.TestCase): 24 | """Project unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testProject(self): 33 | """Test Project""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.project.Project() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_scanner.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.scanner import Scanner # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestScanner(unittest.TestCase): 24 | """Scanner unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testScanner(self): 33 | """Test Scanner""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.scanner.Scanner() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_search_api.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.api.search_api import SearchApi # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestSearchApi(unittest.TestCase): 24 | """SearchApi unit test stubs""" 25 | 26 | def setUp(self): 27 | self.api = api.search_api.SearchApi() # noqa: E501 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def test_search(self): 33 | """Test case for search 34 | 35 | Search for projects, repositories and helm charts # noqa: E501 36 | """ 37 | pass 38 | 39 | 40 | if __name__ == "__main__": 41 | unittest.main() 42 | -------------------------------------------------------------------------------- /test/test_storage.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.storage import Storage # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestStorage(unittest.TestCase): 24 | """Storage unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testStorage(self): 33 | """Test Storage""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.storage.Storage() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /docs/Execution.md: -------------------------------------------------------------------------------- 1 | # Execution 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **int** | The ID of execution | [optional] 7 | **vendor_type** | **str** | The vendor type of execution | [optional] 8 | **vendor_id** | **int** | The vendor id of execution | [optional] 9 | **status** | **str** | The status of execution | [optional] 10 | **status_message** | **str** | The status message of execution | [optional] 11 | **metrics** | [**Metrics**](Metrics.md) | | [optional] 12 | **trigger** | **str** | The trigger of execution | [optional] 13 | **extra_attrs** | [**ExtraAttrs**](ExtraAttrs.md) | | [optional] 14 | **start_time** | **str** | The start time of execution | [optional] 15 | **end_time** | **str** | The end time of execution | [optional] 16 | 17 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 18 | 19 | 20 | -------------------------------------------------------------------------------- /test/test_artifact.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.artifact import Artifact # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestArtifact(unittest.TestCase): 24 | """Artifact unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testArtifact(self): 33 | """Test Artifact""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.artifact.Artifact() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_endpoint.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.endpoint import Endpoint # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestEndpoint(unittest.TestCase): 24 | """Endpoint unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testEndpoint(self): 33 | """Test Endpoint""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.endpoint.Endpoint() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_instance.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.instance import Instance # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestInstance(unittest.TestCase): 24 | """Instance unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testInstance(self): 33 | """Test Instance""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.instance.Instance() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_metadata.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.metadata import Metadata # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestMetadata(unittest.TestCase): 24 | """Metadata unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testMetadata(self): 33 | """Test Metadata""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.metadata.Metadata() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_platform.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.platform import Platform # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestPlatform(unittest.TestCase): 24 | """Platform unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testPlatform(self): 33 | """Test Platform""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.platform.Platform() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_registry.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.registry import Registry # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestRegistry(unittest.TestCase): 24 | """Registry unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testRegistry(self): 33 | """Test Registry""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.registry.Registry() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_schedule.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.schedule import Schedule # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestSchedule(unittest.TestCase): 24 | """Schedule unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testSchedule(self): 33 | """Test Schedule""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.schedule.Schedule() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_audit_log.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.audit_log import AuditLog # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestAuditLog(unittest.TestCase): 24 | """AuditLog unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testAuditLog(self): 33 | """Test AuditLog""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.audit_log.AuditLog() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_job_queue.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.job_queue import JobQueue # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestJobQueue(unittest.TestCase): 24 | """JobQueue unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testJobQueue(self): 33 | """Test JobQueue""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.job_queue.JobQueue() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_ldap_conf.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.ldap_conf import LdapConf # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestLdapConf(unittest.TestCase): 24 | """LdapConf unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testLdapConf(self): 33 | """Test LdapConf""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.ldap_conf.LdapConf() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_ldap_user.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.ldap_user import LdapUser # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestLdapUser(unittest.TestCase): 24 | """LdapUser unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testLdapUser(self): 33 | """Test LdapUser""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.ldap_user.LdapUser() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_robot_sec.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.robot_sec import RobotSec # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestRobotSec(unittest.TestCase): 24 | """RobotSec unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testRobotSec(self): 33 | """Test RobotSec""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.robot_sec.RobotSec() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_user_resp.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.user_resp import UserResp # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestUserResp(unittest.TestCase): 24 | """UserResp unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testUserResp(self): 33 | """Test UserResp""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.user_resp.UserResp() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_accessory.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.accessory import Accessory # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestAccessory(unittest.TestCase): 24 | """Accessory unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testAccessory(self): 33 | """Test Accessory""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.accessory.Accessory() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_execution.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.execution import Execution # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestExecution(unittest.TestCase): 24 | """Execution unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testExecution(self): 33 | """Test Execution""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.execution.Execution() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_reference.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.reference import Reference # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestReference(unittest.TestCase): 24 | """Reference unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testReference(self): 33 | """Test Reference""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.reference.Reference() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_statistic.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.statistic import Statistic # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestStatistic(unittest.TestCase): 24 | """Statistic unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testStatistic(self): 33 | """Test Statistic""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.statistic.Statistic() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_event_type.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.event_type import EventType # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestEventType(unittest.TestCase): 24 | """EventType unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testEventType(self): 33 | """Test EventType""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.event_type.EventType() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_gc_history.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.gc_history import GCHistory # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestGCHistory(unittest.TestCase): 24 | """GCHistory unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testGCHistory(self): 33 | """Test GCHistory""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.gc_history.GCHistory() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_is_default.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.is_default import IsDefault # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestIsDefault(unittest.TestCase): 24 | """IsDefault unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testIsDefault(self): 33 | """Test IsDefault""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.is_default.IsDefault() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_user_group.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.user_group import UserGroup # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestUserGroup(unittest.TestCase): 24 | """UserGroup unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testUserGroup(self): 33 | """Test UserGroup""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.user_group.UserGroup() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_extra_attrs.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.extra_attrs import ExtraAttrs # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestExtraAttrs(unittest.TestCase): 24 | """ExtraAttrs unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testExtraAttrs(self): 33 | """Test ExtraAttrs""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.extra_attrs.ExtraAttrs() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_notify_type.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.notify_type import NotifyType # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestNotifyType(unittest.TestCase): 24 | """NotifyType unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testNotifyType(self): 33 | """Test NotifyType""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.notify_type.NotifyType() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_permission.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.permission import Permission # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestPermission(unittest.TestCase): 24 | """Permission unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testPermission(self): 33 | """Test Permission""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.permission.Permission() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_project_req.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.project_req import ProjectReq # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestProjectReq(unittest.TestCase): 24 | """ProjectReq unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testProjectReq(self): 33 | """Test ProjectReq""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.project_req.ProjectReq() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_repository.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.repository import Repository # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestRepository(unittest.TestCase): 24 | """Repository unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testRepository(self): 33 | """Test Repository""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.repository.Repository() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_system_info.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.system_info import SystemInfo # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestSystemInfo(unittest.TestCase): 24 | """SystemInfo unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testSystemInfo(self): 33 | """Test SystemInfo""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.system_info.SystemInfo() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_user_entity.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.user_entity import UserEntity # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestUserEntity(unittest.TestCase): 24 | """UserEntity unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testUserEntity(self): 33 | """Test UserEntity""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.user_entity.UserEntity() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_user_search.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.user_search import UserSearch # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestUserSearch(unittest.TestCase): 24 | """UserSearch unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testUserSearch(self): 33 | """Test UserSearch""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.user_search.UserSearch() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_webhook_job.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.webhook_job import WebhookJob # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestWebhookJob(unittest.TestCase): 24 | """WebhookJob unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testWebhookJob(self): 33 | """Test WebhookJob""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.webhook_job.WebhookJob() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_webhookjob_api.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.api.webhookjob_api import WebhookjobApi # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestWebhookjobApi(unittest.TestCase): 24 | """WebhookjobApi unit test stubs""" 25 | 26 | def setUp(self): 27 | self.api = api.webhookjob_api.WebhookjobApi() # noqa: E501 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def test_list_webhook_jobs(self): 33 | """Test case for list_webhook_jobs 34 | 35 | List project webhook jobs # noqa: E501 36 | """ 37 | pass 38 | 39 | 40 | if __name__ == "__main__": 41 | unittest.main() 42 | -------------------------------------------------------------------------------- /test/test_worker_pool.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.worker_pool import WorkerPool # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestWorkerPool(unittest.TestCase): 24 | """WorkerPool unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testWorkerPool(self): 33 | """Test WorkerPool""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.worker_pool.WorkerPool() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_annotations.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.annotations import Annotations # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestAnnotations(unittest.TestCase): 24 | """Annotations unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testAnnotations(self): 33 | """Test Annotations""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.annotations.Annotations() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_exec_history.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.exec_history import ExecHistory # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestExecHistory(unittest.TestCase): 24 | """ExecHistory unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testExecHistory(self): 33 | """Test ExecHistory""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.exec_history.ExecHistory() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_filter_style.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.filter_style import FilterStyle # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestFilterStyle(unittest.TestCase): 24 | """FilterStyle unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testFilterStyle(self): 33 | """Test FilterStyle""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.filter_style.FilterStyle() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_general_info.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.general_info import GeneralInfo # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestGeneralInfo(unittest.TestCase): 24 | """GeneralInfo unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testGeneralInfo(self): 33 | """Test GeneralInfo""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.general_info.GeneralInfo() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_password_req.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.password_req import PasswordReq # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestPasswordReq(unittest.TestCase): 24 | """PasswordReq unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testPasswordReq(self): 33 | """Test PasswordReq""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.password_req.PasswordReq() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_robot_create.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.robot_create import RobotCreate # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestRobotCreate(unittest.TestCase): 24 | """RobotCreate unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testRobotCreate(self): 33 | """Test RobotCreate""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.robot_create.RobotCreate() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_role_request.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.role_request import RoleRequest # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestRoleRequest(unittest.TestCase): 24 | """RoleRequest unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testRoleRequest(self): 33 | """Test RoleRequest""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.role_request.RoleRequest() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_schedule_obj.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.schedule_obj import ScheduleObj # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestScheduleObj(unittest.TestCase): 24 | """ScheduleObj unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testScheduleObj(self): 33 | """Test ScheduleObj""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.schedule_obj.ScheduleObj() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_user_profile.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.user_profile import UserProfile # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestUserProfile(unittest.TestCase): 24 | """UserProfile unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testUserProfile(self): 33 | """Test UserProfile""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.user_profile.UserProfile() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /docs/AuthproxySetting.md: -------------------------------------------------------------------------------- 1 | # AuthproxySetting 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **endpoint** | **str** | The fully qualified URI of login endpoint of authproxy, such as 'https://192.168.1.2:8443/login' | [optional] 7 | **tokenreivew_endpoint** | **str** | The fully qualified URI of token review endpoint of authproxy, such as 'https://192.168.1.2:8443/tokenreview' | [optional] 8 | **skip_search** | **bool** | The flag to determine whether Harbor can skip search the user/group when adding him as a member. | [optional] 9 | **verify_cert** | **bool** | The flag to determine whether Harbor should verify the certificate when connecting to the auth proxy. | [optional] 10 | **server_certificate** | **str** | The certificate to be pinned when connecting auth proxy. | [optional] 11 | 12 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 13 | 14 | 15 | -------------------------------------------------------------------------------- /docs/Statistic.md: -------------------------------------------------------------------------------- 1 | # Statistic 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **private_project_count** | **int** | The count of the private projects | [optional] 7 | **private_repo_count** | **int** | The count of the private repositories | [optional] 8 | **public_project_count** | **int** | The count of the public projects | [optional] 9 | **public_repo_count** | **int** | The count of the public repositories | [optional] 10 | **total_project_count** | **int** | The count of the total projects, only be seen by the system admin | [optional] 11 | **total_repo_count** | **int** | The count of the total repositories, only be seen by the system admin | [optional] 12 | **total_storage_consumption** | **int** | The total storage consumption of blobs, only be seen by the system admin | [optional] 13 | 14 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 15 | 16 | 17 | -------------------------------------------------------------------------------- /test/test_auditlog_api.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.api.auditlog_api import AuditlogApi # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestAuditlogApi(unittest.TestCase): 24 | """AuditlogApi unit test stubs""" 25 | 26 | def setUp(self): 27 | self.api = api.auditlog_api.AuditlogApi() # noqa: E501 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def test_list_audit_logs(self): 33 | """Test case for list_audit_logs 34 | 35 | Get recent logs of the projects which the user is a member of # noqa: E501 36 | """ 37 | pass 38 | 39 | 40 | if __name__ == "__main__": 41 | unittest.main() 42 | -------------------------------------------------------------------------------- /test/test_addition_link.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.addition_link import AdditionLink # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestAdditionLink(unittest.TestCase): 24 | """AdditionLink unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testAdditionLink(self): 33 | """Test AdditionLink""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.addition_link.AdditionLink() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_chart_version.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.chart_version import ChartVersion # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestChartVersion(unittest.TestCase): 24 | """ChartVersion unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testChartVersion(self): 33 | """Test ChartVersion""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.chart_version.ChartVersion() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_cve_allowlist.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.cve_allowlist import CVEAllowlist # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestCVEAllowlist(unittest.TestCase): 24 | """CVEAllowlist unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testCVEAllowlist(self): 33 | """Test CVEAllowlist""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.cve_allowlist.CVEAllowlist() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_registry_info.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.registry_info import RegistryInfo # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestRegistryInfo(unittest.TestCase): 24 | """RegistryInfo unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testRegistryInfo(self): 33 | """Test RegistryInfo""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.registry_info.RegistryInfo() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_registry_ping.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.registry_ping import RegistryPing # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestRegistryPing(unittest.TestCase): 24 | """RegistryPing unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testRegistryPing(self): 33 | """Test RegistryPing""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.registry_ping.RegistryPing() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_resource_list.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.resource_list import ResourceList # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestResourceList(unittest.TestCase): 24 | """ResourceList unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testResourceList(self): 33 | """Test ResourceList""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.resource_list.ResourceList() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_robot_created.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.robot_created import RobotCreated # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestRobotCreated(unittest.TestCase): 24 | """RobotCreated unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testRobotCreated(self): 33 | """Test RobotCreated""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.robot_created.RobotCreated() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_scan_overview.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.scan_overview import ScanOverview # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestScanOverview(unittest.TestCase): 24 | """ScanOverview unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testScanOverview(self): 33 | """Test ScanOverview""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.scan_overview.ScanOverview() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_schedule_task.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.schedule_task import ScheduleTask # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestScheduleTask(unittest.TestCase): 24 | """ScheduleTask unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testScheduleTask(self): 33 | """Test ScheduleTask""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.schedule_task.ScheduleTask() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_search_result.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.search_result import SearchResult # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestSearchResult(unittest.TestCase): 24 | """SearchResult unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testSearchResult(self): 33 | """Test SearchResult""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.search_result.SearchResult() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_oidc_user_info.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.oidc_user_info import OIDCUserInfo # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestOIDCUserInfo(unittest.TestCase): 24 | """OIDCUserInfo unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testOIDCUserInfo(self): 33 | """Test OIDCUserInfo""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.oidc_user_info.OIDCUserInfo() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_schedule_api.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.api.schedule_api import ScheduleApi # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestScheduleApi(unittest.TestCase): 24 | """ScheduleApi unit test stubs""" 25 | 26 | def setUp(self): 27 | self.api = api.schedule_api.ScheduleApi() # noqa: E501 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def test_get_schedule_paused(self): 33 | """Test case for get_schedule_paused""" 34 | pass 35 | 36 | def test_list_schedules(self): 37 | """Test case for list_schedules""" 38 | pass 39 | 40 | 41 | if __name__ == "__main__": 42 | unittest.main() 43 | -------------------------------------------------------------------------------- /test/test_statistic_api.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.api.statistic_api import StatisticApi # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestStatisticApi(unittest.TestCase): 24 | """StatisticApi unit test stubs""" 25 | 26 | def setUp(self): 27 | self.api = api.statistic_api.StatisticApi() # noqa: E501 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def test_get_statistic(self): 33 | """Test case for get_statistic 34 | 35 | Get the statistic information about the projects and repositories # noqa: E501 36 | """ 37 | pass 38 | 39 | 40 | if __name__ == "__main__": 41 | unittest.main() 42 | -------------------------------------------------------------------------------- /docs/LdapConf.md: -------------------------------------------------------------------------------- 1 | # LdapConf 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **ldap_url** | **str** | The url of ldap service. | [optional] 7 | **ldap_search_dn** | **str** | The search dn of ldap service. | [optional] 8 | **ldap_search_password** | **str** | The search password of ldap service. | [optional] 9 | **ldap_base_dn** | **str** | The base dn of ldap service. | [optional] 10 | **ldap_filter** | **str** | The serach filter of ldap service. | [optional] 11 | **ldap_uid** | **str** | The serach uid from ldap service attributes. | [optional] 12 | **ldap_scope** | **int** | The serach scope of ldap service. | [optional] 13 | **ldap_connection_timeout** | **int** | The connect timeout of ldap service(second). | [optional] 14 | **ldap_verify_cert** | **bool** | Verify Ldap server certificate. | [optional] 15 | 16 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 17 | 18 | 19 | -------------------------------------------------------------------------------- /test/test_action_request.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.action_request import ActionRequest # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestActionRequest(unittest.TestCase): 24 | """ActionRequest unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testActionRequest(self): 33 | """Test ActionRequest""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.action_request.ActionRequest() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_addition_links.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.addition_links import AdditionLinks # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestAdditionLinks(unittest.TestCase): 24 | """AdditionLinks unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testAdditionLinks(self): 33 | """Test AdditionLinks""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.addition_links.AdditionLinks() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_chart_metadata.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.chart_metadata import ChartMetadata # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestChartMetadata(unittest.TestCase): 24 | """ChartMetadata unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testChartMetadata(self): 33 | """Test ChartMetadata""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.chart_metadata.ChartMetadata() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_immutable_rule.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.immutable_rule import ImmutableRule # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestImmutableRule(unittest.TestCase): 24 | """ImmutableRule unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testImmutableRule(self): 33 | """Test ImmutableRule""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.immutable_rule.ImmutableRule() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_preheat_policy.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.preheat_policy import PreheatPolicy # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestPreheatPolicy(unittest.TestCase): 24 | """PreheatPolicy unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testPreheatPolicy(self): 33 | """Test PreheatPolicy""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.preheat_policy.PreheatPolicy() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_project_member.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.project_member import ProjectMember # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestProjectMember(unittest.TestCase): 24 | """ProjectMember unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testProjectMember(self): 33 | """Test ProjectMember""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.project_member.ProjectMember() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_retention_rule.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.retention_rule import RetentionRule # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestRetentionRule(unittest.TestCase): 24 | """RetentionRule unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testRetentionRule(self): 33 | """Test RetentionRule""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.retention_rule.RetentionRule() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_robot_create_v1.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.robot_create_v1 import RobotCreateV1 # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestRobotCreateV1(unittest.TestCase): 24 | """RobotCreateV1 unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testRobotCreateV1(self): 33 | """Test RobotCreateV1""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.robot_create_v1.RobotCreateV1() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_webhook_policy.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.webhook_policy import WebhookPolicy # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestWebhookPolicy(unittest.TestCase): 24 | """WebhookPolicy unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testWebhookPolicy(self): 33 | """Test WebhookPolicy""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.webhook_policy.WebhookPolicy() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_configurations.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.configurations import Configurations # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestConfigurations(unittest.TestCase): 24 | """Configurations unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testConfigurations(self): 33 | """Test Configurations""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.configurations.Configurations() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_bool_config_item.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.bool_config_item import BoolConfigItem # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestBoolConfigItem(unittest.TestCase): 24 | """BoolConfigItem unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testBoolConfigItem(self): 33 | """Test BoolConfigItem""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.bool_config_item.BoolConfigItem() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_ldap_ping_result.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.ldap_ping_result import LdapPingResult # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestLdapPingResult(unittest.TestCase): 24 | """LdapPingResult unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testLdapPingResult(self): 33 | """Test LdapPingResult""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.ldap_ping_result.LdapPingResult() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_project_scanner.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.project_scanner import ProjectScanner # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestProjectScanner(unittest.TestCase): 24 | """ProjectScanner unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testProjectScanner(self): 33 | """Test ProjectScanner""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.project_scanner.ProjectScanner() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_project_summary.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.project_summary import ProjectSummary # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestProjectSummary(unittest.TestCase): 24 | """ProjectSummary unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testProjectSummary(self): 33 | """Test ProjectSummary""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.project_summary.ProjectSummary() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_quota_ref_object.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.quota_ref_object import QuotaRefObject # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestQuotaRefObject(unittest.TestCase): 24 | """QuotaRefObject unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testQuotaRefObject(self): 33 | """Test QuotaRefObject""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.quota_ref_object.QuotaRefObject() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_quota_update_req.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.quota_update_req import QuotaUpdateReq # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestQuotaUpdateReq(unittest.TestCase): 24 | """QuotaUpdateReq unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testQuotaUpdateReq(self): 33 | """Test QuotaUpdateReq""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.quota_update_req.QuotaUpdateReq() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_registry_update.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.registry_update import RegistryUpdate # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestRegistryUpdate(unittest.TestCase): 24 | """RegistryUpdate unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testRegistryUpdate(self): 33 | """Test RegistryUpdate""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.registry_update.RegistryUpdate() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_project_metadata.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.project_metadata import ProjectMetadata # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestProjectMetadata(unittest.TestCase): 24 | """ProjectMetadata unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testProjectMetadata(self): 33 | """Test ProjectMetadata""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.project_metadata.ProjectMetadata() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_replication_task.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.replication_task import ReplicationTask # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestReplicationTask(unittest.TestCase): 24 | """ReplicationTask unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testReplicationTask(self): 33 | """Test ReplicationTask""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.replication_task.ReplicationTask() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_retention_policy.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.retention_policy import RetentionPolicy # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestRetentionPolicy(unittest.TestCase): 24 | """RetentionPolicy unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testRetentionPolicy(self): 33 | """Test RetentionPolicy""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.retention_policy.RetentionPolicy() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_robot_permission.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.robot_permission import RobotPermission # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestRobotPermission(unittest.TestCase): 24 | """RobotPermission unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testRobotPermission(self): 33 | """Test RobotPermission""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.robot_permission.RobotPermission() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_scheduler_status.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.scheduler_status import SchedulerStatus # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestSchedulerStatus(unittest.TestCase): 24 | """SchedulerStatus unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testSchedulerStatus(self): 33 | """Test SchedulerStatus""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.scheduler_status.SchedulerStatus() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_ldap_import_users.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.ldap_import_users import LdapImportUsers # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestLdapImportUsers(unittest.TestCase): 24 | """LdapImportUsers unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testLdapImportUsers(self): 33 | """Test LdapImportUsers""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.ldap_import_users.LdapImportUsers() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_user_creation_req.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.user_creation_req import UserCreationReq # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestUserCreationReq(unittest.TestCase): 24 | """UserCreationReq unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testUserCreationReq(self): 33 | """Test UserCreationReq""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.user_creation_req.UserCreationReq() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_authproxy_setting.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.authproxy_setting import AuthproxySetting # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestAuthproxySetting(unittest.TestCase): 24 | """AuthproxySetting unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testAuthproxySetting(self): 33 | """Test AuthproxySetting""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.authproxy_setting.AuthproxySetting() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_project_deletable.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.project_deletable import ProjectDeletable # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestProjectDeletable(unittest.TestCase): 24 | """ProjectDeletable unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testProjectDeletable(self): 33 | """Test ProjectDeletable""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.project_deletable.ProjectDeletable() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_registry_endpoint.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.registry_endpoint import RegistryEndpoint # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestRegistryEndpoint(unittest.TestCase): 24 | """RegistryEndpoint unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testRegistryEndpoint(self): 33 | """Test RegistryEndpoint""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.registry_endpoint.RegistryEndpoint() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_search_repository.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.search_repository import SearchRepository # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestSearchRepository(unittest.TestCase): 24 | """SearchRepository unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testSearchRepository(self): 33 | """Test SearchRepository""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.search_repository.SearchRepository() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_cve_allowlist_item.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.cve_allowlist_item import CVEAllowlistItem # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestCVEAllowlistItem(unittest.TestCase): 24 | """CVEAllowlistItem unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testCVEAllowlistItem(self): 33 | """Test CVEAllowlistItem""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.cve_allowlist_item.CVEAllowlistItem() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_oidc_cli_secret_req.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.oidc_cli_secret_req import OIDCCliSecretReq # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestOIDCCliSecretReq(unittest.TestCase): 24 | """OIDCCliSecretReq unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testOIDCCliSecretReq(self): 33 | """Test OIDCCliSecretReq""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.oidc_cli_secret_req.OIDCCliSecretReq() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_string_config_item.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Harbor API 5 | 6 | These APIs provide services for manipulating Harbor project. # noqa: E501 7 | 8 | OpenAPI spec version: 2.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import harbor_client 19 | from harbor_client.models.string_config_item import StringConfigItem # noqa: E501 20 | from harbor_client.rest import ApiException 21 | 22 | 23 | class TestStringConfigItem(unittest.TestCase): 24 | """StringConfigItem unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testStringConfigItem(self): 33 | """Test StringConfigItem""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = harbor_client.models.string_config_item.StringConfigItem() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | --------------------------------------------------------------------------------