pulp_rpm_client 3.27.3 → 3.28.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 +62 -24
  161. data/lib/pulp_rpm_client/models/patchedrpm_rpm_repository.rb +68 -25
  162. data/lib/pulp_rpm_client/models/patchedrpm_uln_remote.rb +72 -26
  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 +56 -22
  189. data/lib/pulp_rpm_client/models/rpm_rpm_remote_response.rb +59 -25
  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 +60 -22
  194. data/lib/pulp_rpm_client/models/rpm_uln_remote_response.rb +59 -25
  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 +121 -109
  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
  # A Serializer for UpdateCollection.
@@ -33,6 +34,11 @@ module PulpRpmClient
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
  {
@@ -68,20 +74,27 @@ module PulpRpmClient
68
74
 
69
75
  if attributes.key?(:'name')
70
76
  self.name = attributes[:'name']
77
+ else
78
+ self.name = nil
71
79
  end
72
80
 
73
81
  if attributes.key?(:'shortname')
74
82
  self.shortname = attributes[:'shortname']
83
+ else
84
+ self.shortname = nil
75
85
  end
76
86
 
77
87
  if attributes.key?(:'_module')
78
88
  self._module = attributes[:'_module']
89
+ else
90
+ self._module = nil
79
91
  end
80
92
  end
81
93
 
82
94
  # Show invalid properties with the reasons. Usually used together with valid?
83
95
  # @return Array for valid properties with the reasons
84
96
  def list_invalid_properties
97
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
85
98
  invalid_properties = Array.new
86
99
  invalid_properties
87
100
  end
@@ -89,6 +102,7 @@ module PulpRpmClient
89
102
  # Check to see if the all the properties in the model are valid
90
103
  # @return true if the model is valid
91
104
  def valid?
105
+ warn '[DEPRECATED] the `valid?` method is obsolete'
92
106
  true
93
107
  end
94
108
 
@@ -118,37 +132,33 @@ module PulpRpmClient
118
132
  # @param [Hash] attributes Model attributes in the form of hash
119
133
  # @return [Object] Returns the model itself
120
134
  def self.build_from_hash(attributes)
121
- new.build_from_hash(attributes)
122
- end
123
-
124
- # Builds the object from hash
125
- # @param [Hash] attributes Model attributes in the form of hash
126
- # @return [Object] Returns the model itself
127
- def build_from_hash(attributes)
128
135
  return nil unless attributes.is_a?(Hash)
129
- self.class.openapi_types.each_pair do |key, type|
130
- if type =~ /\AArray<(.*)>/i
136
+ attributes = attributes.transform_keys(&:to_sym)
137
+ transformed_hash = {}
138
+ openapi_types.each_pair do |key, type|
139
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
140
+ transformed_hash["#{key}"] = nil
141
+ elsif type =~ /\AArray<(.*)>/i
131
142
  # check to ensure the input is an array given that the attribute
132
143
  # is documented as an array but the input is not
133
- if attributes[self.class.attribute_map[key]].is_a?(Array)
134
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
144
+ if attributes[attribute_map[key]].is_a?(Array)
145
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
135
146
  end
136
- elsif !attributes[self.class.attribute_map[key]].nil?
137
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
138
- end # or else data not found in attributes(hash), not an issue as the data can be optional
147
+ elsif !attributes[attribute_map[key]].nil?
148
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
149
+ end
139
150
  end
140
-
141
- self
151
+ new(transformed_hash)
142
152
  end
143
153
 
144
154
  # Deserializes the data based on type
145
155
  # @param string type Data type
146
156
  # @param string value Value to be deserialized
147
157
  # @return [Object] Deserialized data
148
- def _deserialize(type, value)
158
+ def self._deserialize(type, value)
149
159
  case type.to_sym
150
- when :DateTime
151
- DateTime.parse(value)
160
+ when :Time
161
+ Time.parse(value)
152
162
  when :Date
153
163
  Date.parse(value)
154
164
  when :String
@@ -178,7 +188,9 @@ module PulpRpmClient
178
188
  end
179
189
  end
180
190
  else # model
181
- PulpRpmClient.const_get(type).build_from_hash(value)
191
+ # models (e.g. Pet) or oneOf
192
+ klass = PulpRpmClient.const_get(type)
193
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
182
194
  end
183
195
  end
184
196
 
@@ -204,7 +216,7 @@ module PulpRpmClient
204
216
  is_nullable = self.class.openapi_nullable.include?(attr)
205
217
  next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
206
218
  end
207
-
219
+
208
220
  hash[param] = _to_hash(value)
209
221
  end
210
222
  hash
@@ -227,5 +239,7 @@ module PulpRpmClient
227
239
  value
228
240
  end
229
241
  end
242
+
230
243
  end
244
+
231
245
  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
  # A Serializer for UpdateCollection.
@@ -37,6 +38,11 @@ module PulpRpmClient
37
38
  }
38
39
  end
39
40
 
41
+ # Returns all the JSON keys this model knows about
42
+ def self.acceptable_attributes
43
+ attribute_map.values
44
+ end
45
+
40
46
  # Attribute type mapping.
41
47
  def self.openapi_types
42
48
  {
@@ -73,14 +79,20 @@ module PulpRpmClient
73
79
 
74
80
  if attributes.key?(:'name')
75
81
  self.name = attributes[:'name']
82
+ else
83
+ self.name = nil
76
84
  end
77
85
 
78
86
  if attributes.key?(:'shortname')
79
87
  self.shortname = attributes[:'shortname']
88
+ else
89
+ self.shortname = nil
80
90
  end
81
91
 
82
92
  if attributes.key?(:'_module')
83
93
  self._module = attributes[:'_module']
94
+ else
95
+ self._module = nil
84
96
  end
85
97
 
86
98
  if attributes.key?(:'packages')
@@ -93,6 +105,7 @@ module PulpRpmClient
93
105
  # Show invalid properties with the reasons. Usually used together with valid?
94
106
  # @return Array for valid properties with the reasons
95
107
  def list_invalid_properties
108
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
96
109
  invalid_properties = Array.new
97
110
  invalid_properties
98
111
  end
@@ -100,6 +113,7 @@ module PulpRpmClient
100
113
  # Check to see if the all the properties in the model are valid
101
114
  # @return true if the model is valid
102
115
  def valid?
116
+ warn '[DEPRECATED] the `valid?` method is obsolete'
103
117
  true
104
118
  end
105
119
 
@@ -130,37 +144,33 @@ module PulpRpmClient
130
144
  # @param [Hash] attributes Model attributes in the form of hash
131
145
  # @return [Object] Returns the model itself
132
146
  def self.build_from_hash(attributes)
133
- new.build_from_hash(attributes)
134
- end
135
-
136
- # Builds the object from hash
137
- # @param [Hash] attributes Model attributes in the form of hash
138
- # @return [Object] Returns the model itself
139
- def build_from_hash(attributes)
140
147
  return nil unless attributes.is_a?(Hash)
141
- self.class.openapi_types.each_pair do |key, type|
142
- if type =~ /\AArray<(.*)>/i
148
+ attributes = attributes.transform_keys(&:to_sym)
149
+ transformed_hash = {}
150
+ openapi_types.each_pair do |key, type|
151
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
152
+ transformed_hash["#{key}"] = nil
153
+ elsif type =~ /\AArray<(.*)>/i
143
154
  # check to ensure the input is an array given that the attribute
144
155
  # is documented as an array but the input is not
145
- if attributes[self.class.attribute_map[key]].is_a?(Array)
146
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
156
+ if attributes[attribute_map[key]].is_a?(Array)
157
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
147
158
  end
148
- elsif !attributes[self.class.attribute_map[key]].nil?
149
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
150
- end # or else data not found in attributes(hash), not an issue as the data can be optional
159
+ elsif !attributes[attribute_map[key]].nil?
160
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
161
+ end
151
162
  end
152
-
153
- self
163
+ new(transformed_hash)
154
164
  end
155
165
 
156
166
  # Deserializes the data based on type
157
167
  # @param string type Data type
158
168
  # @param string value Value to be deserialized
159
169
  # @return [Object] Deserialized data
160
- def _deserialize(type, value)
170
+ def self._deserialize(type, value)
161
171
  case type.to_sym
162
- when :DateTime
163
- DateTime.parse(value)
172
+ when :Time
173
+ Time.parse(value)
164
174
  when :Date
165
175
  Date.parse(value)
166
176
  when :String
@@ -190,7 +200,9 @@ module PulpRpmClient
190
200
  end
191
201
  end
192
202
  else # model
193
- PulpRpmClient.const_get(type).build_from_hash(value)
203
+ # models (e.g. Pet) or oneOf
204
+ klass = PulpRpmClient.const_get(type)
205
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
194
206
  end
195
207
  end
196
208
 
@@ -216,7 +228,7 @@ module PulpRpmClient
216
228
  is_nullable = self.class.openapi_nullable.include?(attr)
217
229
  next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
218
230
  end
219
-
231
+
220
232
  hash[param] = _to_hash(value)
221
233
  end
222
234
  hash
@@ -239,5 +251,7 @@ module PulpRpmClient
239
251
  value
240
252
  end
241
253
  end
254
+
242
255
  end
256
+
243
257
  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
  # A Serializer for UpdateRecord.
@@ -108,13 +109,18 @@ module PulpRpmClient
108
109
  }
109
110
  end
110
111
 
112
+ # Returns all the JSON keys this model knows about
113
+ def self.acceptable_attributes
114
+ attribute_map.values
115
+ end
116
+
111
117
  # Attribute type mapping.
112
118
  def self.openapi_types
113
119
  {
114
120
  :'pulp_href' => :'String',
115
121
  :'prn' => :'String',
116
- :'pulp_created' => :'DateTime',
117
- :'pulp_last_updated' => :'DateTime',
122
+ :'pulp_created' => :'Time',
123
+ :'pulp_last_updated' => :'Time',
118
124
  :'id' => :'String',
119
125
  :'updated_date' => :'String',
120
126
  :'description' => :'String',
@@ -253,6 +259,7 @@ module PulpRpmClient
253
259
  # Show invalid properties with the reasons. Usually used together with valid?
254
260
  # @return Array for valid properties with the reasons
255
261
  def list_invalid_properties
262
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
256
263
  invalid_properties = Array.new
257
264
  invalid_properties
258
265
  end
@@ -260,6 +267,7 @@ module PulpRpmClient
260
267
  # Check to see if the all the properties in the model are valid
261
268
  # @return true if the model is valid
262
269
  def valid?
270
+ warn '[DEPRECATED] the `valid?` method is obsolete'
263
271
  true
264
272
  end
265
273
 
@@ -308,37 +316,33 @@ module PulpRpmClient
308
316
  # @param [Hash] attributes Model attributes in the form of hash
309
317
  # @return [Object] Returns the model itself
310
318
  def self.build_from_hash(attributes)
311
- new.build_from_hash(attributes)
312
- end
313
-
314
- # Builds the object from hash
315
- # @param [Hash] attributes Model attributes in the form of hash
316
- # @return [Object] Returns the model itself
317
- def build_from_hash(attributes)
318
319
  return nil unless attributes.is_a?(Hash)
319
- self.class.openapi_types.each_pair do |key, type|
320
- if type =~ /\AArray<(.*)>/i
320
+ attributes = attributes.transform_keys(&:to_sym)
321
+ transformed_hash = {}
322
+ openapi_types.each_pair do |key, type|
323
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
324
+ transformed_hash["#{key}"] = nil
325
+ elsif type =~ /\AArray<(.*)>/i
321
326
  # check to ensure the input is an array given that the attribute
322
327
  # is documented as an array but the input is not
323
- if attributes[self.class.attribute_map[key]].is_a?(Array)
324
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
328
+ if attributes[attribute_map[key]].is_a?(Array)
329
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
325
330
  end
326
- elsif !attributes[self.class.attribute_map[key]].nil?
327
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
328
- end # or else data not found in attributes(hash), not an issue as the data can be optional
331
+ elsif !attributes[attribute_map[key]].nil?
332
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
333
+ end
329
334
  end
330
-
331
- self
335
+ new(transformed_hash)
332
336
  end
333
337
 
334
338
  # Deserializes the data based on type
335
339
  # @param string type Data type
336
340
  # @param string value Value to be deserialized
337
341
  # @return [Object] Deserialized data
338
- def _deserialize(type, value)
342
+ def self._deserialize(type, value)
339
343
  case type.to_sym
340
- when :DateTime
341
- DateTime.parse(value)
344
+ when :Time
345
+ Time.parse(value)
342
346
  when :Date
343
347
  Date.parse(value)
344
348
  when :String
@@ -368,7 +372,9 @@ module PulpRpmClient
368
372
  end
369
373
  end
370
374
  else # model
371
- PulpRpmClient.const_get(type).build_from_hash(value)
375
+ # models (e.g. Pet) or oneOf
376
+ klass = PulpRpmClient.const_get(type)
377
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
372
378
  end
373
379
  end
374
380
 
@@ -394,7 +400,7 @@ module PulpRpmClient
394
400
  is_nullable = self.class.openapi_nullable.include?(attr)
395
401
  next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
396
402
  end
397
-
403
+
398
404
  hash[param] = _to_hash(value)
399
405
  end
400
406
  hash
@@ -417,5 +423,7 @@ module PulpRpmClient
417
423
  value
418
424
  end
419
425
  end
426
+
420
427
  end
428
+
421
429
  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
  # Serializer for synchronously setting a label.
@@ -27,6 +28,11 @@ module PulpRpmClient
27
28
  }
28
29
  end
29
30
 
31
+ # Returns all the JSON keys this model knows about
32
+ def self.acceptable_attributes
33
+ attribute_map.values
34
+ end
35
+
30
36
  # Attribute type mapping.
31
37
  def self.openapi_types
32
38
  {
@@ -59,16 +65,21 @@ module PulpRpmClient
59
65
 
60
66
  if attributes.key?(:'key')
61
67
  self.key = attributes[:'key']
68
+ else
69
+ self.key = nil
62
70
  end
63
71
 
64
72
  if attributes.key?(:'value')
65
73
  self.value = attributes[:'value']
74
+ else
75
+ self.value = nil
66
76
  end
67
77
  end
68
78
 
69
79
  # Show invalid properties with the reasons. Usually used together with valid?
70
80
  # @return Array for valid properties with the reasons
71
81
  def list_invalid_properties
82
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
72
83
  invalid_properties = Array.new
73
84
  if @key.nil?
74
85
  invalid_properties.push('invalid value for "key", key cannot be nil.')
@@ -89,6 +100,7 @@ module PulpRpmClient
89
100
  # Check to see if the all the properties in the model are valid
90
101
  # @return true if the model is valid
91
102
  def valid?
103
+ warn '[DEPRECATED] the `valid?` method is obsolete'
92
104
  return false if @key.nil?
93
105
  return false if @key.to_s.length < 1
94
106
  return false if @key !~ Regexp.new(/^[-a-zA-Z0-9_]+$/)
@@ -139,37 +151,33 @@ module PulpRpmClient
139
151
  # @param [Hash] attributes Model attributes in the form of hash
140
152
  # @return [Object] Returns the model itself
141
153
  def self.build_from_hash(attributes)
142
- new.build_from_hash(attributes)
143
- end
144
-
145
- # Builds the object from hash
146
- # @param [Hash] attributes Model attributes in the form of hash
147
- # @return [Object] Returns the model itself
148
- def build_from_hash(attributes)
149
154
  return nil unless attributes.is_a?(Hash)
150
- self.class.openapi_types.each_pair do |key, type|
151
- if type =~ /\AArray<(.*)>/i
155
+ attributes = attributes.transform_keys(&:to_sym)
156
+ transformed_hash = {}
157
+ openapi_types.each_pair do |key, type|
158
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
159
+ transformed_hash["#{key}"] = nil
160
+ elsif type =~ /\AArray<(.*)>/i
152
161
  # check to ensure the input is an array given that the attribute
153
162
  # is documented as an array but the input is not
154
- if attributes[self.class.attribute_map[key]].is_a?(Array)
155
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
163
+ if attributes[attribute_map[key]].is_a?(Array)
164
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
156
165
  end
157
- elsif !attributes[self.class.attribute_map[key]].nil?
158
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
159
- end # or else data not found in attributes(hash), not an issue as the data can be optional
166
+ elsif !attributes[attribute_map[key]].nil?
167
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
168
+ end
160
169
  end
161
-
162
- self
170
+ new(transformed_hash)
163
171
  end
164
172
 
165
173
  # Deserializes the data based on type
166
174
  # @param string type Data type
167
175
  # @param string value Value to be deserialized
168
176
  # @return [Object] Deserialized data
169
- def _deserialize(type, value)
177
+ def self._deserialize(type, value)
170
178
  case type.to_sym
171
- when :DateTime
172
- DateTime.parse(value)
179
+ when :Time
180
+ Time.parse(value)
173
181
  when :Date
174
182
  Date.parse(value)
175
183
  when :String
@@ -199,7 +207,9 @@ module PulpRpmClient
199
207
  end
200
208
  end
201
209
  else # model
202
- PulpRpmClient.const_get(type).build_from_hash(value)
210
+ # models (e.g. Pet) or oneOf
211
+ klass = PulpRpmClient.const_get(type)
212
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
203
213
  end
204
214
  end
205
215
 
@@ -225,7 +235,7 @@ module PulpRpmClient
225
235
  is_nullable = self.class.openapi_nullable.include?(attr)
226
236
  next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
227
237
  end
228
-
238
+
229
239
  hash[param] = _to_hash(value)
230
240
  end
231
241
  hash
@@ -248,5 +258,7 @@ module PulpRpmClient
248
258
  value
249
259
  end
250
260
  end
261
+
251
262
  end
263
+
252
264
  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
  # Serializer for synchronously setting a label.
@@ -27,6 +28,11 @@ module PulpRpmClient
27
28
  }
28
29
  end
29
30
 
31
+ # Returns all the JSON keys this model knows about
32
+ def self.acceptable_attributes
33
+ attribute_map.values
34
+ end
35
+
30
36
  # Attribute type mapping.
31
37
  def self.openapi_types
32
38
  {
@@ -59,16 +65,21 @@ module PulpRpmClient
59
65
 
60
66
  if attributes.key?(:'key')
61
67
  self.key = attributes[:'key']
68
+ else
69
+ self.key = nil
62
70
  end
63
71
 
64
72
  if attributes.key?(:'value')
65
73
  self.value = attributes[:'value']
74
+ else
75
+ self.value = nil
66
76
  end
67
77
  end
68
78
 
69
79
  # Show invalid properties with the reasons. Usually used together with valid?
70
80
  # @return Array for valid properties with the reasons
71
81
  def list_invalid_properties
82
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
72
83
  invalid_properties = Array.new
73
84
  if @key.nil?
74
85
  invalid_properties.push('invalid value for "key", key cannot be nil.')
@@ -85,6 +96,7 @@ module PulpRpmClient
85
96
  # Check to see if the all the properties in the model are valid
86
97
  # @return true if the model is valid
87
98
  def valid?
99
+ warn '[DEPRECATED] the `valid?` method is obsolete'
88
100
  return false if @key.nil?
89
101
  return false if @key !~ Regexp.new(/^[-a-zA-Z0-9_]+$/)
90
102
  true
@@ -130,37 +142,33 @@ module PulpRpmClient
130
142
  # @param [Hash] attributes Model attributes in the form of hash
131
143
  # @return [Object] Returns the model itself
132
144
  def self.build_from_hash(attributes)
133
- new.build_from_hash(attributes)
134
- end
135
-
136
- # Builds the object from hash
137
- # @param [Hash] attributes Model attributes in the form of hash
138
- # @return [Object] Returns the model itself
139
- def build_from_hash(attributes)
140
145
  return nil unless attributes.is_a?(Hash)
141
- self.class.openapi_types.each_pair do |key, type|
142
- if type =~ /\AArray<(.*)>/i
146
+ attributes = attributes.transform_keys(&:to_sym)
147
+ transformed_hash = {}
148
+ openapi_types.each_pair do |key, type|
149
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
150
+ transformed_hash["#{key}"] = nil
151
+ elsif type =~ /\AArray<(.*)>/i
143
152
  # check to ensure the input is an array given that the attribute
144
153
  # is documented as an array but the input is not
145
- if attributes[self.class.attribute_map[key]].is_a?(Array)
146
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
154
+ if attributes[attribute_map[key]].is_a?(Array)
155
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
147
156
  end
148
- elsif !attributes[self.class.attribute_map[key]].nil?
149
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
150
- end # or else data not found in attributes(hash), not an issue as the data can be optional
157
+ elsif !attributes[attribute_map[key]].nil?
158
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
159
+ end
151
160
  end
152
-
153
- self
161
+ new(transformed_hash)
154
162
  end
155
163
 
156
164
  # Deserializes the data based on type
157
165
  # @param string type Data type
158
166
  # @param string value Value to be deserialized
159
167
  # @return [Object] Deserialized data
160
- def _deserialize(type, value)
168
+ def self._deserialize(type, value)
161
169
  case type.to_sym
162
- when :DateTime
163
- DateTime.parse(value)
170
+ when :Time
171
+ Time.parse(value)
164
172
  when :Date
165
173
  Date.parse(value)
166
174
  when :String
@@ -190,7 +198,9 @@ module PulpRpmClient
190
198
  end
191
199
  end
192
200
  else # model
193
- PulpRpmClient.const_get(type).build_from_hash(value)
201
+ # models (e.g. Pet) or oneOf
202
+ klass = PulpRpmClient.const_get(type)
203
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
194
204
  end
195
205
  end
196
206
 
@@ -216,7 +226,7 @@ module PulpRpmClient
216
226
  is_nullable = self.class.openapi_nullable.include?(attr)
217
227
  next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
218
228
  end
219
-
229
+
220
230
  hash[param] = _to_hash(value)
221
231
  end
222
232
  hash
@@ -239,5 +249,7 @@ module PulpRpmClient
239
249
  value
240
250
  end
241
251
  end
252
+
242
253
  end
254
+
243
255
  end