harbor2_legacy_client 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (375) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +7 -0
  3. data/README.md +365 -0
  4. data/Rakefile +8 -0
  5. data/docs/Action.md +8 -0
  6. data/docs/Action1.md +8 -0
  7. data/docs/AdminJobSchedule.md +9 -0
  8. data/docs/AdminJobScheduleObj.md +9 -0
  9. data/docs/BadRequestFormatedError.md +8 -0
  10. data/docs/BoolConfigItem.md +9 -0
  11. data/docs/CVEAllowlist.md +11 -0
  12. data/docs/CVEAllowlistItem.md +8 -0
  13. data/docs/ChartAPIError.md +8 -0
  14. data/docs/ChartMetadata.md +18 -0
  15. data/docs/ChartRepositoryApi.md +191 -0
  16. data/docs/ChartVersion.md +23 -0
  17. data/docs/ComponentHealthStatus.md +10 -0
  18. data/docs/ComponentOverviewEntry.md +9 -0
  19. data/docs/Configurations.md +42 -0
  20. data/docs/ConfigurationsResponse.md +41 -0
  21. data/docs/ConfigurationsScanAllPolicy.md +9 -0
  22. data/docs/ConfigurationsScanAllPolicyParameter.md +8 -0
  23. data/docs/ConflictFormatedError.md +8 -0
  24. data/docs/EmailServerSetting.md +13 -0
  25. data/docs/Endpoint.md +9 -0
  26. data/docs/EventType.md +7 -0
  27. data/docs/FilterStyle.md +10 -0
  28. data/docs/ForbiddenChartAPIError.md +8 -0
  29. data/docs/GCResult.md +16 -0
  30. data/docs/GeneralInfo.md +16 -0
  31. data/docs/InputSecret.md +8 -0
  32. data/docs/InsufficientStorageChartAPIError.md +8 -0
  33. data/docs/IntegerConfigItem.md +9 -0
  34. data/docs/InternalChartAPIError.md +8 -0
  35. data/docs/IsDefault.md +8 -0
  36. data/docs/Label.md +16 -0
  37. data/docs/LabelApi.md +191 -0
  38. data/docs/Labels.md +7 -0
  39. data/docs/LdapConf.md +15 -0
  40. data/docs/LdapFailedImportUsers.md +9 -0
  41. data/docs/LdapImportUsers.md +8 -0
  42. data/docs/LdapUsers.md +10 -0
  43. data/docs/Namespace.md +9 -0
  44. data/docs/NotFoundChartAPIError.md +8 -0
  45. data/docs/NotifyType.md +7 -0
  46. data/docs/OverallHealthStatus.md +9 -0
  47. data/docs/Password.md +9 -0
  48. data/docs/Permission.md +9 -0
  49. data/docs/PingRegistry.md +14 -0
  50. data/docs/ProductsApi.md +6382 -0
  51. data/docs/Project.md +22 -0
  52. data/docs/ProjectMember.md +10 -0
  53. data/docs/ProjectMemberEntity.md +14 -0
  54. data/docs/ProjectMetadata.md +13 -0
  55. data/docs/ProjectReq.md +13 -0
  56. data/docs/ProjectScanner.md +8 -0
  57. data/docs/ProjectSummary.md +15 -0
  58. data/docs/ProjectSummaryQuota.md +9 -0
  59. data/docs/PutRegistry.md +14 -0
  60. data/docs/Quota.md +13 -0
  61. data/docs/QuotaApi.md +118 -0
  62. data/docs/QuotaRefObject.md +7 -0
  63. data/docs/QuotaSwitcher.md +8 -0
  64. data/docs/QuotaUpdateReq.md +8 -0
  65. data/docs/Registry.md +17 -0
  66. data/docs/RegistryCredential.md +10 -0
  67. data/docs/RegistryInfo.md +11 -0
  68. data/docs/ReplicationExecution.md +19 -0
  69. data/docs/ReplicationFilter.md +9 -0
  70. data/docs/ReplicationPolicy.md +20 -0
  71. data/docs/ReplicationTask.md +16 -0
  72. data/docs/ReplicationTrigger.md +9 -0
  73. data/docs/ResourceList.md +7 -0
  74. data/docs/RetentionApi.md +449 -0
  75. data/docs/RetentionExecution.md +14 -0
  76. data/docs/RetentionExecutionTask.md +18 -0
  77. data/docs/RetentionMetadata.md +10 -0
  78. data/docs/RetentionPolicy.md +12 -0
  79. data/docs/RetentionPolicyScope.md +9 -0
  80. data/docs/RetentionRule.md +15 -0
  81. data/docs/RetentionRuleMetadata.md +11 -0
  82. data/docs/RetentionRuleParamMetadata.md +10 -0
  83. data/docs/RetentionRuleTrigger.md +10 -0
  84. data/docs/RetentionSelector.md +11 -0
  85. data/docs/RetentionSelectorMetadata.md +10 -0
  86. data/docs/RobotAccount.md +15 -0
  87. data/docs/RobotAccountAccess.md +9 -0
  88. data/docs/RobotAccountApi.md +291 -0
  89. data/docs/RobotAccountCreate.md +11 -0
  90. data/docs/RobotAccountPostRep.md +9 -0
  91. data/docs/RobotAccountUpdate.md +8 -0
  92. data/docs/Role.md +11 -0
  93. data/docs/RoleParam.md +9 -0
  94. data/docs/RoleRequest.md +8 -0
  95. data/docs/ScanApi.md +104 -0
  96. data/docs/Scanner.md +10 -0
  97. data/docs/ScannerAdapterMetadata.md +10 -0
  98. data/docs/ScannerCapability.md +9 -0
  99. data/docs/ScannerRegistration.md +21 -0
  100. data/docs/ScannerRegistrationReq.md +15 -0
  101. data/docs/ScannerRegistrationSettings.md +11 -0
  102. data/docs/ScannersApi.md +600 -0
  103. data/docs/Search.md +10 -0
  104. data/docs/SearchRepository.md +13 -0
  105. data/docs/SearchResult.md +10 -0
  106. data/docs/StatisticMap.md +13 -0
  107. data/docs/Stats.md +12 -0
  108. data/docs/Storage.md +9 -0
  109. data/docs/StringConfigItem.md +9 -0
  110. data/docs/SupportedWebhookEventTypes.md +9 -0
  111. data/docs/SysAdminFlag.md +8 -0
  112. data/docs/SystemApi.md +163 -0
  113. data/docs/SystemInfo.md +8 -0
  114. data/docs/TriggerSettings.md +8 -0
  115. data/docs/UnauthorizedChartAPIError.md +8 -0
  116. data/docs/User.md +22 -0
  117. data/docs/UserEntity.md +9 -0
  118. data/docs/UserGroup.md +11 -0
  119. data/docs/UserProfile.md +10 -0
  120. data/docs/UserSearch.md +9 -0
  121. data/docs/WebhookJob.md +15 -0
  122. data/docs/WebhookLastTrigger.md +11 -0
  123. data/docs/WebhookPolicy.md +17 -0
  124. data/docs/WebhookTargetObject.md +11 -0
  125. data/git_push.sh +55 -0
  126. data/harbor2_legacy_client.gemspec +46 -0
  127. data/lib/harbor2_legacy_client.rb +159 -0
  128. data/lib/harbor2_legacy_client/api/chart_repository_api.rb +230 -0
  129. data/lib/harbor2_legacy_client/api/label_api.rb +230 -0
  130. data/lib/harbor2_legacy_client/api/products_api.rb +6500 -0
  131. data/lib/harbor2_legacy_client/api/quota_api.rb +136 -0
  132. data/lib/harbor2_legacy_client/api/retention_api.rb +482 -0
  133. data/lib/harbor2_legacy_client/api/robot_account_api.rb +321 -0
  134. data/lib/harbor2_legacy_client/api/scan_api.rb +119 -0
  135. data/lib/harbor2_legacy_client/api/scanners_api.rb +624 -0
  136. data/lib/harbor2_legacy_client/api/system_api.rb +173 -0
  137. data/lib/harbor2_legacy_client/api_client.rb +391 -0
  138. data/lib/harbor2_legacy_client/api_error.rb +38 -0
  139. data/lib/harbor2_legacy_client/configuration.rb +209 -0
  140. data/lib/harbor2_legacy_client/models/action.rb +184 -0
  141. data/lib/harbor2_legacy_client/models/action_1.rb +184 -0
  142. data/lib/harbor2_legacy_client/models/admin_job_schedule.rb +196 -0
  143. data/lib/harbor2_legacy_client/models/admin_job_schedule_obj.rb +195 -0
  144. data/lib/harbor2_legacy_client/models/bad_request_formated_error.rb +191 -0
  145. data/lib/harbor2_legacy_client/models/bool_config_item.rb +195 -0
  146. data/lib/harbor2_legacy_client/models/chart_api_error.rb +191 -0
  147. data/lib/harbor2_legacy_client/models/chart_metadata.rb +320 -0
  148. data/lib/harbor2_legacy_client/models/chart_version.rb +371 -0
  149. data/lib/harbor2_legacy_client/models/component_health_status.rb +206 -0
  150. data/lib/harbor2_legacy_client/models/component_overview_entry.rb +195 -0
  151. data/lib/harbor2_legacy_client/models/configurations.rb +524 -0
  152. data/lib/harbor2_legacy_client/models/configurations_response.rb +514 -0
  153. data/lib/harbor2_legacy_client/models/configurations_scan_all_policy.rb +194 -0
  154. data/lib/harbor2_legacy_client/models/configurations_scan_all_policy_parameter.rb +186 -0
  155. data/lib/harbor2_legacy_client/models/conflict_formated_error.rb +191 -0
  156. data/lib/harbor2_legacy_client/models/cve_allowlist.rb +217 -0
  157. data/lib/harbor2_legacy_client/models/cve_allowlist_item.rb +186 -0
  158. data/lib/harbor2_legacy_client/models/email_server_setting.rb +235 -0
  159. data/lib/harbor2_legacy_client/models/endpoint.rb +195 -0
  160. data/lib/harbor2_legacy_client/models/event_type.rb +176 -0
  161. data/lib/harbor2_legacy_client/models/filter_style.rb +208 -0
  162. data/lib/harbor2_legacy_client/models/forbidden_chart_api_error.rb +191 -0
  163. data/lib/harbor2_legacy_client/models/gc_result.rb +264 -0
  164. data/lib/harbor2_legacy_client/models/general_info.rb +265 -0
  165. data/lib/harbor2_legacy_client/models/input_secret.rb +185 -0
  166. data/lib/harbor2_legacy_client/models/insufficient_storage_chart_api_error.rb +191 -0
  167. data/lib/harbor2_legacy_client/models/integer_config_item.rb +195 -0
  168. data/lib/harbor2_legacy_client/models/internal_chart_api_error.rb +191 -0
  169. data/lib/harbor2_legacy_client/models/is_default.rb +185 -0
  170. data/lib/harbor2_legacy_client/models/label.rb +265 -0
  171. data/lib/harbor2_legacy_client/models/labels.rb +176 -0
  172. data/lib/harbor2_legacy_client/models/ldap_conf.rb +255 -0
  173. data/lib/harbor2_legacy_client/models/ldap_failed_import_users.rb +195 -0
  174. data/lib/harbor2_legacy_client/models/ldap_import_users.rb +187 -0
  175. data/lib/harbor2_legacy_client/models/ldap_users.rb +205 -0
  176. data/lib/harbor2_legacy_client/models/namespace.rb +196 -0
  177. data/lib/harbor2_legacy_client/models/not_found_chart_api_error.rb +191 -0
  178. data/lib/harbor2_legacy_client/models/notify_type.rb +176 -0
  179. data/lib/harbor2_legacy_client/models/overall_health_status.rb +197 -0
  180. data/lib/harbor2_legacy_client/models/password.rb +195 -0
  181. data/lib/harbor2_legacy_client/models/permission.rb +196 -0
  182. data/lib/harbor2_legacy_client/models/ping_registry.rb +245 -0
  183. data/lib/harbor2_legacy_client/models/project.rb +327 -0
  184. data/lib/harbor2_legacy_client/models/project_member.rb +203 -0
  185. data/lib/harbor2_legacy_client/models/project_member_entity.rb +245 -0
  186. data/lib/harbor2_legacy_client/models/project_metadata.rb +235 -0
  187. data/lib/harbor2_legacy_client/models/project_req.rb +235 -0
  188. data/lib/harbor2_legacy_client/models/project_scanner.rb +185 -0
  189. data/lib/harbor2_legacy_client/models/project_summary.rb +253 -0
  190. data/lib/harbor2_legacy_client/models/project_summary_quota.rb +195 -0
  191. data/lib/harbor2_legacy_client/models/put_registry.rb +245 -0
  192. data/lib/harbor2_legacy_client/models/quota.rb +236 -0
  193. data/lib/harbor2_legacy_client/models/quota_ref_object.rb +175 -0
  194. data/lib/harbor2_legacy_client/models/quota_switcher.rb +185 -0
  195. data/lib/harbor2_legacy_client/models/quota_update_req.rb +185 -0
  196. data/lib/harbor2_legacy_client/models/registry.rb +274 -0
  197. data/lib/harbor2_legacy_client/models/registry_credential.rb +205 -0
  198. data/lib/harbor2_legacy_client/models/registry_info.rb +220 -0
  199. data/lib/harbor2_legacy_client/models/replication_execution.rb +296 -0
  200. data/lib/harbor2_legacy_client/models/replication_filter.rb +195 -0
  201. data/lib/harbor2_legacy_client/models/replication_policy.rb +306 -0
  202. data/lib/harbor2_legacy_client/models/replication_task.rb +266 -0
  203. data/lib/harbor2_legacy_client/models/replication_trigger.rb +194 -0
  204. data/lib/harbor2_legacy_client/models/resource_list.rb +175 -0
  205. data/lib/harbor2_legacy_client/models/retention_execution.rb +238 -0
  206. data/lib/harbor2_legacy_client/models/retention_execution_task.rb +274 -0
  207. data/lib/harbor2_legacy_client/models/retention_metadata.rb +212 -0
  208. data/lib/harbor2_legacy_client/models/retention_policy.rb +223 -0
  209. data/lib/harbor2_legacy_client/models/retention_policy_scope.rb +193 -0
  210. data/lib/harbor2_legacy_client/models/retention_rule.rb +253 -0
  211. data/lib/harbor2_legacy_client/models/retention_rule_metadata.rb +218 -0
  212. data/lib/harbor2_legacy_client/models/retention_rule_param_metadata.rb +203 -0
  213. data/lib/harbor2_legacy_client/models/retention_rule_trigger.rb +202 -0
  214. data/lib/harbor2_legacy_client/models/retention_selector.rb +211 -0
  215. data/lib/harbor2_legacy_client/models/retention_selector_metadata.rb +205 -0
  216. data/lib/harbor2_legacy_client/models/robot_account.rb +256 -0
  217. data/lib/harbor2_legacy_client/models/robot_account_access.rb +195 -0
  218. data/lib/harbor2_legacy_client/models/robot_account_create.rb +217 -0
  219. data/lib/harbor2_legacy_client/models/robot_account_post_rep.rb +195 -0
  220. data/lib/harbor2_legacy_client/models/robot_account_update.rb +185 -0
  221. data/lib/harbor2_legacy_client/models/role.rb +214 -0
  222. data/lib/harbor2_legacy_client/models/role_param.rb +197 -0
  223. data/lib/harbor2_legacy_client/models/role_request.rb +185 -0
  224. data/lib/harbor2_legacy_client/models/scanner.rb +205 -0
  225. data/lib/harbor2_legacy_client/models/scanner_adapter_metadata.rb +207 -0
  226. data/lib/harbor2_legacy_client/models/scanner_capability.rb +197 -0
  227. data/lib/harbor2_legacy_client/models/scanner_registration.rb +328 -0
  228. data/lib/harbor2_legacy_client/models/scanner_registration_req.rb +263 -0
  229. data/lib/harbor2_legacy_client/models/scanner_registration_settings.rb +217 -0
  230. data/lib/harbor2_legacy_client/models/search.rb +211 -0
  231. data/lib/harbor2_legacy_client/models/search_repository.rb +235 -0
  232. data/lib/harbor2_legacy_client/models/search_result.rb +205 -0
  233. data/lib/harbor2_legacy_client/models/statistic_map.rb +235 -0
  234. data/lib/harbor2_legacy_client/models/stats.rb +228 -0
  235. data/lib/harbor2_legacy_client/models/storage.rb +195 -0
  236. data/lib/harbor2_legacy_client/models/string_config_item.rb +195 -0
  237. data/lib/harbor2_legacy_client/models/supported_webhook_event_types.rb +198 -0
  238. data/lib/harbor2_legacy_client/models/sys_admin_flag.rb +185 -0
  239. data/lib/harbor2_legacy_client/models/system_info.rb +187 -0
  240. data/lib/harbor2_legacy_client/models/trigger_settings.rb +185 -0
  241. data/lib/harbor2_legacy_client/models/unauthorized_chart_api_error.rb +191 -0
  242. data/lib/harbor2_legacy_client/models/user.rb +312 -0
  243. data/lib/harbor2_legacy_client/models/user_entity.rb +195 -0
  244. data/lib/harbor2_legacy_client/models/user_group.rb +215 -0
  245. data/lib/harbor2_legacy_client/models/user_profile.rb +205 -0
  246. data/lib/harbor2_legacy_client/models/user_search.rb +194 -0
  247. data/lib/harbor2_legacy_client/models/webhook_job.rb +256 -0
  248. data/lib/harbor2_legacy_client/models/webhook_last_trigger.rb +216 -0
  249. data/lib/harbor2_legacy_client/models/webhook_policy.rb +278 -0
  250. data/lib/harbor2_legacy_client/models/webhook_target_object.rb +216 -0
  251. data/lib/harbor2_legacy_client/version.rb +15 -0
  252. data/spec/api/chart_repository_api_spec.rb +79 -0
  253. data/spec/api/label_api_spec.rb +79 -0
  254. data/spec/api/products_api_spec.rb +1493 -0
  255. data/spec/api/quota_api_spec.rb +60 -0
  256. data/spec/api/retention_api_spec.rb +136 -0
  257. data/spec/api/robot_account_api_spec.rb +100 -0
  258. data/spec/api/scan_api_spec.rb +57 -0
  259. data/spec/api/scanners_api_spec.rb +169 -0
  260. data/spec/api/system_api_spec.rb +70 -0
  261. data/spec/api_client_spec.rb +243 -0
  262. data/spec/configuration_spec.rb +42 -0
  263. data/spec/models/action_1_spec.rb +41 -0
  264. data/spec/models/action_spec.rb +41 -0
  265. data/spec/models/admin_job_schedule_obj_spec.rb +47 -0
  266. data/spec/models/admin_job_schedule_spec.rb +47 -0
  267. data/spec/models/bad_request_formated_error_spec.rb +41 -0
  268. data/spec/models/bool_config_item_spec.rb +47 -0
  269. data/spec/models/chart_api_error_spec.rb +41 -0
  270. data/spec/models/chart_metadata_spec.rb +101 -0
  271. data/spec/models/chart_version_spec.rb +131 -0
  272. data/spec/models/component_health_status_spec.rb +53 -0
  273. data/spec/models/component_overview_entry_spec.rb +47 -0
  274. data/spec/models/configurations_response_spec.rb +239 -0
  275. data/spec/models/configurations_scan_all_policy_parameter_spec.rb +41 -0
  276. data/spec/models/configurations_scan_all_policy_spec.rb +47 -0
  277. data/spec/models/configurations_spec.rb +245 -0
  278. data/spec/models/conflict_formated_error_spec.rb +41 -0
  279. data/spec/models/cve_allowlist_item_spec.rb +41 -0
  280. data/spec/models/cve_allowlist_spec.rb +59 -0
  281. data/spec/models/email_server_setting_spec.rb +71 -0
  282. data/spec/models/endpoint_spec.rb +47 -0
  283. data/spec/models/event_type_spec.rb +35 -0
  284. data/spec/models/filter_style_spec.rb +53 -0
  285. data/spec/models/forbidden_chart_api_error_spec.rb +41 -0
  286. data/spec/models/gc_result_spec.rb +89 -0
  287. data/spec/models/general_info_spec.rb +89 -0
  288. data/spec/models/input_secret_spec.rb +41 -0
  289. data/spec/models/insufficient_storage_chart_api_error_spec.rb +41 -0
  290. data/spec/models/integer_config_item_spec.rb +47 -0
  291. data/spec/models/internal_chart_api_error_spec.rb +41 -0
  292. data/spec/models/is_default_spec.rb +41 -0
  293. data/spec/models/label_spec.rb +89 -0
  294. data/spec/models/labels_spec.rb +35 -0
  295. data/spec/models/ldap_conf_spec.rb +83 -0
  296. data/spec/models/ldap_failed_import_users_spec.rb +47 -0
  297. data/spec/models/ldap_import_users_spec.rb +41 -0
  298. data/spec/models/ldap_users_spec.rb +53 -0
  299. data/spec/models/namespace_spec.rb +47 -0
  300. data/spec/models/not_found_chart_api_error_spec.rb +41 -0
  301. data/spec/models/notify_type_spec.rb +35 -0
  302. data/spec/models/overall_health_status_spec.rb +47 -0
  303. data/spec/models/password_spec.rb +47 -0
  304. data/spec/models/permission_spec.rb +47 -0
  305. data/spec/models/ping_registry_spec.rb +77 -0
  306. data/spec/models/project_member_entity_spec.rb +77 -0
  307. data/spec/models/project_member_spec.rb +53 -0
  308. data/spec/models/project_metadata_spec.rb +71 -0
  309. data/spec/models/project_req_spec.rb +71 -0
  310. data/spec/models/project_scanner_spec.rb +41 -0
  311. data/spec/models/project_spec.rb +125 -0
  312. data/spec/models/project_summary_quota_spec.rb +47 -0
  313. data/spec/models/project_summary_spec.rb +83 -0
  314. data/spec/models/put_registry_spec.rb +77 -0
  315. data/spec/models/quota_ref_object_spec.rb +35 -0
  316. data/spec/models/quota_spec.rb +71 -0
  317. data/spec/models/quota_switcher_spec.rb +41 -0
  318. data/spec/models/quota_update_req_spec.rb +41 -0
  319. data/spec/models/registry_credential_spec.rb +53 -0
  320. data/spec/models/registry_info_spec.rb +59 -0
  321. data/spec/models/registry_spec.rb +95 -0
  322. data/spec/models/replication_execution_spec.rb +107 -0
  323. data/spec/models/replication_filter_spec.rb +47 -0
  324. data/spec/models/replication_policy_spec.rb +113 -0
  325. data/spec/models/replication_task_spec.rb +89 -0
  326. data/spec/models/replication_trigger_spec.rb +47 -0
  327. data/spec/models/resource_list_spec.rb +35 -0
  328. data/spec/models/retention_execution_spec.rb +77 -0
  329. data/spec/models/retention_execution_task_spec.rb +101 -0
  330. data/spec/models/retention_metadata_spec.rb +53 -0
  331. data/spec/models/retention_policy_scope_spec.rb +47 -0
  332. data/spec/models/retention_policy_spec.rb +65 -0
  333. data/spec/models/retention_rule_metadata_spec.rb +59 -0
  334. data/spec/models/retention_rule_param_metadata_spec.rb +53 -0
  335. data/spec/models/retention_rule_spec.rb +83 -0
  336. data/spec/models/retention_rule_trigger_spec.rb +53 -0
  337. data/spec/models/retention_selector_metadata_spec.rb +53 -0
  338. data/spec/models/retention_selector_spec.rb +59 -0
  339. data/spec/models/robot_account_access_spec.rb +47 -0
  340. data/spec/models/robot_account_create_spec.rb +59 -0
  341. data/spec/models/robot_account_post_rep_spec.rb +47 -0
  342. data/spec/models/robot_account_spec.rb +83 -0
  343. data/spec/models/robot_account_update_spec.rb +41 -0
  344. data/spec/models/role_param_spec.rb +47 -0
  345. data/spec/models/role_request_spec.rb +41 -0
  346. data/spec/models/role_spec.rb +59 -0
  347. data/spec/models/scanner_adapter_metadata_spec.rb +53 -0
  348. data/spec/models/scanner_capability_spec.rb +47 -0
  349. data/spec/models/scanner_registration_req_spec.rb +83 -0
  350. data/spec/models/scanner_registration_settings_spec.rb +59 -0
  351. data/spec/models/scanner_registration_spec.rb +119 -0
  352. data/spec/models/scanner_spec.rb +53 -0
  353. data/spec/models/search_repository_spec.rb +71 -0
  354. data/spec/models/search_result_spec.rb +53 -0
  355. data/spec/models/search_spec.rb +53 -0
  356. data/spec/models/statistic_map_spec.rb +71 -0
  357. data/spec/models/stats_spec.rb +65 -0
  358. data/spec/models/storage_spec.rb +47 -0
  359. data/spec/models/string_config_item_spec.rb +47 -0
  360. data/spec/models/supported_webhook_event_types_spec.rb +47 -0
  361. data/spec/models/sys_admin_flag_spec.rb +41 -0
  362. data/spec/models/system_info_spec.rb +41 -0
  363. data/spec/models/trigger_settings_spec.rb +41 -0
  364. data/spec/models/unauthorized_chart_api_error_spec.rb +41 -0
  365. data/spec/models/user_entity_spec.rb +47 -0
  366. data/spec/models/user_group_spec.rb +59 -0
  367. data/spec/models/user_profile_spec.rb +53 -0
  368. data/spec/models/user_search_spec.rb +47 -0
  369. data/spec/models/user_spec.rb +125 -0
  370. data/spec/models/webhook_job_spec.rb +83 -0
  371. data/spec/models/webhook_last_trigger_spec.rb +59 -0
  372. data/spec/models/webhook_policy_spec.rb +95 -0
  373. data/spec/models/webhook_target_object_spec.rb +59 -0
  374. data/spec/spec_helper.rb +111 -0
  375. metadata +740 -0
@@ -0,0 +1,15 @@
1
+ =begin
2
+ #Harbor API
3
+
4
+ #These APIs provide services for manipulating Harbor project.
5
+
6
+ OpenAPI spec version: 2.0
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.17
10
+
11
+ =end
12
+
13
+ module Harbor2LegacyClient
14
+ VERSION = '0.1.0'
15
+ end
@@ -0,0 +1,79 @@
1
+ =begin
2
+ #Harbor API
3
+
4
+ #These APIs provide services for manipulating Harbor project.
5
+
6
+ OpenAPI spec version: 2.0
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.17
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for Harbor2LegacyClient::ChartRepositoryApi
17
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
18
+ # Please update as you see appropriate
19
+ describe 'ChartRepositoryApi' do
20
+ before do
21
+ # run before each test
22
+ @instance = Harbor2LegacyClient::ChartRepositoryApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of ChartRepositoryApi' do
30
+ it 'should create an instance of ChartRepositoryApi' do
31
+ expect(@instance).to be_instance_of(Harbor2LegacyClient::ChartRepositoryApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for chartrepo_repo_charts_name_version_labels_get
36
+ # Return the attahced labels of chart.
37
+ # Return the attahced labels of the specified chart version.
38
+ # @param repo The project name
39
+ # @param name The chart name
40
+ # @param version The chart version
41
+ # @param [Hash] opts the optional parameters
42
+ # @return [nil]
43
+ describe 'chartrepo_repo_charts_name_version_labels_get test' do
44
+ it 'should work' do
45
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
46
+ end
47
+ end
48
+
49
+ # unit tests for chartrepo_repo_charts_name_version_labels_id_delete
50
+ # Remove label from chart.
51
+ # Remove label from the specified chart version.
52
+ # @param repo The project name
53
+ # @param name The chart name
54
+ # @param version The chart version
55
+ # @param id The label ID
56
+ # @param [Hash] opts the optional parameters
57
+ # @return [nil]
58
+ describe 'chartrepo_repo_charts_name_version_labels_id_delete test' do
59
+ it 'should work' do
60
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
61
+ end
62
+ end
63
+
64
+ # unit tests for chartrepo_repo_charts_name_version_labels_post
65
+ # Mark label to chart.
66
+ # Mark label to the specified chart version.
67
+ # @param repo The project name
68
+ # @param name The chart name
69
+ # @param version The chart version
70
+ # @param label The label being marked to the chart version
71
+ # @param [Hash] opts the optional parameters
72
+ # @return [nil]
73
+ describe 'chartrepo_repo_charts_name_version_labels_post test' do
74
+ it 'should work' do
75
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
76
+ end
77
+ end
78
+
79
+ end
@@ -0,0 +1,79 @@
1
+ =begin
2
+ #Harbor API
3
+
4
+ #These APIs provide services for manipulating Harbor project.
5
+
6
+ OpenAPI spec version: 2.0
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.17
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for Harbor2LegacyClient::LabelApi
17
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
18
+ # Please update as you see appropriate
19
+ describe 'LabelApi' do
20
+ before do
21
+ # run before each test
22
+ @instance = Harbor2LegacyClient::LabelApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of LabelApi' do
30
+ it 'should create an instance of LabelApi' do
31
+ expect(@instance).to be_instance_of(Harbor2LegacyClient::LabelApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for chartrepo_repo_charts_name_version_labels_get
36
+ # Return the attahced labels of chart.
37
+ # Return the attahced labels of the specified chart version.
38
+ # @param repo The project name
39
+ # @param name The chart name
40
+ # @param version The chart version
41
+ # @param [Hash] opts the optional parameters
42
+ # @return [nil]
43
+ describe 'chartrepo_repo_charts_name_version_labels_get test' do
44
+ it 'should work' do
45
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
46
+ end
47
+ end
48
+
49
+ # unit tests for chartrepo_repo_charts_name_version_labels_id_delete
50
+ # Remove label from chart.
51
+ # Remove label from the specified chart version.
52
+ # @param repo The project name
53
+ # @param name The chart name
54
+ # @param version The chart version
55
+ # @param id The label ID
56
+ # @param [Hash] opts the optional parameters
57
+ # @return [nil]
58
+ describe 'chartrepo_repo_charts_name_version_labels_id_delete test' do
59
+ it 'should work' do
60
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
61
+ end
62
+ end
63
+
64
+ # unit tests for chartrepo_repo_charts_name_version_labels_post
65
+ # Mark label to chart.
66
+ # Mark label to the specified chart version.
67
+ # @param repo The project name
68
+ # @param name The chart name
69
+ # @param version The chart version
70
+ # @param label The label being marked to the chart version
71
+ # @param [Hash] opts the optional parameters
72
+ # @return [nil]
73
+ describe 'chartrepo_repo_charts_name_version_labels_post test' do
74
+ it 'should work' do
75
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
76
+ end
77
+ end
78
+
79
+ end
@@ -0,0 +1,1493 @@
1
+ =begin
2
+ #Harbor API
3
+
4
+ #These APIs provide services for manipulating Harbor project.
5
+
6
+ OpenAPI spec version: 2.0
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.17
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for Harbor2LegacyClient::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 = Harbor2LegacyClient::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(Harbor2LegacyClient::ProductsApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for chartrepo_repo_charts_name_version_labels_get
36
+ # Return the attahced labels of chart.
37
+ # Return the attahced labels of the specified chart version.
38
+ # @param repo The project name
39
+ # @param name The chart name
40
+ # @param version The chart version
41
+ # @param [Hash] opts the optional parameters
42
+ # @return [nil]
43
+ describe 'chartrepo_repo_charts_name_version_labels_get test' do
44
+ it 'should work' do
45
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
46
+ end
47
+ end
48
+
49
+ # unit tests for chartrepo_repo_charts_name_version_labels_id_delete
50
+ # Remove label from chart.
51
+ # Remove label from the specified chart version.
52
+ # @param repo The project name
53
+ # @param name The chart name
54
+ # @param version The chart version
55
+ # @param id The label ID
56
+ # @param [Hash] opts the optional parameters
57
+ # @return [nil]
58
+ describe 'chartrepo_repo_charts_name_version_labels_id_delete test' do
59
+ it 'should work' do
60
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
61
+ end
62
+ end
63
+
64
+ # unit tests for chartrepo_repo_charts_name_version_labels_post
65
+ # Mark label to chart.
66
+ # Mark label to the specified chart version.
67
+ # @param repo The project name
68
+ # @param name The chart name
69
+ # @param version The chart version
70
+ # @param label The label being marked to the chart version
71
+ # @param [Hash] opts the optional parameters
72
+ # @return [nil]
73
+ describe 'chartrepo_repo_charts_name_version_labels_post test' do
74
+ it 'should work' do
75
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
76
+ end
77
+ end
78
+
79
+ # unit tests for configurations_get
80
+ # Get system configurations.
81
+ # This endpoint is for retrieving system configurations that only provides for admin user.
82
+ # @param [Hash] opts the optional parameters
83
+ # @return [ConfigurationsResponse]
84
+ describe 'configurations_get test' do
85
+ it 'should work' do
86
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
87
+ end
88
+ end
89
+
90
+ # unit tests for configurations_put
91
+ # Modify system configurations.
92
+ # This endpoint is for modifying system configurations that only provides for admin user.
93
+ # @param configurations The configuration map can contain a subset of the attributes of the schema, which are to be updated.
94
+ # @param [Hash] opts the optional parameters
95
+ # @return [nil]
96
+ describe 'configurations_put test' do
97
+ it 'should work' do
98
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
99
+ end
100
+ end
101
+
102
+ # unit tests for email_ping_post
103
+ # Test connection and authentication with email server.
104
+ # Test connection and authentication with email server.
105
+ # @param [Hash] opts the optional parameters
106
+ # @option opts [EmailServerSetting] :settings Email server settings, if some of the settings are not assigned, they will be read from system configuration.
107
+ # @return [nil]
108
+ describe 'email_ping_post test' do
109
+ it 'should work' do
110
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
111
+ end
112
+ end
113
+
114
+ # unit tests for health_get
115
+ # Health check API
116
+ # The endpoint returns the health stauts of the system.
117
+ # @param [Hash] opts the optional parameters
118
+ # @return [OverallHealthStatus]
119
+ describe 'health_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 labels_get
126
+ # List labels according to the query strings.
127
+ # This endpoint let user list labels by name, scope and project_id
128
+ # @param scope The label scope. Valid values are g and p. g for global labels and p for project labels.
129
+ # @param [Hash] opts the optional parameters
130
+ # @option opts [String] :name The label name.
131
+ # @option opts [Integer] :project_id Relevant project ID, required when scope is p.
132
+ # @option opts [Integer] :page The page nubmer.
133
+ # @option opts [Integer] :page_size The size of per page.
134
+ # @return [Array<Label>]
135
+ describe 'labels_get test' do
136
+ it 'should work' do
137
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
138
+ end
139
+ end
140
+
141
+ # unit tests for labels_id_delete
142
+ # Delete the label specified by ID.
143
+ # Delete the label specified by ID.
144
+ # @param id Label ID
145
+ # @param [Hash] opts the optional parameters
146
+ # @return [nil]
147
+ describe 'labels_id_delete test' do
148
+ it 'should work' do
149
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
150
+ end
151
+ end
152
+
153
+ # unit tests for labels_id_get
154
+ # Get the label specified by ID.
155
+ # This endpoint let user get the label by specific ID.
156
+ # @param id Label ID
157
+ # @param [Hash] opts the optional parameters
158
+ # @return [Label]
159
+ describe 'labels_id_get test' do
160
+ it 'should work' do
161
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
162
+ end
163
+ end
164
+
165
+ # unit tests for labels_id_put
166
+ # Update the label properties.
167
+ # This endpoint let user update label properties.
168
+ # @param id Label ID
169
+ # @param label The updated label json object.
170
+ # @param [Hash] opts the optional parameters
171
+ # @return [nil]
172
+ describe 'labels_id_put test' do
173
+ it 'should work' do
174
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
175
+ end
176
+ end
177
+
178
+ # unit tests for labels_post
179
+ # Post creates a label
180
+ # This endpoint let user creates a label.
181
+ # @param label The json object of label.
182
+ # @param [Hash] opts the optional parameters
183
+ # @return [nil]
184
+ describe 'labels_post test' do
185
+ it 'should work' do
186
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
187
+ end
188
+ end
189
+
190
+ # unit tests for ldap_groups_search_get
191
+ # Search available ldap groups.
192
+ # This endpoint searches the available ldap groups based on related configuration parameters. support to search by groupname or groupdn.
193
+ # @param [Hash] opts the optional parameters
194
+ # @option opts [String] :groupname Ldap group name
195
+ # @option opts [String] :groupdn The LDAP group DN
196
+ # @return [Array<UserGroup>]
197
+ describe 'ldap_groups_search_get test' do
198
+ it 'should work' do
199
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
200
+ end
201
+ end
202
+
203
+ # unit tests for ldap_ping_post
204
+ # Ping available ldap service.
205
+ # This endpoint ping the available ldap service for test related configuration parameters.
206
+ # @param [Hash] opts the optional parameters
207
+ # @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.
208
+ # @return [nil]
209
+ describe 'ldap_ping_post test' do
210
+ it 'should work' do
211
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
212
+ end
213
+ end
214
+
215
+ # unit tests for ldap_users_import_post
216
+ # Import selected available ldap users.
217
+ # 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.
218
+ # @param uid_list The uid listed for importing. This list will check users validity of ldap service based on configuration from the system.
219
+ # @param [Hash] opts the optional parameters
220
+ # @return [nil]
221
+ describe 'ldap_users_import_post test' do
222
+ it 'should work' do
223
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
224
+ end
225
+ end
226
+
227
+ # unit tests for ldap_users_search_get
228
+ # Search available ldap users.
229
+ # 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.
230
+ # @param [Hash] opts the optional parameters
231
+ # @option opts [String] :username Registered user ID
232
+ # @return [Array<LdapUsers>]
233
+ describe 'ldap_users_search_get test' do
234
+ it 'should work' do
235
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
236
+ end
237
+ end
238
+
239
+ # unit tests for projects_project_id_immutabletagrules_get
240
+ # List all immutable tag rules of current project
241
+ # This endpoint returns the immutable tag rules of a project
242
+ # @param project_id Relevant project ID.
243
+ # @param [Hash] opts the optional parameters
244
+ # @return [Array<RetentionRule>]
245
+ describe 'projects_project_id_immutabletagrules_get test' do
246
+ it 'should work' do
247
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
248
+ end
249
+ end
250
+
251
+ # unit tests for projects_project_id_immutabletagrules_id_delete
252
+ # Delete the immutable tag rule.
253
+ # @param project_id Relevant project ID.
254
+ # @param id Immutable tag rule ID.
255
+ # @param [Hash] opts the optional parameters
256
+ # @return [nil]
257
+ describe 'projects_project_id_immutabletagrules_id_delete test' do
258
+ it 'should work' do
259
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
260
+ end
261
+ end
262
+
263
+ # unit tests for projects_project_id_immutabletagrules_id_put
264
+ # Update the immutable tag rule or enable or disable the rule
265
+ # @param project_id Relevant project ID.
266
+ # @param id Immutable tag rule ID.
267
+ # @param retention_rule
268
+ # @param [Hash] opts the optional parameters
269
+ # @return [nil]
270
+ describe 'projects_project_id_immutabletagrules_id_put 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 projects_project_id_immutabletagrules_post
277
+ # Add an immutable tag rule to current project
278
+ # This endpoint add an immutable tag rule to the project
279
+ # @param project_id Relevant project ID.
280
+ # @param retention_rule
281
+ # @param [Hash] opts the optional parameters
282
+ # @return [nil]
283
+ describe 'projects_project_id_immutabletagrules_post test' do
284
+ it 'should work' do
285
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
286
+ end
287
+ end
288
+
289
+ # unit tests for projects_project_id_members_get
290
+ # Get all project member information
291
+ # Get all project member information
292
+ # @param project_id Relevant project ID.
293
+ # @param [Hash] opts the optional parameters
294
+ # @option opts [String] :entityname The entity name to search.
295
+ # @return [Array<ProjectMemberEntity>]
296
+ describe 'projects_project_id_members_get test' do
297
+ it 'should work' do
298
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
299
+ end
300
+ end
301
+
302
+ # unit tests for projects_project_id_members_mid_delete
303
+ # Delete project member
304
+ # @param project_id Relevant project ID.
305
+ # @param mid Member ID.
306
+ # @param [Hash] opts the optional parameters
307
+ # @return [nil]
308
+ describe 'projects_project_id_members_mid_delete test' do
309
+ it 'should work' do
310
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
311
+ end
312
+ end
313
+
314
+ # unit tests for projects_project_id_members_mid_get
315
+ # Get the project member information
316
+ # Get the project member information
317
+ # @param project_id Relevant project ID.
318
+ # @param mid The member ID
319
+ # @param [Hash] opts the optional parameters
320
+ # @return [ProjectMemberEntity]
321
+ describe 'projects_project_id_members_mid_get test' do
322
+ it 'should work' do
323
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
324
+ end
325
+ end
326
+
327
+ # unit tests for projects_project_id_members_mid_put
328
+ # Update project member
329
+ # Update project member relationship
330
+ # @param project_id Relevant project ID.
331
+ # @param mid Member ID.
332
+ # @param [Hash] opts the optional parameters
333
+ # @option opts [RoleRequest] :role
334
+ # @return [nil]
335
+ describe 'projects_project_id_members_mid_put 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 projects_project_id_members_post
342
+ # Create project member
343
+ # 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.
344
+ # @param project_id Relevant project ID.
345
+ # @param [Hash] opts the optional parameters
346
+ # @option opts [ProjectMember] :project_member
347
+ # @return [nil]
348
+ describe 'projects_project_id_members_post test' do
349
+ it 'should work' do
350
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
351
+ end
352
+ end
353
+
354
+ # unit tests for projects_project_id_metadatas_get
355
+ # Get project metadata.
356
+ # This endpoint returns metadata of the project specified by project ID.
357
+ # @param project_id The ID of project.
358
+ # @param [Hash] opts the optional parameters
359
+ # @return [ProjectMetadata]
360
+ describe 'projects_project_id_metadatas_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 projects_project_id_metadatas_meta_name_delete
367
+ # Delete metadata of a project
368
+ # This endpoint is aimed to delete metadata of a project.
369
+ # @param project_id The ID of project.
370
+ # @param meta_name The name of metadat.
371
+ # @param [Hash] opts the optional parameters
372
+ # @return [nil]
373
+ describe 'projects_project_id_metadatas_meta_name_delete test' do
374
+ it 'should work' do
375
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
376
+ end
377
+ end
378
+
379
+ # unit tests for projects_project_id_metadatas_meta_name_get
380
+ # Get project metadata
381
+ # This endpoint returns specified metadata of a project.
382
+ # @param project_id Project ID for filtering results.
383
+ # @param meta_name The name of metadat.
384
+ # @param [Hash] opts the optional parameters
385
+ # @return [ProjectMetadata]
386
+ describe 'projects_project_id_metadatas_meta_name_get test' do
387
+ it 'should work' do
388
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
389
+ end
390
+ end
391
+
392
+ # unit tests for projects_project_id_metadatas_meta_name_put
393
+ # Update metadata of a project.
394
+ # This endpoint is aimed to update the metadata of a project.
395
+ # @param project_id The ID of project.
396
+ # @param meta_name The name of metadat.
397
+ # @param [Hash] opts the optional parameters
398
+ # @return [nil]
399
+ describe 'projects_project_id_metadatas_meta_name_put test' do
400
+ it 'should work' do
401
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
402
+ end
403
+ end
404
+
405
+ # unit tests for projects_project_id_metadatas_post
406
+ # Add metadata for the project.
407
+ # This endpoint is aimed to add metadata of a project.
408
+ # @param project_id Selected project ID.
409
+ # @param metadata The metadata of project.
410
+ # @param [Hash] opts the optional parameters
411
+ # @return [nil]
412
+ describe 'projects_project_id_metadatas_post test' do
413
+ it 'should work' do
414
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
415
+ end
416
+ end
417
+
418
+ # unit tests for projects_project_id_robots_get
419
+ # Get all robot accounts of specified project
420
+ # Get all robot accounts of specified project
421
+ # @param project_id Relevant project ID.
422
+ # @param [Hash] opts the optional parameters
423
+ # @return [Array<RobotAccount>]
424
+ describe 'projects_project_id_robots_get test' do
425
+ it 'should work' do
426
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
427
+ end
428
+ end
429
+
430
+ # unit tests for projects_project_id_robots_post
431
+ # Create a robot account for project
432
+ # Create a robot account for project
433
+ # @param project_id Relevant project ID.
434
+ # @param robot Request body of creating a robot account.
435
+ # @param [Hash] opts the optional parameters
436
+ # @return [RobotAccountPostRep]
437
+ describe 'projects_project_id_robots_post test' do
438
+ it 'should work' do
439
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
440
+ end
441
+ end
442
+
443
+ # unit tests for projects_project_id_robots_robot_id_delete
444
+ # Delete the specified robot account
445
+ # Delete the specified robot account
446
+ # @param project_id Relevant project ID.
447
+ # @param robot_id The ID of robot account.
448
+ # @param [Hash] opts the optional parameters
449
+ # @return [nil]
450
+ describe 'projects_project_id_robots_robot_id_delete test' do
451
+ it 'should work' do
452
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
453
+ end
454
+ end
455
+
456
+ # unit tests for projects_project_id_robots_robot_id_get
457
+ # Return the infor of the specified robot account.
458
+ # Return the infor of the specified robot account.
459
+ # @param project_id Relevant project ID.
460
+ # @param robot_id The ID of robot account.
461
+ # @param [Hash] opts the optional parameters
462
+ # @return [RobotAccount]
463
+ describe 'projects_project_id_robots_robot_id_get test' do
464
+ it 'should work' do
465
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
466
+ end
467
+ end
468
+
469
+ # unit tests for projects_project_id_robots_robot_id_put
470
+ # Update status of robot account.
471
+ # Used to disable/enable a specified robot account.
472
+ # @param project_id Relevant project ID.
473
+ # @param robot_id The ID of robot account.
474
+ # @param robot Request body of enable/disable a robot account.
475
+ # @param [Hash] opts the optional parameters
476
+ # @return [nil]
477
+ describe 'projects_project_id_robots_robot_id_put test' do
478
+ it 'should work' do
479
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
480
+ end
481
+ end
482
+
483
+ # unit tests for projects_project_id_scanner_candidates_get
484
+ # Get scanner registration candidates for configurating project level scanner
485
+ # Retrieve the system configured scanner registrations as candidates of setting project level scanner.
486
+ # @param project_id The project identifier.
487
+ # @param [Hash] opts the optional parameters
488
+ # @return [Array<ScannerRegistration>]
489
+ describe 'projects_project_id_scanner_candidates_get test' do
490
+ it 'should work' do
491
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
492
+ end
493
+ end
494
+
495
+ # unit tests for projects_project_id_scanner_get
496
+ # Get project level scanner
497
+ # Get the scanner registration of the specified project. If no scanner registration is configured for the specified project, the system default scanner registration will be returned.
498
+ # @param project_id The project identifier.
499
+ # @param [Hash] opts the optional parameters
500
+ # @return [ScannerRegistration]
501
+ describe 'projects_project_id_scanner_get test' do
502
+ it 'should work' do
503
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
504
+ end
505
+ end
506
+
507
+ # unit tests for projects_project_id_webhook_events_get
508
+ # Get supported event types and notify types.
509
+ # Get supportted event types and notify types.
510
+ # @param project_id Relevant project ID.
511
+ # @param [Hash] opts the optional parameters
512
+ # @return [SupportedWebhookEventTypes]
513
+ describe 'projects_project_id_webhook_events_get test' do
514
+ it 'should work' do
515
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
516
+ end
517
+ end
518
+
519
+ # unit tests for projects_project_id_webhook_jobs_get
520
+ # List project webhook jobs
521
+ # This endpoint returns webhook jobs of a project.
522
+ # @param project_id Relevant project ID.
523
+ # @param policy_id The policy ID.
524
+ # @param [Hash] opts the optional parameters
525
+ # @return [Array<WebhookJob>]
526
+ describe 'projects_project_id_webhook_jobs_get test' do
527
+ it 'should work' do
528
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
529
+ end
530
+ end
531
+
532
+ # unit tests for projects_project_id_webhook_lasttrigger_get
533
+ # Get project webhook policy last trigger info
534
+ # This endpoint returns last trigger information of project webhook policy.
535
+ # @param project_id Relevant project ID.
536
+ # @param [Hash] opts the optional parameters
537
+ # @return [Array<WebhookLastTrigger>]
538
+ describe 'projects_project_id_webhook_lasttrigger_get test' do
539
+ it 'should work' do
540
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
541
+ end
542
+ end
543
+
544
+ # unit tests for projects_project_id_webhook_policies_get
545
+ # List project webhook policies.
546
+ # This endpoint returns webhook policies of a project.
547
+ # @param project_id Relevant project ID.
548
+ # @param [Hash] opts the optional parameters
549
+ # @return [Array<WebhookPolicy>]
550
+ describe 'projects_project_id_webhook_policies_get test' do
551
+ it 'should work' do
552
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
553
+ end
554
+ end
555
+
556
+ # unit tests for projects_project_id_webhook_policies_policy_id_delete
557
+ # Delete webhook policy of a project
558
+ # This endpoint is aimed to delete webhookpolicy of a project.
559
+ # @param project_id Relevant project ID.
560
+ # @param policy_id The id of webhook policy.
561
+ # @param [Hash] opts the optional parameters
562
+ # @return [nil]
563
+ describe 'projects_project_id_webhook_policies_policy_id_delete test' do
564
+ it 'should work' do
565
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
566
+ end
567
+ end
568
+
569
+ # unit tests for projects_project_id_webhook_policies_policy_id_get
570
+ # Get project webhook policy
571
+ # This endpoint returns specified webhook policy of a project.
572
+ # @param project_id Relevant project ID.
573
+ # @param policy_id The id of webhook policy.
574
+ # @param [Hash] opts the optional parameters
575
+ # @return [WebhookPolicy]
576
+ describe 'projects_project_id_webhook_policies_policy_id_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_webhook_policies_policy_id_put
583
+ # Update webhook policy of a project.
584
+ # This endpoint is aimed to update the webhook policy of a project.
585
+ # @param project_id Relevant project ID.
586
+ # @param policy_id The id of webhook policy.
587
+ # @param policy All properties needed except \&quot;id\&quot;, \&quot;project_id\&quot;, \&quot;creation_time\&quot;, \&quot;update_time\&quot;.
588
+ # @param [Hash] opts the optional parameters
589
+ # @return [nil]
590
+ describe 'projects_project_id_webhook_policies_policy_id_put test' do
591
+ it 'should work' do
592
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
593
+ end
594
+ end
595
+
596
+ # unit tests for projects_project_id_webhook_policies_post
597
+ # Create project webhook policy.
598
+ # This endpoint create a webhook policy if the project does not have one.
599
+ # @param project_id Relevant project ID
600
+ # @param policy Properties \&quot;targets\&quot; and \&quot;event_types\&quot; needed.
601
+ # @param [Hash] opts the optional parameters
602
+ # @return [nil]
603
+ describe 'projects_project_id_webhook_policies_post test' do
604
+ it 'should work' do
605
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
606
+ end
607
+ end
608
+
609
+ # unit tests for projects_project_id_webhook_policies_test_post
610
+ # Test project webhook connection
611
+ # This endpoint tests webhook connection of a project.
612
+ # @param project_id Relevant project ID.
613
+ # @param policy Only property \&quot;targets\&quot; needed.
614
+ # @param [Hash] opts the optional parameters
615
+ # @return [nil]
616
+ describe 'projects_project_id_webhook_policies_test_post test' do
617
+ it 'should work' do
618
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
619
+ end
620
+ end
621
+
622
+ # unit tests for quotas_get
623
+ # List quotas
624
+ # List quotas
625
+ # @param [Hash] opts the optional parameters
626
+ # @option opts [String] :reference The reference type of quota.
627
+ # @option opts [String] :reference_id The reference id of quota.
628
+ # @option opts [String] :sort Sort method, valid values include: &#39;hard.resource_name&#39;, &#39;-hard.resource_name&#39;, &#39;used.resource_name&#39;, &#39;-used.resource_name&#39;. Here &#39;-&#39; stands for descending order, resource_name should be the real resource name of the quota.
629
+ # @option opts [Integer] :page The page number, default is 1.
630
+ # @option opts [Integer] :page_size The size of per page, default is 10, maximum is 100.
631
+ # @return [Array<Quota>]
632
+ describe 'quotas_get test' do
633
+ it 'should work' do
634
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
635
+ end
636
+ end
637
+
638
+ # unit tests for quotas_id_get
639
+ # Get the specified quota
640
+ # Get the specified quota
641
+ # @param id Quota ID
642
+ # @param [Hash] opts the optional parameters
643
+ # @return [Quota]
644
+ describe 'quotas_id_get test' do
645
+ it 'should work' do
646
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
647
+ end
648
+ end
649
+
650
+ # unit tests for quotas_id_put
651
+ # Update the specified quota
652
+ # Update hard limits of the specified quota
653
+ # @param id Quota ID
654
+ # @param hard The new hard limits for the quota
655
+ # @param [Hash] opts the optional parameters
656
+ # @return [nil]
657
+ describe 'quotas_id_put test' do
658
+ it 'should work' do
659
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
660
+ end
661
+ end
662
+
663
+ # unit tests for registries_get
664
+ # List registries.
665
+ # List registries according to the query.
666
+ # @param [Hash] opts the optional parameters
667
+ # @option opts [String] :name Deprecated, use &#x60;q&#x60; instead.
668
+ # @option opts [String] :q Query string to query resources. Supported query patterns are \&quot;exact match(k&#x3D;v)\&quot;, \&quot;fuzzy match(k&#x3D;~v)\&quot;, \&quot;range(k&#x3D;[min~max])\&quot;, \&quot;list with union releationship(k&#x3D;{v1 v2 v3})\&quot; and \&quot;list with intersetion relationship(k&#x3D;(v1 v2 v3))\&quot;. The value of range and list can be string(enclosed by \&quot; or &#39;), integer or time(in format \&quot;2020-04-09 02:36:00\&quot;). All of these query patterns should be put in the query string \&quot;q&#x3D;xxx\&quot; and splitted by \&quot;,\&quot;. e.g. q&#x3D;k1&#x3D;v1,k2&#x3D;~v2,k3&#x3D;[min~max]
669
+ # @return [Array<Registry>]
670
+ describe 'registries_get test' do
671
+ it 'should work' do
672
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
673
+ end
674
+ end
675
+
676
+ # unit tests for registries_id_delete
677
+ # Delete specific registry.
678
+ # This endpoint is for to delete specific registry.
679
+ # @param id The registry&#39;s ID.
680
+ # @param [Hash] opts the optional parameters
681
+ # @return [nil]
682
+ describe 'registries_id_delete test' do
683
+ it 'should work' do
684
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
685
+ end
686
+ end
687
+
688
+ # unit tests for registries_id_get
689
+ # Get registry.
690
+ # This endpoint is for get specific registry.
691
+ # @param id The registry ID.
692
+ # @param [Hash] opts the optional parameters
693
+ # @return [Registry]
694
+ describe 'registries_id_get test' do
695
+ it 'should work' do
696
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
697
+ end
698
+ end
699
+
700
+ # unit tests for registries_id_info_get
701
+ # Get registry info.
702
+ # Get the info of one specific registry.
703
+ # @param id The registry ID.
704
+ # @param [Hash] opts the optional parameters
705
+ # @return [RegistryInfo]
706
+ describe 'registries_id_info_get 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 registries_id_namespace_get
713
+ # List namespaces of registry
714
+ # This endpoint let user list namespaces of registry according to query.
715
+ # @param id The registry ID.
716
+ # @param [Hash] opts the optional parameters
717
+ # @option opts [String] :name The name of namespace.
718
+ # @return [Array<Namespace>]
719
+ describe 'registries_id_namespace_get test' do
720
+ it 'should work' do
721
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
722
+ end
723
+ end
724
+
725
+ # unit tests for registries_id_put
726
+ # Update a given registry.
727
+ # This endpoint is for update a given registry.
728
+ # @param id The registry&#39;s ID.
729
+ # @param repo_target Updates registry.
730
+ # @param [Hash] opts the optional parameters
731
+ # @return [nil]
732
+ describe 'registries_id_put test' do
733
+ it 'should work' do
734
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
735
+ end
736
+ end
737
+
738
+ # unit tests for registries_ping_post
739
+ # Ping status of a registry.
740
+ # This endpoint checks status of a registry, the registry can be given by ID or URL (together with credential)
741
+ # @param registry Registry to ping.
742
+ # @param [Hash] opts the optional parameters
743
+ # @return [nil]
744
+ describe 'registries_ping_post test' do
745
+ it 'should work' do
746
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
747
+ end
748
+ end
749
+
750
+ # unit tests for registries_post
751
+ # Create a new registry.
752
+ # This endpoint is for user to create a new registry.
753
+ # @param registry New created registry.
754
+ # @param [Hash] opts the optional parameters
755
+ # @return [nil]
756
+ describe 'registries_post test' do
757
+ it 'should work' do
758
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
759
+ end
760
+ end
761
+
762
+ # unit tests for replication_adapters_get
763
+ # List supported adapters.
764
+ # This endpoint let user list supported adapters.
765
+ # @param [Hash] opts the optional parameters
766
+ # @return [Array<String>]
767
+ describe 'replication_adapters_get test' do
768
+ it 'should work' do
769
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
770
+ end
771
+ end
772
+
773
+ # unit tests for replication_executions_get
774
+ # List replication executions.
775
+ # This endpoint let user list replication executions.
776
+ # @param [Hash] opts the optional parameters
777
+ # @option opts [Integer] :policy_id The policy ID.
778
+ # @option opts [String] :status The execution status.
779
+ # @option opts [String] :trigger The trigger mode.
780
+ # @option opts [Integer] :page The page.
781
+ # @option opts [Integer] :page_size The page size.
782
+ # @return [Array<ReplicationExecution>]
783
+ describe 'replication_executions_get test' do
784
+ it 'should work' do
785
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
786
+ end
787
+ end
788
+
789
+ # unit tests for replication_executions_id_get
790
+ # Get the execution of the replication.
791
+ # This endpoint is for user to get one execution of the replication.
792
+ # @param id The execution ID.
793
+ # @param [Hash] opts the optional parameters
794
+ # @return [ReplicationExecution]
795
+ describe 'replication_executions_id_get 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 replication_executions_id_put
802
+ # Stop the execution of the replication.
803
+ # This endpoint is for user to stop one execution of the replication.
804
+ # @param id The execution ID.
805
+ # @param [Hash] opts the optional parameters
806
+ # @return [nil]
807
+ describe 'replication_executions_id_put test' do
808
+ it 'should work' do
809
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
810
+ end
811
+ end
812
+
813
+ # unit tests for replication_executions_id_tasks_get
814
+ # Get the task list of one execution.
815
+ # This endpoint is for user to get the task list of one execution.
816
+ # @param id The execution ID.
817
+ # @param [Hash] opts the optional parameters
818
+ # @return [Array<ReplicationTask>]
819
+ describe 'replication_executions_id_tasks_get test' do
820
+ it 'should work' do
821
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
822
+ end
823
+ end
824
+
825
+ # unit tests for replication_executions_id_tasks_task_id_log_get
826
+ # Get the log of one task.
827
+ # This endpoint is for user to get the log of one task.
828
+ # @param id The execution ID.
829
+ # @param task_id The task ID.
830
+ # @param [Hash] opts the optional parameters
831
+ # @return [nil]
832
+ describe 'replication_executions_id_tasks_task_id_log_get test' do
833
+ it 'should work' do
834
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
835
+ end
836
+ end
837
+
838
+ # unit tests for replication_executions_post
839
+ # Start one execution of the replication.
840
+ # This endpoint is for user to start one execution of the replication.
841
+ # @param execution The execution that needs to be started, only the property \&quot;policy_id\&quot; is needed.
842
+ # @param [Hash] opts the optional parameters
843
+ # @return [nil]
844
+ describe 'replication_executions_post test' do
845
+ it 'should work' do
846
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
847
+ end
848
+ end
849
+
850
+ # unit tests for replication_policies_get
851
+ # List replication policies
852
+ # This endpoint let user list replication policies
853
+ # @param [Hash] opts the optional parameters
854
+ # @option opts [String] :name The replication policy name.
855
+ # @option opts [Integer] :page The page nubmer.
856
+ # @option opts [Integer] :page_size The size of per page.
857
+ # @return [Array<ReplicationPolicy>]
858
+ describe 'replication_policies_get test' do
859
+ it 'should work' do
860
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
861
+ end
862
+ end
863
+
864
+ # unit tests for replication_policies_id_delete
865
+ # Delete the replication policy specified by ID.
866
+ # Delete the replication policy specified by ID.
867
+ # @param id Replication policy ID
868
+ # @param [Hash] opts the optional parameters
869
+ # @return [nil]
870
+ describe 'replication_policies_id_delete test' do
871
+ it 'should work' do
872
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
873
+ end
874
+ end
875
+
876
+ # unit tests for replication_policies_id_get
877
+ # Get replication policy.
878
+ # This endpoint let user get replication policy by specific ID.
879
+ # @param id policy ID
880
+ # @param [Hash] opts the optional parameters
881
+ # @return [ReplicationPolicy]
882
+ describe 'replication_policies_id_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 replication_policies_id_put
889
+ # Update the replication policy
890
+ # This endpoint let user update policy.
891
+ # @param id policy ID
892
+ # @param policy The replication policy model.
893
+ # @param [Hash] opts the optional parameters
894
+ # @return [nil]
895
+ describe 'replication_policies_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 replication_policies_post
902
+ # Create a replication policy
903
+ # This endpoint let user create a replication policy
904
+ # @param policy The policy model.
905
+ # @param [Hash] opts the optional parameters
906
+ # @return [nil]
907
+ describe 'replication_policies_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 retentions_id_executions_eid_patch
914
+ # Stop a Retention job
915
+ # Stop a Retention job, only support \&quot;stop\&quot; action now.
916
+ # @param id Retention ID.
917
+ # @param eid Retention execution ID.
918
+ # @param action The action, only support \&quot;stop\&quot; now.
919
+ # @param [Hash] opts the optional parameters
920
+ # @return [nil]
921
+ describe 'retentions_id_executions_eid_patch test' do
922
+ it 'should work' do
923
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
924
+ end
925
+ end
926
+
927
+ # unit tests for retentions_id_executions_eid_tasks_get
928
+ # Get Retention job tasks
929
+ # Get Retention job tasks, each repository as a task.
930
+ # @param id Retention ID.
931
+ # @param eid Retention execution ID.
932
+ # @param [Hash] opts the optional parameters
933
+ # @return [Array<RetentionExecutionTask>]
934
+ describe 'retentions_id_executions_eid_tasks_get test' do
935
+ it 'should work' do
936
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
937
+ end
938
+ end
939
+
940
+ # unit tests for retentions_id_executions_eid_tasks_tid_get
941
+ # Get Retention job task log
942
+ # Get Retention job task log, tags ratain or deletion detail will be shown in a table.
943
+ # @param id Retention ID.
944
+ # @param eid Retention execution ID.
945
+ # @param tid Retention execution ID.
946
+ # @param [Hash] opts the optional parameters
947
+ # @return [String]
948
+ describe 'retentions_id_executions_eid_tasks_tid_get test' do
949
+ it 'should work' do
950
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
951
+ end
952
+ end
953
+
954
+ # unit tests for retentions_id_executions_get
955
+ # Get a Retention job
956
+ # Get a Retention job, job status may be delayed before job service schedule it up.
957
+ # @param id Retention ID.
958
+ # @param [Hash] opts the optional parameters
959
+ # @return [Array<RetentionExecution>]
960
+ describe 'retentions_id_executions_get test' do
961
+ it 'should work' do
962
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
963
+ end
964
+ end
965
+
966
+ # unit tests for retentions_id_executions_post
967
+ # Trigger a Retention job
968
+ # Trigger a Retention job, if dry_run is True, nothing would be deleted actually.
969
+ # @param id Retention ID.
970
+ # @param action
971
+ # @param [Hash] opts the optional parameters
972
+ # @return [nil]
973
+ describe 'retentions_id_executions_post test' do
974
+ it 'should work' do
975
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
976
+ end
977
+ end
978
+
979
+ # unit tests for retentions_id_get
980
+ # Get Retention Policy
981
+ # Get Retention Policy.
982
+ # @param id Retention ID.
983
+ # @param [Hash] opts the optional parameters
984
+ # @return [RetentionPolicy]
985
+ describe 'retentions_id_get test' do
986
+ it 'should work' do
987
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
988
+ end
989
+ end
990
+
991
+ # unit tests for retentions_id_put
992
+ # Update Retention Policy
993
+ # 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.
994
+ # @param id Retention ID.
995
+ # @param policy
996
+ # @param [Hash] opts the optional parameters
997
+ # @return [nil]
998
+ describe 'retentions_id_put test' do
999
+ it 'should work' do
1000
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1001
+ end
1002
+ end
1003
+
1004
+ # unit tests for retentions_metadatas_get
1005
+ # Get Retention Metadatas
1006
+ # Get Retention Metadatas.
1007
+ # @param [Hash] opts the optional parameters
1008
+ # @return [RetentionMetadata]
1009
+ describe 'retentions_metadatas_get test' do
1010
+ it 'should work' do
1011
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1012
+ end
1013
+ end
1014
+
1015
+ # unit tests for retentions_post
1016
+ # Create Retention Policy
1017
+ # 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.
1018
+ # @param policy Create Retention Policy successfully.
1019
+ # @param [Hash] opts the optional parameters
1020
+ # @return [nil]
1021
+ describe 'retentions_post 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 scanners_get
1028
+ # List scanner registrations
1029
+ # Returns a list of currently configured scanner registrations.
1030
+ # @param [Hash] opts the optional parameters
1031
+ # @return [Array<ScannerRegistration>]
1032
+ describe 'scanners_get test' do
1033
+ it 'should work' do
1034
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1035
+ end
1036
+ end
1037
+
1038
+ # unit tests for scanners_ping_post
1039
+ # Tests scanner registration settings
1040
+ # Pings scanner adapter to test endpoint URL and authorization settings.
1041
+ # @param settings A scanner registration settings to be tested.
1042
+ # @param [Hash] opts the optional parameters
1043
+ # @return [nil]
1044
+ describe 'scanners_ping_post test' do
1045
+ it 'should work' do
1046
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1047
+ end
1048
+ end
1049
+
1050
+ # unit tests for scanners_registration_id_get
1051
+ # Get a scanner registration details
1052
+ # Retruns the details of the specified scanner registration.
1053
+ # @param registration_id The scanner registration identifer.
1054
+ # @param [Hash] opts the optional parameters
1055
+ # @return [ScannerRegistration]
1056
+ describe 'scanners_registration_id_get test' do
1057
+ it 'should work' do
1058
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1059
+ end
1060
+ end
1061
+
1062
+ # unit tests for scanners_registration_id_metadata_get
1063
+ # Get the metadata of the specified scanner registration
1064
+ # Get the metadata of the specified scanner registration, including the capabilities and customzied properties.
1065
+ # @param registration_id The scanner registration identifier.
1066
+ # @param [Hash] opts the optional parameters
1067
+ # @return [ScannerAdapterMetadata]
1068
+ describe 'scanners_registration_id_metadata_get test' do
1069
+ it 'should work' do
1070
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1071
+ end
1072
+ end
1073
+
1074
+ # unit tests for scans_all_metrics_get
1075
+ # Get the metrics of the latest scan all process
1076
+ # Get the metrics of the latest scan all process
1077
+ # @param [Hash] opts the optional parameters
1078
+ # @return [Stats]
1079
+ describe 'scans_all_metrics_get test' do
1080
+ it 'should work' do
1081
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1082
+ end
1083
+ end
1084
+
1085
+ # unit tests for scans_schedule_metrics_get
1086
+ # Get the metrics of the latest scheduled scan all process
1087
+ # Get the metrics of the latest scheduled scan all process
1088
+ # @param [Hash] opts the optional parameters
1089
+ # @return [Stats]
1090
+ describe 'scans_schedule_metrics_get test' do
1091
+ it 'should work' do
1092
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1093
+ end
1094
+ end
1095
+
1096
+ # unit tests for search_get
1097
+ # Search for projects, repositories and helm charts
1098
+ # 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.
1099
+ # @param q Search parameter for project and repository name.
1100
+ # @param [Hash] opts the optional parameters
1101
+ # @return [Array<Search>]
1102
+ describe 'search_get test' do
1103
+ it 'should work' do
1104
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1105
+ end
1106
+ end
1107
+
1108
+ # unit tests for statistics_get
1109
+ # Get projects number and repositories number relevant to the user
1110
+ # 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.
1111
+ # @param [Hash] opts the optional parameters
1112
+ # @return [StatisticMap]
1113
+ describe 'statistics_get test' do
1114
+ it 'should work' do
1115
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1116
+ end
1117
+ end
1118
+
1119
+ # unit tests for system_cve_allowlist_get
1120
+ # Get the system level allowlist of CVE.
1121
+ # Get the system level allowlist of CVE. This API can be called by all authenticated users.
1122
+ # @param [Hash] opts the optional parameters
1123
+ # @return [CVEAllowlist]
1124
+ describe 'system_cve_allowlist_get 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 system_cve_allowlist_put
1131
+ # Update the system level allowlist of CVE.
1132
+ # This API overwrites the system level allowlist of CVE with the list in request body. Only system Admin has permission to call this API.
1133
+ # @param [Hash] opts the optional parameters
1134
+ # @option opts [CVEAllowlist] :allowlist The allowlist with new content
1135
+ # @return [nil]
1136
+ describe 'system_cve_allowlist_put test' do
1137
+ it 'should work' do
1138
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1139
+ end
1140
+ end
1141
+
1142
+ # unit tests for system_gc_get
1143
+ # Get gc results.
1144
+ # This endpoint let user get latest ten gc results.
1145
+ # @param [Hash] opts the optional parameters
1146
+ # @return [Array<GCResult>]
1147
+ describe 'system_gc_get test' do
1148
+ it 'should work' do
1149
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1150
+ end
1151
+ end
1152
+
1153
+ # unit tests for system_gc_id_get
1154
+ # Get gc status.
1155
+ # This endpoint let user get gc status filtered by specific ID.
1156
+ # @param id Relevant job ID
1157
+ # @param [Hash] opts the optional parameters
1158
+ # @return [GCResult]
1159
+ describe 'system_gc_id_get test' do
1160
+ it 'should work' do
1161
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1162
+ end
1163
+ end
1164
+
1165
+ # unit tests for system_gc_id_log_get
1166
+ # Get gc job log.
1167
+ # This endpoint let user get gc job logs filtered by specific ID.
1168
+ # @param id Relevant job ID
1169
+ # @param [Hash] opts the optional parameters
1170
+ # @return [String]
1171
+ describe 'system_gc_id_log_get test' do
1172
+ it 'should work' do
1173
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1174
+ end
1175
+ end
1176
+
1177
+ # unit tests for system_gc_schedule_get
1178
+ # Get gc&#39;s schedule.
1179
+ # This endpoint is for get schedule of gc job.
1180
+ # @param [Hash] opts the optional parameters
1181
+ # @return [AdminJobSchedule]
1182
+ describe 'system_gc_schedule_get test' do
1183
+ it 'should work' do
1184
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1185
+ end
1186
+ end
1187
+
1188
+ # unit tests for system_gc_schedule_post
1189
+ # Create a gc schedule.
1190
+ # This endpoint is for update gc schedule.
1191
+ # @param schedule Updates of gc&#39;s schedule.
1192
+ # @param [Hash] opts the optional parameters
1193
+ # @return [nil]
1194
+ describe 'system_gc_schedule_post test' do
1195
+ it 'should work' do
1196
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1197
+ end
1198
+ end
1199
+
1200
+ # unit tests for system_gc_schedule_put
1201
+ # Update gc&#39;s schedule.
1202
+ # This endpoint is for update gc schedule.
1203
+ # @param schedule Updates of gc&#39;s schedule.
1204
+ # @param [Hash] opts the optional parameters
1205
+ # @return [nil]
1206
+ describe 'system_gc_schedule_put test' do
1207
+ it 'should work' do
1208
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1209
+ end
1210
+ end
1211
+
1212
+ # unit tests for system_oidc_ping_post
1213
+ # Test the OIDC endpoint.
1214
+ # Test the OIDC endpoint, the setting of the endpoint is provided in the request. This API can only be called by system admin.
1215
+ # @param endpoint Request body for OIDC endpoint to be tested.
1216
+ # @param [Hash] opts the optional parameters
1217
+ # @return [nil]
1218
+ describe 'system_oidc_ping_post test' do
1219
+ it 'should work' do
1220
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1221
+ end
1222
+ end
1223
+
1224
+ # unit tests for system_scan_all_schedule_get
1225
+ # Get scan_all&#39;s schedule.
1226
+ # This endpoint is for getting a schedule for the scan all job, which scans all of images in Harbor.
1227
+ # @param [Hash] opts the optional parameters
1228
+ # @return [AdminJobSchedule]
1229
+ describe 'system_scan_all_schedule_get test' do
1230
+ it 'should work' do
1231
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1232
+ end
1233
+ end
1234
+
1235
+ # unit tests for system_scan_all_schedule_post
1236
+ # Create a schedule or a manual trigger for the scan all job.
1237
+ # This endpoint is for creating a schedule or a manual trigger for the scan all job, which scans all of images in Harbor.
1238
+ # @param schedule Create a schedule or a manual trigger for the scan all job.
1239
+ # @param [Hash] opts the optional parameters
1240
+ # @return [nil]
1241
+ describe 'system_scan_all_schedule_post test' do
1242
+ it 'should work' do
1243
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1244
+ end
1245
+ end
1246
+
1247
+ # unit tests for system_scan_all_schedule_put
1248
+ # Update scan all&#39;s schedule.
1249
+ # This endpoint is for updating the schedule of scan all job, which scans all of images in Harbor.
1250
+ # @param schedule Updates the schedule of scan all job, which scans all of images in Harbor.
1251
+ # @param [Hash] opts the optional parameters
1252
+ # @return [nil]
1253
+ describe 'system_scan_all_schedule_put test' do
1254
+ it 'should work' do
1255
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1256
+ end
1257
+ end
1258
+
1259
+ # unit tests for systeminfo_get
1260
+ # Get general system info
1261
+ # This API is for retrieving general system info, this can be called by anonymous request.
1262
+ # @param [Hash] opts the optional parameters
1263
+ # @return [GeneralInfo]
1264
+ describe 'systeminfo_get test' do
1265
+ it 'should work' do
1266
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1267
+ end
1268
+ end
1269
+
1270
+ # unit tests for systeminfo_getcert_get
1271
+ # Get default root certificate.
1272
+ # This endpoint is for downloading a default root certificate.
1273
+ # @param [Hash] opts the optional parameters
1274
+ # @return [nil]
1275
+ describe 'systeminfo_getcert_get test' do
1276
+ it 'should work' do
1277
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1278
+ end
1279
+ end
1280
+
1281
+ # unit tests for systeminfo_volumes_get
1282
+ # Get system volume info (total/free size).
1283
+ # This endpoint is for retrieving system volume info that only provides for admin user.
1284
+ # @param [Hash] opts the optional parameters
1285
+ # @return [SystemInfo]
1286
+ describe 'systeminfo_volumes_get test' do
1287
+ it 'should work' do
1288
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1289
+ end
1290
+ end
1291
+
1292
+ # unit tests for usergroups_get
1293
+ # Get all user groups information
1294
+ # Get all user groups information
1295
+ # @param [Hash] opts the optional parameters
1296
+ # @return [Array<UserGroup>]
1297
+ describe 'usergroups_get test' do
1298
+ it 'should work' do
1299
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1300
+ end
1301
+ end
1302
+
1303
+ # unit tests for usergroups_group_id_delete
1304
+ # Delete user group
1305
+ # Delete user group
1306
+ # @param group_id
1307
+ # @param [Hash] opts the optional parameters
1308
+ # @return [nil]
1309
+ describe 'usergroups_group_id_delete test' do
1310
+ it 'should work' do
1311
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1312
+ end
1313
+ end
1314
+
1315
+ # unit tests for usergroups_group_id_get
1316
+ # Get user group information
1317
+ # Get user group information
1318
+ # @param group_id Group ID
1319
+ # @param [Hash] opts the optional parameters
1320
+ # @return [UserGroup]
1321
+ describe 'usergroups_group_id_get test' do
1322
+ it 'should work' do
1323
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1324
+ end
1325
+ end
1326
+
1327
+ # unit tests for usergroups_group_id_put
1328
+ # Update group information
1329
+ # Update user group information
1330
+ # @param group_id Group ID
1331
+ # @param [Hash] opts the optional parameters
1332
+ # @option opts [UserGroup] :usergroup
1333
+ # @return [nil]
1334
+ describe 'usergroups_group_id_put test' do
1335
+ it 'should work' do
1336
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1337
+ end
1338
+ end
1339
+
1340
+ # unit tests for usergroups_post
1341
+ # Create user group
1342
+ # Create user group information
1343
+ # @param [Hash] opts the optional parameters
1344
+ # @option opts [UserGroup] :usergroup
1345
+ # @return [nil]
1346
+ describe 'usergroups_post test' do
1347
+ it 'should work' do
1348
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1349
+ end
1350
+ end
1351
+
1352
+ # unit tests for users_current_get
1353
+ # Get current user info.
1354
+ # This endpoint is to get the current user information.
1355
+ # @param [Hash] opts the optional parameters
1356
+ # @return [User]
1357
+ describe 'users_current_get test' do
1358
+ it 'should work' do
1359
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1360
+ end
1361
+ end
1362
+
1363
+ # unit tests for users_current_permissions_get
1364
+ # Get current user permissions.
1365
+ # This endpoint is to get the current user permissions.
1366
+ # @param [Hash] opts the optional parameters
1367
+ # @option opts [String] :scope Get permissions of the scope
1368
+ # @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;.
1369
+ # @return [Array<Permission>]
1370
+ describe 'users_current_permissions_get test' do
1371
+ it 'should work' do
1372
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1373
+ end
1374
+ end
1375
+
1376
+ # unit tests for users_get
1377
+ # Get registered users of Harbor.
1378
+ # This endpoint is for user to search registered users, support for filtering results with username.Notice, by now this operation is only for administrator.
1379
+ # @param [Hash] opts the optional parameters
1380
+ # @option opts [String] :username Username for filtering results.
1381
+ # @option opts [String] :email Email for filtering results.
1382
+ # @option opts [Integer] :page The page number, default is 1.
1383
+ # @option opts [Integer] :page_size The size of per page.
1384
+ # @return [Array<User>]
1385
+ describe 'users_get test' do
1386
+ it 'should work' do
1387
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1388
+ end
1389
+ end
1390
+
1391
+ # unit tests for users_post
1392
+ # Creates a new user account.
1393
+ # This endpoint is to create a user if the user does not already exist.
1394
+ # @param user New created user.
1395
+ # @param [Hash] opts the optional parameters
1396
+ # @return [nil]
1397
+ describe 'users_post test' do
1398
+ it 'should work' do
1399
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1400
+ end
1401
+ end
1402
+
1403
+ # unit tests for users_search_get
1404
+ # Search users by username
1405
+ # This endpoint is to search the users by username.
1406
+ # @param username Username for filtering results.
1407
+ # @param [Hash] opts the optional parameters
1408
+ # @option opts [Integer] :page The page number, default is 1.
1409
+ # @option opts [Integer] :page_size The size of per page.
1410
+ # @return [Array<UserSearch>]
1411
+ describe 'users_search_get test' do
1412
+ it 'should work' do
1413
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1414
+ end
1415
+ end
1416
+
1417
+ # unit tests for users_user_id_cli_secret_put
1418
+ # Set CLI secret for a user.
1419
+ # 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.
1420
+ # @param user_id User ID
1421
+ # @param input_secret JSON object that includes the new secret
1422
+ # @param [Hash] opts the optional parameters
1423
+ # @return [nil]
1424
+ describe 'users_user_id_cli_secret_put test' do
1425
+ it 'should work' do
1426
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1427
+ end
1428
+ end
1429
+
1430
+ # unit tests for users_user_id_delete
1431
+ # Mark a registered user as be removed.
1432
+ # This endpoint let administrator of Harbor mark a registered user as be removed.It actually won&#39;t be deleted from DB.
1433
+ # @param user_id User ID for marking as to be removed.
1434
+ # @param [Hash] opts the optional parameters
1435
+ # @return [nil]
1436
+ describe 'users_user_id_delete test' do
1437
+ it 'should work' do
1438
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1439
+ end
1440
+ end
1441
+
1442
+ # unit tests for users_user_id_get
1443
+ # Get a user&#39;s profile.
1444
+ # Get user&#39;s profile with user id.
1445
+ # @param user_id Registered user ID
1446
+ # @param [Hash] opts the optional parameters
1447
+ # @return [User]
1448
+ describe 'users_user_id_get test' do
1449
+ it 'should work' do
1450
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1451
+ end
1452
+ end
1453
+
1454
+ # unit tests for users_user_id_password_put
1455
+ # Change the password on a user that already exists.
1456
+ # 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.
1457
+ # @param user_id Registered user ID.
1458
+ # @param password Password to be updated, the attribute &#39;old_password&#39; is optional when the API is called by the system administrator.
1459
+ # @param [Hash] opts the optional parameters
1460
+ # @return [nil]
1461
+ describe 'users_user_id_password_put test' do
1462
+ it 'should work' do
1463
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1464
+ end
1465
+ end
1466
+
1467
+ # unit tests for users_user_id_put
1468
+ # Update a registered user to change his profile.
1469
+ # This endpoint let a registered user change his profile.
1470
+ # @param user_id Registered user ID
1471
+ # @param profile Only email, realname and comment can be modified.
1472
+ # @param [Hash] opts the optional parameters
1473
+ # @return [nil]
1474
+ describe 'users_user_id_put test' do
1475
+ it 'should work' do
1476
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1477
+ end
1478
+ end
1479
+
1480
+ # unit tests for users_user_id_sysadmin_put
1481
+ # Update a registered user to change to be an administrator of Harbor.
1482
+ # This endpoint let a registered user change to be an administrator of Harbor.
1483
+ # @param user_id Registered user ID
1484
+ # @param sysadmin_flag Toggle a user to admin or not.
1485
+ # @param [Hash] opts the optional parameters
1486
+ # @return [nil]
1487
+ describe 'users_user_id_sysadmin_put test' do
1488
+ it 'should work' do
1489
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1490
+ end
1491
+ end
1492
+
1493
+ end