harbor_swagger_client 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (402) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +7 -0
  3. data/README.md +396 -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 +22 -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 +36 -0
  25. data/docs/ConfigurationsResponse.md +36 -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/DetailedTagScanOverview.md +13 -0
  32. data/docs/DetailedTagScanOverviewComponents.md +9 -0
  33. data/docs/DigitalSignature.md +9 -0
  34. data/docs/EmailServerSetting.md +13 -0
  35. data/docs/Endpoint.md +9 -0
  36. data/docs/FilterStyle.md +10 -0
  37. data/docs/ForbiddenChartAPIError.md +8 -0
  38. data/docs/GCResult.md +15 -0
  39. data/docs/GeneralInfo.md +20 -0
  40. data/docs/GeneralInfoClairVulnerabilityStatus.md +9 -0
  41. data/docs/HasAdminRole.md +8 -0
  42. data/docs/InlineResponse200.md +8 -0
  43. data/docs/InlineResponse2001.md +8 -0
  44. data/docs/InsufficientStorageChartAPIError.md +8 -0
  45. data/docs/IntegerConfigItem.md +9 -0
  46. data/docs/InternalChartAPIError.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/NotFoundChartAPIError.md +8 -0
  58. data/docs/OverallHealthStatus.md +9 -0
  59. data/docs/Password.md +9 -0
  60. data/docs/Permission.md +9 -0
  61. data/docs/PingRegistry.md +14 -0
  62. data/docs/ProductsApi.md +7780 -0
  63. data/docs/Project.md +20 -0
  64. data/docs/ProjectMember.md +10 -0
  65. data/docs/ProjectMemberEntity.md +14 -0
  66. data/docs/ProjectMetadata.md +13 -0
  67. data/docs/ProjectReq.md +12 -0
  68. data/docs/ProjectSummary.md +14 -0
  69. data/docs/ProjectSummaryQuota.md +9 -0
  70. data/docs/PutRegistry.md +14 -0
  71. data/docs/Quota.md +13 -0
  72. data/docs/QuotaApi.md +179 -0
  73. data/docs/QuotaRefObject.md +7 -0
  74. data/docs/QuotaSwitcher.md +8 -0
  75. data/docs/QuotaUpdateReq.md +8 -0
  76. data/docs/Registry.md +17 -0
  77. data/docs/RegistryCredential.md +10 -0
  78. data/docs/RegistryInfo.md +11 -0
  79. data/docs/ReplicationExecution.md +19 -0
  80. data/docs/ReplicationFilter.md +9 -0
  81. data/docs/ReplicationPolicy.md +20 -0
  82. data/docs/ReplicationTask.md +16 -0
  83. data/docs/ReplicationTrigger.md +9 -0
  84. data/docs/RepoSignature.md +9 -0
  85. data/docs/Repository.md +17 -0
  86. data/docs/RepositoryDescription.md +8 -0
  87. data/docs/Resource.md +8 -0
  88. data/docs/ResourceList.md +7 -0
  89. data/docs/RetagReq.md +10 -0
  90. data/docs/RetentionApi.md +449 -0
  91. data/docs/RetentionExecution.md +14 -0
  92. data/docs/RetentionExecutionTask.md +18 -0
  93. data/docs/RetentionMetadata.md +10 -0
  94. data/docs/RetentionPolicy.md +12 -0
  95. data/docs/RetentionPolicyScope.md +9 -0
  96. data/docs/RetentionRule.md +15 -0
  97. data/docs/RetentionRuleMetadata.md +11 -0
  98. data/docs/RetentionRuleParamMetadata.md +10 -0
  99. data/docs/RetentionRuleTrigger.md +10 -0
  100. data/docs/RetentionSelector.md +10 -0
  101. data/docs/RetentionSelectorMetadata.md +10 -0
  102. data/docs/RobotAccount.md +15 -0
  103. data/docs/RobotAccountAccess.md +9 -0
  104. data/docs/RobotAccountApi.md +291 -0
  105. data/docs/RobotAccountCreate.md +10 -0
  106. data/docs/RobotAccountPostRep.md +9 -0
  107. data/docs/RobotAccountUpdate.md +8 -0
  108. data/docs/Role.md +11 -0
  109. data/docs/RoleParam.md +9 -0
  110. data/docs/RoleRequest.md +8 -0
  111. data/docs/Search.md +10 -0
  112. data/docs/SearchRepository.md +13 -0
  113. data/docs/SearchResult.md +10 -0
  114. data/docs/SecurityReport.md +8 -0
  115. data/docs/StatisticMap.md +13 -0
  116. data/docs/Storage.md +9 -0
  117. data/docs/StringConfigItem.md +9 -0
  118. data/docs/SystemApi.md +163 -0
  119. data/docs/SystemInfo.md +8 -0
  120. data/docs/Tags.md +8 -0
  121. data/docs/TriggerSettings.md +8 -0
  122. data/docs/UnauthorizedChartAPIError.md +8 -0
  123. data/docs/User.md +21 -0
  124. data/docs/UserEntity.md +9 -0
  125. data/docs/UserGroup.md +11 -0
  126. data/docs/UserProfile.md +10 -0
  127. data/docs/UserSearch.md +9 -0
  128. data/docs/VulnNamespaceTimestamp.md +9 -0
  129. data/docs/VulnerabilityItem.md +13 -0
  130. data/docs/WebhookJob.md +15 -0
  131. data/docs/WebhookLastTrigger.md +11 -0
  132. data/docs/WebhookPolicy.md +17 -0
  133. data/docs/WebhookTargetObject.md +11 -0
  134. data/git_push.sh +55 -0
  135. data/harbor_swagger_client.gemspec +45 -0
  136. data/lib/harbor_swagger_client.rb +168 -0
  137. data/lib/harbor_swagger_client/api/chart_repository_api.rb +762 -0
  138. data/lib/harbor_swagger_client/api/label_api.rb +230 -0
  139. data/lib/harbor_swagger_client/api/products_api.rb +7958 -0
  140. data/lib/harbor_swagger_client/api/quota_api.rb +196 -0
  141. data/lib/harbor_swagger_client/api/retention_api.rb +482 -0
  142. data/lib/harbor_swagger_client/api/robot_account_api.rb +321 -0
  143. data/lib/harbor_swagger_client/api/system_api.rb +173 -0
  144. data/lib/harbor_swagger_client/api_client.rb +389 -0
  145. data/lib/harbor_swagger_client/api_error.rb +38 -0
  146. data/lib/harbor_swagger_client/configuration.rb +209 -0
  147. data/lib/harbor_swagger_client/models/access_log.rb +234 -0
  148. data/lib/harbor_swagger_client/models/action.rb +183 -0
  149. data/lib/harbor_swagger_client/models/action_1.rb +183 -0
  150. data/lib/harbor_swagger_client/models/admin_job_schedule.rb +183 -0
  151. data/lib/harbor_swagger_client/models/admin_job_schedule_obj.rb +194 -0
  152. data/lib/harbor_swagger_client/models/bad_request_formated_error.rb +190 -0
  153. data/lib/harbor_swagger_client/models/bool_config_item.rb +194 -0
  154. data/lib/harbor_swagger_client/models/chart_api_error.rb +190 -0
  155. data/lib/harbor_swagger_client/models/chart_info_entry.rb +270 -0
  156. data/lib/harbor_swagger_client/models/chart_info_list.rb +175 -0
  157. data/lib/harbor_swagger_client/models/chart_metadata.rb +319 -0
  158. data/lib/harbor_swagger_client/models/chart_version.rb +361 -0
  159. data/lib/harbor_swagger_client/models/chart_version_details.rb +235 -0
  160. data/lib/harbor_swagger_client/models/chart_versions.rb +175 -0
  161. data/lib/harbor_swagger_client/models/component_health_status.rb +205 -0
  162. data/lib/harbor_swagger_client/models/component_overview_entry.rb +194 -0
  163. data/lib/harbor_swagger_client/models/configurations.rb +463 -0
  164. data/lib/harbor_swagger_client/models/configurations_response.rb +463 -0
  165. data/lib/harbor_swagger_client/models/configurations_scan_all_policy.rb +193 -0
  166. data/lib/harbor_swagger_client/models/configurations_scan_all_policy_parameter.rb +185 -0
  167. data/lib/harbor_swagger_client/models/conflict_formated_error.rb +190 -0
  168. data/lib/harbor_swagger_client/models/cve_whitelist.rb +216 -0
  169. data/lib/harbor_swagger_client/models/cve_whitelist_item.rb +185 -0
  170. data/lib/harbor_swagger_client/models/dependency.rb +215 -0
  171. data/lib/harbor_swagger_client/models/detailed_tag.rb +285 -0
  172. data/lib/harbor_swagger_client/models/detailed_tag_scan_overview.rb +234 -0
  173. data/lib/harbor_swagger_client/models/detailed_tag_scan_overview_components.rb +197 -0
  174. data/lib/harbor_swagger_client/models/digital_signature.rb +195 -0
  175. data/lib/harbor_swagger_client/models/email_server_setting.rb +234 -0
  176. data/lib/harbor_swagger_client/models/endpoint.rb +194 -0
  177. data/lib/harbor_swagger_client/models/filter_style.rb +207 -0
  178. data/lib/harbor_swagger_client/models/forbidden_chart_api_error.rb +190 -0
  179. data/lib/harbor_swagger_client/models/gc_result.rb +253 -0
  180. data/lib/harbor_swagger_client/models/general_info.rb +303 -0
  181. data/lib/harbor_swagger_client/models/general_info_clair_vulnerability_status.rb +197 -0
  182. data/lib/harbor_swagger_client/models/has_admin_role.rb +184 -0
  183. data/lib/harbor_swagger_client/models/inline_response_200.rb +184 -0
  184. data/lib/harbor_swagger_client/models/inline_response_200_1.rb +183 -0
  185. data/lib/harbor_swagger_client/models/insufficient_storage_chart_api_error.rb +190 -0
  186. data/lib/harbor_swagger_client/models/integer_config_item.rb +194 -0
  187. data/lib/harbor_swagger_client/models/internal_chart_api_error.rb +190 -0
  188. data/lib/harbor_swagger_client/models/job_status.rb +256 -0
  189. data/lib/harbor_swagger_client/models/label.rb +264 -0
  190. data/lib/harbor_swagger_client/models/labels.rb +175 -0
  191. data/lib/harbor_swagger_client/models/ldap_conf.rb +254 -0
  192. data/lib/harbor_swagger_client/models/ldap_failed_import_users.rb +194 -0
  193. data/lib/harbor_swagger_client/models/ldap_import_users.rb +186 -0
  194. data/lib/harbor_swagger_client/models/ldap_users.rb +204 -0
  195. data/lib/harbor_swagger_client/models/manifest.rb +194 -0
  196. data/lib/harbor_swagger_client/models/namespace.rb +195 -0
  197. data/lib/harbor_swagger_client/models/not_found_chart_api_error.rb +190 -0
  198. data/lib/harbor_swagger_client/models/overall_health_status.rb +196 -0
  199. data/lib/harbor_swagger_client/models/password.rb +194 -0
  200. data/lib/harbor_swagger_client/models/permission.rb +195 -0
  201. data/lib/harbor_swagger_client/models/ping_registry.rb +244 -0
  202. data/lib/harbor_swagger_client/models/project.rb +304 -0
  203. data/lib/harbor_swagger_client/models/project_member.rb +202 -0
  204. data/lib/harbor_swagger_client/models/project_member_entity.rb +244 -0
  205. data/lib/harbor_swagger_client/models/project_metadata.rb +234 -0
  206. data/lib/harbor_swagger_client/models/project_req.rb +224 -0
  207. data/lib/harbor_swagger_client/models/project_summary.rb +243 -0
  208. data/lib/harbor_swagger_client/models/project_summary_quota.rb +194 -0
  209. data/lib/harbor_swagger_client/models/put_registry.rb +244 -0
  210. data/lib/harbor_swagger_client/models/quota.rb +235 -0
  211. data/lib/harbor_swagger_client/models/quota_ref_object.rb +174 -0
  212. data/lib/harbor_swagger_client/models/quota_switcher.rb +184 -0
  213. data/lib/harbor_swagger_client/models/quota_update_req.rb +184 -0
  214. data/lib/harbor_swagger_client/models/registry.rb +273 -0
  215. data/lib/harbor_swagger_client/models/registry_credential.rb +204 -0
  216. data/lib/harbor_swagger_client/models/registry_info.rb +219 -0
  217. data/lib/harbor_swagger_client/models/replication_execution.rb +295 -0
  218. data/lib/harbor_swagger_client/models/replication_filter.rb +194 -0
  219. data/lib/harbor_swagger_client/models/replication_policy.rb +305 -0
  220. data/lib/harbor_swagger_client/models/replication_task.rb +265 -0
  221. data/lib/harbor_swagger_client/models/replication_trigger.rb +193 -0
  222. data/lib/harbor_swagger_client/models/repo_signature.rb +194 -0
  223. data/lib/harbor_swagger_client/models/repository.rb +276 -0
  224. data/lib/harbor_swagger_client/models/repository_description.rb +184 -0
  225. data/lib/harbor_swagger_client/models/resource.rb +186 -0
  226. data/lib/harbor_swagger_client/models/resource_list.rb +174 -0
  227. data/lib/harbor_swagger_client/models/retag_req.rb +204 -0
  228. data/lib/harbor_swagger_client/models/retention_execution.rb +237 -0
  229. data/lib/harbor_swagger_client/models/retention_execution_task.rb +273 -0
  230. data/lib/harbor_swagger_client/models/retention_metadata.rb +211 -0
  231. data/lib/harbor_swagger_client/models/retention_policy.rb +222 -0
  232. data/lib/harbor_swagger_client/models/retention_policy_scope.rb +192 -0
  233. data/lib/harbor_swagger_client/models/retention_rule.rb +252 -0
  234. data/lib/harbor_swagger_client/models/retention_rule_metadata.rb +217 -0
  235. data/lib/harbor_swagger_client/models/retention_rule_param_metadata.rb +202 -0
  236. data/lib/harbor_swagger_client/models/retention_rule_trigger.rb +201 -0
  237. data/lib/harbor_swagger_client/models/retention_selector.rb +201 -0
  238. data/lib/harbor_swagger_client/models/retention_selector_metadata.rb +204 -0
  239. data/lib/harbor_swagger_client/models/robot_account.rb +255 -0
  240. data/lib/harbor_swagger_client/models/robot_account_access.rb +194 -0
  241. data/lib/harbor_swagger_client/models/robot_account_create.rb +206 -0
  242. data/lib/harbor_swagger_client/models/robot_account_post_rep.rb +194 -0
  243. data/lib/harbor_swagger_client/models/robot_account_update.rb +184 -0
  244. data/lib/harbor_swagger_client/models/role.rb +213 -0
  245. data/lib/harbor_swagger_client/models/role_param.rb +196 -0
  246. data/lib/harbor_swagger_client/models/role_request.rb +184 -0
  247. data/lib/harbor_swagger_client/models/search.rb +210 -0
  248. data/lib/harbor_swagger_client/models/search_repository.rb +234 -0
  249. data/lib/harbor_swagger_client/models/search_result.rb +204 -0
  250. data/lib/harbor_swagger_client/models/security_report.rb +184 -0
  251. data/lib/harbor_swagger_client/models/statistic_map.rb +234 -0
  252. data/lib/harbor_swagger_client/models/storage.rb +194 -0
  253. data/lib/harbor_swagger_client/models/string_config_item.rb +194 -0
  254. data/lib/harbor_swagger_client/models/system_info.rb +186 -0
  255. data/lib/harbor_swagger_client/models/tags.rb +184 -0
  256. data/lib/harbor_swagger_client/models/trigger_settings.rb +184 -0
  257. data/lib/harbor_swagger_client/models/unauthorized_chart_api_error.rb +190 -0
  258. data/lib/harbor_swagger_client/models/user.rb +301 -0
  259. data/lib/harbor_swagger_client/models/user_entity.rb +194 -0
  260. data/lib/harbor_swagger_client/models/user_group.rb +214 -0
  261. data/lib/harbor_swagger_client/models/user_profile.rb +204 -0
  262. data/lib/harbor_swagger_client/models/user_search.rb +193 -0
  263. data/lib/harbor_swagger_client/models/vuln_namespace_timestamp.rb +194 -0
  264. data/lib/harbor_swagger_client/models/vulnerability_item.rb +234 -0
  265. data/lib/harbor_swagger_client/models/webhook_job.rb +255 -0
  266. data/lib/harbor_swagger_client/models/webhook_last_trigger.rb +215 -0
  267. data/lib/harbor_swagger_client/models/webhook_policy.rb +277 -0
  268. data/lib/harbor_swagger_client/models/webhook_target_object.rb +215 -0
  269. data/lib/harbor_swagger_client/version.rb +15 -0
  270. data/spec/api/chart_repository_api_spec.rb +196 -0
  271. data/spec/api/label_api_spec.rb +79 -0
  272. data/spec/api/products_api_spec.rb +1824 -0
  273. data/spec/api/quota_api_spec.rb +75 -0
  274. data/spec/api/retention_api_spec.rb +136 -0
  275. data/spec/api/robot_account_api_spec.rb +100 -0
  276. data/spec/api/system_api_spec.rb +70 -0
  277. data/spec/api_client_spec.rb +226 -0
  278. data/spec/configuration_spec.rb +42 -0
  279. data/spec/models/access_log_spec.rb +71 -0
  280. data/spec/models/action_1_spec.rb +41 -0
  281. data/spec/models/action_spec.rb +41 -0
  282. data/spec/models/admin_job_schedule_obj_spec.rb +47 -0
  283. data/spec/models/admin_job_schedule_spec.rb +41 -0
  284. data/spec/models/bad_request_formated_error_spec.rb +41 -0
  285. data/spec/models/bool_config_item_spec.rb +47 -0
  286. data/spec/models/chart_api_error_spec.rb +41 -0
  287. data/spec/models/chart_info_entry_spec.rb +83 -0
  288. data/spec/models/chart_info_list_spec.rb +35 -0
  289. data/spec/models/chart_metadata_spec.rb +101 -0
  290. data/spec/models/chart_version_details_spec.rb +71 -0
  291. data/spec/models/chart_version_spec.rb +125 -0
  292. data/spec/models/chart_versions_spec.rb +35 -0
  293. data/spec/models/component_health_status_spec.rb +53 -0
  294. data/spec/models/component_overview_entry_spec.rb +47 -0
  295. data/spec/models/configurations_response_spec.rb +209 -0
  296. data/spec/models/configurations_scan_all_policy_parameter_spec.rb +41 -0
  297. data/spec/models/configurations_scan_all_policy_spec.rb +47 -0
  298. data/spec/models/configurations_spec.rb +209 -0
  299. data/spec/models/conflict_formated_error_spec.rb +41 -0
  300. data/spec/models/cve_whitelist_item_spec.rb +41 -0
  301. data/spec/models/cve_whitelist_spec.rb +59 -0
  302. data/spec/models/dependency_spec.rb +53 -0
  303. data/spec/models/detailed_tag_scan_overview_components_spec.rb +47 -0
  304. data/spec/models/detailed_tag_scan_overview_spec.rb +71 -0
  305. data/spec/models/detailed_tag_spec.rb +101 -0
  306. data/spec/models/digital_signature_spec.rb +47 -0
  307. data/spec/models/email_server_setting_spec.rb +71 -0
  308. data/spec/models/endpoint_spec.rb +47 -0
  309. data/spec/models/filter_style_spec.rb +53 -0
  310. data/spec/models/forbidden_chart_api_error_spec.rb +41 -0
  311. data/spec/models/gc_result_spec.rb +83 -0
  312. data/spec/models/general_info_clair_vulnerability_status_spec.rb +47 -0
  313. data/spec/models/general_info_spec.rb +113 -0
  314. data/spec/models/has_admin_role_spec.rb +41 -0
  315. data/spec/models/inline_response_200_1_spec.rb +41 -0
  316. data/spec/models/inline_response_200_spec.rb +41 -0
  317. data/spec/models/insufficient_storage_chart_api_error_spec.rb +41 -0
  318. data/spec/models/integer_config_item_spec.rb +47 -0
  319. data/spec/models/internal_chart_api_error_spec.rb +41 -0
  320. data/spec/models/job_status_spec.rb +83 -0
  321. data/spec/models/label_spec.rb +89 -0
  322. data/spec/models/labels_spec.rb +35 -0
  323. data/spec/models/ldap_conf_spec.rb +83 -0
  324. data/spec/models/ldap_failed_import_users_spec.rb +47 -0
  325. data/spec/models/ldap_import_users_spec.rb +41 -0
  326. data/spec/models/ldap_users_spec.rb +53 -0
  327. data/spec/models/manifest_spec.rb +47 -0
  328. data/spec/models/namespace_spec.rb +47 -0
  329. data/spec/models/not_found_chart_api_error_spec.rb +41 -0
  330. data/spec/models/overall_health_status_spec.rb +47 -0
  331. data/spec/models/password_spec.rb +47 -0
  332. data/spec/models/permission_spec.rb +47 -0
  333. data/spec/models/ping_registry_spec.rb +77 -0
  334. data/spec/models/project_member_entity_spec.rb +77 -0
  335. data/spec/models/project_member_spec.rb +53 -0
  336. data/spec/models/project_metadata_spec.rb +71 -0
  337. data/spec/models/project_req_spec.rb +65 -0
  338. data/spec/models/project_spec.rb +113 -0
  339. data/spec/models/project_summary_quota_spec.rb +47 -0
  340. data/spec/models/project_summary_spec.rb +77 -0
  341. data/spec/models/put_registry_spec.rb +77 -0
  342. data/spec/models/quota_ref_object_spec.rb +35 -0
  343. data/spec/models/quota_spec.rb +71 -0
  344. data/spec/models/quota_switcher_spec.rb +41 -0
  345. data/spec/models/quota_update_req_spec.rb +41 -0
  346. data/spec/models/registry_credential_spec.rb +53 -0
  347. data/spec/models/registry_info_spec.rb +59 -0
  348. data/spec/models/registry_spec.rb +95 -0
  349. data/spec/models/replication_execution_spec.rb +107 -0
  350. data/spec/models/replication_filter_spec.rb +47 -0
  351. data/spec/models/replication_policy_spec.rb +113 -0
  352. data/spec/models/replication_task_spec.rb +89 -0
  353. data/spec/models/replication_trigger_spec.rb +47 -0
  354. data/spec/models/repo_signature_spec.rb +47 -0
  355. data/spec/models/repository_description_spec.rb +41 -0
  356. data/spec/models/repository_spec.rb +95 -0
  357. data/spec/models/resource_list_spec.rb +35 -0
  358. data/spec/models/resource_spec.rb +41 -0
  359. data/spec/models/retag_req_spec.rb +53 -0
  360. data/spec/models/retention_execution_spec.rb +77 -0
  361. data/spec/models/retention_execution_task_spec.rb +101 -0
  362. data/spec/models/retention_metadata_spec.rb +53 -0
  363. data/spec/models/retention_policy_scope_spec.rb +47 -0
  364. data/spec/models/retention_policy_spec.rb +65 -0
  365. data/spec/models/retention_rule_metadata_spec.rb +59 -0
  366. data/spec/models/retention_rule_param_metadata_spec.rb +53 -0
  367. data/spec/models/retention_rule_spec.rb +83 -0
  368. data/spec/models/retention_rule_trigger_spec.rb +53 -0
  369. data/spec/models/retention_selector_metadata_spec.rb +53 -0
  370. data/spec/models/retention_selector_spec.rb +53 -0
  371. data/spec/models/robot_account_access_spec.rb +47 -0
  372. data/spec/models/robot_account_create_spec.rb +53 -0
  373. data/spec/models/robot_account_post_rep_spec.rb +47 -0
  374. data/spec/models/robot_account_spec.rb +83 -0
  375. data/spec/models/robot_account_update_spec.rb +41 -0
  376. data/spec/models/role_param_spec.rb +47 -0
  377. data/spec/models/role_request_spec.rb +41 -0
  378. data/spec/models/role_spec.rb +59 -0
  379. data/spec/models/search_repository_spec.rb +71 -0
  380. data/spec/models/search_result_spec.rb +53 -0
  381. data/spec/models/search_spec.rb +53 -0
  382. data/spec/models/security_report_spec.rb +41 -0
  383. data/spec/models/statistic_map_spec.rb +71 -0
  384. data/spec/models/storage_spec.rb +47 -0
  385. data/spec/models/string_config_item_spec.rb +47 -0
  386. data/spec/models/system_info_spec.rb +41 -0
  387. data/spec/models/tags_spec.rb +41 -0
  388. data/spec/models/trigger_settings_spec.rb +41 -0
  389. data/spec/models/unauthorized_chart_api_error_spec.rb +41 -0
  390. data/spec/models/user_entity_spec.rb +47 -0
  391. data/spec/models/user_group_spec.rb +59 -0
  392. data/spec/models/user_profile_spec.rb +53 -0
  393. data/spec/models/user_search_spec.rb +47 -0
  394. data/spec/models/user_spec.rb +119 -0
  395. data/spec/models/vuln_namespace_timestamp_spec.rb +47 -0
  396. data/spec/models/vulnerability_item_spec.rb +71 -0
  397. data/spec/models/webhook_job_spec.rb +83 -0
  398. data/spec/models/webhook_last_trigger_spec.rb +59 -0
  399. data/spec/models/webhook_policy_spec.rb +95 -0
  400. data/spec/models/webhook_target_object_spec.rb +59 -0
  401. data/spec/spec_helper.rb +111 -0
  402. metadata +756 -0
@@ -0,0 +1,1824 @@
1
+ =begin
2
+ #Harbor API
3
+
4
+ #These APIs provide services for manipulating Harbor project.
5
+
6
+ OpenAPI spec version: 1.9.0
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.7
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for SwaggerClient::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 = SwaggerClient::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(SwaggerClient::ProductsApi)
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 [InlineResponse2001]
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_logs_get
486
+ # Get access logs accompany with a relevant project.
487
+ # This endpoint let user search access logs filtered by operations and date time ranges.
488
+ # @param project_id Relevant project ID
489
+ # @param [Hash] opts the optional parameters
490
+ # @option opts [String] :username Username of the operator.
491
+ # @option opts [String] :repository The name of repository
492
+ # @option opts [String] :tag The name of tag
493
+ # @option opts [String] :operation The operation
494
+ # @option opts [String] :begin_timestamp The begin timestamp
495
+ # @option opts [String] :end_timestamp The end timestamp
496
+ # @option opts [Integer] :page The page number, default is 1.
497
+ # @option opts [Integer] :page_size The size of per page, default is 10, maximum is 100.
498
+ # @return [Array<AccessLog>]
499
+ describe 'projects_project_id_logs_get test' do
500
+ it 'should work' do
501
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
502
+ end
503
+ end
504
+
505
+ # unit tests for projects_project_id_members_get
506
+ # Get all project member information
507
+ # Get all project member information
508
+ # @param project_id Relevant project ID.
509
+ # @param [Hash] opts the optional parameters
510
+ # @option opts [String] :entityname The entity name to search.
511
+ # @return [Array<ProjectMemberEntity>]
512
+ describe 'projects_project_id_members_get test' do
513
+ it 'should work' do
514
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
515
+ end
516
+ end
517
+
518
+ # unit tests for projects_project_id_members_mid_delete
519
+ # Delete project member
520
+ # @param project_id Relevant project ID.
521
+ # @param mid Member ID.
522
+ # @param [Hash] opts the optional parameters
523
+ # @return [nil]
524
+ describe 'projects_project_id_members_mid_delete test' do
525
+ it 'should work' do
526
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
527
+ end
528
+ end
529
+
530
+ # unit tests for projects_project_id_members_mid_get
531
+ # Get the project member information
532
+ # Get the project member information
533
+ # @param project_id Relevant project ID.
534
+ # @param mid The member ID
535
+ # @param [Hash] opts the optional parameters
536
+ # @return [ProjectMemberEntity]
537
+ describe 'projects_project_id_members_mid_get test' do
538
+ it 'should work' do
539
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
540
+ end
541
+ end
542
+
543
+ # unit tests for projects_project_id_members_mid_put
544
+ # Update project member
545
+ # Update project member relationship
546
+ # @param project_id Relevant project ID.
547
+ # @param mid Member ID.
548
+ # @param [Hash] opts the optional parameters
549
+ # @option opts [RoleRequest] :role
550
+ # @return [nil]
551
+ describe 'projects_project_id_members_mid_put test' do
552
+ it 'should work' do
553
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
554
+ end
555
+ end
556
+
557
+ # unit tests for projects_project_id_members_post
558
+ # Create project member
559
+ # 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.
560
+ # @param project_id Relevant project ID.
561
+ # @param [Hash] opts the optional parameters
562
+ # @option opts [ProjectMember] :project_member
563
+ # @return [nil]
564
+ describe 'projects_project_id_members_post test' do
565
+ it 'should work' do
566
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
567
+ end
568
+ end
569
+
570
+ # unit tests for projects_project_id_metadatas_get
571
+ # Get project metadata.
572
+ # This endpoint returns metadata of the project specified by project ID.
573
+ # @param project_id The ID of project.
574
+ # @param [Hash] opts the optional parameters
575
+ # @return [ProjectMetadata]
576
+ describe 'projects_project_id_metadatas_get test' do
577
+ it 'should work' do
578
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
579
+ end
580
+ end
581
+
582
+ # unit tests for projects_project_id_metadatas_meta_name_delete
583
+ # Delete metadata of a project
584
+ # This endpoint is aimed to delete metadata of a project.
585
+ # @param project_id The ID of project.
586
+ # @param meta_name The name of metadat.
587
+ # @param [Hash] opts the optional parameters
588
+ # @return [nil]
589
+ describe 'projects_project_id_metadatas_meta_name_delete test' do
590
+ it 'should work' do
591
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
592
+ end
593
+ end
594
+
595
+ # unit tests for projects_project_id_metadatas_meta_name_get
596
+ # Get project metadata
597
+ # This endpoint returns specified metadata of a project.
598
+ # @param project_id Project ID for filtering results.
599
+ # @param meta_name The name of metadat.
600
+ # @param [Hash] opts the optional parameters
601
+ # @return [ProjectMetadata]
602
+ describe 'projects_project_id_metadatas_meta_name_get test' do
603
+ it 'should work' do
604
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
605
+ end
606
+ end
607
+
608
+ # unit tests for projects_project_id_metadatas_meta_name_put
609
+ # Update metadata of a project.
610
+ # This endpoint is aimed to update the metadata of a project.
611
+ # @param project_id The ID of project.
612
+ # @param meta_name The name of metadat.
613
+ # @param [Hash] opts the optional parameters
614
+ # @return [nil]
615
+ describe 'projects_project_id_metadatas_meta_name_put test' do
616
+ it 'should work' do
617
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
618
+ end
619
+ end
620
+
621
+ # unit tests for projects_project_id_metadatas_post
622
+ # Add metadata for the project.
623
+ # This endpoint is aimed to add metadata of a project.
624
+ # @param project_id Selected project ID.
625
+ # @param metadata The metadata of project.
626
+ # @param [Hash] opts the optional parameters
627
+ # @return [nil]
628
+ describe 'projects_project_id_metadatas_post test' do
629
+ it 'should work' do
630
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
631
+ end
632
+ end
633
+
634
+ # unit tests for projects_project_id_put
635
+ # Update properties for a selected project.
636
+ # This endpoint is aimed to update the properties of a project.
637
+ # @param project_id Selected project ID.
638
+ # @param project Updates of project.
639
+ # @param [Hash] opts the optional parameters
640
+ # @return [nil]
641
+ describe 'projects_project_id_put test' do
642
+ it 'should work' do
643
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
644
+ end
645
+ end
646
+
647
+ # unit tests for projects_project_id_robots_get
648
+ # Get all robot accounts of specified project
649
+ # Get all robot accounts of specified project
650
+ # @param project_id Relevant project ID.
651
+ # @param [Hash] opts the optional parameters
652
+ # @return [Array<RobotAccount>]
653
+ describe 'projects_project_id_robots_get test' do
654
+ it 'should work' do
655
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
656
+ end
657
+ end
658
+
659
+ # unit tests for projects_project_id_robots_post
660
+ # Create a robot account for project
661
+ # Create a robot account for project
662
+ # @param project_id Relevant project ID.
663
+ # @param robot Request body of creating a robot account.
664
+ # @param [Hash] opts the optional parameters
665
+ # @return [RobotAccountPostRep]
666
+ describe 'projects_project_id_robots_post test' do
667
+ it 'should work' do
668
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
669
+ end
670
+ end
671
+
672
+ # unit tests for projects_project_id_robots_robot_id_delete
673
+ # Delete the specified robot account
674
+ # Delete the specified robot account
675
+ # @param project_id Relevant project ID.
676
+ # @param robot_id The ID of robot account.
677
+ # @param [Hash] opts the optional parameters
678
+ # @return [nil]
679
+ describe 'projects_project_id_robots_robot_id_delete test' do
680
+ it 'should work' do
681
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
682
+ end
683
+ end
684
+
685
+ # unit tests for projects_project_id_robots_robot_id_get
686
+ # Return the infor of the specified robot account.
687
+ # Return the infor of the specified robot account.
688
+ # @param project_id Relevant project ID.
689
+ # @param robot_id The ID of robot account.
690
+ # @param [Hash] opts the optional parameters
691
+ # @return [RobotAccount]
692
+ describe 'projects_project_id_robots_robot_id_get test' do
693
+ it 'should work' do
694
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
695
+ end
696
+ end
697
+
698
+ # unit tests for projects_project_id_robots_robot_id_put
699
+ # Update status of robot account.
700
+ # Used to disable/enable a specified robot account.
701
+ # @param project_id Relevant project ID.
702
+ # @param robot_id The ID of robot account.
703
+ # @param robot Request body of enable/disable a robot account.
704
+ # @param [Hash] opts the optional parameters
705
+ # @return [nil]
706
+ describe 'projects_project_id_robots_robot_id_put test' do
707
+ it 'should work' do
708
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
709
+ end
710
+ end
711
+
712
+ # unit tests for projects_project_id_summary_get
713
+ # Get summary of the project.
714
+ # Get summary of the project.
715
+ # @param project_id Relevant project ID
716
+ # @param [Hash] opts the optional parameters
717
+ # @return [ProjectSummary]
718
+ describe 'projects_project_id_summary_get test' do
719
+ it 'should work' do
720
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
721
+ end
722
+ end
723
+
724
+ # unit tests for projects_project_id_webhook_jobs_get
725
+ # List project webhook jobs
726
+ # This endpoint returns webhook jobs of a project.
727
+ # @param project_id Relevant project ID.
728
+ # @param policy_id The policy ID.
729
+ # @param [Hash] opts the optional parameters
730
+ # @return [Array<WebhookJob>]
731
+ describe 'projects_project_id_webhook_jobs_get test' do
732
+ it 'should work' do
733
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
734
+ end
735
+ end
736
+
737
+ # unit tests for projects_project_id_webhook_lasttrigger_get
738
+ # Get project webhook policy last trigger info
739
+ # This endpoint returns last trigger information of project webhook policy.
740
+ # @param project_id Relevant project ID.
741
+ # @param [Hash] opts the optional parameters
742
+ # @return [Array<WebhookLastTrigger>]
743
+ describe 'projects_project_id_webhook_lasttrigger_get test' do
744
+ it 'should work' do
745
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
746
+ end
747
+ end
748
+
749
+ # unit tests for projects_project_id_webhook_policies_get
750
+ # List project webhook policies.
751
+ # This endpoint returns webhook policies of a project.
752
+ # @param project_id Relevant project ID.
753
+ # @param [Hash] opts the optional parameters
754
+ # @return [Array<WebhookPolicy>]
755
+ describe 'projects_project_id_webhook_policies_get test' do
756
+ it 'should work' do
757
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
758
+ end
759
+ end
760
+
761
+ # unit tests for projects_project_id_webhook_policies_policy_id_delete
762
+ # Delete webhook policy of a project
763
+ # This endpoint is aimed to delete webhookpolicy of a project.
764
+ # @param project_id Relevant project ID.
765
+ # @param policy_id The id of webhook policy.
766
+ # @param [Hash] opts the optional parameters
767
+ # @return [nil]
768
+ describe 'projects_project_id_webhook_policies_policy_id_delete 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_webhook_policies_policy_id_get
775
+ # Get project webhook policy
776
+ # This endpoint returns specified webhook policy of a project.
777
+ # @param project_id Relevant project ID.
778
+ # @param policy_id The id of webhook policy.
779
+ # @param [Hash] opts the optional parameters
780
+ # @return [WebhookPolicy]
781
+ describe 'projects_project_id_webhook_policies_policy_id_get test' do
782
+ it 'should work' do
783
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
784
+ end
785
+ end
786
+
787
+ # unit tests for projects_project_id_webhook_policies_policy_id_put
788
+ # Update webhook policy of a project.
789
+ # This endpoint is aimed to update the webhook policy of a project.
790
+ # @param project_id Relevant project ID.
791
+ # @param policy_id The id of webhook policy.
792
+ # @param policy All properties needed except \&quot;id\&quot;, \&quot;project_id\&quot;, \&quot;creation_time\&quot;, \&quot;update_time\&quot;.
793
+ # @param [Hash] opts the optional parameters
794
+ # @return [nil]
795
+ describe 'projects_project_id_webhook_policies_policy_id_put test' do
796
+ it 'should work' do
797
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
798
+ end
799
+ end
800
+
801
+ # unit tests for projects_project_id_webhook_policies_post
802
+ # Create project webhook policy.
803
+ # This endpoint create a webhook policy if the project does not have one.
804
+ # @param project_id Relevant project ID
805
+ # @param policy Properties \&quot;targets\&quot; and \&quot;event_types\&quot; needed.
806
+ # @param [Hash] opts the optional parameters
807
+ # @return [nil]
808
+ describe 'projects_project_id_webhook_policies_post test' do
809
+ it 'should work' do
810
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
811
+ end
812
+ end
813
+
814
+ # unit tests for projects_project_id_webhook_policies_test_post
815
+ # Test project webhook connection
816
+ # This endpoint tests webhook connection of a project.
817
+ # @param project_id Relevant project ID.
818
+ # @param policy Only property \&quot;targets\&quot; needed.
819
+ # @param [Hash] opts the optional parameters
820
+ # @return [nil]
821
+ describe 'projects_project_id_webhook_policies_test_post test' do
822
+ it 'should work' do
823
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
824
+ end
825
+ end
826
+
827
+ # unit tests for registries_get
828
+ # List registries.
829
+ # This endpoint let user list filtered registries by name, if name is nil, list returns all registries.
830
+ # @param [Hash] opts the optional parameters
831
+ # @option opts [String] :name Registry&#39;s name.
832
+ # @return [Array<Registry>]
833
+ describe 'registries_get test' do
834
+ it 'should work' do
835
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
836
+ end
837
+ end
838
+
839
+ # unit tests for registries_id_delete
840
+ # Delete specific registry.
841
+ # This endpoint is for to delete specific registry.
842
+ # @param id The registry&#39;s ID.
843
+ # @param [Hash] opts the optional parameters
844
+ # @return [nil]
845
+ describe 'registries_id_delete test' do
846
+ it 'should work' do
847
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
848
+ end
849
+ end
850
+
851
+ # unit tests for registries_id_get
852
+ # Get registry.
853
+ # This endpoint is for get specific registry.
854
+ # @param id The registry ID.
855
+ # @param [Hash] opts the optional parameters
856
+ # @return [Registry]
857
+ describe 'registries_id_get test' do
858
+ it 'should work' do
859
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
860
+ end
861
+ end
862
+
863
+ # unit tests for registries_id_info_get
864
+ # Get registry info.
865
+ # Get the info of one specific registry.
866
+ # @param id The registry ID.
867
+ # @param [Hash] opts the optional parameters
868
+ # @return [RegistryInfo]
869
+ describe 'registries_id_info_get 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 registries_id_namespace_get
876
+ # List namespaces of registry
877
+ # This endpoint let user list namespaces of registry according to query.
878
+ # @param id The registry ID.
879
+ # @param [Hash] opts the optional parameters
880
+ # @option opts [String] :name The name of namespace.
881
+ # @return [Array<Namespace>]
882
+ describe 'registries_id_namespace_get 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 registries_id_put
889
+ # Update a given registry.
890
+ # This endpoint is for update a given registry.
891
+ # @param id The registry&#39;s ID.
892
+ # @param repo_target Updates registry.
893
+ # @param [Hash] opts the optional parameters
894
+ # @return [nil]
895
+ describe 'registries_id_put 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 registries_ping_post
902
+ # Ping status of a registry.
903
+ # This endpoint checks status of a registry, the registry can be given by ID or URL (together with credential)
904
+ # @param registry Registry to ping.
905
+ # @param [Hash] opts the optional parameters
906
+ # @return [nil]
907
+ describe 'registries_ping_post test' do
908
+ it 'should work' do
909
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
910
+ end
911
+ end
912
+
913
+ # unit tests for registries_post
914
+ # Create a new registry.
915
+ # This endpoint is for user to create a new registry.
916
+ # @param registry New created registry.
917
+ # @param [Hash] opts the optional parameters
918
+ # @return [nil]
919
+ describe 'registries_post test' do
920
+ it 'should work' do
921
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
922
+ end
923
+ end
924
+
925
+ # unit tests for replication_adapters_get
926
+ # List supported adapters.
927
+ # This endpoint let user list supported adapters.
928
+ # @param [Hash] opts the optional parameters
929
+ # @return [Array<String>]
930
+ describe 'replication_adapters_get test' do
931
+ it 'should work' do
932
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
933
+ end
934
+ end
935
+
936
+ # unit tests for replication_executions_get
937
+ # List replication executions.
938
+ # This endpoint let user list replication executions.
939
+ # @param [Hash] opts the optional parameters
940
+ # @option opts [Integer] :policy_id The policy ID.
941
+ # @option opts [String] :status The execution status.
942
+ # @option opts [String] :trigger The trigger mode.
943
+ # @option opts [Integer] :page The page.
944
+ # @option opts [Integer] :page_size The page size.
945
+ # @return [Array<ReplicationExecution>]
946
+ describe 'replication_executions_get test' do
947
+ it 'should work' do
948
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
949
+ end
950
+ end
951
+
952
+ # unit tests for replication_executions_id_get
953
+ # Get the execution of the replication.
954
+ # This endpoint is for user to get one execution of the replication.
955
+ # @param id The execution ID.
956
+ # @param [Hash] opts the optional parameters
957
+ # @return [ReplicationExecution]
958
+ describe 'replication_executions_id_get test' do
959
+ it 'should work' do
960
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
961
+ end
962
+ end
963
+
964
+ # unit tests for replication_executions_id_put
965
+ # Stop the execution of the replication.
966
+ # This endpoint is for user to stop one execution of the replication.
967
+ # @param id The execution ID.
968
+ # @param [Hash] opts the optional parameters
969
+ # @return [nil]
970
+ describe 'replication_executions_id_put test' do
971
+ it 'should work' do
972
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
973
+ end
974
+ end
975
+
976
+ # unit tests for replication_executions_id_tasks_get
977
+ # Get the task list of one execution.
978
+ # This endpoint is for user to get the task list of one execution.
979
+ # @param id The execution ID.
980
+ # @param [Hash] opts the optional parameters
981
+ # @return [Array<ReplicationTask>]
982
+ describe 'replication_executions_id_tasks_get test' do
983
+ it 'should work' do
984
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
985
+ end
986
+ end
987
+
988
+ # unit tests for replication_executions_id_tasks_task_id_log_get
989
+ # Get the log of one task.
990
+ # This endpoint is for user to get the log of one task.
991
+ # @param id The execution ID.
992
+ # @param task_id The task ID.
993
+ # @param [Hash] opts the optional parameters
994
+ # @return [nil]
995
+ describe 'replication_executions_id_tasks_task_id_log_get test' do
996
+ it 'should work' do
997
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
998
+ end
999
+ end
1000
+
1001
+ # unit tests for replication_executions_post
1002
+ # Start one execution of the replication.
1003
+ # This endpoint is for user to start one execution of the replication.
1004
+ # @param execution The execution that needs to be started, only the property \&quot;policy_id\&quot; is needed.
1005
+ # @param [Hash] opts the optional parameters
1006
+ # @return [nil]
1007
+ describe 'replication_executions_post test' do
1008
+ it 'should work' do
1009
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1010
+ end
1011
+ end
1012
+
1013
+ # unit tests for replication_policies_get
1014
+ # List replication policies
1015
+ # This endpoint let user list replication policies
1016
+ # @param [Hash] opts the optional parameters
1017
+ # @option opts [String] :name The replication policy name.
1018
+ # @option opts [Integer] :page The page nubmer.
1019
+ # @option opts [Integer] :page_size The size of per page.
1020
+ # @return [Array<ReplicationPolicy>]
1021
+ describe 'replication_policies_get test' do
1022
+ it 'should work' do
1023
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1024
+ end
1025
+ end
1026
+
1027
+ # unit tests for replication_policies_id_delete
1028
+ # Delete the replication policy specified by ID.
1029
+ # Delete the replication policy specified by ID.
1030
+ # @param id Replication policy ID
1031
+ # @param [Hash] opts the optional parameters
1032
+ # @return [nil]
1033
+ describe 'replication_policies_id_delete test' do
1034
+ it 'should work' do
1035
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1036
+ end
1037
+ end
1038
+
1039
+ # unit tests for replication_policies_id_get
1040
+ # Get replication policy.
1041
+ # This endpoint let user get replication policy by specific ID.
1042
+ # @param id policy ID
1043
+ # @param [Hash] opts the optional parameters
1044
+ # @return [ReplicationPolicy]
1045
+ describe 'replication_policies_id_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_policies_id_put
1052
+ # Update the replication policy
1053
+ # This endpoint let user update policy.
1054
+ # @param id policy ID
1055
+ # @param policy The replication policy model.
1056
+ # @param [Hash] opts the optional parameters
1057
+ # @return [nil]
1058
+ describe 'replication_policies_id_put test' do
1059
+ it 'should work' do
1060
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1061
+ end
1062
+ end
1063
+
1064
+ # unit tests for replication_policies_post
1065
+ # Create a replication policy
1066
+ # This endpoint let user create a replication policy
1067
+ # @param policy The policy model.
1068
+ # @param [Hash] opts the optional parameters
1069
+ # @return [nil]
1070
+ describe 'replication_policies_post test' do
1071
+ it 'should work' do
1072
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1073
+ end
1074
+ end
1075
+
1076
+ # unit tests for repositories_get
1077
+ # Get repositories accompany with relevant project and repo name.
1078
+ # 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.
1079
+ # @param project_id Relevant project ID.
1080
+ # @param [Hash] opts the optional parameters
1081
+ # @option opts [String] :q Repo name for filtering results.
1082
+ # @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.
1083
+ # @option opts [Integer] :label_id The ID of label used to filter the result.
1084
+ # @option opts [Integer] :page The page number, default is 1.
1085
+ # @option opts [Integer] :page_size The size of per page, default is 10, maximum is 100.
1086
+ # @return [Array<Repository>]
1087
+ describe 'repositories_get test' do
1088
+ it 'should work' do
1089
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1090
+ end
1091
+ end
1092
+
1093
+ # unit tests for repositories_repo_name_delete
1094
+ # Delete a repository.
1095
+ # This endpoint let user delete a repository with name.
1096
+ # @param repo_name The name of repository which will be deleted.
1097
+ # @param [Hash] opts the optional parameters
1098
+ # @return [nil]
1099
+ describe 'repositories_repo_name_delete test' do
1100
+ it 'should work' do
1101
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1102
+ end
1103
+ end
1104
+
1105
+ # unit tests for repositories_repo_name_labels_get
1106
+ # Get labels of a repository.
1107
+ # Get labels of a repository specified by the repo_name.
1108
+ # @param repo_name The name of repository.
1109
+ # @param [Hash] opts the optional parameters
1110
+ # @return [Array<Label>]
1111
+ describe 'repositories_repo_name_labels_get test' do
1112
+ it 'should work' do
1113
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1114
+ end
1115
+ end
1116
+
1117
+ # unit tests for repositories_repo_name_labels_label_id_delete
1118
+ # Delete label from the repository.
1119
+ # Delete the label from the repository specified by the repo_name.
1120
+ # @param repo_name The name of repository.
1121
+ # @param label_id The ID of label.
1122
+ # @param [Hash] opts the optional parameters
1123
+ # @return [nil]
1124
+ describe 'repositories_repo_name_labels_label_id_delete test' do
1125
+ it 'should work' do
1126
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1127
+ end
1128
+ end
1129
+
1130
+ # unit tests for repositories_repo_name_labels_post
1131
+ # Add a label to the repository.
1132
+ # Add a label to the repository.
1133
+ # @param repo_name The name of repository.
1134
+ # @param label Only the ID property is required.
1135
+ # @param [Hash] opts the optional parameters
1136
+ # @return [nil]
1137
+ describe 'repositories_repo_name_labels_post test' do
1138
+ it 'should work' do
1139
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1140
+ end
1141
+ end
1142
+
1143
+ # unit tests for repositories_repo_name_put
1144
+ # Update description of the repository.
1145
+ # This endpoint is used to update description of the repository.
1146
+ # @param repo_name The name of repository which will be deleted.
1147
+ # @param description The description of the repository.
1148
+ # @param [Hash] opts the optional parameters
1149
+ # @return [nil]
1150
+ describe 'repositories_repo_name_put test' do
1151
+ it 'should work' do
1152
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1153
+ end
1154
+ end
1155
+
1156
+ # unit tests for repositories_repo_name_signatures_get
1157
+ # Get signature information of a repository
1158
+ # 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
1159
+ # @param repo_name repository name.
1160
+ # @param [Hash] opts the optional parameters
1161
+ # @return [Array<RepoSignature>]
1162
+ describe 'repositories_repo_name_signatures_get test' do
1163
+ it 'should work' do
1164
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1165
+ end
1166
+ end
1167
+
1168
+ # unit tests for repositories_repo_name_tags_get
1169
+ # Get tags of a relevant repository.
1170
+ # 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.
1171
+ # @param repo_name Relevant repository name.
1172
+ # @param [Hash] opts the optional parameters
1173
+ # @option opts [String] :label_id A label ID.
1174
+ # @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.
1175
+ # @return [Array<DetailedTag>]
1176
+ describe 'repositories_repo_name_tags_get test' do
1177
+ it 'should work' do
1178
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1179
+ end
1180
+ end
1181
+
1182
+ # unit tests for repositories_repo_name_tags_post
1183
+ # Retag an image
1184
+ # This endpoint tags an existing image with another tag in this repo, source images can be in different repos or projects.
1185
+ # @param repo_name Relevant repository name.
1186
+ # @param request Request to give source image and target tag.
1187
+ # @param [Hash] opts the optional parameters
1188
+ # @return [nil]
1189
+ describe 'repositories_repo_name_tags_post test' do
1190
+ it 'should work' do
1191
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1192
+ end
1193
+ end
1194
+
1195
+ # unit tests for repositories_repo_name_tags_tag_delete
1196
+ # Delete a tag in a repository.
1197
+ # This endpoint let user delete tags with repo name and tag.
1198
+ # @param repo_name The name of repository which will be deleted.
1199
+ # @param tag Tag of a repository.
1200
+ # @param [Hash] opts the optional parameters
1201
+ # @return [nil]
1202
+ describe 'repositories_repo_name_tags_tag_delete 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_tags_tag_get
1209
+ # Get the tag of the repository.
1210
+ # 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.
1211
+ # @param repo_name Relevant repository name.
1212
+ # @param tag Tag of the repository.
1213
+ # @param [Hash] opts the optional parameters
1214
+ # @return [DetailedTag]
1215
+ describe 'repositories_repo_name_tags_tag_get test' do
1216
+ it 'should work' do
1217
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1218
+ end
1219
+ end
1220
+
1221
+ # unit tests for repositories_repo_name_tags_tag_labels_get
1222
+ # Get labels of an image.
1223
+ # Get labels of an image specified by the repo_name and tag.
1224
+ # @param repo_name The name of repository.
1225
+ # @param tag The tag of the image.
1226
+ # @param [Hash] opts the optional parameters
1227
+ # @return [Array<Label>]
1228
+ describe 'repositories_repo_name_tags_tag_labels_get test' do
1229
+ it 'should work' do
1230
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1231
+ end
1232
+ end
1233
+
1234
+ # unit tests for repositories_repo_name_tags_tag_labels_label_id_delete
1235
+ # Delete label from the image.
1236
+ # Delete the label from the image specified by the repo_name and tag.
1237
+ # @param repo_name The name of repository.
1238
+ # @param tag The tag of the image.
1239
+ # @param label_id The ID of label.
1240
+ # @param [Hash] opts the optional parameters
1241
+ # @return [nil]
1242
+ describe 'repositories_repo_name_tags_tag_labels_label_id_delete test' do
1243
+ it 'should work' do
1244
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1245
+ end
1246
+ end
1247
+
1248
+ # unit tests for repositories_repo_name_tags_tag_labels_post
1249
+ # Add a label to image.
1250
+ # Add a label to the image.
1251
+ # @param repo_name The name of repository.
1252
+ # @param tag The tag of the image.
1253
+ # @param label Only the ID property is required.
1254
+ # @param [Hash] opts the optional parameters
1255
+ # @return [nil]
1256
+ describe 'repositories_repo_name_tags_tag_labels_post test' do
1257
+ it 'should work' do
1258
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1259
+ end
1260
+ end
1261
+
1262
+ # unit tests for repositories_repo_name_tags_tag_manifest_get
1263
+ # Get manifests of a relevant repository.
1264
+ # This endpoint aims to retreive manifests from a relevant repository.
1265
+ # @param repo_name Repository name
1266
+ # @param tag Tag name
1267
+ # @param [Hash] opts the optional parameters
1268
+ # @option opts [String] :version The version of manifest, valid value are \&quot;v1\&quot; and \&quot;v2\&quot;, default is \&quot;v2\&quot;
1269
+ # @return [Manifest]
1270
+ describe 'repositories_repo_name_tags_tag_manifest_get test' do
1271
+ it 'should work' do
1272
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1273
+ end
1274
+ end
1275
+
1276
+ # unit tests for repositories_repo_name_tags_tag_scan_post
1277
+ # Scan the image.
1278
+ # Trigger jobservice to call Clair API to scan the image identified by the repo_name and tag. Only project admins have permission to scan images under the project.
1279
+ # @param repo_name Repository name
1280
+ # @param tag Tag name
1281
+ # @param [Hash] opts the optional parameters
1282
+ # @return [nil]
1283
+ describe 'repositories_repo_name_tags_tag_scan_post test' do
1284
+ it 'should work' do
1285
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1286
+ end
1287
+ end
1288
+
1289
+ # unit tests for repositories_repo_name_tags_tag_vulnerability_details_get
1290
+ # Get vulnerability details of the image.
1291
+ # Call Clair API to get the vulnerability based on the previous successful scan.
1292
+ # @param repo_name Repository name
1293
+ # @param tag Tag name
1294
+ # @param [Hash] opts the optional parameters
1295
+ # @return [Array<VulnerabilityItem>]
1296
+ describe 'repositories_repo_name_tags_tag_vulnerability_details_get test' do
1297
+ it 'should work' do
1298
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1299
+ end
1300
+ end
1301
+
1302
+ # unit tests for repositories_top_get
1303
+ # Get public repositories which are accessed most.
1304
+ # This endpoint aims to let users see the most popular public repositories
1305
+ # @param [Hash] opts the optional parameters
1306
+ # @option opts [Integer] :count The number of the requested public repositories, default is 10 if not provided.
1307
+ # @return [Array<Repository>]
1308
+ describe 'repositories_top_get test' do
1309
+ it 'should work' do
1310
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1311
+ end
1312
+ end
1313
+
1314
+ # unit tests for retentions_id_executions_eid_patch
1315
+ # Stop a Retention job
1316
+ # Stop a Retention job, only support \&quot;stop\&quot; action now.
1317
+ # @param id Retention ID.
1318
+ # @param eid Retention execution ID.
1319
+ # @param action The action, only support \&quot;stop\&quot; now.
1320
+ # @param [Hash] opts the optional parameters
1321
+ # @return [nil]
1322
+ describe 'retentions_id_executions_eid_patch test' do
1323
+ it 'should work' do
1324
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1325
+ end
1326
+ end
1327
+
1328
+ # unit tests for retentions_id_executions_eid_tasks_get
1329
+ # Get Retention job tasks
1330
+ # Get Retention job tasks, each repository as a task.
1331
+ # @param id Retention ID.
1332
+ # @param eid Retention execution ID.
1333
+ # @param [Hash] opts the optional parameters
1334
+ # @return [Array<RetentionExecutionTask>]
1335
+ describe 'retentions_id_executions_eid_tasks_get test' do
1336
+ it 'should work' do
1337
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1338
+ end
1339
+ end
1340
+
1341
+ # unit tests for retentions_id_executions_eid_tasks_tid_get
1342
+ # Get Retention job task log
1343
+ # Get Retention job task log, tags ratain or deletion detail will be shown in a table.
1344
+ # @param id Retention ID.
1345
+ # @param eid Retention execution ID.
1346
+ # @param tid Retention execution ID.
1347
+ # @param [Hash] opts the optional parameters
1348
+ # @return [String]
1349
+ describe 'retentions_id_executions_eid_tasks_tid_get test' do
1350
+ it 'should work' do
1351
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1352
+ end
1353
+ end
1354
+
1355
+ # unit tests for retentions_id_executions_get
1356
+ # Get a Retention job
1357
+ # Get a Retention job, job status may be delayed before job service schedule it up.
1358
+ # @param id Retention ID.
1359
+ # @param [Hash] opts the optional parameters
1360
+ # @return [Array<RetentionExecution>]
1361
+ describe 'retentions_id_executions_get test' do
1362
+ it 'should work' do
1363
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1364
+ end
1365
+ end
1366
+
1367
+ # unit tests for retentions_id_executions_post
1368
+ # Trigger a Retention job
1369
+ # Trigger a Retention job, if dry_run is True, nothing would be deleted actually.
1370
+ # @param id Retention ID.
1371
+ # @param action
1372
+ # @param [Hash] opts the optional parameters
1373
+ # @return [nil]
1374
+ describe 'retentions_id_executions_post test' do
1375
+ it 'should work' do
1376
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1377
+ end
1378
+ end
1379
+
1380
+ # unit tests for retentions_id_get
1381
+ # Get Retention Policy
1382
+ # Get Retention Policy.
1383
+ # @param id Retention ID.
1384
+ # @param [Hash] opts the optional parameters
1385
+ # @return [RetentionPolicy]
1386
+ describe 'retentions_id_get test' do
1387
+ it 'should work' do
1388
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1389
+ end
1390
+ end
1391
+
1392
+ # unit tests for retentions_id_put
1393
+ # Update Retention Policy
1394
+ # 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.
1395
+ # @param id Retention ID.
1396
+ # @param policy
1397
+ # @param [Hash] opts the optional parameters
1398
+ # @return [nil]
1399
+ describe 'retentions_id_put test' do
1400
+ it 'should work' do
1401
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1402
+ end
1403
+ end
1404
+
1405
+ # unit tests for retentions_metadatas_get
1406
+ # Get Retention Metadatas
1407
+ # Get Retention Metadatas.
1408
+ # @param [Hash] opts the optional parameters
1409
+ # @return [RetentionMetadata]
1410
+ describe 'retentions_metadatas_get test' do
1411
+ it 'should work' do
1412
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1413
+ end
1414
+ end
1415
+
1416
+ # unit tests for retentions_post
1417
+ # Create Retention Policy
1418
+ # 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.
1419
+ # @param policy Create Retention Policy successfully.
1420
+ # @param [Hash] opts the optional parameters
1421
+ # @return [nil]
1422
+ describe 'retentions_post test' do
1423
+ it 'should work' do
1424
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1425
+ end
1426
+ end
1427
+
1428
+ # unit tests for search_get
1429
+ # Search for projects, repositories and helm charts
1430
+ # 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.
1431
+ # @param q Search parameter for project and repository name.
1432
+ # @param [Hash] opts the optional parameters
1433
+ # @return [Array<Search>]
1434
+ describe 'search_get test' do
1435
+ it 'should work' do
1436
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1437
+ end
1438
+ end
1439
+
1440
+ # unit tests for statistics_get
1441
+ # Get projects number and repositories number relevant to the user
1442
+ # 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.
1443
+ # @param [Hash] opts the optional parameters
1444
+ # @return [StatisticMap]
1445
+ describe 'statistics_get test' do
1446
+ it 'should work' do
1447
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1448
+ end
1449
+ end
1450
+
1451
+ # unit tests for system_cve_whitelist_get
1452
+ # Get the system level whitelist of CVE.
1453
+ # Get the system level whitelist of CVE. This API can be called by all authenticated users.
1454
+ # @param [Hash] opts the optional parameters
1455
+ # @return [CVEWhitelist]
1456
+ describe 'system_cve_whitelist_get test' do
1457
+ it 'should work' do
1458
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1459
+ end
1460
+ end
1461
+
1462
+ # unit tests for system_cve_whitelist_put
1463
+ # Update the system level whitelist of CVE.
1464
+ # This API overwrites the system level whitelist of CVE with the list in request body. Only system Admin has permission to call this API.
1465
+ # @param [Hash] opts the optional parameters
1466
+ # @option opts [CVEWhitelist] :whitelist The whitelist with new content
1467
+ # @return [nil]
1468
+ describe 'system_cve_whitelist_put test' do
1469
+ it 'should work' do
1470
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1471
+ end
1472
+ end
1473
+
1474
+ # unit tests for system_gc_get
1475
+ # Get gc results.
1476
+ # This endpoint let user get latest ten gc results.
1477
+ # @param [Hash] opts the optional parameters
1478
+ # @return [Array<GCResult>]
1479
+ describe 'system_gc_get test' do
1480
+ it 'should work' do
1481
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1482
+ end
1483
+ end
1484
+
1485
+ # unit tests for system_gc_id_get
1486
+ # Get gc status.
1487
+ # This endpoint let user get gc status filtered by specific ID.
1488
+ # @param id Relevant job ID
1489
+ # @param [Hash] opts the optional parameters
1490
+ # @return [GCResult]
1491
+ describe 'system_gc_id_get test' do
1492
+ it 'should work' do
1493
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1494
+ end
1495
+ end
1496
+
1497
+ # unit tests for system_gc_id_log_get
1498
+ # Get gc job log.
1499
+ # This endpoint let user get gc job logs filtered by specific ID.
1500
+ # @param id Relevant job ID
1501
+ # @param [Hash] opts the optional parameters
1502
+ # @return [String]
1503
+ describe 'system_gc_id_log_get test' do
1504
+ it 'should work' do
1505
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1506
+ end
1507
+ end
1508
+
1509
+ # unit tests for system_gc_schedule_get
1510
+ # Get gc&#39;s schedule.
1511
+ # This endpoint is for get schedule of gc job.
1512
+ # @param [Hash] opts the optional parameters
1513
+ # @return [AdminJobSchedule]
1514
+ describe 'system_gc_schedule_get test' do
1515
+ it 'should work' do
1516
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1517
+ end
1518
+ end
1519
+
1520
+ # unit tests for system_gc_schedule_post
1521
+ # Create a gc schedule.
1522
+ # This endpoint is for update gc schedule.
1523
+ # @param schedule Updates of gc&#39;s schedule.
1524
+ # @param [Hash] opts the optional parameters
1525
+ # @return [nil]
1526
+ describe 'system_gc_schedule_post 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 system_gc_schedule_put
1533
+ # Update gc&#39;s schedule.
1534
+ # This endpoint is for update gc schedule.
1535
+ # @param schedule Updates of gc&#39;s schedule.
1536
+ # @param [Hash] opts the optional parameters
1537
+ # @return [nil]
1538
+ describe 'system_gc_schedule_put 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 system_oidc_ping_post
1545
+ # Test the OIDC endpoint.
1546
+ # Test the OIDC endpoint, the setting of the endpoint is provided in the request. This API can only be called by system admin.
1547
+ # @param endpoint Request body for OIDC endpoint to be tested.
1548
+ # @param [Hash] opts the optional parameters
1549
+ # @return [nil]
1550
+ describe 'system_oidc_ping_post test' do
1551
+ it 'should work' do
1552
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1553
+ end
1554
+ end
1555
+
1556
+ # unit tests for system_scan_all_schedule_get
1557
+ # Get scan_all&#39;s schedule.
1558
+ # This endpoint is for getting a schedule for the scan all job, which scans all of images in Harbor.
1559
+ # @param [Hash] opts the optional parameters
1560
+ # @return [AdminJobSchedule]
1561
+ describe 'system_scan_all_schedule_get 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 system_scan_all_schedule_post
1568
+ # Create a schedule or a manual trigger for the scan all job.
1569
+ # This endpoint is for creating a schedule or a manual trigger for the scan all job, which scans all of images in Harbor.
1570
+ # @param schedule Create a schedule or a manual trigger for the scan all job.
1571
+ # @param [Hash] opts the optional parameters
1572
+ # @return [nil]
1573
+ describe 'system_scan_all_schedule_post 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 system_scan_all_schedule_put
1580
+ # Update scan all&#39;s schedule.
1581
+ # This endpoint is for updating the schedule of scan all job, which scans all of images in Harbor.
1582
+ # @param schedule Updates the schedule of scan all job, which scans all of images in Harbor.
1583
+ # @param [Hash] opts the optional parameters
1584
+ # @return [nil]
1585
+ describe 'system_scan_all_schedule_put 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 systeminfo_get
1592
+ # Get general system info
1593
+ # This API is for retrieving general system info, this can be called by anonymous request.
1594
+ # @param [Hash] opts the optional parameters
1595
+ # @return [GeneralInfo]
1596
+ describe 'systeminfo_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 systeminfo_getcert_get
1603
+ # Get default root certificate.
1604
+ # This endpoint is for downloading a default root certificate.
1605
+ # @param [Hash] opts the optional parameters
1606
+ # @return [nil]
1607
+ describe 'systeminfo_getcert_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 systeminfo_volumes_get
1614
+ # Get system volume info (total/free size).
1615
+ # This endpoint is for retrieving system volume info that only provides for admin user.
1616
+ # @param [Hash] opts the optional parameters
1617
+ # @return [SystemInfo]
1618
+ describe 'systeminfo_volumes_get test' do
1619
+ it 'should work' do
1620
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1621
+ end
1622
+ end
1623
+
1624
+ # unit tests for usergroups_get
1625
+ # Get all user groups information
1626
+ # Get all user groups information
1627
+ # @param [Hash] opts the optional parameters
1628
+ # @return [Array<UserGroup>]
1629
+ describe 'usergroups_get test' do
1630
+ it 'should work' do
1631
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1632
+ end
1633
+ end
1634
+
1635
+ # unit tests for usergroups_group_id_delete
1636
+ # Delete user group
1637
+ # Delete user group
1638
+ # @param group_id
1639
+ # @param [Hash] opts the optional parameters
1640
+ # @return [nil]
1641
+ describe 'usergroups_group_id_delete 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 usergroups_group_id_get
1648
+ # Get user group information
1649
+ # Get user group information
1650
+ # @param group_id Group ID
1651
+ # @param [Hash] opts the optional parameters
1652
+ # @return [UserGroup]
1653
+ describe 'usergroups_group_id_get 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 usergroups_group_id_put
1660
+ # Update group information
1661
+ # Update user group information
1662
+ # @param group_id Group ID
1663
+ # @param [Hash] opts the optional parameters
1664
+ # @option opts [UserGroup] :usergroup
1665
+ # @return [nil]
1666
+ describe 'usergroups_group_id_put test' do
1667
+ it 'should work' do
1668
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1669
+ end
1670
+ end
1671
+
1672
+ # unit tests for usergroups_post
1673
+ # Create user group
1674
+ # Create user group information
1675
+ # @param [Hash] opts the optional parameters
1676
+ # @option opts [UserGroup] :usergroup
1677
+ # @return [nil]
1678
+ describe 'usergroups_post test' do
1679
+ it 'should work' do
1680
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1681
+ end
1682
+ end
1683
+
1684
+ # unit tests for users_current_get
1685
+ # Get current user info.
1686
+ # This endpoint is to get the current user information.
1687
+ # @param [Hash] opts the optional parameters
1688
+ # @return [User]
1689
+ describe 'users_current_get test' do
1690
+ it 'should work' do
1691
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1692
+ end
1693
+ end
1694
+
1695
+ # unit tests for users_current_permissions_get
1696
+ # Get current user permissions.
1697
+ # This endpoint is to get the current user permissions.
1698
+ # @param [Hash] opts the optional parameters
1699
+ # @option opts [String] :scope Get permissions of the scope
1700
+ # @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;.
1701
+ # @return [Array<Permission>]
1702
+ describe 'users_current_permissions_get test' do
1703
+ it 'should work' do
1704
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1705
+ end
1706
+ end
1707
+
1708
+ # unit tests for users_get
1709
+ # Get registered users of Harbor.
1710
+ # This endpoint is for user to search registered users, support for filtering results with username.Notice, by now this operation is only for administrator.
1711
+ # @param [Hash] opts the optional parameters
1712
+ # @option opts [String] :username Username for filtering results.
1713
+ # @option opts [String] :email Email for filtering results.
1714
+ # @option opts [Integer] :page The page number, default is 1.
1715
+ # @option opts [Integer] :page_size The size of per page.
1716
+ # @return [Array<User>]
1717
+ describe 'users_get test' do
1718
+ it 'should work' do
1719
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1720
+ end
1721
+ end
1722
+
1723
+ # unit tests for users_post
1724
+ # Creates a new user account.
1725
+ # This endpoint is to create a user if the user does not already exist.
1726
+ # @param user New created user.
1727
+ # @param [Hash] opts the optional parameters
1728
+ # @return [nil]
1729
+ describe 'users_post test' do
1730
+ it 'should work' do
1731
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1732
+ end
1733
+ end
1734
+
1735
+ # unit tests for users_search_get
1736
+ # Search users by username
1737
+ # This endpoint is to search the users by username.
1738
+ # @param username Username for filtering results.
1739
+ # @param [Hash] opts the optional parameters
1740
+ # @option opts [Integer] :page The page number, default is 1.
1741
+ # @option opts [Integer] :page_size The size of per page.
1742
+ # @return [Array<UserSearch>]
1743
+ describe 'users_search_get test' do
1744
+ it 'should work' do
1745
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1746
+ end
1747
+ end
1748
+
1749
+ # unit tests for users_user_id_delete
1750
+ # Mark a registered user as be removed.
1751
+ # This endpoint let administrator of Harbor mark a registered user as be removed.It actually won&#39;t be deleted from DB.
1752
+ # @param user_id User ID for marking as to be removed.
1753
+ # @param [Hash] opts the optional parameters
1754
+ # @return [nil]
1755
+ describe 'users_user_id_delete test' do
1756
+ it 'should work' do
1757
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1758
+ end
1759
+ end
1760
+
1761
+ # unit tests for users_user_id_gen_cli_secret_post
1762
+ # Generate new CLI secret for a user.
1763
+ # 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. The new secret will be returned in the response.
1764
+ # @param user_id User ID
1765
+ # @param [Hash] opts the optional parameters
1766
+ # @return [InlineResponse200]
1767
+ describe 'users_user_id_gen_cli_secret_post test' do
1768
+ it 'should work' do
1769
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1770
+ end
1771
+ end
1772
+
1773
+ # unit tests for users_user_id_get
1774
+ # Get a user&#39;s profile.
1775
+ # Get user&#39;s profile with user id.
1776
+ # @param user_id Registered user ID
1777
+ # @param [Hash] opts the optional parameters
1778
+ # @return [User]
1779
+ describe 'users_user_id_get test' do
1780
+ it 'should work' do
1781
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1782
+ end
1783
+ end
1784
+
1785
+ # unit tests for users_user_id_password_put
1786
+ # Change the password on a user that already exists.
1787
+ # 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.
1788
+ # @param user_id Registered user ID.
1789
+ # @param password Password to be updated, the attribute &#39;old_password&#39; is optional when the API is called by the system administrator.
1790
+ # @param [Hash] opts the optional parameters
1791
+ # @return [nil]
1792
+ describe 'users_user_id_password_put 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 users_user_id_put
1799
+ # Update a registered user to change his profile.
1800
+ # This endpoint let a registered user change his profile.
1801
+ # @param user_id Registered user ID
1802
+ # @param profile Only email, realname and comment can be modified.
1803
+ # @param [Hash] opts the optional parameters
1804
+ # @return [nil]
1805
+ describe 'users_user_id_put test' do
1806
+ it 'should work' do
1807
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1808
+ end
1809
+ end
1810
+
1811
+ # unit tests for users_user_id_sysadmin_put
1812
+ # Update a registered user to change to be an administrator of Harbor.
1813
+ # This endpoint let a registered user change to be an administrator of Harbor.
1814
+ # @param user_id Registered user ID
1815
+ # @param has_admin_role Toggle a user to admin or not.
1816
+ # @param [Hash] opts the optional parameters
1817
+ # @return [nil]
1818
+ describe 'users_user_id_sysadmin_put test' do
1819
+ it 'should work' do
1820
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1821
+ end
1822
+ end
1823
+
1824
+ end