pulpcore_client 3.69.2 → 3.70.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (686) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +22 -17
  3. data/docs/AccessPoliciesApi.md +169 -84
  4. data/docs/AccessPolicy.md +14 -13
  5. data/docs/AccessPolicyResponse.md +26 -25
  6. data/docs/ApiAppStatusResponse.md +12 -11
  7. data/docs/ArtifactDistributionResponse.md +28 -27
  8. data/docs/ArtifactResponse.md +30 -29
  9. data/docs/ArtifactsApi.md +145 -78
  10. data/docs/AsyncOperationResponse.md +8 -7
  11. data/docs/CompositeContentGuard.md +12 -11
  12. data/docs/CompositeContentGuardResponse.md +20 -19
  13. data/docs/ContentApi.md +52 -36
  14. data/docs/ContentAppStatusResponse.md +12 -11
  15. data/docs/ContentGuardResponse.md +18 -17
  16. data/docs/ContentOpenpgpPublickeyApi.md +111 -61
  17. data/docs/ContentOpenpgpPublicsubkeyApi.md +80 -47
  18. data/docs/ContentOpenpgpSignatureApi.md +80 -47
  19. data/docs/ContentOpenpgpUserattributeApi.md +80 -47
  20. data/docs/ContentOpenpgpUseridApi.md +89 -56
  21. data/docs/ContentRedirectContentGuard.md +10 -9
  22. data/docs/ContentRedirectContentGuardResponse.md +18 -17
  23. data/docs/ContentSettingsResponse.md +10 -9
  24. data/docs/ContentSummaryResponse.md +12 -11
  25. data/docs/ContentguardsApi.md +57 -41
  26. data/docs/ContentguardsCompositeApi.md +315 -146
  27. data/docs/ContentguardsContentRedirectApi.md +315 -146
  28. data/docs/ContentguardsHeaderApi.md +315 -146
  29. data/docs/ContentguardsRbacApi.md +315 -146
  30. data/docs/DatabaseConnectionResponse.md +8 -7
  31. data/docs/DistributionResponse.md +30 -29
  32. data/docs/DistributionsApi.md +68 -52
  33. data/docs/DistributionsArtifactsApi.md +95 -62
  34. data/docs/DistributionsOpenpgpApi.md +248 -113
  35. data/docs/Domain.md +18 -17
  36. data/docs/DomainBackendMigrator.md +10 -9
  37. data/docs/DomainResponse.md +26 -25
  38. data/docs/DomainsApi.md +224 -106
  39. data/docs/EvaluationResponse.md +12 -11
  40. data/docs/ExportersFilesystemApi.md +196 -95
  41. data/docs/ExportersFilesystemExportsApi.md +120 -53
  42. data/docs/ExportersPulpApi.md +196 -95
  43. data/docs/ExportersPulpExportsApi.md +120 -53
  44. data/docs/FilesystemExport.md +14 -13
  45. data/docs/FilesystemExportResponse.md +20 -19
  46. data/docs/FilesystemExporter.md +12 -11
  47. data/docs/FilesystemExporterResponse.md +20 -19
  48. data/docs/GenericRemoteResponse.md +58 -0
  49. data/docs/GenericRemoteResponseHiddenFieldsInner.md +20 -0
  50. data/docs/Group.md +8 -7
  51. data/docs/GroupProgressReportResponse.md +16 -15
  52. data/docs/GroupResponse.md +14 -13
  53. data/docs/GroupRole.md +12 -11
  54. data/docs/GroupRoleResponse.md +24 -23
  55. data/docs/GroupUser.md +8 -7
  56. data/docs/GroupUserResponse.md +12 -11
  57. data/docs/GroupsApi.md +314 -145
  58. data/docs/GroupsRolesApi.md +139 -72
  59. data/docs/GroupsUsersApi.md +90 -40
  60. data/docs/HeaderContentGuard.md +16 -15
  61. data/docs/HeaderContentGuardResponse.md +24 -23
  62. data/docs/ImportResponse.md +18 -17
  63. data/docs/ImportersPulpApi.md +195 -94
  64. data/docs/ImportersPulpImportCheckApi.md +29 -13
  65. data/docs/ImportersPulpImportsApi.md +120 -53
  66. data/docs/LivezApi.md +25 -8
  67. data/docs/LoginApi.md +204 -0
  68. data/docs/LoginResponse.md +22 -0
  69. data/docs/MethodEnum.md +4 -5
  70. data/docs/MinimalTaskResponse.md +26 -25
  71. data/docs/MultipleArtifactContentResponse.md +16 -15
  72. data/docs/MyPermissionsResponse.md +8 -7
  73. data/docs/NestedOpenPGPPublicSubkey.md +10 -9
  74. data/docs/NestedOpenPGPPublicSubkeyResponse.md +12 -11
  75. data/docs/NestedOpenPGPSignature.md +18 -17
  76. data/docs/NestedOpenPGPSignatureResponse.md +20 -19
  77. data/docs/NestedOpenPGPUserAttribute.md +8 -7
  78. data/docs/NestedOpenPGPUserAttributeResponse.md +10 -9
  79. data/docs/NestedOpenPGPUserID.md +8 -7
  80. data/docs/NestedOpenPGPUserIDResponse.md +10 -9
  81. data/docs/NestedRole.md +12 -11
  82. data/docs/NestedRoleResponse.md +12 -11
  83. data/docs/ObjectRolesResponse.md +8 -7
  84. data/docs/OpenPGPDistribution.md +20 -19
  85. data/docs/OpenPGPDistributionResponse.md +32 -31
  86. data/docs/OpenPGPKeyring.md +16 -15
  87. data/docs/OpenPGPKeyringResponse.md +28 -27
  88. data/docs/OpenPGPPublicKeyResponse.md +24 -23
  89. data/docs/OpenPGPPublicSubkeyResponse.md +22 -21
  90. data/docs/OpenPGPSignatureResponse.md +30 -29
  91. data/docs/OpenPGPUserAttributeResponse.md +20 -19
  92. data/docs/OpenPGPUserIDResponse.md +20 -19
  93. data/docs/OrphansApi.md +26 -9
  94. data/docs/OrphansCleanup.md +10 -9
  95. data/docs/OrphansCleanupApi.md +29 -12
  96. data/docs/PaginatedAccessPolicyResponseList.md +14 -13
  97. data/docs/PaginatedArtifactDistributionResponseList.md +14 -13
  98. data/docs/PaginatedArtifactResponseList.md +14 -13
  99. data/docs/PaginatedCompositeContentGuardResponseList.md +14 -13
  100. data/docs/PaginatedContentGuardResponseList.md +14 -13
  101. data/docs/PaginatedContentRedirectContentGuardResponseList.md +14 -13
  102. data/docs/PaginatedDistributionResponseList.md +14 -13
  103. data/docs/PaginatedDomainResponseList.md +14 -13
  104. data/docs/PaginatedFilesystemExportResponseList.md +14 -13
  105. data/docs/PaginatedFilesystemExporterResponseList.md +14 -13
  106. data/docs/PaginatedGenericRemoteResponseList.md +24 -0
  107. data/docs/PaginatedGroupResponseList.md +14 -13
  108. data/docs/PaginatedGroupRoleResponseList.md +14 -13
  109. data/docs/PaginatedGroupUserResponseList.md +14 -13
  110. data/docs/PaginatedHeaderContentGuardResponseList.md +14 -13
  111. data/docs/PaginatedImportResponseList.md +14 -13
  112. data/docs/PaginatedMultipleArtifactContentResponseList.md +14 -13
  113. data/docs/PaginatedOpenPGPDistributionResponseList.md +14 -13
  114. data/docs/PaginatedOpenPGPKeyringResponseList.md +14 -13
  115. data/docs/PaginatedOpenPGPPublicKeyResponseList.md +14 -13
  116. data/docs/PaginatedOpenPGPPublicSubkeyResponseList.md +14 -13
  117. data/docs/PaginatedOpenPGPSignatureResponseList.md +14 -13
  118. data/docs/PaginatedOpenPGPUserAttributeResponseList.md +14 -13
  119. data/docs/PaginatedOpenPGPUserIDResponseList.md +14 -13
  120. data/docs/PaginatedPublicationResponseList.md +14 -13
  121. data/docs/PaginatedPulpExportResponseList.md +14 -13
  122. data/docs/PaginatedPulpExporterResponseList.md +14 -13
  123. data/docs/PaginatedPulpImporterResponseList.md +14 -13
  124. data/docs/PaginatedRBACContentGuardResponseList.md +14 -13
  125. data/docs/PaginatedRepositoryResponseList.md +14 -13
  126. data/docs/PaginatedRepositoryVersionResponseList.md +14 -13
  127. data/docs/PaginatedRoleResponseList.md +14 -13
  128. data/docs/PaginatedSigningServiceResponseList.md +14 -13
  129. data/docs/PaginatedTaskGroupResponseList.md +14 -13
  130. data/docs/PaginatedTaskResponseList.md +14 -13
  131. data/docs/PaginatedTaskScheduleResponseList.md +14 -13
  132. data/docs/PaginatedUploadResponseList.md +14 -13
  133. data/docs/PaginatedUpstreamPulpResponseList.md +14 -13
  134. data/docs/PaginatedUserResponseList.md +14 -13
  135. data/docs/PaginatedUserRoleResponseList.md +14 -13
  136. data/docs/PaginatedWorkerResponseList.md +14 -13
  137. data/docs/PatchedAccessPolicy.md +14 -13
  138. data/docs/PatchedCompositeContentGuard.md +12 -11
  139. data/docs/PatchedContentRedirectContentGuard.md +10 -9
  140. data/docs/PatchedDomain.md +18 -17
  141. data/docs/PatchedFilesystemExporter.md +12 -11
  142. data/docs/PatchedGroup.md +8 -7
  143. data/docs/PatchedHeaderContentGuard.md +16 -15
  144. data/docs/PatchedOpenPGPDistribution.md +20 -19
  145. data/docs/PatchedOpenPGPKeyring.md +16 -15
  146. data/docs/PatchedPulpExporter.md +14 -13
  147. data/docs/PatchedPulpImporter.md +10 -9
  148. data/docs/PatchedRBACContentGuard.md +10 -9
  149. data/docs/PatchedRole.md +12 -11
  150. data/docs/PatchedTaskCancel.md +8 -7
  151. data/docs/PatchedUpstreamPulp.md +28 -27
  152. data/docs/PatchedUser.md +20 -19
  153. data/docs/PolicyEnum.md +4 -5
  154. data/docs/ProfileArtifactResponse.md +8 -7
  155. data/docs/ProgressReportResponse.md +18 -17
  156. data/docs/PublicationResponse.md +18 -17
  157. data/docs/PublicationsApi.md +67 -49
  158. data/docs/PulpExport.md +18 -17
  159. data/docs/PulpExportResponse.md +24 -23
  160. data/docs/PulpExporter.md +14 -13
  161. data/docs/PulpExporterResponse.md +22 -21
  162. data/docs/PulpImport.md +12 -11
  163. data/docs/PulpImportCheck.md +12 -11
  164. data/docs/PulpImportCheckResponse.md +12 -11
  165. data/docs/PulpImporter.md +10 -9
  166. data/docs/PulpImporterResponse.md +18 -17
  167. data/docs/Purge.md +10 -9
  168. data/docs/RBACContentGuard.md +10 -9
  169. data/docs/RBACContentGuardResponse.md +22 -21
  170. data/docs/ReclaimSpace.md +10 -9
  171. data/docs/RedisConnectionResponse.md +8 -7
  172. data/docs/RemotesApi.md +73 -55
  173. data/docs/Repair.md +8 -7
  174. data/docs/RepairApi.md +29 -13
  175. data/docs/RepositoriesApi.md +71 -55
  176. data/docs/RepositoriesOpenpgpKeyringApi.md +416 -196
  177. data/docs/RepositoriesReclaimSpaceApi.md +30 -13
  178. data/docs/RepositoryAddRemoveContent.md +12 -11
  179. data/docs/RepositoryResponse.md +28 -27
  180. data/docs/RepositoryVersionResponse.md +22 -21
  181. data/docs/RepositoryVersionsApi.md +65 -47
  182. data/docs/Role.md +12 -11
  183. data/docs/RoleResponse.md +22 -21
  184. data/docs/RolesApi.md +203 -102
  185. data/docs/SetLabel.md +10 -9
  186. data/docs/SetLabelResponse.md +10 -9
  187. data/docs/SigningServiceResponse.md +22 -21
  188. data/docs/SigningServicesApi.md +75 -42
  189. data/docs/StatesEnum.md +4 -5
  190. data/docs/StatusApi.md +26 -9
  191. data/docs/StatusResponse.md +24 -23
  192. data/docs/StorageClassEnum.md +4 -5
  193. data/docs/StorageResponse.md +12 -11
  194. data/docs/TaskGroupOperationResponse.md +8 -7
  195. data/docs/TaskGroupResponse.md +32 -31
  196. data/docs/TaskGroupsApi.md +93 -43
  197. data/docs/TaskResponse.md +44 -43
  198. data/docs/TaskScheduleResponse.md +24 -23
  199. data/docs/TaskSchedulesApi.md +198 -97
  200. data/docs/TasksApi.md +382 -195
  201. data/docs/UnsetLabel.md +8 -7
  202. data/docs/UnsetLabelResponse.md +10 -9
  203. data/docs/Upload.md +8 -7
  204. data/docs/UploadChunkResponse.md +10 -9
  205. data/docs/UploadCommit.md +8 -7
  206. data/docs/UploadDetailResponse.md +20 -19
  207. data/docs/UploadResponse.md +18 -17
  208. data/docs/UploadsApi.md +313 -144
  209. data/docs/UpstreamPulp.md +28 -27
  210. data/docs/UpstreamPulpResponse.md +34 -33
  211. data/docs/UpstreamPulpsApi.md +366 -178
  212. data/docs/User.md +20 -19
  213. data/docs/UserGroup.md +8 -7
  214. data/docs/UserGroupResponse.md +12 -11
  215. data/docs/UserResponse.md +30 -29
  216. data/docs/UserRole.md +12 -11
  217. data/docs/UserRoleResponse.md +24 -23
  218. data/docs/UsersApi.md +211 -110
  219. data/docs/UsersRolesApi.md +139 -72
  220. data/docs/VersionResponse.md +16 -15
  221. data/docs/WorkerResponse.md +22 -21
  222. data/docs/WorkersApi.md +100 -65
  223. data/lib/pulpcore_client/api/access_policies_api.rb +34 -23
  224. data/lib/pulpcore_client/api/artifacts_api.rb +24 -17
  225. data/lib/pulpcore_client/api/content_api.rb +6 -5
  226. data/lib/pulpcore_client/api/content_openpgp_publickey_api.rb +20 -14
  227. data/lib/pulpcore_client/api/content_openpgp_publicsubkey_api.rb +11 -9
  228. data/lib/pulpcore_client/api/content_openpgp_signature_api.rb +11 -9
  229. data/lib/pulpcore_client/api/content_openpgp_userattribute_api.rb +11 -9
  230. data/lib/pulpcore_client/api/content_openpgp_userid_api.rb +11 -9
  231. data/lib/pulpcore_client/api/contentguards_api.rb +6 -5
  232. data/lib/pulpcore_client/api/contentguards_composite_api.rb +70 -45
  233. data/lib/pulpcore_client/api/contentguards_content_redirect_api.rb +70 -45
  234. data/lib/pulpcore_client/api/contentguards_header_api.rb +70 -45
  235. data/lib/pulpcore_client/api/contentguards_rbac_api.rb +70 -45
  236. data/lib/pulpcore_client/api/distributions_api.rb +6 -5
  237. data/lib/pulpcore_client/api/distributions_artifacts_api.rb +11 -9
  238. data/lib/pulpcore_client/api/distributions_openpgp_api.rb +61 -38
  239. data/lib/pulpcore_client/api/domains_api.rb +52 -33
  240. data/lib/pulpcore_client/api/exporters_filesystem_api.rb +43 -28
  241. data/lib/pulpcore_client/api/exporters_filesystem_exports_api.rb +24 -17
  242. data/lib/pulpcore_client/api/exporters_pulp_api.rb +43 -28
  243. data/lib/pulpcore_client/api/exporters_pulp_exports_api.rb +24 -17
  244. data/lib/pulpcore_client/api/groups_api.rb +70 -45
  245. data/lib/pulpcore_client/api/groups_roles_api.rb +24 -17
  246. data/lib/pulpcore_client/api/groups_users_api.rb +19 -13
  247. data/lib/pulpcore_client/api/importers_pulp_api.rb +42 -27
  248. data/lib/pulpcore_client/api/importers_pulp_import_check_api.rb +10 -6
  249. data/lib/pulpcore_client/api/importers_pulp_imports_api.rb +24 -17
  250. data/lib/pulpcore_client/api/livez_api.rb +5 -4
  251. data/lib/pulpcore_client/api/login_api.rb +179 -0
  252. data/lib/pulpcore_client/api/orphans_api.rb +6 -5
  253. data/lib/pulpcore_client/api/orphans_cleanup_api.rb +10 -6
  254. data/lib/pulpcore_client/api/publications_api.rb +21 -17
  255. data/lib/pulpcore_client/api/remotes_api.rb +23 -19
  256. data/lib/pulpcore_client/api/repair_api.rb +10 -6
  257. data/lib/pulpcore_client/api/repositories_api.rb +6 -5
  258. data/lib/pulpcore_client/api/repositories_openpgp_keyring_api.rb +98 -61
  259. data/lib/pulpcore_client/api/repositories_reclaim_space_api.rb +10 -6
  260. data/lib/pulpcore_client/api/repository_versions_api.rb +21 -17
  261. data/lib/pulpcore_client/api/roles_api.rb +42 -27
  262. data/lib/pulpcore_client/api/signing_services_api.rb +11 -9
  263. data/lib/pulpcore_client/api/status_api.rb +6 -5
  264. data/lib/pulpcore_client/api/task_groups_api.rb +20 -14
  265. data/lib/pulpcore_client/api/task_schedules_api.rb +39 -27
  266. data/lib/pulpcore_client/api/tasks_api.rb +117 -68
  267. data/lib/pulpcore_client/api/uploads_api.rb +70 -45
  268. data/lib/pulpcore_client/api/upstream_pulps_api.rb +93 -64
  269. data/lib/pulpcore_client/api/users_api.rb +42 -27
  270. data/lib/pulpcore_client/api/users_roles_api.rb +24 -17
  271. data/lib/pulpcore_client/api/workers_api.rb +26 -21
  272. data/lib/pulpcore_client/api_client.rb +137 -102
  273. data/lib/pulpcore_client/api_error.rb +2 -1
  274. data/lib/pulpcore_client/configuration.rb +162 -21
  275. data/lib/pulpcore_client/models/access_policy.rb +32 -22
  276. data/lib/pulpcore_client/models/access_policy_response.rb +34 -24
  277. data/lib/pulpcore_client/models/api_app_status_response.rb +31 -23
  278. data/lib/pulpcore_client/models/artifact_distribution_response.rb +91 -79
  279. data/lib/pulpcore_client/models/artifact_response.rb +34 -24
  280. data/lib/pulpcore_client/models/async_operation_response.rb +32 -22
  281. data/lib/pulpcore_client/models/composite_content_guard.rb +32 -22
  282. data/lib/pulpcore_client/models/composite_content_guard_response.rb +34 -24
  283. data/lib/pulpcore_client/models/content_app_status_response.rb +31 -23
  284. data/lib/pulpcore_client/models/content_guard_response.rb +34 -24
  285. data/lib/pulpcore_client/models/content_redirect_content_guard.rb +32 -22
  286. data/lib/pulpcore_client/models/content_redirect_content_guard_response.rb +34 -24
  287. data/lib/pulpcore_client/models/content_settings_response.rb +33 -27
  288. data/lib/pulpcore_client/models/content_summary_response.rb +36 -22
  289. data/lib/pulpcore_client/models/database_connection_response.rb +32 -22
  290. data/lib/pulpcore_client/models/distribution_response.rb +36 -24
  291. data/lib/pulpcore_client/models/domain.rb +58 -22
  292. data/lib/pulpcore_client/models/domain_backend_migrator.rb +56 -22
  293. data/lib/pulpcore_client/models/domain_response.rb +60 -24
  294. data/lib/pulpcore_client/models/evaluation_response.rb +36 -22
  295. data/lib/pulpcore_client/models/filesystem_export.rb +30 -22
  296. data/lib/pulpcore_client/models/filesystem_export_response.rb +32 -24
  297. data/lib/pulpcore_client/models/filesystem_exporter.rb +56 -22
  298. data/lib/pulpcore_client/models/filesystem_exporter_response.rb +58 -24
  299. data/lib/pulpcore_client/models/{remote_response.rb → generic_remote_response.rb} +63 -29
  300. data/lib/pulpcore_client/models/{remote_response_hidden_fields.rb → generic_remote_response_hidden_fields_inner.rb} +37 -25
  301. data/lib/pulpcore_client/models/group.rb +32 -22
  302. data/lib/pulpcore_client/models/group_progress_report_response.rb +30 -22
  303. data/lib/pulpcore_client/models/group_response.rb +32 -22
  304. data/lib/pulpcore_client/models/group_role.rb +35 -23
  305. data/lib/pulpcore_client/models/group_role_response.rb +36 -24
  306. data/lib/pulpcore_client/models/group_user.rb +32 -22
  307. data/lib/pulpcore_client/models/group_user_response.rb +32 -22
  308. data/lib/pulpcore_client/models/header_content_guard.rb +36 -22
  309. data/lib/pulpcore_client/models/header_content_guard_response.rb +38 -24
  310. data/lib/pulpcore_client/models/import_response.rb +36 -24
  311. data/lib/pulpcore_client/models/{upload_chunk.rb → login_response.rb} +55 -62
  312. data/lib/pulpcore_client/models/method_enum.rb +8 -4
  313. data/lib/pulpcore_client/models/minimal_task_response.rb +37 -27
  314. data/lib/pulpcore_client/models/multiple_artifact_content_response.rb +34 -24
  315. data/lib/pulpcore_client/models/my_permissions_response.rb +32 -22
  316. data/lib/pulpcore_client/models/nested_open_pgp_public_subkey.rb +35 -23
  317. data/lib/pulpcore_client/models/nested_open_pgp_public_subkey_response.rb +35 -23
  318. data/lib/pulpcore_client/models/nested_open_pgp_signature.rb +35 -23
  319. data/lib/pulpcore_client/models/nested_open_pgp_signature_response.rb +35 -23
  320. data/lib/pulpcore_client/models/nested_open_pgp_user_attribute.rb +32 -22
  321. data/lib/pulpcore_client/models/nested_open_pgp_user_attribute_response.rb +32 -22
  322. data/lib/pulpcore_client/models/nested_open_pgp_user_id.rb +32 -22
  323. data/lib/pulpcore_client/models/nested_open_pgp_user_id_response.rb +32 -22
  324. data/lib/pulpcore_client/models/nested_role.rb +32 -22
  325. data/lib/pulpcore_client/models/nested_role_response.rb +32 -22
  326. data/lib/pulpcore_client/models/object_roles_response.rb +32 -22
  327. data/lib/pulpcore_client/models/open_pgp_distribution.rb +34 -22
  328. data/lib/pulpcore_client/models/open_pgp_distribution_response.rb +36 -24
  329. data/lib/pulpcore_client/models/open_pgp_keyring.rb +32 -22
  330. data/lib/pulpcore_client/models/open_pgp_keyring_response.rb +34 -24
  331. data/lib/pulpcore_client/models/open_pgp_public_key_response.rb +38 -26
  332. data/lib/pulpcore_client/models/open_pgp_public_subkey_response.rb +37 -25
  333. data/lib/pulpcore_client/models/open_pgp_signature_response.rb +37 -25
  334. data/lib/pulpcore_client/models/open_pgp_user_attribute_response.rb +34 -24
  335. data/lib/pulpcore_client/models/open_pgp_user_id_response.rb +34 -24
  336. data/lib/pulpcore_client/models/orphans_cleanup.rb +31 -23
  337. data/lib/pulpcore_client/models/paginated_access_policy_response_list.rb +34 -22
  338. data/lib/pulpcore_client/models/paginated_artifact_distribution_response_list.rb +34 -22
  339. data/lib/pulpcore_client/models/paginated_artifact_response_list.rb +34 -22
  340. data/lib/pulpcore_client/models/paginated_composite_content_guard_response_list.rb +34 -22
  341. data/lib/pulpcore_client/models/paginated_content_guard_response_list.rb +34 -22
  342. data/lib/pulpcore_client/models/paginated_content_redirect_content_guard_response_list.rb +34 -22
  343. data/lib/pulpcore_client/models/paginated_distribution_response_list.rb +34 -22
  344. data/lib/pulpcore_client/models/paginated_domain_response_list.rb +34 -22
  345. data/lib/pulpcore_client/models/paginated_filesystem_export_response_list.rb +34 -22
  346. data/lib/pulpcore_client/models/paginated_filesystem_exporter_response_list.rb +34 -22
  347. data/lib/pulpcore_client/models/{paginated_remote_response_list.rb → paginated_generic_remote_response_list.rb} +38 -26
  348. data/lib/pulpcore_client/models/paginated_group_response_list.rb +34 -22
  349. data/lib/pulpcore_client/models/paginated_group_role_response_list.rb +34 -22
  350. data/lib/pulpcore_client/models/paginated_group_user_response_list.rb +34 -22
  351. data/lib/pulpcore_client/models/paginated_header_content_guard_response_list.rb +34 -22
  352. data/lib/pulpcore_client/models/paginated_import_response_list.rb +34 -22
  353. data/lib/pulpcore_client/models/paginated_multiple_artifact_content_response_list.rb +34 -22
  354. data/lib/pulpcore_client/models/paginated_open_pgp_distribution_response_list.rb +34 -22
  355. data/lib/pulpcore_client/models/paginated_open_pgp_keyring_response_list.rb +34 -22
  356. data/lib/pulpcore_client/models/paginated_open_pgp_public_key_response_list.rb +34 -22
  357. data/lib/pulpcore_client/models/paginated_open_pgp_public_subkey_response_list.rb +34 -22
  358. data/lib/pulpcore_client/models/paginated_open_pgp_signature_response_list.rb +34 -22
  359. data/lib/pulpcore_client/models/paginated_open_pgp_user_attribute_response_list.rb +34 -22
  360. data/lib/pulpcore_client/models/paginated_open_pgp_user_id_response_list.rb +34 -22
  361. data/lib/pulpcore_client/models/paginated_publication_response_list.rb +34 -22
  362. data/lib/pulpcore_client/models/paginated_pulp_export_response_list.rb +34 -22
  363. data/lib/pulpcore_client/models/paginated_pulp_exporter_response_list.rb +34 -22
  364. data/lib/pulpcore_client/models/paginated_pulp_importer_response_list.rb +34 -22
  365. data/lib/pulpcore_client/models/paginated_rbac_content_guard_response_list.rb +34 -22
  366. data/lib/pulpcore_client/models/paginated_repository_response_list.rb +34 -22
  367. data/lib/pulpcore_client/models/paginated_repository_version_response_list.rb +34 -22
  368. data/lib/pulpcore_client/models/paginated_role_response_list.rb +34 -22
  369. data/lib/pulpcore_client/models/paginated_signing_service_response_list.rb +34 -22
  370. data/lib/pulpcore_client/models/paginated_task_group_response_list.rb +34 -22
  371. data/lib/pulpcore_client/models/paginated_task_response_list.rb +34 -22
  372. data/lib/pulpcore_client/models/paginated_task_schedule_response_list.rb +34 -22
  373. data/lib/pulpcore_client/models/paginated_upload_response_list.rb +34 -22
  374. data/lib/pulpcore_client/models/paginated_upstream_pulp_response_list.rb +34 -22
  375. data/lib/pulpcore_client/models/paginated_user_response_list.rb +34 -22
  376. data/lib/pulpcore_client/models/paginated_user_role_response_list.rb +34 -22
  377. data/lib/pulpcore_client/models/paginated_worker_response_list.rb +34 -22
  378. data/lib/pulpcore_client/models/patched_access_policy.rb +30 -22
  379. data/lib/pulpcore_client/models/patched_composite_content_guard.rb +35 -23
  380. data/lib/pulpcore_client/models/patched_content_redirect_content_guard.rb +35 -23
  381. data/lib/pulpcore_client/models/patched_domain.rb +59 -25
  382. data/lib/pulpcore_client/models/patched_filesystem_exporter.rb +62 -24
  383. data/lib/pulpcore_client/models/patched_group.rb +36 -24
  384. data/lib/pulpcore_client/models/patched_header_content_guard.rb +45 -25
  385. data/lib/pulpcore_client/models/patched_open_pgp_distribution.rb +40 -24
  386. data/lib/pulpcore_client/models/patched_open_pgp_keyring.rb +35 -23
  387. data/lib/pulpcore_client/models/patched_pulp_exporter.rb +40 -24
  388. data/lib/pulpcore_client/models/patched_pulp_importer.rb +35 -23
  389. data/lib/pulpcore_client/models/patched_rbac_content_guard.rb +35 -23
  390. data/lib/pulpcore_client/models/patched_role.rb +35 -23
  391. data/lib/pulpcore_client/models/patched_task_cancel.rb +35 -23
  392. data/lib/pulpcore_client/models/patched_upstream_pulp.rb +45 -25
  393. data/lib/pulpcore_client/models/patched_user.rb +46 -26
  394. data/lib/pulpcore_client/models/policy_enum.rb +10 -5
  395. data/lib/pulpcore_client/models/profile_artifact_response.rb +32 -22
  396. data/lib/pulpcore_client/models/progress_report_response.rb +30 -22
  397. data/lib/pulpcore_client/models/publication_response.rb +32 -24
  398. data/lib/pulpcore_client/models/pulp_export.rb +35 -23
  399. data/lib/pulpcore_client/models/pulp_export_response.rb +32 -24
  400. data/lib/pulpcore_client/models/pulp_exporter.rb +36 -22
  401. data/lib/pulpcore_client/models/pulp_exporter_response.rb +38 -24
  402. data/lib/pulpcore_client/models/pulp_import.rb +40 -24
  403. data/lib/pulpcore_client/models/pulp_import_check.rb +45 -25
  404. data/lib/pulpcore_client/models/pulp_import_check_response.rb +30 -22
  405. data/lib/pulpcore_client/models/pulp_importer.rb +32 -22
  406. data/lib/pulpcore_client/models/pulp_importer_response.rb +34 -24
  407. data/lib/pulpcore_client/models/purge.rb +31 -23
  408. data/lib/pulpcore_client/models/rbac_content_guard.rb +32 -22
  409. data/lib/pulpcore_client/models/rbac_content_guard_response.rb +34 -24
  410. data/lib/pulpcore_client/models/reclaim_space.rb +33 -23
  411. data/lib/pulpcore_client/models/redis_connection_response.rb +32 -22
  412. data/lib/pulpcore_client/models/repair.rb +30 -22
  413. data/lib/pulpcore_client/models/repository_add_remove_content.rb +30 -22
  414. data/lib/pulpcore_client/models/repository_response.rb +34 -24
  415. data/lib/pulpcore_client/models/repository_version_response.rb +32 -24
  416. data/lib/pulpcore_client/models/role.rb +34 -22
  417. data/lib/pulpcore_client/models/role_response.rb +36 -24
  418. data/lib/pulpcore_client/models/set_label.rb +34 -22
  419. data/lib/pulpcore_client/models/set_label_response.rb +34 -22
  420. data/lib/pulpcore_client/models/signing_service_response.rb +40 -24
  421. data/lib/pulpcore_client/models/states_enum.rb +8 -4
  422. data/lib/pulpcore_client/models/status_response.rb +44 -22
  423. data/lib/pulpcore_client/models/storage_class_enum.rb +8 -4
  424. data/lib/pulpcore_client/models/storage_response.rb +39 -25
  425. data/lib/pulpcore_client/models/task_group_operation_response.rb +32 -22
  426. data/lib/pulpcore_client/models/task_group_response.rb +34 -22
  427. data/lib/pulpcore_client/models/task_response.rb +39 -27
  428. data/lib/pulpcore_client/models/task_schedule_response.rb +39 -25
  429. data/lib/pulpcore_client/models/unset_label.rb +32 -22
  430. data/lib/pulpcore_client/models/unset_label_response.rb +32 -22
  431. data/lib/pulpcore_client/models/upload.rb +32 -22
  432. data/lib/pulpcore_client/models/upload_chunk_response.rb +30 -22
  433. data/lib/pulpcore_client/models/upload_commit.rb +32 -22
  434. data/lib/pulpcore_client/models/upload_detail_response.rb +35 -25
  435. data/lib/pulpcore_client/models/upload_response.rb +35 -25
  436. data/lib/pulpcore_client/models/upstream_pulp.rb +36 -22
  437. data/lib/pulpcore_client/models/upstream_pulp_response.rb +40 -26
  438. data/lib/pulpcore_client/models/user.rb +42 -24
  439. data/lib/pulpcore_client/models/user_group.rb +32 -22
  440. data/lib/pulpcore_client/models/user_group_response.rb +32 -22
  441. data/lib/pulpcore_client/models/user_response.rb +44 -26
  442. data/lib/pulpcore_client/models/user_role.rb +35 -23
  443. data/lib/pulpcore_client/models/user_role_response.rb +36 -24
  444. data/lib/pulpcore_client/models/version_response.rb +40 -22
  445. data/lib/pulpcore_client/models/worker_response.rb +33 -25
  446. data/lib/pulpcore_client/version.rb +2 -2
  447. data/lib/pulpcore_client.rb +6 -7
  448. data/pulpcore_client.gemspec +9 -6
  449. data/spec/api/access_policies_api_spec.rb +6 -6
  450. data/spec/api/artifacts_api_spec.rb +5 -5
  451. data/spec/api/content_api_spec.rb +2 -2
  452. data/spec/api/content_openpgp_publickey_api_spec.rb +4 -4
  453. data/spec/api/content_openpgp_publicsubkey_api_spec.rb +3 -3
  454. data/spec/api/content_openpgp_signature_api_spec.rb +3 -3
  455. data/spec/api/content_openpgp_userattribute_api_spec.rb +3 -3
  456. data/spec/api/content_openpgp_userid_api_spec.rb +3 -3
  457. data/spec/api/contentguards_api_spec.rb +2 -2
  458. data/spec/api/contentguards_composite_api_spec.rb +11 -11
  459. data/spec/api/contentguards_content_redirect_api_spec.rb +11 -11
  460. data/spec/api/contentguards_header_api_spec.rb +11 -11
  461. data/spec/api/contentguards_rbac_api_spec.rb +11 -11
  462. data/spec/api/distributions_api_spec.rb +2 -2
  463. data/spec/api/distributions_artifacts_api_spec.rb +3 -3
  464. data/spec/api/distributions_openpgp_api_spec.rb +9 -9
  465. data/spec/api/domains_api_spec.rb +8 -8
  466. data/spec/api/exporters_filesystem_api_spec.rb +7 -7
  467. data/spec/api/exporters_filesystem_exports_api_spec.rb +5 -5
  468. data/spec/api/exporters_pulp_api_spec.rb +7 -7
  469. data/spec/api/exporters_pulp_exports_api_spec.rb +5 -5
  470. data/spec/api/groups_api_spec.rb +11 -11
  471. data/spec/api/groups_roles_api_spec.rb +5 -5
  472. data/spec/api/groups_users_api_spec.rb +4 -4
  473. data/spec/api/importers_pulp_api_spec.rb +7 -7
  474. data/spec/api/importers_pulp_import_check_api_spec.rb +2 -2
  475. data/spec/api/importers_pulp_imports_api_spec.rb +5 -5
  476. data/spec/api/livez_api_spec.rb +2 -2
  477. data/spec/api/login_api_spec.rb +62 -0
  478. data/spec/api/orphans_api_spec.rb +2 -2
  479. data/spec/api/orphans_cleanup_api_spec.rb +2 -2
  480. data/spec/api/publications_api_spec.rb +9 -8
  481. data/spec/api/remotes_api_spec.rb +10 -9
  482. data/spec/api/repair_api_spec.rb +2 -2
  483. data/spec/api/repositories_api_spec.rb +2 -2
  484. data/spec/api/repositories_openpgp_keyring_api_spec.rb +14 -14
  485. data/spec/api/repositories_reclaim_space_api_spec.rb +2 -2
  486. data/spec/api/repository_versions_api_spec.rb +9 -8
  487. data/spec/api/roles_api_spec.rb +7 -7
  488. data/spec/api/signing_services_api_spec.rb +3 -3
  489. data/spec/api/status_api_spec.rb +2 -2
  490. data/spec/api/task_groups_api_spec.rb +4 -4
  491. data/spec/api/task_schedules_api_spec.rb +7 -7
  492. data/spec/api/tasks_api_spec.rb +32 -23
  493. data/spec/api/uploads_api_spec.rb +11 -11
  494. data/spec/api/upstream_pulps_api_spec.rb +20 -19
  495. data/spec/api/users_api_spec.rb +7 -7
  496. data/spec/api/users_roles_api_spec.rb +5 -5
  497. data/spec/api/workers_api_spec.rb +10 -9
  498. data/spec/models/access_policy_response_spec.rb +16 -21
  499. data/spec/models/access_policy_spec.rb +10 -15
  500. data/spec/models/api_app_status_response_spec.rb +9 -14
  501. data/spec/models/artifact_distribution_response_spec.rb +27 -32
  502. data/spec/models/artifact_response_spec.rb +18 -23
  503. data/spec/models/async_operation_response_spec.rb +7 -12
  504. data/spec/models/composite_content_guard_response_spec.rb +13 -18
  505. data/spec/models/composite_content_guard_spec.rb +9 -14
  506. data/spec/models/content_app_status_response_spec.rb +9 -14
  507. data/spec/models/content_guard_response_spec.rb +12 -17
  508. data/spec/models/content_redirect_content_guard_response_spec.rb +12 -17
  509. data/spec/models/content_redirect_content_guard_spec.rb +8 -13
  510. data/spec/models/content_settings_response_spec.rb +8 -13
  511. data/spec/models/content_summary_response_spec.rb +9 -14
  512. data/spec/models/database_connection_response_spec.rb +7 -12
  513. data/spec/models/distribution_response_spec.rb +18 -23
  514. data/spec/models/domain_backend_migrator_spec.rb +8 -13
  515. data/spec/models/domain_response_spec.rb +16 -21
  516. data/spec/models/domain_spec.rb +12 -17
  517. data/spec/models/evaluation_response_spec.rb +9 -14
  518. data/spec/models/filesystem_export_response_spec.rb +13 -18
  519. data/spec/models/filesystem_export_spec.rb +10 -15
  520. data/spec/models/filesystem_exporter_response_spec.rb +13 -18
  521. data/spec/models/filesystem_exporter_spec.rb +9 -14
  522. data/spec/models/generic_remote_response_hidden_fields_inner_spec.rb +42 -0
  523. data/spec/models/generic_remote_response_spec.rb +156 -0
  524. data/spec/models/group_progress_report_response_spec.rb +11 -16
  525. data/spec/models/group_response_spec.rb +10 -15
  526. data/spec/models/group_role_response_spec.rb +15 -20
  527. data/spec/models/group_role_spec.rb +9 -14
  528. data/spec/models/group_spec.rb +7 -12
  529. data/spec/models/group_user_response_spec.rb +9 -14
  530. data/spec/models/group_user_spec.rb +7 -12
  531. data/spec/models/header_content_guard_response_spec.rb +15 -20
  532. data/spec/models/header_content_guard_spec.rb +11 -16
  533. data/spec/models/import_response_spec.rb +12 -17
  534. data/spec/models/login_response_spec.rb +48 -0
  535. data/spec/models/method_enum_spec.rb +6 -11
  536. data/spec/models/minimal_task_response_spec.rb +16 -21
  537. data/spec/models/multiple_artifact_content_response_spec.rb +11 -16
  538. data/spec/models/my_permissions_response_spec.rb +7 -12
  539. data/spec/models/nested_open_pgp_public_subkey_response_spec.rb +9 -14
  540. data/spec/models/nested_open_pgp_public_subkey_spec.rb +8 -13
  541. data/spec/models/nested_open_pgp_signature_response_spec.rb +13 -18
  542. data/spec/models/nested_open_pgp_signature_spec.rb +12 -17
  543. data/spec/models/nested_open_pgp_user_attribute_response_spec.rb +8 -13
  544. data/spec/models/nested_open_pgp_user_attribute_spec.rb +7 -12
  545. data/spec/models/nested_open_pgp_user_id_response_spec.rb +8 -13
  546. data/spec/models/nested_open_pgp_user_id_spec.rb +7 -12
  547. data/spec/models/nested_role_response_spec.rb +9 -14
  548. data/spec/models/nested_role_spec.rb +9 -14
  549. data/spec/models/object_roles_response_spec.rb +7 -12
  550. data/spec/models/open_pgp_distribution_response_spec.rb +19 -24
  551. data/spec/models/open_pgp_distribution_spec.rb +13 -18
  552. data/spec/models/open_pgp_keyring_response_spec.rb +17 -22
  553. data/spec/models/open_pgp_keyring_spec.rb +11 -16
  554. data/spec/models/open_pgp_public_key_response_spec.rb +15 -20
  555. data/spec/models/open_pgp_public_subkey_response_spec.rb +14 -19
  556. data/spec/models/open_pgp_signature_response_spec.rb +18 -23
  557. data/spec/models/open_pgp_user_attribute_response_spec.rb +13 -18
  558. data/spec/models/open_pgp_user_id_response_spec.rb +13 -18
  559. data/spec/models/orphans_cleanup_spec.rb +8 -13
  560. data/spec/models/paginated_access_policy_response_list_spec.rb +10 -15
  561. data/spec/models/paginated_artifact_distribution_response_list_spec.rb +10 -15
  562. data/spec/models/paginated_artifact_response_list_spec.rb +10 -15
  563. data/spec/models/paginated_composite_content_guard_response_list_spec.rb +10 -15
  564. data/spec/models/paginated_content_guard_response_list_spec.rb +10 -15
  565. data/spec/models/paginated_content_redirect_content_guard_response_list_spec.rb +10 -15
  566. data/spec/models/paginated_distribution_response_list_spec.rb +10 -15
  567. data/spec/models/paginated_domain_response_list_spec.rb +10 -15
  568. data/spec/models/paginated_filesystem_export_response_list_spec.rb +10 -15
  569. data/spec/models/paginated_filesystem_exporter_response_list_spec.rb +10 -15
  570. data/spec/models/paginated_generic_remote_response_list_spec.rb +54 -0
  571. data/spec/models/paginated_group_response_list_spec.rb +10 -15
  572. data/spec/models/paginated_group_role_response_list_spec.rb +10 -15
  573. data/spec/models/paginated_group_user_response_list_spec.rb +10 -15
  574. data/spec/models/paginated_header_content_guard_response_list_spec.rb +10 -15
  575. data/spec/models/paginated_import_response_list_spec.rb +10 -15
  576. data/spec/models/paginated_multiple_artifact_content_response_list_spec.rb +10 -15
  577. data/spec/models/paginated_open_pgp_distribution_response_list_spec.rb +10 -15
  578. data/spec/models/paginated_open_pgp_keyring_response_list_spec.rb +10 -15
  579. data/spec/models/paginated_open_pgp_public_key_response_list_spec.rb +10 -15
  580. data/spec/models/paginated_open_pgp_public_subkey_response_list_spec.rb +10 -15
  581. data/spec/models/paginated_open_pgp_signature_response_list_spec.rb +10 -15
  582. data/spec/models/paginated_open_pgp_user_attribute_response_list_spec.rb +10 -15
  583. data/spec/models/paginated_open_pgp_user_id_response_list_spec.rb +10 -15
  584. data/spec/models/paginated_publication_response_list_spec.rb +10 -15
  585. data/spec/models/paginated_pulp_export_response_list_spec.rb +10 -15
  586. data/spec/models/paginated_pulp_exporter_response_list_spec.rb +10 -15
  587. data/spec/models/paginated_pulp_importer_response_list_spec.rb +10 -15
  588. data/spec/models/paginated_rbac_content_guard_response_list_spec.rb +10 -15
  589. data/spec/models/paginated_repository_response_list_spec.rb +10 -15
  590. data/spec/models/paginated_repository_version_response_list_spec.rb +10 -15
  591. data/spec/models/paginated_role_response_list_spec.rb +10 -15
  592. data/spec/models/paginated_signing_service_response_list_spec.rb +10 -15
  593. data/spec/models/paginated_task_group_response_list_spec.rb +10 -15
  594. data/spec/models/paginated_task_response_list_spec.rb +10 -15
  595. data/spec/models/paginated_task_schedule_response_list_spec.rb +10 -15
  596. data/spec/models/paginated_upload_response_list_spec.rb +10 -15
  597. data/spec/models/paginated_upstream_pulp_response_list_spec.rb +10 -15
  598. data/spec/models/paginated_user_response_list_spec.rb +10 -15
  599. data/spec/models/paginated_user_role_response_list_spec.rb +10 -15
  600. data/spec/models/paginated_worker_response_list_spec.rb +10 -15
  601. data/spec/models/patched_access_policy_spec.rb +10 -15
  602. data/spec/models/patched_composite_content_guard_spec.rb +9 -14
  603. data/spec/models/patched_content_redirect_content_guard_spec.rb +8 -13
  604. data/spec/models/patched_domain_spec.rb +12 -17
  605. data/spec/models/patched_filesystem_exporter_spec.rb +9 -14
  606. data/spec/models/patched_group_spec.rb +7 -12
  607. data/spec/models/patched_header_content_guard_spec.rb +11 -16
  608. data/spec/models/patched_open_pgp_distribution_spec.rb +13 -18
  609. data/spec/models/patched_open_pgp_keyring_spec.rb +11 -16
  610. data/spec/models/patched_pulp_exporter_spec.rb +10 -15
  611. data/spec/models/patched_pulp_importer_spec.rb +8 -13
  612. data/spec/models/patched_rbac_content_guard_spec.rb +8 -13
  613. data/spec/models/patched_role_spec.rb +9 -14
  614. data/spec/models/patched_task_cancel_spec.rb +7 -12
  615. data/spec/models/patched_upstream_pulp_spec.rb +17 -22
  616. data/spec/models/patched_user_spec.rb +13 -18
  617. data/spec/models/policy_enum_spec.rb +6 -11
  618. data/spec/models/profile_artifact_response_spec.rb +7 -12
  619. data/spec/models/progress_report_response_spec.rb +12 -17
  620. data/spec/models/publication_response_spec.rb +12 -17
  621. data/spec/models/pulp_export_response_spec.rb +15 -20
  622. data/spec/models/pulp_export_spec.rb +12 -17
  623. data/spec/models/pulp_exporter_response_spec.rb +14 -19
  624. data/spec/models/pulp_exporter_spec.rb +10 -15
  625. data/spec/models/pulp_import_check_response_spec.rb +9 -14
  626. data/spec/models/pulp_import_check_spec.rb +9 -14
  627. data/spec/models/pulp_import_spec.rb +9 -14
  628. data/spec/models/pulp_importer_response_spec.rb +12 -17
  629. data/spec/models/pulp_importer_spec.rb +8 -13
  630. data/spec/models/purge_spec.rb +8 -13
  631. data/spec/models/rbac_content_guard_response_spec.rb +14 -19
  632. data/spec/models/rbac_content_guard_spec.rb +8 -13
  633. data/spec/models/reclaim_space_spec.rb +8 -13
  634. data/spec/models/redis_connection_response_spec.rb +7 -12
  635. data/spec/models/repair_spec.rb +7 -12
  636. data/spec/models/repository_add_remove_content_spec.rb +9 -14
  637. data/spec/models/repository_response_spec.rb +17 -22
  638. data/spec/models/repository_version_response_spec.rb +14 -19
  639. data/spec/models/role_response_spec.rb +14 -19
  640. data/spec/models/role_spec.rb +9 -14
  641. data/spec/models/set_label_response_spec.rb +8 -13
  642. data/spec/models/set_label_spec.rb +8 -13
  643. data/spec/models/signing_service_response_spec.rb +14 -19
  644. data/spec/models/states_enum_spec.rb +6 -11
  645. data/spec/models/status_response_spec.rb +15 -20
  646. data/spec/models/storage_class_enum_spec.rb +6 -11
  647. data/spec/models/storage_response_spec.rb +9 -14
  648. data/spec/models/task_group_operation_response_spec.rb +7 -12
  649. data/spec/models/task_group_response_spec.rb +19 -24
  650. data/spec/models/task_response_spec.rb +25 -30
  651. data/spec/models/task_schedule_response_spec.rb +15 -20
  652. data/spec/models/unset_label_response_spec.rb +8 -13
  653. data/spec/models/unset_label_spec.rb +7 -12
  654. data/spec/models/upload_chunk_response_spec.rb +8 -13
  655. data/spec/models/upload_commit_spec.rb +7 -12
  656. data/spec/models/upload_detail_response_spec.rb +13 -18
  657. data/spec/models/upload_response_spec.rb +12 -17
  658. data/spec/models/upload_spec.rb +7 -12
  659. data/spec/models/upstream_pulp_response_spec.rb +20 -25
  660. data/spec/models/upstream_pulp_spec.rb +17 -22
  661. data/spec/models/user_group_response_spec.rb +9 -14
  662. data/spec/models/user_group_spec.rb +7 -12
  663. data/spec/models/user_response_spec.rb +18 -23
  664. data/spec/models/user_role_response_spec.rb +15 -20
  665. data/spec/models/user_role_spec.rb +9 -14
  666. data/spec/models/user_spec.rb +13 -18
  667. data/spec/models/version_response_spec.rb +11 -16
  668. data/spec/models/worker_response_spec.rb +14 -19
  669. data/spec/spec_helper.rb +1 -1
  670. metadata +61 -41
  671. data/docs/Artifact.md +0 -31
  672. data/docs/OpenPGPPublicKey.md +0 -23
  673. data/docs/PaginatedRemoteResponseList.md +0 -23
  674. data/docs/RemoteResponse.md +0 -57
  675. data/docs/RemoteResponseHiddenFields.md +0 -19
  676. data/docs/UploadChunk.md +0 -19
  677. data/lib/pulpcore_client/models/artifact.rb +0 -379
  678. data/lib/pulpcore_client/models/open_pgp_public_key.rb +0 -253
  679. data/spec/api_client_spec.rb +0 -188
  680. data/spec/configuration_spec.rb +0 -42
  681. data/spec/models/artifact_spec.rb +0 -83
  682. data/spec/models/open_pgp_public_key_spec.rb +0 -59
  683. data/spec/models/paginated_remote_response_list_spec.rb +0 -59
  684. data/spec/models/remote_response_hidden_fields_spec.rb +0 -47
  685. data/spec/models/remote_response_spec.rb +0 -161
  686. data/spec/models/upload_chunk_spec.rb +0 -47
@@ -6,11 +6,12 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.3.1
9
+ Generator version: 7.10.0
10
10
 
11
11
  =end
12
12
 
13
13
  require 'date'
14
+ require 'time'
14
15
 
15
16
  module PulpcoreClient
16
17
  # Base serializer for use with [pulpcore.app.models.Model][] This ensures that all Serializers provide values for the 'pulp_href` field. The class provides a default for the ``ref_name`` attribute in the ModelSerializers's ``Meta`` class. This ensures that the OpenAPI definitions of plugins are namespaced properly.
@@ -40,6 +41,11 @@ module PulpcoreClient
40
41
  }
41
42
  end
42
43
 
44
+ # Returns all the JSON keys this model knows about
45
+ def self.acceptable_attributes
46
+ attribute_map.values
47
+ end
48
+
43
49
  # Attribute type mapping.
44
50
  def self.openapi_types
45
51
  {
@@ -101,6 +107,7 @@ module PulpcoreClient
101
107
  # Show invalid properties with the reasons. Usually used together with valid?
102
108
  # @return Array for valid properties with the reasons
103
109
  def list_invalid_properties
110
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
104
111
  invalid_properties = Array.new
105
112
  if !@name.nil? && @name.to_s.length < 1
106
113
  invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
@@ -120,6 +127,7 @@ module PulpcoreClient
120
127
  # Check to see if the all the properties in the model are valid
121
128
  # @return true if the model is valid
122
129
  def valid?
130
+ warn '[DEPRECATED] the `valid?` method is obsolete'
123
131
  return false if !@name.nil? && @name.to_s.length < 1
124
132
  return false if !@description.nil? && @description.to_s.length < 1
125
133
  return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
@@ -129,7 +137,11 @@ module PulpcoreClient
129
137
  # Custom attribute writer method with validation
130
138
  # @param [Object] name Value to be assigned
131
139
  def name=(name)
132
- if !name.nil? && name.to_s.length < 1
140
+ if name.nil?
141
+ fail ArgumentError, 'name cannot be nil'
142
+ end
143
+
144
+ if name.to_s.length < 1
133
145
  fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
134
146
  end
135
147
 
@@ -184,37 +196,33 @@ module PulpcoreClient
184
196
  # @param [Hash] attributes Model attributes in the form of hash
185
197
  # @return [Object] Returns the model itself
186
198
  def self.build_from_hash(attributes)
187
- new.build_from_hash(attributes)
188
- end
189
-
190
- # Builds the object from hash
191
- # @param [Hash] attributes Model attributes in the form of hash
192
- # @return [Object] Returns the model itself
193
- def build_from_hash(attributes)
194
199
  return nil unless attributes.is_a?(Hash)
195
- self.class.openapi_types.each_pair do |key, type|
196
- if type =~ /\AArray<(.*)>/i
200
+ attributes = attributes.transform_keys(&:to_sym)
201
+ transformed_hash = {}
202
+ openapi_types.each_pair do |key, type|
203
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
204
+ transformed_hash["#{key}"] = nil
205
+ elsif type =~ /\AArray<(.*)>/i
197
206
  # check to ensure the input is an array given that the attribute
198
207
  # is documented as an array but the input is not
199
- if attributes[self.class.attribute_map[key]].is_a?(Array)
200
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
208
+ if attributes[attribute_map[key]].is_a?(Array)
209
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
201
210
  end
202
- elsif !attributes[self.class.attribute_map[key]].nil?
203
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
204
- end # or else data not found in attributes(hash), not an issue as the data can be optional
211
+ elsif !attributes[attribute_map[key]].nil?
212
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
213
+ end
205
214
  end
206
-
207
- self
215
+ new(transformed_hash)
208
216
  end
209
217
 
210
218
  # Deserializes the data based on type
211
219
  # @param string type Data type
212
220
  # @param string value Value to be deserialized
213
221
  # @return [Object] Deserialized data
214
- def _deserialize(type, value)
222
+ def self._deserialize(type, value)
215
223
  case type.to_sym
216
- when :DateTime
217
- DateTime.parse(value)
224
+ when :Time
225
+ Time.parse(value)
218
226
  when :Date
219
227
  Date.parse(value)
220
228
  when :String
@@ -244,7 +252,9 @@ module PulpcoreClient
244
252
  end
245
253
  end
246
254
  else # model
247
- PulpcoreClient.const_get(type).build_from_hash(value)
255
+ # models (e.g. Pet) or oneOf
256
+ klass = PulpcoreClient.const_get(type)
257
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
248
258
  end
249
259
  end
250
260
 
@@ -270,7 +280,7 @@ module PulpcoreClient
270
280
  is_nullable = self.class.openapi_nullable.include?(attr)
271
281
  next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
272
282
  end
273
-
283
+
274
284
  hash[param] = _to_hash(value)
275
285
  end
276
286
  hash
@@ -293,5 +303,7 @@ module PulpcoreClient
293
303
  value
294
304
  end
295
305
  end
306
+
296
307
  end
308
+
297
309
  end
@@ -6,11 +6,12 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.3.1
9
+ Generator version: 7.10.0
10
10
 
11
11
  =end
12
12
 
13
13
  require 'date'
14
+ require 'time'
14
15
 
15
16
  module PulpcoreClient
16
17
  # Serializer for pulp exporters.
@@ -36,6 +37,11 @@ module PulpcoreClient
36
37
  }
37
38
  end
38
39
 
40
+ # Returns all the JSON keys this model knows about
41
+ def self.acceptable_attributes
42
+ attribute_map.values
43
+ end
44
+
39
45
  # Attribute type mapping.
40
46
  def self.openapi_types
41
47
  {
@@ -90,6 +96,7 @@ module PulpcoreClient
90
96
  # Show invalid properties with the reasons. Usually used together with valid?
91
97
  # @return Array for valid properties with the reasons
92
98
  def list_invalid_properties
99
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
93
100
  invalid_properties = Array.new
94
101
  if !@name.nil? && @name.to_s.length < 1
95
102
  invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
@@ -105,6 +112,7 @@ module PulpcoreClient
105
112
  # Check to see if the all the properties in the model are valid
106
113
  # @return true if the model is valid
107
114
  def valid?
115
+ warn '[DEPRECATED] the `valid?` method is obsolete'
108
116
  return false if !@name.nil? && @name.to_s.length < 1
109
117
  return false if !@path.nil? && @path.to_s.length < 1
110
118
  true
@@ -113,7 +121,11 @@ module PulpcoreClient
113
121
  # Custom attribute writer method with validation
114
122
  # @param [Object] name Value to be assigned
115
123
  def name=(name)
116
- if !name.nil? && name.to_s.length < 1
124
+ if name.nil?
125
+ fail ArgumentError, 'name cannot be nil'
126
+ end
127
+
128
+ if name.to_s.length < 1
117
129
  fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
118
130
  end
119
131
 
@@ -123,7 +135,11 @@ module PulpcoreClient
123
135
  # Custom attribute writer method with validation
124
136
  # @param [Object] path Value to be assigned
125
137
  def path=(path)
126
- if !path.nil? && path.to_s.length < 1
138
+ if path.nil?
139
+ fail ArgumentError, 'path cannot be nil'
140
+ end
141
+
142
+ if path.to_s.length < 1
127
143
  fail ArgumentError, 'invalid value for "path", the character length must be great than or equal to 1.'
128
144
  end
129
145
 
@@ -157,37 +173,33 @@ module PulpcoreClient
157
173
  # @param [Hash] attributes Model attributes in the form of hash
158
174
  # @return [Object] Returns the model itself
159
175
  def self.build_from_hash(attributes)
160
- new.build_from_hash(attributes)
161
- end
162
-
163
- # Builds the object from hash
164
- # @param [Hash] attributes Model attributes in the form of hash
165
- # @return [Object] Returns the model itself
166
- def build_from_hash(attributes)
167
176
  return nil unless attributes.is_a?(Hash)
168
- self.class.openapi_types.each_pair do |key, type|
169
- if type =~ /\AArray<(.*)>/i
177
+ attributes = attributes.transform_keys(&:to_sym)
178
+ transformed_hash = {}
179
+ openapi_types.each_pair do |key, type|
180
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
181
+ transformed_hash["#{key}"] = nil
182
+ elsif type =~ /\AArray<(.*)>/i
170
183
  # check to ensure the input is an array given that the attribute
171
184
  # is documented as an array but the input is not
172
- if attributes[self.class.attribute_map[key]].is_a?(Array)
173
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
185
+ if attributes[attribute_map[key]].is_a?(Array)
186
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
174
187
  end
175
- elsif !attributes[self.class.attribute_map[key]].nil?
176
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
177
- end # or else data not found in attributes(hash), not an issue as the data can be optional
188
+ elsif !attributes[attribute_map[key]].nil?
189
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
190
+ end
178
191
  end
179
-
180
- self
192
+ new(transformed_hash)
181
193
  end
182
194
 
183
195
  # Deserializes the data based on type
184
196
  # @param string type Data type
185
197
  # @param string value Value to be deserialized
186
198
  # @return [Object] Deserialized data
187
- def _deserialize(type, value)
199
+ def self._deserialize(type, value)
188
200
  case type.to_sym
189
- when :DateTime
190
- DateTime.parse(value)
201
+ when :Time
202
+ Time.parse(value)
191
203
  when :Date
192
204
  Date.parse(value)
193
205
  when :String
@@ -217,7 +229,9 @@ module PulpcoreClient
217
229
  end
218
230
  end
219
231
  else # model
220
- PulpcoreClient.const_get(type).build_from_hash(value)
232
+ # models (e.g. Pet) or oneOf
233
+ klass = PulpcoreClient.const_get(type)
234
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
221
235
  end
222
236
  end
223
237
 
@@ -243,7 +257,7 @@ module PulpcoreClient
243
257
  is_nullable = self.class.openapi_nullable.include?(attr)
244
258
  next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
245
259
  end
246
-
260
+
247
261
  hash[param] = _to_hash(value)
248
262
  end
249
263
  hash
@@ -266,5 +280,7 @@ module PulpcoreClient
266
280
  value
267
281
  end
268
282
  end
283
+
269
284
  end
285
+
270
286
  end
@@ -6,11 +6,12 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.3.1
9
+ Generator version: 7.10.0
10
10
 
11
11
  =end
12
12
 
13
13
  require 'date'
14
+ require 'time'
14
15
 
15
16
  module PulpcoreClient
16
17
  # Serializer for PulpImporters.
@@ -29,6 +30,11 @@ module PulpcoreClient
29
30
  }
30
31
  end
31
32
 
33
+ # Returns all the JSON keys this model knows about
34
+ def self.acceptable_attributes
35
+ attribute_map.values
36
+ end
37
+
32
38
  # Attribute type mapping.
33
39
  def self.openapi_types
34
40
  {
@@ -72,6 +78,7 @@ module PulpcoreClient
72
78
  # Show invalid properties with the reasons. Usually used together with valid?
73
79
  # @return Array for valid properties with the reasons
74
80
  def list_invalid_properties
81
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
75
82
  invalid_properties = Array.new
76
83
  if !@name.nil? && @name.to_s.length < 1
77
84
  invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
@@ -83,6 +90,7 @@ module PulpcoreClient
83
90
  # Check to see if the all the properties in the model are valid
84
91
  # @return true if the model is valid
85
92
  def valid?
93
+ warn '[DEPRECATED] the `valid?` method is obsolete'
86
94
  return false if !@name.nil? && @name.to_s.length < 1
87
95
  true
88
96
  end
@@ -90,7 +98,11 @@ module PulpcoreClient
90
98
  # Custom attribute writer method with validation
91
99
  # @param [Object] name Value to be assigned
92
100
  def name=(name)
93
- if !name.nil? && name.to_s.length < 1
101
+ if name.nil?
102
+ fail ArgumentError, 'name cannot be nil'
103
+ end
104
+
105
+ if name.to_s.length < 1
94
106
  fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
95
107
  end
96
108
 
@@ -122,37 +134,33 @@ module PulpcoreClient
122
134
  # @param [Hash] attributes Model attributes in the form of hash
123
135
  # @return [Object] Returns the model itself
124
136
  def self.build_from_hash(attributes)
125
- new.build_from_hash(attributes)
126
- end
127
-
128
- # Builds the object from hash
129
- # @param [Hash] attributes Model attributes in the form of hash
130
- # @return [Object] Returns the model itself
131
- def build_from_hash(attributes)
132
137
  return nil unless attributes.is_a?(Hash)
133
- self.class.openapi_types.each_pair do |key, type|
134
- if type =~ /\AArray<(.*)>/i
138
+ attributes = attributes.transform_keys(&:to_sym)
139
+ transformed_hash = {}
140
+ openapi_types.each_pair do |key, type|
141
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
142
+ transformed_hash["#{key}"] = nil
143
+ elsif type =~ /\AArray<(.*)>/i
135
144
  # check to ensure the input is an array given that the attribute
136
145
  # is documented as an array but the input is not
137
- if attributes[self.class.attribute_map[key]].is_a?(Array)
138
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
146
+ if attributes[attribute_map[key]].is_a?(Array)
147
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
139
148
  end
140
- elsif !attributes[self.class.attribute_map[key]].nil?
141
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
142
- end # or else data not found in attributes(hash), not an issue as the data can be optional
149
+ elsif !attributes[attribute_map[key]].nil?
150
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
151
+ end
143
152
  end
144
-
145
- self
153
+ new(transformed_hash)
146
154
  end
147
155
 
148
156
  # Deserializes the data based on type
149
157
  # @param string type Data type
150
158
  # @param string value Value to be deserialized
151
159
  # @return [Object] Deserialized data
152
- def _deserialize(type, value)
160
+ def self._deserialize(type, value)
153
161
  case type.to_sym
154
- when :DateTime
155
- DateTime.parse(value)
162
+ when :Time
163
+ Time.parse(value)
156
164
  when :Date
157
165
  Date.parse(value)
158
166
  when :String
@@ -182,7 +190,9 @@ module PulpcoreClient
182
190
  end
183
191
  end
184
192
  else # model
185
- PulpcoreClient.const_get(type).build_from_hash(value)
193
+ # models (e.g. Pet) or oneOf
194
+ klass = PulpcoreClient.const_get(type)
195
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
186
196
  end
187
197
  end
188
198
 
@@ -208,7 +218,7 @@ module PulpcoreClient
208
218
  is_nullable = self.class.openapi_nullable.include?(attr)
209
219
  next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
210
220
  end
211
-
221
+
212
222
  hash[param] = _to_hash(value)
213
223
  end
214
224
  hash
@@ -231,5 +241,7 @@ module PulpcoreClient
231
241
  value
232
242
  end
233
243
  end
244
+
234
245
  end
246
+
235
247
  end
@@ -6,11 +6,12 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.3.1
9
+ Generator version: 7.10.0
10
10
 
11
11
  =end
12
12
 
13
13
  require 'date'
14
+ require 'time'
14
15
 
15
16
  module PulpcoreClient
16
17
  # Base serializer for use with [pulpcore.app.models.Model][] This ensures that all Serializers provide values for the 'pulp_href` field. The class provides a default for the ``ref_name`` attribute in the ModelSerializers's ``Meta`` class. This ensures that the OpenAPI definitions of plugins are namespaced properly.
@@ -29,6 +30,11 @@ module PulpcoreClient
29
30
  }
30
31
  end
31
32
 
33
+ # Returns all the JSON keys this model knows about
34
+ def self.acceptable_attributes
35
+ attribute_map.values
36
+ end
37
+
32
38
  # Attribute type mapping.
33
39
  def self.openapi_types
34
40
  {
@@ -71,6 +77,7 @@ module PulpcoreClient
71
77
  # Show invalid properties with the reasons. Usually used together with valid?
72
78
  # @return Array for valid properties with the reasons
73
79
  def list_invalid_properties
80
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
74
81
  invalid_properties = Array.new
75
82
  if !@name.nil? && @name.to_s.length < 1
76
83
  invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
@@ -86,6 +93,7 @@ module PulpcoreClient
86
93
  # Check to see if the all the properties in the model are valid
87
94
  # @return true if the model is valid
88
95
  def valid?
96
+ warn '[DEPRECATED] the `valid?` method is obsolete'
89
97
  return false if !@name.nil? && @name.to_s.length < 1
90
98
  return false if !@description.nil? && @description.to_s.length < 1
91
99
  true
@@ -94,7 +102,11 @@ module PulpcoreClient
94
102
  # Custom attribute writer method with validation
95
103
  # @param [Object] name Value to be assigned
96
104
  def name=(name)
97
- if !name.nil? && name.to_s.length < 1
105
+ if name.nil?
106
+ fail ArgumentError, 'name cannot be nil'
107
+ end
108
+
109
+ if name.to_s.length < 1
98
110
  fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
99
111
  end
100
112
 
@@ -136,37 +148,33 @@ module PulpcoreClient
136
148
  # @param [Hash] attributes Model attributes in the form of hash
137
149
  # @return [Object] Returns the model itself
138
150
  def self.build_from_hash(attributes)
139
- new.build_from_hash(attributes)
140
- end
141
-
142
- # Builds the object from hash
143
- # @param [Hash] attributes Model attributes in the form of hash
144
- # @return [Object] Returns the model itself
145
- def build_from_hash(attributes)
146
151
  return nil unless attributes.is_a?(Hash)
147
- self.class.openapi_types.each_pair do |key, type|
148
- if type =~ /\AArray<(.*)>/i
152
+ attributes = attributes.transform_keys(&:to_sym)
153
+ transformed_hash = {}
154
+ openapi_types.each_pair do |key, type|
155
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
156
+ transformed_hash["#{key}"] = nil
157
+ elsif type =~ /\AArray<(.*)>/i
149
158
  # check to ensure the input is an array given that the attribute
150
159
  # is documented as an array but the input is not
151
- if attributes[self.class.attribute_map[key]].is_a?(Array)
152
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
160
+ if attributes[attribute_map[key]].is_a?(Array)
161
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
153
162
  end
154
- elsif !attributes[self.class.attribute_map[key]].nil?
155
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
156
- end # or else data not found in attributes(hash), not an issue as the data can be optional
163
+ elsif !attributes[attribute_map[key]].nil?
164
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
165
+ end
157
166
  end
158
-
159
- self
167
+ new(transformed_hash)
160
168
  end
161
169
 
162
170
  # Deserializes the data based on type
163
171
  # @param string type Data type
164
172
  # @param string value Value to be deserialized
165
173
  # @return [Object] Deserialized data
166
- def _deserialize(type, value)
174
+ def self._deserialize(type, value)
167
175
  case type.to_sym
168
- when :DateTime
169
- DateTime.parse(value)
176
+ when :Time
177
+ Time.parse(value)
170
178
  when :Date
171
179
  Date.parse(value)
172
180
  when :String
@@ -196,7 +204,9 @@ module PulpcoreClient
196
204
  end
197
205
  end
198
206
  else # model
199
- PulpcoreClient.const_get(type).build_from_hash(value)
207
+ # models (e.g. Pet) or oneOf
208
+ klass = PulpcoreClient.const_get(type)
209
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
200
210
  end
201
211
  end
202
212
 
@@ -222,7 +232,7 @@ module PulpcoreClient
222
232
  is_nullable = self.class.openapi_nullable.include?(attr)
223
233
  next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
224
234
  end
225
-
235
+
226
236
  hash[param] = _to_hash(value)
227
237
  end
228
238
  hash
@@ -245,5 +255,7 @@ module PulpcoreClient
245
255
  value
246
256
  end
247
257
  end
258
+
248
259
  end
260
+
249
261
  end
@@ -6,11 +6,12 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.3.1
9
+ Generator version: 7.10.0
10
10
 
11
11
  =end
12
12
 
13
13
  require 'date'
14
+ require 'time'
14
15
 
15
16
  module PulpcoreClient
16
17
  # Serializer for Role.
@@ -33,6 +34,11 @@ module PulpcoreClient
33
34
  }
34
35
  end
35
36
 
37
+ # Returns all the JSON keys this model knows about
38
+ def self.acceptable_attributes
39
+ attribute_map.values
40
+ end
41
+
36
42
  # Attribute type mapping.
37
43
  def self.openapi_types
38
44
  {
@@ -82,6 +88,7 @@ module PulpcoreClient
82
88
  # Show invalid properties with the reasons. Usually used together with valid?
83
89
  # @return Array for valid properties with the reasons
84
90
  def list_invalid_properties
91
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
85
92
  invalid_properties = Array.new
86
93
  if !@name.nil? && @name.to_s.length < 1
87
94
  invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
@@ -97,6 +104,7 @@ module PulpcoreClient
97
104
  # Check to see if the all the properties in the model are valid
98
105
  # @return true if the model is valid
99
106
  def valid?
107
+ warn '[DEPRECATED] the `valid?` method is obsolete'
100
108
  return false if !@name.nil? && @name.to_s.length < 1
101
109
  return false if !@description.nil? && @description.to_s.length < 1
102
110
  true
@@ -105,7 +113,11 @@ module PulpcoreClient
105
113
  # Custom attribute writer method with validation
106
114
  # @param [Object] name Value to be assigned
107
115
  def name=(name)
108
- if !name.nil? && name.to_s.length < 1
116
+ if name.nil?
117
+ fail ArgumentError, 'name cannot be nil'
118
+ end
119
+
120
+ if name.to_s.length < 1
109
121
  fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
110
122
  end
111
123
 
@@ -148,37 +160,33 @@ module PulpcoreClient
148
160
  # @param [Hash] attributes Model attributes in the form of hash
149
161
  # @return [Object] Returns the model itself
150
162
  def self.build_from_hash(attributes)
151
- new.build_from_hash(attributes)
152
- end
153
-
154
- # Builds the object from hash
155
- # @param [Hash] attributes Model attributes in the form of hash
156
- # @return [Object] Returns the model itself
157
- def build_from_hash(attributes)
158
163
  return nil unless attributes.is_a?(Hash)
159
- self.class.openapi_types.each_pair do |key, type|
160
- if type =~ /\AArray<(.*)>/i
164
+ attributes = attributes.transform_keys(&:to_sym)
165
+ transformed_hash = {}
166
+ openapi_types.each_pair do |key, type|
167
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
168
+ transformed_hash["#{key}"] = nil
169
+ elsif type =~ /\AArray<(.*)>/i
161
170
  # check to ensure the input is an array given that the attribute
162
171
  # is documented as an array but the input is not
163
- if attributes[self.class.attribute_map[key]].is_a?(Array)
164
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
172
+ if attributes[attribute_map[key]].is_a?(Array)
173
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
165
174
  end
166
- elsif !attributes[self.class.attribute_map[key]].nil?
167
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
168
- end # or else data not found in attributes(hash), not an issue as the data can be optional
175
+ elsif !attributes[attribute_map[key]].nil?
176
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
177
+ end
169
178
  end
170
-
171
- self
179
+ new(transformed_hash)
172
180
  end
173
181
 
174
182
  # Deserializes the data based on type
175
183
  # @param string type Data type
176
184
  # @param string value Value to be deserialized
177
185
  # @return [Object] Deserialized data
178
- def _deserialize(type, value)
186
+ def self._deserialize(type, value)
179
187
  case type.to_sym
180
- when :DateTime
181
- DateTime.parse(value)
188
+ when :Time
189
+ Time.parse(value)
182
190
  when :Date
183
191
  Date.parse(value)
184
192
  when :String
@@ -208,7 +216,9 @@ module PulpcoreClient
208
216
  end
209
217
  end
210
218
  else # model
211
- PulpcoreClient.const_get(type).build_from_hash(value)
219
+ # models (e.g. Pet) or oneOf
220
+ klass = PulpcoreClient.const_get(type)
221
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
212
222
  end
213
223
  end
214
224
 
@@ -234,7 +244,7 @@ module PulpcoreClient
234
244
  is_nullable = self.class.openapi_nullable.include?(attr)
235
245
  next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
236
246
  end
237
-
247
+
238
248
  hash[param] = _to_hash(value)
239
249
  end
240
250
  hash
@@ -257,5 +267,7 @@ module PulpcoreClient
257
267
  value
258
268
  end
259
269
  end
270
+
260
271
  end
272
+
261
273
  end