harbor_swagger_client 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +49 -7
- data/docs/ChartRepositoryApi.md +2 -2
- data/docs/Configurations.md +6 -0
- data/docs/ConfigurationsResponse.md +5 -0
- data/docs/DetailedTag.md +1 -1
- data/docs/ImmutableTagRule.md +11 -0
- data/docs/InlineResponse200.md +1 -1
- data/docs/InputSecret.md +8 -0
- data/docs/IsDefault.md +8 -0
- data/docs/NativeReportSummary.md +14 -0
- data/docs/ProductsApi.md +904 -90
- data/docs/Project.md +2 -1
- data/docs/ProjectMetadata.md +1 -1
- data/docs/ProjectScanner.md +8 -0
- data/docs/QuotaApi.md +0 -61
- data/docs/Report.md +11 -0
- data/docs/RetentionPolicy.md +2 -2
- data/docs/ScanApi.md +281 -0
- data/docs/ScanOverview.md +7 -0
- data/docs/Scanner.md +10 -0
- data/docs/ScannerAdapterMetadata.md +10 -0
- data/docs/ScannerCapability.md +9 -0
- data/docs/ScannerRegistration.md +21 -0
- data/docs/ScannerRegistrationReq.md +15 -0
- data/docs/ScannerRegistrationSettings.md +11 -0
- data/docs/ScannersApi.md +600 -0
- data/docs/Stats.md +11 -0
- data/docs/VulnerabilityItem.md +7 -6
- data/docs/VulnerabilitySummary.md +10 -0
- data/harbor_swagger_client.gemspec +1 -1
- data/lib/harbor_swagger_client.rb +18 -4
- data/lib/harbor_swagger_client/api/chart_repository_api.rb +4 -4
- data/lib/harbor_swagger_client/api/label_api.rb +1 -1
- data/lib/harbor_swagger_client/api/products_api.rb +888 -63
- data/lib/harbor_swagger_client/api/quota_api.rb +1 -61
- data/lib/harbor_swagger_client/api/retention_api.rb +1 -1
- data/lib/harbor_swagger_client/api/robot_account_api.rb +1 -1
- data/lib/harbor_swagger_client/api/scan_api.rb +307 -0
- data/lib/harbor_swagger_client/api/scanners_api.rb +624 -0
- data/lib/harbor_swagger_client/api/system_api.rb +1 -1
- data/lib/harbor_swagger_client/api_client.rb +1 -1
- data/lib/harbor_swagger_client/api_error.rb +1 -1
- data/lib/harbor_swagger_client/configuration.rb +1 -1
- data/lib/harbor_swagger_client/models/access_log.rb +1 -1
- data/lib/harbor_swagger_client/models/action.rb +1 -1
- data/lib/harbor_swagger_client/models/action_1.rb +1 -1
- data/lib/harbor_swagger_client/models/admin_job_schedule.rb +1 -1
- data/lib/harbor_swagger_client/models/admin_job_schedule_obj.rb +1 -1
- data/lib/harbor_swagger_client/models/bad_request_formated_error.rb +1 -1
- data/lib/harbor_swagger_client/models/bool_config_item.rb +1 -1
- data/lib/harbor_swagger_client/models/chart_api_error.rb +1 -1
- data/lib/harbor_swagger_client/models/chart_info_entry.rb +1 -1
- data/lib/harbor_swagger_client/models/chart_info_list.rb +1 -1
- data/lib/harbor_swagger_client/models/chart_metadata.rb +1 -1
- data/lib/harbor_swagger_client/models/chart_version.rb +1 -1
- data/lib/harbor_swagger_client/models/chart_version_details.rb +1 -1
- data/lib/harbor_swagger_client/models/chart_versions.rb +1 -1
- data/lib/harbor_swagger_client/models/component_health_status.rb +1 -1
- data/lib/harbor_swagger_client/models/component_overview_entry.rb +1 -1
- data/lib/harbor_swagger_client/models/configurations.rb +62 -2
- data/lib/harbor_swagger_client/models/configurations_response.rb +52 -2
- data/lib/harbor_swagger_client/models/configurations_scan_all_policy.rb +1 -1
- data/lib/harbor_swagger_client/models/configurations_scan_all_policy_parameter.rb +1 -1
- data/lib/harbor_swagger_client/models/conflict_formated_error.rb +1 -1
- data/lib/harbor_swagger_client/models/cve_whitelist.rb +1 -1
- data/lib/harbor_swagger_client/models/cve_whitelist_item.rb +1 -1
- data/lib/harbor_swagger_client/models/dependency.rb +1 -1
- data/lib/harbor_swagger_client/models/detailed_tag.rb +3 -2
- data/lib/harbor_swagger_client/models/digital_signature.rb +1 -1
- data/lib/harbor_swagger_client/models/email_server_setting.rb +1 -1
- data/lib/harbor_swagger_client/models/endpoint.rb +1 -1
- data/lib/harbor_swagger_client/models/filter_style.rb +1 -1
- data/lib/harbor_swagger_client/models/forbidden_chart_api_error.rb +1 -1
- data/lib/harbor_swagger_client/models/gc_result.rb +1 -1
- data/lib/harbor_swagger_client/models/general_info.rb +1 -1
- data/lib/harbor_swagger_client/models/general_info_clair_vulnerability_status.rb +1 -1
- data/lib/harbor_swagger_client/models/has_admin_role.rb +1 -1
- data/lib/harbor_swagger_client/models/immutable_tag_rule.rb +210 -0
- data/lib/harbor_swagger_client/models/inline_response_200.rb +8 -9
- data/lib/harbor_swagger_client/models/input_secret.rb +184 -0
- data/lib/harbor_swagger_client/models/insufficient_storage_chart_api_error.rb +1 -1
- data/lib/harbor_swagger_client/models/integer_config_item.rb +1 -1
- data/lib/harbor_swagger_client/models/internal_chart_api_error.rb +1 -1
- data/lib/harbor_swagger_client/models/is_default.rb +184 -0
- data/lib/harbor_swagger_client/models/job_status.rb +1 -1
- data/lib/harbor_swagger_client/models/label.rb +1 -1
- data/lib/harbor_swagger_client/models/labels.rb +1 -1
- data/lib/harbor_swagger_client/models/ldap_conf.rb +1 -1
- data/lib/harbor_swagger_client/models/ldap_failed_import_users.rb +1 -1
- data/lib/harbor_swagger_client/models/ldap_import_users.rb +1 -1
- data/lib/harbor_swagger_client/models/ldap_users.rb +1 -1
- data/lib/harbor_swagger_client/models/manifest.rb +1 -1
- data/lib/harbor_swagger_client/models/namespace.rb +1 -1
- data/lib/harbor_swagger_client/models/native_report_summary.rb +244 -0
- data/lib/harbor_swagger_client/models/not_found_chart_api_error.rb +1 -1
- data/lib/harbor_swagger_client/models/overall_health_status.rb +1 -1
- data/lib/harbor_swagger_client/models/password.rb +1 -1
- data/lib/harbor_swagger_client/models/permission.rb +1 -1
- data/lib/harbor_swagger_client/models/ping_registry.rb +1 -1
- data/lib/harbor_swagger_client/models/project.rb +15 -3
- data/lib/harbor_swagger_client/models/project_member.rb +1 -1
- data/lib/harbor_swagger_client/models/project_member_entity.rb +1 -1
- data/lib/harbor_swagger_client/models/project_metadata.rb +2 -2
- data/lib/harbor_swagger_client/models/project_req.rb +1 -1
- data/lib/harbor_swagger_client/models/project_scanner.rb +184 -0
- data/lib/harbor_swagger_client/models/project_summary.rb +1 -1
- data/lib/harbor_swagger_client/models/project_summary_quota.rb +1 -1
- data/lib/harbor_swagger_client/models/put_registry.rb +1 -1
- data/lib/harbor_swagger_client/models/quota.rb +1 -1
- data/lib/harbor_swagger_client/models/quota_ref_object.rb +1 -1
- data/lib/harbor_swagger_client/models/quota_switcher.rb +1 -1
- data/lib/harbor_swagger_client/models/quota_update_req.rb +1 -1
- data/lib/harbor_swagger_client/models/registry.rb +1 -1
- data/lib/harbor_swagger_client/models/registry_credential.rb +1 -1
- data/lib/harbor_swagger_client/models/registry_info.rb +1 -1
- data/lib/harbor_swagger_client/models/replication_execution.rb +1 -1
- data/lib/harbor_swagger_client/models/replication_filter.rb +1 -1
- data/lib/harbor_swagger_client/models/replication_policy.rb +1 -1
- data/lib/harbor_swagger_client/models/replication_task.rb +1 -1
- data/lib/harbor_swagger_client/models/replication_trigger.rb +1 -1
- data/lib/harbor_swagger_client/models/repo_signature.rb +1 -1
- data/lib/harbor_swagger_client/models/report.rb +215 -0
- data/lib/harbor_swagger_client/models/repository.rb +1 -1
- data/lib/harbor_swagger_client/models/repository_description.rb +1 -1
- data/lib/harbor_swagger_client/models/resource.rb +1 -1
- data/lib/harbor_swagger_client/models/resource_list.rb +1 -1
- data/lib/harbor_swagger_client/models/retag_req.rb +1 -1
- data/lib/harbor_swagger_client/models/retention_execution.rb +1 -1
- data/lib/harbor_swagger_client/models/retention_execution_task.rb +1 -1
- data/lib/harbor_swagger_client/models/retention_metadata.rb +1 -1
- data/lib/harbor_swagger_client/models/retention_policy.rb +3 -3
- data/lib/harbor_swagger_client/models/retention_policy_scope.rb +1 -1
- data/lib/harbor_swagger_client/models/retention_rule.rb +1 -1
- data/lib/harbor_swagger_client/models/retention_rule_metadata.rb +1 -1
- data/lib/harbor_swagger_client/models/retention_rule_param_metadata.rb +1 -1
- data/lib/harbor_swagger_client/models/retention_rule_trigger.rb +1 -1
- data/lib/harbor_swagger_client/models/retention_selector.rb +1 -1
- data/lib/harbor_swagger_client/models/retention_selector_metadata.rb +1 -1
- data/lib/harbor_swagger_client/models/robot_account.rb +1 -1
- data/lib/harbor_swagger_client/models/robot_account_access.rb +1 -1
- data/lib/harbor_swagger_client/models/robot_account_create.rb +1 -1
- data/lib/harbor_swagger_client/models/robot_account_post_rep.rb +1 -1
- data/lib/harbor_swagger_client/models/robot_account_update.rb +1 -1
- data/lib/harbor_swagger_client/models/role.rb +1 -1
- data/lib/harbor_swagger_client/models/role_param.rb +1 -1
- data/lib/harbor_swagger_client/models/role_request.rb +1 -1
- data/lib/harbor_swagger_client/models/scan_overview.rb +175 -0
- data/lib/harbor_swagger_client/models/scanner.rb +204 -0
- data/lib/harbor_swagger_client/models/scanner_adapter_metadata.rb +206 -0
- data/lib/harbor_swagger_client/models/scanner_capability.rb +196 -0
- data/lib/harbor_swagger_client/models/scanner_registration.rb +327 -0
- data/lib/harbor_swagger_client/models/scanner_registration_req.rb +262 -0
- data/lib/harbor_swagger_client/models/scanner_registration_settings.rb +216 -0
- data/lib/harbor_swagger_client/models/search.rb +1 -1
- data/lib/harbor_swagger_client/models/search_repository.rb +1 -1
- data/lib/harbor_swagger_client/models/search_result.rb +1 -1
- data/lib/harbor_swagger_client/models/security_report.rb +1 -1
- data/lib/harbor_swagger_client/models/statistic_map.rb +1 -1
- data/lib/harbor_swagger_client/models/stats.rb +217 -0
- data/lib/harbor_swagger_client/models/storage.rb +1 -1
- data/lib/harbor_swagger_client/models/string_config_item.rb +1 -1
- data/lib/harbor_swagger_client/models/system_info.rb +1 -1
- data/lib/harbor_swagger_client/models/tags.rb +1 -1
- data/lib/harbor_swagger_client/models/trigger_settings.rb +1 -1
- data/lib/harbor_swagger_client/models/unauthorized_chart_api_error.rb +1 -1
- data/lib/harbor_swagger_client/models/user.rb +1 -1
- data/lib/harbor_swagger_client/models/user_entity.rb +1 -1
- data/lib/harbor_swagger_client/models/user_group.rb +1 -1
- data/lib/harbor_swagger_client/models/user_profile.rb +1 -1
- data/lib/harbor_swagger_client/models/user_search.rb +1 -1
- data/lib/harbor_swagger_client/models/vuln_namespace_timestamp.rb +1 -1
- data/lib/harbor_swagger_client/models/vulnerability_item.rb +35 -23
- data/lib/harbor_swagger_client/models/vulnerability_summary.rb +207 -0
- data/lib/harbor_swagger_client/models/webhook_job.rb +1 -1
- data/lib/harbor_swagger_client/models/webhook_last_trigger.rb +1 -1
- data/lib/harbor_swagger_client/models/webhook_policy.rb +1 -1
- data/lib/harbor_swagger_client/models/webhook_target_object.rb +1 -1
- data/lib/harbor_swagger_client/version.rb +2 -2
- data/spec/Gemfile +7 -0
- data/spec/README.md +438 -0
- data/spec/Rakefile +8 -0
- data/spec/api/chart_repository_api_spec.rb +2 -2
- data/spec/api/label_api_spec.rb +1 -1
- data/spec/api/products_api_spec.rb +205 -19
- data/spec/api/quota_api_spec.rb +1 -16
- data/spec/api/retention_api_spec.rb +1 -1
- data/spec/api/robot_account_api_spec.rb +1 -1
- data/spec/api/scan_api_spec.rb +98 -0
- data/spec/api/scanners_api_spec.rb +169 -0
- data/spec/api/system_api_spec.rb +1 -1
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/docs/AccessLog.md +13 -0
- data/spec/docs/Action.md +8 -0
- data/spec/docs/Action1.md +8 -0
- data/spec/docs/AdminJobSchedule.md +8 -0
- data/spec/docs/AdminJobScheduleObj.md +9 -0
- data/spec/docs/BadRequestFormatedError.md +8 -0
- data/spec/docs/BoolConfigItem.md +9 -0
- data/spec/docs/CVEWhitelist.md +11 -0
- data/spec/docs/CVEWhitelistItem.md +8 -0
- data/spec/docs/ChartAPIError.md +8 -0
- data/spec/docs/ChartInfoEntry.md +15 -0
- data/spec/docs/ChartInfoList.md +7 -0
- data/spec/docs/ChartMetadata.md +18 -0
- data/spec/docs/ChartRepositoryApi.md +698 -0
- data/spec/docs/ChartVersion.md +22 -0
- data/spec/docs/ChartVersionDetails.md +13 -0
- data/spec/docs/ChartVersions.md +7 -0
- data/spec/docs/ComponentHealthStatus.md +10 -0
- data/spec/docs/ComponentOverviewEntry.md +9 -0
- data/spec/docs/Configurations.md +42 -0
- data/spec/docs/ConfigurationsResponse.md +41 -0
- data/spec/docs/ConfigurationsScanAllPolicy.md +9 -0
- data/spec/docs/ConfigurationsScanAllPolicyParameter.md +8 -0
- data/spec/docs/ConflictFormatedError.md +8 -0
- data/spec/docs/Dependency.md +10 -0
- data/spec/docs/DetailedTag.md +18 -0
- data/spec/docs/DigitalSignature.md +9 -0
- data/spec/docs/EmailServerSetting.md +13 -0
- data/spec/docs/Endpoint.md +9 -0
- data/spec/docs/FilterStyle.md +10 -0
- data/spec/docs/ForbiddenChartAPIError.md +8 -0
- data/spec/docs/GCResult.md +15 -0
- data/spec/docs/GeneralInfo.md +20 -0
- data/spec/docs/GeneralInfoClairVulnerabilityStatus.md +9 -0
- data/spec/docs/HasAdminRole.md +8 -0
- data/spec/docs/ImmutableTagRule.md +11 -0
- data/spec/docs/InlineResponse200.md +8 -0
- data/spec/docs/InputSecret.md +8 -0
- data/spec/docs/InsufficientStorageChartAPIError.md +8 -0
- data/spec/docs/IntegerConfigItem.md +9 -0
- data/spec/docs/InternalChartAPIError.md +8 -0
- data/spec/docs/IsDefault.md +8 -0
- data/spec/docs/JobStatus.md +15 -0
- data/spec/docs/Label.md +16 -0
- data/spec/docs/LabelApi.md +191 -0
- data/spec/docs/Labels.md +7 -0
- data/spec/docs/LdapConf.md +15 -0
- data/spec/docs/LdapFailedImportUsers.md +9 -0
- data/spec/docs/LdapImportUsers.md +8 -0
- data/spec/docs/LdapUsers.md +10 -0
- data/spec/docs/Manifest.md +9 -0
- data/spec/docs/Namespace.md +9 -0
- data/spec/docs/NativeReportSummary.md +14 -0
- data/spec/docs/NotFoundChartAPIError.md +8 -0
- data/spec/docs/OverallHealthStatus.md +9 -0
- data/spec/docs/Password.md +9 -0
- data/spec/docs/Permission.md +9 -0
- data/spec/docs/PingRegistry.md +14 -0
- data/spec/docs/ProductsApi.md +8594 -0
- data/spec/docs/Project.md +21 -0
- data/spec/docs/ProjectMember.md +10 -0
- data/spec/docs/ProjectMemberEntity.md +14 -0
- data/spec/docs/ProjectMetadata.md +13 -0
- data/spec/docs/ProjectReq.md +12 -0
- data/spec/docs/ProjectScanner.md +8 -0
- data/spec/docs/ProjectSummary.md +14 -0
- data/spec/docs/ProjectSummaryQuota.md +9 -0
- data/spec/docs/PutRegistry.md +14 -0
- data/spec/docs/Quota.md +13 -0
- data/spec/docs/QuotaApi.md +118 -0
- data/spec/docs/QuotaRefObject.md +7 -0
- data/spec/docs/QuotaSwitcher.md +8 -0
- data/spec/docs/QuotaUpdateReq.md +8 -0
- data/spec/docs/Registry.md +17 -0
- data/spec/docs/RegistryCredential.md +10 -0
- data/spec/docs/RegistryInfo.md +11 -0
- data/spec/docs/ReplicationExecution.md +19 -0
- data/spec/docs/ReplicationFilter.md +9 -0
- data/spec/docs/ReplicationPolicy.md +20 -0
- data/spec/docs/ReplicationTask.md +16 -0
- data/spec/docs/ReplicationTrigger.md +9 -0
- data/spec/docs/RepoSignature.md +9 -0
- data/spec/docs/Report.md +11 -0
- data/spec/docs/Repository.md +17 -0
- data/spec/docs/RepositoryDescription.md +8 -0
- data/spec/docs/Resource.md +8 -0
- data/spec/docs/ResourceList.md +7 -0
- data/spec/docs/RetagReq.md +10 -0
- data/spec/docs/RetentionApi.md +449 -0
- data/spec/docs/RetentionExecution.md +14 -0
- data/spec/docs/RetentionExecutionTask.md +18 -0
- data/spec/docs/RetentionMetadata.md +10 -0
- data/spec/docs/RetentionPolicy.md +12 -0
- data/spec/docs/RetentionPolicyScope.md +9 -0
- data/spec/docs/RetentionRule.md +15 -0
- data/spec/docs/RetentionRuleMetadata.md +11 -0
- data/spec/docs/RetentionRuleParamMetadata.md +10 -0
- data/spec/docs/RetentionRuleTrigger.md +10 -0
- data/spec/docs/RetentionSelector.md +10 -0
- data/spec/docs/RetentionSelectorMetadata.md +10 -0
- data/spec/docs/RobotAccount.md +15 -0
- data/spec/docs/RobotAccountAccess.md +9 -0
- data/spec/docs/RobotAccountApi.md +291 -0
- data/spec/docs/RobotAccountCreate.md +10 -0
- data/spec/docs/RobotAccountPostRep.md +9 -0
- data/spec/docs/RobotAccountUpdate.md +8 -0
- data/spec/docs/Role.md +11 -0
- data/spec/docs/RoleParam.md +9 -0
- data/spec/docs/RoleRequest.md +8 -0
- data/spec/docs/ScanApi.md +281 -0
- data/spec/docs/ScanOverview.md +7 -0
- data/spec/docs/Scanner.md +10 -0
- data/spec/docs/ScannerAdapterMetadata.md +10 -0
- data/spec/docs/ScannerCapability.md +9 -0
- data/spec/docs/ScannerRegistration.md +21 -0
- data/spec/docs/ScannerRegistrationReq.md +15 -0
- data/spec/docs/ScannerRegistrationSettings.md +11 -0
- data/spec/docs/ScannersApi.md +600 -0
- data/spec/docs/Search.md +10 -0
- data/spec/docs/SearchRepository.md +13 -0
- data/spec/docs/SearchResult.md +10 -0
- data/spec/docs/SecurityReport.md +8 -0
- data/spec/docs/StatisticMap.md +13 -0
- data/spec/docs/Stats.md +11 -0
- data/spec/docs/Storage.md +9 -0
- data/spec/docs/StringConfigItem.md +9 -0
- data/spec/docs/SystemApi.md +163 -0
- data/spec/docs/SystemInfo.md +8 -0
- data/spec/docs/Tags.md +8 -0
- data/spec/docs/TriggerSettings.md +8 -0
- data/spec/docs/UnauthorizedChartAPIError.md +8 -0
- data/spec/docs/User.md +21 -0
- data/spec/docs/UserEntity.md +9 -0
- data/spec/docs/UserGroup.md +11 -0
- data/spec/docs/UserProfile.md +10 -0
- data/spec/docs/UserSearch.md +9 -0
- data/spec/docs/VulnNamespaceTimestamp.md +9 -0
- data/spec/docs/VulnerabilityItem.md +14 -0
- data/spec/docs/VulnerabilitySummary.md +10 -0
- data/spec/docs/WebhookJob.md +15 -0
- data/spec/docs/WebhookLastTrigger.md +11 -0
- data/spec/docs/WebhookPolicy.md +17 -0
- data/spec/docs/WebhookTargetObject.md +11 -0
- data/spec/git_push.sh +55 -0
- data/spec/harbor_swagger_client.gemspec +45 -0
- data/spec/lib/harbor_swagger_client.rb +182 -0
- data/spec/lib/harbor_swagger_client/api/chart_repository_api.rb +762 -0
- data/spec/lib/harbor_swagger_client/api/label_api.rb +230 -0
- data/spec/lib/harbor_swagger_client/api/products_api.rb +8783 -0
- data/spec/lib/harbor_swagger_client/api/quota_api.rb +136 -0
- data/spec/lib/harbor_swagger_client/api/retention_api.rb +482 -0
- data/spec/lib/harbor_swagger_client/api/robot_account_api.rb +321 -0
- data/spec/lib/harbor_swagger_client/api/scan_api.rb +307 -0
- data/spec/lib/harbor_swagger_client/api/scanners_api.rb +624 -0
- data/spec/lib/harbor_swagger_client/api/system_api.rb +173 -0
- data/spec/lib/harbor_swagger_client/api_client.rb +389 -0
- data/spec/lib/harbor_swagger_client/api_error.rb +38 -0
- data/spec/lib/harbor_swagger_client/configuration.rb +209 -0
- data/spec/lib/harbor_swagger_client/models/access_log.rb +234 -0
- data/spec/lib/harbor_swagger_client/models/action.rb +183 -0
- data/spec/lib/harbor_swagger_client/models/action_1.rb +183 -0
- data/spec/lib/harbor_swagger_client/models/admin_job_schedule.rb +183 -0
- data/spec/lib/harbor_swagger_client/models/admin_job_schedule_obj.rb +194 -0
- data/spec/lib/harbor_swagger_client/models/bad_request_formated_error.rb +190 -0
- data/spec/lib/harbor_swagger_client/models/bool_config_item.rb +194 -0
- data/spec/lib/harbor_swagger_client/models/chart_api_error.rb +190 -0
- data/spec/lib/harbor_swagger_client/models/chart_info_entry.rb +270 -0
- data/spec/lib/harbor_swagger_client/models/chart_info_list.rb +175 -0
- data/spec/lib/harbor_swagger_client/models/chart_metadata.rb +319 -0
- data/spec/lib/harbor_swagger_client/models/chart_version.rb +361 -0
- data/spec/lib/harbor_swagger_client/models/chart_version_details.rb +235 -0
- data/spec/lib/harbor_swagger_client/models/chart_versions.rb +175 -0
- data/spec/lib/harbor_swagger_client/models/component_health_status.rb +205 -0
- data/spec/lib/harbor_swagger_client/models/component_overview_entry.rb +194 -0
- data/spec/lib/harbor_swagger_client/models/configurations.rb +523 -0
- data/spec/lib/harbor_swagger_client/models/configurations_response.rb +513 -0
- data/spec/lib/harbor_swagger_client/models/configurations_scan_all_policy.rb +193 -0
- data/spec/lib/harbor_swagger_client/models/configurations_scan_all_policy_parameter.rb +185 -0
- data/spec/lib/harbor_swagger_client/models/conflict_formated_error.rb +190 -0
- data/spec/lib/harbor_swagger_client/models/cve_whitelist.rb +216 -0
- data/spec/lib/harbor_swagger_client/models/cve_whitelist_item.rb +185 -0
- data/spec/lib/harbor_swagger_client/models/dependency.rb +215 -0
- data/spec/lib/harbor_swagger_client/models/detailed_tag.rb +286 -0
- data/spec/lib/harbor_swagger_client/models/digital_signature.rb +195 -0
- data/spec/lib/harbor_swagger_client/models/email_server_setting.rb +234 -0
- data/spec/lib/harbor_swagger_client/models/endpoint.rb +194 -0
- data/spec/lib/harbor_swagger_client/models/filter_style.rb +207 -0
- data/spec/lib/harbor_swagger_client/models/forbidden_chart_api_error.rb +190 -0
- data/spec/lib/harbor_swagger_client/models/gc_result.rb +253 -0
- data/spec/lib/harbor_swagger_client/models/general_info.rb +303 -0
- data/spec/lib/harbor_swagger_client/models/general_info_clair_vulnerability_status.rb +197 -0
- data/spec/lib/harbor_swagger_client/models/has_admin_role.rb +184 -0
- data/spec/lib/harbor_swagger_client/models/immutable_tag_rule.rb +210 -0
- data/spec/lib/harbor_swagger_client/models/inline_response_200.rb +183 -0
- data/spec/lib/harbor_swagger_client/models/input_secret.rb +184 -0
- data/spec/lib/harbor_swagger_client/models/insufficient_storage_chart_api_error.rb +190 -0
- data/spec/lib/harbor_swagger_client/models/integer_config_item.rb +194 -0
- data/spec/lib/harbor_swagger_client/models/internal_chart_api_error.rb +190 -0
- data/spec/lib/harbor_swagger_client/models/is_default.rb +184 -0
- data/spec/lib/harbor_swagger_client/models/job_status.rb +256 -0
- data/spec/lib/harbor_swagger_client/models/label.rb +264 -0
- data/spec/lib/harbor_swagger_client/models/labels.rb +175 -0
- data/spec/lib/harbor_swagger_client/models/ldap_conf.rb +254 -0
- data/spec/lib/harbor_swagger_client/models/ldap_failed_import_users.rb +194 -0
- data/spec/lib/harbor_swagger_client/models/ldap_import_users.rb +186 -0
- data/spec/lib/harbor_swagger_client/models/ldap_users.rb +204 -0
- data/spec/lib/harbor_swagger_client/models/manifest.rb +194 -0
- data/spec/lib/harbor_swagger_client/models/namespace.rb +195 -0
- data/spec/lib/harbor_swagger_client/models/native_report_summary.rb +244 -0
- data/spec/lib/harbor_swagger_client/models/not_found_chart_api_error.rb +190 -0
- data/spec/lib/harbor_swagger_client/models/overall_health_status.rb +196 -0
- data/spec/lib/harbor_swagger_client/models/password.rb +194 -0
- data/spec/lib/harbor_swagger_client/models/permission.rb +195 -0
- data/spec/lib/harbor_swagger_client/models/ping_registry.rb +244 -0
- data/spec/lib/harbor_swagger_client/models/project.rb +316 -0
- data/spec/lib/harbor_swagger_client/models/project_member.rb +202 -0
- data/spec/lib/harbor_swagger_client/models/project_member_entity.rb +244 -0
- data/spec/lib/harbor_swagger_client/models/project_metadata.rb +234 -0
- data/spec/lib/harbor_swagger_client/models/project_req.rb +224 -0
- data/spec/lib/harbor_swagger_client/models/project_scanner.rb +184 -0
- data/spec/lib/harbor_swagger_client/models/project_summary.rb +243 -0
- data/spec/lib/harbor_swagger_client/models/project_summary_quota.rb +194 -0
- data/spec/lib/harbor_swagger_client/models/put_registry.rb +244 -0
- data/spec/lib/harbor_swagger_client/models/quota.rb +235 -0
- data/spec/lib/harbor_swagger_client/models/quota_ref_object.rb +174 -0
- data/spec/lib/harbor_swagger_client/models/quota_switcher.rb +184 -0
- data/spec/lib/harbor_swagger_client/models/quota_update_req.rb +184 -0
- data/spec/lib/harbor_swagger_client/models/registry.rb +273 -0
- data/spec/lib/harbor_swagger_client/models/registry_credential.rb +204 -0
- data/spec/lib/harbor_swagger_client/models/registry_info.rb +219 -0
- data/spec/lib/harbor_swagger_client/models/replication_execution.rb +295 -0
- data/spec/lib/harbor_swagger_client/models/replication_filter.rb +194 -0
- data/spec/lib/harbor_swagger_client/models/replication_policy.rb +305 -0
- data/spec/lib/harbor_swagger_client/models/replication_task.rb +265 -0
- data/spec/lib/harbor_swagger_client/models/replication_trigger.rb +193 -0
- data/spec/lib/harbor_swagger_client/models/repo_signature.rb +194 -0
- data/spec/lib/harbor_swagger_client/models/report.rb +215 -0
- data/spec/lib/harbor_swagger_client/models/repository.rb +276 -0
- data/spec/lib/harbor_swagger_client/models/repository_description.rb +184 -0
- data/spec/lib/harbor_swagger_client/models/resource.rb +186 -0
- data/spec/lib/harbor_swagger_client/models/resource_list.rb +174 -0
- data/spec/lib/harbor_swagger_client/models/retag_req.rb +204 -0
- data/spec/lib/harbor_swagger_client/models/retention_execution.rb +237 -0
- data/spec/lib/harbor_swagger_client/models/retention_execution_task.rb +273 -0
- data/spec/lib/harbor_swagger_client/models/retention_metadata.rb +211 -0
- data/spec/lib/harbor_swagger_client/models/retention_policy.rb +222 -0
- data/spec/lib/harbor_swagger_client/models/retention_policy_scope.rb +192 -0
- data/spec/lib/harbor_swagger_client/models/retention_rule.rb +252 -0
- data/spec/lib/harbor_swagger_client/models/retention_rule_metadata.rb +217 -0
- data/spec/lib/harbor_swagger_client/models/retention_rule_param_metadata.rb +202 -0
- data/spec/lib/harbor_swagger_client/models/retention_rule_trigger.rb +201 -0
- data/spec/lib/harbor_swagger_client/models/retention_selector.rb +201 -0
- data/spec/lib/harbor_swagger_client/models/retention_selector_metadata.rb +204 -0
- data/spec/lib/harbor_swagger_client/models/robot_account.rb +255 -0
- data/spec/lib/harbor_swagger_client/models/robot_account_access.rb +194 -0
- data/spec/lib/harbor_swagger_client/models/robot_account_create.rb +206 -0
- data/spec/lib/harbor_swagger_client/models/robot_account_post_rep.rb +194 -0
- data/spec/lib/harbor_swagger_client/models/robot_account_update.rb +184 -0
- data/spec/lib/harbor_swagger_client/models/role.rb +213 -0
- data/spec/lib/harbor_swagger_client/models/role_param.rb +196 -0
- data/spec/lib/harbor_swagger_client/models/role_request.rb +184 -0
- data/spec/lib/harbor_swagger_client/models/scan_overview.rb +175 -0
- data/spec/lib/harbor_swagger_client/models/scanner.rb +204 -0
- data/spec/lib/harbor_swagger_client/models/scanner_adapter_metadata.rb +206 -0
- data/spec/lib/harbor_swagger_client/models/scanner_capability.rb +196 -0
- data/spec/lib/harbor_swagger_client/models/scanner_registration.rb +327 -0
- data/spec/lib/harbor_swagger_client/models/scanner_registration_req.rb +262 -0
- data/spec/lib/harbor_swagger_client/models/scanner_registration_settings.rb +216 -0
- data/spec/lib/harbor_swagger_client/models/search.rb +210 -0
- data/spec/lib/harbor_swagger_client/models/search_repository.rb +234 -0
- data/spec/lib/harbor_swagger_client/models/search_result.rb +204 -0
- data/spec/lib/harbor_swagger_client/models/security_report.rb +184 -0
- data/spec/lib/harbor_swagger_client/models/statistic_map.rb +234 -0
- data/spec/lib/harbor_swagger_client/models/stats.rb +217 -0
- data/spec/lib/harbor_swagger_client/models/storage.rb +194 -0
- data/spec/lib/harbor_swagger_client/models/string_config_item.rb +194 -0
- data/spec/lib/harbor_swagger_client/models/system_info.rb +186 -0
- data/spec/lib/harbor_swagger_client/models/tags.rb +184 -0
- data/spec/lib/harbor_swagger_client/models/trigger_settings.rb +184 -0
- data/spec/lib/harbor_swagger_client/models/unauthorized_chart_api_error.rb +190 -0
- data/spec/lib/harbor_swagger_client/models/user.rb +301 -0
- data/spec/lib/harbor_swagger_client/models/user_entity.rb +194 -0
- data/spec/lib/harbor_swagger_client/models/user_group.rb +214 -0
- data/spec/lib/harbor_swagger_client/models/user_profile.rb +204 -0
- data/spec/lib/harbor_swagger_client/models/user_search.rb +193 -0
- data/spec/lib/harbor_swagger_client/models/vuln_namespace_timestamp.rb +194 -0
- data/spec/lib/harbor_swagger_client/models/vulnerability_item.rb +246 -0
- data/spec/lib/harbor_swagger_client/models/vulnerability_summary.rb +207 -0
- data/spec/lib/harbor_swagger_client/models/webhook_job.rb +255 -0
- data/spec/lib/harbor_swagger_client/models/webhook_last_trigger.rb +215 -0
- data/spec/lib/harbor_swagger_client/models/webhook_policy.rb +277 -0
- data/spec/lib/harbor_swagger_client/models/webhook_target_object.rb +215 -0
- data/spec/lib/harbor_swagger_client/version.rb +15 -0
- data/spec/models/access_log_spec.rb +1 -1
- data/spec/models/action_1_spec.rb +1 -1
- data/spec/models/action_spec.rb +1 -1
- data/spec/models/admin_job_schedule_obj_spec.rb +1 -1
- data/spec/models/admin_job_schedule_spec.rb +1 -1
- data/spec/models/bad_request_formated_error_spec.rb +1 -1
- data/spec/models/bool_config_item_spec.rb +1 -1
- data/spec/models/chart_api_error_spec.rb +1 -1
- data/spec/models/chart_info_entry_spec.rb +1 -1
- data/spec/models/chart_info_list_spec.rb +1 -1
- data/spec/models/chart_metadata_spec.rb +1 -1
- data/spec/models/chart_version_details_spec.rb +1 -1
- data/spec/models/chart_version_spec.rb +1 -1
- data/spec/models/chart_versions_spec.rb +1 -1
- data/spec/models/component_health_status_spec.rb +1 -1
- data/spec/models/component_overview_entry_spec.rb +1 -1
- data/spec/models/configurations_response_spec.rb +31 -1
- data/spec/models/configurations_scan_all_policy_parameter_spec.rb +1 -1
- data/spec/models/configurations_scan_all_policy_spec.rb +1 -1
- data/spec/models/configurations_spec.rb +37 -1
- data/spec/models/conflict_formated_error_spec.rb +1 -1
- data/spec/models/cve_whitelist_item_spec.rb +1 -1
- data/spec/models/cve_whitelist_spec.rb +1 -1
- data/spec/models/dependency_spec.rb +1 -1
- data/spec/models/detailed_tag_spec.rb +1 -1
- data/spec/models/digital_signature_spec.rb +1 -1
- data/spec/models/email_server_setting_spec.rb +1 -1
- data/spec/models/endpoint_spec.rb +1 -1
- data/spec/models/filter_style_spec.rb +1 -1
- data/spec/models/forbidden_chart_api_error_spec.rb +1 -1
- data/spec/models/gc_result_spec.rb +1 -1
- data/spec/models/general_info_clair_vulnerability_status_spec.rb +1 -1
- data/spec/models/general_info_spec.rb +1 -1
- data/spec/models/has_admin_role_spec.rb +1 -1
- data/spec/models/immutable_tag_rule_spec.rb +59 -0
- data/spec/models/inline_response_200_spec.rb +2 -2
- data/spec/models/input_secret_spec.rb +41 -0
- data/spec/models/insufficient_storage_chart_api_error_spec.rb +1 -1
- data/spec/models/integer_config_item_spec.rb +1 -1
- data/spec/models/internal_chart_api_error_spec.rb +1 -1
- data/spec/models/is_default_spec.rb +41 -0
- data/spec/models/job_status_spec.rb +1 -1
- data/spec/models/label_spec.rb +1 -1
- data/spec/models/labels_spec.rb +1 -1
- data/spec/models/ldap_conf_spec.rb +1 -1
- data/spec/models/ldap_failed_import_users_spec.rb +1 -1
- data/spec/models/ldap_import_users_spec.rb +1 -1
- data/spec/models/ldap_users_spec.rb +1 -1
- data/spec/models/manifest_spec.rb +1 -1
- data/spec/models/namespace_spec.rb +1 -1
- data/spec/models/native_report_summary_spec.rb +77 -0
- data/spec/models/not_found_chart_api_error_spec.rb +1 -1
- data/spec/models/overall_health_status_spec.rb +1 -1
- data/spec/models/password_spec.rb +1 -1
- data/spec/models/permission_spec.rb +1 -1
- data/spec/models/ping_registry_spec.rb +1 -1
- data/spec/models/project_member_entity_spec.rb +1 -1
- data/spec/models/project_member_spec.rb +1 -1
- data/spec/models/project_metadata_spec.rb +1 -1
- data/spec/models/project_req_spec.rb +1 -1
- data/spec/models/project_scanner_spec.rb +41 -0
- data/spec/models/project_spec.rb +7 -1
- data/spec/models/project_summary_quota_spec.rb +1 -1
- data/spec/models/project_summary_spec.rb +1 -1
- data/spec/models/put_registry_spec.rb +1 -1
- data/spec/models/quota_ref_object_spec.rb +1 -1
- data/spec/models/quota_spec.rb +1 -1
- data/spec/models/quota_switcher_spec.rb +1 -1
- data/spec/models/quota_update_req_spec.rb +1 -1
- data/spec/models/registry_credential_spec.rb +1 -1
- data/spec/models/registry_info_spec.rb +1 -1
- data/spec/models/registry_spec.rb +1 -1
- data/spec/models/replication_execution_spec.rb +1 -1
- data/spec/models/replication_filter_spec.rb +1 -1
- data/spec/models/replication_policy_spec.rb +1 -1
- data/spec/models/replication_task_spec.rb +1 -1
- data/spec/models/replication_trigger_spec.rb +1 -1
- data/spec/models/repo_signature_spec.rb +1 -1
- data/spec/models/report_spec.rb +59 -0
- data/spec/models/repository_description_spec.rb +1 -1
- data/spec/models/repository_spec.rb +1 -1
- data/spec/models/resource_list_spec.rb +1 -1
- data/spec/models/resource_spec.rb +1 -1
- data/spec/models/retag_req_spec.rb +1 -1
- data/spec/models/retention_execution_spec.rb +1 -1
- data/spec/models/retention_execution_task_spec.rb +1 -1
- data/spec/models/retention_metadata_spec.rb +1 -1
- data/spec/models/retention_policy_scope_spec.rb +1 -1
- data/spec/models/retention_policy_spec.rb +1 -1
- data/spec/models/retention_rule_metadata_spec.rb +1 -1
- data/spec/models/retention_rule_param_metadata_spec.rb +1 -1
- data/spec/models/retention_rule_spec.rb +1 -1
- data/spec/models/retention_rule_trigger_spec.rb +1 -1
- data/spec/models/retention_selector_metadata_spec.rb +1 -1
- data/spec/models/retention_selector_spec.rb +1 -1
- data/spec/models/robot_account_access_spec.rb +1 -1
- data/spec/models/robot_account_create_spec.rb +1 -1
- data/spec/models/robot_account_post_rep_spec.rb +1 -1
- data/spec/models/robot_account_spec.rb +1 -1
- data/spec/models/robot_account_update_spec.rb +1 -1
- data/spec/models/role_param_spec.rb +1 -1
- data/spec/models/role_request_spec.rb +1 -1
- data/spec/models/role_spec.rb +1 -1
- data/spec/models/scan_overview_spec.rb +35 -0
- data/spec/models/scanner_adapter_metadata_spec.rb +53 -0
- data/spec/models/scanner_capability_spec.rb +47 -0
- data/spec/models/scanner_registration_req_spec.rb +83 -0
- data/spec/models/scanner_registration_settings_spec.rb +59 -0
- data/spec/models/scanner_registration_spec.rb +119 -0
- data/spec/models/scanner_spec.rb +53 -0
- data/spec/models/search_repository_spec.rb +1 -1
- data/spec/models/search_result_spec.rb +1 -1
- data/spec/models/search_spec.rb +1 -1
- data/spec/models/security_report_spec.rb +1 -1
- data/spec/models/statistic_map_spec.rb +1 -1
- data/spec/models/stats_spec.rb +59 -0
- data/spec/models/storage_spec.rb +1 -1
- data/spec/models/string_config_item_spec.rb +1 -1
- data/spec/models/system_info_spec.rb +1 -1
- data/spec/models/tags_spec.rb +1 -1
- data/spec/models/trigger_settings_spec.rb +1 -1
- data/spec/models/unauthorized_chart_api_error_spec.rb +1 -1
- data/spec/models/user_entity_spec.rb +1 -1
- data/spec/models/user_group_spec.rb +1 -1
- data/spec/models/user_profile_spec.rb +1 -1
- data/spec/models/user_search_spec.rb +1 -1
- data/spec/models/user_spec.rb +1 -1
- data/spec/models/vuln_namespace_timestamp_spec.rb +1 -1
- data/spec/models/vulnerability_item_spec.rb +11 -5
- data/spec/models/vulnerability_summary_spec.rb +53 -0
- data/spec/models/webhook_job_spec.rb +1 -1
- data/spec/models/webhook_last_trigger_spec.rb +1 -1
- data/spec/models/webhook_policy_spec.rb +1 -1
- data/spec/models/webhook_target_object_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +662 -2
data/docs/Stats.md
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
# SwaggerClient::Stats
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**total** | **Integer** | The total number of scan processes triggered by the scan all action | [optional]
|
7
|
+
**completed** | **Integer** | The number of the finished scan processes triggered by the scan all action | [optional]
|
8
|
+
**requester** | **String** | The requester identity which usually uses the ID of the scan all job | [optional]
|
9
|
+
**metrics** | **Hash<String, Integer>** | The metrics data for the each status | [optional]
|
10
|
+
|
11
|
+
|
data/docs/VulnerabilityItem.md
CHANGED
@@ -3,11 +3,12 @@
|
|
3
3
|
## Properties
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
|
-
**id** | **String** | ID of the
|
7
|
-
**
|
8
|
-
**
|
9
|
-
**
|
10
|
-
**
|
11
|
-
**
|
6
|
+
**id** | **String** | ID of the CVE. | [optional]
|
7
|
+
**package** | **String** | An operating system or software dependency package containing the vulnerability. | [optional]
|
8
|
+
**version** | **String** | The version of the package containing the vulnerability. | [optional]
|
9
|
+
**fix_version** | **String** | The version of the package containing the fix if available. | [optional]
|
10
|
+
**severity** | **String** | A standard scale for measuring the severity of a vulnerability. | [optional]
|
11
|
+
**description** | **String** | Description of the CVE | [optional]
|
12
|
+
**links** | **Array<String>** | The list of link to the upstream database with the full description of the vulnerability. | [optional]
|
12
13
|
|
13
14
|
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# SwaggerClient::VulnerabilitySummary
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**total** | **Integer** | The total number of the found vulnerabilities | [optional]
|
7
|
+
**fixable** | **Integer** | The number of the fixable vulnerabilities | [optional]
|
8
|
+
**summary** | **Hash<String, Integer>** | Numbers of the vulnerabilities with different severity | [optional]
|
9
|
+
|
10
|
+
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#These APIs provide services for manipulating Harbor project.
|
5
5
|
|
6
|
-
OpenAPI spec version: 1.
|
6
|
+
OpenAPI spec version: 1.10.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.4.7
|
@@ -39,8 +39,6 @@ require 'harbor_swagger_client/models/configurations_scan_all_policy'
|
|
39
39
|
require 'harbor_swagger_client/models/configurations_scan_all_policy_parameter'
|
40
40
|
require 'harbor_swagger_client/models/dependency'
|
41
41
|
require 'harbor_swagger_client/models/detailed_tag'
|
42
|
-
require 'harbor_swagger_client/models/detailed_tag_scan_overview'
|
43
|
-
require 'harbor_swagger_client/models/detailed_tag_scan_overview_components'
|
44
42
|
require 'harbor_swagger_client/models/digital_signature'
|
45
43
|
require 'harbor_swagger_client/models/email_server_setting'
|
46
44
|
require 'harbor_swagger_client/models/endpoint'
|
@@ -49,9 +47,11 @@ require 'harbor_swagger_client/models/gc_result'
|
|
49
47
|
require 'harbor_swagger_client/models/general_info'
|
50
48
|
require 'harbor_swagger_client/models/general_info_clair_vulnerability_status'
|
51
49
|
require 'harbor_swagger_client/models/has_admin_role'
|
50
|
+
require 'harbor_swagger_client/models/immutable_tag_rule'
|
52
51
|
require 'harbor_swagger_client/models/inline_response_200'
|
53
|
-
require 'harbor_swagger_client/models/
|
52
|
+
require 'harbor_swagger_client/models/input_secret'
|
54
53
|
require 'harbor_swagger_client/models/integer_config_item'
|
54
|
+
require 'harbor_swagger_client/models/is_default'
|
55
55
|
require 'harbor_swagger_client/models/job_status'
|
56
56
|
require 'harbor_swagger_client/models/label'
|
57
57
|
require 'harbor_swagger_client/models/labels'
|
@@ -61,6 +61,7 @@ require 'harbor_swagger_client/models/ldap_import_users'
|
|
61
61
|
require 'harbor_swagger_client/models/ldap_users'
|
62
62
|
require 'harbor_swagger_client/models/manifest'
|
63
63
|
require 'harbor_swagger_client/models/namespace'
|
64
|
+
require 'harbor_swagger_client/models/native_report_summary'
|
64
65
|
require 'harbor_swagger_client/models/overall_health_status'
|
65
66
|
require 'harbor_swagger_client/models/password'
|
66
67
|
require 'harbor_swagger_client/models/permission'
|
@@ -70,6 +71,7 @@ require 'harbor_swagger_client/models/project_member'
|
|
70
71
|
require 'harbor_swagger_client/models/project_member_entity'
|
71
72
|
require 'harbor_swagger_client/models/project_metadata'
|
72
73
|
require 'harbor_swagger_client/models/project_req'
|
74
|
+
require 'harbor_swagger_client/models/project_scanner'
|
73
75
|
require 'harbor_swagger_client/models/project_summary'
|
74
76
|
require 'harbor_swagger_client/models/project_summary_quota'
|
75
77
|
require 'harbor_swagger_client/models/put_registry'
|
@@ -86,6 +88,7 @@ require 'harbor_swagger_client/models/replication_policy'
|
|
86
88
|
require 'harbor_swagger_client/models/replication_task'
|
87
89
|
require 'harbor_swagger_client/models/replication_trigger'
|
88
90
|
require 'harbor_swagger_client/models/repo_signature'
|
91
|
+
require 'harbor_swagger_client/models/report'
|
89
92
|
require 'harbor_swagger_client/models/repository'
|
90
93
|
require 'harbor_swagger_client/models/repository_description'
|
91
94
|
require 'harbor_swagger_client/models/resource'
|
@@ -110,11 +113,19 @@ require 'harbor_swagger_client/models/robot_account_update'
|
|
110
113
|
require 'harbor_swagger_client/models/role'
|
111
114
|
require 'harbor_swagger_client/models/role_param'
|
112
115
|
require 'harbor_swagger_client/models/role_request'
|
116
|
+
require 'harbor_swagger_client/models/scan_overview'
|
117
|
+
require 'harbor_swagger_client/models/scanner'
|
118
|
+
require 'harbor_swagger_client/models/scanner_adapter_metadata'
|
119
|
+
require 'harbor_swagger_client/models/scanner_capability'
|
120
|
+
require 'harbor_swagger_client/models/scanner_registration'
|
121
|
+
require 'harbor_swagger_client/models/scanner_registration_req'
|
122
|
+
require 'harbor_swagger_client/models/scanner_registration_settings'
|
113
123
|
require 'harbor_swagger_client/models/search'
|
114
124
|
require 'harbor_swagger_client/models/search_repository'
|
115
125
|
require 'harbor_swagger_client/models/search_result'
|
116
126
|
require 'harbor_swagger_client/models/security_report'
|
117
127
|
require 'harbor_swagger_client/models/statistic_map'
|
128
|
+
require 'harbor_swagger_client/models/stats'
|
118
129
|
require 'harbor_swagger_client/models/storage'
|
119
130
|
require 'harbor_swagger_client/models/string_config_item'
|
120
131
|
require 'harbor_swagger_client/models/system_info'
|
@@ -127,6 +138,7 @@ require 'harbor_swagger_client/models/user_profile'
|
|
127
138
|
require 'harbor_swagger_client/models/user_search'
|
128
139
|
require 'harbor_swagger_client/models/vuln_namespace_timestamp'
|
129
140
|
require 'harbor_swagger_client/models/vulnerability_item'
|
141
|
+
require 'harbor_swagger_client/models/vulnerability_summary'
|
130
142
|
require 'harbor_swagger_client/models/webhook_job'
|
131
143
|
require 'harbor_swagger_client/models/webhook_last_trigger'
|
132
144
|
require 'harbor_swagger_client/models/webhook_policy'
|
@@ -147,6 +159,8 @@ require 'harbor_swagger_client/api/products_api'
|
|
147
159
|
require 'harbor_swagger_client/api/quota_api'
|
148
160
|
require 'harbor_swagger_client/api/retention_api'
|
149
161
|
require 'harbor_swagger_client/api/robot_account_api'
|
162
|
+
require 'harbor_swagger_client/api/scan_api'
|
163
|
+
require 'harbor_swagger_client/api/scanners_api'
|
150
164
|
require 'harbor_swagger_client/api/system_api'
|
151
165
|
|
152
166
|
module SwaggerClient
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#These APIs provide services for manipulating Harbor project.
|
5
5
|
|
6
|
-
OpenAPI spec version: 1.
|
6
|
+
OpenAPI spec version: 1.10.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.4.7
|
@@ -79,7 +79,7 @@ module SwaggerClient
|
|
79
79
|
# Check the health of chart repository service.
|
80
80
|
# Check the health of chart repository service.
|
81
81
|
# @param [Hash] opts the optional parameters
|
82
|
-
# @return [
|
82
|
+
# @return [InlineResponse200]
|
83
83
|
def chartrepo_health_get(opts = {})
|
84
84
|
data, _status_code, _headers = chartrepo_health_get_with_http_info(opts)
|
85
85
|
data
|
@@ -88,7 +88,7 @@ module SwaggerClient
|
|
88
88
|
# Check the health of chart repository service.
|
89
89
|
# Check the health of chart repository service.
|
90
90
|
# @param [Hash] opts the optional parameters
|
91
|
-
# @return [Array<(
|
91
|
+
# @return [Array<(InlineResponse200, Fixnum, Hash)>] InlineResponse200 data, response status code and response headers
|
92
92
|
def chartrepo_health_get_with_http_info(opts = {})
|
93
93
|
if @api_client.config.debugging
|
94
94
|
@api_client.config.logger.debug 'Calling API: ChartRepositoryApi.chartrepo_health_get ...'
|
@@ -118,7 +118,7 @@ module SwaggerClient
|
|
118
118
|
:form_params => form_params,
|
119
119
|
:body => post_body,
|
120
120
|
:auth_names => auth_names,
|
121
|
-
:return_type => '
|
121
|
+
:return_type => 'InlineResponse200')
|
122
122
|
if @api_client.config.debugging
|
123
123
|
@api_client.config.logger.debug "API called: ChartRepositoryApi#chartrepo_health_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
124
124
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#These APIs provide services for manipulating Harbor project.
|
5
5
|
|
6
|
-
OpenAPI spec version: 1.
|
6
|
+
OpenAPI spec version: 1.10.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.4.7
|
@@ -79,7 +79,7 @@ module SwaggerClient
|
|
79
79
|
# Check the health of chart repository service.
|
80
80
|
# Check the health of chart repository service.
|
81
81
|
# @param [Hash] opts the optional parameters
|
82
|
-
# @return [
|
82
|
+
# @return [InlineResponse200]
|
83
83
|
def chartrepo_health_get(opts = {})
|
84
84
|
data, _status_code, _headers = chartrepo_health_get_with_http_info(opts)
|
85
85
|
data
|
@@ -88,7 +88,7 @@ module SwaggerClient
|
|
88
88
|
# Check the health of chart repository service.
|
89
89
|
# Check the health of chart repository service.
|
90
90
|
# @param [Hash] opts the optional parameters
|
91
|
-
# @return [Array<(
|
91
|
+
# @return [Array<(InlineResponse200, Fixnum, Hash)>] InlineResponse200 data, response status code and response headers
|
92
92
|
def chartrepo_health_get_with_http_info(opts = {})
|
93
93
|
if @api_client.config.debugging
|
94
94
|
@api_client.config.logger.debug 'Calling API: ProductsApi.chartrepo_health_get ...'
|
@@ -118,7 +118,7 @@ module SwaggerClient
|
|
118
118
|
:form_params => form_params,
|
119
119
|
:body => post_body,
|
120
120
|
:auth_names => auth_names,
|
121
|
-
:return_type => '
|
121
|
+
:return_type => 'InlineResponse200')
|
122
122
|
if @api_client.config.debugging
|
123
123
|
@api_client.config.logger.debug "API called: ProductsApi#chartrepo_health_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
124
124
|
end
|
@@ -1999,6 +1999,231 @@ module SwaggerClient
|
|
1999
1999
|
end
|
2000
2000
|
return data, status_code, headers
|
2001
2001
|
end
|
2002
|
+
# List all immutable tag rules of current project
|
2003
|
+
# This endpoint returns the immutable tag rules of a project
|
2004
|
+
# @param project_id Relevant project ID.
|
2005
|
+
# @param [Hash] opts the optional parameters
|
2006
|
+
# @return [Array<ImmutableTagRule>]
|
2007
|
+
def projects_project_id_immutabletagrules_get(project_id, opts = {})
|
2008
|
+
data, _status_code, _headers = projects_project_id_immutabletagrules_get_with_http_info(project_id, opts)
|
2009
|
+
data
|
2010
|
+
end
|
2011
|
+
|
2012
|
+
# List all immutable tag rules of current project
|
2013
|
+
# This endpoint returns the immutable tag rules of a project
|
2014
|
+
# @param project_id Relevant project ID.
|
2015
|
+
# @param [Hash] opts the optional parameters
|
2016
|
+
# @return [Array<(Array<ImmutableTagRule>, Fixnum, Hash)>] Array<ImmutableTagRule> data, response status code and response headers
|
2017
|
+
def projects_project_id_immutabletagrules_get_with_http_info(project_id, opts = {})
|
2018
|
+
if @api_client.config.debugging
|
2019
|
+
@api_client.config.logger.debug 'Calling API: ProductsApi.projects_project_id_immutabletagrules_get ...'
|
2020
|
+
end
|
2021
|
+
# verify the required parameter 'project_id' is set
|
2022
|
+
if @api_client.config.client_side_validation && project_id.nil?
|
2023
|
+
fail ArgumentError, "Missing the required parameter 'project_id' when calling ProductsApi.projects_project_id_immutabletagrules_get"
|
2024
|
+
end
|
2025
|
+
# resource path
|
2026
|
+
local_var_path = '/projects/{project_id}/immutabletagrules'.sub('{' + 'project_id' + '}', project_id.to_s)
|
2027
|
+
|
2028
|
+
# query parameters
|
2029
|
+
query_params = {}
|
2030
|
+
|
2031
|
+
# header parameters
|
2032
|
+
header_params = {}
|
2033
|
+
# HTTP header 'Accept' (if needed)
|
2034
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/plain'])
|
2035
|
+
# HTTP header 'Content-Type'
|
2036
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
2037
|
+
|
2038
|
+
# form parameters
|
2039
|
+
form_params = {}
|
2040
|
+
|
2041
|
+
# http body (model)
|
2042
|
+
post_body = nil
|
2043
|
+
auth_names = ['basicAuth']
|
2044
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
2045
|
+
:header_params => header_params,
|
2046
|
+
:query_params => query_params,
|
2047
|
+
:form_params => form_params,
|
2048
|
+
:body => post_body,
|
2049
|
+
:auth_names => auth_names,
|
2050
|
+
:return_type => 'Array<ImmutableTagRule>')
|
2051
|
+
if @api_client.config.debugging
|
2052
|
+
@api_client.config.logger.debug "API called: ProductsApi#projects_project_id_immutabletagrules_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2053
|
+
end
|
2054
|
+
return data, status_code, headers
|
2055
|
+
end
|
2056
|
+
# Delete the immutable tag rule.
|
2057
|
+
# @param project_id Relevant project ID.
|
2058
|
+
# @param id Immutable tag rule ID.
|
2059
|
+
# @param [Hash] opts the optional parameters
|
2060
|
+
# @return [nil]
|
2061
|
+
def projects_project_id_immutabletagrules_id_delete(project_id, id, opts = {})
|
2062
|
+
projects_project_id_immutabletagrules_id_delete_with_http_info(project_id, id, opts)
|
2063
|
+
nil
|
2064
|
+
end
|
2065
|
+
|
2066
|
+
# Delete the immutable tag rule.
|
2067
|
+
# @param project_id Relevant project ID.
|
2068
|
+
# @param id Immutable tag rule ID.
|
2069
|
+
# @param [Hash] opts the optional parameters
|
2070
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
2071
|
+
def projects_project_id_immutabletagrules_id_delete_with_http_info(project_id, id, opts = {})
|
2072
|
+
if @api_client.config.debugging
|
2073
|
+
@api_client.config.logger.debug 'Calling API: ProductsApi.projects_project_id_immutabletagrules_id_delete ...'
|
2074
|
+
end
|
2075
|
+
# verify the required parameter 'project_id' is set
|
2076
|
+
if @api_client.config.client_side_validation && project_id.nil?
|
2077
|
+
fail ArgumentError, "Missing the required parameter 'project_id' when calling ProductsApi.projects_project_id_immutabletagrules_id_delete"
|
2078
|
+
end
|
2079
|
+
# verify the required parameter 'id' is set
|
2080
|
+
if @api_client.config.client_side_validation && id.nil?
|
2081
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling ProductsApi.projects_project_id_immutabletagrules_id_delete"
|
2082
|
+
end
|
2083
|
+
# resource path
|
2084
|
+
local_var_path = '/projects/{project_id}/immutabletagrules/{id}'.sub('{' + 'project_id' + '}', project_id.to_s).sub('{' + 'id' + '}', id.to_s)
|
2085
|
+
|
2086
|
+
# query parameters
|
2087
|
+
query_params = {}
|
2088
|
+
|
2089
|
+
# header parameters
|
2090
|
+
header_params = {}
|
2091
|
+
# HTTP header 'Accept' (if needed)
|
2092
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/plain'])
|
2093
|
+
# HTTP header 'Content-Type'
|
2094
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
2095
|
+
|
2096
|
+
# form parameters
|
2097
|
+
form_params = {}
|
2098
|
+
|
2099
|
+
# http body (model)
|
2100
|
+
post_body = nil
|
2101
|
+
auth_names = ['basicAuth']
|
2102
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
2103
|
+
:header_params => header_params,
|
2104
|
+
:query_params => query_params,
|
2105
|
+
:form_params => form_params,
|
2106
|
+
:body => post_body,
|
2107
|
+
:auth_names => auth_names)
|
2108
|
+
if @api_client.config.debugging
|
2109
|
+
@api_client.config.logger.debug "API called: ProductsApi#projects_project_id_immutabletagrules_id_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2110
|
+
end
|
2111
|
+
return data, status_code, headers
|
2112
|
+
end
|
2113
|
+
# Update the immutable tag rule or enable or disable the rule
|
2114
|
+
# @param project_id Relevant project ID.
|
2115
|
+
# @param id Immutable tag rule ID.
|
2116
|
+
# @param [Hash] opts the optional parameters
|
2117
|
+
# @option opts [ImmutableTagRule] :immutabletagrule
|
2118
|
+
# @return [nil]
|
2119
|
+
def projects_project_id_immutabletagrules_id_put(project_id, id, opts = {})
|
2120
|
+
projects_project_id_immutabletagrules_id_put_with_http_info(project_id, id, opts)
|
2121
|
+
nil
|
2122
|
+
end
|
2123
|
+
|
2124
|
+
# Update the immutable tag rule or enable or disable the rule
|
2125
|
+
# @param project_id Relevant project ID.
|
2126
|
+
# @param id Immutable tag rule ID.
|
2127
|
+
# @param [Hash] opts the optional parameters
|
2128
|
+
# @option opts [ImmutableTagRule] :immutabletagrule
|
2129
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
2130
|
+
def projects_project_id_immutabletagrules_id_put_with_http_info(project_id, id, opts = {})
|
2131
|
+
if @api_client.config.debugging
|
2132
|
+
@api_client.config.logger.debug 'Calling API: ProductsApi.projects_project_id_immutabletagrules_id_put ...'
|
2133
|
+
end
|
2134
|
+
# verify the required parameter 'project_id' is set
|
2135
|
+
if @api_client.config.client_side_validation && project_id.nil?
|
2136
|
+
fail ArgumentError, "Missing the required parameter 'project_id' when calling ProductsApi.projects_project_id_immutabletagrules_id_put"
|
2137
|
+
end
|
2138
|
+
# verify the required parameter 'id' is set
|
2139
|
+
if @api_client.config.client_side_validation && id.nil?
|
2140
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling ProductsApi.projects_project_id_immutabletagrules_id_put"
|
2141
|
+
end
|
2142
|
+
# resource path
|
2143
|
+
local_var_path = '/projects/{project_id}/immutabletagrules/{id}'.sub('{' + 'project_id' + '}', project_id.to_s).sub('{' + 'id' + '}', id.to_s)
|
2144
|
+
|
2145
|
+
# query parameters
|
2146
|
+
query_params = {}
|
2147
|
+
|
2148
|
+
# header parameters
|
2149
|
+
header_params = {}
|
2150
|
+
# HTTP header 'Accept' (if needed)
|
2151
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/plain'])
|
2152
|
+
# HTTP header 'Content-Type'
|
2153
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
2154
|
+
|
2155
|
+
# form parameters
|
2156
|
+
form_params = {}
|
2157
|
+
|
2158
|
+
# http body (model)
|
2159
|
+
post_body = @api_client.object_to_http_body(opts[:'immutabletagrule'])
|
2160
|
+
auth_names = ['basicAuth']
|
2161
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
2162
|
+
:header_params => header_params,
|
2163
|
+
:query_params => query_params,
|
2164
|
+
:form_params => form_params,
|
2165
|
+
:body => post_body,
|
2166
|
+
:auth_names => auth_names)
|
2167
|
+
if @api_client.config.debugging
|
2168
|
+
@api_client.config.logger.debug "API called: ProductsApi#projects_project_id_immutabletagrules_id_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2169
|
+
end
|
2170
|
+
return data, status_code, headers
|
2171
|
+
end
|
2172
|
+
# Add an immutable tag rule to current project
|
2173
|
+
# This endpoint add an immutable tag rule to the project
|
2174
|
+
# @param project_id Relevant project ID.
|
2175
|
+
# @param [Hash] opts the optional parameters
|
2176
|
+
# @option opts [ImmutableTagRule] :immutabletagrule
|
2177
|
+
# @return [nil]
|
2178
|
+
def projects_project_id_immutabletagrules_post(project_id, opts = {})
|
2179
|
+
projects_project_id_immutabletagrules_post_with_http_info(project_id, opts)
|
2180
|
+
nil
|
2181
|
+
end
|
2182
|
+
|
2183
|
+
# Add an immutable tag rule to current project
|
2184
|
+
# This endpoint add an immutable tag rule to the project
|
2185
|
+
# @param project_id Relevant project ID.
|
2186
|
+
# @param [Hash] opts the optional parameters
|
2187
|
+
# @option opts [ImmutableTagRule] :immutabletagrule
|
2188
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
2189
|
+
def projects_project_id_immutabletagrules_post_with_http_info(project_id, opts = {})
|
2190
|
+
if @api_client.config.debugging
|
2191
|
+
@api_client.config.logger.debug 'Calling API: ProductsApi.projects_project_id_immutabletagrules_post ...'
|
2192
|
+
end
|
2193
|
+
# verify the required parameter 'project_id' is set
|
2194
|
+
if @api_client.config.client_side_validation && project_id.nil?
|
2195
|
+
fail ArgumentError, "Missing the required parameter 'project_id' when calling ProductsApi.projects_project_id_immutabletagrules_post"
|
2196
|
+
end
|
2197
|
+
# resource path
|
2198
|
+
local_var_path = '/projects/{project_id}/immutabletagrules'.sub('{' + 'project_id' + '}', project_id.to_s)
|
2199
|
+
|
2200
|
+
# query parameters
|
2201
|
+
query_params = {}
|
2202
|
+
|
2203
|
+
# header parameters
|
2204
|
+
header_params = {}
|
2205
|
+
# HTTP header 'Accept' (if needed)
|
2206
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/plain'])
|
2207
|
+
# HTTP header 'Content-Type'
|
2208
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
2209
|
+
|
2210
|
+
# form parameters
|
2211
|
+
form_params = {}
|
2212
|
+
|
2213
|
+
# http body (model)
|
2214
|
+
post_body = @api_client.object_to_http_body(opts[:'immutabletagrule'])
|
2215
|
+
auth_names = ['basicAuth']
|
2216
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
2217
|
+
:header_params => header_params,
|
2218
|
+
:query_params => query_params,
|
2219
|
+
:form_params => form_params,
|
2220
|
+
:body => post_body,
|
2221
|
+
:auth_names => auth_names)
|
2222
|
+
if @api_client.config.debugging
|
2223
|
+
@api_client.config.logger.debug "API called: ProductsApi#projects_project_id_immutabletagrules_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2224
|
+
end
|
2225
|
+
return data, status_code, headers
|
2226
|
+
end
|
2002
2227
|
# Get access logs accompany with a relevant project.
|
2003
2228
|
# This endpoint let user search access logs filtered by operations and date time ranges.
|
2004
2229
|
# @param project_id Relevant project ID
|
@@ -3015,6 +3240,114 @@ module SwaggerClient
|
|
3015
3240
|
end
|
3016
3241
|
return data, status_code, headers
|
3017
3242
|
end
|
3243
|
+
# Get scanner registration candidates for configurating project level scanner
|
3244
|
+
# Retrieve the system configured scanner registrations as candidates of setting project level scanner.
|
3245
|
+
# @param project_id The project identifier.
|
3246
|
+
# @param [Hash] opts the optional parameters
|
3247
|
+
# @return [Array<ScannerRegistration>]
|
3248
|
+
def projects_project_id_scanner_candidates_get(project_id, opts = {})
|
3249
|
+
data, _status_code, _headers = projects_project_id_scanner_candidates_get_with_http_info(project_id, opts)
|
3250
|
+
data
|
3251
|
+
end
|
3252
|
+
|
3253
|
+
# Get scanner registration candidates for configurating project level scanner
|
3254
|
+
# Retrieve the system configured scanner registrations as candidates of setting project level scanner.
|
3255
|
+
# @param project_id The project identifier.
|
3256
|
+
# @param [Hash] opts the optional parameters
|
3257
|
+
# @return [Array<(Array<ScannerRegistration>, Fixnum, Hash)>] Array<ScannerRegistration> data, response status code and response headers
|
3258
|
+
def projects_project_id_scanner_candidates_get_with_http_info(project_id, opts = {})
|
3259
|
+
if @api_client.config.debugging
|
3260
|
+
@api_client.config.logger.debug 'Calling API: ProductsApi.projects_project_id_scanner_candidates_get ...'
|
3261
|
+
end
|
3262
|
+
# verify the required parameter 'project_id' is set
|
3263
|
+
if @api_client.config.client_side_validation && project_id.nil?
|
3264
|
+
fail ArgumentError, "Missing the required parameter 'project_id' when calling ProductsApi.projects_project_id_scanner_candidates_get"
|
3265
|
+
end
|
3266
|
+
# resource path
|
3267
|
+
local_var_path = '/projects/{project_id}/scanner/candidates'.sub('{' + 'project_id' + '}', project_id.to_s)
|
3268
|
+
|
3269
|
+
# query parameters
|
3270
|
+
query_params = {}
|
3271
|
+
|
3272
|
+
# header parameters
|
3273
|
+
header_params = {}
|
3274
|
+
# HTTP header 'Accept' (if needed)
|
3275
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/plain'])
|
3276
|
+
# HTTP header 'Content-Type'
|
3277
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
3278
|
+
|
3279
|
+
# form parameters
|
3280
|
+
form_params = {}
|
3281
|
+
|
3282
|
+
# http body (model)
|
3283
|
+
post_body = nil
|
3284
|
+
auth_names = ['basicAuth']
|
3285
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
3286
|
+
:header_params => header_params,
|
3287
|
+
:query_params => query_params,
|
3288
|
+
:form_params => form_params,
|
3289
|
+
:body => post_body,
|
3290
|
+
:auth_names => auth_names,
|
3291
|
+
:return_type => 'Array<ScannerRegistration>')
|
3292
|
+
if @api_client.config.debugging
|
3293
|
+
@api_client.config.logger.debug "API called: ProductsApi#projects_project_id_scanner_candidates_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
3294
|
+
end
|
3295
|
+
return data, status_code, headers
|
3296
|
+
end
|
3297
|
+
# Get project level scanner
|
3298
|
+
# Get the scanner registration of the specified project. If no scanner registration is configured for the specified project, the system default scanner registration will be returned.
|
3299
|
+
# @param project_id The project identifier.
|
3300
|
+
# @param [Hash] opts the optional parameters
|
3301
|
+
# @return [ScannerRegistration]
|
3302
|
+
def projects_project_id_scanner_get(project_id, opts = {})
|
3303
|
+
data, _status_code, _headers = projects_project_id_scanner_get_with_http_info(project_id, opts)
|
3304
|
+
data
|
3305
|
+
end
|
3306
|
+
|
3307
|
+
# Get project level scanner
|
3308
|
+
# Get the scanner registration of the specified project. If no scanner registration is configured for the specified project, the system default scanner registration will be returned.
|
3309
|
+
# @param project_id The project identifier.
|
3310
|
+
# @param [Hash] opts the optional parameters
|
3311
|
+
# @return [Array<(ScannerRegistration, Fixnum, Hash)>] ScannerRegistration data, response status code and response headers
|
3312
|
+
def projects_project_id_scanner_get_with_http_info(project_id, opts = {})
|
3313
|
+
if @api_client.config.debugging
|
3314
|
+
@api_client.config.logger.debug 'Calling API: ProductsApi.projects_project_id_scanner_get ...'
|
3315
|
+
end
|
3316
|
+
# verify the required parameter 'project_id' is set
|
3317
|
+
if @api_client.config.client_side_validation && project_id.nil?
|
3318
|
+
fail ArgumentError, "Missing the required parameter 'project_id' when calling ProductsApi.projects_project_id_scanner_get"
|
3319
|
+
end
|
3320
|
+
# resource path
|
3321
|
+
local_var_path = '/projects/{project_id}/scanner'.sub('{' + 'project_id' + '}', project_id.to_s)
|
3322
|
+
|
3323
|
+
# query parameters
|
3324
|
+
query_params = {}
|
3325
|
+
|
3326
|
+
# header parameters
|
3327
|
+
header_params = {}
|
3328
|
+
# HTTP header 'Accept' (if needed)
|
3329
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/plain'])
|
3330
|
+
# HTTP header 'Content-Type'
|
3331
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
3332
|
+
|
3333
|
+
# form parameters
|
3334
|
+
form_params = {}
|
3335
|
+
|
3336
|
+
# http body (model)
|
3337
|
+
post_body = nil
|
3338
|
+
auth_names = ['basicAuth']
|
3339
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
3340
|
+
:header_params => header_params,
|
3341
|
+
:query_params => query_params,
|
3342
|
+
:form_params => form_params,
|
3343
|
+
:body => post_body,
|
3344
|
+
:auth_names => auth_names,
|
3345
|
+
:return_type => 'ScannerRegistration')
|
3346
|
+
if @api_client.config.debugging
|
3347
|
+
@api_client.config.logger.debug "API called: ProductsApi#projects_project_id_scanner_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
3348
|
+
end
|
3349
|
+
return data, status_code, headers
|
3350
|
+
end
|
3018
3351
|
# Get summary of the project.
|
3019
3352
|
# Get summary of the project.
|
3020
3353
|
# @param project_id Relevant project ID
|
@@ -3540,14 +3873,190 @@ module SwaggerClient
|
|
3540
3873
|
end
|
3541
3874
|
return data, status_code, headers
|
3542
3875
|
end
|
3543
|
-
# List
|
3544
|
-
#
|
3876
|
+
# List quotas
|
3877
|
+
# List quotas
|
3545
3878
|
# @param [Hash] opts the optional parameters
|
3546
|
-
# @option opts [String] :
|
3547
|
-
# @
|
3548
|
-
|
3549
|
-
|
3550
|
-
|
3879
|
+
# @option opts [String] :reference The reference type of quota.
|
3880
|
+
# @option opts [String] :reference_id The reference id of quota.
|
3881
|
+
# @option opts [String] :sort Sort method, valid values include: 'hard.resource_name', '-hard.resource_name', 'used.resource_name', '-used.resource_name'. Here '-' stands for descending order, resource_name should be the real resource name of the quota.
|
3882
|
+
# @option opts [Integer] :page The page number, default is 1.
|
3883
|
+
# @option opts [Integer] :page_size The size of per page, default is 10, maximum is 100.
|
3884
|
+
# @return [Array<Quota>]
|
3885
|
+
def quotas_get(opts = {})
|
3886
|
+
data, _status_code, _headers = quotas_get_with_http_info(opts)
|
3887
|
+
data
|
3888
|
+
end
|
3889
|
+
|
3890
|
+
# List quotas
|
3891
|
+
# List quotas
|
3892
|
+
# @param [Hash] opts the optional parameters
|
3893
|
+
# @option opts [String] :reference The reference type of quota.
|
3894
|
+
# @option opts [String] :reference_id The reference id of quota.
|
3895
|
+
# @option opts [String] :sort Sort method, valid values include: 'hard.resource_name', '-hard.resource_name', 'used.resource_name', '-used.resource_name'. Here '-' stands for descending order, resource_name should be the real resource name of the quota.
|
3896
|
+
# @option opts [Integer] :page The page number, default is 1.
|
3897
|
+
# @option opts [Integer] :page_size The size of per page, default is 10, maximum is 100.
|
3898
|
+
# @return [Array<(Array<Quota>, Fixnum, Hash)>] Array<Quota> data, response status code and response headers
|
3899
|
+
def quotas_get_with_http_info(opts = {})
|
3900
|
+
if @api_client.config.debugging
|
3901
|
+
@api_client.config.logger.debug 'Calling API: ProductsApi.quotas_get ...'
|
3902
|
+
end
|
3903
|
+
# resource path
|
3904
|
+
local_var_path = '/quotas'
|
3905
|
+
|
3906
|
+
# query parameters
|
3907
|
+
query_params = {}
|
3908
|
+
query_params[:'reference'] = opts[:'reference'] if !opts[:'reference'].nil?
|
3909
|
+
query_params[:'reference_id'] = opts[:'reference_id'] if !opts[:'reference_id'].nil?
|
3910
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
3911
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
3912
|
+
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
3913
|
+
|
3914
|
+
# header parameters
|
3915
|
+
header_params = {}
|
3916
|
+
# HTTP header 'Accept' (if needed)
|
3917
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/plain'])
|
3918
|
+
# HTTP header 'Content-Type'
|
3919
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
3920
|
+
|
3921
|
+
# form parameters
|
3922
|
+
form_params = {}
|
3923
|
+
|
3924
|
+
# http body (model)
|
3925
|
+
post_body = nil
|
3926
|
+
auth_names = ['basicAuth']
|
3927
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
3928
|
+
:header_params => header_params,
|
3929
|
+
:query_params => query_params,
|
3930
|
+
:form_params => form_params,
|
3931
|
+
:body => post_body,
|
3932
|
+
:auth_names => auth_names,
|
3933
|
+
:return_type => 'Array<Quota>')
|
3934
|
+
if @api_client.config.debugging
|
3935
|
+
@api_client.config.logger.debug "API called: ProductsApi#quotas_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
3936
|
+
end
|
3937
|
+
return data, status_code, headers
|
3938
|
+
end
|
3939
|
+
# Get the specified quota
|
3940
|
+
# Get the specified quota
|
3941
|
+
# @param id Quota ID
|
3942
|
+
# @param [Hash] opts the optional parameters
|
3943
|
+
# @return [Quota]
|
3944
|
+
def quotas_id_get(id, opts = {})
|
3945
|
+
data, _status_code, _headers = quotas_id_get_with_http_info(id, opts)
|
3946
|
+
data
|
3947
|
+
end
|
3948
|
+
|
3949
|
+
# Get the specified quota
|
3950
|
+
# Get the specified quota
|
3951
|
+
# @param id Quota ID
|
3952
|
+
# @param [Hash] opts the optional parameters
|
3953
|
+
# @return [Array<(Quota, Fixnum, Hash)>] Quota data, response status code and response headers
|
3954
|
+
def quotas_id_get_with_http_info(id, opts = {})
|
3955
|
+
if @api_client.config.debugging
|
3956
|
+
@api_client.config.logger.debug 'Calling API: ProductsApi.quotas_id_get ...'
|
3957
|
+
end
|
3958
|
+
# verify the required parameter 'id' is set
|
3959
|
+
if @api_client.config.client_side_validation && id.nil?
|
3960
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling ProductsApi.quotas_id_get"
|
3961
|
+
end
|
3962
|
+
# resource path
|
3963
|
+
local_var_path = '/quotas/{id}'.sub('{' + 'id' + '}', id.to_s)
|
3964
|
+
|
3965
|
+
# query parameters
|
3966
|
+
query_params = {}
|
3967
|
+
|
3968
|
+
# header parameters
|
3969
|
+
header_params = {}
|
3970
|
+
# HTTP header 'Accept' (if needed)
|
3971
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/plain'])
|
3972
|
+
# HTTP header 'Content-Type'
|
3973
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
3974
|
+
|
3975
|
+
# form parameters
|
3976
|
+
form_params = {}
|
3977
|
+
|
3978
|
+
# http body (model)
|
3979
|
+
post_body = nil
|
3980
|
+
auth_names = ['basicAuth']
|
3981
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
3982
|
+
:header_params => header_params,
|
3983
|
+
:query_params => query_params,
|
3984
|
+
:form_params => form_params,
|
3985
|
+
:body => post_body,
|
3986
|
+
:auth_names => auth_names,
|
3987
|
+
:return_type => 'Quota')
|
3988
|
+
if @api_client.config.debugging
|
3989
|
+
@api_client.config.logger.debug "API called: ProductsApi#quotas_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
3990
|
+
end
|
3991
|
+
return data, status_code, headers
|
3992
|
+
end
|
3993
|
+
# Update the specified quota
|
3994
|
+
# Update hard limits of the specified quota
|
3995
|
+
# @param id Quota ID
|
3996
|
+
# @param hard The new hard limits for the quota
|
3997
|
+
# @param [Hash] opts the optional parameters
|
3998
|
+
# @return [nil]
|
3999
|
+
def quotas_id_put(id, hard, opts = {})
|
4000
|
+
quotas_id_put_with_http_info(id, hard, opts)
|
4001
|
+
nil
|
4002
|
+
end
|
4003
|
+
|
4004
|
+
# Update the specified quota
|
4005
|
+
# Update hard limits of the specified quota
|
4006
|
+
# @param id Quota ID
|
4007
|
+
# @param hard The new hard limits for the quota
|
4008
|
+
# @param [Hash] opts the optional parameters
|
4009
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
4010
|
+
def quotas_id_put_with_http_info(id, hard, opts = {})
|
4011
|
+
if @api_client.config.debugging
|
4012
|
+
@api_client.config.logger.debug 'Calling API: ProductsApi.quotas_id_put ...'
|
4013
|
+
end
|
4014
|
+
# verify the required parameter 'id' is set
|
4015
|
+
if @api_client.config.client_side_validation && id.nil?
|
4016
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling ProductsApi.quotas_id_put"
|
4017
|
+
end
|
4018
|
+
# verify the required parameter 'hard' is set
|
4019
|
+
if @api_client.config.client_side_validation && hard.nil?
|
4020
|
+
fail ArgumentError, "Missing the required parameter 'hard' when calling ProductsApi.quotas_id_put"
|
4021
|
+
end
|
4022
|
+
# resource path
|
4023
|
+
local_var_path = '/quotas/{id}'.sub('{' + 'id' + '}', id.to_s)
|
4024
|
+
|
4025
|
+
# query parameters
|
4026
|
+
query_params = {}
|
4027
|
+
|
4028
|
+
# header parameters
|
4029
|
+
header_params = {}
|
4030
|
+
# HTTP header 'Accept' (if needed)
|
4031
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/plain'])
|
4032
|
+
# HTTP header 'Content-Type'
|
4033
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
4034
|
+
|
4035
|
+
# form parameters
|
4036
|
+
form_params = {}
|
4037
|
+
|
4038
|
+
# http body (model)
|
4039
|
+
post_body = @api_client.object_to_http_body(hard)
|
4040
|
+
auth_names = ['basicAuth']
|
4041
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
4042
|
+
:header_params => header_params,
|
4043
|
+
:query_params => query_params,
|
4044
|
+
:form_params => form_params,
|
4045
|
+
:body => post_body,
|
4046
|
+
:auth_names => auth_names)
|
4047
|
+
if @api_client.config.debugging
|
4048
|
+
@api_client.config.logger.debug "API called: ProductsApi#quotas_id_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
4049
|
+
end
|
4050
|
+
return data, status_code, headers
|
4051
|
+
end
|
4052
|
+
# List registries.
|
4053
|
+
# This endpoint let user list filtered registries by name, if name is nil, list returns all registries.
|
4054
|
+
# @param [Hash] opts the optional parameters
|
4055
|
+
# @option opts [String] :name Registry's name.
|
4056
|
+
# @return [Array<Registry>]
|
4057
|
+
def registries_get(opts = {})
|
4058
|
+
data, _status_code, _headers = registries_get_with_http_info(opts)
|
4059
|
+
data
|
3551
4060
|
end
|
3552
4061
|
|
3553
4062
|
# List registries.
|
@@ -5534,7 +6043,7 @@ module SwaggerClient
|
|
5534
6043
|
return data, status_code, headers
|
5535
6044
|
end
|
5536
6045
|
# Scan the image.
|
5537
|
-
# Trigger
|
6046
|
+
# Trigger a scan targeting the artifact identified by the repo_name and tag.
|
5538
6047
|
# @param repo_name Repository name
|
5539
6048
|
# @param tag Tag name
|
5540
6049
|
# @param [Hash] opts the optional parameters
|
@@ -5545,7 +6054,7 @@ module SwaggerClient
|
|
5545
6054
|
end
|
5546
6055
|
|
5547
6056
|
# Scan the image.
|
5548
|
-
# Trigger
|
6057
|
+
# Trigger a scan targeting the artifact identified by the repo_name and tag.
|
5549
6058
|
# @param repo_name Repository name
|
5550
6059
|
# @param tag Tag name
|
5551
6060
|
# @param [Hash] opts the optional parameters
|
@@ -5592,37 +6101,43 @@ module SwaggerClient
|
|
5592
6101
|
end
|
5593
6102
|
return data, status_code, headers
|
5594
6103
|
end
|
5595
|
-
# Get
|
5596
|
-
#
|
6104
|
+
# Get scan log
|
6105
|
+
# Get the log text stream for the given artifact and scan action.
|
5597
6106
|
# @param repo_name Repository name
|
5598
6107
|
# @param tag Tag name
|
6108
|
+
# @param uuid the scan unique identifier
|
5599
6109
|
# @param [Hash] opts the optional parameters
|
5600
|
-
# @return [
|
5601
|
-
def
|
5602
|
-
data, _status_code, _headers =
|
6110
|
+
# @return [String]
|
6111
|
+
def repositories_repo_name_tags_tag_scan_uuid_log_get(repo_name, tag, uuid, opts = {})
|
6112
|
+
data, _status_code, _headers = repositories_repo_name_tags_tag_scan_uuid_log_get_with_http_info(repo_name, tag, uuid, opts)
|
5603
6113
|
data
|
5604
6114
|
end
|
5605
6115
|
|
5606
|
-
# Get
|
5607
|
-
#
|
6116
|
+
# Get scan log
|
6117
|
+
# Get the log text stream for the given artifact and scan action.
|
5608
6118
|
# @param repo_name Repository name
|
5609
6119
|
# @param tag Tag name
|
6120
|
+
# @param uuid the scan unique identifier
|
5610
6121
|
# @param [Hash] opts the optional parameters
|
5611
|
-
# @return [Array<(
|
5612
|
-
def
|
6122
|
+
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
6123
|
+
def repositories_repo_name_tags_tag_scan_uuid_log_get_with_http_info(repo_name, tag, uuid, opts = {})
|
5613
6124
|
if @api_client.config.debugging
|
5614
|
-
@api_client.config.logger.debug 'Calling API: ProductsApi.
|
6125
|
+
@api_client.config.logger.debug 'Calling API: ProductsApi.repositories_repo_name_tags_tag_scan_uuid_log_get ...'
|
5615
6126
|
end
|
5616
6127
|
# verify the required parameter 'repo_name' is set
|
5617
6128
|
if @api_client.config.client_side_validation && repo_name.nil?
|
5618
|
-
fail ArgumentError, "Missing the required parameter 'repo_name' when calling ProductsApi.
|
6129
|
+
fail ArgumentError, "Missing the required parameter 'repo_name' when calling ProductsApi.repositories_repo_name_tags_tag_scan_uuid_log_get"
|
5619
6130
|
end
|
5620
6131
|
# verify the required parameter 'tag' is set
|
5621
6132
|
if @api_client.config.client_side_validation && tag.nil?
|
5622
|
-
fail ArgumentError, "Missing the required parameter 'tag' when calling ProductsApi.
|
6133
|
+
fail ArgumentError, "Missing the required parameter 'tag' when calling ProductsApi.repositories_repo_name_tags_tag_scan_uuid_log_get"
|
6134
|
+
end
|
6135
|
+
# verify the required parameter 'uuid' is set
|
6136
|
+
if @api_client.config.client_side_validation && uuid.nil?
|
6137
|
+
fail ArgumentError, "Missing the required parameter 'uuid' when calling ProductsApi.repositories_repo_name_tags_tag_scan_uuid_log_get"
|
5623
6138
|
end
|
5624
6139
|
# resource path
|
5625
|
-
local_var_path = '/repositories/{repo_name}/tags/{tag}/
|
6140
|
+
local_var_path = '/repositories/{repo_name}/tags/{tag}/scan/{uuid}/log'.sub('{' + 'repo_name' + '}', repo_name.to_s).sub('{' + 'tag' + '}', tag.to_s).sub('{' + 'uuid' + '}', uuid.to_s)
|
5626
6141
|
|
5627
6142
|
# query parameters
|
5628
6143
|
query_params = {}
|
@@ -5630,7 +6145,7 @@ module SwaggerClient
|
|
5630
6145
|
# header parameters
|
5631
6146
|
header_params = {}
|
5632
6147
|
# HTTP header 'Accept' (if needed)
|
5633
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
6148
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/plain'])
|
5634
6149
|
# HTTP header 'Content-Type'
|
5635
6150
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
5636
6151
|
|
@@ -5646,9 +6161,9 @@ module SwaggerClient
|
|
5646
6161
|
:form_params => form_params,
|
5647
6162
|
:body => post_body,
|
5648
6163
|
:auth_names => auth_names,
|
5649
|
-
:return_type => '
|
6164
|
+
:return_type => 'String')
|
5650
6165
|
if @api_client.config.debugging
|
5651
|
-
@api_client.config.logger.debug "API called: ProductsApi#
|
6166
|
+
@api_client.config.logger.debug "API called: ProductsApi#repositories_repo_name_tags_tag_scan_uuid_log_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
5652
6167
|
end
|
5653
6168
|
return data, status_code, headers
|
5654
6169
|
end
|
@@ -6221,6 +6736,311 @@ module SwaggerClient
|
|
6221
6736
|
end
|
6222
6737
|
return data, status_code, headers
|
6223
6738
|
end
|
6739
|
+
# List scanner registrations
|
6740
|
+
# Returns a list of currently configured scanner registrations.
|
6741
|
+
# @param [Hash] opts the optional parameters
|
6742
|
+
# @return [Array<ScannerRegistration>]
|
6743
|
+
def scanners_get(opts = {})
|
6744
|
+
data, _status_code, _headers = scanners_get_with_http_info(opts)
|
6745
|
+
data
|
6746
|
+
end
|
6747
|
+
|
6748
|
+
# List scanner registrations
|
6749
|
+
# Returns a list of currently configured scanner registrations.
|
6750
|
+
# @param [Hash] opts the optional parameters
|
6751
|
+
# @return [Array<(Array<ScannerRegistration>, Fixnum, Hash)>] Array<ScannerRegistration> data, response status code and response headers
|
6752
|
+
def scanners_get_with_http_info(opts = {})
|
6753
|
+
if @api_client.config.debugging
|
6754
|
+
@api_client.config.logger.debug 'Calling API: ProductsApi.scanners_get ...'
|
6755
|
+
end
|
6756
|
+
# resource path
|
6757
|
+
local_var_path = '/scanners'
|
6758
|
+
|
6759
|
+
# query parameters
|
6760
|
+
query_params = {}
|
6761
|
+
|
6762
|
+
# header parameters
|
6763
|
+
header_params = {}
|
6764
|
+
# HTTP header 'Accept' (if needed)
|
6765
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/plain'])
|
6766
|
+
# HTTP header 'Content-Type'
|
6767
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
6768
|
+
|
6769
|
+
# form parameters
|
6770
|
+
form_params = {}
|
6771
|
+
|
6772
|
+
# http body (model)
|
6773
|
+
post_body = nil
|
6774
|
+
auth_names = ['basicAuth']
|
6775
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
6776
|
+
:header_params => header_params,
|
6777
|
+
:query_params => query_params,
|
6778
|
+
:form_params => form_params,
|
6779
|
+
:body => post_body,
|
6780
|
+
:auth_names => auth_names,
|
6781
|
+
:return_type => 'Array<ScannerRegistration>')
|
6782
|
+
if @api_client.config.debugging
|
6783
|
+
@api_client.config.logger.debug "API called: ProductsApi#scanners_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
6784
|
+
end
|
6785
|
+
return data, status_code, headers
|
6786
|
+
end
|
6787
|
+
# Tests scanner registration settings
|
6788
|
+
# Pings scanner adapter to test endpoint URL and authorization settings.
|
6789
|
+
# @param settings A scanner registration settings to be tested.
|
6790
|
+
# @param [Hash] opts the optional parameters
|
6791
|
+
# @return [nil]
|
6792
|
+
def scanners_ping_post(settings, opts = {})
|
6793
|
+
scanners_ping_post_with_http_info(settings, opts)
|
6794
|
+
nil
|
6795
|
+
end
|
6796
|
+
|
6797
|
+
# Tests scanner registration settings
|
6798
|
+
# Pings scanner adapter to test endpoint URL and authorization settings.
|
6799
|
+
# @param settings A scanner registration settings to be tested.
|
6800
|
+
# @param [Hash] opts the optional parameters
|
6801
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
6802
|
+
def scanners_ping_post_with_http_info(settings, opts = {})
|
6803
|
+
if @api_client.config.debugging
|
6804
|
+
@api_client.config.logger.debug 'Calling API: ProductsApi.scanners_ping_post ...'
|
6805
|
+
end
|
6806
|
+
# verify the required parameter 'settings' is set
|
6807
|
+
if @api_client.config.client_side_validation && settings.nil?
|
6808
|
+
fail ArgumentError, "Missing the required parameter 'settings' when calling ProductsApi.scanners_ping_post"
|
6809
|
+
end
|
6810
|
+
# resource path
|
6811
|
+
local_var_path = '/scanners/ping'
|
6812
|
+
|
6813
|
+
# query parameters
|
6814
|
+
query_params = {}
|
6815
|
+
|
6816
|
+
# header parameters
|
6817
|
+
header_params = {}
|
6818
|
+
# HTTP header 'Accept' (if needed)
|
6819
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/plain'])
|
6820
|
+
# HTTP header 'Content-Type'
|
6821
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
6822
|
+
|
6823
|
+
# form parameters
|
6824
|
+
form_params = {}
|
6825
|
+
|
6826
|
+
# http body (model)
|
6827
|
+
post_body = @api_client.object_to_http_body(settings)
|
6828
|
+
auth_names = ['basicAuth']
|
6829
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
6830
|
+
:header_params => header_params,
|
6831
|
+
:query_params => query_params,
|
6832
|
+
:form_params => form_params,
|
6833
|
+
:body => post_body,
|
6834
|
+
:auth_names => auth_names)
|
6835
|
+
if @api_client.config.debugging
|
6836
|
+
@api_client.config.logger.debug "API called: ProductsApi#scanners_ping_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
6837
|
+
end
|
6838
|
+
return data, status_code, headers
|
6839
|
+
end
|
6840
|
+
# Get a scanner registration details
|
6841
|
+
# Retruns the details of the specified scanner registration.
|
6842
|
+
# @param registration_id The scanner registration identifer.
|
6843
|
+
# @param [Hash] opts the optional parameters
|
6844
|
+
# @return [ScannerRegistration]
|
6845
|
+
def scanners_registration_id_get(registration_id, opts = {})
|
6846
|
+
data, _status_code, _headers = scanners_registration_id_get_with_http_info(registration_id, opts)
|
6847
|
+
data
|
6848
|
+
end
|
6849
|
+
|
6850
|
+
# Get a scanner registration details
|
6851
|
+
# Retruns the details of the specified scanner registration.
|
6852
|
+
# @param registration_id The scanner registration identifer.
|
6853
|
+
# @param [Hash] opts the optional parameters
|
6854
|
+
# @return [Array<(ScannerRegistration, Fixnum, Hash)>] ScannerRegistration data, response status code and response headers
|
6855
|
+
def scanners_registration_id_get_with_http_info(registration_id, opts = {})
|
6856
|
+
if @api_client.config.debugging
|
6857
|
+
@api_client.config.logger.debug 'Calling API: ProductsApi.scanners_registration_id_get ...'
|
6858
|
+
end
|
6859
|
+
# verify the required parameter 'registration_id' is set
|
6860
|
+
if @api_client.config.client_side_validation && registration_id.nil?
|
6861
|
+
fail ArgumentError, "Missing the required parameter 'registration_id' when calling ProductsApi.scanners_registration_id_get"
|
6862
|
+
end
|
6863
|
+
# resource path
|
6864
|
+
local_var_path = '/scanners/{registration_id}'.sub('{' + 'registration_id' + '}', registration_id.to_s)
|
6865
|
+
|
6866
|
+
# query parameters
|
6867
|
+
query_params = {}
|
6868
|
+
|
6869
|
+
# header parameters
|
6870
|
+
header_params = {}
|
6871
|
+
# HTTP header 'Accept' (if needed)
|
6872
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/plain'])
|
6873
|
+
# HTTP header 'Content-Type'
|
6874
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
6875
|
+
|
6876
|
+
# form parameters
|
6877
|
+
form_params = {}
|
6878
|
+
|
6879
|
+
# http body (model)
|
6880
|
+
post_body = nil
|
6881
|
+
auth_names = ['basicAuth']
|
6882
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
6883
|
+
:header_params => header_params,
|
6884
|
+
:query_params => query_params,
|
6885
|
+
:form_params => form_params,
|
6886
|
+
:body => post_body,
|
6887
|
+
:auth_names => auth_names,
|
6888
|
+
:return_type => 'ScannerRegistration')
|
6889
|
+
if @api_client.config.debugging
|
6890
|
+
@api_client.config.logger.debug "API called: ProductsApi#scanners_registration_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
6891
|
+
end
|
6892
|
+
return data, status_code, headers
|
6893
|
+
end
|
6894
|
+
# Get the metadata of the specified scanner registration
|
6895
|
+
# Get the metadata of the specified scanner registration, including the capabilities and customzied properties.
|
6896
|
+
# @param registration_id The scanner registration identifier.
|
6897
|
+
# @param [Hash] opts the optional parameters
|
6898
|
+
# @return [ScannerAdapterMetadata]
|
6899
|
+
def scanners_registration_id_metadata_get(registration_id, opts = {})
|
6900
|
+
data, _status_code, _headers = scanners_registration_id_metadata_get_with_http_info(registration_id, opts)
|
6901
|
+
data
|
6902
|
+
end
|
6903
|
+
|
6904
|
+
# Get the metadata of the specified scanner registration
|
6905
|
+
# Get the metadata of the specified scanner registration, including the capabilities and customzied properties.
|
6906
|
+
# @param registration_id The scanner registration identifier.
|
6907
|
+
# @param [Hash] opts the optional parameters
|
6908
|
+
# @return [Array<(ScannerAdapterMetadata, Fixnum, Hash)>] ScannerAdapterMetadata data, response status code and response headers
|
6909
|
+
def scanners_registration_id_metadata_get_with_http_info(registration_id, opts = {})
|
6910
|
+
if @api_client.config.debugging
|
6911
|
+
@api_client.config.logger.debug 'Calling API: ProductsApi.scanners_registration_id_metadata_get ...'
|
6912
|
+
end
|
6913
|
+
# verify the required parameter 'registration_id' is set
|
6914
|
+
if @api_client.config.client_side_validation && registration_id.nil?
|
6915
|
+
fail ArgumentError, "Missing the required parameter 'registration_id' when calling ProductsApi.scanners_registration_id_metadata_get"
|
6916
|
+
end
|
6917
|
+
# resource path
|
6918
|
+
local_var_path = '/scanners/{registration_id}/metadata'.sub('{' + 'registration_id' + '}', registration_id.to_s)
|
6919
|
+
|
6920
|
+
# query parameters
|
6921
|
+
query_params = {}
|
6922
|
+
|
6923
|
+
# header parameters
|
6924
|
+
header_params = {}
|
6925
|
+
# HTTP header 'Accept' (if needed)
|
6926
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/plain'])
|
6927
|
+
# HTTP header 'Content-Type'
|
6928
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
6929
|
+
|
6930
|
+
# form parameters
|
6931
|
+
form_params = {}
|
6932
|
+
|
6933
|
+
# http body (model)
|
6934
|
+
post_body = nil
|
6935
|
+
auth_names = ['basicAuth']
|
6936
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
6937
|
+
:header_params => header_params,
|
6938
|
+
:query_params => query_params,
|
6939
|
+
:form_params => form_params,
|
6940
|
+
:body => post_body,
|
6941
|
+
:auth_names => auth_names,
|
6942
|
+
:return_type => 'ScannerAdapterMetadata')
|
6943
|
+
if @api_client.config.debugging
|
6944
|
+
@api_client.config.logger.debug "API called: ProductsApi#scanners_registration_id_metadata_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
6945
|
+
end
|
6946
|
+
return data, status_code, headers
|
6947
|
+
end
|
6948
|
+
# Get the metrics of the latest scan all process
|
6949
|
+
# Get the metrics of the latest scan all process
|
6950
|
+
# @param [Hash] opts the optional parameters
|
6951
|
+
# @return [Stats]
|
6952
|
+
def scans_all_metrics_get(opts = {})
|
6953
|
+
data, _status_code, _headers = scans_all_metrics_get_with_http_info(opts)
|
6954
|
+
data
|
6955
|
+
end
|
6956
|
+
|
6957
|
+
# Get the metrics of the latest scan all process
|
6958
|
+
# Get the metrics of the latest scan all process
|
6959
|
+
# @param [Hash] opts the optional parameters
|
6960
|
+
# @return [Array<(Stats, Fixnum, Hash)>] Stats data, response status code and response headers
|
6961
|
+
def scans_all_metrics_get_with_http_info(opts = {})
|
6962
|
+
if @api_client.config.debugging
|
6963
|
+
@api_client.config.logger.debug 'Calling API: ProductsApi.scans_all_metrics_get ...'
|
6964
|
+
end
|
6965
|
+
# resource path
|
6966
|
+
local_var_path = '/scans/all/metrics'
|
6967
|
+
|
6968
|
+
# query parameters
|
6969
|
+
query_params = {}
|
6970
|
+
|
6971
|
+
# header parameters
|
6972
|
+
header_params = {}
|
6973
|
+
# HTTP header 'Accept' (if needed)
|
6974
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/plain'])
|
6975
|
+
# HTTP header 'Content-Type'
|
6976
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
6977
|
+
|
6978
|
+
# form parameters
|
6979
|
+
form_params = {}
|
6980
|
+
|
6981
|
+
# http body (model)
|
6982
|
+
post_body = nil
|
6983
|
+
auth_names = ['basicAuth']
|
6984
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
6985
|
+
:header_params => header_params,
|
6986
|
+
:query_params => query_params,
|
6987
|
+
:form_params => form_params,
|
6988
|
+
:body => post_body,
|
6989
|
+
:auth_names => auth_names,
|
6990
|
+
:return_type => 'Stats')
|
6991
|
+
if @api_client.config.debugging
|
6992
|
+
@api_client.config.logger.debug "API called: ProductsApi#scans_all_metrics_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
6993
|
+
end
|
6994
|
+
return data, status_code, headers
|
6995
|
+
end
|
6996
|
+
# Get the metrics of the latest scheduled scan all process
|
6997
|
+
# Get the metrics of the latest scheduled scan all process
|
6998
|
+
# @param [Hash] opts the optional parameters
|
6999
|
+
# @return [Stats]
|
7000
|
+
def scans_schedule_metrics_get(opts = {})
|
7001
|
+
data, _status_code, _headers = scans_schedule_metrics_get_with_http_info(opts)
|
7002
|
+
data
|
7003
|
+
end
|
7004
|
+
|
7005
|
+
# Get the metrics of the latest scheduled scan all process
|
7006
|
+
# Get the metrics of the latest scheduled scan all process
|
7007
|
+
# @param [Hash] opts the optional parameters
|
7008
|
+
# @return [Array<(Stats, Fixnum, Hash)>] Stats data, response status code and response headers
|
7009
|
+
def scans_schedule_metrics_get_with_http_info(opts = {})
|
7010
|
+
if @api_client.config.debugging
|
7011
|
+
@api_client.config.logger.debug 'Calling API: ProductsApi.scans_schedule_metrics_get ...'
|
7012
|
+
end
|
7013
|
+
# resource path
|
7014
|
+
local_var_path = '/scans/schedule/metrics'
|
7015
|
+
|
7016
|
+
# query parameters
|
7017
|
+
query_params = {}
|
7018
|
+
|
7019
|
+
# header parameters
|
7020
|
+
header_params = {}
|
7021
|
+
# HTTP header 'Accept' (if needed)
|
7022
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/plain'])
|
7023
|
+
# HTTP header 'Content-Type'
|
7024
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
7025
|
+
|
7026
|
+
# form parameters
|
7027
|
+
form_params = {}
|
7028
|
+
|
7029
|
+
# http body (model)
|
7030
|
+
post_body = nil
|
7031
|
+
auth_names = ['basicAuth']
|
7032
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
7033
|
+
:header_params => header_params,
|
7034
|
+
:query_params => query_params,
|
7035
|
+
:form_params => form_params,
|
7036
|
+
:body => post_body,
|
7037
|
+
:auth_names => auth_names,
|
7038
|
+
:return_type => 'Stats')
|
7039
|
+
if @api_client.config.debugging
|
7040
|
+
@api_client.config.logger.debug "API called: ProductsApi#scans_schedule_metrics_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
7041
|
+
end
|
7042
|
+
return data, status_code, headers
|
7043
|
+
end
|
6224
7044
|
# Search for projects, repositories and helm charts
|
6225
7045
|
# The Search endpoint returns information about the projects ,repositories and helm charts offered at public status or related to the current logged in user. The response includes the project, repository list and charts in a proper display order.
|
6226
7046
|
# @param q Search parameter for project and repository name.
|
@@ -7616,31 +8436,37 @@ module SwaggerClient
|
|
7616
8436
|
end
|
7617
8437
|
return data, status_code, headers
|
7618
8438
|
end
|
7619
|
-
#
|
7620
|
-
# This endpoint let
|
7621
|
-
# @param user_id User ID
|
8439
|
+
# Set CLI secret for a user.
|
8440
|
+
# This endpoint let user generate a new CLI secret for himself. This API only works when auth mode is set to 'OIDC'. Once this API returns with successful status, the old secret will be invalid, as there will be only one CLI secret for a user.
|
8441
|
+
# @param user_id User ID
|
8442
|
+
# @param input_secret JSON object that includes the new secret
|
7622
8443
|
# @param [Hash] opts the optional parameters
|
7623
8444
|
# @return [nil]
|
7624
|
-
def
|
7625
|
-
|
8445
|
+
def users_user_id_cli_secret_put(user_id, input_secret, opts = {})
|
8446
|
+
users_user_id_cli_secret_put_with_http_info(user_id, input_secret, opts)
|
7626
8447
|
nil
|
7627
8448
|
end
|
7628
8449
|
|
7629
|
-
#
|
7630
|
-
# This endpoint let
|
7631
|
-
# @param user_id User ID
|
8450
|
+
# Set CLI secret for a user.
|
8451
|
+
# This endpoint let user generate a new CLI secret for himself. This API only works when auth mode is set to 'OIDC'. Once this API returns with successful status, the old secret will be invalid, as there will be only one CLI secret for a user.
|
8452
|
+
# @param user_id User ID
|
8453
|
+
# @param input_secret JSON object that includes the new secret
|
7632
8454
|
# @param [Hash] opts the optional parameters
|
7633
8455
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
7634
|
-
def
|
8456
|
+
def users_user_id_cli_secret_put_with_http_info(user_id, input_secret, opts = {})
|
7635
8457
|
if @api_client.config.debugging
|
7636
|
-
@api_client.config.logger.debug 'Calling API: ProductsApi.
|
8458
|
+
@api_client.config.logger.debug 'Calling API: ProductsApi.users_user_id_cli_secret_put ...'
|
7637
8459
|
end
|
7638
8460
|
# verify the required parameter 'user_id' is set
|
7639
8461
|
if @api_client.config.client_side_validation && user_id.nil?
|
7640
|
-
fail ArgumentError, "Missing the required parameter 'user_id' when calling ProductsApi.
|
8462
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling ProductsApi.users_user_id_cli_secret_put"
|
8463
|
+
end
|
8464
|
+
# verify the required parameter 'input_secret' is set
|
8465
|
+
if @api_client.config.client_side_validation && input_secret.nil?
|
8466
|
+
fail ArgumentError, "Missing the required parameter 'input_secret' when calling ProductsApi.users_user_id_cli_secret_put"
|
7641
8467
|
end
|
7642
8468
|
# resource path
|
7643
|
-
local_var_path = '/users/{user_id}'.sub('{' + 'user_id' + '}', user_id.to_s)
|
8469
|
+
local_var_path = '/users/{user_id}/cli_secret'.sub('{' + 'user_id' + '}', user_id.to_s)
|
7644
8470
|
|
7645
8471
|
# query parameters
|
7646
8472
|
query_params = {}
|
@@ -7656,44 +8482,44 @@ module SwaggerClient
|
|
7656
8482
|
form_params = {}
|
7657
8483
|
|
7658
8484
|
# http body (model)
|
7659
|
-
post_body =
|
8485
|
+
post_body = @api_client.object_to_http_body(input_secret)
|
7660
8486
|
auth_names = ['basicAuth']
|
7661
|
-
data, status_code, headers = @api_client.call_api(:
|
8487
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
7662
8488
|
:header_params => header_params,
|
7663
8489
|
:query_params => query_params,
|
7664
8490
|
:form_params => form_params,
|
7665
8491
|
:body => post_body,
|
7666
8492
|
:auth_names => auth_names)
|
7667
8493
|
if @api_client.config.debugging
|
7668
|
-
@api_client.config.logger.debug "API called: ProductsApi#
|
8494
|
+
@api_client.config.logger.debug "API called: ProductsApi#users_user_id_cli_secret_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
7669
8495
|
end
|
7670
8496
|
return data, status_code, headers
|
7671
8497
|
end
|
7672
|
-
#
|
7673
|
-
# This endpoint let
|
7674
|
-
# @param user_id User ID
|
8498
|
+
# Mark a registered user as be removed.
|
8499
|
+
# This endpoint let administrator of Harbor mark a registered user as be removed.It actually won't be deleted from DB.
|
8500
|
+
# @param user_id User ID for marking as to be removed.
|
7675
8501
|
# @param [Hash] opts the optional parameters
|
7676
|
-
# @return [
|
7677
|
-
def
|
7678
|
-
|
7679
|
-
|
8502
|
+
# @return [nil]
|
8503
|
+
def users_user_id_delete(user_id, opts = {})
|
8504
|
+
users_user_id_delete_with_http_info(user_id, opts)
|
8505
|
+
nil
|
7680
8506
|
end
|
7681
8507
|
|
7682
|
-
#
|
7683
|
-
# This endpoint let
|
7684
|
-
# @param user_id User ID
|
8508
|
+
# Mark a registered user as be removed.
|
8509
|
+
# This endpoint let administrator of Harbor mark a registered user as be removed.It actually won't be deleted from DB.
|
8510
|
+
# @param user_id User ID for marking as to be removed.
|
7685
8511
|
# @param [Hash] opts the optional parameters
|
7686
|
-
# @return [Array<(
|
7687
|
-
def
|
8512
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
8513
|
+
def users_user_id_delete_with_http_info(user_id, opts = {})
|
7688
8514
|
if @api_client.config.debugging
|
7689
|
-
@api_client.config.logger.debug 'Calling API: ProductsApi.
|
8515
|
+
@api_client.config.logger.debug 'Calling API: ProductsApi.users_user_id_delete ...'
|
7690
8516
|
end
|
7691
8517
|
# verify the required parameter 'user_id' is set
|
7692
8518
|
if @api_client.config.client_side_validation && user_id.nil?
|
7693
|
-
fail ArgumentError, "Missing the required parameter 'user_id' when calling ProductsApi.
|
8519
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling ProductsApi.users_user_id_delete"
|
7694
8520
|
end
|
7695
8521
|
# resource path
|
7696
|
-
local_var_path = '/users/{user_id}
|
8522
|
+
local_var_path = '/users/{user_id}'.sub('{' + 'user_id' + '}', user_id.to_s)
|
7697
8523
|
|
7698
8524
|
# query parameters
|
7699
8525
|
query_params = {}
|
@@ -7711,15 +8537,14 @@ module SwaggerClient
|
|
7711
8537
|
# http body (model)
|
7712
8538
|
post_body = nil
|
7713
8539
|
auth_names = ['basicAuth']
|
7714
|
-
data, status_code, headers = @api_client.call_api(:
|
8540
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
7715
8541
|
:header_params => header_params,
|
7716
8542
|
:query_params => query_params,
|
7717
8543
|
:form_params => form_params,
|
7718
8544
|
:body => post_body,
|
7719
|
-
:auth_names => auth_names
|
7720
|
-
:return_type => 'InlineResponse200')
|
8545
|
+
:auth_names => auth_names)
|
7721
8546
|
if @api_client.config.debugging
|
7722
|
-
@api_client.config.logger.debug "API called: ProductsApi#
|
8547
|
+
@api_client.config.logger.debug "API called: ProductsApi#users_user_id_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
7723
8548
|
end
|
7724
8549
|
return data, status_code, headers
|
7725
8550
|
end
|