pulp_rpm_client 3.27.2 → 3.28.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (322) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +10 -9
  3. data/docs/AcsRpmApi.md +343 -156
  4. data/docs/AddonResponse.md +16 -15
  5. data/docs/ArtifactResponse.md +30 -29
  6. data/docs/AsyncOperationResponse.md +8 -7
  7. data/docs/ChecksumResponse.md +10 -9
  8. data/docs/CompressionTypeEnum.md +4 -5
  9. data/docs/ContentAdvisoriesApi.md +125 -75
  10. data/docs/ContentDistributionTreesApi.md +79 -46
  11. data/docs/ContentModulemdDefaultsApi.md +114 -64
  12. data/docs/ContentModulemdObsoletesApi.md +107 -57
  13. data/docs/ContentModulemdsApi.md +123 -73
  14. data/docs/ContentPackagecategoriesApi.md +79 -46
  15. data/docs/ContentPackageenvironmentsApi.md +79 -46
  16. data/docs/ContentPackagegroupsApi.md +79 -46
  17. data/docs/ContentPackagelangpacksApi.md +79 -46
  18. data/docs/ContentPackagesApi.md +148 -98
  19. data/docs/ContentRepoMetadataFilesApi.md +79 -46
  20. data/docs/ContentSummaryResponse.md +12 -11
  21. data/docs/Copy.md +10 -9
  22. data/docs/DistributionsRpmApi.md +385 -182
  23. data/docs/ImageResponse.md +14 -13
  24. data/docs/MyPermissionsResponse.md +8 -7
  25. data/docs/NestedRole.md +12 -11
  26. data/docs/NestedRoleResponse.md +12 -11
  27. data/docs/ObjectRolesResponse.md +8 -7
  28. data/docs/PackageChecksumTypeEnum.md +4 -5
  29. data/docs/PaginatedRepositoryVersionResponseList.md +14 -13
  30. data/docs/PaginatedrpmDistributionTreeResponseList.md +14 -13
  31. data/docs/PaginatedrpmModulemdDefaultsResponseList.md +14 -13
  32. data/docs/PaginatedrpmModulemdObsoleteResponseList.md +14 -13
  33. data/docs/PaginatedrpmModulemdResponseList.md +14 -13
  34. data/docs/PaginatedrpmPackageCategoryResponseList.md +14 -13
  35. data/docs/PaginatedrpmPackageEnvironmentResponseList.md +14 -13
  36. data/docs/PaginatedrpmPackageGroupResponseList.md +14 -13
  37. data/docs/PaginatedrpmPackageLangpacksResponseList.md +14 -13
  38. data/docs/PaginatedrpmPackageResponseList.md +14 -13
  39. data/docs/PaginatedrpmRepoMetadataFileResponseList.md +14 -13
  40. data/docs/PaginatedrpmRpmAlternateContentSourceResponseList.md +14 -13
  41. data/docs/PaginatedrpmRpmDistributionResponseList.md +14 -13
  42. data/docs/PaginatedrpmRpmPublicationResponseList.md +14 -13
  43. data/docs/PaginatedrpmRpmRemoteResponseList.md +14 -13
  44. data/docs/PaginatedrpmRpmRepositoryResponseList.md +14 -13
  45. data/docs/PaginatedrpmUlnRemoteResponseList.md +14 -13
  46. data/docs/PaginatedrpmUpdateRecordResponseList.md +14 -13
  47. data/docs/PatchedrpmRpmAlternateContentSource.md +14 -13
  48. data/docs/PatchedrpmRpmDistribution.md +22 -21
  49. data/docs/PatchedrpmRpmRemote.md +50 -49
  50. data/docs/PatchedrpmRpmRepository.md +40 -39
  51. data/docs/PatchedrpmUlnRemote.md +50 -49
  52. data/docs/PolicyEnum.md +4 -5
  53. data/docs/PrunePackages.md +12 -11
  54. data/docs/PublicationsRpmApi.md +267 -130
  55. data/docs/RemotesRpmApi.md +389 -184
  56. data/docs/RemotesUlnApi.md +389 -184
  57. data/docs/Repair.md +8 -7
  58. data/docs/RepositoriesRpmApi.md +444 -207
  59. data/docs/RepositoriesRpmVersionsApi.md +152 -82
  60. data/docs/RepositoryAddRemoveContent.md +12 -11
  61. data/docs/RepositoryVersionResponse.md +22 -21
  62. data/docs/RpmCompsApi.md +32 -16
  63. data/docs/RpmCopyApi.md +30 -14
  64. data/docs/RpmDistributionTreeResponse.md +46 -43
  65. data/docs/RpmModulemd.md +32 -31
  66. data/docs/RpmModulemdDefaults.md +16 -15
  67. data/docs/RpmModulemdDefaultsResponse.md +20 -19
  68. data/docs/RpmModulemdObsolete.md +28 -27
  69. data/docs/RpmModulemdObsoleteResponse.md +32 -31
  70. data/docs/RpmModulemdResponse.md +36 -35
  71. data/docs/RpmPackageCategoryResponse.md +30 -29
  72. data/docs/RpmPackageEnvironmentResponse.md +32 -31
  73. data/docs/RpmPackageGroupResponse.md +36 -35
  74. data/docs/RpmPackageLangpacksResponse.md +18 -17
  75. data/docs/RpmPackageResponse.md +100 -99
  76. data/docs/RpmPruneApi.md +30 -13
  77. data/docs/RpmRepoMetadataFileResponse.md +36 -35
  78. data/docs/RpmRepositorySyncURL.md +16 -15
  79. data/docs/RpmRpmAlternateContentSource.md +14 -13
  80. data/docs/RpmRpmAlternateContentSourceResponse.md +22 -21
  81. data/docs/RpmRpmDistribution.md +22 -21
  82. data/docs/RpmRpmDistributionResponse.md +34 -33
  83. data/docs/RpmRpmPublication.md +24 -23
  84. data/docs/RpmRpmPublicationResponse.md +34 -33
  85. data/docs/RpmRpmRemote.md +50 -49
  86. data/docs/RpmRpmRemoteResponse.md +50 -49
  87. data/docs/RpmRpmRemoteResponseHiddenFieldsInner.md +20 -0
  88. data/docs/RpmRpmRepository.md +40 -39
  89. data/docs/RpmRpmRepositoryResponse.md +54 -53
  90. data/docs/RpmUlnRemote.md +50 -49
  91. data/docs/RpmUlnRemoteResponse.md +50 -49
  92. data/docs/RpmUpdateCollection.md +12 -11
  93. data/docs/RpmUpdateCollectionResponse.md +14 -13
  94. data/docs/RpmUpdateRecordResponse.md +50 -49
  95. data/docs/SetLabel.md +10 -9
  96. data/docs/SetLabelResponse.md +10 -9
  97. data/docs/SkipTypesEnum.md +4 -5
  98. data/docs/SyncPolicyEnum.md +4 -5
  99. data/docs/TaskGroupOperationResponse.md +8 -7
  100. data/docs/UnsetLabel.md +8 -7
  101. data/docs/UnsetLabelResponse.md +10 -9
  102. data/docs/VariantResponse.md +26 -25
  103. data/lib/pulp_rpm_client/api/acs_rpm_api.rb +76 -50
  104. data/lib/pulp_rpm_client/api/content_advisories_api.rb +20 -14
  105. data/lib/pulp_rpm_client/api/content_distribution_trees_api.rb +11 -9
  106. data/lib/pulp_rpm_client/api/content_modulemd_defaults_api.rb +20 -14
  107. data/lib/pulp_rpm_client/api/content_modulemd_obsoletes_api.rb +20 -14
  108. data/lib/pulp_rpm_client/api/content_modulemds_api.rb +20 -14
  109. data/lib/pulp_rpm_client/api/content_packagecategories_api.rb +11 -9
  110. data/lib/pulp_rpm_client/api/content_packageenvironments_api.rb +11 -9
  111. data/lib/pulp_rpm_client/api/content_packagegroups_api.rb +11 -9
  112. data/lib/pulp_rpm_client/api/content_packagelangpacks_api.rb +11 -9
  113. data/lib/pulp_rpm_client/api/content_packages_api.rb +20 -14
  114. data/lib/pulp_rpm_client/api/content_repo_metadata_files_api.rb +11 -9
  115. data/lib/pulp_rpm_client/api/distributions_rpm_api.rb +89 -56
  116. data/lib/pulp_rpm_client/api/publications_rpm_api.rb +67 -47
  117. data/lib/pulp_rpm_client/api/remotes_rpm_api.rb +104 -68
  118. data/lib/pulp_rpm_client/api/remotes_uln_api.rb +104 -68
  119. data/lib/pulp_rpm_client/api/repositories_rpm_api.rb +107 -66
  120. data/lib/pulp_rpm_client/api/repositories_rpm_versions_api.rb +40 -30
  121. data/lib/pulp_rpm_client/api/rpm_comps_api.rb +10 -6
  122. data/lib/pulp_rpm_client/api/rpm_copy_api.rb +10 -6
  123. data/lib/pulp_rpm_client/api/rpm_prune_api.rb +10 -6
  124. data/lib/pulp_rpm_client/api_client.rb +137 -102
  125. data/lib/pulp_rpm_client/api_error.rb +2 -1
  126. data/lib/pulp_rpm_client/configuration.rb +162 -21
  127. data/lib/pulp_rpm_client/models/addon_response.rb +40 -22
  128. data/lib/pulp_rpm_client/models/artifact_response.rb +34 -24
  129. data/lib/pulp_rpm_client/models/async_operation_response.rb +32 -22
  130. data/lib/pulp_rpm_client/models/checksum_response.rb +34 -22
  131. data/lib/pulp_rpm_client/models/compression_type_enum.rb +8 -4
  132. data/lib/pulp_rpm_client/models/content_summary_response.rb +36 -22
  133. data/lib/pulp_rpm_client/models/copy.rb +34 -28
  134. data/lib/pulp_rpm_client/models/image_response.rb +38 -22
  135. data/lib/pulp_rpm_client/models/my_permissions_response.rb +32 -22
  136. data/lib/pulp_rpm_client/models/nested_role.rb +32 -22
  137. data/lib/pulp_rpm_client/models/nested_role_response.rb +32 -22
  138. data/lib/pulp_rpm_client/models/object_roles_response.rb +32 -22
  139. data/lib/pulp_rpm_client/models/package_checksum_type_enum.rb +8 -4
  140. data/lib/pulp_rpm_client/models/paginated_repository_version_response_list.rb +34 -22
  141. data/lib/pulp_rpm_client/models/paginatedrpm_distribution_tree_response_list.rb +34 -22
  142. data/lib/pulp_rpm_client/models/paginatedrpm_modulemd_defaults_response_list.rb +34 -22
  143. data/lib/pulp_rpm_client/models/paginatedrpm_modulemd_obsolete_response_list.rb +34 -22
  144. data/lib/pulp_rpm_client/models/paginatedrpm_modulemd_response_list.rb +34 -22
  145. data/lib/pulp_rpm_client/models/paginatedrpm_package_category_response_list.rb +34 -22
  146. data/lib/pulp_rpm_client/models/paginatedrpm_package_environment_response_list.rb +34 -22
  147. data/lib/pulp_rpm_client/models/paginatedrpm_package_group_response_list.rb +34 -22
  148. data/lib/pulp_rpm_client/models/paginatedrpm_package_langpacks_response_list.rb +34 -22
  149. data/lib/pulp_rpm_client/models/paginatedrpm_package_response_list.rb +34 -22
  150. data/lib/pulp_rpm_client/models/paginatedrpm_repo_metadata_file_response_list.rb +34 -22
  151. data/lib/pulp_rpm_client/models/paginatedrpm_rpm_alternate_content_source_response_list.rb +34 -22
  152. data/lib/pulp_rpm_client/models/paginatedrpm_rpm_distribution_response_list.rb +34 -22
  153. data/lib/pulp_rpm_client/models/paginatedrpm_rpm_publication_response_list.rb +34 -22
  154. data/lib/pulp_rpm_client/models/paginatedrpm_rpm_remote_response_list.rb +34 -22
  155. data/lib/pulp_rpm_client/models/paginatedrpm_rpm_repository_response_list.rb +34 -22
  156. data/lib/pulp_rpm_client/models/paginatedrpm_uln_remote_response_list.rb +34 -22
  157. data/lib/pulp_rpm_client/models/paginatedrpm_update_record_response_list.rb +34 -22
  158. data/lib/pulp_rpm_client/models/patchedrpm_rpm_alternate_content_source.rb +36 -24
  159. data/lib/pulp_rpm_client/models/patchedrpm_rpm_distribution.rb +40 -24
  160. data/lib/pulp_rpm_client/models/patchedrpm_rpm_remote.rb +82 -44
  161. data/lib/pulp_rpm_client/models/patchedrpm_rpm_repository.rb +68 -25
  162. data/lib/pulp_rpm_client/models/patchedrpm_uln_remote.rb +92 -46
  163. data/lib/pulp_rpm_client/models/policy_enum.rb +8 -4
  164. data/lib/pulp_rpm_client/models/prune_packages.rb +37 -23
  165. data/lib/pulp_rpm_client/models/repair.rb +30 -22
  166. data/lib/pulp_rpm_client/models/repository_add_remove_content.rb +30 -22
  167. data/lib/pulp_rpm_client/models/repository_version_response.rb +32 -24
  168. data/lib/pulp_rpm_client/models/rpm_distribution_tree_response.rb +77 -23
  169. data/lib/pulp_rpm_client/models/rpm_modulemd.rb +50 -22
  170. data/lib/pulp_rpm_client/models/rpm_modulemd_defaults.rb +39 -27
  171. data/lib/pulp_rpm_client/models/rpm_modulemd_defaults_response.rb +39 -29
  172. data/lib/pulp_rpm_client/models/rpm_modulemd_obsolete.rb +55 -27
  173. data/lib/pulp_rpm_client/models/rpm_modulemd_obsolete_response.rb +50 -24
  174. data/lib/pulp_rpm_client/models/rpm_modulemd_response.rb +50 -24
  175. data/lib/pulp_rpm_client/models/rpm_package_category_response.rb +48 -24
  176. data/lib/pulp_rpm_client/models/rpm_package_environment_response.rb +50 -24
  177. data/lib/pulp_rpm_client/models/rpm_package_group_response.rb +48 -24
  178. data/lib/pulp_rpm_client/models/rpm_package_langpacks_response.rb +36 -24
  179. data/lib/pulp_rpm_client/models/rpm_package_response.rb +42 -24
  180. data/lib/pulp_rpm_client/models/rpm_repo_metadata_file_response.rb +40 -24
  181. data/lib/pulp_rpm_client/models/rpm_repository_sync_url.rb +52 -22
  182. data/lib/pulp_rpm_client/models/rpm_rpm_alternate_content_source.rb +35 -23
  183. data/lib/pulp_rpm_client/models/rpm_rpm_alternate_content_source_response.rb +37 -25
  184. data/lib/pulp_rpm_client/models/rpm_rpm_distribution.rb +34 -22
  185. data/lib/pulp_rpm_client/models/rpm_rpm_distribution_response.rb +36 -24
  186. data/lib/pulp_rpm_client/models/rpm_rpm_publication.rb +53 -22
  187. data/lib/pulp_rpm_client/models/rpm_rpm_publication_response.rb +55 -24
  188. data/lib/pulp_rpm_client/models/rpm_rpm_remote.rb +76 -42
  189. data/lib/pulp_rpm_client/models/rpm_rpm_remote_response.rb +79 -45
  190. data/lib/pulp_rpm_client/models/{rpm_rpm_remote_response_hidden_fields.rb → rpm_rpm_remote_response_hidden_fields_inner.rb} +37 -25
  191. data/lib/pulp_rpm_client/models/rpm_rpm_repository.rb +65 -24
  192. data/lib/pulp_rpm_client/models/rpm_rpm_repository_response.rb +67 -26
  193. data/lib/pulp_rpm_client/models/rpm_uln_remote.rb +80 -42
  194. data/lib/pulp_rpm_client/models/rpm_uln_remote_response.rb +79 -45
  195. data/lib/pulp_rpm_client/models/rpm_update_collection.rb +36 -22
  196. data/lib/pulp_rpm_client/models/rpm_update_collection_response.rb +36 -22
  197. data/lib/pulp_rpm_client/models/rpm_update_record_response.rb +32 -24
  198. data/lib/pulp_rpm_client/models/set_label.rb +34 -22
  199. data/lib/pulp_rpm_client/models/set_label_response.rb +34 -22
  200. data/lib/pulp_rpm_client/models/skip_types_enum.rb +8 -4
  201. data/lib/pulp_rpm_client/models/sync_policy_enum.rb +8 -4
  202. data/lib/pulp_rpm_client/models/task_group_operation_response.rb +32 -22
  203. data/lib/pulp_rpm_client/models/unset_label.rb +32 -22
  204. data/lib/pulp_rpm_client/models/unset_label_response.rb +32 -22
  205. data/lib/pulp_rpm_client/models/variant_response.rb +50 -22
  206. data/lib/pulp_rpm_client/version.rb +2 -2
  207. data/lib/pulp_rpm_client.rb +2 -5
  208. data/pulp_rpm_client.gemspec +9 -6
  209. data/spec/api/acs_rpm_api_spec.rb +12 -12
  210. data/spec/api/content_advisories_api_spec.rb +4 -4
  211. data/spec/api/content_distribution_trees_api_spec.rb +3 -3
  212. data/spec/api/content_modulemd_defaults_api_spec.rb +4 -4
  213. data/spec/api/content_modulemd_obsoletes_api_spec.rb +4 -4
  214. data/spec/api/content_modulemds_api_spec.rb +4 -4
  215. data/spec/api/content_packagecategories_api_spec.rb +3 -3
  216. data/spec/api/content_packageenvironments_api_spec.rb +3 -3
  217. data/spec/api/content_packagegroups_api_spec.rb +3 -3
  218. data/spec/api/content_packagelangpacks_api_spec.rb +3 -3
  219. data/spec/api/content_packages_api_spec.rb +4 -4
  220. data/spec/api/content_repo_metadata_files_api_spec.rb +3 -3
  221. data/spec/api/distributions_rpm_api_spec.rb +13 -13
  222. data/spec/api/publications_rpm_api_spec.rb +16 -15
  223. data/spec/api/remotes_rpm_api_spec.rb +20 -19
  224. data/spec/api/remotes_uln_api_spec.rb +20 -19
  225. data/spec/api/repositories_rpm_api_spec.rb +15 -15
  226. data/spec/api/repositories_rpm_versions_api_spec.rb +12 -11
  227. data/spec/api/rpm_comps_api_spec.rb +2 -2
  228. data/spec/api/rpm_copy_api_spec.rb +2 -2
  229. data/spec/api/rpm_prune_api_spec.rb +2 -2
  230. data/spec/models/addon_response_spec.rb +11 -16
  231. data/spec/models/artifact_response_spec.rb +18 -23
  232. data/spec/models/async_operation_response_spec.rb +7 -12
  233. data/spec/models/checksum_response_spec.rb +8 -13
  234. data/spec/models/compression_type_enum_spec.rb +6 -11
  235. data/spec/models/content_summary_response_spec.rb +9 -14
  236. data/spec/models/copy_spec.rb +8 -13
  237. data/spec/models/image_response_spec.rb +10 -15
  238. data/spec/models/my_permissions_response_spec.rb +7 -12
  239. data/spec/models/nested_role_response_spec.rb +9 -14
  240. data/spec/models/nested_role_spec.rb +9 -14
  241. data/spec/models/object_roles_response_spec.rb +7 -12
  242. data/spec/models/package_checksum_type_enum_spec.rb +6 -11
  243. data/spec/models/paginated_repository_version_response_list_spec.rb +10 -15
  244. data/spec/models/paginatedrpm_distribution_tree_response_list_spec.rb +10 -15
  245. data/spec/models/paginatedrpm_modulemd_defaults_response_list_spec.rb +10 -15
  246. data/spec/models/paginatedrpm_modulemd_obsolete_response_list_spec.rb +10 -15
  247. data/spec/models/paginatedrpm_modulemd_response_list_spec.rb +10 -15
  248. data/spec/models/paginatedrpm_package_category_response_list_spec.rb +10 -15
  249. data/spec/models/paginatedrpm_package_environment_response_list_spec.rb +10 -15
  250. data/spec/models/paginatedrpm_package_group_response_list_spec.rb +10 -15
  251. data/spec/models/paginatedrpm_package_langpacks_response_list_spec.rb +10 -15
  252. data/spec/models/paginatedrpm_package_response_list_spec.rb +10 -15
  253. data/spec/models/paginatedrpm_repo_metadata_file_response_list_spec.rb +10 -15
  254. data/spec/models/paginatedrpm_rpm_alternate_content_source_response_list_spec.rb +10 -15
  255. data/spec/models/paginatedrpm_rpm_distribution_response_list_spec.rb +10 -15
  256. data/spec/models/paginatedrpm_rpm_publication_response_list_spec.rb +10 -15
  257. data/spec/models/paginatedrpm_rpm_remote_response_list_spec.rb +10 -15
  258. data/spec/models/paginatedrpm_rpm_repository_response_list_spec.rb +10 -15
  259. data/spec/models/paginatedrpm_uln_remote_response_list_spec.rb +10 -15
  260. data/spec/models/paginatedrpm_update_record_response_list_spec.rb +10 -15
  261. data/spec/models/patchedrpm_rpm_alternate_content_source_spec.rb +10 -15
  262. data/spec/models/patchedrpm_rpm_distribution_spec.rb +14 -19
  263. data/spec/models/patchedrpm_rpm_remote_spec.rb +28 -33
  264. data/spec/models/patchedrpm_rpm_repository_spec.rb +23 -28
  265. data/spec/models/patchedrpm_uln_remote_spec.rb +28 -33
  266. data/spec/models/policy_enum_spec.rb +6 -11
  267. data/spec/models/prune_packages_spec.rb +9 -14
  268. data/spec/models/repair_spec.rb +7 -12
  269. data/spec/models/repository_add_remove_content_spec.rb +9 -14
  270. data/spec/models/repository_version_response_spec.rb +14 -19
  271. data/spec/models/rpm_distribution_tree_response_spec.rb +31 -30
  272. data/spec/models/rpm_modulemd_defaults_response_spec.rb +13 -18
  273. data/spec/models/rpm_modulemd_defaults_spec.rb +11 -16
  274. data/spec/models/rpm_modulemd_obsolete_response_spec.rb +19 -24
  275. data/spec/models/rpm_modulemd_obsolete_spec.rb +17 -22
  276. data/spec/models/rpm_modulemd_response_spec.rb +21 -26
  277. data/spec/models/rpm_modulemd_spec.rb +19 -24
  278. data/spec/models/rpm_package_category_response_spec.rb +18 -23
  279. data/spec/models/rpm_package_environment_response_spec.rb +19 -24
  280. data/spec/models/rpm_package_group_response_spec.rb +21 -26
  281. data/spec/models/rpm_package_langpacks_response_spec.rb +12 -17
  282. data/spec/models/rpm_package_response_spec.rb +53 -58
  283. data/spec/models/rpm_repo_metadata_file_response_spec.rb +21 -26
  284. data/spec/models/rpm_repository_sync_url_spec.rb +11 -16
  285. data/spec/models/rpm_rpm_alternate_content_source_response_spec.rb +14 -19
  286. data/spec/models/rpm_rpm_alternate_content_source_spec.rb +10 -15
  287. data/spec/models/rpm_rpm_distribution_response_spec.rb +20 -25
  288. data/spec/models/rpm_rpm_distribution_spec.rb +14 -19
  289. data/spec/models/rpm_rpm_publication_response_spec.rb +20 -25
  290. data/spec/models/rpm_rpm_publication_spec.rb +15 -20
  291. data/spec/models/{rpm_rpm_remote_response_hidden_fields_spec.rb → rpm_rpm_remote_response_hidden_fields_inner_spec.rb} +11 -16
  292. data/spec/models/rpm_rpm_remote_response_spec.rb +28 -33
  293. data/spec/models/rpm_rpm_remote_spec.rb +28 -33
  294. data/spec/models/rpm_rpm_repository_response_spec.rb +30 -35
  295. data/spec/models/rpm_rpm_repository_spec.rb +23 -28
  296. data/spec/models/rpm_uln_remote_response_spec.rb +28 -33
  297. data/spec/models/rpm_uln_remote_spec.rb +28 -33
  298. data/spec/models/rpm_update_collection_response_spec.rb +10 -15
  299. data/spec/models/rpm_update_collection_spec.rb +9 -14
  300. data/spec/models/rpm_update_record_response_spec.rb +28 -33
  301. data/spec/models/set_label_response_spec.rb +8 -13
  302. data/spec/models/set_label_spec.rb +8 -13
  303. data/spec/models/skip_types_enum_spec.rb +6 -11
  304. data/spec/models/sync_policy_enum_spec.rb +6 -11
  305. data/spec/models/task_group_operation_response_spec.rb +7 -12
  306. data/spec/models/unset_label_response_spec.rb +8 -13
  307. data/spec/models/unset_label_spec.rb +7 -12
  308. data/spec/models/variant_response_spec.rb +16 -21
  309. data/spec/spec_helper.rb +1 -1
  310. metadata +124 -112
  311. data/docs/CompsXml.md +0 -21
  312. data/docs/RpmPackage.md +0 -27
  313. data/docs/RpmRpmRemoteResponseHiddenFields.md +0 -19
  314. data/docs/RpmUpdateRecord.md +0 -23
  315. data/lib/pulp_rpm_client/models/comps_xml.rb +0 -233
  316. data/lib/pulp_rpm_client/models/rpm_package.rb +0 -288
  317. data/lib/pulp_rpm_client/models/rpm_update_record.rb +0 -253
  318. data/spec/api_client_spec.rb +0 -188
  319. data/spec/configuration_spec.rb +0 -42
  320. data/spec/models/comps_xml_spec.rb +0 -53
  321. data/spec/models/rpm_package_spec.rb +0 -71
  322. data/spec/models/rpm_update_record_spec.rb +0 -59
@@ -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 PulpRpmClient
16
17
  # PackageCategory serializer.
@@ -68,13 +69,18 @@ module PulpRpmClient
68
69
  }
69
70
  end
70
71
 
72
+ # Returns all the JSON keys this model knows about
73
+ def self.acceptable_attributes
74
+ attribute_map.values
75
+ end
76
+
71
77
  # Attribute type mapping.
72
78
  def self.openapi_types
73
79
  {
74
80
  :'pulp_href' => :'String',
75
81
  :'prn' => :'String',
76
- :'pulp_created' => :'DateTime',
77
- :'pulp_last_updated' => :'DateTime',
82
+ :'pulp_created' => :'Time',
83
+ :'pulp_last_updated' => :'Time',
78
84
  :'id' => :'String',
79
85
  :'name' => :'String',
80
86
  :'description' => :'String',
@@ -129,40 +135,57 @@ module PulpRpmClient
129
135
 
130
136
  if attributes.key?(:'id')
131
137
  self.id = attributes[:'id']
138
+ else
139
+ self.id = nil
132
140
  end
133
141
 
134
142
  if attributes.key?(:'name')
135
143
  self.name = attributes[:'name']
144
+ else
145
+ self.name = nil
136
146
  end
137
147
 
138
148
  if attributes.key?(:'description')
139
149
  self.description = attributes[:'description']
150
+ else
151
+ self.description = nil
140
152
  end
141
153
 
142
154
  if attributes.key?(:'display_order')
143
155
  self.display_order = attributes[:'display_order']
156
+ else
157
+ self.display_order = nil
144
158
  end
145
159
 
146
160
  if attributes.key?(:'group_ids')
147
161
  self.group_ids = attributes[:'group_ids']
162
+ else
163
+ self.group_ids = nil
148
164
  end
149
165
 
150
166
  if attributes.key?(:'desc_by_lang')
151
167
  self.desc_by_lang = attributes[:'desc_by_lang']
168
+ else
169
+ self.desc_by_lang = nil
152
170
  end
153
171
 
154
172
  if attributes.key?(:'name_by_lang')
155
173
  self.name_by_lang = attributes[:'name_by_lang']
174
+ else
175
+ self.name_by_lang = nil
156
176
  end
157
177
 
158
178
  if attributes.key?(:'digest')
159
179
  self.digest = attributes[:'digest']
180
+ else
181
+ self.digest = nil
160
182
  end
161
183
  end
162
184
 
163
185
  # Show invalid properties with the reasons. Usually used together with valid?
164
186
  # @return Array for valid properties with the reasons
165
187
  def list_invalid_properties
188
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
166
189
  invalid_properties = Array.new
167
190
  if @id.nil?
168
191
  invalid_properties.push('invalid value for "id", id cannot be nil.')
@@ -186,6 +209,7 @@ module PulpRpmClient
186
209
  # Check to see if the all the properties in the model are valid
187
210
  # @return true if the model is valid
188
211
  def valid?
212
+ warn '[DEPRECATED] the `valid?` method is obsolete'
189
213
  return false if @id.nil?
190
214
  return false if @name.nil?
191
215
  return false if @description.nil?
@@ -228,37 +252,33 @@ module PulpRpmClient
228
252
  # @param [Hash] attributes Model attributes in the form of hash
229
253
  # @return [Object] Returns the model itself
230
254
  def self.build_from_hash(attributes)
231
- new.build_from_hash(attributes)
232
- end
233
-
234
- # Builds the object from hash
235
- # @param [Hash] attributes Model attributes in the form of hash
236
- # @return [Object] Returns the model itself
237
- def build_from_hash(attributes)
238
255
  return nil unless attributes.is_a?(Hash)
239
- self.class.openapi_types.each_pair do |key, type|
240
- if type =~ /\AArray<(.*)>/i
256
+ attributes = attributes.transform_keys(&:to_sym)
257
+ transformed_hash = {}
258
+ openapi_types.each_pair do |key, type|
259
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
260
+ transformed_hash["#{key}"] = nil
261
+ elsif type =~ /\AArray<(.*)>/i
241
262
  # check to ensure the input is an array given that the attribute
242
263
  # is documented as an array but the input is not
243
- if attributes[self.class.attribute_map[key]].is_a?(Array)
244
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
264
+ if attributes[attribute_map[key]].is_a?(Array)
265
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
245
266
  end
246
- elsif !attributes[self.class.attribute_map[key]].nil?
247
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
248
- end # or else data not found in attributes(hash), not an issue as the data can be optional
267
+ elsif !attributes[attribute_map[key]].nil?
268
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
269
+ end
249
270
  end
250
-
251
- self
271
+ new(transformed_hash)
252
272
  end
253
273
 
254
274
  # Deserializes the data based on type
255
275
  # @param string type Data type
256
276
  # @param string value Value to be deserialized
257
277
  # @return [Object] Deserialized data
258
- def _deserialize(type, value)
278
+ def self._deserialize(type, value)
259
279
  case type.to_sym
260
- when :DateTime
261
- DateTime.parse(value)
280
+ when :Time
281
+ Time.parse(value)
262
282
  when :Date
263
283
  Date.parse(value)
264
284
  when :String
@@ -288,7 +308,9 @@ module PulpRpmClient
288
308
  end
289
309
  end
290
310
  else # model
291
- PulpRpmClient.const_get(type).build_from_hash(value)
311
+ # models (e.g. Pet) or oneOf
312
+ klass = PulpRpmClient.const_get(type)
313
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
292
314
  end
293
315
  end
294
316
 
@@ -314,7 +336,7 @@ module PulpRpmClient
314
336
  is_nullable = self.class.openapi_nullable.include?(attr)
315
337
  next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
316
338
  end
317
-
339
+
318
340
  hash[param] = _to_hash(value)
319
341
  end
320
342
  hash
@@ -337,5 +359,7 @@ module PulpRpmClient
337
359
  value
338
360
  end
339
361
  end
362
+
340
363
  end
364
+
341
365
  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 PulpRpmClient
16
17
  # PackageEnvironment serializer.
@@ -72,13 +73,18 @@ module PulpRpmClient
72
73
  }
73
74
  end
74
75
 
76
+ # Returns all the JSON keys this model knows about
77
+ def self.acceptable_attributes
78
+ attribute_map.values
79
+ end
80
+
75
81
  # Attribute type mapping.
76
82
  def self.openapi_types
77
83
  {
78
84
  :'pulp_href' => :'String',
79
85
  :'prn' => :'String',
80
- :'pulp_created' => :'DateTime',
81
- :'pulp_last_updated' => :'DateTime',
86
+ :'pulp_created' => :'Time',
87
+ :'pulp_last_updated' => :'Time',
82
88
  :'id' => :'String',
83
89
  :'name' => :'String',
84
90
  :'description' => :'String',
@@ -135,44 +141,63 @@ module PulpRpmClient
135
141
 
136
142
  if attributes.key?(:'id')
137
143
  self.id = attributes[:'id']
144
+ else
145
+ self.id = nil
138
146
  end
139
147
 
140
148
  if attributes.key?(:'name')
141
149
  self.name = attributes[:'name']
150
+ else
151
+ self.name = nil
142
152
  end
143
153
 
144
154
  if attributes.key?(:'description')
145
155
  self.description = attributes[:'description']
156
+ else
157
+ self.description = nil
146
158
  end
147
159
 
148
160
  if attributes.key?(:'display_order')
149
161
  self.display_order = attributes[:'display_order']
162
+ else
163
+ self.display_order = nil
150
164
  end
151
165
 
152
166
  if attributes.key?(:'group_ids')
153
167
  self.group_ids = attributes[:'group_ids']
168
+ else
169
+ self.group_ids = nil
154
170
  end
155
171
 
156
172
  if attributes.key?(:'option_ids')
157
173
  self.option_ids = attributes[:'option_ids']
174
+ else
175
+ self.option_ids = nil
158
176
  end
159
177
 
160
178
  if attributes.key?(:'desc_by_lang')
161
179
  self.desc_by_lang = attributes[:'desc_by_lang']
180
+ else
181
+ self.desc_by_lang = nil
162
182
  end
163
183
 
164
184
  if attributes.key?(:'name_by_lang')
165
185
  self.name_by_lang = attributes[:'name_by_lang']
186
+ else
187
+ self.name_by_lang = nil
166
188
  end
167
189
 
168
190
  if attributes.key?(:'digest')
169
191
  self.digest = attributes[:'digest']
192
+ else
193
+ self.digest = nil
170
194
  end
171
195
  end
172
196
 
173
197
  # Show invalid properties with the reasons. Usually used together with valid?
174
198
  # @return Array for valid properties with the reasons
175
199
  def list_invalid_properties
200
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
176
201
  invalid_properties = Array.new
177
202
  if @id.nil?
178
203
  invalid_properties.push('invalid value for "id", id cannot be nil.')
@@ -196,6 +221,7 @@ module PulpRpmClient
196
221
  # Check to see if the all the properties in the model are valid
197
222
  # @return true if the model is valid
198
223
  def valid?
224
+ warn '[DEPRECATED] the `valid?` method is obsolete'
199
225
  return false if @id.nil?
200
226
  return false if @name.nil?
201
227
  return false if @description.nil?
@@ -239,37 +265,33 @@ module PulpRpmClient
239
265
  # @param [Hash] attributes Model attributes in the form of hash
240
266
  # @return [Object] Returns the model itself
241
267
  def self.build_from_hash(attributes)
242
- new.build_from_hash(attributes)
243
- end
244
-
245
- # Builds the object from hash
246
- # @param [Hash] attributes Model attributes in the form of hash
247
- # @return [Object] Returns the model itself
248
- def build_from_hash(attributes)
249
268
  return nil unless attributes.is_a?(Hash)
250
- self.class.openapi_types.each_pair do |key, type|
251
- if type =~ /\AArray<(.*)>/i
269
+ attributes = attributes.transform_keys(&:to_sym)
270
+ transformed_hash = {}
271
+ openapi_types.each_pair do |key, type|
272
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
273
+ transformed_hash["#{key}"] = nil
274
+ elsif type =~ /\AArray<(.*)>/i
252
275
  # check to ensure the input is an array given that the attribute
253
276
  # is documented as an array but the input is not
254
- if attributes[self.class.attribute_map[key]].is_a?(Array)
255
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
277
+ if attributes[attribute_map[key]].is_a?(Array)
278
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
256
279
  end
257
- elsif !attributes[self.class.attribute_map[key]].nil?
258
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
259
- end # or else data not found in attributes(hash), not an issue as the data can be optional
280
+ elsif !attributes[attribute_map[key]].nil?
281
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
282
+ end
260
283
  end
261
-
262
- self
284
+ new(transformed_hash)
263
285
  end
264
286
 
265
287
  # Deserializes the data based on type
266
288
  # @param string type Data type
267
289
  # @param string value Value to be deserialized
268
290
  # @return [Object] Deserialized data
269
- def _deserialize(type, value)
291
+ def self._deserialize(type, value)
270
292
  case type.to_sym
271
- when :DateTime
272
- DateTime.parse(value)
293
+ when :Time
294
+ Time.parse(value)
273
295
  when :Date
274
296
  Date.parse(value)
275
297
  when :String
@@ -299,7 +321,9 @@ module PulpRpmClient
299
321
  end
300
322
  end
301
323
  else # model
302
- PulpRpmClient.const_get(type).build_from_hash(value)
324
+ # models (e.g. Pet) or oneOf
325
+ klass = PulpRpmClient.const_get(type)
326
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
303
327
  end
304
328
  end
305
329
 
@@ -325,7 +349,7 @@ module PulpRpmClient
325
349
  is_nullable = self.class.openapi_nullable.include?(attr)
326
350
  next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
327
351
  end
328
-
352
+
329
353
  hash[param] = _to_hash(value)
330
354
  end
331
355
  hash
@@ -348,5 +372,7 @@ module PulpRpmClient
348
372
  value
349
373
  end
350
374
  end
375
+
351
376
  end
377
+
352
378
  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 PulpRpmClient
16
17
  # PackageGroup serializer.
@@ -80,13 +81,18 @@ module PulpRpmClient
80
81
  }
81
82
  end
82
83
 
84
+ # Returns all the JSON keys this model knows about
85
+ def self.acceptable_attributes
86
+ attribute_map.values
87
+ end
88
+
83
89
  # Attribute type mapping.
84
90
  def self.openapi_types
85
91
  {
86
92
  :'pulp_href' => :'String',
87
93
  :'prn' => :'String',
88
- :'pulp_created' => :'DateTime',
89
- :'pulp_last_updated' => :'DateTime',
94
+ :'pulp_created' => :'Time',
95
+ :'pulp_last_updated' => :'Time',
90
96
  :'id' => :'String',
91
97
  :'default' => :'Boolean',
92
98
  :'user_visible' => :'Boolean',
@@ -144,6 +150,8 @@ module PulpRpmClient
144
150
 
145
151
  if attributes.key?(:'id')
146
152
  self.id = attributes[:'id']
153
+ else
154
+ self.id = nil
147
155
  end
148
156
 
149
157
  if attributes.key?(:'default')
@@ -156,18 +164,26 @@ module PulpRpmClient
156
164
 
157
165
  if attributes.key?(:'display_order')
158
166
  self.display_order = attributes[:'display_order']
167
+ else
168
+ self.display_order = nil
159
169
  end
160
170
 
161
171
  if attributes.key?(:'name')
162
172
  self.name = attributes[:'name']
173
+ else
174
+ self.name = nil
163
175
  end
164
176
 
165
177
  if attributes.key?(:'description')
166
178
  self.description = attributes[:'description']
179
+ else
180
+ self.description = nil
167
181
  end
168
182
 
169
183
  if attributes.key?(:'packages')
170
184
  self.packages = attributes[:'packages']
185
+ else
186
+ self.packages = nil
171
187
  end
172
188
 
173
189
  if attributes.key?(:'biarch_only')
@@ -176,20 +192,27 @@ module PulpRpmClient
176
192
 
177
193
  if attributes.key?(:'desc_by_lang')
178
194
  self.desc_by_lang = attributes[:'desc_by_lang']
195
+ else
196
+ self.desc_by_lang = nil
179
197
  end
180
198
 
181
199
  if attributes.key?(:'name_by_lang')
182
200
  self.name_by_lang = attributes[:'name_by_lang']
201
+ else
202
+ self.name_by_lang = nil
183
203
  end
184
204
 
185
205
  if attributes.key?(:'digest')
186
206
  self.digest = attributes[:'digest']
207
+ else
208
+ self.digest = nil
187
209
  end
188
210
  end
189
211
 
190
212
  # Show invalid properties with the reasons. Usually used together with valid?
191
213
  # @return Array for valid properties with the reasons
192
214
  def list_invalid_properties
215
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
193
216
  invalid_properties = Array.new
194
217
  if @id.nil?
195
218
  invalid_properties.push('invalid value for "id", id cannot be nil.')
@@ -213,6 +236,7 @@ module PulpRpmClient
213
236
  # Check to see if the all the properties in the model are valid
214
237
  # @return true if the model is valid
215
238
  def valid?
239
+ warn '[DEPRECATED] the `valid?` method is obsolete'
216
240
  return false if @id.nil?
217
241
  return false if @name.nil?
218
242
  return false if @description.nil?
@@ -258,37 +282,33 @@ module PulpRpmClient
258
282
  # @param [Hash] attributes Model attributes in the form of hash
259
283
  # @return [Object] Returns the model itself
260
284
  def self.build_from_hash(attributes)
261
- new.build_from_hash(attributes)
262
- end
263
-
264
- # Builds the object from hash
265
- # @param [Hash] attributes Model attributes in the form of hash
266
- # @return [Object] Returns the model itself
267
- def build_from_hash(attributes)
268
285
  return nil unless attributes.is_a?(Hash)
269
- self.class.openapi_types.each_pair do |key, type|
270
- if type =~ /\AArray<(.*)>/i
286
+ attributes = attributes.transform_keys(&:to_sym)
287
+ transformed_hash = {}
288
+ openapi_types.each_pair do |key, type|
289
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
290
+ transformed_hash["#{key}"] = nil
291
+ elsif type =~ /\AArray<(.*)>/i
271
292
  # check to ensure the input is an array given that the attribute
272
293
  # is documented as an array but the input is not
273
- if attributes[self.class.attribute_map[key]].is_a?(Array)
274
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
294
+ if attributes[attribute_map[key]].is_a?(Array)
295
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
275
296
  end
276
- elsif !attributes[self.class.attribute_map[key]].nil?
277
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
278
- end # or else data not found in attributes(hash), not an issue as the data can be optional
297
+ elsif !attributes[attribute_map[key]].nil?
298
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
299
+ end
279
300
  end
280
-
281
- self
301
+ new(transformed_hash)
282
302
  end
283
303
 
284
304
  # Deserializes the data based on type
285
305
  # @param string type Data type
286
306
  # @param string value Value to be deserialized
287
307
  # @return [Object] Deserialized data
288
- def _deserialize(type, value)
308
+ def self._deserialize(type, value)
289
309
  case type.to_sym
290
- when :DateTime
291
- DateTime.parse(value)
310
+ when :Time
311
+ Time.parse(value)
292
312
  when :Date
293
313
  Date.parse(value)
294
314
  when :String
@@ -318,7 +338,9 @@ module PulpRpmClient
318
338
  end
319
339
  end
320
340
  else # model
321
- PulpRpmClient.const_get(type).build_from_hash(value)
341
+ # models (e.g. Pet) or oneOf
342
+ klass = PulpRpmClient.const_get(type)
343
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
322
344
  end
323
345
  end
324
346
 
@@ -344,7 +366,7 @@ module PulpRpmClient
344
366
  is_nullable = self.class.openapi_nullable.include?(attr)
345
367
  next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
346
368
  end
347
-
369
+
348
370
  hash[param] = _to_hash(value)
349
371
  end
350
372
  hash
@@ -367,5 +389,7 @@ module PulpRpmClient
367
389
  value
368
390
  end
369
391
  end
392
+
370
393
  end
394
+
371
395
  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 PulpRpmClient
16
17
  # PackageLangpacks serializer.
@@ -44,13 +45,18 @@ module PulpRpmClient
44
45
  }
45
46
  end
46
47
 
48
+ # Returns all the JSON keys this model knows about
49
+ def self.acceptable_attributes
50
+ attribute_map.values
51
+ end
52
+
47
53
  # Attribute type mapping.
48
54
  def self.openapi_types
49
55
  {
50
56
  :'pulp_href' => :'String',
51
57
  :'prn' => :'String',
52
- :'pulp_created' => :'DateTime',
53
- :'pulp_last_updated' => :'DateTime',
58
+ :'pulp_created' => :'Time',
59
+ :'pulp_last_updated' => :'Time',
54
60
  :'matches' => :'Object',
55
61
  :'digest' => :'String'
56
62
  }
@@ -97,16 +103,21 @@ module PulpRpmClient
97
103
 
98
104
  if attributes.key?(:'matches')
99
105
  self.matches = attributes[:'matches']
106
+ else
107
+ self.matches = nil
100
108
  end
101
109
 
102
110
  if attributes.key?(:'digest')
103
111
  self.digest = attributes[:'digest']
112
+ else
113
+ self.digest = nil
104
114
  end
105
115
  end
106
116
 
107
117
  # Show invalid properties with the reasons. Usually used together with valid?
108
118
  # @return Array for valid properties with the reasons
109
119
  def list_invalid_properties
120
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
110
121
  invalid_properties = Array.new
111
122
  invalid_properties
112
123
  end
@@ -114,6 +125,7 @@ module PulpRpmClient
114
125
  # Check to see if the all the properties in the model are valid
115
126
  # @return true if the model is valid
116
127
  def valid?
128
+ warn '[DEPRECATED] the `valid?` method is obsolete'
117
129
  true
118
130
  end
119
131
 
@@ -146,37 +158,33 @@ module PulpRpmClient
146
158
  # @param [Hash] attributes Model attributes in the form of hash
147
159
  # @return [Object] Returns the model itself
148
160
  def self.build_from_hash(attributes)
149
- new.build_from_hash(attributes)
150
- end
151
-
152
- # Builds the object from hash
153
- # @param [Hash] attributes Model attributes in the form of hash
154
- # @return [Object] Returns the model itself
155
- def build_from_hash(attributes)
156
161
  return nil unless attributes.is_a?(Hash)
157
- self.class.openapi_types.each_pair do |key, type|
158
- if type =~ /\AArray<(.*)>/i
162
+ attributes = attributes.transform_keys(&:to_sym)
163
+ transformed_hash = {}
164
+ openapi_types.each_pair do |key, type|
165
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
166
+ transformed_hash["#{key}"] = nil
167
+ elsif type =~ /\AArray<(.*)>/i
159
168
  # check to ensure the input is an array given that the attribute
160
169
  # is documented as an array but the input is not
161
- if attributes[self.class.attribute_map[key]].is_a?(Array)
162
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
170
+ if attributes[attribute_map[key]].is_a?(Array)
171
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
163
172
  end
164
- elsif !attributes[self.class.attribute_map[key]].nil?
165
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
166
- end # or else data not found in attributes(hash), not an issue as the data can be optional
173
+ elsif !attributes[attribute_map[key]].nil?
174
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
175
+ end
167
176
  end
168
-
169
- self
177
+ new(transformed_hash)
170
178
  end
171
179
 
172
180
  # Deserializes the data based on type
173
181
  # @param string type Data type
174
182
  # @param string value Value to be deserialized
175
183
  # @return [Object] Deserialized data
176
- def _deserialize(type, value)
184
+ def self._deserialize(type, value)
177
185
  case type.to_sym
178
- when :DateTime
179
- DateTime.parse(value)
186
+ when :Time
187
+ Time.parse(value)
180
188
  when :Date
181
189
  Date.parse(value)
182
190
  when :String
@@ -206,7 +214,9 @@ module PulpRpmClient
206
214
  end
207
215
  end
208
216
  else # model
209
- PulpRpmClient.const_get(type).build_from_hash(value)
217
+ # models (e.g. Pet) or oneOf
218
+ klass = PulpRpmClient.const_get(type)
219
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
210
220
  end
211
221
  end
212
222
 
@@ -232,7 +242,7 @@ module PulpRpmClient
232
242
  is_nullable = self.class.openapi_nullable.include?(attr)
233
243
  next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
234
244
  end
235
-
245
+
236
246
  hash[param] = _to_hash(value)
237
247
  end
238
248
  hash
@@ -255,5 +265,7 @@ module PulpRpmClient
255
265
  value
256
266
  end
257
267
  end
268
+
258
269
  end
270
+
259
271
  end