harbor_swagger_client 1.0.4 → 2.0.0

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