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 PackageIndex.
@@ -41,6 +42,11 @@ module PulpDebClient
41
42
  }
42
43
  end
43
44
 
45
+ # Returns all the JSON keys this model knows about
46
+ def self.acceptable_attributes
47
+ attribute_map.values
48
+ end
49
+
44
50
  # Attribute type mapping.
45
51
  def self.openapi_types
46
52
  {
@@ -79,6 +85,8 @@ module PulpDebClient
79
85
 
80
86
  if attributes.key?(:'artifacts')
81
87
  self.artifacts = attributes[:'artifacts']
88
+ else
89
+ self.artifacts = nil
82
90
  end
83
91
 
84
92
  if attributes.key?(:'component')
@@ -97,6 +105,7 @@ module PulpDebClient
97
105
  # Show invalid properties with the reasons. Usually used together with valid?
98
106
  # @return Array for valid properties with the reasons
99
107
  def list_invalid_properties
108
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
100
109
  invalid_properties = Array.new
101
110
  if @artifacts.nil?
102
111
  invalid_properties.push('invalid value for "artifacts", artifacts cannot be nil.')
@@ -120,6 +129,7 @@ module PulpDebClient
120
129
  # Check to see if the all the properties in the model are valid
121
130
  # @return true if the model is valid
122
131
  def valid?
132
+ warn '[DEPRECATED] the `valid?` method is obsolete'
123
133
  return false if @artifacts.nil?
124
134
  return false if !@component.nil? && @component.to_s.length < 1
125
135
  return false if !@architecture.nil? && @architecture.to_s.length < 1
@@ -130,7 +140,11 @@ module PulpDebClient
130
140
  # Custom attribute writer method with validation
131
141
  # @param [Object] component Value to be assigned
132
142
  def component=(component)
133
- if !component.nil? && component.to_s.length < 1
143
+ if component.nil?
144
+ fail ArgumentError, 'component cannot be nil'
145
+ end
146
+
147
+ if component.to_s.length < 1
134
148
  fail ArgumentError, 'invalid value for "component", the character length must be great than or equal to 1.'
135
149
  end
136
150
 
@@ -140,7 +154,11 @@ module PulpDebClient
140
154
  # Custom attribute writer method with validation
141
155
  # @param [Object] architecture Value to be assigned
142
156
  def architecture=(architecture)
143
- if !architecture.nil? && architecture.to_s.length < 1
157
+ if architecture.nil?
158
+ fail ArgumentError, 'architecture cannot be nil'
159
+ end
160
+
161
+ if architecture.to_s.length < 1
144
162
  fail ArgumentError, 'invalid value for "architecture", the character length must be great than or equal to 1.'
145
163
  end
146
164
 
@@ -150,7 +168,11 @@ module PulpDebClient
150
168
  # Custom attribute writer method with validation
151
169
  # @param [Object] relative_path Value to be assigned
152
170
  def relative_path=(relative_path)
153
- if !relative_path.nil? && relative_path.to_s.length < 1
171
+ if relative_path.nil?
172
+ fail ArgumentError, 'relative_path cannot be nil'
173
+ end
174
+
175
+ if relative_path.to_s.length < 1
154
176
  fail ArgumentError, 'invalid value for "relative_path", the character length must be great than or equal to 1.'
155
177
  end
156
178
 
@@ -185,37 +207,33 @@ module PulpDebClient
185
207
  # @param [Hash] attributes Model attributes in the form of hash
186
208
  # @return [Object] Returns the model itself
187
209
  def self.build_from_hash(attributes)
188
- new.build_from_hash(attributes)
189
- end
190
-
191
- # Builds the object from hash
192
- # @param [Hash] attributes Model attributes in the form of hash
193
- # @return [Object] Returns the model itself
194
- def build_from_hash(attributes)
195
210
  return nil unless attributes.is_a?(Hash)
196
- self.class.openapi_types.each_pair do |key, type|
197
- if type =~ /\AArray<(.*)>/i
211
+ attributes = attributes.transform_keys(&:to_sym)
212
+ transformed_hash = {}
213
+ openapi_types.each_pair do |key, type|
214
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
215
+ transformed_hash["#{key}"] = nil
216
+ elsif type =~ /\AArray<(.*)>/i
198
217
  # check to ensure the input is an array given that the attribute
199
218
  # is documented as an array but the input is not
200
- if attributes[self.class.attribute_map[key]].is_a?(Array)
201
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
219
+ if attributes[attribute_map[key]].is_a?(Array)
220
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
202
221
  end
203
- elsif !attributes[self.class.attribute_map[key]].nil?
204
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
205
- end # or else data not found in attributes(hash), not an issue as the data can be optional
222
+ elsif !attributes[attribute_map[key]].nil?
223
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
224
+ end
206
225
  end
207
-
208
- self
226
+ new(transformed_hash)
209
227
  end
210
228
 
211
229
  # Deserializes the data based on type
212
230
  # @param string type Data type
213
231
  # @param string value Value to be deserialized
214
232
  # @return [Object] Deserialized data
215
- def _deserialize(type, value)
233
+ def self._deserialize(type, value)
216
234
  case type.to_sym
217
- when :DateTime
218
- DateTime.parse(value)
235
+ when :Time
236
+ Time.parse(value)
219
237
  when :Date
220
238
  Date.parse(value)
221
239
  when :String
@@ -245,7 +263,9 @@ module PulpDebClient
245
263
  end
246
264
  end
247
265
  else # model
248
- PulpDebClient.const_get(type).build_from_hash(value)
266
+ # models (e.g. Pet) or oneOf
267
+ klass = PulpDebClient.const_get(type)
268
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
249
269
  end
250
270
  end
251
271
 
@@ -271,7 +291,7 @@ module PulpDebClient
271
291
  is_nullable = self.class.openapi_nullable.include?(attr)
272
292
  next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
273
293
  end
274
-
294
+
275
295
  hash[param] = _to_hash(value)
276
296
  end
277
297
  hash
@@ -294,5 +314,7 @@ module PulpDebClient
294
314
  value
295
315
  end
296
316
  end
317
+
297
318
  end
319
+
298
320
  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 PackageIndex.
@@ -52,13 +53,18 @@ module PulpDebClient
52
53
  }
53
54
  end
54
55
 
56
+ # Returns all the JSON keys this model knows about
57
+ def self.acceptable_attributes
58
+ attribute_map.values
59
+ end
60
+
55
61
  # Attribute type mapping.
56
62
  def self.openapi_types
57
63
  {
58
64
  :'pulp_href' => :'String',
59
65
  :'prn' => :'String',
60
- :'pulp_created' => :'DateTime',
61
- :'pulp_last_updated' => :'DateTime',
66
+ :'pulp_created' => :'Time',
67
+ :'pulp_last_updated' => :'Time',
62
68
  :'artifacts' => :'Object',
63
69
  :'component' => :'String',
64
70
  :'architecture' => :'String',
@@ -105,6 +111,8 @@ module PulpDebClient
105
111
 
106
112
  if attributes.key?(:'artifacts')
107
113
  self.artifacts = attributes[:'artifacts']
114
+ else
115
+ self.artifacts = nil
108
116
  end
109
117
 
110
118
  if attributes.key?(:'component')
@@ -123,6 +131,7 @@ module PulpDebClient
123
131
  # Show invalid properties with the reasons. Usually used together with valid?
124
132
  # @return Array for valid properties with the reasons
125
133
  def list_invalid_properties
134
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
126
135
  invalid_properties = Array.new
127
136
  if @artifacts.nil?
128
137
  invalid_properties.push('invalid value for "artifacts", artifacts cannot be nil.')
@@ -134,6 +143,7 @@ module PulpDebClient
134
143
  # Check to see if the all the properties in the model are valid
135
144
  # @return true if the model is valid
136
145
  def valid?
146
+ warn '[DEPRECATED] the `valid?` method is obsolete'
137
147
  return false if @artifacts.nil?
138
148
  true
139
149
  end
@@ -169,37 +179,33 @@ module PulpDebClient
169
179
  # @param [Hash] attributes Model attributes in the form of hash
170
180
  # @return [Object] Returns the model itself
171
181
  def self.build_from_hash(attributes)
172
- new.build_from_hash(attributes)
173
- end
174
-
175
- # Builds the object from hash
176
- # @param [Hash] attributes Model attributes in the form of hash
177
- # @return [Object] Returns the model itself
178
- def build_from_hash(attributes)
179
182
  return nil unless attributes.is_a?(Hash)
180
- self.class.openapi_types.each_pair do |key, type|
181
- if type =~ /\AArray<(.*)>/i
183
+ attributes = attributes.transform_keys(&:to_sym)
184
+ transformed_hash = {}
185
+ openapi_types.each_pair do |key, type|
186
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
187
+ transformed_hash["#{key}"] = nil
188
+ elsif type =~ /\AArray<(.*)>/i
182
189
  # check to ensure the input is an array given that the attribute
183
190
  # is documented as an array but the input is not
184
- if attributes[self.class.attribute_map[key]].is_a?(Array)
185
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
191
+ if attributes[attribute_map[key]].is_a?(Array)
192
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
186
193
  end
187
- elsif !attributes[self.class.attribute_map[key]].nil?
188
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
189
- end # or else data not found in attributes(hash), not an issue as the data can be optional
194
+ elsif !attributes[attribute_map[key]].nil?
195
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
196
+ end
190
197
  end
191
-
192
- self
198
+ new(transformed_hash)
193
199
  end
194
200
 
195
201
  # Deserializes the data based on type
196
202
  # @param string type Data type
197
203
  # @param string value Value to be deserialized
198
204
  # @return [Object] Deserialized data
199
- def _deserialize(type, value)
205
+ def self._deserialize(type, value)
200
206
  case type.to_sym
201
- when :DateTime
202
- DateTime.parse(value)
207
+ when :Time
208
+ Time.parse(value)
203
209
  when :Date
204
210
  Date.parse(value)
205
211
  when :String
@@ -229,7 +235,9 @@ module PulpDebClient
229
235
  end
230
236
  end
231
237
  else # model
232
- PulpDebClient.const_get(type).build_from_hash(value)
238
+ # models (e.g. Pet) or oneOf
239
+ klass = PulpDebClient.const_get(type)
240
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
233
241
  end
234
242
  end
235
243
 
@@ -255,7 +263,7 @@ module PulpDebClient
255
263
  is_nullable = self.class.openapi_nullable.include?(attr)
256
264
  next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
257
265
  end
258
-
266
+
259
267
  hash[param] = _to_hash(value)
260
268
  end
261
269
  hash
@@ -278,5 +286,7 @@ module PulpDebClient
278
286
  value
279
287
  end
280
288
  end
289
+
281
290
  end
291
+
282
292
  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 PackageReleaseComponent.
@@ -33,6 +34,11 @@ module PulpDebClient
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
  {
@@ -69,16 +75,21 @@ module PulpDebClient
69
75
 
70
76
  if attributes.key?(:'package')
71
77
  self.package = attributes[:'package']
78
+ else
79
+ self.package = nil
72
80
  end
73
81
 
74
82
  if attributes.key?(:'release_component')
75
83
  self.release_component = attributes[:'release_component']
84
+ else
85
+ self.release_component = nil
76
86
  end
77
87
  end
78
88
 
79
89
  # Show invalid properties with the reasons. Usually used together with valid?
80
90
  # @return Array for valid properties with the reasons
81
91
  def list_invalid_properties
92
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
82
93
  invalid_properties = Array.new
83
94
  if @package.nil?
84
95
  invalid_properties.push('invalid value for "package", package cannot be nil.')
@@ -94,6 +105,7 @@ module PulpDebClient
94
105
  # Check to see if the all the properties in the model are valid
95
106
  # @return true if the model is valid
96
107
  def valid?
108
+ warn '[DEPRECATED] the `valid?` method is obsolete'
97
109
  return false if @package.nil?
98
110
  return false if @release_component.nil?
99
111
  true
@@ -125,37 +137,33 @@ module PulpDebClient
125
137
  # @param [Hash] attributes Model attributes in the form of hash
126
138
  # @return [Object] Returns the model itself
127
139
  def self.build_from_hash(attributes)
128
- new.build_from_hash(attributes)
129
- end
130
-
131
- # Builds the object from hash
132
- # @param [Hash] attributes Model attributes in the form of hash
133
- # @return [Object] Returns the model itself
134
- def build_from_hash(attributes)
135
140
  return nil unless attributes.is_a?(Hash)
136
- self.class.openapi_types.each_pair do |key, type|
137
- if type =~ /\AArray<(.*)>/i
141
+ attributes = attributes.transform_keys(&:to_sym)
142
+ transformed_hash = {}
143
+ openapi_types.each_pair do |key, type|
144
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
145
+ transformed_hash["#{key}"] = nil
146
+ elsif type =~ /\AArray<(.*)>/i
138
147
  # check to ensure the input is an array given that the attribute
139
148
  # is documented as an array but the input is not
140
- if attributes[self.class.attribute_map[key]].is_a?(Array)
141
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
149
+ if attributes[attribute_map[key]].is_a?(Array)
150
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
142
151
  end
143
- elsif !attributes[self.class.attribute_map[key]].nil?
144
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
145
- end # or else data not found in attributes(hash), not an issue as the data can be optional
152
+ elsif !attributes[attribute_map[key]].nil?
153
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
154
+ end
146
155
  end
147
-
148
- self
156
+ new(transformed_hash)
149
157
  end
150
158
 
151
159
  # Deserializes the data based on type
152
160
  # @param string type Data type
153
161
  # @param string value Value to be deserialized
154
162
  # @return [Object] Deserialized data
155
- def _deserialize(type, value)
163
+ def self._deserialize(type, value)
156
164
  case type.to_sym
157
- when :DateTime
158
- DateTime.parse(value)
165
+ when :Time
166
+ Time.parse(value)
159
167
  when :Date
160
168
  Date.parse(value)
161
169
  when :String
@@ -185,7 +193,9 @@ module PulpDebClient
185
193
  end
186
194
  end
187
195
  else # model
188
- PulpDebClient.const_get(type).build_from_hash(value)
196
+ # models (e.g. Pet) or oneOf
197
+ klass = PulpDebClient.const_get(type)
198
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
189
199
  end
190
200
  end
191
201
 
@@ -211,7 +221,7 @@ module PulpDebClient
211
221
  is_nullable = self.class.openapi_nullable.include?(attr)
212
222
  next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
213
223
  end
214
-
224
+
215
225
  hash[param] = _to_hash(value)
216
226
  end
217
227
  hash
@@ -234,5 +244,7 @@ module PulpDebClient
234
244
  value
235
245
  end
236
246
  end
247
+
237
248
  end
249
+
238
250
  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 PackageReleaseComponent.
@@ -44,13 +45,18 @@ module PulpDebClient
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
  :'package' => :'String',
55
61
  :'release_component' => :'String'
56
62
  }
@@ -95,16 +101,21 @@ module PulpDebClient
95
101
 
96
102
  if attributes.key?(:'package')
97
103
  self.package = attributes[:'package']
104
+ else
105
+ self.package = nil
98
106
  end
99
107
 
100
108
  if attributes.key?(:'release_component')
101
109
  self.release_component = attributes[:'release_component']
110
+ else
111
+ self.release_component = nil
102
112
  end
103
113
  end
104
114
 
105
115
  # Show invalid properties with the reasons. Usually used together with valid?
106
116
  # @return Array for valid properties with the reasons
107
117
  def list_invalid_properties
118
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
108
119
  invalid_properties = Array.new
109
120
  if @package.nil?
110
121
  invalid_properties.push('invalid value for "package", package cannot be nil.')
@@ -120,6 +131,7 @@ module PulpDebClient
120
131
  # Check to see if the all the properties in the model are valid
121
132
  # @return true if the model is valid
122
133
  def valid?
134
+ warn '[DEPRECATED] the `valid?` method is obsolete'
123
135
  return false if @package.nil?
124
136
  return false if @release_component.nil?
125
137
  true
@@ -154,37 +166,33 @@ module PulpDebClient
154
166
  # @param [Hash] attributes Model attributes in the form of hash
155
167
  # @return [Object] Returns the model itself
156
168
  def self.build_from_hash(attributes)
157
- new.build_from_hash(attributes)
158
- end
159
-
160
- # Builds the object from hash
161
- # @param [Hash] attributes Model attributes in the form of hash
162
- # @return [Object] Returns the model itself
163
- def build_from_hash(attributes)
164
169
  return nil unless attributes.is_a?(Hash)
165
- self.class.openapi_types.each_pair do |key, type|
166
- if type =~ /\AArray<(.*)>/i
170
+ attributes = attributes.transform_keys(&:to_sym)
171
+ transformed_hash = {}
172
+ openapi_types.each_pair do |key, type|
173
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
174
+ transformed_hash["#{key}"] = nil
175
+ elsif type =~ /\AArray<(.*)>/i
167
176
  # check to ensure the input is an array given that the attribute
168
177
  # is documented as an array but the input is not
169
- if attributes[self.class.attribute_map[key]].is_a?(Array)
170
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
178
+ if attributes[attribute_map[key]].is_a?(Array)
179
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
171
180
  end
172
- elsif !attributes[self.class.attribute_map[key]].nil?
173
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
174
- end # or else data not found in attributes(hash), not an issue as the data can be optional
181
+ elsif !attributes[attribute_map[key]].nil?
182
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
183
+ end
175
184
  end
176
-
177
- self
185
+ new(transformed_hash)
178
186
  end
179
187
 
180
188
  # Deserializes the data based on type
181
189
  # @param string type Data type
182
190
  # @param string value Value to be deserialized
183
191
  # @return [Object] Deserialized data
184
- def _deserialize(type, value)
192
+ def self._deserialize(type, value)
185
193
  case type.to_sym
186
- when :DateTime
187
- DateTime.parse(value)
194
+ when :Time
195
+ Time.parse(value)
188
196
  when :Date
189
197
  Date.parse(value)
190
198
  when :String
@@ -214,7 +222,9 @@ module PulpDebClient
214
222
  end
215
223
  end
216
224
  else # model
217
- PulpDebClient.const_get(type).build_from_hash(value)
225
+ # models (e.g. Pet) or oneOf
226
+ klass = PulpDebClient.const_get(type)
227
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
218
228
  end
219
229
  end
220
230
 
@@ -240,7 +250,7 @@ module PulpDebClient
240
250
  is_nullable = self.class.openapi_nullable.include?(attr)
241
251
  next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
242
252
  end
243
-
253
+
244
254
  hash[param] = _to_hash(value)
245
255
  end
246
256
  hash
@@ -263,5 +273,7 @@ module PulpDebClient
263
273
  value
264
274
  end
265
275
  end
276
+
266
277
  end
278
+
267
279
  end