pulp_deb_client 3.5.0 → 3.5.2

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 +37 -9
  3. data/docs/AptRepositorySyncURL.md +12 -11
  4. data/docs/AsyncOperationResponse.md +8 -7
  5. data/docs/ContentGenericContentsApi.md +264 -64
  6. data/docs/ContentInstallerFileIndicesApi.md +259 -61
  7. data/docs/ContentInstallerPackagesApi.md +280 -80
  8. data/docs/ContentPackageIndicesApi.md +259 -61
  9. data/docs/ContentPackageReleaseComponentsApi.md +259 -61
  10. data/docs/ContentPackagesApi.md +294 -94
  11. data/docs/ContentReleaseArchitecturesApi.md +257 -59
  12. data/docs/ContentReleaseComponentsApi.md +258 -60
  13. data/docs/ContentReleaseFilesApi.md +259 -61
  14. data/docs/ContentReleasesApi.md +262 -64
  15. data/docs/ContentSourceIndicesApi.md +258 -60
  16. data/docs/ContentSourcePackagesApi.md +285 -87
  17. data/docs/ContentSourceReleaseComponentsApi.md +259 -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 +32 -29
  31. data/docs/DebInstallerFileIndex.md +18 -15
  32. data/docs/DebInstallerFileIndexResponse.md +24 -21
  33. data/docs/DebInstallerPackageResponse.md +90 -87
  34. data/docs/DebPackageIndex.md +18 -15
  35. data/docs/DebPackageIndexResponse.md +24 -21
  36. data/docs/DebPackageReleaseComponent.md +14 -11
  37. data/docs/DebPackageReleaseComponentResponse.md +20 -17
  38. data/docs/DebPackageResponse.md +94 -91
  39. data/docs/DebRelease.md +28 -25
  40. data/docs/DebReleaseArchitecture.md +14 -11
  41. data/docs/DebReleaseArchitectureResponse.md +20 -17
  42. data/docs/DebReleaseComponent.md +14 -11
  43. data/docs/DebReleaseComponentResponse.md +22 -19
  44. data/docs/DebReleaseFile.md +20 -17
  45. data/docs/DebReleaseFileResponse.md +26 -23
  46. data/docs/DebReleaseResponse.md +34 -31
  47. data/docs/DebSourceIndex.md +18 -15
  48. data/docs/DebSourceIndexResponse.md +24 -21
  49. data/docs/DebSourcePackage.md +14 -11
  50. data/docs/DebSourcePackageReleaseComponent.md +14 -11
  51. data/docs/DebSourcePackageReleaseComponentResponse.md +20 -17
  52. data/docs/DebSourcePackageResponse.md +76 -73
  53. data/docs/DebVerbatimPublication.md +10 -9
  54. data/docs/DebVerbatimPublicationResponse.md +18 -17
  55. data/docs/DistributionsAptApi.md +387 -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 +269 -130
  84. data/docs/PublicationsVerbatimApi.md +269 -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 +177 -17
  96. data/lib/pulp_deb_client/api/content_installer_file_indices_api.rb +174 -17
  97. data/lib/pulp_deb_client/api/content_installer_packages_api.rb +177 -25
  98. data/lib/pulp_deb_client/api/content_package_indices_api.rb +174 -17
  99. data/lib/pulp_deb_client/api/content_package_release_components_api.rb +174 -17
  100. data/lib/pulp_deb_client/api/content_packages_api.rb +177 -25
  101. data/lib/pulp_deb_client/api/content_release_architectures_api.rb +174 -17
  102. data/lib/pulp_deb_client/api/content_release_components_api.rb +174 -17
  103. data/lib/pulp_deb_client/api/content_release_files_api.rb +174 -17
  104. data/lib/pulp_deb_client/api/content_releases_api.rb +174 -17
  105. data/lib/pulp_deb_client/api/content_source_indices_api.rb +174 -17
  106. data/lib/pulp_deb_client/api/content_source_packages_api.rb +174 -17
  107. data/lib/pulp_deb_client/api/content_source_release_components_api.rb +174 -17
  108. data/lib/pulp_deb_client/api/deb_copy_api.rb +10 -6
  109. data/lib/pulp_deb_client/api/distributions_apt_api.rb +95 -59
  110. data/lib/pulp_deb_client/api/publications_apt_api.rb +73 -50
  111. data/lib/pulp_deb_client/api/publications_verbatim_api.rb +73 -50
  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 +47 -25
  132. data/lib/pulp_deb_client/models/deb_installer_file_index.rb +54 -24
  133. data/lib/pulp_deb_client/models/deb_installer_file_index_response.rb +51 -25
  134. data/lib/pulp_deb_client/models/deb_installer_package_response.rb +45 -25
  135. data/lib/pulp_deb_client/models/deb_package_index.rb +60 -26
  136. data/lib/pulp_deb_client/models/deb_package_index_response.rb +47 -25
  137. data/lib/pulp_deb_client/models/deb_package_release_component.rb +47 -23
  138. data/lib/pulp_deb_client/models/deb_package_release_component_response.rb +49 -25
  139. data/lib/pulp_deb_client/models/deb_package_response.rb +45 -25
  140. data/lib/pulp_deb_client/models/deb_release.rb +49 -23
  141. data/lib/pulp_deb_client/models/deb_release_architecture.rb +47 -23
  142. data/lib/pulp_deb_client/models/deb_release_architecture_response.rb +49 -25
  143. data/lib/pulp_deb_client/models/deb_release_component.rb +47 -23
  144. data/lib/pulp_deb_client/models/deb_release_component_response.rb +49 -25
  145. data/lib/pulp_deb_client/models/deb_release_file.rb +62 -26
  146. data/lib/pulp_deb_client/models/deb_release_file_response.rb +49 -25
  147. data/lib/pulp_deb_client/models/deb_release_response.rb +51 -25
  148. data/lib/pulp_deb_client/models/deb_source_index.rb +54 -24
  149. data/lib/pulp_deb_client/models/deb_source_index_response.rb +51 -25
  150. data/lib/pulp_deb_client/models/deb_source_package.rb +50 -24
  151. data/lib/pulp_deb_client/models/deb_source_package_release_component.rb +47 -23
  152. data/lib/pulp_deb_client/models/deb_source_package_release_component_response.rb +49 -25
  153. data/lib/pulp_deb_client/models/deb_source_package_response.rb +47 -25
  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 +33 -23
  189. data/lib/pulp_deb_client/models/unset_label_response.rb +33 -23
  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 +7 -5
  193. data/spec/api/content_generic_contents_api_spec.rb +33 -5
  194. data/spec/api/content_installer_file_indices_api_spec.rb +32 -5
  195. data/spec/api/content_installer_packages_api_spec.rb +33 -5
  196. data/spec/api/content_package_indices_api_spec.rb +32 -5
  197. data/spec/api/content_package_release_components_api_spec.rb +32 -5
  198. data/spec/api/content_packages_api_spec.rb +33 -5
  199. data/spec/api/content_release_architectures_api_spec.rb +32 -5
  200. data/spec/api/content_release_components_api_spec.rb +32 -5
  201. data/spec/api/content_release_files_api_spec.rb +32 -5
  202. data/spec/api/content_releases_api_spec.rb +32 -5
  203. data/spec/api/content_source_indices_api_spec.rb +32 -5
  204. data/spec/api/content_source_packages_api_spec.rb +32 -5
  205. data/spec/api/content_source_release_components_api_spec.rb +32 -5
  206. data/spec/api/deb_copy_api_spec.rb +2 -2
  207. data/spec/api/distributions_apt_api_spec.rb +15 -14
  208. data/spec/api/publications_apt_api_spec.rb +18 -16
  209. data/spec/api/publications_verbatim_api_spec.rb +18 -16
  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 +24 -23
  227. data/spec/models/deb_installer_file_index_response_spec.rb +20 -19
  228. data/spec/models/deb_installer_file_index_spec.rb +17 -16
  229. data/spec/models/deb_installer_package_response_spec.rb +53 -52
  230. data/spec/models/deb_package_index_response_spec.rb +20 -19
  231. data/spec/models/deb_package_index_spec.rb +17 -16
  232. data/spec/models/deb_package_release_component_response_spec.rb +18 -17
  233. data/spec/models/deb_package_release_component_spec.rb +15 -14
  234. data/spec/models/deb_package_response_spec.rb +55 -54
  235. data/spec/models/deb_release_architecture_response_spec.rb +18 -17
  236. data/spec/models/deb_release_architecture_spec.rb +15 -14
  237. data/spec/models/deb_release_component_response_spec.rb +19 -18
  238. data/spec/models/deb_release_component_spec.rb +15 -14
  239. data/spec/models/deb_release_file_response_spec.rb +21 -20
  240. data/spec/models/deb_release_file_spec.rb +18 -17
  241. data/spec/models/deb_release_response_spec.rb +25 -24
  242. data/spec/models/deb_release_spec.rb +22 -21
  243. data/spec/models/deb_source_index_response_spec.rb +20 -19
  244. data/spec/models/deb_source_index_spec.rb +17 -16
  245. data/spec/models/deb_source_package_release_component_response_spec.rb +18 -17
  246. data/spec/models/deb_source_package_release_component_spec.rb +15 -14
  247. data/spec/models/deb_source_package_response_spec.rb +46 -45
  248. data/spec/models/deb_source_package_spec.rb +15 -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 +92 -100
  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 ReleaseFile.
@@ -26,6 +27,9 @@ module PulpDebClient
26
27
  # Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
27
28
  attr_accessor :pulp_last_updated
28
29
 
30
+ # A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
31
+ attr_accessor :pulp_labels
32
+
29
33
  # A dict mapping relative paths inside the Content to the correspondingArtifact URLs. E.g.: {'relative/path': '/artifacts/1/'
30
34
  attr_accessor :artifacts
31
35
 
@@ -48,6 +52,7 @@ module PulpDebClient
48
52
  :'prn' => :'prn',
49
53
  :'pulp_created' => :'pulp_created',
50
54
  :'pulp_last_updated' => :'pulp_last_updated',
55
+ :'pulp_labels' => :'pulp_labels',
51
56
  :'artifacts' => :'artifacts',
52
57
  :'codename' => :'codename',
53
58
  :'suite' => :'suite',
@@ -56,13 +61,19 @@ module PulpDebClient
56
61
  }
57
62
  end
58
63
 
64
+ # Returns all the JSON keys this model knows about
65
+ def self.acceptable_attributes
66
+ attribute_map.values
67
+ end
68
+
59
69
  # Attribute type mapping.
60
70
  def self.openapi_types
61
71
  {
62
72
  :'pulp_href' => :'String',
63
73
  :'prn' => :'String',
64
- :'pulp_created' => :'DateTime',
65
- :'pulp_last_updated' => :'DateTime',
74
+ :'pulp_created' => :'Time',
75
+ :'pulp_last_updated' => :'Time',
76
+ :'pulp_labels' => :'Hash<String, String>',
66
77
  :'artifacts' => :'Object',
67
78
  :'codename' => :'String',
68
79
  :'suite' => :'String',
@@ -108,8 +119,16 @@ module PulpDebClient
108
119
  self.pulp_last_updated = attributes[:'pulp_last_updated']
109
120
  end
110
121
 
122
+ if attributes.key?(:'pulp_labels')
123
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
124
+ self.pulp_labels = value
125
+ end
126
+ end
127
+
111
128
  if attributes.key?(:'artifacts')
112
129
  self.artifacts = attributes[:'artifacts']
130
+ else
131
+ self.artifacts = nil
113
132
  end
114
133
 
115
134
  if attributes.key?(:'codename')
@@ -122,6 +141,8 @@ module PulpDebClient
122
141
 
123
142
  if attributes.key?(:'distribution')
124
143
  self.distribution = attributes[:'distribution']
144
+ else
145
+ self.distribution = nil
125
146
  end
126
147
 
127
148
  if attributes.key?(:'relative_path')
@@ -132,6 +153,7 @@ module PulpDebClient
132
153
  # Show invalid properties with the reasons. Usually used together with valid?
133
154
  # @return Array for valid properties with the reasons
134
155
  def list_invalid_properties
156
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
135
157
  invalid_properties = Array.new
136
158
  if @artifacts.nil?
137
159
  invalid_properties.push('invalid value for "artifacts", artifacts cannot be nil.')
@@ -147,6 +169,7 @@ module PulpDebClient
147
169
  # Check to see if the all the properties in the model are valid
148
170
  # @return true if the model is valid
149
171
  def valid?
172
+ warn '[DEPRECATED] the `valid?` method is obsolete'
150
173
  return false if @artifacts.nil?
151
174
  return false if @distribution.nil?
152
175
  true
@@ -161,6 +184,7 @@ module PulpDebClient
161
184
  prn == o.prn &&
162
185
  pulp_created == o.pulp_created &&
163
186
  pulp_last_updated == o.pulp_last_updated &&
187
+ pulp_labels == o.pulp_labels &&
164
188
  artifacts == o.artifacts &&
165
189
  codename == o.codename &&
166
190
  suite == o.suite &&
@@ -177,44 +201,40 @@ module PulpDebClient
177
201
  # Calculates hash code according to all attributes.
178
202
  # @return [Integer] Hash code
179
203
  def hash
180
- [pulp_href, prn, pulp_created, pulp_last_updated, artifacts, codename, suite, distribution, relative_path].hash
204
+ [pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, artifacts, codename, suite, distribution, relative_path].hash
181
205
  end
182
206
 
183
207
  # Builds the object from hash
184
208
  # @param [Hash] attributes Model attributes in the form of hash
185
209
  # @return [Object] Returns the model itself
186
210
  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
211
  return nil unless attributes.is_a?(Hash)
195
- self.class.openapi_types.each_pair do |key, type|
196
- if type =~ /\AArray<(.*)>/i
212
+ attributes = attributes.transform_keys(&:to_sym)
213
+ transformed_hash = {}
214
+ openapi_types.each_pair do |key, type|
215
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
216
+ transformed_hash["#{key}"] = nil
217
+ elsif type =~ /\AArray<(.*)>/i
197
218
  # check to ensure the input is an array given that the attribute
198
219
  # 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) })
220
+ if attributes[attribute_map[key]].is_a?(Array)
221
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
201
222
  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
223
+ elsif !attributes[attribute_map[key]].nil?
224
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
225
+ end
205
226
  end
206
-
207
- self
227
+ new(transformed_hash)
208
228
  end
209
229
 
210
230
  # Deserializes the data based on type
211
231
  # @param string type Data type
212
232
  # @param string value Value to be deserialized
213
233
  # @return [Object] Deserialized data
214
- def _deserialize(type, value)
234
+ def self._deserialize(type, value)
215
235
  case type.to_sym
216
- when :DateTime
217
- DateTime.parse(value)
236
+ when :Time
237
+ Time.parse(value)
218
238
  when :Date
219
239
  Date.parse(value)
220
240
  when :String
@@ -244,7 +264,9 @@ module PulpDebClient
244
264
  end
245
265
  end
246
266
  else # model
247
- PulpDebClient.const_get(type).build_from_hash(value)
267
+ # models (e.g. Pet) or oneOf
268
+ klass = PulpDebClient.const_get(type)
269
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
248
270
  end
249
271
  end
250
272
 
@@ -270,7 +292,7 @@ module PulpDebClient
270
292
  is_nullable = self.class.openapi_nullable.include?(attr)
271
293
  next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
272
294
  end
273
-
295
+
274
296
  hash[param] = _to_hash(value)
275
297
  end
276
298
  hash
@@ -293,5 +315,7 @@ module PulpDebClient
293
315
  value
294
316
  end
295
317
  end
318
+
296
319
  end
320
+
297
321
  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.
@@ -26,6 +27,9 @@ module PulpDebClient
26
27
  # Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
27
28
  attr_accessor :pulp_last_updated
28
29
 
30
+ # A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
31
+ attr_accessor :pulp_labels
32
+
29
33
  attr_accessor :codename
30
34
 
31
35
  attr_accessor :suite
@@ -51,6 +55,7 @@ module PulpDebClient
51
55
  :'prn' => :'prn',
52
56
  :'pulp_created' => :'pulp_created',
53
57
  :'pulp_last_updated' => :'pulp_last_updated',
58
+ :'pulp_labels' => :'pulp_labels',
54
59
  :'codename' => :'codename',
55
60
  :'suite' => :'suite',
56
61
  :'distribution' => :'distribution',
@@ -63,13 +68,19 @@ module PulpDebClient
63
68
  }
64
69
  end
65
70
 
71
+ # Returns all the JSON keys this model knows about
72
+ def self.acceptable_attributes
73
+ attribute_map.values
74
+ end
75
+
66
76
  # Attribute type mapping.
67
77
  def self.openapi_types
68
78
  {
69
79
  :'pulp_href' => :'String',
70
80
  :'prn' => :'String',
71
- :'pulp_created' => :'DateTime',
72
- :'pulp_last_updated' => :'DateTime',
81
+ :'pulp_created' => :'Time',
82
+ :'pulp_last_updated' => :'Time',
83
+ :'pulp_labels' => :'Hash<String, String>',
73
84
  :'codename' => :'String',
74
85
  :'suite' => :'String',
75
86
  :'distribution' => :'String',
@@ -123,16 +134,28 @@ module PulpDebClient
123
134
  self.pulp_last_updated = attributes[:'pulp_last_updated']
124
135
  end
125
136
 
137
+ if attributes.key?(:'pulp_labels')
138
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
139
+ self.pulp_labels = value
140
+ end
141
+ end
142
+
126
143
  if attributes.key?(:'codename')
127
144
  self.codename = attributes[:'codename']
145
+ else
146
+ self.codename = nil
128
147
  end
129
148
 
130
149
  if attributes.key?(:'suite')
131
150
  self.suite = attributes[:'suite']
151
+ else
152
+ self.suite = nil
132
153
  end
133
154
 
134
155
  if attributes.key?(:'distribution')
135
156
  self.distribution = attributes[:'distribution']
157
+ else
158
+ self.distribution = nil
136
159
  end
137
160
 
138
161
  if attributes.key?(:'version')
@@ -167,6 +190,7 @@ module PulpDebClient
167
190
  # Show invalid properties with the reasons. Usually used together with valid?
168
191
  # @return Array for valid properties with the reasons
169
192
  def list_invalid_properties
193
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
170
194
  invalid_properties = Array.new
171
195
  if @codename.nil?
172
196
  invalid_properties.push('invalid value for "codename", codename cannot be nil.')
@@ -186,6 +210,7 @@ module PulpDebClient
186
210
  # Check to see if the all the properties in the model are valid
187
211
  # @return true if the model is valid
188
212
  def valid?
213
+ warn '[DEPRECATED] the `valid?` method is obsolete'
189
214
  return false if @codename.nil?
190
215
  return false if @suite.nil?
191
216
  return false if @distribution.nil?
@@ -201,6 +226,7 @@ module PulpDebClient
201
226
  prn == o.prn &&
202
227
  pulp_created == o.pulp_created &&
203
228
  pulp_last_updated == o.pulp_last_updated &&
229
+ pulp_labels == o.pulp_labels &&
204
230
  codename == o.codename &&
205
231
  suite == o.suite &&
206
232
  distribution == o.distribution &&
@@ -221,44 +247,40 @@ module PulpDebClient
221
247
  # Calculates hash code according to all attributes.
222
248
  # @return [Integer] Hash code
223
249
  def hash
224
- [pulp_href, prn, pulp_created, pulp_last_updated, codename, suite, distribution, version, origin, label, description, architectures, components].hash
250
+ [pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, codename, suite, distribution, version, origin, label, description, architectures, components].hash
225
251
  end
226
252
 
227
253
  # Builds the object from hash
228
254
  # @param [Hash] attributes Model attributes in the form of hash
229
255
  # @return [Object] Returns the model itself
230
256
  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
257
  return nil unless attributes.is_a?(Hash)
239
- self.class.openapi_types.each_pair do |key, type|
240
- if type =~ /\AArray<(.*)>/i
258
+ attributes = attributes.transform_keys(&:to_sym)
259
+ transformed_hash = {}
260
+ openapi_types.each_pair do |key, type|
261
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
262
+ transformed_hash["#{key}"] = nil
263
+ elsif type =~ /\AArray<(.*)>/i
241
264
  # check to ensure the input is an array given that the attribute
242
265
  # 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) })
266
+ if attributes[attribute_map[key]].is_a?(Array)
267
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
245
268
  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
269
+ elsif !attributes[attribute_map[key]].nil?
270
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
271
+ end
249
272
  end
250
-
251
- self
273
+ new(transformed_hash)
252
274
  end
253
275
 
254
276
  # Deserializes the data based on type
255
277
  # @param string type Data type
256
278
  # @param string value Value to be deserialized
257
279
  # @return [Object] Deserialized data
258
- def _deserialize(type, value)
280
+ def self._deserialize(type, value)
259
281
  case type.to_sym
260
- when :DateTime
261
- DateTime.parse(value)
282
+ when :Time
283
+ Time.parse(value)
262
284
  when :Date
263
285
  Date.parse(value)
264
286
  when :String
@@ -288,7 +310,9 @@ module PulpDebClient
288
310
  end
289
311
  end
290
312
  else # model
291
- PulpDebClient.const_get(type).build_from_hash(value)
313
+ # models (e.g. Pet) or oneOf
314
+ klass = PulpDebClient.const_get(type)
315
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
292
316
  end
293
317
  end
294
318
 
@@ -314,7 +338,7 @@ module PulpDebClient
314
338
  is_nullable = self.class.openapi_nullable.include?(attr)
315
339
  next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
316
340
  end
317
-
341
+
318
342
  hash[param] = _to_hash(value)
319
343
  end
320
344
  hash
@@ -337,5 +361,7 @@ module PulpDebClient
337
361
  value
338
362
  end
339
363
  end
364
+
340
365
  end
366
+
341
367
  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 SourceIndex.
@@ -18,6 +19,9 @@ module PulpDebClient
18
19
  # A URI of a repository the new content unit should be associated with.
19
20
  attr_accessor :repository
20
21
 
22
+ # A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
23
+ attr_accessor :pulp_labels
24
+
21
25
  # A dict mapping relative paths inside the Content to the correspondingArtifact URLs. E.g.: {'relative/path': '/artifacts/1/'
22
26
  attr_accessor :artifacts
23
27
 
@@ -34,6 +38,7 @@ module PulpDebClient
34
38
  def self.attribute_map
35
39
  {
36
40
  :'repository' => :'repository',
41
+ :'pulp_labels' => :'pulp_labels',
37
42
  :'artifacts' => :'artifacts',
38
43
  :'release' => :'release',
39
44
  :'component' => :'component',
@@ -41,10 +46,16 @@ module PulpDebClient
41
46
  }
42
47
  end
43
48
 
49
+ # Returns all the JSON keys this model knows about
50
+ def self.acceptable_attributes
51
+ attribute_map.values
52
+ end
53
+
44
54
  # Attribute type mapping.
45
55
  def self.openapi_types
46
56
  {
47
57
  :'repository' => :'String',
58
+ :'pulp_labels' => :'Hash<String, String>',
48
59
  :'artifacts' => :'Object',
49
60
  :'release' => :'String',
50
61
  :'component' => :'String',
@@ -77,16 +88,28 @@ module PulpDebClient
77
88
  self.repository = attributes[:'repository']
78
89
  end
79
90
 
91
+ if attributes.key?(:'pulp_labels')
92
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
93
+ self.pulp_labels = value
94
+ end
95
+ end
96
+
80
97
  if attributes.key?(:'artifacts')
81
98
  self.artifacts = attributes[:'artifacts']
99
+ else
100
+ self.artifacts = nil
82
101
  end
83
102
 
84
103
  if attributes.key?(:'release')
85
104
  self.release = attributes[:'release']
105
+ else
106
+ self.release = nil
86
107
  end
87
108
 
88
109
  if attributes.key?(:'component')
89
110
  self.component = attributes[:'component']
111
+ else
112
+ self.component = nil
90
113
  end
91
114
 
92
115
  if attributes.key?(:'relative_path')
@@ -97,6 +120,7 @@ module PulpDebClient
97
120
  # Show invalid properties with the reasons. Usually used together with valid?
98
121
  # @return Array for valid properties with the reasons
99
122
  def list_invalid_properties
123
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
100
124
  invalid_properties = Array.new
101
125
  if @artifacts.nil?
102
126
  invalid_properties.push('invalid value for "artifacts", artifacts cannot be nil.')
@@ -124,6 +148,7 @@ module PulpDebClient
124
148
  # Check to see if the all the properties in the model are valid
125
149
  # @return true if the model is valid
126
150
  def valid?
151
+ warn '[DEPRECATED] the `valid?` method is obsolete'
127
152
  return false if @artifacts.nil?
128
153
  return false if @release.nil?
129
154
  return false if @component.nil?
@@ -149,7 +174,11 @@ module PulpDebClient
149
174
  # Custom attribute writer method with validation
150
175
  # @param [Object] relative_path Value to be assigned
151
176
  def relative_path=(relative_path)
152
- if !relative_path.nil? && relative_path.to_s.length < 1
177
+ if relative_path.nil?
178
+ fail ArgumentError, 'relative_path cannot be nil'
179
+ end
180
+
181
+ if relative_path.to_s.length < 1
153
182
  fail ArgumentError, 'invalid value for "relative_path", the character length must be great than or equal to 1.'
154
183
  end
155
184
 
@@ -162,6 +191,7 @@ module PulpDebClient
162
191
  return true if self.equal?(o)
163
192
  self.class == o.class &&
164
193
  repository == o.repository &&
194
+ pulp_labels == o.pulp_labels &&
165
195
  artifacts == o.artifacts &&
166
196
  release == o.release &&
167
197
  component == o.component &&
@@ -177,44 +207,40 @@ module PulpDebClient
177
207
  # Calculates hash code according to all attributes.
178
208
  # @return [Integer] Hash code
179
209
  def hash
180
- [repository, artifacts, release, component, relative_path].hash
210
+ [repository, pulp_labels, artifacts, release, component, relative_path].hash
181
211
  end
182
212
 
183
213
  # Builds the object from hash
184
214
  # @param [Hash] attributes Model attributes in the form of hash
185
215
  # @return [Object] Returns the model itself
186
216
  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
217
  return nil unless attributes.is_a?(Hash)
195
- self.class.openapi_types.each_pair do |key, type|
196
- if type =~ /\AArray<(.*)>/i
218
+ attributes = attributes.transform_keys(&:to_sym)
219
+ transformed_hash = {}
220
+ openapi_types.each_pair do |key, type|
221
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
222
+ transformed_hash["#{key}"] = nil
223
+ elsif type =~ /\AArray<(.*)>/i
197
224
  # check to ensure the input is an array given that the attribute
198
225
  # 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) })
226
+ if attributes[attribute_map[key]].is_a?(Array)
227
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
201
228
  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
229
+ elsif !attributes[attribute_map[key]].nil?
230
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
231
+ end
205
232
  end
206
-
207
- self
233
+ new(transformed_hash)
208
234
  end
209
235
 
210
236
  # Deserializes the data based on type
211
237
  # @param string type Data type
212
238
  # @param string value Value to be deserialized
213
239
  # @return [Object] Deserialized data
214
- def _deserialize(type, value)
240
+ def self._deserialize(type, value)
215
241
  case type.to_sym
216
- when :DateTime
217
- DateTime.parse(value)
242
+ when :Time
243
+ Time.parse(value)
218
244
  when :Date
219
245
  Date.parse(value)
220
246
  when :String
@@ -244,7 +270,9 @@ module PulpDebClient
244
270
  end
245
271
  end
246
272
  else # model
247
- PulpDebClient.const_get(type).build_from_hash(value)
273
+ # models (e.g. Pet) or oneOf
274
+ klass = PulpDebClient.const_get(type)
275
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
248
276
  end
249
277
  end
250
278
 
@@ -270,7 +298,7 @@ module PulpDebClient
270
298
  is_nullable = self.class.openapi_nullable.include?(attr)
271
299
  next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
272
300
  end
273
-
301
+
274
302
  hash[param] = _to_hash(value)
275
303
  end
276
304
  hash
@@ -293,5 +321,7 @@ module PulpDebClient
293
321
  value
294
322
  end
295
323
  end
324
+
296
325
  end
326
+
297
327
  end