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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 480de128f9f2f527b714e5cec58199337f695530f93e840e9c1339ef8a576e89
4
- data.tar.gz: b8bc8b0bf1125c2b91e9a88006687d24cd69daf835298900c2a9dcaec7fab3d1
3
+ metadata.gz: f9f6f18ef6af17fc568f606e0ae6d2b9c0f73aaa9410eb9283fb9e23c4f6d5ec
4
+ data.tar.gz: 4bb1eaa51e55e15c3316e351ca3ff8b111d0819cf55759cac2cd95a59994cf68
5
5
  SHA512:
6
- metadata.gz: 50766268dbb1bf2a8fcc5ce4f3e37f718f8cac9b559853c9ec2c2787ef605703747b608e73c17c37d50e4138f1747b5b21feec43bdd3f2c64e0b62ff25528c6e
7
- data.tar.gz: 2ac33d48e54cc87358988ba82aa6e527d1bf32e147ffe4bbd8013118dd578bcae9555ab03afd61e75b371581dec6f5c36d774dbd9697686ccd0d3275edc65e84
6
+ metadata.gz: dcbb49122051eb0a88461e2152c42034bac8a0e831df4eda1e5d003e25b4c4afe605a2ab0c9e97fd2f3233dbb63b76f48a225fe7069df779e464b45b930d2209
7
+ data.tar.gz: 2387e7c708f671ee8869ff8522d5279418bc5c5f47132f035c21a4be1d181323742d511a4946428f5162c8cfb7e78950cbfab82cd16de4d3fbe79af19f4a7fc8
data/README.md CHANGED
@@ -1,13 +1,13 @@
1
1
  # harbor2_legacy_client
2
2
 
3
- Harbor2LegacyClient - the Ruby gem for the [Harbor 2 legacy API](https://github.com/goharbor/harbor/blob/master/api/v2.0/legacy_swagger.yaml).
3
+ Harbor2LegacyClient - the Ruby gem for the Harbor API
4
4
 
5
- These APIs provide services for manipulating Harbor projects.
5
+ These APIs provide services for manipulating Harbor project.
6
6
 
7
7
  This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
8
8
 
9
9
  - API version: 2.0
10
- - Package version: 0.1.0
10
+ - Package version: 2.3.3.1
11
11
  - Build package: io.swagger.codegen.languages.RubyClientCodegen
12
12
 
13
13
  ## Installation
@@ -23,21 +23,21 @@ gem build harbor2_legacy_client.gemspec
23
23
  Then either install the gem locally:
24
24
 
25
25
  ```shell
26
- gem install ./harbor2_legacy_client-0.1.0.gem
26
+ gem install ./harbor2_legacy_client-2.3.3.1.gem
27
27
  ```
28
- (for development, run `gem install --dev ./harbor2_legacy_client-0.1.0.gem` to install the development dependencies)
28
+ (for development, run `gem install --dev ./harbor2_legacy_client-2.3.3.1.gem` to install the development dependencies)
29
29
 
30
30
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
31
31
 
32
32
  Finally add this to the Gemfile:
33
33
 
34
- gem 'harbor2_legacy_client', '~> 0.1.0'
34
+ gem 'harbor2_legacy_client', '~> 2.3.3.1'
35
35
 
36
36
  ### Install from Git
37
37
 
38
- If the Ruby gem is hosted at a git repository: https://github.com/YOUR_GIT_USERNAME/YOUR_GIT_REPO, then add the following in the Gemfile:
38
+ If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:
39
39
 
40
- gem 'harbor2_legacy_client', :git => 'https://github.com/YOUR_GIT_USERNAME/YOUR_GIT_REPO.git'
40
+ gem 'harbor2_legacy_client', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'
41
41
 
42
42
  ### Include the Ruby code directly
43
43
 
@@ -94,266 +94,27 @@ Class | Method | HTTP request | Description
94
94
  *Harbor2LegacyClient::ProductsApi* | [**chartrepo_repo_charts_name_version_labels_get**](docs/ProductsApi.md#chartrepo_repo_charts_name_version_labels_get) | **GET** /chartrepo/{repo}/charts/{name}/{version}/labels | Return the attahced labels of chart.
95
95
  *Harbor2LegacyClient::ProductsApi* | [**chartrepo_repo_charts_name_version_labels_id_delete**](docs/ProductsApi.md#chartrepo_repo_charts_name_version_labels_id_delete) | **DELETE** /chartrepo/{repo}/charts/{name}/{version}/labels/{id} | Remove label from chart.
96
96
  *Harbor2LegacyClient::ProductsApi* | [**chartrepo_repo_charts_name_version_labels_post**](docs/ProductsApi.md#chartrepo_repo_charts_name_version_labels_post) | **POST** /chartrepo/{repo}/charts/{name}/{version}/labels | Mark label to chart.
97
- *Harbor2LegacyClient::ProductsApi* | [**configurations_get**](docs/ProductsApi.md#configurations_get) | **GET** /configurations | Get system configurations.
98
- *Harbor2LegacyClient::ProductsApi* | [**configurations_put**](docs/ProductsApi.md#configurations_put) | **PUT** /configurations | Modify system configurations.
99
97
  *Harbor2LegacyClient::ProductsApi* | [**email_ping_post**](docs/ProductsApi.md#email_ping_post) | **POST** /email/ping | Test connection and authentication with email server.
100
- *Harbor2LegacyClient::ProductsApi* | [**health_get**](docs/ProductsApi.md#health_get) | **GET** /health | Health check API
101
- *Harbor2LegacyClient::ProductsApi* | [**labels_get**](docs/ProductsApi.md#labels_get) | **GET** /labels | List labels according to the query strings.
102
- *Harbor2LegacyClient::ProductsApi* | [**labels_id_delete**](docs/ProductsApi.md#labels_id_delete) | **DELETE** /labels/{id} | Delete the label specified by ID.
103
- *Harbor2LegacyClient::ProductsApi* | [**labels_id_get**](docs/ProductsApi.md#labels_id_get) | **GET** /labels/{id} | Get the label specified by ID.
104
- *Harbor2LegacyClient::ProductsApi* | [**labels_id_put**](docs/ProductsApi.md#labels_id_put) | **PUT** /labels/{id} | Update the label properties.
105
- *Harbor2LegacyClient::ProductsApi* | [**labels_post**](docs/ProductsApi.md#labels_post) | **POST** /labels | Post creates a label
106
- *Harbor2LegacyClient::ProductsApi* | [**ldap_groups_search_get**](docs/ProductsApi.md#ldap_groups_search_get) | **GET** /ldap/groups/search | Search available ldap groups.
107
- *Harbor2LegacyClient::ProductsApi* | [**ldap_ping_post**](docs/ProductsApi.md#ldap_ping_post) | **POST** /ldap/ping | Ping available ldap service.
108
- *Harbor2LegacyClient::ProductsApi* | [**ldap_users_import_post**](docs/ProductsApi.md#ldap_users_import_post) | **POST** /ldap/users/import | Import selected available ldap users.
109
- *Harbor2LegacyClient::ProductsApi* | [**ldap_users_search_get**](docs/ProductsApi.md#ldap_users_search_get) | **GET** /ldap/users/search | Search available ldap users.
110
- *Harbor2LegacyClient::ProductsApi* | [**projects_project_id_immutabletagrules_get**](docs/ProductsApi.md#projects_project_id_immutabletagrules_get) | **GET** /projects/{project_id}/immutabletagrules | List all immutable tag rules of current project
111
- *Harbor2LegacyClient::ProductsApi* | [**projects_project_id_immutabletagrules_id_delete**](docs/ProductsApi.md#projects_project_id_immutabletagrules_id_delete) | **DELETE** /projects/{project_id}/immutabletagrules/{id} | Delete the immutable tag rule.
112
- *Harbor2LegacyClient::ProductsApi* | [**projects_project_id_immutabletagrules_id_put**](docs/ProductsApi.md#projects_project_id_immutabletagrules_id_put) | **PUT** /projects/{project_id}/immutabletagrules/{id} | Update the immutable tag rule or enable or disable the rule
113
- *Harbor2LegacyClient::ProductsApi* | [**projects_project_id_immutabletagrules_post**](docs/ProductsApi.md#projects_project_id_immutabletagrules_post) | **POST** /projects/{project_id}/immutabletagrules | Add an immutable tag rule to current project
114
- *Harbor2LegacyClient::ProductsApi* | [**projects_project_id_members_get**](docs/ProductsApi.md#projects_project_id_members_get) | **GET** /projects/{project_id}/members | Get all project member information
115
- *Harbor2LegacyClient::ProductsApi* | [**projects_project_id_members_mid_delete**](docs/ProductsApi.md#projects_project_id_members_mid_delete) | **DELETE** /projects/{project_id}/members/{mid} | Delete project member
116
- *Harbor2LegacyClient::ProductsApi* | [**projects_project_id_members_mid_get**](docs/ProductsApi.md#projects_project_id_members_mid_get) | **GET** /projects/{project_id}/members/{mid} | Get the project member information
117
- *Harbor2LegacyClient::ProductsApi* | [**projects_project_id_members_mid_put**](docs/ProductsApi.md#projects_project_id_members_mid_put) | **PUT** /projects/{project_id}/members/{mid} | Update project member
118
- *Harbor2LegacyClient::ProductsApi* | [**projects_project_id_members_post**](docs/ProductsApi.md#projects_project_id_members_post) | **POST** /projects/{project_id}/members | Create project member
119
- *Harbor2LegacyClient::ProductsApi* | [**projects_project_id_metadatas_get**](docs/ProductsApi.md#projects_project_id_metadatas_get) | **GET** /projects/{project_id}/metadatas | Get project metadata.
120
- *Harbor2LegacyClient::ProductsApi* | [**projects_project_id_metadatas_meta_name_delete**](docs/ProductsApi.md#projects_project_id_metadatas_meta_name_delete) | **DELETE** /projects/{project_id}/metadatas/{meta_name} | Delete metadata of a project
121
- *Harbor2LegacyClient::ProductsApi* | [**projects_project_id_metadatas_meta_name_get**](docs/ProductsApi.md#projects_project_id_metadatas_meta_name_get) | **GET** /projects/{project_id}/metadatas/{meta_name} | Get project metadata
122
- *Harbor2LegacyClient::ProductsApi* | [**projects_project_id_metadatas_meta_name_put**](docs/ProductsApi.md#projects_project_id_metadatas_meta_name_put) | **PUT** /projects/{project_id}/metadatas/{meta_name} | Update metadata of a project.
123
- *Harbor2LegacyClient::ProductsApi* | [**projects_project_id_metadatas_post**](docs/ProductsApi.md#projects_project_id_metadatas_post) | **POST** /projects/{project_id}/metadatas | Add metadata for the project.
124
- *Harbor2LegacyClient::ProductsApi* | [**projects_project_id_robots_get**](docs/ProductsApi.md#projects_project_id_robots_get) | **GET** /projects/{project_id}/robots | Get all robot accounts of specified project
125
- *Harbor2LegacyClient::ProductsApi* | [**projects_project_id_robots_post**](docs/ProductsApi.md#projects_project_id_robots_post) | **POST** /projects/{project_id}/robots | Create a robot account for project
126
- *Harbor2LegacyClient::ProductsApi* | [**projects_project_id_robots_robot_id_delete**](docs/ProductsApi.md#projects_project_id_robots_robot_id_delete) | **DELETE** /projects/{project_id}/robots/{robot_id} | Delete the specified robot account
127
- *Harbor2LegacyClient::ProductsApi* | [**projects_project_id_robots_robot_id_get**](docs/ProductsApi.md#projects_project_id_robots_robot_id_get) | **GET** /projects/{project_id}/robots/{robot_id} | Return the infor of the specified robot account.
128
- *Harbor2LegacyClient::ProductsApi* | [**projects_project_id_robots_robot_id_put**](docs/ProductsApi.md#projects_project_id_robots_robot_id_put) | **PUT** /projects/{project_id}/robots/{robot_id} | Update status of robot account.
129
- *Harbor2LegacyClient::ProductsApi* | [**projects_project_id_scanner_candidates_get**](docs/ProductsApi.md#projects_project_id_scanner_candidates_get) | **GET** /projects/{project_id}/scanner/candidates | Get scanner registration candidates for configurating project level scanner
130
- *Harbor2LegacyClient::ProductsApi* | [**projects_project_id_scanner_get**](docs/ProductsApi.md#projects_project_id_scanner_get) | **GET** /projects/{project_id}/scanner | Get project level scanner
131
- *Harbor2LegacyClient::ProductsApi* | [**projects_project_id_webhook_events_get**](docs/ProductsApi.md#projects_project_id_webhook_events_get) | **GET** /projects/{project_id}/webhook/events | Get supported event types and notify types.
132
- *Harbor2LegacyClient::ProductsApi* | [**projects_project_id_webhook_jobs_get**](docs/ProductsApi.md#projects_project_id_webhook_jobs_get) | **GET** /projects/{project_id}/webhook/jobs | List project webhook jobs
133
- *Harbor2LegacyClient::ProductsApi* | [**projects_project_id_webhook_lasttrigger_get**](docs/ProductsApi.md#projects_project_id_webhook_lasttrigger_get) | **GET** /projects/{project_id}/webhook/lasttrigger | Get project webhook policy last trigger info
134
- *Harbor2LegacyClient::ProductsApi* | [**projects_project_id_webhook_policies_get**](docs/ProductsApi.md#projects_project_id_webhook_policies_get) | **GET** /projects/{project_id}/webhook/policies | List project webhook policies.
135
- *Harbor2LegacyClient::ProductsApi* | [**projects_project_id_webhook_policies_policy_id_delete**](docs/ProductsApi.md#projects_project_id_webhook_policies_policy_id_delete) | **DELETE** /projects/{project_id}/webhook/policies/{policy_id} | Delete webhook policy of a project
136
- *Harbor2LegacyClient::ProductsApi* | [**projects_project_id_webhook_policies_policy_id_get**](docs/ProductsApi.md#projects_project_id_webhook_policies_policy_id_get) | **GET** /projects/{project_id}/webhook/policies/{policy_id} | Get project webhook policy
137
- *Harbor2LegacyClient::ProductsApi* | [**projects_project_id_webhook_policies_policy_id_put**](docs/ProductsApi.md#projects_project_id_webhook_policies_policy_id_put) | **PUT** /projects/{project_id}/webhook/policies/{policy_id} | Update webhook policy of a project.
138
- *Harbor2LegacyClient::ProductsApi* | [**projects_project_id_webhook_policies_post**](docs/ProductsApi.md#projects_project_id_webhook_policies_post) | **POST** /projects/{project_id}/webhook/policies | Create project webhook policy.
139
- *Harbor2LegacyClient::ProductsApi* | [**projects_project_id_webhook_policies_test_post**](docs/ProductsApi.md#projects_project_id_webhook_policies_test_post) | **POST** /projects/{project_id}/webhook/policies/test | Test project webhook connection
140
- *Harbor2LegacyClient::ProductsApi* | [**quotas_get**](docs/ProductsApi.md#quotas_get) | **GET** /quotas | List quotas
141
- *Harbor2LegacyClient::ProductsApi* | [**quotas_id_get**](docs/ProductsApi.md#quotas_id_get) | **GET** /quotas/{id} | Get the specified quota
142
- *Harbor2LegacyClient::ProductsApi* | [**quotas_id_put**](docs/ProductsApi.md#quotas_id_put) | **PUT** /quotas/{id} | Update the specified quota
143
- *Harbor2LegacyClient::ProductsApi* | [**registries_get**](docs/ProductsApi.md#registries_get) | **GET** /registries | List registries.
144
- *Harbor2LegacyClient::ProductsApi* | [**registries_id_delete**](docs/ProductsApi.md#registries_id_delete) | **DELETE** /registries/{id} | Delete specific registry.
145
- *Harbor2LegacyClient::ProductsApi* | [**registries_id_get**](docs/ProductsApi.md#registries_id_get) | **GET** /registries/{id} | Get registry.
146
- *Harbor2LegacyClient::ProductsApi* | [**registries_id_info_get**](docs/ProductsApi.md#registries_id_info_get) | **GET** /registries/{id}/info | Get registry info.
147
- *Harbor2LegacyClient::ProductsApi* | [**registries_id_namespace_get**](docs/ProductsApi.md#registries_id_namespace_get) | **GET** /registries/{id}/namespace | List namespaces of registry
148
- *Harbor2LegacyClient::ProductsApi* | [**registries_id_put**](docs/ProductsApi.md#registries_id_put) | **PUT** /registries/{id} | Update a given registry.
149
- *Harbor2LegacyClient::ProductsApi* | [**registries_ping_post**](docs/ProductsApi.md#registries_ping_post) | **POST** /registries/ping | Ping status of a registry.
150
- *Harbor2LegacyClient::ProductsApi* | [**registries_post**](docs/ProductsApi.md#registries_post) | **POST** /registries | Create a new registry.
151
- *Harbor2LegacyClient::ProductsApi* | [**replication_adapters_get**](docs/ProductsApi.md#replication_adapters_get) | **GET** /replication/adapters | List supported adapters.
152
- *Harbor2LegacyClient::ProductsApi* | [**replication_executions_get**](docs/ProductsApi.md#replication_executions_get) | **GET** /replication/executions | List replication executions.
153
- *Harbor2LegacyClient::ProductsApi* | [**replication_executions_id_get**](docs/ProductsApi.md#replication_executions_id_get) | **GET** /replication/executions/{id} | Get the execution of the replication.
154
- *Harbor2LegacyClient::ProductsApi* | [**replication_executions_id_put**](docs/ProductsApi.md#replication_executions_id_put) | **PUT** /replication/executions/{id} | Stop the execution of the replication.
155
- *Harbor2LegacyClient::ProductsApi* | [**replication_executions_id_tasks_get**](docs/ProductsApi.md#replication_executions_id_tasks_get) | **GET** /replication/executions/{id}/tasks | Get the task list of one execution.
156
- *Harbor2LegacyClient::ProductsApi* | [**replication_executions_id_tasks_task_id_log_get**](docs/ProductsApi.md#replication_executions_id_tasks_task_id_log_get) | **GET** /replication/executions/{id}/tasks/{task_id}/log | Get the log of one task.
157
- *Harbor2LegacyClient::ProductsApi* | [**replication_executions_post**](docs/ProductsApi.md#replication_executions_post) | **POST** /replication/executions | Start one execution of the replication.
158
- *Harbor2LegacyClient::ProductsApi* | [**replication_policies_get**](docs/ProductsApi.md#replication_policies_get) | **GET** /replication/policies | List replication policies
159
- *Harbor2LegacyClient::ProductsApi* | [**replication_policies_id_delete**](docs/ProductsApi.md#replication_policies_id_delete) | **DELETE** /replication/policies/{id} | Delete the replication policy specified by ID.
160
- *Harbor2LegacyClient::ProductsApi* | [**replication_policies_id_get**](docs/ProductsApi.md#replication_policies_id_get) | **GET** /replication/policies/{id} | Get replication policy.
161
- *Harbor2LegacyClient::ProductsApi* | [**replication_policies_id_put**](docs/ProductsApi.md#replication_policies_id_put) | **PUT** /replication/policies/{id} | Update the replication policy
162
- *Harbor2LegacyClient::ProductsApi* | [**replication_policies_post**](docs/ProductsApi.md#replication_policies_post) | **POST** /replication/policies | Create a replication policy
163
- *Harbor2LegacyClient::ProductsApi* | [**retentions_id_executions_eid_patch**](docs/ProductsApi.md#retentions_id_executions_eid_patch) | **PATCH** /retentions/{id}/executions/{eid} | Stop a Retention job
164
- *Harbor2LegacyClient::ProductsApi* | [**retentions_id_executions_eid_tasks_get**](docs/ProductsApi.md#retentions_id_executions_eid_tasks_get) | **GET** /retentions/{id}/executions/{eid}/tasks | Get Retention job tasks
165
- *Harbor2LegacyClient::ProductsApi* | [**retentions_id_executions_eid_tasks_tid_get**](docs/ProductsApi.md#retentions_id_executions_eid_tasks_tid_get) | **GET** /retentions/{id}/executions/{eid}/tasks/{tid} | Get Retention job task log
166
- *Harbor2LegacyClient::ProductsApi* | [**retentions_id_executions_get**](docs/ProductsApi.md#retentions_id_executions_get) | **GET** /retentions/{id}/executions | Get a Retention job
167
- *Harbor2LegacyClient::ProductsApi* | [**retentions_id_executions_post**](docs/ProductsApi.md#retentions_id_executions_post) | **POST** /retentions/{id}/executions | Trigger a Retention job
168
- *Harbor2LegacyClient::ProductsApi* | [**retentions_id_get**](docs/ProductsApi.md#retentions_id_get) | **GET** /retentions/{id} | Get Retention Policy
169
- *Harbor2LegacyClient::ProductsApi* | [**retentions_id_put**](docs/ProductsApi.md#retentions_id_put) | **PUT** /retentions/{id} | Update Retention Policy
170
- *Harbor2LegacyClient::ProductsApi* | [**retentions_metadatas_get**](docs/ProductsApi.md#retentions_metadatas_get) | **GET** /retentions/metadatas | Get Retention Metadatas
171
- *Harbor2LegacyClient::ProductsApi* | [**retentions_post**](docs/ProductsApi.md#retentions_post) | **POST** /retentions | Create Retention Policy
172
- *Harbor2LegacyClient::ProductsApi* | [**scanners_get**](docs/ProductsApi.md#scanners_get) | **GET** /scanners | List scanner registrations
173
- *Harbor2LegacyClient::ProductsApi* | [**scanners_ping_post**](docs/ProductsApi.md#scanners_ping_post) | **POST** /scanners/ping | Tests scanner registration settings
174
- *Harbor2LegacyClient::ProductsApi* | [**scanners_registration_id_get**](docs/ProductsApi.md#scanners_registration_id_get) | **GET** /scanners/{registration_id} | Get a scanner registration details
175
- *Harbor2LegacyClient::ProductsApi* | [**scanners_registration_id_metadata_get**](docs/ProductsApi.md#scanners_registration_id_metadata_get) | **GET** /scanners/{registration_id}/metadata | Get the metadata of the specified scanner registration
176
- *Harbor2LegacyClient::ProductsApi* | [**scans_all_metrics_get**](docs/ProductsApi.md#scans_all_metrics_get) | **GET** /scans/all/metrics | Get the metrics of the latest scan all process
177
- *Harbor2LegacyClient::ProductsApi* | [**scans_schedule_metrics_get**](docs/ProductsApi.md#scans_schedule_metrics_get) | **GET** /scans/schedule/metrics | Get the metrics of the latest scheduled scan all process
178
- *Harbor2LegacyClient::ProductsApi* | [**search_get**](docs/ProductsApi.md#search_get) | **GET** /search | Search for projects, repositories and helm charts
179
- *Harbor2LegacyClient::ProductsApi* | [**statistics_get**](docs/ProductsApi.md#statistics_get) | **GET** /statistics | Get projects number and repositories number relevant to the user
180
- *Harbor2LegacyClient::ProductsApi* | [**system_cve_allowlist_get**](docs/ProductsApi.md#system_cve_allowlist_get) | **GET** /system/CVEAllowlist | Get the system level allowlist of CVE.
181
- *Harbor2LegacyClient::ProductsApi* | [**system_cve_allowlist_put**](docs/ProductsApi.md#system_cve_allowlist_put) | **PUT** /system/CVEAllowlist | Update the system level allowlist of CVE.
182
- *Harbor2LegacyClient::ProductsApi* | [**system_gc_get**](docs/ProductsApi.md#system_gc_get) | **GET** /system/gc | Get gc results.
183
- *Harbor2LegacyClient::ProductsApi* | [**system_gc_id_get**](docs/ProductsApi.md#system_gc_id_get) | **GET** /system/gc/{id} | Get gc status.
184
- *Harbor2LegacyClient::ProductsApi* | [**system_gc_id_log_get**](docs/ProductsApi.md#system_gc_id_log_get) | **GET** /system/gc/{id}/log | Get gc job log.
185
- *Harbor2LegacyClient::ProductsApi* | [**system_gc_schedule_get**](docs/ProductsApi.md#system_gc_schedule_get) | **GET** /system/gc/schedule | Get gc's schedule.
186
- *Harbor2LegacyClient::ProductsApi* | [**system_gc_schedule_post**](docs/ProductsApi.md#system_gc_schedule_post) | **POST** /system/gc/schedule | Create a gc schedule.
187
- *Harbor2LegacyClient::ProductsApi* | [**system_gc_schedule_put**](docs/ProductsApi.md#system_gc_schedule_put) | **PUT** /system/gc/schedule | Update gc's schedule.
188
- *Harbor2LegacyClient::ProductsApi* | [**system_oidc_ping_post**](docs/ProductsApi.md#system_oidc_ping_post) | **POST** /system/oidc/ping | Test the OIDC endpoint.
189
- *Harbor2LegacyClient::ProductsApi* | [**system_scan_all_schedule_get**](docs/ProductsApi.md#system_scan_all_schedule_get) | **GET** /system/scanAll/schedule | Get scan_all's schedule.
190
- *Harbor2LegacyClient::ProductsApi* | [**system_scan_all_schedule_post**](docs/ProductsApi.md#system_scan_all_schedule_post) | **POST** /system/scanAll/schedule | Create a schedule or a manual trigger for the scan all job.
191
- *Harbor2LegacyClient::ProductsApi* | [**system_scan_all_schedule_put**](docs/ProductsApi.md#system_scan_all_schedule_put) | **PUT** /system/scanAll/schedule | Update scan all's schedule.
192
- *Harbor2LegacyClient::ProductsApi* | [**systeminfo_get**](docs/ProductsApi.md#systeminfo_get) | **GET** /systeminfo | Get general system info
193
- *Harbor2LegacyClient::ProductsApi* | [**systeminfo_getcert_get**](docs/ProductsApi.md#systeminfo_getcert_get) | **GET** /systeminfo/getcert | Get default root certificate.
194
- *Harbor2LegacyClient::ProductsApi* | [**systeminfo_volumes_get**](docs/ProductsApi.md#systeminfo_volumes_get) | **GET** /systeminfo/volumes | Get system volume info (total/free size).
195
- *Harbor2LegacyClient::ProductsApi* | [**usergroups_get**](docs/ProductsApi.md#usergroups_get) | **GET** /usergroups | Get all user groups information
196
- *Harbor2LegacyClient::ProductsApi* | [**usergroups_group_id_delete**](docs/ProductsApi.md#usergroups_group_id_delete) | **DELETE** /usergroups/{group_id} | Delete user group
197
- *Harbor2LegacyClient::ProductsApi* | [**usergroups_group_id_get**](docs/ProductsApi.md#usergroups_group_id_get) | **GET** /usergroups/{group_id} | Get user group information
198
- *Harbor2LegacyClient::ProductsApi* | [**usergroups_group_id_put**](docs/ProductsApi.md#usergroups_group_id_put) | **PUT** /usergroups/{group_id} | Update group information
199
- *Harbor2LegacyClient::ProductsApi* | [**usergroups_post**](docs/ProductsApi.md#usergroups_post) | **POST** /usergroups | Create user group
200
- *Harbor2LegacyClient::ProductsApi* | [**users_current_get**](docs/ProductsApi.md#users_current_get) | **GET** /users/current | Get current user info.
201
- *Harbor2LegacyClient::ProductsApi* | [**users_current_permissions_get**](docs/ProductsApi.md#users_current_permissions_get) | **GET** /users/current/permissions | Get current user permissions.
202
- *Harbor2LegacyClient::ProductsApi* | [**users_get**](docs/ProductsApi.md#users_get) | **GET** /users | Get registered users of Harbor.
203
- *Harbor2LegacyClient::ProductsApi* | [**users_post**](docs/ProductsApi.md#users_post) | **POST** /users | Creates a new user account.
204
- *Harbor2LegacyClient::ProductsApi* | [**users_search_get**](docs/ProductsApi.md#users_search_get) | **GET** /users/search | Search users by username
205
- *Harbor2LegacyClient::ProductsApi* | [**users_user_id_cli_secret_put**](docs/ProductsApi.md#users_user_id_cli_secret_put) | **PUT** /users/{user_id}/cli_secret | Set CLI secret for a user.
206
- *Harbor2LegacyClient::ProductsApi* | [**users_user_id_delete**](docs/ProductsApi.md#users_user_id_delete) | **DELETE** /users/{user_id} | Mark a registered user as be removed.
207
- *Harbor2LegacyClient::ProductsApi* | [**users_user_id_get**](docs/ProductsApi.md#users_user_id_get) | **GET** /users/{user_id} | Get a user's profile.
208
- *Harbor2LegacyClient::ProductsApi* | [**users_user_id_password_put**](docs/ProductsApi.md#users_user_id_password_put) | **PUT** /users/{user_id}/password | Change the password on a user that already exists.
209
- *Harbor2LegacyClient::ProductsApi* | [**users_user_id_put**](docs/ProductsApi.md#users_user_id_put) | **PUT** /users/{user_id} | Update a registered user to change his profile.
210
- *Harbor2LegacyClient::ProductsApi* | [**users_user_id_sysadmin_put**](docs/ProductsApi.md#users_user_id_sysadmin_put) | **PUT** /users/{user_id}/sysadmin | Update a registered user to change to be an administrator of Harbor.
211
- *Harbor2LegacyClient::QuotaApi* | [**quotas_id_get**](docs/QuotaApi.md#quotas_id_get) | **GET** /quotas/{id} | Get the specified quota
212
- *Harbor2LegacyClient::QuotaApi* | [**quotas_id_put**](docs/QuotaApi.md#quotas_id_put) | **PUT** /quotas/{id} | Update the specified quota
213
- *Harbor2LegacyClient::RetentionApi* | [**retentions_id_executions_eid_patch**](docs/RetentionApi.md#retentions_id_executions_eid_patch) | **PATCH** /retentions/{id}/executions/{eid} | Stop a Retention job
214
- *Harbor2LegacyClient::RetentionApi* | [**retentions_id_executions_eid_tasks_get**](docs/RetentionApi.md#retentions_id_executions_eid_tasks_get) | **GET** /retentions/{id}/executions/{eid}/tasks | Get Retention job tasks
215
- *Harbor2LegacyClient::RetentionApi* | [**retentions_id_executions_eid_tasks_tid_get**](docs/RetentionApi.md#retentions_id_executions_eid_tasks_tid_get) | **GET** /retentions/{id}/executions/{eid}/tasks/{tid} | Get Retention job task log
216
- *Harbor2LegacyClient::RetentionApi* | [**retentions_id_executions_get**](docs/RetentionApi.md#retentions_id_executions_get) | **GET** /retentions/{id}/executions | Get a Retention job
217
- *Harbor2LegacyClient::RetentionApi* | [**retentions_id_executions_post**](docs/RetentionApi.md#retentions_id_executions_post) | **POST** /retentions/{id}/executions | Trigger a Retention job
218
- *Harbor2LegacyClient::RetentionApi* | [**retentions_id_get**](docs/RetentionApi.md#retentions_id_get) | **GET** /retentions/{id} | Get Retention Policy
219
- *Harbor2LegacyClient::RetentionApi* | [**retentions_metadatas_get**](docs/RetentionApi.md#retentions_metadatas_get) | **GET** /retentions/metadatas | Get Retention Metadatas
220
- *Harbor2LegacyClient::RetentionApi* | [**retentions_post**](docs/RetentionApi.md#retentions_post) | **POST** /retentions | Create Retention Policy
221
- *Harbor2LegacyClient::RobotAccountApi* | [**projects_project_id_robots_get**](docs/RobotAccountApi.md#projects_project_id_robots_get) | **GET** /projects/{project_id}/robots | Get all robot accounts of specified project
222
- *Harbor2LegacyClient::RobotAccountApi* | [**projects_project_id_robots_post**](docs/RobotAccountApi.md#projects_project_id_robots_post) | **POST** /projects/{project_id}/robots | Create a robot account for project
223
- *Harbor2LegacyClient::RobotAccountApi* | [**projects_project_id_robots_robot_id_delete**](docs/RobotAccountApi.md#projects_project_id_robots_robot_id_delete) | **DELETE** /projects/{project_id}/robots/{robot_id} | Delete the specified robot account
224
- *Harbor2LegacyClient::RobotAccountApi* | [**projects_project_id_robots_robot_id_get**](docs/RobotAccountApi.md#projects_project_id_robots_robot_id_get) | **GET** /projects/{project_id}/robots/{robot_id} | Return the infor of the specified robot account.
225
- *Harbor2LegacyClient::RobotAccountApi* | [**projects_project_id_robots_robot_id_put**](docs/RobotAccountApi.md#projects_project_id_robots_robot_id_put) | **PUT** /projects/{project_id}/robots/{robot_id} | Update status of robot account.
226
- *Harbor2LegacyClient::ScanApi* | [**scans_all_metrics_get**](docs/ScanApi.md#scans_all_metrics_get) | **GET** /scans/all/metrics | Get the metrics of the latest scan all process
227
- *Harbor2LegacyClient::ScanApi* | [**scans_schedule_metrics_get**](docs/ScanApi.md#scans_schedule_metrics_get) | **GET** /scans/schedule/metrics | Get the metrics of the latest scheduled scan all process
228
- *Harbor2LegacyClient::ScannersApi* | [**projects_project_id_scanner_candidates_get**](docs/ScannersApi.md#projects_project_id_scanner_candidates_get) | **GET** /projects/{project_id}/scanner/candidates | Get scanner registration candidates for configurating project level scanner
229
- *Harbor2LegacyClient::ScannersApi* | [**projects_project_id_scanner_get**](docs/ScannersApi.md#projects_project_id_scanner_get) | **GET** /projects/{project_id}/scanner | Get project level scanner
230
- *Harbor2LegacyClient::ScannersApi* | [**projects_project_id_scanner_put**](docs/ScannersApi.md#projects_project_id_scanner_put) | **PUT** /projects/{project_id}/scanner | Configure scanner for the specified project
231
- *Harbor2LegacyClient::ScannersApi* | [**scanners_get**](docs/ScannersApi.md#scanners_get) | **GET** /scanners | List scanner registrations
232
- *Harbor2LegacyClient::ScannersApi* | [**scanners_ping_post**](docs/ScannersApi.md#scanners_ping_post) | **POST** /scanners/ping | Tests scanner registration settings
233
- *Harbor2LegacyClient::ScannersApi* | [**scanners_post**](docs/ScannersApi.md#scanners_post) | **POST** /scanners | Create a scanner registration
234
- *Harbor2LegacyClient::ScannersApi* | [**scanners_registration_id_delete**](docs/ScannersApi.md#scanners_registration_id_delete) | **DELETE** /scanners/{registration_id} | Delete a scanner registration
235
- *Harbor2LegacyClient::ScannersApi* | [**scanners_registration_id_get**](docs/ScannersApi.md#scanners_registration_id_get) | **GET** /scanners/{registration_id} | Get a scanner registration details
236
- *Harbor2LegacyClient::ScannersApi* | [**scanners_registration_id_metadata_get**](docs/ScannersApi.md#scanners_registration_id_metadata_get) | **GET** /scanners/{registration_id}/metadata | Get the metadata of the specified scanner registration
237
- *Harbor2LegacyClient::ScannersApi* | [**scanners_registration_id_patch**](docs/ScannersApi.md#scanners_registration_id_patch) | **PATCH** /scanners/{registration_id} | Set system default scanner registration
238
- *Harbor2LegacyClient::ScannersApi* | [**scanners_registration_id_put**](docs/ScannersApi.md#scanners_registration_id_put) | **PUT** /scanners/{registration_id} | Update a scanner registration
239
- *Harbor2LegacyClient::SystemApi* | [**system_cve_allowlist_get**](docs/SystemApi.md#system_cve_allowlist_get) | **GET** /system/CVEAllowlist | Get the system level allowlist of CVE.
240
- *Harbor2LegacyClient::SystemApi* | [**system_cve_allowlist_put**](docs/SystemApi.md#system_cve_allowlist_put) | **PUT** /system/CVEAllowlist | Update the system level allowlist of CVE.
241
- *Harbor2LegacyClient::SystemApi* | [**system_oidc_ping_post**](docs/SystemApi.md#system_oidc_ping_post) | **POST** /system/oidc/ping | Test the OIDC endpoint.
242
98
 
243
99
 
244
100
  ## Documentation for Models
245
101
 
246
- - [Harbor2LegacyClient::Action](docs/Action.md)
247
- - [Harbor2LegacyClient::Action1](docs/Action1.md)
248
- - [Harbor2LegacyClient::AdminJobSchedule](docs/AdminJobSchedule.md)
249
- - [Harbor2LegacyClient::AdminJobScheduleObj](docs/AdminJobScheduleObj.md)
250
102
  - [Harbor2LegacyClient::BadRequestFormatedError](docs/BadRequestFormatedError.md)
251
- - [Harbor2LegacyClient::BoolConfigItem](docs/BoolConfigItem.md)
252
- - [Harbor2LegacyClient::CVEAllowlist](docs/CVEAllowlist.md)
253
- - [Harbor2LegacyClient::CVEAllowlistItem](docs/CVEAllowlistItem.md)
254
103
  - [Harbor2LegacyClient::ChartAPIError](docs/ChartAPIError.md)
255
104
  - [Harbor2LegacyClient::ChartMetadata](docs/ChartMetadata.md)
256
105
  - [Harbor2LegacyClient::ChartVersion](docs/ChartVersion.md)
257
- - [Harbor2LegacyClient::ComponentHealthStatus](docs/ComponentHealthStatus.md)
258
106
  - [Harbor2LegacyClient::ComponentOverviewEntry](docs/ComponentOverviewEntry.md)
259
- - [Harbor2LegacyClient::Configurations](docs/Configurations.md)
260
- - [Harbor2LegacyClient::ConfigurationsResponse](docs/ConfigurationsResponse.md)
261
- - [Harbor2LegacyClient::ConfigurationsScanAllPolicy](docs/ConfigurationsScanAllPolicy.md)
262
- - [Harbor2LegacyClient::ConfigurationsScanAllPolicyParameter](docs/ConfigurationsScanAllPolicyParameter.md)
263
107
  - [Harbor2LegacyClient::ConflictFormatedError](docs/ConflictFormatedError.md)
264
108
  - [Harbor2LegacyClient::EmailServerSetting](docs/EmailServerSetting.md)
265
- - [Harbor2LegacyClient::Endpoint](docs/Endpoint.md)
266
- - [Harbor2LegacyClient::EventType](docs/EventType.md)
267
- - [Harbor2LegacyClient::FilterStyle](docs/FilterStyle.md)
268
109
  - [Harbor2LegacyClient::ForbiddenChartAPIError](docs/ForbiddenChartAPIError.md)
269
- - [Harbor2LegacyClient::GCResult](docs/GCResult.md)
270
- - [Harbor2LegacyClient::GeneralInfo](docs/GeneralInfo.md)
271
- - [Harbor2LegacyClient::InputSecret](docs/InputSecret.md)
272
110
  - [Harbor2LegacyClient::InsufficientStorageChartAPIError](docs/InsufficientStorageChartAPIError.md)
273
- - [Harbor2LegacyClient::IntegerConfigItem](docs/IntegerConfigItem.md)
274
111
  - [Harbor2LegacyClient::InternalChartAPIError](docs/InternalChartAPIError.md)
275
- - [Harbor2LegacyClient::IsDefault](docs/IsDefault.md)
276
112
  - [Harbor2LegacyClient::Label](docs/Label.md)
277
113
  - [Harbor2LegacyClient::Labels](docs/Labels.md)
278
- - [Harbor2LegacyClient::LdapConf](docs/LdapConf.md)
279
- - [Harbor2LegacyClient::LdapFailedImportUsers](docs/LdapFailedImportUsers.md)
280
- - [Harbor2LegacyClient::LdapImportUsers](docs/LdapImportUsers.md)
281
- - [Harbor2LegacyClient::LdapUsers](docs/LdapUsers.md)
282
114
  - [Harbor2LegacyClient::Namespace](docs/Namespace.md)
283
115
  - [Harbor2LegacyClient::NotFoundChartAPIError](docs/NotFoundChartAPIError.md)
284
- - [Harbor2LegacyClient::NotifyType](docs/NotifyType.md)
285
- - [Harbor2LegacyClient::OverallHealthStatus](docs/OverallHealthStatus.md)
286
- - [Harbor2LegacyClient::Password](docs/Password.md)
287
116
  - [Harbor2LegacyClient::Permission](docs/Permission.md)
288
- - [Harbor2LegacyClient::PingRegistry](docs/PingRegistry.md)
289
- - [Harbor2LegacyClient::Project](docs/Project.md)
290
- - [Harbor2LegacyClient::ProjectMember](docs/ProjectMember.md)
291
- - [Harbor2LegacyClient::ProjectMemberEntity](docs/ProjectMemberEntity.md)
292
- - [Harbor2LegacyClient::ProjectMetadata](docs/ProjectMetadata.md)
293
- - [Harbor2LegacyClient::ProjectReq](docs/ProjectReq.md)
294
- - [Harbor2LegacyClient::ProjectScanner](docs/ProjectScanner.md)
295
- - [Harbor2LegacyClient::ProjectSummary](docs/ProjectSummary.md)
296
- - [Harbor2LegacyClient::ProjectSummaryQuota](docs/ProjectSummaryQuota.md)
297
- - [Harbor2LegacyClient::PutRegistry](docs/PutRegistry.md)
298
- - [Harbor2LegacyClient::Quota](docs/Quota.md)
299
- - [Harbor2LegacyClient::QuotaRefObject](docs/QuotaRefObject.md)
300
- - [Harbor2LegacyClient::QuotaSwitcher](docs/QuotaSwitcher.md)
301
- - [Harbor2LegacyClient::QuotaUpdateReq](docs/QuotaUpdateReq.md)
302
- - [Harbor2LegacyClient::Registry](docs/Registry.md)
303
- - [Harbor2LegacyClient::RegistryCredential](docs/RegistryCredential.md)
304
- - [Harbor2LegacyClient::RegistryInfo](docs/RegistryInfo.md)
305
- - [Harbor2LegacyClient::ReplicationExecution](docs/ReplicationExecution.md)
306
- - [Harbor2LegacyClient::ReplicationFilter](docs/ReplicationFilter.md)
307
- - [Harbor2LegacyClient::ReplicationPolicy](docs/ReplicationPolicy.md)
308
- - [Harbor2LegacyClient::ReplicationTask](docs/ReplicationTask.md)
309
- - [Harbor2LegacyClient::ReplicationTrigger](docs/ReplicationTrigger.md)
310
- - [Harbor2LegacyClient::ResourceList](docs/ResourceList.md)
311
- - [Harbor2LegacyClient::RetentionExecution](docs/RetentionExecution.md)
312
- - [Harbor2LegacyClient::RetentionExecutionTask](docs/RetentionExecutionTask.md)
313
- - [Harbor2LegacyClient::RetentionMetadata](docs/RetentionMetadata.md)
314
- - [Harbor2LegacyClient::RetentionPolicy](docs/RetentionPolicy.md)
315
- - [Harbor2LegacyClient::RetentionPolicyScope](docs/RetentionPolicyScope.md)
316
- - [Harbor2LegacyClient::RetentionRule](docs/RetentionRule.md)
317
- - [Harbor2LegacyClient::RetentionRuleMetadata](docs/RetentionRuleMetadata.md)
318
- - [Harbor2LegacyClient::RetentionRuleParamMetadata](docs/RetentionRuleParamMetadata.md)
319
- - [Harbor2LegacyClient::RetentionRuleTrigger](docs/RetentionRuleTrigger.md)
320
- - [Harbor2LegacyClient::RetentionSelector](docs/RetentionSelector.md)
321
- - [Harbor2LegacyClient::RetentionSelectorMetadata](docs/RetentionSelectorMetadata.md)
322
- - [Harbor2LegacyClient::RobotAccount](docs/RobotAccount.md)
323
- - [Harbor2LegacyClient::RobotAccountAccess](docs/RobotAccountAccess.md)
324
- - [Harbor2LegacyClient::RobotAccountCreate](docs/RobotAccountCreate.md)
325
- - [Harbor2LegacyClient::RobotAccountPostRep](docs/RobotAccountPostRep.md)
326
- - [Harbor2LegacyClient::RobotAccountUpdate](docs/RobotAccountUpdate.md)
327
- - [Harbor2LegacyClient::Role](docs/Role.md)
328
- - [Harbor2LegacyClient::RoleParam](docs/RoleParam.md)
329
- - [Harbor2LegacyClient::RoleRequest](docs/RoleRequest.md)
330
- - [Harbor2LegacyClient::Scanner](docs/Scanner.md)
331
- - [Harbor2LegacyClient::ScannerAdapterMetadata](docs/ScannerAdapterMetadata.md)
332
- - [Harbor2LegacyClient::ScannerCapability](docs/ScannerCapability.md)
333
- - [Harbor2LegacyClient::ScannerRegistration](docs/ScannerRegistration.md)
334
- - [Harbor2LegacyClient::ScannerRegistrationReq](docs/ScannerRegistrationReq.md)
335
- - [Harbor2LegacyClient::ScannerRegistrationSettings](docs/ScannerRegistrationSettings.md)
336
- - [Harbor2LegacyClient::Search](docs/Search.md)
337
- - [Harbor2LegacyClient::SearchRepository](docs/SearchRepository.md)
338
- - [Harbor2LegacyClient::SearchResult](docs/SearchResult.md)
339
- - [Harbor2LegacyClient::StatisticMap](docs/StatisticMap.md)
340
- - [Harbor2LegacyClient::Stats](docs/Stats.md)
341
- - [Harbor2LegacyClient::Storage](docs/Storage.md)
342
- - [Harbor2LegacyClient::StringConfigItem](docs/StringConfigItem.md)
343
- - [Harbor2LegacyClient::SupportedWebhookEventTypes](docs/SupportedWebhookEventTypes.md)
344
- - [Harbor2LegacyClient::SysAdminFlag](docs/SysAdminFlag.md)
345
- - [Harbor2LegacyClient::SystemInfo](docs/SystemInfo.md)
346
- - [Harbor2LegacyClient::TriggerSettings](docs/TriggerSettings.md)
347
117
  - [Harbor2LegacyClient::UnauthorizedChartAPIError](docs/UnauthorizedChartAPIError.md)
348
- - [Harbor2LegacyClient::User](docs/User.md)
349
- - [Harbor2LegacyClient::UserEntity](docs/UserEntity.md)
350
- - [Harbor2LegacyClient::UserGroup](docs/UserGroup.md)
351
- - [Harbor2LegacyClient::UserProfile](docs/UserProfile.md)
352
- - [Harbor2LegacyClient::UserSearch](docs/UserSearch.md)
353
- - [Harbor2LegacyClient::WebhookJob](docs/WebhookJob.md)
354
- - [Harbor2LegacyClient::WebhookLastTrigger](docs/WebhookLastTrigger.md)
355
- - [Harbor2LegacyClient::WebhookPolicy](docs/WebhookPolicy.md)
356
- - [Harbor2LegacyClient::WebhookTargetObject](docs/WebhookTargetObject.md)
357
118
 
358
119
 
359
120
  ## Documentation for Authorization
@@ -0,0 +1,8 @@
1
+ #!/bin/bash
2
+ # 1. Create a new git branch
3
+ # 2. Clean out repo (delete everything except build_scripts folder and .git folder)
4
+ # 3. Update version in swagger-codegen-cli-ruby-config.json
5
+ # 4. Run this script from the root of the repo ( e.g. "build_scripts/generate.sh 2.3.3")
6
+ # 5. Check previous commits to check required manual fixups (may or may not stil be required)
7
+ version=$1
8
+ docker run -u $(id -u) --rm -v ${PWD}:/local swaggerapi/swagger-codegen-cli generate -i "https://raw.githubusercontent.com/goharbor/harbor/v${version}/api/v2.0/legacy_swagger.yaml" -l ruby -c /local/build_scripts/swagger-codegen-cli-ruby-config.json -o /local/
@@ -0,0 +1,12 @@
1
+ {
2
+ "gemName": "harbor2_legacy_client",
3
+ "moduleName": "Harbor2LegacyClient",
4
+ "gemVersion": "2.3.3.1",
5
+ "gemLicense": "MIT",
6
+ "gemRequiredRubyVersion": ">= 1.9",
7
+ "gemHomepage": "https://github.com/liger1978/ruby-harbor2_legacy_client",
8
+ "gemSummary": "A ruby wrapper for the Harbor swagger APIs",
9
+ "gemDescription": "A ruby wrapper for the Harbor swagger APIs",
10
+ "gemAuthor": "Richard Grainger",
11
+ "gemAuthorEmail": "harbottle@room3d3.com"
12
+ }