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,609 @@
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 'date'
14
+ require 'time'
15
+
16
+ module DockerHub
17
+ class RepositoryInfo
18
+ # Username of the repository owner
19
+ attr_accessor :user
20
+
21
+ # Repository name
22
+ attr_accessor :name
23
+
24
+ # Repository namespace
25
+ attr_accessor :namespace
26
+
27
+ # Type of the repository
28
+ attr_accessor :repository_type
29
+
30
+ # Repository status code
31
+ attr_accessor :status
32
+
33
+ # Description of the repository status
34
+ attr_accessor :status_description
35
+
36
+ # Short description of the repository
37
+ attr_accessor :description
38
+
39
+ # Whether the repository is private
40
+ attr_accessor :is_private
41
+
42
+ # Whether the repository has automated builds
43
+ attr_accessor :is_automated
44
+
45
+ # Number of stars
46
+ attr_accessor :star_count
47
+
48
+ # Number of pulls
49
+ attr_accessor :pull_count
50
+
51
+ # ISO 8601 timestamp of when repository was last updated
52
+ attr_accessor :last_updated
53
+
54
+ # ISO 8601 timestamp of when repository was last modified
55
+ attr_accessor :last_modified
56
+
57
+ # ISO 8601 timestamp of when repository was created
58
+ attr_accessor :date_registered
59
+
60
+ # Number of collaborators
61
+ attr_accessor :collaborator_count
62
+
63
+ # Repository affiliation
64
+ attr_accessor :affiliation
65
+
66
+ # Hub user information
67
+ attr_accessor :hub_user
68
+
69
+ # Whether the current user has starred this repository
70
+ attr_accessor :has_starred
71
+
72
+ # Full description of the repository
73
+ attr_accessor :full_description
74
+
75
+ attr_accessor :permissions
76
+
77
+ # Supported media types
78
+ attr_accessor :media_types
79
+
80
+ # Supported content types
81
+ attr_accessor :content_types
82
+
83
+ # Repository categories
84
+ attr_accessor :categories
85
+
86
+ attr_accessor :immutable_tags_settings
87
+
88
+ # Storage size in bytes
89
+ attr_accessor :storage_size
90
+
91
+ # Source of the repository, where it was created from
92
+ attr_accessor :source
93
+
94
+ # Attribute mapping from ruby-style variable name to JSON key.
95
+ def self.attribute_map
96
+ {
97
+ :'user' => :'user',
98
+ :'name' => :'name',
99
+ :'namespace' => :'namespace',
100
+ :'repository_type' => :'repository_type',
101
+ :'status' => :'status',
102
+ :'status_description' => :'status_description',
103
+ :'description' => :'description',
104
+ :'is_private' => :'is_private',
105
+ :'is_automated' => :'is_automated',
106
+ :'star_count' => :'star_count',
107
+ :'pull_count' => :'pull_count',
108
+ :'last_updated' => :'last_updated',
109
+ :'last_modified' => :'last_modified',
110
+ :'date_registered' => :'date_registered',
111
+ :'collaborator_count' => :'collaborator_count',
112
+ :'affiliation' => :'affiliation',
113
+ :'hub_user' => :'hub_user',
114
+ :'has_starred' => :'has_starred',
115
+ :'full_description' => :'full_description',
116
+ :'permissions' => :'permissions',
117
+ :'media_types' => :'media_types',
118
+ :'content_types' => :'content_types',
119
+ :'categories' => :'categories',
120
+ :'immutable_tags_settings' => :'immutable_tags_settings',
121
+ :'storage_size' => :'storage_size',
122
+ :'source' => :'source'
123
+ }
124
+ end
125
+
126
+ # Returns all the JSON keys this model knows about
127
+ def self.acceptable_attributes
128
+ attribute_map.values
129
+ end
130
+
131
+ # Attribute type mapping.
132
+ def self.openapi_types
133
+ {
134
+ :'user' => :'String',
135
+ :'name' => :'String',
136
+ :'namespace' => :'String',
137
+ :'repository_type' => :'String',
138
+ :'status' => :'Integer',
139
+ :'status_description' => :'String',
140
+ :'description' => :'String',
141
+ :'is_private' => :'Boolean',
142
+ :'is_automated' => :'Boolean',
143
+ :'star_count' => :'Integer',
144
+ :'pull_count' => :'Integer',
145
+ :'last_updated' => :'Time',
146
+ :'last_modified' => :'Time',
147
+ :'date_registered' => :'Time',
148
+ :'collaborator_count' => :'Integer',
149
+ :'affiliation' => :'String',
150
+ :'hub_user' => :'String',
151
+ :'has_starred' => :'Boolean',
152
+ :'full_description' => :'String',
153
+ :'permissions' => :'RepoPermissions',
154
+ :'media_types' => :'Array<String>',
155
+ :'content_types' => :'Array<String>',
156
+ :'categories' => :'Array<Category>',
157
+ :'immutable_tags_settings' => :'ImmutableTagsSettings',
158
+ :'storage_size' => :'Integer',
159
+ :'source' => :'String'
160
+ }
161
+ end
162
+
163
+ # List of attributes with nullable: true
164
+ def self.openapi_nullable
165
+ Set.new([
166
+ :'repository_type',
167
+ :'last_modified',
168
+ :'affiliation',
169
+ :'hub_user',
170
+ :'full_description',
171
+ :'storage_size',
172
+ :'source'
173
+ ])
174
+ end
175
+
176
+ # Initializes the object
177
+ # @param [Hash] attributes Model attributes in the form of hash
178
+ def initialize(attributes = {})
179
+ if (!attributes.is_a?(Hash))
180
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DockerHub::RepositoryInfo` initialize method"
181
+ end
182
+
183
+ # check to see if the attribute exists and convert string to symbol for hash key
184
+ attributes = attributes.each_with_object({}) { |(k, v), h|
185
+ if (!self.class.attribute_map.key?(k.to_sym))
186
+ fail ArgumentError, "`#{k}` is not a valid attribute in `DockerHub::RepositoryInfo`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
187
+ end
188
+ h[k.to_sym] = v
189
+ }
190
+
191
+ if attributes.key?(:'user')
192
+ self.user = attributes[:'user']
193
+ else
194
+ self.user = nil
195
+ end
196
+
197
+ if attributes.key?(:'name')
198
+ self.name = attributes[:'name']
199
+ else
200
+ self.name = nil
201
+ end
202
+
203
+ if attributes.key?(:'namespace')
204
+ self.namespace = attributes[:'namespace']
205
+ else
206
+ self.namespace = nil
207
+ end
208
+
209
+ if attributes.key?(:'repository_type')
210
+ self.repository_type = attributes[:'repository_type']
211
+ end
212
+
213
+ if attributes.key?(:'status')
214
+ self.status = attributes[:'status']
215
+ else
216
+ self.status = nil
217
+ end
218
+
219
+ if attributes.key?(:'status_description')
220
+ self.status_description = attributes[:'status_description']
221
+ else
222
+ self.status_description = nil
223
+ end
224
+
225
+ if attributes.key?(:'description')
226
+ self.description = attributes[:'description']
227
+ else
228
+ self.description = nil
229
+ end
230
+
231
+ if attributes.key?(:'is_private')
232
+ self.is_private = attributes[:'is_private']
233
+ else
234
+ self.is_private = nil
235
+ end
236
+
237
+ if attributes.key?(:'is_automated')
238
+ self.is_automated = attributes[:'is_automated']
239
+ else
240
+ self.is_automated = nil
241
+ end
242
+
243
+ if attributes.key?(:'star_count')
244
+ self.star_count = attributes[:'star_count']
245
+ else
246
+ self.star_count = nil
247
+ end
248
+
249
+ if attributes.key?(:'pull_count')
250
+ self.pull_count = attributes[:'pull_count']
251
+ else
252
+ self.pull_count = nil
253
+ end
254
+
255
+ if attributes.key?(:'last_updated')
256
+ self.last_updated = attributes[:'last_updated']
257
+ else
258
+ self.last_updated = nil
259
+ end
260
+
261
+ if attributes.key?(:'last_modified')
262
+ self.last_modified = attributes[:'last_modified']
263
+ end
264
+
265
+ if attributes.key?(:'date_registered')
266
+ self.date_registered = attributes[:'date_registered']
267
+ else
268
+ self.date_registered = nil
269
+ end
270
+
271
+ if attributes.key?(:'collaborator_count')
272
+ self.collaborator_count = attributes[:'collaborator_count']
273
+ else
274
+ self.collaborator_count = nil
275
+ end
276
+
277
+ if attributes.key?(:'affiliation')
278
+ self.affiliation = attributes[:'affiliation']
279
+ end
280
+
281
+ if attributes.key?(:'hub_user')
282
+ self.hub_user = attributes[:'hub_user']
283
+ end
284
+
285
+ if attributes.key?(:'has_starred')
286
+ self.has_starred = attributes[:'has_starred']
287
+ else
288
+ self.has_starred = nil
289
+ end
290
+
291
+ if attributes.key?(:'full_description')
292
+ self.full_description = attributes[:'full_description']
293
+ end
294
+
295
+ if attributes.key?(:'permissions')
296
+ self.permissions = attributes[:'permissions']
297
+ else
298
+ self.permissions = nil
299
+ end
300
+
301
+ if attributes.key?(:'media_types')
302
+ if (value = attributes[:'media_types']).is_a?(Array)
303
+ self.media_types = value
304
+ end
305
+ else
306
+ self.media_types = nil
307
+ end
308
+
309
+ if attributes.key?(:'content_types')
310
+ if (value = attributes[:'content_types']).is_a?(Array)
311
+ self.content_types = value
312
+ end
313
+ else
314
+ self.content_types = nil
315
+ end
316
+
317
+ if attributes.key?(:'categories')
318
+ if (value = attributes[:'categories']).is_a?(Array)
319
+ self.categories = value
320
+ end
321
+ else
322
+ self.categories = nil
323
+ end
324
+
325
+ if attributes.key?(:'immutable_tags_settings')
326
+ self.immutable_tags_settings = attributes[:'immutable_tags_settings']
327
+ else
328
+ self.immutable_tags_settings = nil
329
+ end
330
+
331
+ if attributes.key?(:'storage_size')
332
+ self.storage_size = attributes[:'storage_size']
333
+ end
334
+
335
+ if attributes.key?(:'source')
336
+ self.source = attributes[:'source']
337
+ end
338
+ end
339
+
340
+ # Show invalid properties with the reasons. Usually used together with valid?
341
+ # @return Array for valid properties with the reasons
342
+ def list_invalid_properties
343
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
344
+ invalid_properties = Array.new
345
+ if @user.nil?
346
+ invalid_properties.push('invalid value for "user", user cannot be nil.')
347
+ end
348
+
349
+ if @name.nil?
350
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
351
+ end
352
+
353
+ if @namespace.nil?
354
+ invalid_properties.push('invalid value for "namespace", namespace cannot be nil.')
355
+ end
356
+
357
+ if @status.nil?
358
+ invalid_properties.push('invalid value for "status", status cannot be nil.')
359
+ end
360
+
361
+ if @status_description.nil?
362
+ invalid_properties.push('invalid value for "status_description", status_description cannot be nil.')
363
+ end
364
+
365
+ if @description.nil?
366
+ invalid_properties.push('invalid value for "description", description cannot be nil.')
367
+ end
368
+
369
+ if @is_private.nil?
370
+ invalid_properties.push('invalid value for "is_private", is_private cannot be nil.')
371
+ end
372
+
373
+ if @is_automated.nil?
374
+ invalid_properties.push('invalid value for "is_automated", is_automated cannot be nil.')
375
+ end
376
+
377
+ if @star_count.nil?
378
+ invalid_properties.push('invalid value for "star_count", star_count cannot be nil.')
379
+ end
380
+
381
+ if @pull_count.nil?
382
+ invalid_properties.push('invalid value for "pull_count", pull_count cannot be nil.')
383
+ end
384
+
385
+ if @last_updated.nil?
386
+ invalid_properties.push('invalid value for "last_updated", last_updated cannot be nil.')
387
+ end
388
+
389
+ if @date_registered.nil?
390
+ invalid_properties.push('invalid value for "date_registered", date_registered cannot be nil.')
391
+ end
392
+
393
+ if @collaborator_count.nil?
394
+ invalid_properties.push('invalid value for "collaborator_count", collaborator_count cannot be nil.')
395
+ end
396
+
397
+ if @has_starred.nil?
398
+ invalid_properties.push('invalid value for "has_starred", has_starred cannot be nil.')
399
+ end
400
+
401
+ if @permissions.nil?
402
+ invalid_properties.push('invalid value for "permissions", permissions cannot be nil.')
403
+ end
404
+
405
+ if @media_types.nil?
406
+ invalid_properties.push('invalid value for "media_types", media_types cannot be nil.')
407
+ end
408
+
409
+ if @content_types.nil?
410
+ invalid_properties.push('invalid value for "content_types", content_types cannot be nil.')
411
+ end
412
+
413
+ if @categories.nil?
414
+ invalid_properties.push('invalid value for "categories", categories cannot be nil.')
415
+ end
416
+
417
+ if @immutable_tags_settings.nil?
418
+ invalid_properties.push('invalid value for "immutable_tags_settings", immutable_tags_settings cannot be nil.')
419
+ end
420
+
421
+ invalid_properties
422
+ end
423
+
424
+ # Check to see if the all the properties in the model are valid
425
+ # @return true if the model is valid
426
+ def valid?
427
+ warn '[DEPRECATED] the `valid?` method is obsolete'
428
+ return false if @user.nil?
429
+ return false if @name.nil?
430
+ return false if @namespace.nil?
431
+ return false if @status.nil?
432
+ return false if @status_description.nil?
433
+ return false if @description.nil?
434
+ return false if @is_private.nil?
435
+ return false if @is_automated.nil?
436
+ return false if @star_count.nil?
437
+ return false if @pull_count.nil?
438
+ return false if @last_updated.nil?
439
+ return false if @date_registered.nil?
440
+ return false if @collaborator_count.nil?
441
+ return false if @has_starred.nil?
442
+ return false if @permissions.nil?
443
+ return false if @media_types.nil?
444
+ return false if @content_types.nil?
445
+ return false if @categories.nil?
446
+ return false if @immutable_tags_settings.nil?
447
+ true
448
+ end
449
+
450
+ # Checks equality by comparing each attribute.
451
+ # @param [Object] Object to be compared
452
+ def ==(o)
453
+ return true if self.equal?(o)
454
+ self.class == o.class &&
455
+ user == o.user &&
456
+ name == o.name &&
457
+ namespace == o.namespace &&
458
+ repository_type == o.repository_type &&
459
+ status == o.status &&
460
+ status_description == o.status_description &&
461
+ description == o.description &&
462
+ is_private == o.is_private &&
463
+ is_automated == o.is_automated &&
464
+ star_count == o.star_count &&
465
+ pull_count == o.pull_count &&
466
+ last_updated == o.last_updated &&
467
+ last_modified == o.last_modified &&
468
+ date_registered == o.date_registered &&
469
+ collaborator_count == o.collaborator_count &&
470
+ affiliation == o.affiliation &&
471
+ hub_user == o.hub_user &&
472
+ has_starred == o.has_starred &&
473
+ full_description == o.full_description &&
474
+ permissions == o.permissions &&
475
+ media_types == o.media_types &&
476
+ content_types == o.content_types &&
477
+ categories == o.categories &&
478
+ immutable_tags_settings == o.immutable_tags_settings &&
479
+ storage_size == o.storage_size &&
480
+ source == o.source
481
+ end
482
+
483
+ # @see the `==` method
484
+ # @param [Object] Object to be compared
485
+ def eql?(o)
486
+ self == o
487
+ end
488
+
489
+ # Calculates hash code according to all attributes.
490
+ # @return [Integer] Hash code
491
+ def hash
492
+ [user, name, namespace, repository_type, status, status_description, description, is_private, is_automated, star_count, pull_count, last_updated, last_modified, date_registered, collaborator_count, affiliation, hub_user, has_starred, full_description, permissions, media_types, content_types, categories, immutable_tags_settings, storage_size, source].hash
493
+ end
494
+
495
+ # Builds the object from hash
496
+ # @param [Hash] attributes Model attributes in the form of hash
497
+ # @return [Object] Returns the model itself
498
+ def self.build_from_hash(attributes)
499
+ return nil unless attributes.is_a?(Hash)
500
+ attributes = attributes.transform_keys(&:to_sym)
501
+ transformed_hash = {}
502
+ openapi_types.each_pair do |key, type|
503
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
504
+ transformed_hash["#{key}"] = nil
505
+ elsif type =~ /\AArray<(.*)>/i
506
+ # check to ensure the input is an array given that the attribute
507
+ # is documented as an array but the input is not
508
+ if attributes[attribute_map[key]].is_a?(Array)
509
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
510
+ end
511
+ elsif !attributes[attribute_map[key]].nil?
512
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
513
+ end
514
+ end
515
+ new(transformed_hash)
516
+ end
517
+
518
+ # Deserializes the data based on type
519
+ # @param string type Data type
520
+ # @param string value Value to be deserialized
521
+ # @return [Object] Deserialized data
522
+ def self._deserialize(type, value)
523
+ case type.to_sym
524
+ when :Time
525
+ Time.parse(value)
526
+ when :Date
527
+ Date.parse(value)
528
+ when :String
529
+ value.to_s
530
+ when :Integer
531
+ value.to_i
532
+ when :Float
533
+ value.to_f
534
+ when :Boolean
535
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
536
+ true
537
+ else
538
+ false
539
+ end
540
+ when :Object
541
+ # generic object (usually a Hash), return directly
542
+ value
543
+ when /\AArray<(?<inner_type>.+)>\z/
544
+ inner_type = Regexp.last_match[:inner_type]
545
+ value.map { |v| _deserialize(inner_type, v) }
546
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
547
+ k_type = Regexp.last_match[:k_type]
548
+ v_type = Regexp.last_match[:v_type]
549
+ {}.tap do |hash|
550
+ value.each do |k, v|
551
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
552
+ end
553
+ end
554
+ else # model
555
+ # models (e.g. Pet) or oneOf
556
+ klass = DockerHub.const_get(type)
557
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
558
+ end
559
+ end
560
+
561
+ # Returns the string representation of the object
562
+ # @return [String] String presentation of the object
563
+ def to_s
564
+ to_hash.to_s
565
+ end
566
+
567
+ # to_body is an alias to to_hash (backward compatibility)
568
+ # @return [Hash] Returns the object in the form of hash
569
+ def to_body
570
+ to_hash
571
+ end
572
+
573
+ # Returns the object in the form of hash
574
+ # @return [Hash] Returns the object in the form of hash
575
+ def to_hash
576
+ hash = {}
577
+ self.class.attribute_map.each_pair do |attr, param|
578
+ value = self.send(attr)
579
+ if value.nil?
580
+ is_nullable = self.class.openapi_nullable.include?(attr)
581
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
582
+ end
583
+
584
+ hash[param] = _to_hash(value)
585
+ end
586
+ hash
587
+ end
588
+
589
+ # Outputs non-array value in the form of hash
590
+ # For object, use to_hash. Otherwise, just return the value
591
+ # @param [Object] value Any valid value
592
+ # @return [Hash] Returns the value in the form of hash
593
+ def _to_hash(value)
594
+ if value.is_a?(Array)
595
+ value.compact.map { |v| _to_hash(v) }
596
+ elsif value.is_a?(Hash)
597
+ {}.tap do |hash|
598
+ value.each { |k, v| hash[k] = _to_hash(v) }
599
+ end
600
+ elsif value.respond_to? :to_hash
601
+ value.to_hash
602
+ else
603
+ value
604
+ end
605
+ end
606
+
607
+ end
608
+
609
+ end