harbor2_legacy_client 0.1.0 → 2.3.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (357) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +8 -247
  3. data/build_scripts/generate.sh +8 -0
  4. data/build_scripts/swagger-codegen-cli-ruby-config.json +12 -0
  5. data/docs/ProductsApi.md +0 -6137
  6. data/git_push.sh +3 -3
  7. data/harbor2_legacy_client.gemspec +8 -8
  8. data/lib/harbor2_legacy_client/api/chart_repository_api.rb +1 -1
  9. data/lib/harbor2_legacy_client/api/label_api.rb +1 -1
  10. data/lib/harbor2_legacy_client/api/products_api.rb +1 -6222
  11. data/lib/harbor2_legacy_client/api_client.rb +2 -2
  12. data/lib/harbor2_legacy_client/api_error.rb +1 -1
  13. data/lib/harbor2_legacy_client/configuration.rb +1 -1
  14. data/lib/harbor2_legacy_client/models/bad_request_formated_error.rb +1 -1
  15. data/lib/harbor2_legacy_client/models/chart_api_error.rb +1 -1
  16. data/lib/harbor2_legacy_client/models/chart_metadata.rb +1 -1
  17. data/lib/harbor2_legacy_client/models/chart_version.rb +1 -1
  18. data/lib/harbor2_legacy_client/models/component_overview_entry.rb +1 -1
  19. data/lib/harbor2_legacy_client/models/conflict_formated_error.rb +1 -1
  20. data/lib/harbor2_legacy_client/models/email_server_setting.rb +1 -1
  21. data/lib/harbor2_legacy_client/models/forbidden_chart_api_error.rb +1 -1
  22. data/lib/harbor2_legacy_client/models/insufficient_storage_chart_api_error.rb +1 -1
  23. data/lib/harbor2_legacy_client/models/internal_chart_api_error.rb +1 -1
  24. data/lib/harbor2_legacy_client/models/label.rb +1 -1
  25. data/lib/harbor2_legacy_client/models/labels.rb +1 -1
  26. data/lib/harbor2_legacy_client/models/namespace.rb +1 -1
  27. data/lib/harbor2_legacy_client/models/not_found_chart_api_error.rb +1 -1
  28. data/lib/harbor2_legacy_client/models/permission.rb +1 -1
  29. data/lib/harbor2_legacy_client/models/unauthorized_chart_api_error.rb +1 -1
  30. data/lib/harbor2_legacy_client/version.rb +2 -2
  31. data/lib/harbor2_legacy_client.rb +1 -102
  32. data/spec/api/chart_repository_api_spec.rb +1 -1
  33. data/spec/api/label_api_spec.rb +1 -1
  34. data/spec/api/products_api_spec.rb +1 -1403
  35. data/spec/api_client_spec.rb +1 -1
  36. data/spec/configuration_spec.rb +1 -1
  37. data/spec/models/bad_request_formated_error_spec.rb +1 -1
  38. data/spec/models/chart_api_error_spec.rb +1 -1
  39. data/spec/models/chart_metadata_spec.rb +1 -1
  40. data/spec/models/chart_version_spec.rb +1 -1
  41. data/spec/models/component_overview_entry_spec.rb +1 -1
  42. data/spec/models/conflict_formated_error_spec.rb +1 -1
  43. data/spec/models/email_server_setting_spec.rb +1 -1
  44. data/spec/models/forbidden_chart_api_error_spec.rb +1 -1
  45. data/spec/models/insufficient_storage_chart_api_error_spec.rb +1 -1
  46. data/spec/models/internal_chart_api_error_spec.rb +1 -1
  47. data/spec/models/label_spec.rb +1 -1
  48. data/spec/models/labels_spec.rb +1 -1
  49. data/spec/models/namespace_spec.rb +1 -1
  50. data/spec/models/not_found_chart_api_error_spec.rb +1 -1
  51. data/spec/models/permission_spec.rb +1 -1
  52. data/spec/models/unauthorized_chart_api_error_spec.rb +1 -1
  53. data/spec/spec_helper.rb +1 -1
  54. metadata +10 -413
  55. data/docs/Action.md +0 -8
  56. data/docs/Action1.md +0 -8
  57. data/docs/AdminJobSchedule.md +0 -9
  58. data/docs/AdminJobScheduleObj.md +0 -9
  59. data/docs/BoolConfigItem.md +0 -9
  60. data/docs/CVEAllowlist.md +0 -11
  61. data/docs/CVEAllowlistItem.md +0 -8
  62. data/docs/ComponentHealthStatus.md +0 -10
  63. data/docs/Configurations.md +0 -42
  64. data/docs/ConfigurationsResponse.md +0 -41
  65. data/docs/ConfigurationsScanAllPolicy.md +0 -9
  66. data/docs/ConfigurationsScanAllPolicyParameter.md +0 -8
  67. data/docs/Endpoint.md +0 -9
  68. data/docs/EventType.md +0 -7
  69. data/docs/FilterStyle.md +0 -10
  70. data/docs/GCResult.md +0 -16
  71. data/docs/GeneralInfo.md +0 -16
  72. data/docs/InputSecret.md +0 -8
  73. data/docs/IntegerConfigItem.md +0 -9
  74. data/docs/IsDefault.md +0 -8
  75. data/docs/LdapConf.md +0 -15
  76. data/docs/LdapFailedImportUsers.md +0 -9
  77. data/docs/LdapImportUsers.md +0 -8
  78. data/docs/LdapUsers.md +0 -10
  79. data/docs/NotifyType.md +0 -7
  80. data/docs/OverallHealthStatus.md +0 -9
  81. data/docs/Password.md +0 -9
  82. data/docs/PingRegistry.md +0 -14
  83. data/docs/Project.md +0 -22
  84. data/docs/ProjectMember.md +0 -10
  85. data/docs/ProjectMemberEntity.md +0 -14
  86. data/docs/ProjectMetadata.md +0 -13
  87. data/docs/ProjectReq.md +0 -13
  88. data/docs/ProjectScanner.md +0 -8
  89. data/docs/ProjectSummary.md +0 -15
  90. data/docs/ProjectSummaryQuota.md +0 -9
  91. data/docs/PutRegistry.md +0 -14
  92. data/docs/Quota.md +0 -13
  93. data/docs/QuotaApi.md +0 -118
  94. data/docs/QuotaRefObject.md +0 -7
  95. data/docs/QuotaSwitcher.md +0 -8
  96. data/docs/QuotaUpdateReq.md +0 -8
  97. data/docs/Registry.md +0 -17
  98. data/docs/RegistryCredential.md +0 -10
  99. data/docs/RegistryInfo.md +0 -11
  100. data/docs/ReplicationExecution.md +0 -19
  101. data/docs/ReplicationFilter.md +0 -9
  102. data/docs/ReplicationPolicy.md +0 -20
  103. data/docs/ReplicationTask.md +0 -16
  104. data/docs/ReplicationTrigger.md +0 -9
  105. data/docs/ResourceList.md +0 -7
  106. data/docs/RetentionApi.md +0 -449
  107. data/docs/RetentionExecution.md +0 -14
  108. data/docs/RetentionExecutionTask.md +0 -18
  109. data/docs/RetentionMetadata.md +0 -10
  110. data/docs/RetentionPolicy.md +0 -12
  111. data/docs/RetentionPolicyScope.md +0 -9
  112. data/docs/RetentionRule.md +0 -15
  113. data/docs/RetentionRuleMetadata.md +0 -11
  114. data/docs/RetentionRuleParamMetadata.md +0 -10
  115. data/docs/RetentionRuleTrigger.md +0 -10
  116. data/docs/RetentionSelector.md +0 -11
  117. data/docs/RetentionSelectorMetadata.md +0 -10
  118. data/docs/RobotAccount.md +0 -15
  119. data/docs/RobotAccountAccess.md +0 -9
  120. data/docs/RobotAccountApi.md +0 -291
  121. data/docs/RobotAccountCreate.md +0 -11
  122. data/docs/RobotAccountPostRep.md +0 -9
  123. data/docs/RobotAccountUpdate.md +0 -8
  124. data/docs/Role.md +0 -11
  125. data/docs/RoleParam.md +0 -9
  126. data/docs/RoleRequest.md +0 -8
  127. data/docs/ScanApi.md +0 -104
  128. data/docs/Scanner.md +0 -10
  129. data/docs/ScannerAdapterMetadata.md +0 -10
  130. data/docs/ScannerCapability.md +0 -9
  131. data/docs/ScannerRegistration.md +0 -21
  132. data/docs/ScannerRegistrationReq.md +0 -15
  133. data/docs/ScannerRegistrationSettings.md +0 -11
  134. data/docs/ScannersApi.md +0 -600
  135. data/docs/Search.md +0 -10
  136. data/docs/SearchRepository.md +0 -13
  137. data/docs/SearchResult.md +0 -10
  138. data/docs/StatisticMap.md +0 -13
  139. data/docs/Stats.md +0 -12
  140. data/docs/Storage.md +0 -9
  141. data/docs/StringConfigItem.md +0 -9
  142. data/docs/SupportedWebhookEventTypes.md +0 -9
  143. data/docs/SysAdminFlag.md +0 -8
  144. data/docs/SystemApi.md +0 -163
  145. data/docs/SystemInfo.md +0 -8
  146. data/docs/TriggerSettings.md +0 -8
  147. data/docs/User.md +0 -22
  148. data/docs/UserEntity.md +0 -9
  149. data/docs/UserGroup.md +0 -11
  150. data/docs/UserProfile.md +0 -10
  151. data/docs/UserSearch.md +0 -9
  152. data/docs/WebhookJob.md +0 -15
  153. data/docs/WebhookLastTrigger.md +0 -11
  154. data/docs/WebhookPolicy.md +0 -17
  155. data/docs/WebhookTargetObject.md +0 -11
  156. data/lib/harbor2_legacy_client/api/quota_api.rb +0 -136
  157. data/lib/harbor2_legacy_client/api/retention_api.rb +0 -482
  158. data/lib/harbor2_legacy_client/api/robot_account_api.rb +0 -321
  159. data/lib/harbor2_legacy_client/api/scan_api.rb +0 -119
  160. data/lib/harbor2_legacy_client/api/scanners_api.rb +0 -624
  161. data/lib/harbor2_legacy_client/api/system_api.rb +0 -173
  162. data/lib/harbor2_legacy_client/models/action.rb +0 -184
  163. data/lib/harbor2_legacy_client/models/action_1.rb +0 -184
  164. data/lib/harbor2_legacy_client/models/admin_job_schedule.rb +0 -196
  165. data/lib/harbor2_legacy_client/models/admin_job_schedule_obj.rb +0 -195
  166. data/lib/harbor2_legacy_client/models/bool_config_item.rb +0 -195
  167. data/lib/harbor2_legacy_client/models/component_health_status.rb +0 -206
  168. data/lib/harbor2_legacy_client/models/configurations.rb +0 -524
  169. data/lib/harbor2_legacy_client/models/configurations_response.rb +0 -514
  170. data/lib/harbor2_legacy_client/models/configurations_scan_all_policy.rb +0 -194
  171. data/lib/harbor2_legacy_client/models/configurations_scan_all_policy_parameter.rb +0 -186
  172. data/lib/harbor2_legacy_client/models/cve_allowlist.rb +0 -217
  173. data/lib/harbor2_legacy_client/models/cve_allowlist_item.rb +0 -186
  174. data/lib/harbor2_legacy_client/models/endpoint.rb +0 -195
  175. data/lib/harbor2_legacy_client/models/event_type.rb +0 -176
  176. data/lib/harbor2_legacy_client/models/filter_style.rb +0 -208
  177. data/lib/harbor2_legacy_client/models/gc_result.rb +0 -264
  178. data/lib/harbor2_legacy_client/models/general_info.rb +0 -265
  179. data/lib/harbor2_legacy_client/models/input_secret.rb +0 -185
  180. data/lib/harbor2_legacy_client/models/integer_config_item.rb +0 -195
  181. data/lib/harbor2_legacy_client/models/is_default.rb +0 -185
  182. data/lib/harbor2_legacy_client/models/ldap_conf.rb +0 -255
  183. data/lib/harbor2_legacy_client/models/ldap_failed_import_users.rb +0 -195
  184. data/lib/harbor2_legacy_client/models/ldap_import_users.rb +0 -187
  185. data/lib/harbor2_legacy_client/models/ldap_users.rb +0 -205
  186. data/lib/harbor2_legacy_client/models/notify_type.rb +0 -176
  187. data/lib/harbor2_legacy_client/models/overall_health_status.rb +0 -197
  188. data/lib/harbor2_legacy_client/models/password.rb +0 -195
  189. data/lib/harbor2_legacy_client/models/ping_registry.rb +0 -245
  190. data/lib/harbor2_legacy_client/models/project.rb +0 -327
  191. data/lib/harbor2_legacy_client/models/project_member.rb +0 -203
  192. data/lib/harbor2_legacy_client/models/project_member_entity.rb +0 -245
  193. data/lib/harbor2_legacy_client/models/project_metadata.rb +0 -235
  194. data/lib/harbor2_legacy_client/models/project_req.rb +0 -235
  195. data/lib/harbor2_legacy_client/models/project_scanner.rb +0 -185
  196. data/lib/harbor2_legacy_client/models/project_summary.rb +0 -253
  197. data/lib/harbor2_legacy_client/models/project_summary_quota.rb +0 -195
  198. data/lib/harbor2_legacy_client/models/put_registry.rb +0 -245
  199. data/lib/harbor2_legacy_client/models/quota.rb +0 -236
  200. data/lib/harbor2_legacy_client/models/quota_ref_object.rb +0 -175
  201. data/lib/harbor2_legacy_client/models/quota_switcher.rb +0 -185
  202. data/lib/harbor2_legacy_client/models/quota_update_req.rb +0 -185
  203. data/lib/harbor2_legacy_client/models/registry.rb +0 -274
  204. data/lib/harbor2_legacy_client/models/registry_credential.rb +0 -205
  205. data/lib/harbor2_legacy_client/models/registry_info.rb +0 -220
  206. data/lib/harbor2_legacy_client/models/replication_execution.rb +0 -296
  207. data/lib/harbor2_legacy_client/models/replication_filter.rb +0 -195
  208. data/lib/harbor2_legacy_client/models/replication_policy.rb +0 -306
  209. data/lib/harbor2_legacy_client/models/replication_task.rb +0 -266
  210. data/lib/harbor2_legacy_client/models/replication_trigger.rb +0 -194
  211. data/lib/harbor2_legacy_client/models/resource_list.rb +0 -175
  212. data/lib/harbor2_legacy_client/models/retention_execution.rb +0 -238
  213. data/lib/harbor2_legacy_client/models/retention_execution_task.rb +0 -274
  214. data/lib/harbor2_legacy_client/models/retention_metadata.rb +0 -212
  215. data/lib/harbor2_legacy_client/models/retention_policy.rb +0 -223
  216. data/lib/harbor2_legacy_client/models/retention_policy_scope.rb +0 -193
  217. data/lib/harbor2_legacy_client/models/retention_rule.rb +0 -253
  218. data/lib/harbor2_legacy_client/models/retention_rule_metadata.rb +0 -218
  219. data/lib/harbor2_legacy_client/models/retention_rule_param_metadata.rb +0 -203
  220. data/lib/harbor2_legacy_client/models/retention_rule_trigger.rb +0 -202
  221. data/lib/harbor2_legacy_client/models/retention_selector.rb +0 -211
  222. data/lib/harbor2_legacy_client/models/retention_selector_metadata.rb +0 -205
  223. data/lib/harbor2_legacy_client/models/robot_account.rb +0 -256
  224. data/lib/harbor2_legacy_client/models/robot_account_access.rb +0 -195
  225. data/lib/harbor2_legacy_client/models/robot_account_create.rb +0 -217
  226. data/lib/harbor2_legacy_client/models/robot_account_post_rep.rb +0 -195
  227. data/lib/harbor2_legacy_client/models/robot_account_update.rb +0 -185
  228. data/lib/harbor2_legacy_client/models/role.rb +0 -214
  229. data/lib/harbor2_legacy_client/models/role_param.rb +0 -197
  230. data/lib/harbor2_legacy_client/models/role_request.rb +0 -185
  231. data/lib/harbor2_legacy_client/models/scanner.rb +0 -205
  232. data/lib/harbor2_legacy_client/models/scanner_adapter_metadata.rb +0 -207
  233. data/lib/harbor2_legacy_client/models/scanner_capability.rb +0 -197
  234. data/lib/harbor2_legacy_client/models/scanner_registration.rb +0 -328
  235. data/lib/harbor2_legacy_client/models/scanner_registration_req.rb +0 -263
  236. data/lib/harbor2_legacy_client/models/scanner_registration_settings.rb +0 -217
  237. data/lib/harbor2_legacy_client/models/search.rb +0 -211
  238. data/lib/harbor2_legacy_client/models/search_repository.rb +0 -235
  239. data/lib/harbor2_legacy_client/models/search_result.rb +0 -205
  240. data/lib/harbor2_legacy_client/models/statistic_map.rb +0 -235
  241. data/lib/harbor2_legacy_client/models/stats.rb +0 -228
  242. data/lib/harbor2_legacy_client/models/storage.rb +0 -195
  243. data/lib/harbor2_legacy_client/models/string_config_item.rb +0 -195
  244. data/lib/harbor2_legacy_client/models/supported_webhook_event_types.rb +0 -198
  245. data/lib/harbor2_legacy_client/models/sys_admin_flag.rb +0 -185
  246. data/lib/harbor2_legacy_client/models/system_info.rb +0 -187
  247. data/lib/harbor2_legacy_client/models/trigger_settings.rb +0 -185
  248. data/lib/harbor2_legacy_client/models/user.rb +0 -312
  249. data/lib/harbor2_legacy_client/models/user_entity.rb +0 -195
  250. data/lib/harbor2_legacy_client/models/user_group.rb +0 -215
  251. data/lib/harbor2_legacy_client/models/user_profile.rb +0 -205
  252. data/lib/harbor2_legacy_client/models/user_search.rb +0 -194
  253. data/lib/harbor2_legacy_client/models/webhook_job.rb +0 -256
  254. data/lib/harbor2_legacy_client/models/webhook_last_trigger.rb +0 -216
  255. data/lib/harbor2_legacy_client/models/webhook_policy.rb +0 -278
  256. data/lib/harbor2_legacy_client/models/webhook_target_object.rb +0 -216
  257. data/spec/api/quota_api_spec.rb +0 -60
  258. data/spec/api/retention_api_spec.rb +0 -136
  259. data/spec/api/robot_account_api_spec.rb +0 -100
  260. data/spec/api/scan_api_spec.rb +0 -57
  261. data/spec/api/scanners_api_spec.rb +0 -169
  262. data/spec/api/system_api_spec.rb +0 -70
  263. data/spec/models/action_1_spec.rb +0 -41
  264. data/spec/models/action_spec.rb +0 -41
  265. data/spec/models/admin_job_schedule_obj_spec.rb +0 -47
  266. data/spec/models/admin_job_schedule_spec.rb +0 -47
  267. data/spec/models/bool_config_item_spec.rb +0 -47
  268. data/spec/models/component_health_status_spec.rb +0 -53
  269. data/spec/models/configurations_response_spec.rb +0 -239
  270. data/spec/models/configurations_scan_all_policy_parameter_spec.rb +0 -41
  271. data/spec/models/configurations_scan_all_policy_spec.rb +0 -47
  272. data/spec/models/configurations_spec.rb +0 -245
  273. data/spec/models/cve_allowlist_item_spec.rb +0 -41
  274. data/spec/models/cve_allowlist_spec.rb +0 -59
  275. data/spec/models/endpoint_spec.rb +0 -47
  276. data/spec/models/event_type_spec.rb +0 -35
  277. data/spec/models/filter_style_spec.rb +0 -53
  278. data/spec/models/gc_result_spec.rb +0 -89
  279. data/spec/models/general_info_spec.rb +0 -89
  280. data/spec/models/input_secret_spec.rb +0 -41
  281. data/spec/models/integer_config_item_spec.rb +0 -47
  282. data/spec/models/is_default_spec.rb +0 -41
  283. data/spec/models/ldap_conf_spec.rb +0 -83
  284. data/spec/models/ldap_failed_import_users_spec.rb +0 -47
  285. data/spec/models/ldap_import_users_spec.rb +0 -41
  286. data/spec/models/ldap_users_spec.rb +0 -53
  287. data/spec/models/notify_type_spec.rb +0 -35
  288. data/spec/models/overall_health_status_spec.rb +0 -47
  289. data/spec/models/password_spec.rb +0 -47
  290. data/spec/models/ping_registry_spec.rb +0 -77
  291. data/spec/models/project_member_entity_spec.rb +0 -77
  292. data/spec/models/project_member_spec.rb +0 -53
  293. data/spec/models/project_metadata_spec.rb +0 -71
  294. data/spec/models/project_req_spec.rb +0 -71
  295. data/spec/models/project_scanner_spec.rb +0 -41
  296. data/spec/models/project_spec.rb +0 -125
  297. data/spec/models/project_summary_quota_spec.rb +0 -47
  298. data/spec/models/project_summary_spec.rb +0 -83
  299. data/spec/models/put_registry_spec.rb +0 -77
  300. data/spec/models/quota_ref_object_spec.rb +0 -35
  301. data/spec/models/quota_spec.rb +0 -71
  302. data/spec/models/quota_switcher_spec.rb +0 -41
  303. data/spec/models/quota_update_req_spec.rb +0 -41
  304. data/spec/models/registry_credential_spec.rb +0 -53
  305. data/spec/models/registry_info_spec.rb +0 -59
  306. data/spec/models/registry_spec.rb +0 -95
  307. data/spec/models/replication_execution_spec.rb +0 -107
  308. data/spec/models/replication_filter_spec.rb +0 -47
  309. data/spec/models/replication_policy_spec.rb +0 -113
  310. data/spec/models/replication_task_spec.rb +0 -89
  311. data/spec/models/replication_trigger_spec.rb +0 -47
  312. data/spec/models/resource_list_spec.rb +0 -35
  313. data/spec/models/retention_execution_spec.rb +0 -77
  314. data/spec/models/retention_execution_task_spec.rb +0 -101
  315. data/spec/models/retention_metadata_spec.rb +0 -53
  316. data/spec/models/retention_policy_scope_spec.rb +0 -47
  317. data/spec/models/retention_policy_spec.rb +0 -65
  318. data/spec/models/retention_rule_metadata_spec.rb +0 -59
  319. data/spec/models/retention_rule_param_metadata_spec.rb +0 -53
  320. data/spec/models/retention_rule_spec.rb +0 -83
  321. data/spec/models/retention_rule_trigger_spec.rb +0 -53
  322. data/spec/models/retention_selector_metadata_spec.rb +0 -53
  323. data/spec/models/retention_selector_spec.rb +0 -59
  324. data/spec/models/robot_account_access_spec.rb +0 -47
  325. data/spec/models/robot_account_create_spec.rb +0 -59
  326. data/spec/models/robot_account_post_rep_spec.rb +0 -47
  327. data/spec/models/robot_account_spec.rb +0 -83
  328. data/spec/models/robot_account_update_spec.rb +0 -41
  329. data/spec/models/role_param_spec.rb +0 -47
  330. data/spec/models/role_request_spec.rb +0 -41
  331. data/spec/models/role_spec.rb +0 -59
  332. data/spec/models/scanner_adapter_metadata_spec.rb +0 -53
  333. data/spec/models/scanner_capability_spec.rb +0 -47
  334. data/spec/models/scanner_registration_req_spec.rb +0 -83
  335. data/spec/models/scanner_registration_settings_spec.rb +0 -59
  336. data/spec/models/scanner_registration_spec.rb +0 -119
  337. data/spec/models/scanner_spec.rb +0 -53
  338. data/spec/models/search_repository_spec.rb +0 -71
  339. data/spec/models/search_result_spec.rb +0 -53
  340. data/spec/models/search_spec.rb +0 -53
  341. data/spec/models/statistic_map_spec.rb +0 -71
  342. data/spec/models/stats_spec.rb +0 -65
  343. data/spec/models/storage_spec.rb +0 -47
  344. data/spec/models/string_config_item_spec.rb +0 -47
  345. data/spec/models/supported_webhook_event_types_spec.rb +0 -47
  346. data/spec/models/sys_admin_flag_spec.rb +0 -41
  347. data/spec/models/system_info_spec.rb +0 -41
  348. data/spec/models/trigger_settings_spec.rb +0 -41
  349. data/spec/models/user_entity_spec.rb +0 -47
  350. data/spec/models/user_group_spec.rb +0 -59
  351. data/spec/models/user_profile_spec.rb +0 -53
  352. data/spec/models/user_search_spec.rb +0 -47
  353. data/spec/models/user_spec.rb +0 -125
  354. data/spec/models/webhook_job_spec.rb +0 -83
  355. data/spec/models/webhook_last_trigger_spec.rb +0 -59
  356. data/spec/models/webhook_policy_spec.rb +0 -95
  357. data/spec/models/webhook_target_object_spec.rb +0 -59
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 2.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.4.17
9
+ Swagger Codegen version: 2.4.22
10
10
 
11
11
  =end
12
12
 
@@ -76,29 +76,6 @@ describe 'ProductsApi' do
76
76
  end
77
77
  end
78
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
79
  # unit tests for email_ping_post
103
80
  # Test connection and authentication with email server.
104
81
  # Test connection and authentication with email server.
@@ -111,1383 +88,4 @@ describe 'ProductsApi' do
111
88
  end
112
89
  end
113
90
 
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
91
  end