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