harbor1_client 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (444) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +7 -0
  3. data/README.md +438 -0
  4. data/Rakefile +8 -0
  5. data/docs/AccessLog.md +13 -0
  6. data/docs/Action.md +8 -0
  7. data/docs/Action1.md +8 -0
  8. data/docs/AdminJobSchedule.md +8 -0
  9. data/docs/AdminJobScheduleObj.md +9 -0
  10. data/docs/BadRequestFormatedError.md +8 -0
  11. data/docs/BoolConfigItem.md +9 -0
  12. data/docs/CVEWhitelist.md +11 -0
  13. data/docs/CVEWhitelistItem.md +8 -0
  14. data/docs/ChartAPIError.md +8 -0
  15. data/docs/ChartInfoEntry.md +15 -0
  16. data/docs/ChartInfoList.md +7 -0
  17. data/docs/ChartMetadata.md +18 -0
  18. data/docs/ChartRepositoryApi.md +698 -0
  19. data/docs/ChartVersion.md +23 -0
  20. data/docs/ChartVersionDetails.md +13 -0
  21. data/docs/ChartVersions.md +7 -0
  22. data/docs/ComponentHealthStatus.md +10 -0
  23. data/docs/ComponentOverviewEntry.md +9 -0
  24. data/docs/Configurations.md +42 -0
  25. data/docs/ConfigurationsResponse.md +41 -0
  26. data/docs/ConfigurationsScanAllPolicy.md +9 -0
  27. data/docs/ConfigurationsScanAllPolicyParameter.md +8 -0
  28. data/docs/ConflictFormatedError.md +8 -0
  29. data/docs/Dependency.md +10 -0
  30. data/docs/DetailedTag.md +18 -0
  31. data/docs/DigitalSignature.md +9 -0
  32. data/docs/EmailServerSetting.md +13 -0
  33. data/docs/Endpoint.md +9 -0
  34. data/docs/FilterStyle.md +10 -0
  35. data/docs/ForbiddenChartAPIError.md +8 -0
  36. data/docs/GCResult.md +15 -0
  37. data/docs/GeneralInfo.md +20 -0
  38. data/docs/GeneralInfoClairVulnerabilityStatus.md +9 -0
  39. data/docs/HasAdminRole.md +8 -0
  40. data/docs/ImmutableTagRule.md +11 -0
  41. data/docs/InlineResponse200.md +8 -0
  42. data/docs/InputSecret.md +8 -0
  43. data/docs/InsufficientStorageChartAPIError.md +8 -0
  44. data/docs/IntegerConfigItem.md +9 -0
  45. data/docs/InternalChartAPIError.md +8 -0
  46. data/docs/IsDefault.md +8 -0
  47. data/docs/JobStatus.md +15 -0
  48. data/docs/Label.md +16 -0
  49. data/docs/LabelApi.md +191 -0
  50. data/docs/Labels.md +7 -0
  51. data/docs/LdapConf.md +15 -0
  52. data/docs/LdapFailedImportUsers.md +9 -0
  53. data/docs/LdapImportUsers.md +8 -0
  54. data/docs/LdapUsers.md +10 -0
  55. data/docs/Manifest.md +9 -0
  56. data/docs/Namespace.md +9 -0
  57. data/docs/NativeReportSummary.md +14 -0
  58. data/docs/NotFoundChartAPIError.md +8 -0
  59. data/docs/OverallHealthStatus.md +9 -0
  60. data/docs/Password.md +9 -0
  61. data/docs/Permission.md +9 -0
  62. data/docs/PingRegistry.md +14 -0
  63. data/docs/ProductsApi.md +8594 -0
  64. data/docs/Project.md +21 -0
  65. data/docs/ProjectMember.md +10 -0
  66. data/docs/ProjectMemberEntity.md +14 -0
  67. data/docs/ProjectMetadata.md +13 -0
  68. data/docs/ProjectReq.md +12 -0
  69. data/docs/ProjectScanner.md +8 -0
  70. data/docs/ProjectSummary.md +14 -0
  71. data/docs/ProjectSummaryQuota.md +9 -0
  72. data/docs/PutRegistry.md +14 -0
  73. data/docs/Quota.md +13 -0
  74. data/docs/QuotaApi.md +118 -0
  75. data/docs/QuotaRefObject.md +7 -0
  76. data/docs/QuotaSwitcher.md +8 -0
  77. data/docs/QuotaUpdateReq.md +8 -0
  78. data/docs/Registry.md +17 -0
  79. data/docs/RegistryCredential.md +10 -0
  80. data/docs/RegistryInfo.md +11 -0
  81. data/docs/ReplicationExecution.md +19 -0
  82. data/docs/ReplicationFilter.md +9 -0
  83. data/docs/ReplicationPolicy.md +20 -0
  84. data/docs/ReplicationTask.md +16 -0
  85. data/docs/ReplicationTrigger.md +9 -0
  86. data/docs/RepoSignature.md +9 -0
  87. data/docs/Report.md +11 -0
  88. data/docs/Repository.md +17 -0
  89. data/docs/RepositoryDescription.md +8 -0
  90. data/docs/Resource.md +8 -0
  91. data/docs/ResourceList.md +7 -0
  92. data/docs/RetagReq.md +10 -0
  93. data/docs/RetentionApi.md +449 -0
  94. data/docs/RetentionExecution.md +14 -0
  95. data/docs/RetentionExecutionTask.md +18 -0
  96. data/docs/RetentionMetadata.md +10 -0
  97. data/docs/RetentionPolicy.md +12 -0
  98. data/docs/RetentionPolicyScope.md +9 -0
  99. data/docs/RetentionRule.md +15 -0
  100. data/docs/RetentionRuleMetadata.md +11 -0
  101. data/docs/RetentionRuleParamMetadata.md +10 -0
  102. data/docs/RetentionRuleTrigger.md +10 -0
  103. data/docs/RetentionSelector.md +10 -0
  104. data/docs/RetentionSelectorMetadata.md +10 -0
  105. data/docs/RobotAccount.md +15 -0
  106. data/docs/RobotAccountAccess.md +9 -0
  107. data/docs/RobotAccountApi.md +291 -0
  108. data/docs/RobotAccountCreate.md +10 -0
  109. data/docs/RobotAccountPostRep.md +9 -0
  110. data/docs/RobotAccountUpdate.md +8 -0
  111. data/docs/Role.md +11 -0
  112. data/docs/RoleParam.md +9 -0
  113. data/docs/RoleRequest.md +8 -0
  114. data/docs/ScanApi.md +281 -0
  115. data/docs/ScanOverview.md +7 -0
  116. data/docs/Scanner.md +10 -0
  117. data/docs/ScannerAdapterMetadata.md +10 -0
  118. data/docs/ScannerCapability.md +9 -0
  119. data/docs/ScannerRegistration.md +21 -0
  120. data/docs/ScannerRegistrationReq.md +15 -0
  121. data/docs/ScannerRegistrationSettings.md +11 -0
  122. data/docs/ScannersApi.md +600 -0
  123. data/docs/Search.md +10 -0
  124. data/docs/SearchRepository.md +13 -0
  125. data/docs/SearchResult.md +10 -0
  126. data/docs/SecurityReport.md +8 -0
  127. data/docs/StatisticMap.md +13 -0
  128. data/docs/Stats.md +11 -0
  129. data/docs/Storage.md +9 -0
  130. data/docs/StringConfigItem.md +9 -0
  131. data/docs/SystemApi.md +163 -0
  132. data/docs/SystemInfo.md +8 -0
  133. data/docs/Tags.md +8 -0
  134. data/docs/TriggerSettings.md +8 -0
  135. data/docs/UnauthorizedChartAPIError.md +8 -0
  136. data/docs/User.md +21 -0
  137. data/docs/UserEntity.md +9 -0
  138. data/docs/UserGroup.md +11 -0
  139. data/docs/UserProfile.md +10 -0
  140. data/docs/UserSearch.md +9 -0
  141. data/docs/VulnNamespaceTimestamp.md +9 -0
  142. data/docs/VulnerabilityItem.md +14 -0
  143. data/docs/VulnerabilitySummary.md +10 -0
  144. data/docs/WebhookJob.md +15 -0
  145. data/docs/WebhookLastTrigger.md +11 -0
  146. data/docs/WebhookPolicy.md +17 -0
  147. data/docs/WebhookTargetObject.md +11 -0
  148. data/git_push.sh +55 -0
  149. data/harbor1_client.gemspec +46 -0
  150. data/lib/harbor1_client.rb +182 -0
  151. data/lib/harbor1_client/api/chart_repository_api.rb +762 -0
  152. data/lib/harbor1_client/api/label_api.rb +230 -0
  153. data/lib/harbor1_client/api/products_api.rb +8783 -0
  154. data/lib/harbor1_client/api/quota_api.rb +136 -0
  155. data/lib/harbor1_client/api/retention_api.rb +482 -0
  156. data/lib/harbor1_client/api/robot_account_api.rb +321 -0
  157. data/lib/harbor1_client/api/scan_api.rb +307 -0
  158. data/lib/harbor1_client/api/scanners_api.rb +624 -0
  159. data/lib/harbor1_client/api/system_api.rb +173 -0
  160. data/lib/harbor1_client/api_client.rb +391 -0
  161. data/lib/harbor1_client/api_error.rb +38 -0
  162. data/lib/harbor1_client/configuration.rb +209 -0
  163. data/lib/harbor1_client/models/access_log.rb +235 -0
  164. data/lib/harbor1_client/models/action.rb +184 -0
  165. data/lib/harbor1_client/models/action_1.rb +184 -0
  166. data/lib/harbor1_client/models/admin_job_schedule.rb +184 -0
  167. data/lib/harbor1_client/models/admin_job_schedule_obj.rb +195 -0
  168. data/lib/harbor1_client/models/bad_request_formated_error.rb +191 -0
  169. data/lib/harbor1_client/models/bool_config_item.rb +195 -0
  170. data/lib/harbor1_client/models/chart_api_error.rb +191 -0
  171. data/lib/harbor1_client/models/chart_info_entry.rb +271 -0
  172. data/lib/harbor1_client/models/chart_info_list.rb +176 -0
  173. data/lib/harbor1_client/models/chart_metadata.rb +320 -0
  174. data/lib/harbor1_client/models/chart_version.rb +371 -0
  175. data/lib/harbor1_client/models/chart_version_details.rb +236 -0
  176. data/lib/harbor1_client/models/chart_versions.rb +176 -0
  177. data/lib/harbor1_client/models/component_health_status.rb +206 -0
  178. data/lib/harbor1_client/models/component_overview_entry.rb +195 -0
  179. data/lib/harbor1_client/models/configurations.rb +524 -0
  180. data/lib/harbor1_client/models/configurations_response.rb +514 -0
  181. data/lib/harbor1_client/models/configurations_scan_all_policy.rb +194 -0
  182. data/lib/harbor1_client/models/configurations_scan_all_policy_parameter.rb +186 -0
  183. data/lib/harbor1_client/models/conflict_formated_error.rb +191 -0
  184. data/lib/harbor1_client/models/cve_whitelist.rb +217 -0
  185. data/lib/harbor1_client/models/cve_whitelist_item.rb +186 -0
  186. data/lib/harbor1_client/models/dependency.rb +216 -0
  187. data/lib/harbor1_client/models/detailed_tag.rb +287 -0
  188. data/lib/harbor1_client/models/digital_signature.rb +196 -0
  189. data/lib/harbor1_client/models/email_server_setting.rb +235 -0
  190. data/lib/harbor1_client/models/endpoint.rb +195 -0
  191. data/lib/harbor1_client/models/filter_style.rb +208 -0
  192. data/lib/harbor1_client/models/forbidden_chart_api_error.rb +191 -0
  193. data/lib/harbor1_client/models/gc_result.rb +254 -0
  194. data/lib/harbor1_client/models/general_info.rb +304 -0
  195. data/lib/harbor1_client/models/general_info_clair_vulnerability_status.rb +198 -0
  196. data/lib/harbor1_client/models/has_admin_role.rb +185 -0
  197. data/lib/harbor1_client/models/immutable_tag_rule.rb +211 -0
  198. data/lib/harbor1_client/models/inline_response_200.rb +184 -0
  199. data/lib/harbor1_client/models/input_secret.rb +185 -0
  200. data/lib/harbor1_client/models/insufficient_storage_chart_api_error.rb +191 -0
  201. data/lib/harbor1_client/models/integer_config_item.rb +195 -0
  202. data/lib/harbor1_client/models/internal_chart_api_error.rb +191 -0
  203. data/lib/harbor1_client/models/is_default.rb +185 -0
  204. data/lib/harbor1_client/models/job_status.rb +257 -0
  205. data/lib/harbor1_client/models/label.rb +265 -0
  206. data/lib/harbor1_client/models/labels.rb +176 -0
  207. data/lib/harbor1_client/models/ldap_conf.rb +255 -0
  208. data/lib/harbor1_client/models/ldap_failed_import_users.rb +195 -0
  209. data/lib/harbor1_client/models/ldap_import_users.rb +187 -0
  210. data/lib/harbor1_client/models/ldap_users.rb +205 -0
  211. data/lib/harbor1_client/models/manifest.rb +195 -0
  212. data/lib/harbor1_client/models/namespace.rb +196 -0
  213. data/lib/harbor1_client/models/native_report_summary.rb +245 -0
  214. data/lib/harbor1_client/models/not_found_chart_api_error.rb +191 -0
  215. data/lib/harbor1_client/models/overall_health_status.rb +197 -0
  216. data/lib/harbor1_client/models/password.rb +195 -0
  217. data/lib/harbor1_client/models/permission.rb +196 -0
  218. data/lib/harbor1_client/models/ping_registry.rb +245 -0
  219. data/lib/harbor1_client/models/project.rb +317 -0
  220. data/lib/harbor1_client/models/project_member.rb +203 -0
  221. data/lib/harbor1_client/models/project_member_entity.rb +245 -0
  222. data/lib/harbor1_client/models/project_metadata.rb +235 -0
  223. data/lib/harbor1_client/models/project_req.rb +225 -0
  224. data/lib/harbor1_client/models/project_scanner.rb +185 -0
  225. data/lib/harbor1_client/models/project_summary.rb +244 -0
  226. data/lib/harbor1_client/models/project_summary_quota.rb +195 -0
  227. data/lib/harbor1_client/models/put_registry.rb +245 -0
  228. data/lib/harbor1_client/models/quota.rb +236 -0
  229. data/lib/harbor1_client/models/quota_ref_object.rb +175 -0
  230. data/lib/harbor1_client/models/quota_switcher.rb +185 -0
  231. data/lib/harbor1_client/models/quota_update_req.rb +185 -0
  232. data/lib/harbor1_client/models/registry.rb +274 -0
  233. data/lib/harbor1_client/models/registry_credential.rb +205 -0
  234. data/lib/harbor1_client/models/registry_info.rb +220 -0
  235. data/lib/harbor1_client/models/replication_execution.rb +296 -0
  236. data/lib/harbor1_client/models/replication_filter.rb +195 -0
  237. data/lib/harbor1_client/models/replication_policy.rb +306 -0
  238. data/lib/harbor1_client/models/replication_task.rb +266 -0
  239. data/lib/harbor1_client/models/replication_trigger.rb +194 -0
  240. data/lib/harbor1_client/models/repo_signature.rb +195 -0
  241. data/lib/harbor1_client/models/report.rb +216 -0
  242. data/lib/harbor1_client/models/repository.rb +277 -0
  243. data/lib/harbor1_client/models/repository_description.rb +185 -0
  244. data/lib/harbor1_client/models/resource.rb +187 -0
  245. data/lib/harbor1_client/models/resource_list.rb +175 -0
  246. data/lib/harbor1_client/models/retag_req.rb +205 -0
  247. data/lib/harbor1_client/models/retention_execution.rb +238 -0
  248. data/lib/harbor1_client/models/retention_execution_task.rb +274 -0
  249. data/lib/harbor1_client/models/retention_metadata.rb +212 -0
  250. data/lib/harbor1_client/models/retention_policy.rb +223 -0
  251. data/lib/harbor1_client/models/retention_policy_scope.rb +193 -0
  252. data/lib/harbor1_client/models/retention_rule.rb +253 -0
  253. data/lib/harbor1_client/models/retention_rule_metadata.rb +218 -0
  254. data/lib/harbor1_client/models/retention_rule_param_metadata.rb +203 -0
  255. data/lib/harbor1_client/models/retention_rule_trigger.rb +202 -0
  256. data/lib/harbor1_client/models/retention_selector.rb +202 -0
  257. data/lib/harbor1_client/models/retention_selector_metadata.rb +205 -0
  258. data/lib/harbor1_client/models/robot_account.rb +256 -0
  259. data/lib/harbor1_client/models/robot_account_access.rb +195 -0
  260. data/lib/harbor1_client/models/robot_account_create.rb +207 -0
  261. data/lib/harbor1_client/models/robot_account_post_rep.rb +195 -0
  262. data/lib/harbor1_client/models/robot_account_update.rb +185 -0
  263. data/lib/harbor1_client/models/role.rb +214 -0
  264. data/lib/harbor1_client/models/role_param.rb +197 -0
  265. data/lib/harbor1_client/models/role_request.rb +185 -0
  266. data/lib/harbor1_client/models/scan_overview.rb +176 -0
  267. data/lib/harbor1_client/models/scanner.rb +205 -0
  268. data/lib/harbor1_client/models/scanner_adapter_metadata.rb +207 -0
  269. data/lib/harbor1_client/models/scanner_capability.rb +197 -0
  270. data/lib/harbor1_client/models/scanner_registration.rb +328 -0
  271. data/lib/harbor1_client/models/scanner_registration_req.rb +263 -0
  272. data/lib/harbor1_client/models/scanner_registration_settings.rb +217 -0
  273. data/lib/harbor1_client/models/search.rb +211 -0
  274. data/lib/harbor1_client/models/search_repository.rb +235 -0
  275. data/lib/harbor1_client/models/search_result.rb +205 -0
  276. data/lib/harbor1_client/models/security_report.rb +185 -0
  277. data/lib/harbor1_client/models/statistic_map.rb +235 -0
  278. data/lib/harbor1_client/models/stats.rb +218 -0
  279. data/lib/harbor1_client/models/storage.rb +195 -0
  280. data/lib/harbor1_client/models/string_config_item.rb +195 -0
  281. data/lib/harbor1_client/models/system_info.rb +187 -0
  282. data/lib/harbor1_client/models/tags.rb +185 -0
  283. data/lib/harbor1_client/models/trigger_settings.rb +185 -0
  284. data/lib/harbor1_client/models/unauthorized_chart_api_error.rb +191 -0
  285. data/lib/harbor1_client/models/user.rb +302 -0
  286. data/lib/harbor1_client/models/user_entity.rb +195 -0
  287. data/lib/harbor1_client/models/user_group.rb +215 -0
  288. data/lib/harbor1_client/models/user_profile.rb +205 -0
  289. data/lib/harbor1_client/models/user_search.rb +194 -0
  290. data/lib/harbor1_client/models/vuln_namespace_timestamp.rb +195 -0
  291. data/lib/harbor1_client/models/vulnerability_item.rb +247 -0
  292. data/lib/harbor1_client/models/vulnerability_summary.rb +208 -0
  293. data/lib/harbor1_client/models/webhook_job.rb +256 -0
  294. data/lib/harbor1_client/models/webhook_last_trigger.rb +216 -0
  295. data/lib/harbor1_client/models/webhook_policy.rb +278 -0
  296. data/lib/harbor1_client/models/webhook_target_object.rb +216 -0
  297. data/lib/harbor1_client/version.rb +15 -0
  298. data/spec/api/chart_repository_api_spec.rb +196 -0
  299. data/spec/api/label_api_spec.rb +79 -0
  300. data/spec/api/products_api_spec.rb +2010 -0
  301. data/spec/api/quota_api_spec.rb +60 -0
  302. data/spec/api/retention_api_spec.rb +136 -0
  303. data/spec/api/robot_account_api_spec.rb +100 -0
  304. data/spec/api/scan_api_spec.rb +98 -0
  305. data/spec/api/scanners_api_spec.rb +169 -0
  306. data/spec/api/system_api_spec.rb +70 -0
  307. data/spec/api_client_spec.rb +243 -0
  308. data/spec/configuration_spec.rb +42 -0
  309. data/spec/models/access_log_spec.rb +71 -0
  310. data/spec/models/action_1_spec.rb +41 -0
  311. data/spec/models/action_spec.rb +41 -0
  312. data/spec/models/admin_job_schedule_obj_spec.rb +47 -0
  313. data/spec/models/admin_job_schedule_spec.rb +41 -0
  314. data/spec/models/bad_request_formated_error_spec.rb +41 -0
  315. data/spec/models/bool_config_item_spec.rb +47 -0
  316. data/spec/models/chart_api_error_spec.rb +41 -0
  317. data/spec/models/chart_info_entry_spec.rb +83 -0
  318. data/spec/models/chart_info_list_spec.rb +35 -0
  319. data/spec/models/chart_metadata_spec.rb +101 -0
  320. data/spec/models/chart_version_details_spec.rb +71 -0
  321. data/spec/models/chart_version_spec.rb +131 -0
  322. data/spec/models/chart_versions_spec.rb +35 -0
  323. data/spec/models/component_health_status_spec.rb +53 -0
  324. data/spec/models/component_overview_entry_spec.rb +47 -0
  325. data/spec/models/configurations_response_spec.rb +239 -0
  326. data/spec/models/configurations_scan_all_policy_parameter_spec.rb +41 -0
  327. data/spec/models/configurations_scan_all_policy_spec.rb +47 -0
  328. data/spec/models/configurations_spec.rb +245 -0
  329. data/spec/models/conflict_formated_error_spec.rb +41 -0
  330. data/spec/models/cve_whitelist_item_spec.rb +41 -0
  331. data/spec/models/cve_whitelist_spec.rb +59 -0
  332. data/spec/models/dependency_spec.rb +53 -0
  333. data/spec/models/detailed_tag_spec.rb +101 -0
  334. data/spec/models/digital_signature_spec.rb +47 -0
  335. data/spec/models/email_server_setting_spec.rb +71 -0
  336. data/spec/models/endpoint_spec.rb +47 -0
  337. data/spec/models/filter_style_spec.rb +53 -0
  338. data/spec/models/forbidden_chart_api_error_spec.rb +41 -0
  339. data/spec/models/gc_result_spec.rb +83 -0
  340. data/spec/models/general_info_clair_vulnerability_status_spec.rb +47 -0
  341. data/spec/models/general_info_spec.rb +113 -0
  342. data/spec/models/has_admin_role_spec.rb +41 -0
  343. data/spec/models/immutable_tag_rule_spec.rb +59 -0
  344. data/spec/models/inline_response_200_spec.rb +41 -0
  345. data/spec/models/input_secret_spec.rb +41 -0
  346. data/spec/models/insufficient_storage_chart_api_error_spec.rb +41 -0
  347. data/spec/models/integer_config_item_spec.rb +47 -0
  348. data/spec/models/internal_chart_api_error_spec.rb +41 -0
  349. data/spec/models/is_default_spec.rb +41 -0
  350. data/spec/models/job_status_spec.rb +83 -0
  351. data/spec/models/label_spec.rb +89 -0
  352. data/spec/models/labels_spec.rb +35 -0
  353. data/spec/models/ldap_conf_spec.rb +83 -0
  354. data/spec/models/ldap_failed_import_users_spec.rb +47 -0
  355. data/spec/models/ldap_import_users_spec.rb +41 -0
  356. data/spec/models/ldap_users_spec.rb +53 -0
  357. data/spec/models/manifest_spec.rb +47 -0
  358. data/spec/models/namespace_spec.rb +47 -0
  359. data/spec/models/native_report_summary_spec.rb +77 -0
  360. data/spec/models/not_found_chart_api_error_spec.rb +41 -0
  361. data/spec/models/overall_health_status_spec.rb +47 -0
  362. data/spec/models/password_spec.rb +47 -0
  363. data/spec/models/permission_spec.rb +47 -0
  364. data/spec/models/ping_registry_spec.rb +77 -0
  365. data/spec/models/project_member_entity_spec.rb +77 -0
  366. data/spec/models/project_member_spec.rb +53 -0
  367. data/spec/models/project_metadata_spec.rb +71 -0
  368. data/spec/models/project_req_spec.rb +65 -0
  369. data/spec/models/project_scanner_spec.rb +41 -0
  370. data/spec/models/project_spec.rb +119 -0
  371. data/spec/models/project_summary_quota_spec.rb +47 -0
  372. data/spec/models/project_summary_spec.rb +77 -0
  373. data/spec/models/put_registry_spec.rb +77 -0
  374. data/spec/models/quota_ref_object_spec.rb +35 -0
  375. data/spec/models/quota_spec.rb +71 -0
  376. data/spec/models/quota_switcher_spec.rb +41 -0
  377. data/spec/models/quota_update_req_spec.rb +41 -0
  378. data/spec/models/registry_credential_spec.rb +53 -0
  379. data/spec/models/registry_info_spec.rb +59 -0
  380. data/spec/models/registry_spec.rb +95 -0
  381. data/spec/models/replication_execution_spec.rb +107 -0
  382. data/spec/models/replication_filter_spec.rb +47 -0
  383. data/spec/models/replication_policy_spec.rb +113 -0
  384. data/spec/models/replication_task_spec.rb +89 -0
  385. data/spec/models/replication_trigger_spec.rb +47 -0
  386. data/spec/models/repo_signature_spec.rb +47 -0
  387. data/spec/models/report_spec.rb +59 -0
  388. data/spec/models/repository_description_spec.rb +41 -0
  389. data/spec/models/repository_spec.rb +95 -0
  390. data/spec/models/resource_list_spec.rb +35 -0
  391. data/spec/models/resource_spec.rb +41 -0
  392. data/spec/models/retag_req_spec.rb +53 -0
  393. data/spec/models/retention_execution_spec.rb +77 -0
  394. data/spec/models/retention_execution_task_spec.rb +101 -0
  395. data/spec/models/retention_metadata_spec.rb +53 -0
  396. data/spec/models/retention_policy_scope_spec.rb +47 -0
  397. data/spec/models/retention_policy_spec.rb +65 -0
  398. data/spec/models/retention_rule_metadata_spec.rb +59 -0
  399. data/spec/models/retention_rule_param_metadata_spec.rb +53 -0
  400. data/spec/models/retention_rule_spec.rb +83 -0
  401. data/spec/models/retention_rule_trigger_spec.rb +53 -0
  402. data/spec/models/retention_selector_metadata_spec.rb +53 -0
  403. data/spec/models/retention_selector_spec.rb +53 -0
  404. data/spec/models/robot_account_access_spec.rb +47 -0
  405. data/spec/models/robot_account_create_spec.rb +53 -0
  406. data/spec/models/robot_account_post_rep_spec.rb +47 -0
  407. data/spec/models/robot_account_spec.rb +83 -0
  408. data/spec/models/robot_account_update_spec.rb +41 -0
  409. data/spec/models/role_param_spec.rb +47 -0
  410. data/spec/models/role_request_spec.rb +41 -0
  411. data/spec/models/role_spec.rb +59 -0
  412. data/spec/models/scan_overview_spec.rb +35 -0
  413. data/spec/models/scanner_adapter_metadata_spec.rb +53 -0
  414. data/spec/models/scanner_capability_spec.rb +47 -0
  415. data/spec/models/scanner_registration_req_spec.rb +83 -0
  416. data/spec/models/scanner_registration_settings_spec.rb +59 -0
  417. data/spec/models/scanner_registration_spec.rb +119 -0
  418. data/spec/models/scanner_spec.rb +53 -0
  419. data/spec/models/search_repository_spec.rb +71 -0
  420. data/spec/models/search_result_spec.rb +53 -0
  421. data/spec/models/search_spec.rb +53 -0
  422. data/spec/models/security_report_spec.rb +41 -0
  423. data/spec/models/statistic_map_spec.rb +71 -0
  424. data/spec/models/stats_spec.rb +59 -0
  425. data/spec/models/storage_spec.rb +47 -0
  426. data/spec/models/string_config_item_spec.rb +47 -0
  427. data/spec/models/system_info_spec.rb +41 -0
  428. data/spec/models/tags_spec.rb +41 -0
  429. data/spec/models/trigger_settings_spec.rb +41 -0
  430. data/spec/models/unauthorized_chart_api_error_spec.rb +41 -0
  431. data/spec/models/user_entity_spec.rb +47 -0
  432. data/spec/models/user_group_spec.rb +59 -0
  433. data/spec/models/user_profile_spec.rb +53 -0
  434. data/spec/models/user_search_spec.rb +47 -0
  435. data/spec/models/user_spec.rb +119 -0
  436. data/spec/models/vuln_namespace_timestamp_spec.rb +47 -0
  437. data/spec/models/vulnerability_item_spec.rb +77 -0
  438. data/spec/models/vulnerability_summary_spec.rb +53 -0
  439. data/spec/models/webhook_job_spec.rb +83 -0
  440. data/spec/models/webhook_last_trigger_spec.rb +59 -0
  441. data/spec/models/webhook_policy_spec.rb +95 -0
  442. data/spec/models/webhook_target_object_spec.rb +59 -0
  443. data/spec/spec_helper.rb +111 -0
  444. metadata +832 -0
@@ -0,0 +1,15 @@
1
+ =begin
2
+ #Harbor API
3
+
4
+ #These APIs provide services for manipulating Harbor project.
5
+
6
+ OpenAPI spec version: 1.10.0
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.17
10
+
11
+ =end
12
+
13
+ module Harbor1Client
14
+ VERSION = '0.1.0'
15
+ end
@@ -0,0 +1,196 @@
1
+ =begin
2
+ #Harbor API
3
+
4
+ #These APIs provide services for manipulating Harbor project.
5
+
6
+ OpenAPI spec version: 1.10.0
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.17
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for Harbor1Client::ChartRepositoryApi
17
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
18
+ # Please update as you see appropriate
19
+ describe 'ChartRepositoryApi' do
20
+ before do
21
+ # run before each test
22
+ @instance = Harbor1Client::ChartRepositoryApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of ChartRepositoryApi' do
30
+ it 'should create an instance of ChartRepositoryApi' do
31
+ expect(@instance).to be_instance_of(Harbor1Client::ChartRepositoryApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for chartrepo_charts_post
36
+ # Upload a chart file to the defult 'library' project.
37
+ # Upload a chart file to the default 'library' project. Uploading together with the prov file at the same time is also supported.
38
+ # @param chart The chart file
39
+ # @param [Hash] opts the optional parameters
40
+ # @option opts [File] :prov The provance file
41
+ # @return [nil]
42
+ describe 'chartrepo_charts_post test' do
43
+ it 'should work' do
44
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
45
+ end
46
+ end
47
+
48
+ # unit tests for chartrepo_health_get
49
+ # Check the health of chart repository service.
50
+ # Check the health of chart repository service.
51
+ # @param [Hash] opts the optional parameters
52
+ # @return [InlineResponse200]
53
+ describe 'chartrepo_health_get test' do
54
+ it 'should work' do
55
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
+ end
57
+ end
58
+
59
+ # unit tests for chartrepo_repo_charts_get
60
+ # Get all the charts under the specified project
61
+ # Get all the charts under the specified project
62
+ # @param repo The project name
63
+ # @param [Hash] opts the optional parameters
64
+ # @return [Array<ChartInfoEntry>]
65
+ describe 'chartrepo_repo_charts_get test' do
66
+ it 'should work' do
67
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
68
+ end
69
+ end
70
+
71
+ # unit tests for chartrepo_repo_charts_name_delete
72
+ # Delete all the versions of the specified chart
73
+ # Delete all the versions of the specified chart
74
+ # @param repo The project name
75
+ # @param name The chart name
76
+ # @param [Hash] opts the optional parameters
77
+ # @return [nil]
78
+ describe 'chartrepo_repo_charts_name_delete test' do
79
+ it 'should work' do
80
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
81
+ end
82
+ end
83
+
84
+ # unit tests for chartrepo_repo_charts_name_get
85
+ # Get all the versions of the specified chart
86
+ # Get all the versions of the specified chart
87
+ # @param repo The project name
88
+ # @param name The chart name
89
+ # @param [Hash] opts the optional parameters
90
+ # @return [ChartVersions]
91
+ describe 'chartrepo_repo_charts_name_get test' do
92
+ it 'should work' do
93
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
94
+ end
95
+ end
96
+
97
+ # unit tests for chartrepo_repo_charts_name_version_delete
98
+ # Delete the specified chart version
99
+ # Delete the specified chart version
100
+ # @param repo The project name
101
+ # @param name The chart name
102
+ # @param version The chart version
103
+ # @param [Hash] opts the optional parameters
104
+ # @return [nil]
105
+ describe 'chartrepo_repo_charts_name_version_delete test' do
106
+ it 'should work' do
107
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
108
+ end
109
+ end
110
+
111
+ # unit tests for chartrepo_repo_charts_name_version_get
112
+ # Get the specified chart version
113
+ # Get the specified chart version
114
+ # @param repo The project name
115
+ # @param name The chart name
116
+ # @param version The chart version
117
+ # @param [Hash] opts the optional parameters
118
+ # @return [ChartVersionDetails]
119
+ describe 'chartrepo_repo_charts_name_version_get test' do
120
+ it 'should work' do
121
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
122
+ end
123
+ end
124
+
125
+ # unit tests for chartrepo_repo_charts_name_version_labels_get
126
+ # Return the attahced labels of chart.
127
+ # Return the attahced labels of the specified chart version.
128
+ # @param repo The project name
129
+ # @param name The chart name
130
+ # @param version The chart version
131
+ # @param [Hash] opts the optional parameters
132
+ # @return [nil]
133
+ describe 'chartrepo_repo_charts_name_version_labels_get test' do
134
+ it 'should work' do
135
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
136
+ end
137
+ end
138
+
139
+ # unit tests for chartrepo_repo_charts_name_version_labels_id_delete
140
+ # Remove label from chart.
141
+ # Remove label from the specified chart version.
142
+ # @param repo The project name
143
+ # @param name The chart name
144
+ # @param version The chart version
145
+ # @param id The label ID
146
+ # @param [Hash] opts the optional parameters
147
+ # @return [nil]
148
+ describe 'chartrepo_repo_charts_name_version_labels_id_delete test' do
149
+ it 'should work' do
150
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
151
+ end
152
+ end
153
+
154
+ # unit tests for chartrepo_repo_charts_name_version_labels_post
155
+ # Mark label to chart.
156
+ # Mark label to the specified chart version.
157
+ # @param repo The project name
158
+ # @param name The chart name
159
+ # @param version The chart version
160
+ # @param label The label being marked to the chart version
161
+ # @param [Hash] opts the optional parameters
162
+ # @return [nil]
163
+ describe 'chartrepo_repo_charts_name_version_labels_post test' do
164
+ it 'should work' do
165
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
166
+ end
167
+ end
168
+
169
+ # unit tests for chartrepo_repo_charts_post
170
+ # Upload a chart file to the specified project.
171
+ # Upload a chart file to the specified project. With this API, the corresponding provance file can be uploaded together with chart file at once.
172
+ # @param repo The project name
173
+ # @param chart The chart file
174
+ # @param [Hash] opts the optional parameters
175
+ # @option opts [File] :prov The provance file
176
+ # @return [nil]
177
+ describe 'chartrepo_repo_charts_post test' do
178
+ it 'should work' do
179
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
180
+ end
181
+ end
182
+
183
+ # unit tests for chartrepo_repo_prov_post
184
+ # Upload a provance file to the specified project.
185
+ # Upload a provance file to the specified project. The provance file should be targeted for an existing chart file.
186
+ # @param repo The project name
187
+ # @param prov The provance file
188
+ # @param [Hash] opts the optional parameters
189
+ # @return [nil]
190
+ describe 'chartrepo_repo_prov_post test' do
191
+ it 'should work' do
192
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
193
+ end
194
+ end
195
+
196
+ end
@@ -0,0 +1,79 @@
1
+ =begin
2
+ #Harbor API
3
+
4
+ #These APIs provide services for manipulating Harbor project.
5
+
6
+ OpenAPI spec version: 1.10.0
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.17
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for Harbor1Client::LabelApi
17
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
18
+ # Please update as you see appropriate
19
+ describe 'LabelApi' do
20
+ before do
21
+ # run before each test
22
+ @instance = Harbor1Client::LabelApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of LabelApi' do
30
+ it 'should create an instance of LabelApi' do
31
+ expect(@instance).to be_instance_of(Harbor1Client::LabelApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for chartrepo_repo_charts_name_version_labels_get
36
+ # Return the attahced labels of chart.
37
+ # Return the attahced labels of the specified chart version.
38
+ # @param repo The project name
39
+ # @param name The chart name
40
+ # @param version The chart version
41
+ # @param [Hash] opts the optional parameters
42
+ # @return [nil]
43
+ describe 'chartrepo_repo_charts_name_version_labels_get test' do
44
+ it 'should work' do
45
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
46
+ end
47
+ end
48
+
49
+ # unit tests for chartrepo_repo_charts_name_version_labels_id_delete
50
+ # Remove label from chart.
51
+ # Remove label from the specified chart version.
52
+ # @param repo The project name
53
+ # @param name The chart name
54
+ # @param version The chart version
55
+ # @param id The label ID
56
+ # @param [Hash] opts the optional parameters
57
+ # @return [nil]
58
+ describe 'chartrepo_repo_charts_name_version_labels_id_delete test' do
59
+ it 'should work' do
60
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
61
+ end
62
+ end
63
+
64
+ # unit tests for chartrepo_repo_charts_name_version_labels_post
65
+ # Mark label to chart.
66
+ # Mark label to the specified chart version.
67
+ # @param repo The project name
68
+ # @param name The chart name
69
+ # @param version The chart version
70
+ # @param label The label being marked to the chart version
71
+ # @param [Hash] opts the optional parameters
72
+ # @return [nil]
73
+ describe 'chartrepo_repo_charts_name_version_labels_post test' do
74
+ it 'should work' do
75
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
76
+ end
77
+ end
78
+
79
+ end
@@ -0,0 +1,2010 @@
1
+ =begin
2
+ #Harbor API
3
+
4
+ #These APIs provide services for manipulating Harbor project.
5
+
6
+ OpenAPI spec version: 1.10.0
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.17
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for Harbor1Client::ProductsApi
17
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
18
+ # Please update as you see appropriate
19
+ describe 'ProductsApi' do
20
+ before do
21
+ # run before each test
22
+ @instance = Harbor1Client::ProductsApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of ProductsApi' do
30
+ it 'should create an instance of ProductsApi' do
31
+ expect(@instance).to be_instance_of(Harbor1Client::ProductsApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for chartrepo_charts_post
36
+ # Upload a chart file to the defult &#39;library&#39; project.
37
+ # Upload a chart file to the default &#39;library&#39; project. Uploading together with the prov file at the same time is also supported.
38
+ # @param chart The chart file
39
+ # @param [Hash] opts the optional parameters
40
+ # @option opts [File] :prov The provance file
41
+ # @return [nil]
42
+ describe 'chartrepo_charts_post test' do
43
+ it 'should work' do
44
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
45
+ end
46
+ end
47
+
48
+ # unit tests for chartrepo_health_get
49
+ # Check the health of chart repository service.
50
+ # Check the health of chart repository service.
51
+ # @param [Hash] opts the optional parameters
52
+ # @return [InlineResponse200]
53
+ describe 'chartrepo_health_get test' do
54
+ it 'should work' do
55
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
+ end
57
+ end
58
+
59
+ # unit tests for chartrepo_repo_charts_get
60
+ # Get all the charts under the specified project
61
+ # Get all the charts under the specified project
62
+ # @param repo The project name
63
+ # @param [Hash] opts the optional parameters
64
+ # @return [Array<ChartInfoEntry>]
65
+ describe 'chartrepo_repo_charts_get test' do
66
+ it 'should work' do
67
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
68
+ end
69
+ end
70
+
71
+ # unit tests for chartrepo_repo_charts_name_delete
72
+ # Delete all the versions of the specified chart
73
+ # Delete all the versions of the specified chart
74
+ # @param repo The project name
75
+ # @param name The chart name
76
+ # @param [Hash] opts the optional parameters
77
+ # @return [nil]
78
+ describe 'chartrepo_repo_charts_name_delete test' do
79
+ it 'should work' do
80
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
81
+ end
82
+ end
83
+
84
+ # unit tests for chartrepo_repo_charts_name_get
85
+ # Get all the versions of the specified chart
86
+ # Get all the versions of the specified chart
87
+ # @param repo The project name
88
+ # @param name The chart name
89
+ # @param [Hash] opts the optional parameters
90
+ # @return [ChartVersions]
91
+ describe 'chartrepo_repo_charts_name_get test' do
92
+ it 'should work' do
93
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
94
+ end
95
+ end
96
+
97
+ # unit tests for chartrepo_repo_charts_name_version_delete
98
+ # Delete the specified chart version
99
+ # Delete the specified chart version
100
+ # @param repo The project name
101
+ # @param name The chart name
102
+ # @param version The chart version
103
+ # @param [Hash] opts the optional parameters
104
+ # @return [nil]
105
+ describe 'chartrepo_repo_charts_name_version_delete test' do
106
+ it 'should work' do
107
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
108
+ end
109
+ end
110
+
111
+ # unit tests for chartrepo_repo_charts_name_version_get
112
+ # Get the specified chart version
113
+ # Get the specified chart version
114
+ # @param repo The project name
115
+ # @param name The chart name
116
+ # @param version The chart version
117
+ # @param [Hash] opts the optional parameters
118
+ # @return [ChartVersionDetails]
119
+ describe 'chartrepo_repo_charts_name_version_get test' do
120
+ it 'should work' do
121
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
122
+ end
123
+ end
124
+
125
+ # unit tests for chartrepo_repo_charts_name_version_labels_get
126
+ # Return the attahced labels of chart.
127
+ # Return the attahced labels of the specified chart version.
128
+ # @param repo The project name
129
+ # @param name The chart name
130
+ # @param version The chart version
131
+ # @param [Hash] opts the optional parameters
132
+ # @return [nil]
133
+ describe 'chartrepo_repo_charts_name_version_labels_get test' do
134
+ it 'should work' do
135
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
136
+ end
137
+ end
138
+
139
+ # unit tests for chartrepo_repo_charts_name_version_labels_id_delete
140
+ # Remove label from chart.
141
+ # Remove label from the specified chart version.
142
+ # @param repo The project name
143
+ # @param name The chart name
144
+ # @param version The chart version
145
+ # @param id The label ID
146
+ # @param [Hash] opts the optional parameters
147
+ # @return [nil]
148
+ describe 'chartrepo_repo_charts_name_version_labels_id_delete test' do
149
+ it 'should work' do
150
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
151
+ end
152
+ end
153
+
154
+ # unit tests for chartrepo_repo_charts_name_version_labels_post
155
+ # Mark label to chart.
156
+ # Mark label to the specified chart version.
157
+ # @param repo The project name
158
+ # @param name The chart name
159
+ # @param version The chart version
160
+ # @param label The label being marked to the chart version
161
+ # @param [Hash] opts the optional parameters
162
+ # @return [nil]
163
+ describe 'chartrepo_repo_charts_name_version_labels_post test' do
164
+ it 'should work' do
165
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
166
+ end
167
+ end
168
+
169
+ # unit tests for chartrepo_repo_charts_post
170
+ # Upload a chart file to the specified project.
171
+ # Upload a chart file to the specified project. With this API, the corresponding provance file can be uploaded together with chart file at once.
172
+ # @param repo The project name
173
+ # @param chart The chart file
174
+ # @param [Hash] opts the optional parameters
175
+ # @option opts [File] :prov The provance file
176
+ # @return [nil]
177
+ describe 'chartrepo_repo_charts_post test' do
178
+ it 'should work' do
179
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
180
+ end
181
+ end
182
+
183
+ # unit tests for chartrepo_repo_prov_post
184
+ # Upload a provance file to the specified project.
185
+ # Upload a provance file to the specified project. The provance file should be targeted for an existing chart file.
186
+ # @param repo The project name
187
+ # @param prov The provance file
188
+ # @param [Hash] opts the optional parameters
189
+ # @return [nil]
190
+ describe 'chartrepo_repo_prov_post test' do
191
+ it 'should work' do
192
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
193
+ end
194
+ end
195
+
196
+ # unit tests for configurations_get
197
+ # Get system configurations.
198
+ # This endpoint is for retrieving system configurations that only provides for admin user.
199
+ # @param [Hash] opts the optional parameters
200
+ # @return [ConfigurationsResponse]
201
+ describe 'configurations_get test' do
202
+ it 'should work' do
203
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
204
+ end
205
+ end
206
+
207
+ # unit tests for configurations_put
208
+ # Modify system configurations.
209
+ # This endpoint is for modifying system configurations that only provides for admin user.
210
+ # @param configurations The configuration map can contain a subset of the attributes of the schema, which are to be updated.
211
+ # @param [Hash] opts the optional parameters
212
+ # @return [nil]
213
+ describe 'configurations_put test' do
214
+ it 'should work' do
215
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
216
+ end
217
+ end
218
+
219
+ # unit tests for email_ping_post
220
+ # Test connection and authentication with email server.
221
+ # Test connection and authentication with email server.
222
+ # @param [Hash] opts the optional parameters
223
+ # @option opts [EmailServerSetting] :settings Email server settings, if some of the settings are not assigned, they will be read from system configuration.
224
+ # @return [nil]
225
+ describe 'email_ping_post test' do
226
+ it 'should work' do
227
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
228
+ end
229
+ end
230
+
231
+ # unit tests for health_get
232
+ # Health check API
233
+ # The endpoint returns the health stauts of the system.
234
+ # @param [Hash] opts the optional parameters
235
+ # @return [OverallHealthStatus]
236
+ describe 'health_get test' do
237
+ it 'should work' do
238
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
239
+ end
240
+ end
241
+
242
+ # unit tests for internal_switchquota_put
243
+ # Enable or disable quota.
244
+ # This endpoint is for enable/disable quota. When quota is disabled, no resource require/release in image/chart push and delete.
245
+ # @param switcher
246
+ # @param [Hash] opts the optional parameters
247
+ # @return [nil]
248
+ describe 'internal_switchquota_put test' do
249
+ it 'should work' do
250
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
251
+ end
252
+ end
253
+
254
+ # unit tests for internal_syncquota_post
255
+ # Sync quota from registry/chart to DB.
256
+ # This endpoint is for syncing quota usage of registry/chart with database.
257
+ # @param [Hash] opts the optional parameters
258
+ # @return [nil]
259
+ describe 'internal_syncquota_post test' do
260
+ it 'should work' do
261
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
262
+ end
263
+ end
264
+
265
+ # unit tests for internal_syncregistry_post
266
+ # Sync repositories from registry to DB.
267
+ # This endpoint is for syncing all repositories of registry with database.
268
+ # @param [Hash] opts the optional parameters
269
+ # @return [nil]
270
+ describe 'internal_syncregistry_post test' do
271
+ it 'should work' do
272
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
273
+ end
274
+ end
275
+
276
+ # unit tests for labels_get
277
+ # List labels according to the query strings.
278
+ # This endpoint let user list labels by name, scope and project_id
279
+ # @param scope The label scope. Valid values are g and p. g for global labels and p for project labels.
280
+ # @param [Hash] opts the optional parameters
281
+ # @option opts [String] :name The label name.
282
+ # @option opts [Integer] :project_id Relevant project ID, required when scope is p.
283
+ # @option opts [Integer] :page The page nubmer.
284
+ # @option opts [Integer] :page_size The size of per page.
285
+ # @return [Array<Label>]
286
+ describe 'labels_get test' do
287
+ it 'should work' do
288
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
289
+ end
290
+ end
291
+
292
+ # unit tests for labels_id_delete
293
+ # Delete the label specified by ID.
294
+ # Delete the label specified by ID.
295
+ # @param id Label ID
296
+ # @param [Hash] opts the optional parameters
297
+ # @return [nil]
298
+ describe 'labels_id_delete test' do
299
+ it 'should work' do
300
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
301
+ end
302
+ end
303
+
304
+ # unit tests for labels_id_get
305
+ # Get the label specified by ID.
306
+ # This endpoint let user get the label by specific ID.
307
+ # @param id Label ID
308
+ # @param [Hash] opts the optional parameters
309
+ # @return [Label]
310
+ describe 'labels_id_get test' do
311
+ it 'should work' do
312
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
313
+ end
314
+ end
315
+
316
+ # unit tests for labels_id_put
317
+ # Update the label properties.
318
+ # This endpoint let user update label properties.
319
+ # @param id Label ID
320
+ # @param label The updated label json object.
321
+ # @param [Hash] opts the optional parameters
322
+ # @return [nil]
323
+ describe 'labels_id_put test' do
324
+ it 'should work' do
325
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
326
+ end
327
+ end
328
+
329
+ # unit tests for labels_id_resources_get
330
+ # Get the resources that the label is referenced by.
331
+ # This endpoint let user get the resources that the label is referenced by. Only the replication policies are returned for now.
332
+ # @param id Label ID
333
+ # @param [Hash] opts the optional parameters
334
+ # @return [Resource]
335
+ describe 'labels_id_resources_get test' do
336
+ it 'should work' do
337
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
338
+ end
339
+ end
340
+
341
+ # unit tests for labels_post
342
+ # Post creates a label
343
+ # This endpoint let user creates a label.
344
+ # @param label The json object of label.
345
+ # @param [Hash] opts the optional parameters
346
+ # @return [nil]
347
+ describe 'labels_post test' do
348
+ it 'should work' do
349
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
350
+ end
351
+ end
352
+
353
+ # unit tests for ldap_groups_search_get
354
+ # Search available ldap groups.
355
+ # This endpoint searches the available ldap groups based on related configuration parameters. support to search by groupname or groupdn.
356
+ # @param [Hash] opts the optional parameters
357
+ # @option opts [String] :groupname Ldap group name
358
+ # @option opts [String] :groupdn The LDAP group DN
359
+ # @return [Array<UserGroup>]
360
+ describe 'ldap_groups_search_get test' do
361
+ it 'should work' do
362
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
363
+ end
364
+ end
365
+
366
+ # unit tests for ldap_ping_post
367
+ # Ping available ldap service.
368
+ # This endpoint ping the available ldap service for test related configuration parameters.
369
+ # @param [Hash] opts the optional parameters
370
+ # @option opts [LdapConf] :ldapconf ldap configuration. support input ldap service configuration. If it&#39;s a empty request, will load current configuration from the system.
371
+ # @return [nil]
372
+ describe 'ldap_ping_post test' do
373
+ it 'should work' do
374
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
375
+ end
376
+ end
377
+
378
+ # unit tests for ldap_users_import_post
379
+ # Import selected available ldap users.
380
+ # This endpoint adds the selected available ldap users to harbor based on related configuration parameters from the system. System will try to guess the user email address and realname, add to harbor user information. If have errors when import user, will return the list of importing failed uid and the failed reason.
381
+ # @param uid_list The uid listed for importing. This list will check users validity of ldap service based on configuration from the system.
382
+ # @param [Hash] opts the optional parameters
383
+ # @return [nil]
384
+ describe 'ldap_users_import_post test' do
385
+ it 'should work' do
386
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
387
+ end
388
+ end
389
+
390
+ # unit tests for ldap_users_search_get
391
+ # Search available ldap users.
392
+ # This endpoint searches the available ldap users based on related configuration parameters. Support searched by input ladp configuration, load configuration from the system and specific filter.
393
+ # @param [Hash] opts the optional parameters
394
+ # @option opts [String] :username Registered user ID
395
+ # @return [Array<LdapUsers>]
396
+ describe 'ldap_users_search_get test' do
397
+ it 'should work' do
398
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
399
+ end
400
+ end
401
+
402
+ # unit tests for logs_get
403
+ # Get recent logs of the projects which the user is a member of
404
+ # This endpoint let user see the recent operation logs of the projects which he is member of
405
+ # @param [Hash] opts the optional parameters
406
+ # @option opts [String] :username Username of the operator.
407
+ # @option opts [String] :repository The name of repository
408
+ # @option opts [String] :tag The name of tag
409
+ # @option opts [String] :operation The operation
410
+ # @option opts [String] :begin_timestamp The begin timestamp
411
+ # @option opts [String] :end_timestamp The end timestamp
412
+ # @option opts [Integer] :page The page number, default is 1.
413
+ # @option opts [Integer] :page_size The size of per page, default is 10, maximum is 100.
414
+ # @return [Array<AccessLog>]
415
+ describe 'logs_get test' do
416
+ it 'should work' do
417
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
418
+ end
419
+ end
420
+
421
+ # unit tests for projects_get
422
+ # List projects
423
+ # This endpoint returns all projects created by Harbor, and can be filtered by project name.
424
+ # @param [Hash] opts the optional parameters
425
+ # @option opts [String] :name The name of project.
426
+ # @option opts [BOOLEAN] :public The project is public or private.
427
+ # @option opts [String] :owner The name of project owner.
428
+ # @option opts [Integer] :page The page number, default is 1.
429
+ # @option opts [Integer] :page_size The size of per page, default is 10, maximum is 100.
430
+ # @return [Array<Project>]
431
+ describe 'projects_get test' do
432
+ it 'should work' do
433
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
434
+ end
435
+ end
436
+
437
+ # unit tests for projects_head
438
+ # Check if the project name user provided already exists.
439
+ # This endpoint is used to check if the project name user provided already exist.
440
+ # @param project_name Project name for checking exists.
441
+ # @param [Hash] opts the optional parameters
442
+ # @return [nil]
443
+ describe 'projects_head test' do
444
+ it 'should work' do
445
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
446
+ end
447
+ end
448
+
449
+ # unit tests for projects_post
450
+ # Create a new project.
451
+ # This endpoint is for user to create a new project.
452
+ # @param project New created project.
453
+ # @param [Hash] opts the optional parameters
454
+ # @return [nil]
455
+ describe 'projects_post test' do
456
+ it 'should work' do
457
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
458
+ end
459
+ end
460
+
461
+ # unit tests for projects_project_id_delete
462
+ # Delete project by projectID
463
+ # This endpoint is aimed to delete project by project ID.
464
+ # @param project_id Project ID of project which will be deleted.
465
+ # @param [Hash] opts the optional parameters
466
+ # @return [nil]
467
+ describe 'projects_project_id_delete test' do
468
+ it 'should work' do
469
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
470
+ end
471
+ end
472
+
473
+ # unit tests for projects_project_id_get
474
+ # Return specific project detail information
475
+ # This endpoint returns specific project information by project ID.
476
+ # @param project_id Project ID for filtering results.
477
+ # @param [Hash] opts the optional parameters
478
+ # @return [Project]
479
+ describe 'projects_project_id_get test' do
480
+ it 'should work' do
481
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
482
+ end
483
+ end
484
+
485
+ # unit tests for projects_project_id_immutabletagrules_get
486
+ # List all immutable tag rules of current project
487
+ # This endpoint returns the immutable tag rules of a project
488
+ # @param project_id Relevant project ID.
489
+ # @param [Hash] opts the optional parameters
490
+ # @return [Array<ImmutableTagRule>]
491
+ describe 'projects_project_id_immutabletagrules_get test' do
492
+ it 'should work' do
493
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
494
+ end
495
+ end
496
+
497
+ # unit tests for projects_project_id_immutabletagrules_id_delete
498
+ # Delete the immutable tag rule.
499
+ # @param project_id Relevant project ID.
500
+ # @param id Immutable tag rule ID.
501
+ # @param [Hash] opts the optional parameters
502
+ # @return [nil]
503
+ describe 'projects_project_id_immutabletagrules_id_delete test' do
504
+ it 'should work' do
505
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
506
+ end
507
+ end
508
+
509
+ # unit tests for projects_project_id_immutabletagrules_id_put
510
+ # Update the immutable tag rule or enable or disable the rule
511
+ # @param project_id Relevant project ID.
512
+ # @param id Immutable tag rule ID.
513
+ # @param [Hash] opts the optional parameters
514
+ # @option opts [ImmutableTagRule] :immutabletagrule
515
+ # @return [nil]
516
+ describe 'projects_project_id_immutabletagrules_id_put test' do
517
+ it 'should work' do
518
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
519
+ end
520
+ end
521
+
522
+ # unit tests for projects_project_id_immutabletagrules_post
523
+ # Add an immutable tag rule to current project
524
+ # This endpoint add an immutable tag rule to the project
525
+ # @param project_id Relevant project ID.
526
+ # @param [Hash] opts the optional parameters
527
+ # @option opts [ImmutableTagRule] :immutabletagrule
528
+ # @return [nil]
529
+ describe 'projects_project_id_immutabletagrules_post test' do
530
+ it 'should work' do
531
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
532
+ end
533
+ end
534
+
535
+ # unit tests for projects_project_id_logs_get
536
+ # Get access logs accompany with a relevant project.
537
+ # This endpoint let user search access logs filtered by operations and date time ranges.
538
+ # @param project_id Relevant project ID
539
+ # @param [Hash] opts the optional parameters
540
+ # @option opts [String] :username Username of the operator.
541
+ # @option opts [String] :repository The name of repository
542
+ # @option opts [String] :tag The name of tag
543
+ # @option opts [String] :operation The operation
544
+ # @option opts [String] :begin_timestamp The begin timestamp
545
+ # @option opts [String] :end_timestamp The end timestamp
546
+ # @option opts [Integer] :page The page number, default is 1.
547
+ # @option opts [Integer] :page_size The size of per page, default is 10, maximum is 100.
548
+ # @return [Array<AccessLog>]
549
+ describe 'projects_project_id_logs_get test' do
550
+ it 'should work' do
551
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
552
+ end
553
+ end
554
+
555
+ # unit tests for projects_project_id_members_get
556
+ # Get all project member information
557
+ # Get all project member information
558
+ # @param project_id Relevant project ID.
559
+ # @param [Hash] opts the optional parameters
560
+ # @option opts [String] :entityname The entity name to search.
561
+ # @return [Array<ProjectMemberEntity>]
562
+ describe 'projects_project_id_members_get test' do
563
+ it 'should work' do
564
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
565
+ end
566
+ end
567
+
568
+ # unit tests for projects_project_id_members_mid_delete
569
+ # Delete project member
570
+ # @param project_id Relevant project ID.
571
+ # @param mid Member ID.
572
+ # @param [Hash] opts the optional parameters
573
+ # @return [nil]
574
+ describe 'projects_project_id_members_mid_delete test' do
575
+ it 'should work' do
576
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
577
+ end
578
+ end
579
+
580
+ # unit tests for projects_project_id_members_mid_get
581
+ # Get the project member information
582
+ # Get the project member information
583
+ # @param project_id Relevant project ID.
584
+ # @param mid The member ID
585
+ # @param [Hash] opts the optional parameters
586
+ # @return [ProjectMemberEntity]
587
+ describe 'projects_project_id_members_mid_get test' do
588
+ it 'should work' do
589
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
590
+ end
591
+ end
592
+
593
+ # unit tests for projects_project_id_members_mid_put
594
+ # Update project member
595
+ # Update project member relationship
596
+ # @param project_id Relevant project ID.
597
+ # @param mid Member ID.
598
+ # @param [Hash] opts the optional parameters
599
+ # @option opts [RoleRequest] :role
600
+ # @return [nil]
601
+ describe 'projects_project_id_members_mid_put test' do
602
+ it 'should work' do
603
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
604
+ end
605
+ end
606
+
607
+ # unit tests for projects_project_id_members_post
608
+ # Create project member
609
+ # Create project member relationship, the member can be one of the user_member and group_member, The user_member need to specify user_id or username. If the user already exist in harbor DB, specify the user_id, If does not exist in harbor DB, it will SearchAndOnBoard the user. The group_member need to specify id or ldap_group_dn. If the group already exist in harbor DB. specify the user group&#39;s id, If does not exist, it will SearchAndOnBoard the group.
610
+ # @param project_id Relevant project ID.
611
+ # @param [Hash] opts the optional parameters
612
+ # @option opts [ProjectMember] :project_member
613
+ # @return [nil]
614
+ describe 'projects_project_id_members_post test' do
615
+ it 'should work' do
616
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
617
+ end
618
+ end
619
+
620
+ # unit tests for projects_project_id_metadatas_get
621
+ # Get project metadata.
622
+ # This endpoint returns metadata of the project specified by project ID.
623
+ # @param project_id The ID of project.
624
+ # @param [Hash] opts the optional parameters
625
+ # @return [ProjectMetadata]
626
+ describe 'projects_project_id_metadatas_get test' do
627
+ it 'should work' do
628
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
629
+ end
630
+ end
631
+
632
+ # unit tests for projects_project_id_metadatas_meta_name_delete
633
+ # Delete metadata of a project
634
+ # This endpoint is aimed to delete metadata of a project.
635
+ # @param project_id The ID of project.
636
+ # @param meta_name The name of metadat.
637
+ # @param [Hash] opts the optional parameters
638
+ # @return [nil]
639
+ describe 'projects_project_id_metadatas_meta_name_delete test' do
640
+ it 'should work' do
641
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
642
+ end
643
+ end
644
+
645
+ # unit tests for projects_project_id_metadatas_meta_name_get
646
+ # Get project metadata
647
+ # This endpoint returns specified metadata of a project.
648
+ # @param project_id Project ID for filtering results.
649
+ # @param meta_name The name of metadat.
650
+ # @param [Hash] opts the optional parameters
651
+ # @return [ProjectMetadata]
652
+ describe 'projects_project_id_metadatas_meta_name_get test' do
653
+ it 'should work' do
654
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
655
+ end
656
+ end
657
+
658
+ # unit tests for projects_project_id_metadatas_meta_name_put
659
+ # Update metadata of a project.
660
+ # This endpoint is aimed to update the metadata of a project.
661
+ # @param project_id The ID of project.
662
+ # @param meta_name The name of metadat.
663
+ # @param [Hash] opts the optional parameters
664
+ # @return [nil]
665
+ describe 'projects_project_id_metadatas_meta_name_put test' do
666
+ it 'should work' do
667
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
668
+ end
669
+ end
670
+
671
+ # unit tests for projects_project_id_metadatas_post
672
+ # Add metadata for the project.
673
+ # This endpoint is aimed to add metadata of a project.
674
+ # @param project_id Selected project ID.
675
+ # @param metadata The metadata of project.
676
+ # @param [Hash] opts the optional parameters
677
+ # @return [nil]
678
+ describe 'projects_project_id_metadatas_post test' do
679
+ it 'should work' do
680
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
681
+ end
682
+ end
683
+
684
+ # unit tests for projects_project_id_put
685
+ # Update properties for a selected project.
686
+ # This endpoint is aimed to update the properties of a project.
687
+ # @param project_id Selected project ID.
688
+ # @param project Updates of project.
689
+ # @param [Hash] opts the optional parameters
690
+ # @return [nil]
691
+ describe 'projects_project_id_put test' do
692
+ it 'should work' do
693
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
694
+ end
695
+ end
696
+
697
+ # unit tests for projects_project_id_robots_get
698
+ # Get all robot accounts of specified project
699
+ # Get all robot accounts of specified project
700
+ # @param project_id Relevant project ID.
701
+ # @param [Hash] opts the optional parameters
702
+ # @return [Array<RobotAccount>]
703
+ describe 'projects_project_id_robots_get test' do
704
+ it 'should work' do
705
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
706
+ end
707
+ end
708
+
709
+ # unit tests for projects_project_id_robots_post
710
+ # Create a robot account for project
711
+ # Create a robot account for project
712
+ # @param project_id Relevant project ID.
713
+ # @param robot Request body of creating a robot account.
714
+ # @param [Hash] opts the optional parameters
715
+ # @return [RobotAccountPostRep]
716
+ describe 'projects_project_id_robots_post test' do
717
+ it 'should work' do
718
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
719
+ end
720
+ end
721
+
722
+ # unit tests for projects_project_id_robots_robot_id_delete
723
+ # Delete the specified robot account
724
+ # Delete the specified robot account
725
+ # @param project_id Relevant project ID.
726
+ # @param robot_id The ID of robot account.
727
+ # @param [Hash] opts the optional parameters
728
+ # @return [nil]
729
+ describe 'projects_project_id_robots_robot_id_delete test' do
730
+ it 'should work' do
731
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
732
+ end
733
+ end
734
+
735
+ # unit tests for projects_project_id_robots_robot_id_get
736
+ # Return the infor of the specified robot account.
737
+ # Return the infor of the specified robot account.
738
+ # @param project_id Relevant project ID.
739
+ # @param robot_id The ID of robot account.
740
+ # @param [Hash] opts the optional parameters
741
+ # @return [RobotAccount]
742
+ describe 'projects_project_id_robots_robot_id_get test' do
743
+ it 'should work' do
744
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
745
+ end
746
+ end
747
+
748
+ # unit tests for projects_project_id_robots_robot_id_put
749
+ # Update status of robot account.
750
+ # Used to disable/enable a specified robot account.
751
+ # @param project_id Relevant project ID.
752
+ # @param robot_id The ID of robot account.
753
+ # @param robot Request body of enable/disable a robot account.
754
+ # @param [Hash] opts the optional parameters
755
+ # @return [nil]
756
+ describe 'projects_project_id_robots_robot_id_put test' do
757
+ it 'should work' do
758
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
759
+ end
760
+ end
761
+
762
+ # unit tests for projects_project_id_scanner_candidates_get
763
+ # Get scanner registration candidates for configurating project level scanner
764
+ # Retrieve the system configured scanner registrations as candidates of setting project level scanner.
765
+ # @param project_id The project identifier.
766
+ # @param [Hash] opts the optional parameters
767
+ # @return [Array<ScannerRegistration>]
768
+ describe 'projects_project_id_scanner_candidates_get test' do
769
+ it 'should work' do
770
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
771
+ end
772
+ end
773
+
774
+ # unit tests for projects_project_id_scanner_get
775
+ # Get project level scanner
776
+ # 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.
777
+ # @param project_id The project identifier.
778
+ # @param [Hash] opts the optional parameters
779
+ # @return [ScannerRegistration]
780
+ describe 'projects_project_id_scanner_get test' do
781
+ it 'should work' do
782
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
783
+ end
784
+ end
785
+
786
+ # unit tests for projects_project_id_summary_get
787
+ # Get summary of the project.
788
+ # Get summary of the project.
789
+ # @param project_id Relevant project ID
790
+ # @param [Hash] opts the optional parameters
791
+ # @return [ProjectSummary]
792
+ describe 'projects_project_id_summary_get test' do
793
+ it 'should work' do
794
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
795
+ end
796
+ end
797
+
798
+ # unit tests for projects_project_id_webhook_jobs_get
799
+ # List project webhook jobs
800
+ # This endpoint returns webhook jobs of a project.
801
+ # @param project_id Relevant project ID.
802
+ # @param policy_id The policy ID.
803
+ # @param [Hash] opts the optional parameters
804
+ # @return [Array<WebhookJob>]
805
+ describe 'projects_project_id_webhook_jobs_get test' do
806
+ it 'should work' do
807
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
808
+ end
809
+ end
810
+
811
+ # unit tests for projects_project_id_webhook_lasttrigger_get
812
+ # Get project webhook policy last trigger info
813
+ # This endpoint returns last trigger information of project webhook policy.
814
+ # @param project_id Relevant project ID.
815
+ # @param [Hash] opts the optional parameters
816
+ # @return [Array<WebhookLastTrigger>]
817
+ describe 'projects_project_id_webhook_lasttrigger_get test' do
818
+ it 'should work' do
819
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
820
+ end
821
+ end
822
+
823
+ # unit tests for projects_project_id_webhook_policies_get
824
+ # List project webhook policies.
825
+ # This endpoint returns webhook policies of a project.
826
+ # @param project_id Relevant project ID.
827
+ # @param [Hash] opts the optional parameters
828
+ # @return [Array<WebhookPolicy>]
829
+ describe 'projects_project_id_webhook_policies_get test' do
830
+ it 'should work' do
831
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
832
+ end
833
+ end
834
+
835
+ # unit tests for projects_project_id_webhook_policies_policy_id_delete
836
+ # Delete webhook policy of a project
837
+ # This endpoint is aimed to delete webhookpolicy of a project.
838
+ # @param project_id Relevant project ID.
839
+ # @param policy_id The id of webhook policy.
840
+ # @param [Hash] opts the optional parameters
841
+ # @return [nil]
842
+ describe 'projects_project_id_webhook_policies_policy_id_delete test' do
843
+ it 'should work' do
844
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
845
+ end
846
+ end
847
+
848
+ # unit tests for projects_project_id_webhook_policies_policy_id_get
849
+ # Get project webhook policy
850
+ # This endpoint returns specified webhook policy of a project.
851
+ # @param project_id Relevant project ID.
852
+ # @param policy_id The id of webhook policy.
853
+ # @param [Hash] opts the optional parameters
854
+ # @return [WebhookPolicy]
855
+ describe 'projects_project_id_webhook_policies_policy_id_get test' do
856
+ it 'should work' do
857
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
858
+ end
859
+ end
860
+
861
+ # unit tests for projects_project_id_webhook_policies_policy_id_put
862
+ # Update webhook policy of a project.
863
+ # This endpoint is aimed to update the webhook policy of a project.
864
+ # @param project_id Relevant project ID.
865
+ # @param policy_id The id of webhook policy.
866
+ # @param policy All properties needed except \&quot;id\&quot;, \&quot;project_id\&quot;, \&quot;creation_time\&quot;, \&quot;update_time\&quot;.
867
+ # @param [Hash] opts the optional parameters
868
+ # @return [nil]
869
+ describe 'projects_project_id_webhook_policies_policy_id_put test' do
870
+ it 'should work' do
871
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
872
+ end
873
+ end
874
+
875
+ # unit tests for projects_project_id_webhook_policies_post
876
+ # Create project webhook policy.
877
+ # This endpoint create a webhook policy if the project does not have one.
878
+ # @param project_id Relevant project ID
879
+ # @param policy Properties \&quot;targets\&quot; and \&quot;event_types\&quot; needed.
880
+ # @param [Hash] opts the optional parameters
881
+ # @return [nil]
882
+ describe 'projects_project_id_webhook_policies_post test' do
883
+ it 'should work' do
884
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
885
+ end
886
+ end
887
+
888
+ # unit tests for projects_project_id_webhook_policies_test_post
889
+ # Test project webhook connection
890
+ # This endpoint tests webhook connection of a project.
891
+ # @param project_id Relevant project ID.
892
+ # @param policy Only property \&quot;targets\&quot; needed.
893
+ # @param [Hash] opts the optional parameters
894
+ # @return [nil]
895
+ describe 'projects_project_id_webhook_policies_test_post test' do
896
+ it 'should work' do
897
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
898
+ end
899
+ end
900
+
901
+ # unit tests for quotas_get
902
+ # List quotas
903
+ # List quotas
904
+ # @param [Hash] opts the optional parameters
905
+ # @option opts [String] :reference The reference type of quota.
906
+ # @option opts [String] :reference_id The reference id of quota.
907
+ # @option opts [String] :sort Sort method, valid values include: &#39;hard.resource_name&#39;, &#39;-hard.resource_name&#39;, &#39;used.resource_name&#39;, &#39;-used.resource_name&#39;. Here &#39;-&#39; stands for descending order, resource_name should be the real resource name of the quota.
908
+ # @option opts [Integer] :page The page number, default is 1.
909
+ # @option opts [Integer] :page_size The size of per page, default is 10, maximum is 100.
910
+ # @return [Array<Quota>]
911
+ describe 'quotas_get test' do
912
+ it 'should work' do
913
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
914
+ end
915
+ end
916
+
917
+ # unit tests for quotas_id_get
918
+ # Get the specified quota
919
+ # Get the specified quota
920
+ # @param id Quota ID
921
+ # @param [Hash] opts the optional parameters
922
+ # @return [Quota]
923
+ describe 'quotas_id_get test' do
924
+ it 'should work' do
925
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
926
+ end
927
+ end
928
+
929
+ # unit tests for quotas_id_put
930
+ # Update the specified quota
931
+ # Update hard limits of the specified quota
932
+ # @param id Quota ID
933
+ # @param hard The new hard limits for the quota
934
+ # @param [Hash] opts the optional parameters
935
+ # @return [nil]
936
+ describe 'quotas_id_put test' do
937
+ it 'should work' do
938
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
939
+ end
940
+ end
941
+
942
+ # unit tests for registries_get
943
+ # List registries.
944
+ # This endpoint let user list filtered registries by name, if name is nil, list returns all registries.
945
+ # @param [Hash] opts the optional parameters
946
+ # @option opts [String] :name Registry&#39;s name.
947
+ # @return [Array<Registry>]
948
+ describe 'registries_get test' do
949
+ it 'should work' do
950
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
951
+ end
952
+ end
953
+
954
+ # unit tests for registries_id_delete
955
+ # Delete specific registry.
956
+ # This endpoint is for to delete specific registry.
957
+ # @param id The registry&#39;s ID.
958
+ # @param [Hash] opts the optional parameters
959
+ # @return [nil]
960
+ describe 'registries_id_delete test' do
961
+ it 'should work' do
962
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
963
+ end
964
+ end
965
+
966
+ # unit tests for registries_id_get
967
+ # Get registry.
968
+ # This endpoint is for get specific registry.
969
+ # @param id The registry ID.
970
+ # @param [Hash] opts the optional parameters
971
+ # @return [Registry]
972
+ describe 'registries_id_get test' do
973
+ it 'should work' do
974
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
975
+ end
976
+ end
977
+
978
+ # unit tests for registries_id_info_get
979
+ # Get registry info.
980
+ # Get the info of one specific registry.
981
+ # @param id The registry ID.
982
+ # @param [Hash] opts the optional parameters
983
+ # @return [RegistryInfo]
984
+ describe 'registries_id_info_get test' do
985
+ it 'should work' do
986
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
987
+ end
988
+ end
989
+
990
+ # unit tests for registries_id_namespace_get
991
+ # List namespaces of registry
992
+ # This endpoint let user list namespaces of registry according to query.
993
+ # @param id The registry ID.
994
+ # @param [Hash] opts the optional parameters
995
+ # @option opts [String] :name The name of namespace.
996
+ # @return [Array<Namespace>]
997
+ describe 'registries_id_namespace_get test' do
998
+ it 'should work' do
999
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1000
+ end
1001
+ end
1002
+
1003
+ # unit tests for registries_id_put
1004
+ # Update a given registry.
1005
+ # This endpoint is for update a given registry.
1006
+ # @param id The registry&#39;s ID.
1007
+ # @param repo_target Updates registry.
1008
+ # @param [Hash] opts the optional parameters
1009
+ # @return [nil]
1010
+ describe 'registries_id_put test' do
1011
+ it 'should work' do
1012
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1013
+ end
1014
+ end
1015
+
1016
+ # unit tests for registries_ping_post
1017
+ # Ping status of a registry.
1018
+ # This endpoint checks status of a registry, the registry can be given by ID or URL (together with credential)
1019
+ # @param registry Registry to ping.
1020
+ # @param [Hash] opts the optional parameters
1021
+ # @return [nil]
1022
+ describe 'registries_ping_post test' do
1023
+ it 'should work' do
1024
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1025
+ end
1026
+ end
1027
+
1028
+ # unit tests for registries_post
1029
+ # Create a new registry.
1030
+ # This endpoint is for user to create a new registry.
1031
+ # @param registry New created registry.
1032
+ # @param [Hash] opts the optional parameters
1033
+ # @return [nil]
1034
+ describe 'registries_post test' do
1035
+ it 'should work' do
1036
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1037
+ end
1038
+ end
1039
+
1040
+ # unit tests for replication_adapters_get
1041
+ # List supported adapters.
1042
+ # This endpoint let user list supported adapters.
1043
+ # @param [Hash] opts the optional parameters
1044
+ # @return [Array<String>]
1045
+ describe 'replication_adapters_get test' do
1046
+ it 'should work' do
1047
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1048
+ end
1049
+ end
1050
+
1051
+ # unit tests for replication_executions_get
1052
+ # List replication executions.
1053
+ # This endpoint let user list replication executions.
1054
+ # @param [Hash] opts the optional parameters
1055
+ # @option opts [Integer] :policy_id The policy ID.
1056
+ # @option opts [String] :status The execution status.
1057
+ # @option opts [String] :trigger The trigger mode.
1058
+ # @option opts [Integer] :page The page.
1059
+ # @option opts [Integer] :page_size The page size.
1060
+ # @return [Array<ReplicationExecution>]
1061
+ describe 'replication_executions_get test' do
1062
+ it 'should work' do
1063
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1064
+ end
1065
+ end
1066
+
1067
+ # unit tests for replication_executions_id_get
1068
+ # Get the execution of the replication.
1069
+ # This endpoint is for user to get one execution of the replication.
1070
+ # @param id The execution ID.
1071
+ # @param [Hash] opts the optional parameters
1072
+ # @return [ReplicationExecution]
1073
+ describe 'replication_executions_id_get test' do
1074
+ it 'should work' do
1075
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1076
+ end
1077
+ end
1078
+
1079
+ # unit tests for replication_executions_id_put
1080
+ # Stop the execution of the replication.
1081
+ # This endpoint is for user to stop one execution of the replication.
1082
+ # @param id The execution ID.
1083
+ # @param [Hash] opts the optional parameters
1084
+ # @return [nil]
1085
+ describe 'replication_executions_id_put test' do
1086
+ it 'should work' do
1087
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1088
+ end
1089
+ end
1090
+
1091
+ # unit tests for replication_executions_id_tasks_get
1092
+ # Get the task list of one execution.
1093
+ # This endpoint is for user to get the task list of one execution.
1094
+ # @param id The execution ID.
1095
+ # @param [Hash] opts the optional parameters
1096
+ # @return [Array<ReplicationTask>]
1097
+ describe 'replication_executions_id_tasks_get test' do
1098
+ it 'should work' do
1099
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1100
+ end
1101
+ end
1102
+
1103
+ # unit tests for replication_executions_id_tasks_task_id_log_get
1104
+ # Get the log of one task.
1105
+ # This endpoint is for user to get the log of one task.
1106
+ # @param id The execution ID.
1107
+ # @param task_id The task ID.
1108
+ # @param [Hash] opts the optional parameters
1109
+ # @return [nil]
1110
+ describe 'replication_executions_id_tasks_task_id_log_get test' do
1111
+ it 'should work' do
1112
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1113
+ end
1114
+ end
1115
+
1116
+ # unit tests for replication_executions_post
1117
+ # Start one execution of the replication.
1118
+ # This endpoint is for user to start one execution of the replication.
1119
+ # @param execution The execution that needs to be started, only the property \&quot;policy_id\&quot; is needed.
1120
+ # @param [Hash] opts the optional parameters
1121
+ # @return [nil]
1122
+ describe 'replication_executions_post test' do
1123
+ it 'should work' do
1124
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1125
+ end
1126
+ end
1127
+
1128
+ # unit tests for replication_policies_get
1129
+ # List replication policies
1130
+ # This endpoint let user list replication policies
1131
+ # @param [Hash] opts the optional parameters
1132
+ # @option opts [String] :name The replication policy name.
1133
+ # @option opts [Integer] :page The page nubmer.
1134
+ # @option opts [Integer] :page_size The size of per page.
1135
+ # @return [Array<ReplicationPolicy>]
1136
+ describe 'replication_policies_get test' do
1137
+ it 'should work' do
1138
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1139
+ end
1140
+ end
1141
+
1142
+ # unit tests for replication_policies_id_delete
1143
+ # Delete the replication policy specified by ID.
1144
+ # Delete the replication policy specified by ID.
1145
+ # @param id Replication policy ID
1146
+ # @param [Hash] opts the optional parameters
1147
+ # @return [nil]
1148
+ describe 'replication_policies_id_delete test' do
1149
+ it 'should work' do
1150
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1151
+ end
1152
+ end
1153
+
1154
+ # unit tests for replication_policies_id_get
1155
+ # Get replication policy.
1156
+ # This endpoint let user get replication policy by specific ID.
1157
+ # @param id policy ID
1158
+ # @param [Hash] opts the optional parameters
1159
+ # @return [ReplicationPolicy]
1160
+ describe 'replication_policies_id_get test' do
1161
+ it 'should work' do
1162
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1163
+ end
1164
+ end
1165
+
1166
+ # unit tests for replication_policies_id_put
1167
+ # Update the replication policy
1168
+ # This endpoint let user update policy.
1169
+ # @param id policy ID
1170
+ # @param policy The replication policy model.
1171
+ # @param [Hash] opts the optional parameters
1172
+ # @return [nil]
1173
+ describe 'replication_policies_id_put test' do
1174
+ it 'should work' do
1175
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1176
+ end
1177
+ end
1178
+
1179
+ # unit tests for replication_policies_post
1180
+ # Create a replication policy
1181
+ # This endpoint let user create a replication policy
1182
+ # @param policy The policy model.
1183
+ # @param [Hash] opts the optional parameters
1184
+ # @return [nil]
1185
+ describe 'replication_policies_post test' do
1186
+ it 'should work' do
1187
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1188
+ end
1189
+ end
1190
+
1191
+ # unit tests for repositories_get
1192
+ # Get repositories accompany with relevant project and repo name.
1193
+ # This endpoint lets user search repositories accompanying with relevant project ID and repo name. Repositories can be sorted by repo name, creation_time, update_time in either ascending or descending order.
1194
+ # @param project_id Relevant project ID.
1195
+ # @param [Hash] opts the optional parameters
1196
+ # @option opts [String] :q Repo name for filtering results.
1197
+ # @option opts [String] :sort Sort method, valid values include: &#39;name&#39;, &#39;-name&#39;, &#39;creation_time&#39;, &#39;-creation_time&#39;, &#39;update_time&#39;, &#39;-update_time&#39;. Here &#39;-&#39; stands for descending order.
1198
+ # @option opts [Integer] :label_id The ID of label used to filter the result.
1199
+ # @option opts [Integer] :page The page number, default is 1.
1200
+ # @option opts [Integer] :page_size The size of per page, default is 10, maximum is 100.
1201
+ # @return [Array<Repository>]
1202
+ describe 'repositories_get test' do
1203
+ it 'should work' do
1204
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1205
+ end
1206
+ end
1207
+
1208
+ # unit tests for repositories_repo_name_delete
1209
+ # Delete a repository.
1210
+ # This endpoint let user delete a repository with name.
1211
+ # @param repo_name The name of repository which will be deleted.
1212
+ # @param [Hash] opts the optional parameters
1213
+ # @return [nil]
1214
+ describe 'repositories_repo_name_delete test' do
1215
+ it 'should work' do
1216
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1217
+ end
1218
+ end
1219
+
1220
+ # unit tests for repositories_repo_name_labels_get
1221
+ # Get labels of a repository.
1222
+ # Get labels of a repository specified by the repo_name.
1223
+ # @param repo_name The name of repository.
1224
+ # @param [Hash] opts the optional parameters
1225
+ # @return [Array<Label>]
1226
+ describe 'repositories_repo_name_labels_get test' do
1227
+ it 'should work' do
1228
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1229
+ end
1230
+ end
1231
+
1232
+ # unit tests for repositories_repo_name_labels_label_id_delete
1233
+ # Delete label from the repository.
1234
+ # Delete the label from the repository specified by the repo_name.
1235
+ # @param repo_name The name of repository.
1236
+ # @param label_id The ID of label.
1237
+ # @param [Hash] opts the optional parameters
1238
+ # @return [nil]
1239
+ describe 'repositories_repo_name_labels_label_id_delete test' do
1240
+ it 'should work' do
1241
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1242
+ end
1243
+ end
1244
+
1245
+ # unit tests for repositories_repo_name_labels_post
1246
+ # Add a label to the repository.
1247
+ # Add a label to the repository.
1248
+ # @param repo_name The name of repository.
1249
+ # @param label Only the ID property is required.
1250
+ # @param [Hash] opts the optional parameters
1251
+ # @return [nil]
1252
+ describe 'repositories_repo_name_labels_post test' do
1253
+ it 'should work' do
1254
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1255
+ end
1256
+ end
1257
+
1258
+ # unit tests for repositories_repo_name_put
1259
+ # Update description of the repository.
1260
+ # This endpoint is used to update description of the repository.
1261
+ # @param repo_name The name of repository which will be deleted.
1262
+ # @param description The description of the repository.
1263
+ # @param [Hash] opts the optional parameters
1264
+ # @return [nil]
1265
+ describe 'repositories_repo_name_put test' do
1266
+ it 'should work' do
1267
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1268
+ end
1269
+ end
1270
+
1271
+ # unit tests for repositories_repo_name_signatures_get
1272
+ # Get signature information of a repository
1273
+ # This endpoint aims to retrieve signature information of a repository, the data is from the nested notary instance of Harbor. If the repository does not have any signature information in notary, this API will return an empty list with response code 200, instead of 404
1274
+ # @param repo_name repository name.
1275
+ # @param [Hash] opts the optional parameters
1276
+ # @return [Array<RepoSignature>]
1277
+ describe 'repositories_repo_name_signatures_get test' do
1278
+ it 'should work' do
1279
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1280
+ end
1281
+ end
1282
+
1283
+ # unit tests for repositories_repo_name_tags_get
1284
+ # Get tags of a relevant repository.
1285
+ # This endpoint aims to retrieve tags from a relevant repository. If deployed with Notary, the signature property of response represents whether the image is singed or not. If the property is null, the image is unsigned.
1286
+ # @param repo_name Relevant repository name.
1287
+ # @param [Hash] opts the optional parameters
1288
+ # @option opts [String] :label_id A label ID.
1289
+ # @option opts [BOOLEAN] :detail Bool value indicating whether return detailed information of the tag, such as vulnerability scan info, if set to false, only tag name is returned.
1290
+ # @return [Array<DetailedTag>]
1291
+ describe 'repositories_repo_name_tags_get test' do
1292
+ it 'should work' do
1293
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1294
+ end
1295
+ end
1296
+
1297
+ # unit tests for repositories_repo_name_tags_post
1298
+ # Retag an image
1299
+ # This endpoint tags an existing image with another tag in this repo, source images can be in different repos or projects.
1300
+ # @param repo_name Relevant repository name.
1301
+ # @param request Request to give source image and target tag.
1302
+ # @param [Hash] opts the optional parameters
1303
+ # @return [nil]
1304
+ describe 'repositories_repo_name_tags_post test' do
1305
+ it 'should work' do
1306
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1307
+ end
1308
+ end
1309
+
1310
+ # unit tests for repositories_repo_name_tags_tag_delete
1311
+ # Delete a tag in a repository.
1312
+ # This endpoint let user delete tags with repo name and tag.
1313
+ # @param repo_name The name of repository which will be deleted.
1314
+ # @param tag Tag of a repository.
1315
+ # @param [Hash] opts the optional parameters
1316
+ # @return [nil]
1317
+ describe 'repositories_repo_name_tags_tag_delete test' do
1318
+ it 'should work' do
1319
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1320
+ end
1321
+ end
1322
+
1323
+ # unit tests for repositories_repo_name_tags_tag_get
1324
+ # Get the tag of the repository.
1325
+ # This endpoint aims to retrieve the tag of the repository. If deployed with Notary, the signature property of response represents whether the image is singed or not. If the property is null, the image is unsigned.
1326
+ # @param repo_name Relevant repository name.
1327
+ # @param tag Tag of the repository.
1328
+ # @param [Hash] opts the optional parameters
1329
+ # @return [DetailedTag]
1330
+ describe 'repositories_repo_name_tags_tag_get test' do
1331
+ it 'should work' do
1332
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1333
+ end
1334
+ end
1335
+
1336
+ # unit tests for repositories_repo_name_tags_tag_labels_get
1337
+ # Get labels of an image.
1338
+ # Get labels of an image specified by the repo_name and tag.
1339
+ # @param repo_name The name of repository.
1340
+ # @param tag The tag of the image.
1341
+ # @param [Hash] opts the optional parameters
1342
+ # @return [Array<Label>]
1343
+ describe 'repositories_repo_name_tags_tag_labels_get test' do
1344
+ it 'should work' do
1345
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1346
+ end
1347
+ end
1348
+
1349
+ # unit tests for repositories_repo_name_tags_tag_labels_label_id_delete
1350
+ # Delete label from the image.
1351
+ # Delete the label from the image specified by the repo_name and tag.
1352
+ # @param repo_name The name of repository.
1353
+ # @param tag The tag of the image.
1354
+ # @param label_id The ID of label.
1355
+ # @param [Hash] opts the optional parameters
1356
+ # @return [nil]
1357
+ describe 'repositories_repo_name_tags_tag_labels_label_id_delete test' do
1358
+ it 'should work' do
1359
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1360
+ end
1361
+ end
1362
+
1363
+ # unit tests for repositories_repo_name_tags_tag_labels_post
1364
+ # Add a label to image.
1365
+ # Add a label to the image.
1366
+ # @param repo_name The name of repository.
1367
+ # @param tag The tag of the image.
1368
+ # @param label Only the ID property is required.
1369
+ # @param [Hash] opts the optional parameters
1370
+ # @return [nil]
1371
+ describe 'repositories_repo_name_tags_tag_labels_post test' do
1372
+ it 'should work' do
1373
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1374
+ end
1375
+ end
1376
+
1377
+ # unit tests for repositories_repo_name_tags_tag_manifest_get
1378
+ # Get manifests of a relevant repository.
1379
+ # This endpoint aims to retreive manifests from a relevant repository.
1380
+ # @param repo_name Repository name
1381
+ # @param tag Tag name
1382
+ # @param [Hash] opts the optional parameters
1383
+ # @option opts [String] :version The version of manifest, valid value are \&quot;v1\&quot; and \&quot;v2\&quot;, default is \&quot;v2\&quot;
1384
+ # @return [Manifest]
1385
+ describe 'repositories_repo_name_tags_tag_manifest_get test' do
1386
+ it 'should work' do
1387
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1388
+ end
1389
+ end
1390
+
1391
+ # unit tests for repositories_repo_name_tags_tag_scan_post
1392
+ # Scan the image.
1393
+ # Trigger a scan targeting the artifact identified by the repo_name and tag.
1394
+ # @param repo_name Repository name
1395
+ # @param tag Tag name
1396
+ # @param [Hash] opts the optional parameters
1397
+ # @return [nil]
1398
+ describe 'repositories_repo_name_tags_tag_scan_post test' do
1399
+ it 'should work' do
1400
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1401
+ end
1402
+ end
1403
+
1404
+ # unit tests for repositories_repo_name_tags_tag_scan_uuid_log_get
1405
+ # Get scan log
1406
+ # Get the log text stream for the given artifact and scan action.
1407
+ # @param repo_name Repository name
1408
+ # @param tag Tag name
1409
+ # @param uuid the scan unique identifier
1410
+ # @param [Hash] opts the optional parameters
1411
+ # @return [String]
1412
+ describe 'repositories_repo_name_tags_tag_scan_uuid_log_get test' do
1413
+ it 'should work' do
1414
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1415
+ end
1416
+ end
1417
+
1418
+ # unit tests for repositories_top_get
1419
+ # Get public repositories which are accessed most.
1420
+ # This endpoint aims to let users see the most popular public repositories
1421
+ # @param [Hash] opts the optional parameters
1422
+ # @option opts [Integer] :count The number of the requested public repositories, default is 10 if not provided.
1423
+ # @return [Array<Repository>]
1424
+ describe 'repositories_top_get test' do
1425
+ it 'should work' do
1426
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1427
+ end
1428
+ end
1429
+
1430
+ # unit tests for retentions_id_executions_eid_patch
1431
+ # Stop a Retention job
1432
+ # Stop a Retention job, only support \&quot;stop\&quot; action now.
1433
+ # @param id Retention ID.
1434
+ # @param eid Retention execution ID.
1435
+ # @param action The action, only support \&quot;stop\&quot; now.
1436
+ # @param [Hash] opts the optional parameters
1437
+ # @return [nil]
1438
+ describe 'retentions_id_executions_eid_patch test' do
1439
+ it 'should work' do
1440
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1441
+ end
1442
+ end
1443
+
1444
+ # unit tests for retentions_id_executions_eid_tasks_get
1445
+ # Get Retention job tasks
1446
+ # Get Retention job tasks, each repository as a task.
1447
+ # @param id Retention ID.
1448
+ # @param eid Retention execution ID.
1449
+ # @param [Hash] opts the optional parameters
1450
+ # @return [Array<RetentionExecutionTask>]
1451
+ describe 'retentions_id_executions_eid_tasks_get test' do
1452
+ it 'should work' do
1453
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1454
+ end
1455
+ end
1456
+
1457
+ # unit tests for retentions_id_executions_eid_tasks_tid_get
1458
+ # Get Retention job task log
1459
+ # Get Retention job task log, tags ratain or deletion detail will be shown in a table.
1460
+ # @param id Retention ID.
1461
+ # @param eid Retention execution ID.
1462
+ # @param tid Retention execution ID.
1463
+ # @param [Hash] opts the optional parameters
1464
+ # @return [String]
1465
+ describe 'retentions_id_executions_eid_tasks_tid_get test' do
1466
+ it 'should work' do
1467
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1468
+ end
1469
+ end
1470
+
1471
+ # unit tests for retentions_id_executions_get
1472
+ # Get a Retention job
1473
+ # Get a Retention job, job status may be delayed before job service schedule it up.
1474
+ # @param id Retention ID.
1475
+ # @param [Hash] opts the optional parameters
1476
+ # @return [Array<RetentionExecution>]
1477
+ describe 'retentions_id_executions_get test' do
1478
+ it 'should work' do
1479
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1480
+ end
1481
+ end
1482
+
1483
+ # unit tests for retentions_id_executions_post
1484
+ # Trigger a Retention job
1485
+ # Trigger a Retention job, if dry_run is True, nothing would be deleted actually.
1486
+ # @param id Retention ID.
1487
+ # @param action
1488
+ # @param [Hash] opts the optional parameters
1489
+ # @return [nil]
1490
+ describe 'retentions_id_executions_post test' do
1491
+ it 'should work' do
1492
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1493
+ end
1494
+ end
1495
+
1496
+ # unit tests for retentions_id_get
1497
+ # Get Retention Policy
1498
+ # Get Retention Policy.
1499
+ # @param id Retention ID.
1500
+ # @param [Hash] opts the optional parameters
1501
+ # @return [RetentionPolicy]
1502
+ describe 'retentions_id_get test' do
1503
+ it 'should work' do
1504
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1505
+ end
1506
+ end
1507
+
1508
+ # unit tests for retentions_id_put
1509
+ # Update Retention Policy
1510
+ # Update Retention Policy, you can reference metadatas API for the policy model. You can check project metadatas to find whether a retention policy is already binded. This method should only be called when retention policy has already binded to project.
1511
+ # @param id Retention ID.
1512
+ # @param policy
1513
+ # @param [Hash] opts the optional parameters
1514
+ # @return [nil]
1515
+ describe 'retentions_id_put test' do
1516
+ it 'should work' do
1517
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1518
+ end
1519
+ end
1520
+
1521
+ # unit tests for retentions_metadatas_get
1522
+ # Get Retention Metadatas
1523
+ # Get Retention Metadatas.
1524
+ # @param [Hash] opts the optional parameters
1525
+ # @return [RetentionMetadata]
1526
+ describe 'retentions_metadatas_get test' do
1527
+ it 'should work' do
1528
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1529
+ end
1530
+ end
1531
+
1532
+ # unit tests for retentions_post
1533
+ # Create Retention Policy
1534
+ # Create Retention Policy, you can reference metadatas API for the policy model. You can check project metadatas to find whether a retention policy is already binded. This method should only be called when no retention policy binded to project yet.
1535
+ # @param policy Create Retention Policy successfully.
1536
+ # @param [Hash] opts the optional parameters
1537
+ # @return [nil]
1538
+ describe 'retentions_post test' do
1539
+ it 'should work' do
1540
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1541
+ end
1542
+ end
1543
+
1544
+ # unit tests for scanners_get
1545
+ # List scanner registrations
1546
+ # Returns a list of currently configured scanner registrations.
1547
+ # @param [Hash] opts the optional parameters
1548
+ # @return [Array<ScannerRegistration>]
1549
+ describe 'scanners_get test' do
1550
+ it 'should work' do
1551
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1552
+ end
1553
+ end
1554
+
1555
+ # unit tests for scanners_ping_post
1556
+ # Tests scanner registration settings
1557
+ # Pings scanner adapter to test endpoint URL and authorization settings.
1558
+ # @param settings A scanner registration settings to be tested.
1559
+ # @param [Hash] opts the optional parameters
1560
+ # @return [nil]
1561
+ describe 'scanners_ping_post test' do
1562
+ it 'should work' do
1563
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1564
+ end
1565
+ end
1566
+
1567
+ # unit tests for scanners_registration_id_get
1568
+ # Get a scanner registration details
1569
+ # Retruns the details of the specified scanner registration.
1570
+ # @param registration_id The scanner registration identifer.
1571
+ # @param [Hash] opts the optional parameters
1572
+ # @return [ScannerRegistration]
1573
+ describe 'scanners_registration_id_get test' do
1574
+ it 'should work' do
1575
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1576
+ end
1577
+ end
1578
+
1579
+ # unit tests for scanners_registration_id_metadata_get
1580
+ # Get the metadata of the specified scanner registration
1581
+ # Get the metadata of the specified scanner registration, including the capabilities and customzied properties.
1582
+ # @param registration_id The scanner registration identifier.
1583
+ # @param [Hash] opts the optional parameters
1584
+ # @return [ScannerAdapterMetadata]
1585
+ describe 'scanners_registration_id_metadata_get test' do
1586
+ it 'should work' do
1587
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1588
+ end
1589
+ end
1590
+
1591
+ # unit tests for scans_all_metrics_get
1592
+ # Get the metrics of the latest scan all process
1593
+ # Get the metrics of the latest scan all process
1594
+ # @param [Hash] opts the optional parameters
1595
+ # @return [Stats]
1596
+ describe 'scans_all_metrics_get test' do
1597
+ it 'should work' do
1598
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1599
+ end
1600
+ end
1601
+
1602
+ # unit tests for scans_schedule_metrics_get
1603
+ # Get the metrics of the latest scheduled scan all process
1604
+ # Get the metrics of the latest scheduled scan all process
1605
+ # @param [Hash] opts the optional parameters
1606
+ # @return [Stats]
1607
+ describe 'scans_schedule_metrics_get test' do
1608
+ it 'should work' do
1609
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1610
+ end
1611
+ end
1612
+
1613
+ # unit tests for search_get
1614
+ # Search for projects, repositories and helm charts
1615
+ # 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.
1616
+ # @param q Search parameter for project and repository name.
1617
+ # @param [Hash] opts the optional parameters
1618
+ # @return [Array<Search>]
1619
+ describe 'search_get test' do
1620
+ it 'should work' do
1621
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1622
+ end
1623
+ end
1624
+
1625
+ # unit tests for statistics_get
1626
+ # Get projects number and repositories number relevant to the user
1627
+ # This endpoint is aimed to statistic all of the projects number and repositories number relevant to the logined user, also the public projects number and repositories number. If the user is admin, he can also get total projects number and total repositories number.
1628
+ # @param [Hash] opts the optional parameters
1629
+ # @return [StatisticMap]
1630
+ describe 'statistics_get test' do
1631
+ it 'should work' do
1632
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1633
+ end
1634
+ end
1635
+
1636
+ # unit tests for system_cve_whitelist_get
1637
+ # Get the system level whitelist of CVE.
1638
+ # Get the system level whitelist of CVE. This API can be called by all authenticated users.
1639
+ # @param [Hash] opts the optional parameters
1640
+ # @return [CVEWhitelist]
1641
+ describe 'system_cve_whitelist_get test' do
1642
+ it 'should work' do
1643
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1644
+ end
1645
+ end
1646
+
1647
+ # unit tests for system_cve_whitelist_put
1648
+ # Update the system level whitelist of CVE.
1649
+ # This API overwrites the system level whitelist of CVE with the list in request body. Only system Admin has permission to call this API.
1650
+ # @param [Hash] opts the optional parameters
1651
+ # @option opts [CVEWhitelist] :whitelist The whitelist with new content
1652
+ # @return [nil]
1653
+ describe 'system_cve_whitelist_put test' do
1654
+ it 'should work' do
1655
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1656
+ end
1657
+ end
1658
+
1659
+ # unit tests for system_gc_get
1660
+ # Get gc results.
1661
+ # This endpoint let user get latest ten gc results.
1662
+ # @param [Hash] opts the optional parameters
1663
+ # @return [Array<GCResult>]
1664
+ describe 'system_gc_get test' do
1665
+ it 'should work' do
1666
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1667
+ end
1668
+ end
1669
+
1670
+ # unit tests for system_gc_id_get
1671
+ # Get gc status.
1672
+ # This endpoint let user get gc status filtered by specific ID.
1673
+ # @param id Relevant job ID
1674
+ # @param [Hash] opts the optional parameters
1675
+ # @return [GCResult]
1676
+ describe 'system_gc_id_get test' do
1677
+ it 'should work' do
1678
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1679
+ end
1680
+ end
1681
+
1682
+ # unit tests for system_gc_id_log_get
1683
+ # Get gc job log.
1684
+ # This endpoint let user get gc job logs filtered by specific ID.
1685
+ # @param id Relevant job ID
1686
+ # @param [Hash] opts the optional parameters
1687
+ # @return [String]
1688
+ describe 'system_gc_id_log_get test' do
1689
+ it 'should work' do
1690
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1691
+ end
1692
+ end
1693
+
1694
+ # unit tests for system_gc_schedule_get
1695
+ # Get gc&#39;s schedule.
1696
+ # This endpoint is for get schedule of gc job.
1697
+ # @param [Hash] opts the optional parameters
1698
+ # @return [AdminJobSchedule]
1699
+ describe 'system_gc_schedule_get test' do
1700
+ it 'should work' do
1701
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1702
+ end
1703
+ end
1704
+
1705
+ # unit tests for system_gc_schedule_post
1706
+ # Create a gc schedule.
1707
+ # This endpoint is for update gc schedule.
1708
+ # @param schedule Updates of gc&#39;s schedule.
1709
+ # @param [Hash] opts the optional parameters
1710
+ # @return [nil]
1711
+ describe 'system_gc_schedule_post test' do
1712
+ it 'should work' do
1713
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1714
+ end
1715
+ end
1716
+
1717
+ # unit tests for system_gc_schedule_put
1718
+ # Update gc&#39;s schedule.
1719
+ # This endpoint is for update gc schedule.
1720
+ # @param schedule Updates of gc&#39;s schedule.
1721
+ # @param [Hash] opts the optional parameters
1722
+ # @return [nil]
1723
+ describe 'system_gc_schedule_put test' do
1724
+ it 'should work' do
1725
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1726
+ end
1727
+ end
1728
+
1729
+ # unit tests for system_oidc_ping_post
1730
+ # Test the OIDC endpoint.
1731
+ # Test the OIDC endpoint, the setting of the endpoint is provided in the request. This API can only be called by system admin.
1732
+ # @param endpoint Request body for OIDC endpoint to be tested.
1733
+ # @param [Hash] opts the optional parameters
1734
+ # @return [nil]
1735
+ describe 'system_oidc_ping_post test' do
1736
+ it 'should work' do
1737
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1738
+ end
1739
+ end
1740
+
1741
+ # unit tests for system_scan_all_schedule_get
1742
+ # Get scan_all&#39;s schedule.
1743
+ # This endpoint is for getting a schedule for the scan all job, which scans all of images in Harbor.
1744
+ # @param [Hash] opts the optional parameters
1745
+ # @return [AdminJobSchedule]
1746
+ describe 'system_scan_all_schedule_get test' do
1747
+ it 'should work' do
1748
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1749
+ end
1750
+ end
1751
+
1752
+ # unit tests for system_scan_all_schedule_post
1753
+ # Create a schedule or a manual trigger for the scan all job.
1754
+ # This endpoint is for creating a schedule or a manual trigger for the scan all job, which scans all of images in Harbor.
1755
+ # @param schedule Create a schedule or a manual trigger for the scan all job.
1756
+ # @param [Hash] opts the optional parameters
1757
+ # @return [nil]
1758
+ describe 'system_scan_all_schedule_post test' do
1759
+ it 'should work' do
1760
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1761
+ end
1762
+ end
1763
+
1764
+ # unit tests for system_scan_all_schedule_put
1765
+ # Update scan all&#39;s schedule.
1766
+ # This endpoint is for updating the schedule of scan all job, which scans all of images in Harbor.
1767
+ # @param schedule Updates the schedule of scan all job, which scans all of images in Harbor.
1768
+ # @param [Hash] opts the optional parameters
1769
+ # @return [nil]
1770
+ describe 'system_scan_all_schedule_put test' do
1771
+ it 'should work' do
1772
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1773
+ end
1774
+ end
1775
+
1776
+ # unit tests for systeminfo_get
1777
+ # Get general system info
1778
+ # This API is for retrieving general system info, this can be called by anonymous request.
1779
+ # @param [Hash] opts the optional parameters
1780
+ # @return [GeneralInfo]
1781
+ describe 'systeminfo_get test' do
1782
+ it 'should work' do
1783
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1784
+ end
1785
+ end
1786
+
1787
+ # unit tests for systeminfo_getcert_get
1788
+ # Get default root certificate.
1789
+ # This endpoint is for downloading a default root certificate.
1790
+ # @param [Hash] opts the optional parameters
1791
+ # @return [nil]
1792
+ describe 'systeminfo_getcert_get test' do
1793
+ it 'should work' do
1794
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1795
+ end
1796
+ end
1797
+
1798
+ # unit tests for systeminfo_volumes_get
1799
+ # Get system volume info (total/free size).
1800
+ # This endpoint is for retrieving system volume info that only provides for admin user.
1801
+ # @param [Hash] opts the optional parameters
1802
+ # @return [SystemInfo]
1803
+ describe 'systeminfo_volumes_get test' do
1804
+ it 'should work' do
1805
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1806
+ end
1807
+ end
1808
+
1809
+ # unit tests for usergroups_get
1810
+ # Get all user groups information
1811
+ # Get all user groups information
1812
+ # @param [Hash] opts the optional parameters
1813
+ # @return [Array<UserGroup>]
1814
+ describe 'usergroups_get test' do
1815
+ it 'should work' do
1816
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1817
+ end
1818
+ end
1819
+
1820
+ # unit tests for usergroups_group_id_delete
1821
+ # Delete user group
1822
+ # Delete user group
1823
+ # @param group_id
1824
+ # @param [Hash] opts the optional parameters
1825
+ # @return [nil]
1826
+ describe 'usergroups_group_id_delete test' do
1827
+ it 'should work' do
1828
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1829
+ end
1830
+ end
1831
+
1832
+ # unit tests for usergroups_group_id_get
1833
+ # Get user group information
1834
+ # Get user group information
1835
+ # @param group_id Group ID
1836
+ # @param [Hash] opts the optional parameters
1837
+ # @return [UserGroup]
1838
+ describe 'usergroups_group_id_get test' do
1839
+ it 'should work' do
1840
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1841
+ end
1842
+ end
1843
+
1844
+ # unit tests for usergroups_group_id_put
1845
+ # Update group information
1846
+ # Update user group information
1847
+ # @param group_id Group ID
1848
+ # @param [Hash] opts the optional parameters
1849
+ # @option opts [UserGroup] :usergroup
1850
+ # @return [nil]
1851
+ describe 'usergroups_group_id_put test' do
1852
+ it 'should work' do
1853
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1854
+ end
1855
+ end
1856
+
1857
+ # unit tests for usergroups_post
1858
+ # Create user group
1859
+ # Create user group information
1860
+ # @param [Hash] opts the optional parameters
1861
+ # @option opts [UserGroup] :usergroup
1862
+ # @return [nil]
1863
+ describe 'usergroups_post test' do
1864
+ it 'should work' do
1865
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1866
+ end
1867
+ end
1868
+
1869
+ # unit tests for users_current_get
1870
+ # Get current user info.
1871
+ # This endpoint is to get the current user information.
1872
+ # @param [Hash] opts the optional parameters
1873
+ # @return [User]
1874
+ describe 'users_current_get test' do
1875
+ it 'should work' do
1876
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1877
+ end
1878
+ end
1879
+
1880
+ # unit tests for users_current_permissions_get
1881
+ # Get current user permissions.
1882
+ # This endpoint is to get the current user permissions.
1883
+ # @param [Hash] opts the optional parameters
1884
+ # @option opts [String] :scope Get permissions of the scope
1885
+ # @option opts [BOOLEAN] :relative If true, the resources in the response are relative to the scope, eg for resource &#39;/project/1/repository&#39; if relative is &#39;true&#39; then the resource in response will be &#39;repository&#39;.
1886
+ # @return [Array<Permission>]
1887
+ describe 'users_current_permissions_get test' do
1888
+ it 'should work' do
1889
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1890
+ end
1891
+ end
1892
+
1893
+ # unit tests for users_get
1894
+ # Get registered users of Harbor.
1895
+ # This endpoint is for user to search registered users, support for filtering results with username.Notice, by now this operation is only for administrator.
1896
+ # @param [Hash] opts the optional parameters
1897
+ # @option opts [String] :username Username for filtering results.
1898
+ # @option opts [String] :email Email for filtering results.
1899
+ # @option opts [Integer] :page The page number, default is 1.
1900
+ # @option opts [Integer] :page_size The size of per page.
1901
+ # @return [Array<User>]
1902
+ describe 'users_get test' do
1903
+ it 'should work' do
1904
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1905
+ end
1906
+ end
1907
+
1908
+ # unit tests for users_post
1909
+ # Creates a new user account.
1910
+ # This endpoint is to create a user if the user does not already exist.
1911
+ # @param user New created user.
1912
+ # @param [Hash] opts the optional parameters
1913
+ # @return [nil]
1914
+ describe 'users_post test' do
1915
+ it 'should work' do
1916
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1917
+ end
1918
+ end
1919
+
1920
+ # unit tests for users_search_get
1921
+ # Search users by username
1922
+ # This endpoint is to search the users by username.
1923
+ # @param username Username for filtering results.
1924
+ # @param [Hash] opts the optional parameters
1925
+ # @option opts [Integer] :page The page number, default is 1.
1926
+ # @option opts [Integer] :page_size The size of per page.
1927
+ # @return [Array<UserSearch>]
1928
+ describe 'users_search_get test' do
1929
+ it 'should work' do
1930
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1931
+ end
1932
+ end
1933
+
1934
+ # unit tests for users_user_id_cli_secret_put
1935
+ # Set CLI secret for a user.
1936
+ # This endpoint let user generate a new CLI secret for himself. This API only works when auth mode is set to &#39;OIDC&#39;. Once this API returns with successful status, the old secret will be invalid, as there will be only one CLI secret for a user.
1937
+ # @param user_id User ID
1938
+ # @param input_secret JSON object that includes the new secret
1939
+ # @param [Hash] opts the optional parameters
1940
+ # @return [nil]
1941
+ describe 'users_user_id_cli_secret_put test' do
1942
+ it 'should work' do
1943
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1944
+ end
1945
+ end
1946
+
1947
+ # unit tests for users_user_id_delete
1948
+ # Mark a registered user as be removed.
1949
+ # This endpoint let administrator of Harbor mark a registered user as be removed.It actually won&#39;t be deleted from DB.
1950
+ # @param user_id User ID for marking as to be removed.
1951
+ # @param [Hash] opts the optional parameters
1952
+ # @return [nil]
1953
+ describe 'users_user_id_delete test' do
1954
+ it 'should work' do
1955
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1956
+ end
1957
+ end
1958
+
1959
+ # unit tests for users_user_id_get
1960
+ # Get a user&#39;s profile.
1961
+ # Get user&#39;s profile with user id.
1962
+ # @param user_id Registered user ID
1963
+ # @param [Hash] opts the optional parameters
1964
+ # @return [User]
1965
+ describe 'users_user_id_get test' do
1966
+ it 'should work' do
1967
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1968
+ end
1969
+ end
1970
+
1971
+ # unit tests for users_user_id_password_put
1972
+ # Change the password on a user that already exists.
1973
+ # This endpoint is for user to update password. Users with the admin role can change any user&#39;s password. Guest users can change only their own password.
1974
+ # @param user_id Registered user ID.
1975
+ # @param password Password to be updated, the attribute &#39;old_password&#39; is optional when the API is called by the system administrator.
1976
+ # @param [Hash] opts the optional parameters
1977
+ # @return [nil]
1978
+ describe 'users_user_id_password_put test' do
1979
+ it 'should work' do
1980
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1981
+ end
1982
+ end
1983
+
1984
+ # unit tests for users_user_id_put
1985
+ # Update a registered user to change his profile.
1986
+ # This endpoint let a registered user change his profile.
1987
+ # @param user_id Registered user ID
1988
+ # @param profile Only email, realname and comment can be modified.
1989
+ # @param [Hash] opts the optional parameters
1990
+ # @return [nil]
1991
+ describe 'users_user_id_put test' do
1992
+ it 'should work' do
1993
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1994
+ end
1995
+ end
1996
+
1997
+ # unit tests for users_user_id_sysadmin_put
1998
+ # Update a registered user to change to be an administrator of Harbor.
1999
+ # This endpoint let a registered user change to be an administrator of Harbor.
2000
+ # @param user_id Registered user ID
2001
+ # @param has_admin_role Toggle a user to admin or not.
2002
+ # @param [Hash] opts the optional parameters
2003
+ # @return [nil]
2004
+ describe 'users_user_id_sysadmin_put test' do
2005
+ it 'should work' do
2006
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
2007
+ end
2008
+ end
2009
+
2010
+ end