pulp_deb_client 3.5.0 → 3.5.1

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 (298) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +10 -9
  3. data/docs/AptRepositorySyncURL.md +12 -11
  4. data/docs/AsyncOperationResponse.md +8 -7
  5. data/docs/ContentGenericContentsApi.md +114 -64
  6. data/docs/ContentInstallerFileIndicesApi.md +111 -61
  7. data/docs/ContentInstallerPackagesApi.md +130 -80
  8. data/docs/ContentPackageIndicesApi.md +111 -61
  9. data/docs/ContentPackageReleaseComponentsApi.md +111 -61
  10. data/docs/ContentPackagesApi.md +144 -94
  11. data/docs/ContentReleaseArchitecturesApi.md +109 -59
  12. data/docs/ContentReleaseComponentsApi.md +110 -60
  13. data/docs/ContentReleaseFilesApi.md +111 -61
  14. data/docs/ContentReleasesApi.md +114 -64
  15. data/docs/ContentSourceIndicesApi.md +110 -60
  16. data/docs/ContentSourcePackagesApi.md +137 -87
  17. data/docs/ContentSourceReleaseComponentsApi.md +111 -61
  18. data/docs/ContentSummaryResponse.md +12 -11
  19. data/docs/Copy.md +12 -11
  20. data/docs/DebAptDistribution.md +20 -19
  21. data/docs/DebAptDistributionResponse.md +32 -31
  22. data/docs/DebAptPublication.md +18 -17
  23. data/docs/DebAptPublicationResponse.md +26 -25
  24. data/docs/DebAptRemote.md +64 -63
  25. data/docs/DebAptRemoteResponse.md +64 -63
  26. data/docs/DebAptRemoteResponseHiddenFieldsInner.md +20 -0
  27. data/docs/DebAptRepository.md +22 -21
  28. data/docs/DebAptRepositoryResponse.md +34 -33
  29. data/docs/DebCopyApi.md +30 -14
  30. data/docs/DebGenericContentResponse.md +30 -29
  31. data/docs/DebInstallerFileIndex.md +16 -15
  32. data/docs/DebInstallerFileIndexResponse.md +22 -21
  33. data/docs/DebInstallerPackageResponse.md +88 -87
  34. data/docs/DebPackageIndex.md +16 -15
  35. data/docs/DebPackageIndexResponse.md +22 -21
  36. data/docs/DebPackageReleaseComponent.md +12 -11
  37. data/docs/DebPackageReleaseComponentResponse.md +18 -17
  38. data/docs/DebPackageResponse.md +92 -91
  39. data/docs/DebRelease.md +26 -25
  40. data/docs/DebReleaseArchitecture.md +12 -11
  41. data/docs/DebReleaseArchitectureResponse.md +18 -17
  42. data/docs/DebReleaseComponent.md +12 -11
  43. data/docs/DebReleaseComponentResponse.md +20 -19
  44. data/docs/DebReleaseFile.md +18 -17
  45. data/docs/DebReleaseFileResponse.md +24 -23
  46. data/docs/DebReleaseResponse.md +32 -31
  47. data/docs/DebSourceIndex.md +16 -15
  48. data/docs/DebSourceIndexResponse.md +22 -21
  49. data/docs/DebSourcePackage.md +12 -11
  50. data/docs/DebSourcePackageReleaseComponent.md +12 -11
  51. data/docs/DebSourcePackageReleaseComponentResponse.md +18 -17
  52. data/docs/DebSourcePackageResponse.md +74 -73
  53. data/docs/DebVerbatimPublication.md +10 -9
  54. data/docs/DebVerbatimPublicationResponse.md +18 -17
  55. data/docs/DistributionsAptApi.md +385 -182
  56. data/docs/MyPermissionsResponse.md +8 -7
  57. data/docs/NestedRole.md +12 -11
  58. data/docs/NestedRoleResponse.md +12 -11
  59. data/docs/ObjectRolesResponse.md +8 -7
  60. data/docs/PaginatedRepositoryVersionResponseList.md +14 -13
  61. data/docs/PaginateddebAptDistributionResponseList.md +14 -13
  62. data/docs/PaginateddebAptPublicationResponseList.md +14 -13
  63. data/docs/PaginateddebAptRemoteResponseList.md +14 -13
  64. data/docs/PaginateddebAptRepositoryResponseList.md +14 -13
  65. data/docs/PaginateddebGenericContentResponseList.md +14 -13
  66. data/docs/PaginateddebInstallerFileIndexResponseList.md +14 -13
  67. data/docs/PaginateddebInstallerPackageResponseList.md +14 -13
  68. data/docs/PaginateddebPackageIndexResponseList.md +14 -13
  69. data/docs/PaginateddebPackageReleaseComponentResponseList.md +14 -13
  70. data/docs/PaginateddebPackageResponseList.md +14 -13
  71. data/docs/PaginateddebReleaseArchitectureResponseList.md +14 -13
  72. data/docs/PaginateddebReleaseComponentResponseList.md +14 -13
  73. data/docs/PaginateddebReleaseFileResponseList.md +14 -13
  74. data/docs/PaginateddebReleaseResponseList.md +14 -13
  75. data/docs/PaginateddebSourceIndexResponseList.md +14 -13
  76. data/docs/PaginateddebSourcePackageReleaseComponentResponseList.md +14 -13
  77. data/docs/PaginateddebSourcePackageResponseList.md +14 -13
  78. data/docs/PaginateddebVerbatimPublicationResponseList.md +14 -13
  79. data/docs/PatcheddebAptDistribution.md +20 -19
  80. data/docs/PatcheddebAptRemote.md +64 -63
  81. data/docs/PatcheddebAptRepository.md +22 -21
  82. data/docs/PolicyEnum.md +4 -5
  83. data/docs/PublicationsAptApi.md +267 -130
  84. data/docs/PublicationsVerbatimApi.md +267 -130
  85. data/docs/RemotesAptApi.md +389 -184
  86. data/docs/Repair.md +8 -7
  87. data/docs/RepositoriesAptApi.md +444 -207
  88. data/docs/RepositoriesAptVersionsApi.md +152 -82
  89. data/docs/RepositoryAddRemoveContent.md +12 -11
  90. data/docs/RepositoryVersionResponse.md +22 -21
  91. data/docs/SetLabel.md +10 -9
  92. data/docs/SetLabelResponse.md +10 -9
  93. data/docs/UnsetLabel.md +8 -7
  94. data/docs/UnsetLabelResponse.md +10 -9
  95. data/lib/pulp_deb_client/api/content_generic_contents_api.rb +20 -14
  96. data/lib/pulp_deb_client/api/content_installer_file_indices_api.rb +20 -14
  97. data/lib/pulp_deb_client/api/content_installer_packages_api.rb +20 -22
  98. data/lib/pulp_deb_client/api/content_package_indices_api.rb +20 -14
  99. data/lib/pulp_deb_client/api/content_package_release_components_api.rb +20 -14
  100. data/lib/pulp_deb_client/api/content_packages_api.rb +20 -22
  101. data/lib/pulp_deb_client/api/content_release_architectures_api.rb +20 -14
  102. data/lib/pulp_deb_client/api/content_release_components_api.rb +20 -14
  103. data/lib/pulp_deb_client/api/content_release_files_api.rb +20 -14
  104. data/lib/pulp_deb_client/api/content_releases_api.rb +20 -14
  105. data/lib/pulp_deb_client/api/content_source_indices_api.rb +20 -14
  106. data/lib/pulp_deb_client/api/content_source_packages_api.rb +20 -14
  107. data/lib/pulp_deb_client/api/content_source_release_components_api.rb +20 -14
  108. data/lib/pulp_deb_client/api/deb_copy_api.rb +10 -6
  109. data/lib/pulp_deb_client/api/distributions_apt_api.rb +89 -56
  110. data/lib/pulp_deb_client/api/publications_apt_api.rb +67 -47
  111. data/lib/pulp_deb_client/api/publications_verbatim_api.rb +67 -47
  112. data/lib/pulp_deb_client/api/remotes_apt_api.rb +104 -68
  113. data/lib/pulp_deb_client/api/repositories_apt_api.rb +107 -66
  114. data/lib/pulp_deb_client/api/repositories_apt_versions_api.rb +40 -30
  115. data/lib/pulp_deb_client/api_client.rb +137 -102
  116. data/lib/pulp_deb_client/api_error.rb +2 -1
  117. data/lib/pulp_deb_client/configuration.rb +162 -21
  118. data/lib/pulp_deb_client/models/apt_repository_sync_url.rb +30 -22
  119. data/lib/pulp_deb_client/models/async_operation_response.rb +32 -22
  120. data/lib/pulp_deb_client/models/content_summary_response.rb +36 -22
  121. data/lib/pulp_deb_client/models/copy.rb +34 -28
  122. data/lib/pulp_deb_client/models/deb_apt_distribution.rb +34 -22
  123. data/lib/pulp_deb_client/models/deb_apt_distribution_response.rb +36 -24
  124. data/lib/pulp_deb_client/models/deb_apt_publication.rb +30 -22
  125. data/lib/pulp_deb_client/models/deb_apt_publication_response.rb +32 -24
  126. data/lib/pulp_deb_client/models/deb_apt_remote.rb +58 -22
  127. data/lib/pulp_deb_client/models/deb_apt_remote_response.rb +61 -25
  128. data/lib/pulp_deb_client/models/{deb_apt_remote_response_hidden_fields.rb → deb_apt_remote_response_hidden_fields_inner.rb} +37 -25
  129. data/lib/pulp_deb_client/models/deb_apt_repository.rb +32 -22
  130. data/lib/pulp_deb_client/models/deb_apt_repository_response.rb +34 -24
  131. data/lib/pulp_deb_client/models/deb_generic_content_response.rb +34 -24
  132. data/lib/pulp_deb_client/models/deb_installer_file_index.rb +41 -23
  133. data/lib/pulp_deb_client/models/deb_installer_file_index_response.rb +38 -24
  134. data/lib/pulp_deb_client/models/deb_installer_package_response.rb +32 -24
  135. data/lib/pulp_deb_client/models/deb_package_index.rb +47 -25
  136. data/lib/pulp_deb_client/models/deb_package_index_response.rb +34 -24
  137. data/lib/pulp_deb_client/models/deb_package_release_component.rb +34 -22
  138. data/lib/pulp_deb_client/models/deb_package_release_component_response.rb +36 -24
  139. data/lib/pulp_deb_client/models/deb_package_response.rb +32 -24
  140. data/lib/pulp_deb_client/models/deb_release.rb +36 -22
  141. data/lib/pulp_deb_client/models/deb_release_architecture.rb +34 -22
  142. data/lib/pulp_deb_client/models/deb_release_architecture_response.rb +36 -24
  143. data/lib/pulp_deb_client/models/deb_release_component.rb +34 -22
  144. data/lib/pulp_deb_client/models/deb_release_component_response.rb +36 -24
  145. data/lib/pulp_deb_client/models/deb_release_file.rb +49 -25
  146. data/lib/pulp_deb_client/models/deb_release_file_response.rb +36 -24
  147. data/lib/pulp_deb_client/models/deb_release_response.rb +38 -24
  148. data/lib/pulp_deb_client/models/deb_source_index.rb +41 -23
  149. data/lib/pulp_deb_client/models/deb_source_index_response.rb +38 -24
  150. data/lib/pulp_deb_client/models/deb_source_package.rb +37 -23
  151. data/lib/pulp_deb_client/models/deb_source_package_release_component.rb +34 -22
  152. data/lib/pulp_deb_client/models/deb_source_package_release_component_response.rb +36 -24
  153. data/lib/pulp_deb_client/models/deb_source_package_response.rb +34 -24
  154. data/lib/pulp_deb_client/models/deb_verbatim_publication.rb +30 -22
  155. data/lib/pulp_deb_client/models/deb_verbatim_publication_response.rb +32 -24
  156. data/lib/pulp_deb_client/models/my_permissions_response.rb +32 -22
  157. data/lib/pulp_deb_client/models/nested_role.rb +32 -22
  158. data/lib/pulp_deb_client/models/nested_role_response.rb +32 -22
  159. data/lib/pulp_deb_client/models/object_roles_response.rb +32 -22
  160. data/lib/pulp_deb_client/models/paginated_repository_version_response_list.rb +34 -22
  161. data/lib/pulp_deb_client/models/paginateddeb_apt_distribution_response_list.rb +34 -22
  162. data/lib/pulp_deb_client/models/paginateddeb_apt_publication_response_list.rb +34 -22
  163. data/lib/pulp_deb_client/models/paginateddeb_apt_remote_response_list.rb +34 -22
  164. data/lib/pulp_deb_client/models/paginateddeb_apt_repository_response_list.rb +34 -22
  165. data/lib/pulp_deb_client/models/paginateddeb_generic_content_response_list.rb +34 -22
  166. data/lib/pulp_deb_client/models/paginateddeb_installer_file_index_response_list.rb +34 -22
  167. data/lib/pulp_deb_client/models/paginateddeb_installer_package_response_list.rb +34 -22
  168. data/lib/pulp_deb_client/models/paginateddeb_package_index_response_list.rb +34 -22
  169. data/lib/pulp_deb_client/models/paginateddeb_package_release_component_response_list.rb +34 -22
  170. data/lib/pulp_deb_client/models/paginateddeb_package_response_list.rb +34 -22
  171. data/lib/pulp_deb_client/models/paginateddeb_release_architecture_response_list.rb +34 -22
  172. data/lib/pulp_deb_client/models/paginateddeb_release_component_response_list.rb +34 -22
  173. data/lib/pulp_deb_client/models/paginateddeb_release_file_response_list.rb +34 -22
  174. data/lib/pulp_deb_client/models/paginateddeb_release_response_list.rb +34 -22
  175. data/lib/pulp_deb_client/models/paginateddeb_source_index_response_list.rb +34 -22
  176. data/lib/pulp_deb_client/models/paginateddeb_source_package_release_component_response_list.rb +34 -22
  177. data/lib/pulp_deb_client/models/paginateddeb_source_package_response_list.rb +34 -22
  178. data/lib/pulp_deb_client/models/paginateddeb_verbatim_publication_response_list.rb +34 -22
  179. data/lib/pulp_deb_client/models/patcheddeb_apt_distribution.rb +40 -24
  180. data/lib/pulp_deb_client/models/patcheddeb_apt_remote.rb +67 -25
  181. data/lib/pulp_deb_client/models/patcheddeb_apt_repository.rb +35 -23
  182. data/lib/pulp_deb_client/models/policy_enum.rb +8 -4
  183. data/lib/pulp_deb_client/models/repair.rb +30 -22
  184. data/lib/pulp_deb_client/models/repository_add_remove_content.rb +30 -22
  185. data/lib/pulp_deb_client/models/repository_version_response.rb +32 -24
  186. data/lib/pulp_deb_client/models/set_label.rb +34 -22
  187. data/lib/pulp_deb_client/models/set_label_response.rb +34 -22
  188. data/lib/pulp_deb_client/models/unset_label.rb +32 -22
  189. data/lib/pulp_deb_client/models/unset_label_response.rb +32 -22
  190. data/lib/pulp_deb_client/version.rb +2 -2
  191. data/lib/pulp_deb_client.rb +2 -5
  192. data/pulp_deb_client.gemspec +9 -6
  193. data/spec/api/content_generic_contents_api_spec.rb +4 -4
  194. data/spec/api/content_installer_file_indices_api_spec.rb +4 -4
  195. data/spec/api/content_installer_packages_api_spec.rb +4 -4
  196. data/spec/api/content_package_indices_api_spec.rb +4 -4
  197. data/spec/api/content_package_release_components_api_spec.rb +4 -4
  198. data/spec/api/content_packages_api_spec.rb +4 -4
  199. data/spec/api/content_release_architectures_api_spec.rb +4 -4
  200. data/spec/api/content_release_components_api_spec.rb +4 -4
  201. data/spec/api/content_release_files_api_spec.rb +4 -4
  202. data/spec/api/content_releases_api_spec.rb +4 -4
  203. data/spec/api/content_source_indices_api_spec.rb +4 -4
  204. data/spec/api/content_source_packages_api_spec.rb +4 -4
  205. data/spec/api/content_source_release_components_api_spec.rb +4 -4
  206. data/spec/api/deb_copy_api_spec.rb +2 -2
  207. data/spec/api/distributions_apt_api_spec.rb +13 -13
  208. data/spec/api/publications_apt_api_spec.rb +16 -15
  209. data/spec/api/publications_verbatim_api_spec.rb +16 -15
  210. data/spec/api/remotes_apt_api_spec.rb +20 -19
  211. data/spec/api/repositories_apt_api_spec.rb +15 -15
  212. data/spec/api/repositories_apt_versions_api_spec.rb +12 -11
  213. data/spec/models/apt_repository_sync_url_spec.rb +9 -14
  214. data/spec/models/async_operation_response_spec.rb +7 -12
  215. data/spec/models/content_summary_response_spec.rb +9 -14
  216. data/spec/models/copy_spec.rb +9 -14
  217. data/spec/models/deb_apt_distribution_response_spec.rb +19 -24
  218. data/spec/models/deb_apt_distribution_spec.rb +13 -18
  219. data/spec/models/deb_apt_publication_response_spec.rb +16 -21
  220. data/spec/models/deb_apt_publication_spec.rb +12 -17
  221. data/spec/models/{deb_apt_remote_response_hidden_fields_spec.rb → deb_apt_remote_response_hidden_fields_inner_spec.rb} +11 -16
  222. data/spec/models/deb_apt_remote_response_spec.rb +35 -40
  223. data/spec/models/deb_apt_remote_spec.rb +35 -40
  224. data/spec/models/deb_apt_repository_response_spec.rb +20 -25
  225. data/spec/models/deb_apt_repository_spec.rb +14 -19
  226. data/spec/models/deb_generic_content_response_spec.rb +18 -23
  227. data/spec/models/deb_installer_file_index_response_spec.rb +14 -19
  228. data/spec/models/deb_installer_file_index_spec.rb +11 -16
  229. data/spec/models/deb_installer_package_response_spec.rb +47 -52
  230. data/spec/models/deb_package_index_response_spec.rb +14 -19
  231. data/spec/models/deb_package_index_spec.rb +11 -16
  232. data/spec/models/deb_package_release_component_response_spec.rb +12 -17
  233. data/spec/models/deb_package_release_component_spec.rb +9 -14
  234. data/spec/models/deb_package_response_spec.rb +49 -54
  235. data/spec/models/deb_release_architecture_response_spec.rb +12 -17
  236. data/spec/models/deb_release_architecture_spec.rb +9 -14
  237. data/spec/models/deb_release_component_response_spec.rb +13 -18
  238. data/spec/models/deb_release_component_spec.rb +9 -14
  239. data/spec/models/deb_release_file_response_spec.rb +15 -20
  240. data/spec/models/deb_release_file_spec.rb +12 -17
  241. data/spec/models/deb_release_response_spec.rb +19 -24
  242. data/spec/models/deb_release_spec.rb +16 -21
  243. data/spec/models/deb_source_index_response_spec.rb +14 -19
  244. data/spec/models/deb_source_index_spec.rb +11 -16
  245. data/spec/models/deb_source_package_release_component_response_spec.rb +12 -17
  246. data/spec/models/deb_source_package_release_component_spec.rb +9 -14
  247. data/spec/models/deb_source_package_response_spec.rb +40 -45
  248. data/spec/models/deb_source_package_spec.rb +9 -14
  249. data/spec/models/deb_verbatim_publication_response_spec.rb +12 -17
  250. data/spec/models/deb_verbatim_publication_spec.rb +8 -13
  251. data/spec/models/my_permissions_response_spec.rb +7 -12
  252. data/spec/models/nested_role_response_spec.rb +9 -14
  253. data/spec/models/nested_role_spec.rb +9 -14
  254. data/spec/models/object_roles_response_spec.rb +7 -12
  255. data/spec/models/paginated_repository_version_response_list_spec.rb +10 -15
  256. data/spec/models/paginateddeb_apt_distribution_response_list_spec.rb +10 -15
  257. data/spec/models/paginateddeb_apt_publication_response_list_spec.rb +10 -15
  258. data/spec/models/paginateddeb_apt_remote_response_list_spec.rb +10 -15
  259. data/spec/models/paginateddeb_apt_repository_response_list_spec.rb +10 -15
  260. data/spec/models/paginateddeb_generic_content_response_list_spec.rb +10 -15
  261. data/spec/models/paginateddeb_installer_file_index_response_list_spec.rb +10 -15
  262. data/spec/models/paginateddeb_installer_package_response_list_spec.rb +10 -15
  263. data/spec/models/paginateddeb_package_index_response_list_spec.rb +10 -15
  264. data/spec/models/paginateddeb_package_release_component_response_list_spec.rb +10 -15
  265. data/spec/models/paginateddeb_package_response_list_spec.rb +10 -15
  266. data/spec/models/paginateddeb_release_architecture_response_list_spec.rb +10 -15
  267. data/spec/models/paginateddeb_release_component_response_list_spec.rb +10 -15
  268. data/spec/models/paginateddeb_release_file_response_list_spec.rb +10 -15
  269. data/spec/models/paginateddeb_release_response_list_spec.rb +10 -15
  270. data/spec/models/paginateddeb_source_index_response_list_spec.rb +10 -15
  271. data/spec/models/paginateddeb_source_package_release_component_response_list_spec.rb +10 -15
  272. data/spec/models/paginateddeb_source_package_response_list_spec.rb +10 -15
  273. data/spec/models/paginateddeb_verbatim_publication_response_list_spec.rb +10 -15
  274. data/spec/models/patcheddeb_apt_distribution_spec.rb +13 -18
  275. data/spec/models/patcheddeb_apt_remote_spec.rb +35 -40
  276. data/spec/models/patcheddeb_apt_repository_spec.rb +14 -19
  277. data/spec/models/policy_enum_spec.rb +6 -11
  278. data/spec/models/repair_spec.rb +7 -12
  279. data/spec/models/repository_add_remove_content_spec.rb +9 -14
  280. data/spec/models/repository_version_response_spec.rb +14 -19
  281. data/spec/models/set_label_response_spec.rb +8 -13
  282. data/spec/models/set_label_spec.rb +8 -13
  283. data/spec/models/unset_label_response_spec.rb +8 -13
  284. data/spec/models/unset_label_spec.rb +7 -12
  285. data/spec/spec_helper.rb +1 -1
  286. metadata +115 -103
  287. data/docs/DebAptRemoteResponseHiddenFields.md +0 -19
  288. data/docs/DebGenericContent.md +0 -27
  289. data/docs/DebInstallerPackage.md +0 -27
  290. data/docs/DebPackage.md +0 -31
  291. data/lib/pulp_deb_client/models/deb_generic_content.rb +0 -297
  292. data/lib/pulp_deb_client/models/deb_installer_package.rb +0 -288
  293. data/lib/pulp_deb_client/models/deb_package.rb +0 -338
  294. data/spec/api_client_spec.rb +0 -188
  295. data/spec/configuration_spec.rb +0 -42
  296. data/spec/models/deb_generic_content_spec.rb +0 -71
  297. data/spec/models/deb_installer_package_spec.rb +0 -71
  298. data/spec/models/deb_package_spec.rb +0 -83
@@ -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 PulpDebClient
16
17
  # A Serializer for ReleaseComponent.
@@ -48,13 +49,18 @@ module PulpDebClient
48
49
  }
49
50
  end
50
51
 
52
+ # Returns all the JSON keys this model knows about
53
+ def self.acceptable_attributes
54
+ attribute_map.values
55
+ end
56
+
51
57
  # Attribute type mapping.
52
58
  def self.openapi_types
53
59
  {
54
60
  :'pulp_href' => :'String',
55
61
  :'prn' => :'String',
56
- :'pulp_created' => :'DateTime',
57
- :'pulp_last_updated' => :'DateTime',
62
+ :'pulp_created' => :'Time',
63
+ :'pulp_last_updated' => :'Time',
58
64
  :'component' => :'String',
59
65
  :'distribution' => :'String',
60
66
  :'plain_component' => :'String'
@@ -100,10 +106,14 @@ module PulpDebClient
100
106
 
101
107
  if attributes.key?(:'component')
102
108
  self.component = attributes[:'component']
109
+ else
110
+ self.component = nil
103
111
  end
104
112
 
105
113
  if attributes.key?(:'distribution')
106
114
  self.distribution = attributes[:'distribution']
115
+ else
116
+ self.distribution = nil
107
117
  end
108
118
 
109
119
  if attributes.key?(:'plain_component')
@@ -114,6 +124,7 @@ module PulpDebClient
114
124
  # Show invalid properties with the reasons. Usually used together with valid?
115
125
  # @return Array for valid properties with the reasons
116
126
  def list_invalid_properties
127
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
117
128
  invalid_properties = Array.new
118
129
  if @component.nil?
119
130
  invalid_properties.push('invalid value for "component", component cannot be nil.')
@@ -129,6 +140,7 @@ module PulpDebClient
129
140
  # Check to see if the all the properties in the model are valid
130
141
  # @return true if the model is valid
131
142
  def valid?
143
+ warn '[DEPRECATED] the `valid?` method is obsolete'
132
144
  return false if @component.nil?
133
145
  return false if @distribution.nil?
134
146
  true
@@ -164,37 +176,33 @@ module PulpDebClient
164
176
  # @param [Hash] attributes Model attributes in the form of hash
165
177
  # @return [Object] Returns the model itself
166
178
  def self.build_from_hash(attributes)
167
- new.build_from_hash(attributes)
168
- end
169
-
170
- # Builds the object from hash
171
- # @param [Hash] attributes Model attributes in the form of hash
172
- # @return [Object] Returns the model itself
173
- def build_from_hash(attributes)
174
179
  return nil unless attributes.is_a?(Hash)
175
- self.class.openapi_types.each_pair do |key, type|
176
- if type =~ /\AArray<(.*)>/i
180
+ attributes = attributes.transform_keys(&:to_sym)
181
+ transformed_hash = {}
182
+ openapi_types.each_pair do |key, type|
183
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
184
+ transformed_hash["#{key}"] = nil
185
+ elsif type =~ /\AArray<(.*)>/i
177
186
  # check to ensure the input is an array given that the attribute
178
187
  # is documented as an array but the input is not
179
- if attributes[self.class.attribute_map[key]].is_a?(Array)
180
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
188
+ if attributes[attribute_map[key]].is_a?(Array)
189
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
181
190
  end
182
- elsif !attributes[self.class.attribute_map[key]].nil?
183
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
184
- end # or else data not found in attributes(hash), not an issue as the data can be optional
191
+ elsif !attributes[attribute_map[key]].nil?
192
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
193
+ end
185
194
  end
186
-
187
- self
195
+ new(transformed_hash)
188
196
  end
189
197
 
190
198
  # Deserializes the data based on type
191
199
  # @param string type Data type
192
200
  # @param string value Value to be deserialized
193
201
  # @return [Object] Deserialized data
194
- def _deserialize(type, value)
202
+ def self._deserialize(type, value)
195
203
  case type.to_sym
196
- when :DateTime
197
- DateTime.parse(value)
204
+ when :Time
205
+ Time.parse(value)
198
206
  when :Date
199
207
  Date.parse(value)
200
208
  when :String
@@ -224,7 +232,9 @@ module PulpDebClient
224
232
  end
225
233
  end
226
234
  else # model
227
- PulpDebClient.const_get(type).build_from_hash(value)
235
+ # models (e.g. Pet) or oneOf
236
+ klass = PulpDebClient.const_get(type)
237
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
228
238
  end
229
239
  end
230
240
 
@@ -250,7 +260,7 @@ module PulpDebClient
250
260
  is_nullable = self.class.openapi_nullable.include?(attr)
251
261
  next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
252
262
  end
253
-
263
+
254
264
  hash[param] = _to_hash(value)
255
265
  end
256
266
  hash
@@ -273,5 +283,7 @@ module PulpDebClient
273
283
  value
274
284
  end
275
285
  end
286
+
276
287
  end
288
+
277
289
  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 PulpDebClient
16
17
  # A serializer for ReleaseFile.
@@ -45,6 +46,11 @@ module PulpDebClient
45
46
  }
46
47
  end
47
48
 
49
+ # Returns all the JSON keys this model knows about
50
+ def self.acceptable_attributes
51
+ attribute_map.values
52
+ end
53
+
48
54
  # Attribute type mapping.
49
55
  def self.openapi_types
50
56
  {
@@ -84,6 +90,8 @@ module PulpDebClient
84
90
 
85
91
  if attributes.key?(:'artifacts')
86
92
  self.artifacts = attributes[:'artifacts']
93
+ else
94
+ self.artifacts = nil
87
95
  end
88
96
 
89
97
  if attributes.key?(:'codename')
@@ -96,6 +104,8 @@ module PulpDebClient
96
104
 
97
105
  if attributes.key?(:'distribution')
98
106
  self.distribution = attributes[:'distribution']
107
+ else
108
+ self.distribution = nil
99
109
  end
100
110
 
101
111
  if attributes.key?(:'relative_path')
@@ -106,6 +116,7 @@ module PulpDebClient
106
116
  # Show invalid properties with the reasons. Usually used together with valid?
107
117
  # @return Array for valid properties with the reasons
108
118
  def list_invalid_properties
119
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
109
120
  invalid_properties = Array.new
110
121
  if @artifacts.nil?
111
122
  invalid_properties.push('invalid value for "artifacts", artifacts cannot be nil.')
@@ -137,6 +148,7 @@ module PulpDebClient
137
148
  # Check to see if the all the properties in the model are valid
138
149
  # @return true if the model is valid
139
150
  def valid?
151
+ warn '[DEPRECATED] the `valid?` method is obsolete'
140
152
  return false if @artifacts.nil?
141
153
  return false if !@codename.nil? && @codename.to_s.length < 1
142
154
  return false if !@suite.nil? && @suite.to_s.length < 1
@@ -149,7 +161,11 @@ module PulpDebClient
149
161
  # Custom attribute writer method with validation
150
162
  # @param [Object] codename Value to be assigned
151
163
  def codename=(codename)
152
- if !codename.nil? && codename.to_s.length < 1
164
+ if codename.nil?
165
+ fail ArgumentError, 'codename cannot be nil'
166
+ end
167
+
168
+ if codename.to_s.length < 1
153
169
  fail ArgumentError, 'invalid value for "codename", the character length must be great than or equal to 1.'
154
170
  end
155
171
 
@@ -159,7 +175,11 @@ module PulpDebClient
159
175
  # Custom attribute writer method with validation
160
176
  # @param [Object] suite Value to be assigned
161
177
  def suite=(suite)
162
- if !suite.nil? && suite.to_s.length < 1
178
+ if suite.nil?
179
+ fail ArgumentError, 'suite cannot be nil'
180
+ end
181
+
182
+ if suite.to_s.length < 1
163
183
  fail ArgumentError, 'invalid value for "suite", the character length must be great than or equal to 1.'
164
184
  end
165
185
 
@@ -183,7 +203,11 @@ module PulpDebClient
183
203
  # Custom attribute writer method with validation
184
204
  # @param [Object] relative_path Value to be assigned
185
205
  def relative_path=(relative_path)
186
- if !relative_path.nil? && relative_path.to_s.length < 1
206
+ if relative_path.nil?
207
+ fail ArgumentError, 'relative_path cannot be nil'
208
+ end
209
+
210
+ if relative_path.to_s.length < 1
187
211
  fail ArgumentError, 'invalid value for "relative_path", the character length must be great than or equal to 1.'
188
212
  end
189
213
 
@@ -219,37 +243,33 @@ module PulpDebClient
219
243
  # @param [Hash] attributes Model attributes in the form of hash
220
244
  # @return [Object] Returns the model itself
221
245
  def self.build_from_hash(attributes)
222
- new.build_from_hash(attributes)
223
- end
224
-
225
- # Builds the object from hash
226
- # @param [Hash] attributes Model attributes in the form of hash
227
- # @return [Object] Returns the model itself
228
- def build_from_hash(attributes)
229
246
  return nil unless attributes.is_a?(Hash)
230
- self.class.openapi_types.each_pair do |key, type|
231
- if type =~ /\AArray<(.*)>/i
247
+ attributes = attributes.transform_keys(&:to_sym)
248
+ transformed_hash = {}
249
+ openapi_types.each_pair do |key, type|
250
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
251
+ transformed_hash["#{key}"] = nil
252
+ elsif type =~ /\AArray<(.*)>/i
232
253
  # check to ensure the input is an array given that the attribute
233
254
  # is documented as an array but the input is not
234
- if attributes[self.class.attribute_map[key]].is_a?(Array)
235
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
255
+ if attributes[attribute_map[key]].is_a?(Array)
256
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
236
257
  end
237
- elsif !attributes[self.class.attribute_map[key]].nil?
238
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
239
- end # or else data not found in attributes(hash), not an issue as the data can be optional
258
+ elsif !attributes[attribute_map[key]].nil?
259
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
260
+ end
240
261
  end
241
-
242
- self
262
+ new(transformed_hash)
243
263
  end
244
264
 
245
265
  # Deserializes the data based on type
246
266
  # @param string type Data type
247
267
  # @param string value Value to be deserialized
248
268
  # @return [Object] Deserialized data
249
- def _deserialize(type, value)
269
+ def self._deserialize(type, value)
250
270
  case type.to_sym
251
- when :DateTime
252
- DateTime.parse(value)
271
+ when :Time
272
+ Time.parse(value)
253
273
  when :Date
254
274
  Date.parse(value)
255
275
  when :String
@@ -279,7 +299,9 @@ module PulpDebClient
279
299
  end
280
300
  end
281
301
  else # model
282
- PulpDebClient.const_get(type).build_from_hash(value)
302
+ # models (e.g. Pet) or oneOf
303
+ klass = PulpDebClient.const_get(type)
304
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
283
305
  end
284
306
  end
285
307
 
@@ -305,7 +327,7 @@ module PulpDebClient
305
327
  is_nullable = self.class.openapi_nullable.include?(attr)
306
328
  next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
307
329
  end
308
-
330
+
309
331
  hash[param] = _to_hash(value)
310
332
  end
311
333
  hash
@@ -328,5 +350,7 @@ module PulpDebClient
328
350
  value
329
351
  end
330
352
  end
353
+
331
354
  end
355
+
332
356
  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 PulpDebClient
16
17
  # A serializer for ReleaseFile.
@@ -56,13 +57,18 @@ module PulpDebClient
56
57
  }
57
58
  end
58
59
 
60
+ # Returns all the JSON keys this model knows about
61
+ def self.acceptable_attributes
62
+ attribute_map.values
63
+ end
64
+
59
65
  # Attribute type mapping.
60
66
  def self.openapi_types
61
67
  {
62
68
  :'pulp_href' => :'String',
63
69
  :'prn' => :'String',
64
- :'pulp_created' => :'DateTime',
65
- :'pulp_last_updated' => :'DateTime',
70
+ :'pulp_created' => :'Time',
71
+ :'pulp_last_updated' => :'Time',
66
72
  :'artifacts' => :'Object',
67
73
  :'codename' => :'String',
68
74
  :'suite' => :'String',
@@ -110,6 +116,8 @@ module PulpDebClient
110
116
 
111
117
  if attributes.key?(:'artifacts')
112
118
  self.artifacts = attributes[:'artifacts']
119
+ else
120
+ self.artifacts = nil
113
121
  end
114
122
 
115
123
  if attributes.key?(:'codename')
@@ -122,6 +130,8 @@ module PulpDebClient
122
130
 
123
131
  if attributes.key?(:'distribution')
124
132
  self.distribution = attributes[:'distribution']
133
+ else
134
+ self.distribution = nil
125
135
  end
126
136
 
127
137
  if attributes.key?(:'relative_path')
@@ -132,6 +142,7 @@ module PulpDebClient
132
142
  # Show invalid properties with the reasons. Usually used together with valid?
133
143
  # @return Array for valid properties with the reasons
134
144
  def list_invalid_properties
145
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
135
146
  invalid_properties = Array.new
136
147
  if @artifacts.nil?
137
148
  invalid_properties.push('invalid value for "artifacts", artifacts cannot be nil.')
@@ -147,6 +158,7 @@ module PulpDebClient
147
158
  # Check to see if the all the properties in the model are valid
148
159
  # @return true if the model is valid
149
160
  def valid?
161
+ warn '[DEPRECATED] the `valid?` method is obsolete'
150
162
  return false if @artifacts.nil?
151
163
  return false if @distribution.nil?
152
164
  true
@@ -184,37 +196,33 @@ module PulpDebClient
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 PulpDebClient
244
252
  end
245
253
  end
246
254
  else # model
247
- PulpDebClient.const_get(type).build_from_hash(value)
255
+ # models (e.g. Pet) or oneOf
256
+ klass = PulpDebClient.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 PulpDebClient
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 PulpDebClient
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 PulpDebClient
16
17
  # A Serializer for Release.
@@ -63,13 +64,18 @@ module PulpDebClient
63
64
  }
64
65
  end
65
66
 
67
+ # Returns all the JSON keys this model knows about
68
+ def self.acceptable_attributes
69
+ attribute_map.values
70
+ end
71
+
66
72
  # Attribute type mapping.
67
73
  def self.openapi_types
68
74
  {
69
75
  :'pulp_href' => :'String',
70
76
  :'prn' => :'String',
71
- :'pulp_created' => :'DateTime',
72
- :'pulp_last_updated' => :'DateTime',
77
+ :'pulp_created' => :'Time',
78
+ :'pulp_last_updated' => :'Time',
73
79
  :'codename' => :'String',
74
80
  :'suite' => :'String',
75
81
  :'distribution' => :'String',
@@ -125,14 +131,20 @@ module PulpDebClient
125
131
 
126
132
  if attributes.key?(:'codename')
127
133
  self.codename = attributes[:'codename']
134
+ else
135
+ self.codename = nil
128
136
  end
129
137
 
130
138
  if attributes.key?(:'suite')
131
139
  self.suite = attributes[:'suite']
140
+ else
141
+ self.suite = nil
132
142
  end
133
143
 
134
144
  if attributes.key?(:'distribution')
135
145
  self.distribution = attributes[:'distribution']
146
+ else
147
+ self.distribution = nil
136
148
  end
137
149
 
138
150
  if attributes.key?(:'version')
@@ -167,6 +179,7 @@ module PulpDebClient
167
179
  # Show invalid properties with the reasons. Usually used together with valid?
168
180
  # @return Array for valid properties with the reasons
169
181
  def list_invalid_properties
182
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
170
183
  invalid_properties = Array.new
171
184
  if @codename.nil?
172
185
  invalid_properties.push('invalid value for "codename", codename cannot be nil.')
@@ -186,6 +199,7 @@ module PulpDebClient
186
199
  # Check to see if the all the properties in the model are valid
187
200
  # @return true if the model is valid
188
201
  def valid?
202
+ warn '[DEPRECATED] the `valid?` method is obsolete'
189
203
  return false if @codename.nil?
190
204
  return false if @suite.nil?
191
205
  return false if @distribution.nil?
@@ -228,37 +242,33 @@ module PulpDebClient
228
242
  # @param [Hash] attributes Model attributes in the form of hash
229
243
  # @return [Object] Returns the model itself
230
244
  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
245
  return nil unless attributes.is_a?(Hash)
239
- self.class.openapi_types.each_pair do |key, type|
240
- if type =~ /\AArray<(.*)>/i
246
+ attributes = attributes.transform_keys(&:to_sym)
247
+ transformed_hash = {}
248
+ openapi_types.each_pair do |key, type|
249
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
250
+ transformed_hash["#{key}"] = nil
251
+ elsif type =~ /\AArray<(.*)>/i
241
252
  # check to ensure the input is an array given that the attribute
242
253
  # 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) })
254
+ if attributes[attribute_map[key]].is_a?(Array)
255
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
245
256
  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
257
+ elsif !attributes[attribute_map[key]].nil?
258
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
259
+ end
249
260
  end
250
-
251
- self
261
+ new(transformed_hash)
252
262
  end
253
263
 
254
264
  # Deserializes the data based on type
255
265
  # @param string type Data type
256
266
  # @param string value Value to be deserialized
257
267
  # @return [Object] Deserialized data
258
- def _deserialize(type, value)
268
+ def self._deserialize(type, value)
259
269
  case type.to_sym
260
- when :DateTime
261
- DateTime.parse(value)
270
+ when :Time
271
+ Time.parse(value)
262
272
  when :Date
263
273
  Date.parse(value)
264
274
  when :String
@@ -288,7 +298,9 @@ module PulpDebClient
288
298
  end
289
299
  end
290
300
  else # model
291
- PulpDebClient.const_get(type).build_from_hash(value)
301
+ # models (e.g. Pet) or oneOf
302
+ klass = PulpDebClient.const_get(type)
303
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
292
304
  end
293
305
  end
294
306
 
@@ -314,7 +326,7 @@ module PulpDebClient
314
326
  is_nullable = self.class.openapi_nullable.include?(attr)
315
327
  next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
316
328
  end
317
-
329
+
318
330
  hash[param] = _to_hash(value)
319
331
  end
320
332
  hash
@@ -337,5 +349,7 @@ module PulpDebClient
337
349
  value
338
350
  end
339
351
  end
352
+
340
353
  end
354
+
341
355
  end