docker-hub 2.pre.beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (346) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/README.md +268 -0
  4. data/Rakefile +10 -0
  5. data/docker-hub.gemspec +39 -0
  6. data/docs/AccessToken.md +40 -0
  7. data/docs/AccessTokensApi.md +362 -0
  8. data/docs/AuditLog.md +30 -0
  9. data/docs/AuditLogAction.md +22 -0
  10. data/docs/AuditLogActions.md +20 -0
  11. data/docs/AuditLogsApi.md +163 -0
  12. data/docs/AuthCreateAccessTokenRequest.md +20 -0
  13. data/docs/AuthCreateTokenResponse.md +18 -0
  14. data/docs/AuthenticationApiApi.md +204 -0
  15. data/docs/BulkInvite.md +18 -0
  16. data/docs/BulkInviteInviteesInner.md +22 -0
  17. data/docs/Category.md +20 -0
  18. data/docs/CreateAccessTokenRequest.md +22 -0
  19. data/docs/CreateOrgAccessTokenRequest.md +24 -0
  20. data/docs/CreateOrgAccessTokenResponse.md +34 -0
  21. data/docs/EmailAddress.md +26 -0
  22. data/docs/EmailWithUsername.md +28 -0
  23. data/docs/Error.md +22 -0
  24. data/docs/GetAccessTokensResponse.md +26 -0
  25. data/docs/GetAuditActionsResponse.md +18 -0
  26. data/docs/GetAuditLogsResponse.md +18 -0
  27. data/docs/GetOrgAccessTokenResponse.md +32 -0
  28. data/docs/GetOrgAccessTokensResponse.md +24 -0
  29. data/docs/GroupMember.md +38 -0
  30. data/docs/GroupsApi.md +682 -0
  31. data/docs/Image.md +40 -0
  32. data/docs/ImmutableTagsSettings.md +20 -0
  33. data/docs/ImmutableTagsVerifyRequest.md +18 -0
  34. data/docs/ImmutableTagsVerifyResponse.md +18 -0
  35. data/docs/Invite.md +28 -0
  36. data/docs/InvitesApi.md +289 -0
  37. data/docs/Layer.md +22 -0
  38. data/docs/LegacyEmailAddress.md +28 -0
  39. data/docs/ListRepositoriesResponse.md +24 -0
  40. data/docs/OrgAccessToken.md +30 -0
  41. data/docs/OrgAccessTokenResource.md +22 -0
  42. data/docs/OrgAccessTokensApi.md +368 -0
  43. data/docs/OrgGroup.md +26 -0
  44. data/docs/OrgMember.md +52 -0
  45. data/docs/OrgMemberPaginated.md +24 -0
  46. data/docs/OrgSettings.md +18 -0
  47. data/docs/OrgSettingsApi.md +149 -0
  48. data/docs/OrgsApi.md +306 -0
  49. data/docs/Page.md +22 -0
  50. data/docs/PaginatedTags.md +24 -0
  51. data/docs/PatchAccessTokenRequest.md +20 -0
  52. data/docs/PostUsers2FALoginErrorResponse.md +18 -0
  53. data/docs/PostUsersLoginErrorResponse.md +20 -0
  54. data/docs/PostUsersLoginSuccessResponse.md +18 -0
  55. data/docs/ProtobufAny.md +20 -0
  56. data/docs/RepoCreationRequest.md +28 -0
  57. data/docs/RepoPermissions.md +22 -0
  58. data/docs/RepositoriesApi.md +806 -0
  59. data/docs/RepositoryGroup.md +22 -0
  60. data/docs/RepositoryGroupCreationRequest.md +20 -0
  61. data/docs/RepositoryInfo.md +68 -0
  62. data/docs/RepositoryListEntry.md +50 -0
  63. data/docs/RestrictedImages.md +22 -0
  64. data/docs/RpcStatus.md +22 -0
  65. data/docs/ScimApi.md +642 -0
  66. data/docs/ScimEmail.md +22 -0
  67. data/docs/ScimError.md +22 -0
  68. data/docs/ScimGroup.md +20 -0
  69. data/docs/ScimResourceType.md +28 -0
  70. data/docs/ScimSchema.md +26 -0
  71. data/docs/ScimSchemaAttribute.md +34 -0
  72. data/docs/ScimSchemaParentAttribute.md +36 -0
  73. data/docs/ScimServiceProviderConfig.md +34 -0
  74. data/docs/ScimServiceProviderConfigAuthenticationSchemes.md +24 -0
  75. data/docs/ScimServiceProviderConfigBulk.md +22 -0
  76. data/docs/ScimServiceProviderConfigChangePassword.md +18 -0
  77. data/docs/ScimServiceProviderConfigFilter.md +20 -0
  78. data/docs/ScimServiceProviderConfigPatch.md +18 -0
  79. data/docs/ScimServiceProviderConfigSort.md +18 -0
  80. data/docs/ScimUser.md +34 -0
  81. data/docs/ScimUserMeta.md +24 -0
  82. data/docs/ScimUserName.md +20 -0
  83. data/docs/Tag.md +42 -0
  84. data/docs/TeamRepo.md +20 -0
  85. data/docs/UpdateOrgAccessTokenRequest.md +24 -0
  86. data/docs/UpdateOrgAccessTokenResponse.md +32 -0
  87. data/docs/UpdateRepositoryImmutableTagsRequest.md +20 -0
  88. data/docs/User.md +36 -0
  89. data/docs/Users2FALoginRequest.md +20 -0
  90. data/docs/UsersLoginRequest.md +20 -0
  91. data/docs/V2AccessTokensUuidGet200Response.md +40 -0
  92. data/docs/V2InvitesBulkPost202Response.md +18 -0
  93. data/docs/V2InvitesBulkPostRequest.md +26 -0
  94. data/docs/V2OrgsNameSettingsPutRequest.md +18 -0
  95. data/docs/V2OrgsNameSettingsPutRequestRestrictedImages.md +22 -0
  96. data/docs/V2OrgsOrgNameGroupsGet200Response.md +24 -0
  97. data/docs/V2OrgsOrgNameGroupsGroupNameMembersGet200Response.md +24 -0
  98. data/docs/V2OrgsOrgNameGroupsGroupNameMembersPostRequest.md +18 -0
  99. data/docs/V2OrgsOrgNameGroupsGroupNamePatchRequest.md +20 -0
  100. data/docs/V2OrgsOrgNameGroupsPostRequest.md +20 -0
  101. data/docs/V2OrgsOrgNameInvitesGet200Response.md +18 -0
  102. data/docs/V2OrgsOrgNameMembersExportGet200ResponseInner.md +30 -0
  103. data/docs/V2OrgsOrgNameMembersUsernamePutRequest.md +18 -0
  104. data/docs/V2Scim20ResourceTypesGet200Response.md +22 -0
  105. data/docs/V2Scim20ResourceTypesNameGet404Response.md +22 -0
  106. data/docs/V2Scim20SchemasGet200Response.md +22 -0
  107. data/docs/V2Scim20ServiceProviderConfigGet401Response.md +22 -0
  108. data/docs/V2Scim20ServiceProviderConfigGet500Response.md +22 -0
  109. data/docs/V2Scim20UsersGet200Response.md +26 -0
  110. data/docs/V2Scim20UsersGet400Response.md +24 -0
  111. data/docs/V2Scim20UsersGet403Response.md +22 -0
  112. data/docs/V2Scim20UsersIdPutRequest.md +22 -0
  113. data/docs/V2Scim20UsersIdPutRequestName.md +20 -0
  114. data/docs/V2Scim20UsersPost409Response.md +22 -0
  115. data/docs/V2Scim20UsersPostRequest.md +22 -0
  116. data/docs/ValueError.md +20 -0
  117. data/git_push.sh +57 -0
  118. data/lib/docker-hub/api/access_tokens_api.rb +353 -0
  119. data/lib/docker-hub/api/audit_logs_api.rb +169 -0
  120. data/lib/docker-hub/api/authentication_api_api.rb +222 -0
  121. data/lib/docker-hub/api/groups_api.rb +690 -0
  122. data/lib/docker-hub/api/invites_api.rb +282 -0
  123. data/lib/docker-hub/api/org_access_tokens_api.rb +371 -0
  124. data/lib/docker-hub/api/org_settings_api.rb +159 -0
  125. data/lib/docker-hub/api/orgs_api.rb +323 -0
  126. data/lib/docker-hub/api/repositories_api.rb +849 -0
  127. data/lib/docker-hub/api/scim_api.rb +615 -0
  128. data/lib/docker-hub/api_client.rb +394 -0
  129. data/lib/docker-hub/api_error.rb +58 -0
  130. data/lib/docker-hub/configuration.rb +306 -0
  131. data/lib/docker-hub/models/access_token.rb +316 -0
  132. data/lib/docker-hub/models/audit_log.rb +271 -0
  133. data/lib/docker-hub/models/audit_log_action.rb +236 -0
  134. data/lib/docker-hub/models/audit_log_actions.rb +227 -0
  135. data/lib/docker-hub/models/auth_create_access_token_request.rb +240 -0
  136. data/lib/docker-hub/models/auth_create_token_response.rb +216 -0
  137. data/lib/docker-hub/models/bulk_invite.rb +217 -0
  138. data/lib/docker-hub/models/bulk_invite_invitees_inner.rb +234 -0
  139. data/lib/docker-hub/models/category.rb +289 -0
  140. data/lib/docker-hub/models/create_access_token_request.rb +279 -0
  141. data/lib/docker-hub/models/create_org_access_token_request.rb +248 -0
  142. data/lib/docker-hub/models/create_org_access_token_response.rb +298 -0
  143. data/lib/docker-hub/models/email_address.rb +250 -0
  144. data/lib/docker-hub/models/email_with_username.rb +266 -0
  145. data/lib/docker-hub/models/error.rb +234 -0
  146. data/lib/docker-hub/models/get_access_tokens_response.rb +252 -0
  147. data/lib/docker-hub/models/get_audit_actions_response.rb +218 -0
  148. data/lib/docker-hub/models/get_audit_logs_response.rb +218 -0
  149. data/lib/docker-hub/models/get_org_access_token_response.rb +289 -0
  150. data/lib/docker-hub/models/get_org_access_tokens_response.rb +243 -0
  151. data/lib/docker-hub/models/group_member.rb +339 -0
  152. data/lib/docker-hub/models/image.rb +363 -0
  153. data/lib/docker-hub/models/immutable_tags_settings.rb +241 -0
  154. data/lib/docker-hub/models/immutable_tags_verify_request.rb +243 -0
  155. data/lib/docker-hub/models/immutable_tags_verify_response.rb +224 -0
  156. data/lib/docker-hub/models/invite.rb +263 -0
  157. data/lib/docker-hub/models/layer.rb +236 -0
  158. data/lib/docker-hub/models/legacy_email_address.rb +266 -0
  159. data/lib/docker-hub/models/list_repositories_response.rb +255 -0
  160. data/lib/docker-hub/models/org_access_token.rb +270 -0
  161. data/lib/docker-hub/models/org_access_token_resource.rb +271 -0
  162. data/lib/docker-hub/models/org_group.rb +255 -0
  163. data/lib/docker-hub/models/org_member.rb +431 -0
  164. data/lib/docker-hub/models/org_member_paginated.rb +247 -0
  165. data/lib/docker-hub/models/org_settings.rb +214 -0
  166. data/lib/docker-hub/models/page.rb +237 -0
  167. data/lib/docker-hub/models/paginated_tags.rb +255 -0
  168. data/lib/docker-hub/models/patch_access_token_request.rb +251 -0
  169. data/lib/docker-hub/models/post_users2_fa_login_error_response.rb +216 -0
  170. data/lib/docker-hub/models/post_users_login_error_response.rb +234 -0
  171. data/lib/docker-hub/models/post_users_login_success_response.rb +216 -0
  172. data/lib/docker-hub/models/protobuf_any.rb +223 -0
  173. data/lib/docker-hub/models/repo_creation_request.rb +358 -0
  174. data/lib/docker-hub/models/repo_permissions.rb +256 -0
  175. data/lib/docker-hub/models/repository_group.rb +269 -0
  176. data/lib/docker-hub/models/repository_group_creation_request.rb +273 -0
  177. data/lib/docker-hub/models/repository_info.rb +609 -0
  178. data/lib/docker-hub/models/repository_list_entry.rb +488 -0
  179. data/lib/docker-hub/models/restricted_images.rb +235 -0
  180. data/lib/docker-hub/models/rpc_status.rb +234 -0
  181. data/lib/docker-hub/models/scim_email.rb +232 -0
  182. data/lib/docker-hub/models/scim_error.rb +236 -0
  183. data/lib/docker-hub/models/scim_group.rb +223 -0
  184. data/lib/docker-hub/models/scim_resource_type.rb +261 -0
  185. data/lib/docker-hub/models/scim_schema.rb +254 -0
  186. data/lib/docker-hub/models/scim_schema_attribute.rb +320 -0
  187. data/lib/docker-hub/models/scim_schema_parent_attribute.rb +338 -0
  188. data/lib/docker-hub/models/scim_service_provider_config.rb +288 -0
  189. data/lib/docker-hub/models/scim_service_provider_config_authentication_schemes.rb +241 -0
  190. data/lib/docker-hub/models/scim_service_provider_config_bulk.rb +232 -0
  191. data/lib/docker-hub/models/scim_service_provider_config_change_password.rb +214 -0
  192. data/lib/docker-hub/models/scim_service_provider_config_filter.rb +223 -0
  193. data/lib/docker-hub/models/scim_service_provider_config_patch.rb +214 -0
  194. data/lib/docker-hub/models/scim_service_provider_config_sort.rb +214 -0
  195. data/lib/docker-hub/models/scim_user.rb +295 -0
  196. data/lib/docker-hub/models/scim_user_meta.rb +243 -0
  197. data/lib/docker-hub/models/scim_user_name.rb +223 -0
  198. data/lib/docker-hub/models/tag.rb +371 -0
  199. data/lib/docker-hub/models/team_repo.rb +244 -0
  200. data/lib/docker-hub/models/update_org_access_token_request.rb +247 -0
  201. data/lib/docker-hub/models/update_org_access_token_response.rb +289 -0
  202. data/lib/docker-hub/models/update_repository_immutable_tags_request.rb +241 -0
  203. data/lib/docker-hub/models/user.rb +330 -0
  204. data/lib/docker-hub/models/users2_fa_login_request.rb +240 -0
  205. data/lib/docker-hub/models/users_login_request.rb +240 -0
  206. data/lib/docker-hub/models/v2_access_tokens_uuid_get200_response.rb +323 -0
  207. data/lib/docker-hub/models/v2_invites_bulk_post202_response.rb +214 -0
  208. data/lib/docker-hub/models/v2_invites_bulk_post_request.rb +271 -0
  209. data/lib/docker-hub/models/v2_orgs_name_settings_put_request.rb +221 -0
  210. data/lib/docker-hub/models/v2_orgs_name_settings_put_request_restricted_images.rb +263 -0
  211. data/lib/docker-hub/models/v2_orgs_org_name_groups_get200_response.rb +243 -0
  212. data/lib/docker-hub/models/v2_orgs_org_name_groups_group_name_members_get200_response.rb +243 -0
  213. data/lib/docker-hub/models/v2_orgs_org_name_groups_group_name_members_post_request.rb +221 -0
  214. data/lib/docker-hub/models/v2_orgs_org_name_groups_group_name_patch_request.rb +223 -0
  215. data/lib/docker-hub/models/v2_orgs_org_name_groups_post_request.rb +230 -0
  216. data/lib/docker-hub/models/v2_orgs_org_name_invites_get200_response.rb +216 -0
  217. data/lib/docker-hub/models/v2_orgs_org_name_members_export_get200_response_inner.rb +356 -0
  218. data/lib/docker-hub/models/v2_orgs_org_name_members_username_put_request.rb +256 -0
  219. data/lib/docker-hub/models/v2_scim20_resource_types_get200_response.rb +236 -0
  220. data/lib/docker-hub/models/v2_scim20_resource_types_name_get404_response.rb +243 -0
  221. data/lib/docker-hub/models/v2_scim20_schemas_get200_response.rb +236 -0
  222. data/lib/docker-hub/models/v2_scim20_service_provider_config_get401_response.rb +243 -0
  223. data/lib/docker-hub/models/v2_scim20_service_provider_config_get500_response.rb +243 -0
  224. data/lib/docker-hub/models/v2_scim20_users_get200_response.rb +254 -0
  225. data/lib/docker-hub/models/v2_scim20_users_get400_response.rb +253 -0
  226. data/lib/docker-hub/models/v2_scim20_users_get403_response.rb +243 -0
  227. data/lib/docker-hub/models/v2_scim20_users_id_put_request.rb +244 -0
  228. data/lib/docker-hub/models/v2_scim20_users_id_put_request_name.rb +230 -0
  229. data/lib/docker-hub/models/v2_scim20_users_post409_response.rb +243 -0
  230. data/lib/docker-hub/models/v2_scim20_users_post_request.rb +249 -0
  231. data/lib/docker-hub/models/value_error.rb +226 -0
  232. data/lib/docker-hub/version.rb +15 -0
  233. data/lib/docker-hub.rb +150 -0
  234. data/spec/api/access_tokens_api_spec.rb +97 -0
  235. data/spec/api/audit_logs_api_spec.rb +66 -0
  236. data/spec/api/authentication_api_api_spec.rb +71 -0
  237. data/spec/api/groups_api_spec.rb +162 -0
  238. data/spec/api/invites_api_spec.rb +84 -0
  239. data/spec/api/org_access_tokens_api_spec.rb +100 -0
  240. data/spec/api/org_settings_api_spec.rb +60 -0
  241. data/spec/api/orgs_api_spec.rb +92 -0
  242. data/spec/api/repositories_api_spec.rb +183 -0
  243. data/spec/api/scim_api_spec.rb +146 -0
  244. data/spec/models/access_token_spec.rb +102 -0
  245. data/spec/models/audit_log_action_spec.rb +48 -0
  246. data/spec/models/audit_log_actions_spec.rb +42 -0
  247. data/spec/models/audit_log_spec.rb +72 -0
  248. data/spec/models/auth_create_access_token_request_spec.rb +42 -0
  249. data/spec/models/auth_create_token_response_spec.rb +36 -0
  250. data/spec/models/bulk_invite_invitees_inner_spec.rb +48 -0
  251. data/spec/models/bulk_invite_spec.rb +36 -0
  252. data/spec/models/category_spec.rb +42 -0
  253. data/spec/models/create_access_token_request_spec.rb +48 -0
  254. data/spec/models/create_org_access_token_request_spec.rb +54 -0
  255. data/spec/models/create_org_access_token_response_spec.rb +84 -0
  256. data/spec/models/email_address_spec.rb +60 -0
  257. data/spec/models/email_with_username_spec.rb +66 -0
  258. data/spec/models/error_spec.rb +48 -0
  259. data/spec/models/get_access_tokens_response_spec.rb +60 -0
  260. data/spec/models/get_audit_actions_response_spec.rb +36 -0
  261. data/spec/models/get_audit_logs_response_spec.rb +36 -0
  262. data/spec/models/get_org_access_token_response_spec.rb +78 -0
  263. data/spec/models/get_org_access_tokens_response_spec.rb +54 -0
  264. data/spec/models/group_member_spec.rb +100 -0
  265. data/spec/models/image_spec.rb +106 -0
  266. data/spec/models/immutable_tags_settings_spec.rb +42 -0
  267. data/spec/models/immutable_tags_verify_request_spec.rb +36 -0
  268. data/spec/models/immutable_tags_verify_response_spec.rb +36 -0
  269. data/spec/models/invite_spec.rb +66 -0
  270. data/spec/models/layer_spec.rb +48 -0
  271. data/spec/models/legacy_email_address_spec.rb +66 -0
  272. data/spec/models/list_repositories_response_spec.rb +54 -0
  273. data/spec/models/org_access_token_resource_spec.rb +52 -0
  274. data/spec/models/org_access_token_spec.rb +72 -0
  275. data/spec/models/org_group_spec.rb +60 -0
  276. data/spec/models/org_member_paginated_spec.rb +54 -0
  277. data/spec/models/org_member_spec.rb +146 -0
  278. data/spec/models/org_settings_spec.rb +36 -0
  279. data/spec/models/page_spec.rb +48 -0
  280. data/spec/models/paginated_tags_spec.rb +54 -0
  281. data/spec/models/patch_access_token_request_spec.rb +42 -0
  282. data/spec/models/post_users2_fa_login_error_response_spec.rb +36 -0
  283. data/spec/models/post_users_login_error_response_spec.rb +42 -0
  284. data/spec/models/post_users_login_success_response_spec.rb +36 -0
  285. data/spec/models/protobuf_any_spec.rb +42 -0
  286. data/spec/models/repo_creation_request_spec.rb +66 -0
  287. data/spec/models/repo_permissions_spec.rb +48 -0
  288. data/spec/models/repository_group_creation_request_spec.rb +46 -0
  289. data/spec/models/repository_group_spec.rb +52 -0
  290. data/spec/models/repository_info_spec.rb +186 -0
  291. data/spec/models/repository_list_entry_spec.rb +140 -0
  292. data/spec/models/restricted_images_spec.rb +48 -0
  293. data/spec/models/rpc_status_spec.rb +48 -0
  294. data/spec/models/scim_email_spec.rb +48 -0
  295. data/spec/models/scim_error_spec.rb +48 -0
  296. data/spec/models/scim_group_spec.rb +42 -0
  297. data/spec/models/scim_resource_type_spec.rb +66 -0
  298. data/spec/models/scim_schema_attribute_spec.rb +88 -0
  299. data/spec/models/scim_schema_parent_attribute_spec.rb +94 -0
  300. data/spec/models/scim_schema_spec.rb +60 -0
  301. data/spec/models/scim_service_provider_config_authentication_schemes_spec.rb +54 -0
  302. data/spec/models/scim_service_provider_config_bulk_spec.rb +48 -0
  303. data/spec/models/scim_service_provider_config_change_password_spec.rb +36 -0
  304. data/spec/models/scim_service_provider_config_filter_spec.rb +42 -0
  305. data/spec/models/scim_service_provider_config_patch_spec.rb +36 -0
  306. data/spec/models/scim_service_provider_config_sort_spec.rb +36 -0
  307. data/spec/models/scim_service_provider_config_spec.rb +84 -0
  308. data/spec/models/scim_user_meta_spec.rb +54 -0
  309. data/spec/models/scim_user_name_spec.rb +42 -0
  310. data/spec/models/scim_user_spec.rb +84 -0
  311. data/spec/models/tag_spec.rb +112 -0
  312. data/spec/models/team_repo_spec.rb +46 -0
  313. data/spec/models/update_org_access_token_request_spec.rb +54 -0
  314. data/spec/models/update_org_access_token_response_spec.rb +78 -0
  315. data/spec/models/update_repository_immutable_tags_request_spec.rb +42 -0
  316. data/spec/models/user_spec.rb +94 -0
  317. data/spec/models/users2_fa_login_request_spec.rb +42 -0
  318. data/spec/models/users_login_request_spec.rb +42 -0
  319. data/spec/models/v2_access_tokens_uuid_get200_response_spec.rb +102 -0
  320. data/spec/models/v2_invites_bulk_post202_response_spec.rb +36 -0
  321. data/spec/models/v2_invites_bulk_post_request_spec.rb +60 -0
  322. data/spec/models/v2_orgs_name_settings_put_request_restricted_images_spec.rb +48 -0
  323. data/spec/models/v2_orgs_name_settings_put_request_spec.rb +36 -0
  324. data/spec/models/v2_orgs_org_name_groups_get200_response_spec.rb +54 -0
  325. data/spec/models/v2_orgs_org_name_groups_group_name_members_get200_response_spec.rb +54 -0
  326. data/spec/models/v2_orgs_org_name_groups_group_name_members_post_request_spec.rb +36 -0
  327. data/spec/models/v2_orgs_org_name_groups_group_name_patch_request_spec.rb +42 -0
  328. data/spec/models/v2_orgs_org_name_groups_post_request_spec.rb +42 -0
  329. data/spec/models/v2_orgs_org_name_invites_get200_response_spec.rb +36 -0
  330. data/spec/models/v2_orgs_org_name_members_export_get200_response_inner_spec.rb +80 -0
  331. data/spec/models/v2_orgs_org_name_members_username_put_request_spec.rb +40 -0
  332. data/spec/models/v2_scim20_resource_types_get200_response_spec.rb +48 -0
  333. data/spec/models/v2_scim20_resource_types_name_get404_response_spec.rb +48 -0
  334. data/spec/models/v2_scim20_schemas_get200_response_spec.rb +48 -0
  335. data/spec/models/v2_scim20_service_provider_config_get401_response_spec.rb +48 -0
  336. data/spec/models/v2_scim20_service_provider_config_get500_response_spec.rb +48 -0
  337. data/spec/models/v2_scim20_users_get200_response_spec.rb +60 -0
  338. data/spec/models/v2_scim20_users_get400_response_spec.rb +54 -0
  339. data/spec/models/v2_scim20_users_get403_response_spec.rb +48 -0
  340. data/spec/models/v2_scim20_users_id_put_request_name_spec.rb +42 -0
  341. data/spec/models/v2_scim20_users_id_put_request_spec.rb +48 -0
  342. data/spec/models/v2_scim20_users_post409_response_spec.rb +48 -0
  343. data/spec/models/v2_scim20_users_post_request_spec.rb +48 -0
  344. data/spec/models/value_error_spec.rb +42 -0
  345. data/spec/spec_helper.rb +111 -0
  346. metadata +539 -0
@@ -0,0 +1,162 @@
1
+ =begin
2
+ #Docker HUB API
3
+
4
+ #Docker Hub is a service provided by Docker for finding and sharing container images with your team. It is the world's largest library and community for container images. In addition to the [Docker Hub UI](https://docs.docker.com/docker-hub/) and [Docker Hub CLI tool](https://github.com/docker/hub-tool#readme) (currently experimental), Docker provides an API that allows you to interact with Docker Hub. Browse through the Docker Hub API documentation to explore the supported endpoints.
5
+
6
+ The version of the OpenAPI document: 2-beta
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 7.2.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for DockerHub::GroupsApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'GroupsApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = DockerHub::GroupsApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of GroupsApi' do
30
+ it 'should create an instance of GroupsApi' do
31
+ expect(@api_instance).to be_instance_of(DockerHub::GroupsApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for v2_orgs_org_name_groups_get
36
+ # Get groups of an organization
37
+ # <span class=\"oat\"></span>
38
+ # @param org_name Name of the organization (namespace).
39
+ # @param [Hash] opts the optional parameters
40
+ # @option opts [Integer] :page Page number (starts on 1).
41
+ # @option opts [Integer] :page_size Number of items (rows) per page.
42
+ # @option opts [String] :username Get groups for the specified username in the organization.
43
+ # @option opts [String] :search Get groups for the specified group in the organization.
44
+ # @return [V2OrgsOrgNameGroupsGet200Response]
45
+ describe 'v2_orgs_org_name_groups_get test' do
46
+ it 'should work' do
47
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
48
+ end
49
+ end
50
+
51
+ # unit tests for v2_orgs_org_name_groups_group_name_delete
52
+ # Delete an organization group
53
+ # <span class=\"oat\"></span>
54
+ # @param org_name Name of the organization (namespace).
55
+ # @param group_name Name of the group (team) in the organization.
56
+ # @param [Hash] opts the optional parameters
57
+ # @return [nil]
58
+ describe 'v2_orgs_org_name_groups_group_name_delete test' do
59
+ it 'should work' do
60
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
61
+ end
62
+ end
63
+
64
+ # unit tests for v2_orgs_org_name_groups_group_name_get
65
+ # Get a group of an organization
66
+ # <span class=\"oat\"></span>
67
+ # @param org_name Name of the organization (namespace).
68
+ # @param group_name Name of the group (team) in the organization.
69
+ # @param [Hash] opts the optional parameters
70
+ # @return [OrgGroup]
71
+ describe 'v2_orgs_org_name_groups_group_name_get test' do
72
+ it 'should work' do
73
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
74
+ end
75
+ end
76
+
77
+ # unit tests for v2_orgs_org_name_groups_group_name_members_get
78
+ # List members of a group
79
+ # List the members (users) that are in a group. If user is owner of the org or has otherwise elevated permissions, they can search by email and the result will also contain emails. <span class=\"oat\"></span>
80
+ # @param org_name Name of the organization (namespace).
81
+ # @param group_name Name of the group (team) in the organization.
82
+ # @param [Hash] opts the optional parameters
83
+ # @option opts [Integer] :page Page number (starts on 1).
84
+ # @option opts [Integer] :page_size Number of items (rows) per page.
85
+ # @option opts [String] :search Search members by username, full_name or email.
86
+ # @return [V2OrgsOrgNameGroupsGroupNameMembersGet200Response]
87
+ describe 'v2_orgs_org_name_groups_group_name_members_get test' do
88
+ it 'should work' do
89
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
90
+ end
91
+ end
92
+
93
+ # unit tests for v2_orgs_org_name_groups_group_name_members_post
94
+ # Add a member to a group
95
+ # <span class=\"oat\"></span>
96
+ # @param org_name Name of the organization (namespace).
97
+ # @param group_name Name of the group (team) in the organization.
98
+ # @param v2_orgs_org_name_groups_group_name_members_post_request
99
+ # @param [Hash] opts the optional parameters
100
+ # @return [nil]
101
+ describe 'v2_orgs_org_name_groups_group_name_members_post test' do
102
+ it 'should work' do
103
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
104
+ end
105
+ end
106
+
107
+ # unit tests for v2_orgs_org_name_groups_group_name_members_username_delete
108
+ # Remove a user from a group
109
+ # <span class=\"oat\"></span>
110
+ # @param org_name Name of the organization (namespace).
111
+ # @param group_name Name of the group (team) in the organization.
112
+ # @param username Username, identifier for the user (namespace, DockerID).
113
+ # @param [Hash] opts the optional parameters
114
+ # @return [nil]
115
+ describe 'v2_orgs_org_name_groups_group_name_members_username_delete test' do
116
+ it 'should work' do
117
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
118
+ end
119
+ end
120
+
121
+ # unit tests for v2_orgs_org_name_groups_group_name_patch
122
+ # Update some details for an organization group
123
+ # <span class=\"oat\"></span>
124
+ # @param org_name Name of the organization (namespace).
125
+ # @param group_name Name of the group (team) in the organization.
126
+ # @param [Hash] opts the optional parameters
127
+ # @option opts [V2OrgsOrgNameGroupsGroupNamePatchRequest] :v2_orgs_org_name_groups_group_name_patch_request
128
+ # @return [OrgGroup]
129
+ describe 'v2_orgs_org_name_groups_group_name_patch test' do
130
+ it 'should work' do
131
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
132
+ end
133
+ end
134
+
135
+ # unit tests for v2_orgs_org_name_groups_group_name_put
136
+ # Update the details for an organization group
137
+ # <span class=\"oat\"></span>
138
+ # @param org_name Name of the organization (namespace).
139
+ # @param group_name Name of the group (team) in the organization.
140
+ # @param [Hash] opts the optional parameters
141
+ # @option opts [V2OrgsOrgNameGroupsPostRequest] :v2_orgs_org_name_groups_post_request
142
+ # @return [OrgGroup]
143
+ describe 'v2_orgs_org_name_groups_group_name_put test' do
144
+ it 'should work' do
145
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
146
+ end
147
+ end
148
+
149
+ # unit tests for v2_orgs_org_name_groups_post
150
+ # Create a new group
151
+ # Create a new group within an organization. <span class=\"oat\"></span>
152
+ # @param org_name Name of the organization (namespace).
153
+ # @param [Hash] opts the optional parameters
154
+ # @option opts [V2OrgsOrgNameGroupsPostRequest] :v2_orgs_org_name_groups_post_request
155
+ # @return [OrgGroup]
156
+ describe 'v2_orgs_org_name_groups_post test' do
157
+ it 'should work' do
158
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
159
+ end
160
+ end
161
+
162
+ end
@@ -0,0 +1,84 @@
1
+ =begin
2
+ #Docker HUB API
3
+
4
+ #Docker Hub is a service provided by Docker for finding and sharing container images with your team. It is the world's largest library and community for container images. In addition to the [Docker Hub UI](https://docs.docker.com/docker-hub/) and [Docker Hub CLI tool](https://github.com/docker/hub-tool#readme) (currently experimental), Docker provides an API that allows you to interact with Docker Hub. Browse through the Docker Hub API documentation to explore the supported endpoints.
5
+
6
+ The version of the OpenAPI document: 2-beta
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 7.2.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for DockerHub::InvitesApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'InvitesApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = DockerHub::InvitesApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of InvitesApi' do
30
+ it 'should create an instance of InvitesApi' do
31
+ expect(@api_instance).to be_instance_of(DockerHub::InvitesApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for v2_invites_bulk_post
36
+ # Bulk create invites
37
+ # Create multiple invites by emails or DockerIDs. Only a team owner can create invites. <span class=\"oat\"></span>
38
+ # @param v2_invites_bulk_post_request
39
+ # @param [Hash] opts the optional parameters
40
+ # @option opts [String] :x_analytics_client_feature Optional string that indicates the feature used to submit the bulk invites (e.g.'file', 'web')
41
+ # @return [V2InvitesBulkPost202Response]
42
+ describe 'v2_invites_bulk_post test' do
43
+ it 'should work' do
44
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
45
+ end
46
+ end
47
+
48
+ # unit tests for v2_invites_id_delete
49
+ # Cancel an invite
50
+ # Mark the invite as cancelled so it doesn't show up on the list of pending invites <span class=\"oat\"></span>
51
+ # @param id
52
+ # @param [Hash] opts the optional parameters
53
+ # @return [nil]
54
+ describe 'v2_invites_id_delete test' do
55
+ it 'should work' do
56
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
57
+ end
58
+ end
59
+
60
+ # unit tests for v2_invites_id_resend_patch
61
+ # Resend an invite
62
+ # Resend a pending invite to the user, any org owner can resend an invite <span class=\"oat\"></span>
63
+ # @param id
64
+ # @param [Hash] opts the optional parameters
65
+ # @return [nil]
66
+ describe 'v2_invites_id_resend_patch test' do
67
+ it 'should work' do
68
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
69
+ end
70
+ end
71
+
72
+ # unit tests for v2_orgs_org_name_invites_get
73
+ # List org invites
74
+ # Return all pending invites for a given org, only team owners can call this endpoint <span class=\"oat\"></span>
75
+ # @param org_name Name of the organization (namespace).
76
+ # @param [Hash] opts the optional parameters
77
+ # @return [V2OrgsOrgNameInvitesGet200Response]
78
+ describe 'v2_orgs_org_name_invites_get test' do
79
+ it 'should work' do
80
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
81
+ end
82
+ end
83
+
84
+ end
@@ -0,0 +1,100 @@
1
+ =begin
2
+ #Docker HUB API
3
+
4
+ #Docker Hub is a service provided by Docker for finding and sharing container images with your team. It is the world's largest library and community for container images. In addition to the [Docker Hub UI](https://docs.docker.com/docker-hub/) and [Docker Hub CLI tool](https://github.com/docker/hub-tool#readme) (currently experimental), Docker provides an API that allows you to interact with Docker Hub. Browse through the Docker Hub API documentation to explore the supported endpoints.
5
+
6
+ The version of the OpenAPI document: 2-beta
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 7.2.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for DockerHub::OrgAccessTokensApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'OrgAccessTokensApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = DockerHub::OrgAccessTokensApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of OrgAccessTokensApi' do
30
+ it 'should create an instance of OrgAccessTokensApi' do
31
+ expect(@api_instance).to be_instance_of(DockerHub::OrgAccessTokensApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for v2_orgs_name_access_tokens_get
36
+ # List access tokens
37
+ # List access tokens for an organization.
38
+ # @param [Hash] opts the optional parameters
39
+ # @option opts [Float] :page
40
+ # @option opts [Float] :page_size
41
+ # @return [GetOrgAccessTokensResponse]
42
+ describe 'v2_orgs_name_access_tokens_get test' do
43
+ it 'should work' do
44
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
45
+ end
46
+ end
47
+
48
+ # unit tests for v2_orgs_name_access_tokens_post
49
+ # Create access token
50
+ # Create an access token for an organization.
51
+ # @param create_org_access_token_request
52
+ # @param [Hash] opts the optional parameters
53
+ # @return [CreateOrgAccessTokenResponse]
54
+ describe 'v2_orgs_name_access_tokens_post test' do
55
+ it 'should work' do
56
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
57
+ end
58
+ end
59
+
60
+ # unit tests for v2_orgs_org_name_access_tokens_access_token_id_delete
61
+ # Delete access token
62
+ # Delete a specific access token for an organization. This action cannot be undone.
63
+ # @param org_name Name of the organization (namespace).
64
+ # @param access_token_id The ID of the access token to retrieve
65
+ # @param [Hash] opts the optional parameters
66
+ # @return [nil]
67
+ describe 'v2_orgs_org_name_access_tokens_access_token_id_delete test' do
68
+ it 'should work' do
69
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
70
+ end
71
+ end
72
+
73
+ # unit tests for v2_orgs_org_name_access_tokens_access_token_id_get
74
+ # Get access token
75
+ # Get details of a specific access token for an organization.
76
+ # @param org_name Name of the organization (namespace).
77
+ # @param access_token_id The ID of the access token to retrieve
78
+ # @param [Hash] opts the optional parameters
79
+ # @return [GetOrgAccessTokenResponse]
80
+ describe 'v2_orgs_org_name_access_tokens_access_token_id_get test' do
81
+ it 'should work' do
82
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
83
+ end
84
+ end
85
+
86
+ # unit tests for v2_orgs_org_name_access_tokens_access_token_id_patch
87
+ # Update access token
88
+ # Update a specific access token for an organization.
89
+ # @param org_name Name of the organization (namespace).
90
+ # @param access_token_id The ID of the access token to retrieve
91
+ # @param update_org_access_token_request
92
+ # @param [Hash] opts the optional parameters
93
+ # @return [UpdateOrgAccessTokenResponse]
94
+ describe 'v2_orgs_org_name_access_tokens_access_token_id_patch test' do
95
+ it 'should work' do
96
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
97
+ end
98
+ end
99
+
100
+ end
@@ -0,0 +1,60 @@
1
+ =begin
2
+ #Docker HUB API
3
+
4
+ #Docker Hub is a service provided by Docker for finding and sharing container images with your team. It is the world's largest library and community for container images. In addition to the [Docker Hub UI](https://docs.docker.com/docker-hub/) and [Docker Hub CLI tool](https://github.com/docker/hub-tool#readme) (currently experimental), Docker provides an API that allows you to interact with Docker Hub. Browse through the Docker Hub API documentation to explore the supported endpoints.
5
+
6
+ The version of the OpenAPI document: 2-beta
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 7.2.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for DockerHub::OrgSettingsApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'OrgSettingsApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = DockerHub::OrgSettingsApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of OrgSettingsApi' do
30
+ it 'should create an instance of OrgSettingsApi' do
31
+ expect(@api_instance).to be_instance_of(DockerHub::OrgSettingsApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for v2_orgs_name_settings_get
36
+ # Get organization settings
37
+ # Returns organization settings by name.
38
+ # @param name Name of the organization.
39
+ # @param [Hash] opts the optional parameters
40
+ # @return [OrgSettings]
41
+ describe 'v2_orgs_name_settings_get test' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
44
+ end
45
+ end
46
+
47
+ # unit tests for v2_orgs_name_settings_put
48
+ # Update organization settings
49
+ # Updates an organization's settings. Some settings are only used when the organization is on a business subscription. ***Only users with administrative privileges for the organization (owner role) can modify these settings.*** The following settings are only used on a business subscription: - `restricted_images`
50
+ # @param name Name of the organization.
51
+ # @param v2_orgs_name_settings_put_request
52
+ # @param [Hash] opts the optional parameters
53
+ # @return [OrgSettings]
54
+ describe 'v2_orgs_name_settings_put test' do
55
+ it 'should work' do
56
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
57
+ end
58
+ end
59
+
60
+ end
@@ -0,0 +1,92 @@
1
+ =begin
2
+ #Docker HUB API
3
+
4
+ #Docker Hub is a service provided by Docker for finding and sharing container images with your team. It is the world's largest library and community for container images. In addition to the [Docker Hub UI](https://docs.docker.com/docker-hub/) and [Docker Hub CLI tool](https://github.com/docker/hub-tool#readme) (currently experimental), Docker provides an API that allows you to interact with Docker Hub. Browse through the Docker Hub API documentation to explore the supported endpoints.
5
+
6
+ The version of the OpenAPI document: 2-beta
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 7.2.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for DockerHub::OrgsApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'OrgsApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = DockerHub::OrgsApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of OrgsApi' do
30
+ it 'should create an instance of OrgsApi' do
31
+ expect(@api_instance).to be_instance_of(DockerHub::OrgsApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for v2_orgs_org_name_members_export_get
36
+ # Export org members CSV
37
+ # Export members of an organization as a CSV <span class=\"oat\"></span>
38
+ # @param org_name Name of the organization (namespace).
39
+ # @param [Hash] opts the optional parameters
40
+ # @return [Array<V2OrgsOrgNameMembersExportGet200ResponseInner>]
41
+ describe 'v2_orgs_org_name_members_export_get test' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
44
+ end
45
+ end
46
+
47
+ # unit tests for v2_orgs_org_name_members_get
48
+ # List org members
49
+ # Returns a list of members for an organization. _The following fields are only visible to orgs with insights enabled._ - &#x60;last_logged_in_at&#x60; - &#x60;last_seen_at&#x60; - &#x60;last_desktop_version&#x60; To make visible, please see [View Insights for organization users](https://docs.docker.com/admin/organization/insights/#view-insights-for-organization-users). &lt;span class&#x3D;\&quot;oat\&quot;&gt;&lt;/span&gt;
50
+ # @param org_name Name of the organization (namespace).
51
+ # @param [Hash] opts the optional parameters
52
+ # @option opts [Integer] :search Search term.
53
+ # @option opts [Integer] :page Page number (starts on 1).
54
+ # @option opts [Integer] :page_size Number of items (rows) per page.
55
+ # @option opts [Boolean] :invites Include invites in the response.
56
+ # @option opts [String] :type
57
+ # @option opts [String] :role
58
+ # @return [Array<OrgMemberPaginated>]
59
+ describe 'v2_orgs_org_name_members_get test' do
60
+ it 'should work' do
61
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
62
+ end
63
+ end
64
+
65
+ # unit tests for v2_orgs_org_name_members_username_delete
66
+ # Remove member from org
67
+ # Removes the member from the org, ie. all groups in the org, unless they&#39;re the last owner &lt;span class&#x3D;\&quot;oat\&quot;&gt;&lt;/span&gt;
68
+ # @param org_name Name of the organization (namespace).
69
+ # @param username Username, identifier for the user (namespace, DockerID).
70
+ # @param [Hash] opts the optional parameters
71
+ # @return [nil]
72
+ describe 'v2_orgs_org_name_members_username_delete test' do
73
+ it 'should work' do
74
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
75
+ end
76
+ end
77
+
78
+ # unit tests for v2_orgs_org_name_members_username_put
79
+ # Update org member (role)
80
+ # Updates the role of a member in the organization. ***Only users in the \&quot;owners\&quot; group of the organization can use this endpoint.*** &lt;span class&#x3D;\&quot;oat\&quot;&gt;&lt;/span&gt;
81
+ # @param org_name Name of the organization (namespace).
82
+ # @param username Username, identifier for the user (namespace, DockerID).
83
+ # @param v2_orgs_org_name_members_username_put_request
84
+ # @param [Hash] opts the optional parameters
85
+ # @return [OrgMember]
86
+ describe 'v2_orgs_org_name_members_username_put test' do
87
+ it 'should work' do
88
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
89
+ end
90
+ end
91
+
92
+ end
@@ -0,0 +1,183 @@
1
+ =begin
2
+ #Docker HUB API
3
+
4
+ #Docker Hub is a service provided by Docker for finding and sharing container images with your team. It is the world's largest library and community for container images. In addition to the [Docker Hub UI](https://docs.docker.com/docker-hub/) and [Docker Hub CLI tool](https://github.com/docker/hub-tool#readme) (currently experimental), Docker provides an API that allows you to interact with Docker Hub. Browse through the Docker Hub API documentation to explore the supported endpoints.
5
+
6
+ The version of the OpenAPI document: 2-beta
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 7.2.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for DockerHub::RepositoriesApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'RepositoriesApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = DockerHub::RepositoriesApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of RepositoriesApi' do
30
+ it 'should create an instance of RepositoriesApi' do
31
+ expect(@api_instance).to be_instance_of(DockerHub::RepositoriesApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for check_repository
36
+ # Check repository in a namespace
37
+ # Check a repository within the specified namespace (organization or user). Public repositories are accessible to everyone, while private repositories require appropriate authentication and permissions.
38
+ # @param namespace
39
+ # @param repository
40
+ # @param [Hash] opts the optional parameters
41
+ # @return [RepositoryInfo]
42
+ describe 'check_repository test' do
43
+ it 'should work' do
44
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
45
+ end
46
+ end
47
+
48
+ # unit tests for create_repository
49
+ # Create a new repository
50
+ # Creates a new repository within the specified namespace. The repository will be created with the provided metadata including name, description, and privacy settings.
51
+ # @param namespace
52
+ # @param repo_creation_request
53
+ # @param [Hash] opts the optional parameters
54
+ # @return [RepositoryInfo]
55
+ describe 'create_repository test' do
56
+ it 'should work' do
57
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
58
+ end
59
+ end
60
+
61
+ # unit tests for create_repository_group
62
+ # Assign a group (Team) to a repository for access
63
+ # @param namespace
64
+ # @param repository
65
+ # @param repository_group_creation_request
66
+ # @param [Hash] opts the optional parameters
67
+ # @return [RepositoryGroup]
68
+ describe 'create_repository_group test' do
69
+ it 'should work' do
70
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
71
+ end
72
+ end
73
+
74
+ # unit tests for get_repository
75
+ # Get repository in a namespace
76
+ # Returns a repository within the specified namespace (organization or user). Public repositories are accessible to everyone, while private repositories require appropriate authentication and permissions.
77
+ # @param namespace
78
+ # @param repository
79
+ # @param [Hash] opts the optional parameters
80
+ # @return [RepositoryInfo]
81
+ describe 'get_repository test' do
82
+ it 'should work' do
83
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
84
+ end
85
+ end
86
+
87
+ # unit tests for get_repository_tag
88
+ # Read repository tag
89
+ # @param namespace
90
+ # @param repository
91
+ # @param tag
92
+ # @param [Hash] opts the optional parameters
93
+ # @return [Tag]
94
+ describe 'get_repository_tag test' do
95
+ it 'should work' do
96
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
97
+ end
98
+ end
99
+
100
+ # unit tests for list_namespace_repositories
101
+ # List repositories in a namespace
102
+ # Returns a list of repositories within the specified namespace (organization or user). Public repositories are accessible to everyone, while private repositories require appropriate authentication and permissions.
103
+ # @param namespace
104
+ # @param [Hash] opts the optional parameters
105
+ # @option opts [Integer] :page Page number to get. Defaults to 1.
106
+ # @option opts [Integer] :page_size Number of repositories to get per page. Defaults to 10. Max of 100.
107
+ # @option opts [String] :name Filter repositories by name (partial match).
108
+ # @option opts [String] :ordering Order repositories by the specified field. Prefix with &#39;-&#39; for descending order. Available options: - &#x60;name&#x60; / &#x60;-name&#x60;: Repository name (ascending/descending) - &#x60;last_updated&#x60; / &#x60;-last_updated&#x60;: Last update time (ascending/descending) - &#x60;pull_count&#x60; / &#x60;-pull_count&#x60;: Number of pulls (ascending/descending)
109
+ # @return [ListRepositoriesResponse]
110
+ describe 'list_namespace_repositories test' do
111
+ it 'should work' do
112
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
113
+ end
114
+ end
115
+
116
+ # unit tests for list_repository_tags
117
+ # List repository tags
118
+ # @param namespace
119
+ # @param repository
120
+ # @param [Hash] opts the optional parameters
121
+ # @option opts [Integer] :page Page number to get. Defaults to 1.
122
+ # @option opts [Integer] :page_size Number of items to get per page. Defaults to 10. Max of 100.
123
+ # @return [PaginatedTags]
124
+ describe 'list_repository_tags test' do
125
+ it 'should work' do
126
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
127
+ end
128
+ end
129
+
130
+ # unit tests for update_repository_immutable_tags
131
+ # Update repository immutable tags
132
+ # Updates the immutable tags configuration for this repository. **Only users with administrative privileges for the repository can modify these settings.**
133
+ # @param namespace
134
+ # @param repository
135
+ # @param update_repository_immutable_tags_request
136
+ # @param [Hash] opts the optional parameters
137
+ # @return [RepositoryInfo]
138
+ describe 'update_repository_immutable_tags test' do
139
+ it 'should work' do
140
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
141
+ end
142
+ end
143
+
144
+ # unit tests for v2_namespaces_namespace_repositories_repository_tags_head
145
+ # Check repository tags
146
+ # @param namespace
147
+ # @param repository
148
+ # @param [Hash] opts the optional parameters
149
+ # @return [nil]
150
+ describe 'v2_namespaces_namespace_repositories_repository_tags_head test' do
151
+ it 'should work' do
152
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
153
+ end
154
+ end
155
+
156
+ # unit tests for v2_namespaces_namespace_repositories_repository_tags_tag_head
157
+ # Check repository tag
158
+ # @param namespace
159
+ # @param repository
160
+ # @param tag
161
+ # @param [Hash] opts the optional parameters
162
+ # @return [nil]
163
+ describe 'v2_namespaces_namespace_repositories_repository_tags_tag_head test' do
164
+ it 'should work' do
165
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
166
+ end
167
+ end
168
+
169
+ # unit tests for verify_repository_immutable_tags
170
+ # Verify repository immutable tags
171
+ # Validates the immutable tags regex pass in parameter and returns a list of tags matching it in this repository. **Only users with administrative privileges for the repository call this endpoint.**
172
+ # @param namespace
173
+ # @param repository
174
+ # @param immutable_tags_verify_request
175
+ # @param [Hash] opts the optional parameters
176
+ # @return [ImmutableTagsVerifyResponse]
177
+ describe 'verify_repository_immutable_tags test' do
178
+ it 'should work' do
179
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
180
+ end
181
+ end
182
+
183
+ end