harbor2_legacy_client 0.2.1 → 2.3.3.0

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/generate.sh +8 -0
  4. data/build/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 +2 -2
  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
@@ -1,42 +0,0 @@
1
- # Harbor2LegacyClient::Configurations
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **auth_mode** | **String** | The auth mode of current system, such as \"db_auth\", \"ldap_auth\" | [optional]
7
- **count_per_project** | **String** | The default count quota for the new created projects. | [optional]
8
- **email_from** | **String** | The sender name for Email notification. | [optional]
9
- **email_host** | **String** | The hostname of SMTP server that sends Email notification. | [optional]
10
- **email_port** | **Integer** | The port of SMTP server. | [optional]
11
- **email_identity** | **String** | By default it's empty so the email_username is picked. | [optional]
12
- **email_username** | **String** | The username for authenticate against SMTP server. | [optional]
13
- **email_ssl** | **BOOLEAN** | When it's set to true the system will access Email server via TLS by default. If it's set to false, it still will handle \"STARTTLS\" from server side. | [optional]
14
- **email_insecure** | **BOOLEAN** | Whether or not the certificate will be verified when Harbor tries to access the email server. | [optional]
15
- **ldap_url** | **String** | The URL of LDAP server. | [optional]
16
- **ldap_base_dn** | **String** | The Base DN for LDAP binding. | [optional]
17
- **ldap_filter** | **String** | The filter for LDAP binding. | [optional]
18
- **ldap_scope** | **Integer** | 0-LDAP_SCOPE_BASE, 1-LDAP_SCOPE_ONELEVEL, 2-LDAP_SCOPE_SUBTREE | [optional]
19
- **ldap_uid** | **String** | The attribute which is used as identity for the LDAP binding, such as \"CN\" or \"SAMAccountname\" | [optional]
20
- **ldap_search_dn** | **String** | The DN of the user to do the search. | [optional]
21
- **ldap_timeout** | **Integer** | timeout in seconds for connection to LDAP server. | [optional]
22
- **ldap_group_attribute_name** | **String** | The attribute which is used as identity of the LDAP group, default is cn. | [optional]
23
- **ldap_group_base_dn** | **String** | The base DN to search LDAP group. | [optional]
24
- **ldap_group_search_filter** | **String** | The filter to search the ldap group. | [optional]
25
- **ldap_group_search_scope** | **Integer** | The scope to search ldap. '0-LDAP_SCOPE_BASE, 1-LDAP_SCOPE_ONELEVEL, 2-LDAP_SCOPE_SUBTREE' | [optional]
26
- **ldap_group_admin_dn** | **String** | Specify the ldap group which have the same privilege with Harbor admin. | [optional]
27
- **oidc_client_id** | **String** | The client id of the OIDC. | [optional]
28
- **oidc_client_secret** | **String** | The client secret of the OIDC. | [optional]
29
- **oidc_endpoint** | **String** | The URL of an OIDC-complaint server, must start with 'https://'. | [optional]
30
- **oidc_name** | **String** | The name of the OIDC provider. | [optional]
31
- **oidc_scope** | **String** | The scope sent to OIDC server during authentication, should be separated by comma. It has to contain “openid”, and “offline_access”. If you are using google, please remove “offline_access” from this field. | [optional]
32
- **oidc_verify_cert** | **BOOLEAN** | Whether verify your OIDC server certificate, disable it if your OIDC server is hosted via self-hosted certificate. | [optional]
33
- **project_creation_restriction** | **String** | This attribute restricts what users have the permission to create project. It can be \"everyone\" or \"adminonly\". | [optional]
34
- **quota_per_project_enable** | **BOOLEAN** | This attribute indicates whether quota per project enabled in harbor | [optional]
35
- **read_only** | **BOOLEAN** | 'docker push' is prohibited by Harbor if you set it to true. | [optional]
36
- **self_registration** | **BOOLEAN** | Whether the Harbor instance supports self-registration. If it's set to false, admin need to add user to the instance. | [optional]
37
- **storage_per_project** | **String** | The default storage quota for the new created projects. | [optional]
38
- **token_expiration** | **Integer** | The expiration time of the token for internal Registry, in minutes. | [optional]
39
- **verify_remote_cert** | **BOOLEAN** | Whether or not the certificate will be verified when Harbor tries to access a remote Harbor instance for replication. | [optional]
40
- **scan_all_policy** | [**ConfigurationsScanAllPolicy**](ConfigurationsScanAllPolicy.md) | | [optional]
41
-
42
-
@@ -1,41 +0,0 @@
1
- # Harbor2LegacyClient::ConfigurationsResponse
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **auth_mode** | [**StringConfigItem**](StringConfigItem.md) | The auth mode of current system, such as \"db_auth\", \"ldap_auth\" | [optional]
7
- **count_per_project** | [**IntegerConfigItem**](IntegerConfigItem.md) | The default count quota for the new created projects. | [optional]
8
- **email_from** | [**StringConfigItem**](StringConfigItem.md) | The sender name for Email notification. | [optional]
9
- **email_host** | [**StringConfigItem**](StringConfigItem.md) | The hostname of SMTP server that sends Email notification. | [optional]
10
- **email_port** | [**IntegerConfigItem**](IntegerConfigItem.md) | The port of SMTP server. | [optional]
11
- **email_identity** | [**StringConfigItem**](StringConfigItem.md) | By default it's empty so the email_username is picked. | [optional]
12
- **email_username** | [**StringConfigItem**](StringConfigItem.md) | The username for authenticate against SMTP server. | [optional]
13
- **email_ssl** | [**BoolConfigItem**](BoolConfigItem.md) | When it's set to true the system will access Email server via TLS by default. If it's set to false, it still will handle \"STARTTLS\" from server side. | [optional]
14
- **email_insecure** | [**BoolConfigItem**](BoolConfigItem.md) | Whether or not the certificate will be verified when Harbor tries to access the email server. | [optional]
15
- **ldap_url** | [**StringConfigItem**](StringConfigItem.md) | The URL of LDAP server. | [optional]
16
- **ldap_base_dn** | [**StringConfigItem**](StringConfigItem.md) | The Base DN for LDAP binding. | [optional]
17
- **ldap_filter** | [**StringConfigItem**](StringConfigItem.md) | The filter for LDAP binding. | [optional]
18
- **ldap_scope** | **Integer** | 0-LDAP_SCOPE_BASE, 1-LDAP_SCOPE_ONELEVEL, 2-LDAP_SCOPE_SUBTREE | [optional]
19
- **ldap_uid** | [**StringConfigItem**](StringConfigItem.md) | The attribute which is used as identity for the LDAP binding, such as \"CN\" or \"SAMAccountname\" | [optional]
20
- **ldap_search_dn** | **String** | The DN of the user to do the search. | [optional]
21
- **ldap_timeout** | [**IntegerConfigItem**](IntegerConfigItem.md) | timeout in seconds for connection to LDAP server. | [optional]
22
- **ldap_group_attribute_name** | [**StringConfigItem**](StringConfigItem.md) | The attribute which is used as identity of the LDAP group, default is cn. | [optional]
23
- **ldap_group_base_dn** | [**StringConfigItem**](StringConfigItem.md) | The base DN to search LDAP group. | [optional]
24
- **ldap_group_search_filter** | [**StringConfigItem**](StringConfigItem.md) | The filter to search the ldap group. | [optional]
25
- **ldap_group_search_scope** | [**IntegerConfigItem**](IntegerConfigItem.md) | The scope to search ldap. '0-LDAP_SCOPE_BASE, 1-LDAP_SCOPE_ONELEVEL, 2-LDAP_SCOPE_SUBTREE' | [optional]
26
- **ldap_group_admin_dn** | [**StringConfigItem**](StringConfigItem.md) | Specify the ldap group which have the same privilege with Harbor admin. | [optional]
27
- **oidc_client_id** | [**StringConfigItem**](StringConfigItem.md) | The client id of the OIDC. | [optional]
28
- **oidc_endpoint** | [**StringConfigItem**](StringConfigItem.md) | The URL of an OIDC-complaint server, must start with 'https://'. | [optional]
29
- **oidc_name** | [**StringConfigItem**](StringConfigItem.md) | The name of the OIDC provider. | [optional]
30
- **oidc_scope** | [**StringConfigItem**](StringConfigItem.md) | The scope sent to OIDC server during authentication, should be separated by comma. It has to contain “openid”, and “offline_access”. If you are using google, please remove “offline_access” from this field. | [optional]
31
- **oidc_verify_cert** | [**BoolConfigItem**](BoolConfigItem.md) | Whether verify your OIDC server certificate, disable it if your OIDC server is hosted via self-hosted certificate. | [optional]
32
- **project_creation_restriction** | [**StringConfigItem**](StringConfigItem.md) | This attribute restricts what users have the permission to create project. It can be \"everyone\" or \"adminonly\". | [optional]
33
- **quota_per_project_enable** | [**BoolConfigItem**](BoolConfigItem.md) | This attribute indicates whether quota per project enabled in harbor | [optional]
34
- **read_only** | [**BoolConfigItem**](BoolConfigItem.md) | 'docker push' is prohibited by Harbor if you set it to true. | [optional]
35
- **self_registration** | [**BoolConfigItem**](BoolConfigItem.md) | Whether the Harbor instance supports self-registration. If it's set to false, admin need to add user to the instance. | [optional]
36
- **storage_per_project** | [**IntegerConfigItem**](IntegerConfigItem.md) | The default storage quota for the new created projects. | [optional]
37
- **token_expiration** | [**IntegerConfigItem**](IntegerConfigItem.md) | The expiration time of the token for internal Registry, in minutes. | [optional]
38
- **verify_remote_cert** | [**BoolConfigItem**](BoolConfigItem.md) | Whether or not the certificate will be verified when Harbor tries to access a remote Harbor instance for replication. | [optional]
39
- **scan_all_policy** | [**ConfigurationsScanAllPolicy**](ConfigurationsScanAllPolicy.md) | | [optional]
40
-
41
-
@@ -1,9 +0,0 @@
1
- # Harbor2LegacyClient::ConfigurationsScanAllPolicy
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **type** | **String** | The type of scan all policy, currently the valid values are \"none\" and \"daily\" | [optional]
7
- **parameter** | [**ConfigurationsScanAllPolicyParameter**](ConfigurationsScanAllPolicyParameter.md) | | [optional]
8
-
9
-
@@ -1,8 +0,0 @@
1
- # Harbor2LegacyClient::ConfigurationsScanAllPolicyParameter
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **daily_time** | **Integer** | The offset in seconds of UTC 0 o'clock, only valid when the policy type is \"daily\" | [optional]
7
-
8
-
data/docs/Endpoint.md DELETED
@@ -1,9 +0,0 @@
1
- # Harbor2LegacyClient::Endpoint
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **url** | **String** | The URL of OIDC endpoint to be tested. | [optional]
7
- **verify_cert** | **BOOLEAN** | Whether the certificate should be verified | [optional]
8
-
9
-
data/docs/EventType.md DELETED
@@ -1,7 +0,0 @@
1
- # Harbor2LegacyClient::EventType
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
-
7
-
data/docs/FilterStyle.md DELETED
@@ -1,10 +0,0 @@
1
- # Harbor2LegacyClient::FilterStyle
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **type** | **String** | The filter type | [optional]
7
- **style** | **String** | The filter style | [optional]
8
- **values** | **Array<String>** | The filter values | [optional]
9
-
10
-
data/docs/GCResult.md DELETED
@@ -1,16 +0,0 @@
1
- # Harbor2LegacyClient::GCResult
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **id** | **Integer** | the id of gc job. | [optional]
7
- **job_name** | **String** | the job name of gc job. | [optional]
8
- **job_kind** | **String** | the job kind of gc job. | [optional]
9
- **job_parameters** | **String** | the job parameters of gc job. | [optional]
10
- **schedule** | [**AdminJobScheduleObj**](AdminJobScheduleObj.md) | | [optional]
11
- **job_status** | **String** | the status of gc job. | [optional]
12
- **deleted** | **BOOLEAN** | if gc job was deleted. | [optional]
13
- **creation_time** | **String** | the creation time of gc job. | [optional]
14
- **update_time** | **String** | the update time of gc job. | [optional]
15
-
16
-
data/docs/GeneralInfo.md DELETED
@@ -1,16 +0,0 @@
1
- # Harbor2LegacyClient::GeneralInfo
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **with_notary** | **BOOLEAN** | If the Harbor instance is deployed with nested notary. | [optional]
7
- **with_chartmuseum** | **BOOLEAN** | If the Harbor instance is deployed with nested chartmuseum. | [optional]
8
- **registry_url** | **String** | The url of registry against which the docker command should be issued. | [optional]
9
- **external_url** | **String** | The external URL of Harbor, with protocol. | [optional]
10
- **auth_mode** | **String** | The auth mode of current Harbor instance. | [optional]
11
- **project_creation_restriction** | **String** | Indicate who can create projects, it could be 'adminonly' or 'everyone'. | [optional]
12
- **self_registration** | **BOOLEAN** | Indicate whether the Harbor instance enable user to register himself. | [optional]
13
- **has_ca_root** | **BOOLEAN** | Indicate whether there is a ca root cert file ready for download in the file system. | [optional]
14
- **harbor_version** | **String** | The build version of Harbor. | [optional]
15
-
16
-
data/docs/InputSecret.md DELETED
@@ -1,8 +0,0 @@
1
- # Harbor2LegacyClient::InputSecret
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **secret** | **String** | The new secret | [optional]
7
-
8
-
@@ -1,9 +0,0 @@
1
- # Harbor2LegacyClient::IntegerConfigItem
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **value** | **Integer** | The integer value of current config item | [optional]
7
- **editable** | **BOOLEAN** | The configure item can be updated or not | [optional]
8
-
9
-
data/docs/IsDefault.md DELETED
@@ -1,8 +0,0 @@
1
- # Harbor2LegacyClient::IsDefault
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **is_default** | **BOOLEAN** | A flag indicating whether a scanner registration is default. | [optional]
7
-
8
-
data/docs/LdapConf.md DELETED
@@ -1,15 +0,0 @@
1
- # Harbor2LegacyClient::LdapConf
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **ldap_url** | **String** | The url of ldap service. | [optional]
7
- **ldap_search_dn** | **String** | The search dn of ldap service. | [optional]
8
- **ldap_search_password** | **String** | The search password of ldap service. | [optional]
9
- **ldap_base_dn** | **String** | The base dn of ldap service. | [optional]
10
- **ldap_filter** | **String** | The serach filter of ldap service. | [optional]
11
- **ldap_uid** | **String** | The serach uid from ldap service attributes. | [optional]
12
- **ldap_scope** | **Integer** | The serach scope of ldap service. | [optional]
13
- **ldap_connection_timeout** | **Integer** | The connect timeout of ldap service(second). | [optional]
14
-
15
-
@@ -1,9 +0,0 @@
1
- # Harbor2LegacyClient::LdapFailedImportUsers
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **ldap_uid** | **String** | the uid can't add to system. | [optional]
7
- **error** | **String** | fail reason. | [optional]
8
-
9
-
@@ -1,8 +0,0 @@
1
- # Harbor2LegacyClient::LdapImportUsers
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **ldap_uid_list** | **Array<String>** | selected uid list | [optional]
7
-
8
-
data/docs/LdapUsers.md DELETED
@@ -1,10 +0,0 @@
1
- # Harbor2LegacyClient::LdapUsers
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **ldap_username** | **String** | search ldap user name based on ldapconf. | [optional]
7
- **ldap_realname** | **String** | system will try to guess the user realname form \"uid\" or \"cn\" attribute. | [optional]
8
- **ldap_email** | **String** | system will try to guess the user email address form \"mail\" or \"email\" attribute. | [optional]
9
-
10
-
data/docs/NotifyType.md DELETED
@@ -1,7 +0,0 @@
1
- # Harbor2LegacyClient::NotifyType
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
-
7
-
@@ -1,9 +0,0 @@
1
- # Harbor2LegacyClient::OverallHealthStatus
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **status** | **String** | The overall health status. It is \"healthy\" only when all the components' status are \"healthy\" | [optional]
7
- **components** | [**Array<ComponentHealthStatus>**](ComponentHealthStatus.md) | | [optional]
8
-
9
-
data/docs/Password.md DELETED
@@ -1,9 +0,0 @@
1
- # Harbor2LegacyClient::Password
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **old_password** | **String** | The user's existing password. | [optional]
7
- **new_password** | **String** | New password for marking as to be updated. | [optional]
8
-
9
-
data/docs/PingRegistry.md DELETED
@@ -1,14 +0,0 @@
1
- # Harbor2LegacyClient::PingRegistry
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **id** | **Integer** | The ID of the registry | [optional]
7
- **type** | **String** | Type of the registry, e.g. 'harbor'. | [optional]
8
- **url** | **String** | The registry address URL string. | [optional]
9
- **credential_type** | **String** | Credential type of the registry, e.g. 'basic'. | [optional]
10
- **access_key** | **String** | The registry access key. | [optional]
11
- **access_secret** | **String** | The registry access secret. | [optional]
12
- **insecure** | **BOOLEAN** | Whether or not the certificate will be verified when Harbor tries to access the server. | [optional]
13
-
14
-
data/docs/Project.md DELETED
@@ -1,22 +0,0 @@
1
- # Harbor2LegacyClient::Project
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **project_id** | **Integer** | Project ID | [optional]
7
- **owner_id** | **Integer** | The owner ID of the project always means the creator of the project. | [optional]
8
- **name** | **String** | The name of the project. | [optional]
9
- **registry_id** | **Integer** | The ID of referenced registry when the project is a proxy cache project. | [optional]
10
- **creation_time** | **String** | The creation time of the project. | [optional]
11
- **update_time** | **String** | The update time of the project. | [optional]
12
- **deleted** | **BOOLEAN** | A deletion mark of the project. | [optional]
13
- **owner_name** | **String** | The owner name of the project. | [optional]
14
- **togglable** | **BOOLEAN** | Correspond to the UI about whether the project's publicity is updatable (for UI) | [optional]
15
- **current_user_role_id** | **Integer** | The role ID with highest permission of the current user who triggered the API (for UI). This attribute is deprecated and will be removed in future versions. | [optional]
16
- **current_user_role_ids** | **Array<Integer>** | The list of role ID of the current user who triggered the API (for UI) | [optional]
17
- **repo_count** | **Integer** | The number of the repositories under this project. | [optional]
18
- **chart_count** | **Integer** | The total number of charts under this project. | [optional]
19
- **metadata** | [**ProjectMetadata**](ProjectMetadata.md) | The metadata of the project. | [optional]
20
- **cve_allowlist** | [**CVEAllowlist**](CVEAllowlist.md) | The CVE allowlist of this project. | [optional]
21
-
22
-
@@ -1,10 +0,0 @@
1
- # Harbor2LegacyClient::ProjectMember
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **role_id** | **Integer** | The role id 1 for projectAdmin, 2 for developer, 3 for guest, 4 for maintainer | [optional]
7
- **member_user** | [**UserEntity**](UserEntity.md) | | [optional]
8
- **member_group** | [**UserGroup**](UserGroup.md) | | [optional]
9
-
10
-
@@ -1,14 +0,0 @@
1
- # Harbor2LegacyClient::ProjectMemberEntity
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **id** | **Integer** | the project member id | [optional]
7
- **project_id** | **Integer** | the project id | [optional]
8
- **entity_name** | **String** | the name of the group member. | [optional]
9
- **role_name** | **String** | the name of the role | [optional]
10
- **role_id** | **Integer** | the role id | [optional]
11
- **entity_id** | **Integer** | the id of entity, if the member is a user, it is user_id in user table. if the member is a user group, it is the user group's ID in user_group table. | [optional]
12
- **entity_type** | **String** | the entity's type, u for user entity, g for group entity. | [optional]
13
-
14
-
@@ -1,13 +0,0 @@
1
- # Harbor2LegacyClient::ProjectMetadata
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **public** | **String** | The public status of the project. The valid values are \"true\", \"false\". | [optional]
7
- **enable_content_trust** | **String** | Whether content trust is enabled or not. If it is enabled, user can't pull unsigned images from this project. The valid values are \"true\", \"false\". | [optional]
8
- **prevent_vul** | **String** | Whether prevent the vulnerable images from running. The valid values are \"true\", \"false\". | [optional]
9
- **severity** | **String** | If the vulnerability is high than severity defined here, the images can't be pulled. The valid values are \"none\", \"low\", \"medium\", \"high\", \"critical\". | [optional]
10
- **auto_scan** | **String** | Whether scan images automatically when pushing. The valid values are \"true\", \"false\". | [optional]
11
- **reuse_sys_cve_allowlist** | **String** | Whether this project reuse the system level CVE allowlist as the allowlist of its own. The valid values are \"true\", \"false\". If it is set to \"true\" the actual allowlist associate with this project, if any, will be ignored. | [optional]
12
-
13
-
data/docs/ProjectReq.md DELETED
@@ -1,13 +0,0 @@
1
- # Harbor2LegacyClient::ProjectReq
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **project_name** | **String** | The name of the project. | [optional]
7
- **metadata** | [**ProjectMetadata**](ProjectMetadata.md) | The metadata of the project. | [optional]
8
- **cve_allowlist** | [**CVEAllowlist**](CVEAllowlist.md) | The CVE allowlist of the project. | [optional]
9
- **count_limit** | **Integer** | The count quota of the project. | [optional]
10
- **storage_limit** | **Integer** | The storage quota of the project. | [optional]
11
- **registry_id** | **Integer** | The ID of referenced registry when creating the proxy cache project | [optional]
12
-
13
-
@@ -1,8 +0,0 @@
1
- # Harbor2LegacyClient::ProjectScanner
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **uuid** | **String** | The identifier of the scanner registration | [optional]
7
-
8
-
@@ -1,15 +0,0 @@
1
- # Harbor2LegacyClient::ProjectSummary
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **repo_count** | **Integer** | The number of the repositories under this project. | [optional]
7
- **chart_count** | **Integer** | The total number of charts under this project. | [optional]
8
- **project_admin_count** | **Integer** | The total number of project admin members. | [optional]
9
- **maintainer_count** | **Integer** | The total number of maintainer members. | [optional]
10
- **developer_count** | **Integer** | The total number of developer members. | [optional]
11
- **guest_count** | **Integer** | The total number of guest members. | [optional]
12
- **quota** | [**ProjectSummaryQuota**](ProjectSummaryQuota.md) | | [optional]
13
- **registry** | [**Registry**](Registry.md) | | [optional]
14
-
15
-
@@ -1,9 +0,0 @@
1
- # Harbor2LegacyClient::ProjectSummaryQuota
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **hard** | [**ResourceList**](ResourceList.md) | The hard limits of the quota | [optional]
7
- **used** | [**ResourceList**](ResourceList.md) | The used status of the quota | [optional]
8
-
9
-
data/docs/PutRegistry.md DELETED
@@ -1,14 +0,0 @@
1
- # Harbor2LegacyClient::PutRegistry
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **name** | **String** | The registry name. | [optional]
7
- **description** | **String** | Description of the registry. | [optional]
8
- **url** | **String** | The registry address URL string. | [optional]
9
- **credential_type** | **String** | Credential type of the registry, e.g. 'basic'. | [optional]
10
- **access_key** | **String** | The registry access key. | [optional]
11
- **access_secret** | **String** | The registry access secret. | [optional]
12
- **insecure** | **BOOLEAN** | Whether or not the certificate will be verified when Harbor tries to access the server. | [optional]
13
-
14
-
data/docs/Quota.md DELETED
@@ -1,13 +0,0 @@
1
- # Harbor2LegacyClient::Quota
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **id** | **Integer** | ID of the quota | [optional]
7
- **ref** | [**QuotaRefObject**](QuotaRefObject.md) | The reference object of the quota | [optional]
8
- **hard** | [**ResourceList**](ResourceList.md) | The hard limits of the quota | [optional]
9
- **used** | [**ResourceList**](ResourceList.md) | The used status of the quota | [optional]
10
- **creation_time** | **String** | the creation time of the quota | [optional]
11
- **update_time** | **String** | the update time of the quota | [optional]
12
-
13
-
data/docs/QuotaApi.md DELETED
@@ -1,118 +0,0 @@
1
- # Harbor2LegacyClient::QuotaApi
2
-
3
- All URIs are relative to *http://localhost/api/v2.0*
4
-
5
- Method | HTTP request | Description
6
- ------------- | ------------- | -------------
7
- [**quotas_id_get**](QuotaApi.md#quotas_id_get) | **GET** /quotas/{id} | Get the specified quota
8
- [**quotas_id_put**](QuotaApi.md#quotas_id_put) | **PUT** /quotas/{id} | Update the specified quota
9
-
10
-
11
- # **quotas_id_get**
12
- > Quota quotas_id_get(id)
13
-
14
- Get the specified quota
15
-
16
- Get the specified quota
17
-
18
- ### Example
19
- ```ruby
20
- # load the gem
21
- require 'harbor2_legacy_client'
22
- # setup authorization
23
- Harbor2LegacyClient.configure do |config|
24
- # Configure HTTP basic authorization: basicAuth
25
- config.username = 'YOUR USERNAME'
26
- config.password = 'YOUR PASSWORD'
27
- end
28
-
29
- api_instance = Harbor2LegacyClient::QuotaApi.new
30
-
31
- id = 56 # Integer | Quota ID
32
-
33
-
34
- begin
35
- #Get the specified quota
36
- result = api_instance.quotas_id_get(id)
37
- p result
38
- rescue Harbor2LegacyClient::ApiError => e
39
- puts "Exception when calling QuotaApi->quotas_id_get: #{e}"
40
- end
41
- ```
42
-
43
- ### Parameters
44
-
45
- Name | Type | Description | Notes
46
- ------------- | ------------- | ------------- | -------------
47
- **id** | **Integer**| Quota ID |
48
-
49
- ### Return type
50
-
51
- [**Quota**](Quota.md)
52
-
53
- ### Authorization
54
-
55
- [basicAuth](../README.md#basicAuth)
56
-
57
- ### HTTP request headers
58
-
59
- - **Content-Type**: application/json
60
- - **Accept**: application/json, text/plain
61
-
62
-
63
-
64
- # **quotas_id_put**
65
- > quotas_id_put(id, hard)
66
-
67
- Update the specified quota
68
-
69
- Update hard limits of the specified quota
70
-
71
- ### Example
72
- ```ruby
73
- # load the gem
74
- require 'harbor2_legacy_client'
75
- # setup authorization
76
- Harbor2LegacyClient.configure do |config|
77
- # Configure HTTP basic authorization: basicAuth
78
- config.username = 'YOUR USERNAME'
79
- config.password = 'YOUR PASSWORD'
80
- end
81
-
82
- api_instance = Harbor2LegacyClient::QuotaApi.new
83
-
84
- id = 56 # Integer | Quota ID
85
-
86
- hard = Harbor2LegacyClient::QuotaUpdateReq.new # QuotaUpdateReq | The new hard limits for the quota
87
-
88
-
89
- begin
90
- #Update the specified quota
91
- api_instance.quotas_id_put(id, hard)
92
- rescue Harbor2LegacyClient::ApiError => e
93
- puts "Exception when calling QuotaApi->quotas_id_put: #{e}"
94
- end
95
- ```
96
-
97
- ### Parameters
98
-
99
- Name | Type | Description | Notes
100
- ------------- | ------------- | ------------- | -------------
101
- **id** | **Integer**| Quota ID |
102
- **hard** | [**QuotaUpdateReq**](QuotaUpdateReq.md)| The new hard limits for the quota |
103
-
104
- ### Return type
105
-
106
- nil (empty response body)
107
-
108
- ### Authorization
109
-
110
- [basicAuth](../README.md#basicAuth)
111
-
112
- ### HTTP request headers
113
-
114
- - **Content-Type**: application/json
115
- - **Accept**: application/json, text/plain
116
-
117
-
118
-
@@ -1,7 +0,0 @@
1
- # Harbor2LegacyClient::QuotaRefObject
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
-
7
-
@@ -1,8 +0,0 @@
1
- # Harbor2LegacyClient::QuotaSwitcher
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **enabled** | **BOOLEAN** | The quota is enable or disable | [optional]
7
-
8
-
@@ -1,8 +0,0 @@
1
- # Harbor2LegacyClient::QuotaUpdateReq
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **hard** | [**ResourceList**](ResourceList.md) | The new hard limits for the quota | [optional]
7
-
8
-
data/docs/Registry.md DELETED
@@ -1,17 +0,0 @@
1
- # Harbor2LegacyClient::Registry
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **id** | **Integer** | The registry ID. | [optional]
7
- **url** | **String** | The registry URL string. | [optional]
8
- **name** | **String** | The registry name. | [optional]
9
- **credential** | [**RegistryCredential**](RegistryCredential.md) | | [optional]
10
- **type** | **String** | Type of the registry, e.g. 'harbor'. | [optional]
11
- **insecure** | **BOOLEAN** | Whether or not the certificate will be verified when Harbor tries to access the server. | [optional]
12
- **description** | **String** | Description of the registry. | [optional]
13
- **status** | **String** | Health status of the registry. | [optional]
14
- **creation_time** | **String** | The create time of the policy. | [optional]
15
- **update_time** | **String** | The update time of the policy. | [optional]
16
-
17
-
@@ -1,10 +0,0 @@
1
- # Harbor2LegacyClient::RegistryCredential
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **type** | **String** | Credential type, such as 'basic', 'oauth'. | [optional]
7
- **access_key** | **String** | Access key, e.g. user name when credential type is 'basic'. | [optional]
8
- **access_secret** | **String** | Access secret, e.g. password when credential type is 'basic'. | [optional]
9
-
10
-
data/docs/RegistryInfo.md DELETED
@@ -1,11 +0,0 @@
1
- # Harbor2LegacyClient::RegistryInfo
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **type** | **String** | The registry type | [optional]
7
- **description** | **String** | The description | [optional]
8
- **supported_resource_filters** | [**Array<FilterStyle>**](FilterStyle.md) | The filters that the registry supports | [optional]
9
- **supported_triggers** | **Array<String>** | The triggers that the registry supports | [optional]
10
-
11
-