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,7 +6,7 @@
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
 
@@ -24,6 +24,7 @@ module PulpDebClient
24
24
  # @param relative_path [String] Path where the artifact is located relative to distributions base_path
25
25
  # @param [Hash] opts the optional parameters
26
26
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
27
+ # @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
27
28
  # @option opts [String] :artifact Artifact file representing the physical content
28
29
  # @option opts [File] :file An uploaded file that may be turned into the content unit.
29
30
  # @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
@@ -39,6 +40,7 @@ module PulpDebClient
39
40
  # @param relative_path [String] Path where the artifact is located relative to distributions base_path
40
41
  # @param [Hash] opts the optional parameters
41
42
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
43
+ # @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
42
44
  # @option opts [String] :artifact Artifact file representing the physical content
43
45
  # @option opts [File] :file An uploaded file that may be turned into the content unit.
44
46
  # @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
@@ -69,29 +71,34 @@ module PulpDebClient
69
71
  # header parameters
70
72
  header_params = opts[:header_params] || {}
71
73
  # HTTP header 'Accept' (if needed)
72
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
74
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
73
75
  # HTTP header 'Content-Type'
74
- header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data', 'application/x-www-form-urlencoded'])
76
+ content_type = @api_client.select_header_content_type(['multipart/form-data', 'application/x-www-form-urlencoded'])
77
+ if !content_type.nil?
78
+ header_params['Content-Type'] = content_type
79
+ end
75
80
 
76
81
  # form parameters
77
82
  form_params = opts[:form_params] || {}
78
83
  form_params['relative_path'] = relative_path
79
84
  form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
85
+ form_params['pulp_labels'] = opts[:'pulp_labels'] if !opts[:'pulp_labels'].nil?
80
86
  form_params['artifact'] = opts[:'artifact'] if !opts[:'artifact'].nil?
81
87
  form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
82
88
  form_params['upload'] = opts[:'upload'] if !opts[:'upload'].nil?
83
89
  form_params['file_url'] = opts[:'file_url'] if !opts[:'file_url'].nil?
84
90
 
85
91
  # http body (model)
86
- post_body = opts[:body]
92
+ post_body = opts[:debug_body]
87
93
 
88
94
  # return_type
89
- return_type = opts[:return_type] || 'AsyncOperationResponse'
95
+ return_type = opts[:debug_return_type] || 'AsyncOperationResponse'
90
96
 
91
97
  # auth_names
92
- auth_names = opts[:auth_names] || ['basicAuth']
98
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
93
99
 
94
100
  new_options = opts.merge(
101
+ :operation => :"ContentGenericContentsApi.create",
95
102
  :header_params => header_params,
96
103
  :query_params => query_params,
97
104
  :form_params => form_params,
@@ -112,11 +119,12 @@ module PulpDebClient
112
119
  # @param [Hash] opts the optional parameters
113
120
  # @option opts [Integer] :limit Number of results to return per page.
114
121
  # @option opts [Integer] :offset The initial index from which to return the results.
115
- # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;relative_path&#x60; - Relative path * &#x60;-relative_path&#x60; - Relative path (descending) * &#x60;sha256&#x60; - Sha256 * &#x60;-sha256&#x60; - Sha256 (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
122
+ # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;relative_path&#x60; - Relative path * &#x60;-relative_path&#x60; - Relative path (descending) * &#x60;sha256&#x60; - Sha256 * &#x60;-sha256&#x60; - Sha256 (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
116
123
  # @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
117
124
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
118
125
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
119
126
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
127
+ # @option opts [String] :pulp_label_select Filter labels by search string
120
128
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
121
129
  # @option opts [String] :relative_path Filter results where relative_path matches value
122
130
  # @option opts [String] :repository_version Repository Version referenced by HREF/PRN
@@ -136,11 +144,12 @@ module PulpDebClient
136
144
  # @param [Hash] opts the optional parameters
137
145
  # @option opts [Integer] :limit Number of results to return per page.
138
146
  # @option opts [Integer] :offset The initial index from which to return the results.
139
- # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;relative_path&#x60; - Relative path * &#x60;-relative_path&#x60; - Relative path (descending) * &#x60;sha256&#x60; - Sha256 * &#x60;-sha256&#x60; - Sha256 (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
147
+ # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;relative_path&#x60; - Relative path * &#x60;-relative_path&#x60; - Relative path (descending) * &#x60;sha256&#x60; - Sha256 * &#x60;-sha256&#x60; - Sha256 (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
140
148
  # @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
141
149
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
142
150
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
143
151
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
152
+ # @option opts [String] :pulp_label_select Filter labels by search string
144
153
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
145
154
  # @option opts [String] :relative_path Filter results where relative_path matches value
146
155
  # @option opts [String] :repository_version Repository Version referenced by HREF/PRN
@@ -154,7 +163,7 @@ module PulpDebClient
154
163
  if @api_client.config.debugging
155
164
  @api_client.config.logger.debug 'Calling API: ContentGenericContentsApi.list ...'
156
165
  end
157
- allowable_values = ["-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-relative_path", "-sha256", "-timestamp_of_interest", "-upstream_id", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "relative_path", "sha256", "timestamp_of_interest", "upstream_id"]
166
+ allowable_values = ["-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-relative_path", "-sha256", "-timestamp_of_interest", "-upstream_id", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "relative_path", "sha256", "timestamp_of_interest", "upstream_id"]
158
167
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
159
168
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
160
169
  end
@@ -170,6 +179,7 @@ module PulpDebClient
170
179
  query_params[:'prn__in'] = @api_client.build_collection_param(opts[:'prn__in'], :csv) if !opts[:'prn__in'].nil?
171
180
  query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
172
181
  query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
182
+ query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
173
183
  query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
174
184
  query_params[:'relative_path'] = opts[:'relative_path'] if !opts[:'relative_path'].nil?
175
185
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
@@ -182,21 +192,22 @@ module PulpDebClient
182
192
  # header parameters
183
193
  header_params = opts[:header_params] || {}
184
194
  # HTTP header 'Accept' (if needed)
185
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
195
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
186
196
 
187
197
  # form parameters
188
198
  form_params = opts[:form_params] || {}
189
199
 
190
200
  # http body (model)
191
- post_body = opts[:body]
201
+ post_body = opts[:debug_body]
192
202
 
193
203
  # return_type
194
- return_type = opts[:return_type] || 'PaginateddebGenericContentResponseList'
204
+ return_type = opts[:debug_return_type] || 'PaginateddebGenericContentResponseList'
195
205
 
196
206
  # auth_names
197
- auth_names = opts[:auth_names] || ['basicAuth']
207
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
198
208
 
199
209
  new_options = opts.merge(
210
+ :operation => :"ContentGenericContentsApi.list",
200
211
  :header_params => header_params,
201
212
  :query_params => query_params,
202
213
  :form_params => form_params,
@@ -250,21 +261,22 @@ module PulpDebClient
250
261
  # header parameters
251
262
  header_params = opts[:header_params] || {}
252
263
  # HTTP header 'Accept' (if needed)
253
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
264
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
254
265
 
255
266
  # form parameters
256
267
  form_params = opts[:form_params] || {}
257
268
 
258
269
  # http body (model)
259
- post_body = opts[:body]
270
+ post_body = opts[:debug_body]
260
271
 
261
272
  # return_type
262
- return_type = opts[:return_type] || 'DebGenericContentResponse'
273
+ return_type = opts[:debug_return_type] || 'DebGenericContentResponse'
263
274
 
264
275
  # auth_names
265
- auth_names = opts[:auth_names] || ['basicAuth']
276
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
266
277
 
267
278
  new_options = opts.merge(
279
+ :operation => :"ContentGenericContentsApi.read",
268
280
  :header_params => header_params,
269
281
  :query_params => query_params,
270
282
  :form_params => form_params,
@@ -279,5 +291,153 @@ module PulpDebClient
279
291
  end
280
292
  return data, status_code, headers
281
293
  end
294
+
295
+ # Set a label
296
+ # Set a single pulp_label on the object to a specific value or null.
297
+ # @param deb_generic_content_href [String]
298
+ # @param set_label [SetLabel]
299
+ # @param [Hash] opts the optional parameters
300
+ # @return [SetLabelResponse]
301
+ def set_label(deb_generic_content_href, set_label, opts = {})
302
+ data, _status_code, _headers = set_label_with_http_info(deb_generic_content_href, set_label, opts)
303
+ data
304
+ end
305
+
306
+ # Set a label
307
+ # Set a single pulp_label on the object to a specific value or null.
308
+ # @param deb_generic_content_href [String]
309
+ # @param set_label [SetLabel]
310
+ # @param [Hash] opts the optional parameters
311
+ # @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
312
+ def set_label_with_http_info(deb_generic_content_href, set_label, opts = {})
313
+ if @api_client.config.debugging
314
+ @api_client.config.logger.debug 'Calling API: ContentGenericContentsApi.set_label ...'
315
+ end
316
+ # verify the required parameter 'deb_generic_content_href' is set
317
+ if @api_client.config.client_side_validation && deb_generic_content_href.nil?
318
+ fail ArgumentError, "Missing the required parameter 'deb_generic_content_href' when calling ContentGenericContentsApi.set_label"
319
+ end
320
+ # verify the required parameter 'set_label' is set
321
+ if @api_client.config.client_side_validation && set_label.nil?
322
+ fail ArgumentError, "Missing the required parameter 'set_label' when calling ContentGenericContentsApi.set_label"
323
+ end
324
+ # resource path
325
+ local_var_path = '{deb_generic_content_href}set_label/'.sub('{' + 'deb_generic_content_href' + '}', CGI.escape(deb_generic_content_href.to_s).gsub('%2F', '/'))
326
+
327
+ # query parameters
328
+ query_params = opts[:query_params] || {}
329
+
330
+ # header parameters
331
+ header_params = opts[:header_params] || {}
332
+ # HTTP header 'Accept' (if needed)
333
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
334
+ # HTTP header 'Content-Type'
335
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
336
+ if !content_type.nil?
337
+ header_params['Content-Type'] = content_type
338
+ end
339
+
340
+ # form parameters
341
+ form_params = opts[:form_params] || {}
342
+
343
+ # http body (model)
344
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(set_label)
345
+
346
+ # return_type
347
+ return_type = opts[:debug_return_type] || 'SetLabelResponse'
348
+
349
+ # auth_names
350
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
351
+
352
+ new_options = opts.merge(
353
+ :operation => :"ContentGenericContentsApi.set_label",
354
+ :header_params => header_params,
355
+ :query_params => query_params,
356
+ :form_params => form_params,
357
+ :body => post_body,
358
+ :auth_names => auth_names,
359
+ :return_type => return_type
360
+ )
361
+
362
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
363
+ if @api_client.config.debugging
364
+ @api_client.config.logger.debug "API called: ContentGenericContentsApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
365
+ end
366
+ return data, status_code, headers
367
+ end
368
+
369
+ # Unset a label
370
+ # Unset a single pulp_label on the object.
371
+ # @param deb_generic_content_href [String]
372
+ # @param unset_label [UnsetLabel]
373
+ # @param [Hash] opts the optional parameters
374
+ # @return [UnsetLabelResponse]
375
+ def unset_label(deb_generic_content_href, unset_label, opts = {})
376
+ data, _status_code, _headers = unset_label_with_http_info(deb_generic_content_href, unset_label, opts)
377
+ data
378
+ end
379
+
380
+ # Unset a label
381
+ # Unset a single pulp_label on the object.
382
+ # @param deb_generic_content_href [String]
383
+ # @param unset_label [UnsetLabel]
384
+ # @param [Hash] opts the optional parameters
385
+ # @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
386
+ def unset_label_with_http_info(deb_generic_content_href, unset_label, opts = {})
387
+ if @api_client.config.debugging
388
+ @api_client.config.logger.debug 'Calling API: ContentGenericContentsApi.unset_label ...'
389
+ end
390
+ # verify the required parameter 'deb_generic_content_href' is set
391
+ if @api_client.config.client_side_validation && deb_generic_content_href.nil?
392
+ fail ArgumentError, "Missing the required parameter 'deb_generic_content_href' when calling ContentGenericContentsApi.unset_label"
393
+ end
394
+ # verify the required parameter 'unset_label' is set
395
+ if @api_client.config.client_side_validation && unset_label.nil?
396
+ fail ArgumentError, "Missing the required parameter 'unset_label' when calling ContentGenericContentsApi.unset_label"
397
+ end
398
+ # resource path
399
+ local_var_path = '{deb_generic_content_href}unset_label/'.sub('{' + 'deb_generic_content_href' + '}', CGI.escape(deb_generic_content_href.to_s).gsub('%2F', '/'))
400
+
401
+ # query parameters
402
+ query_params = opts[:query_params] || {}
403
+
404
+ # header parameters
405
+ header_params = opts[:header_params] || {}
406
+ # HTTP header 'Accept' (if needed)
407
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
408
+ # HTTP header 'Content-Type'
409
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
410
+ if !content_type.nil?
411
+ header_params['Content-Type'] = content_type
412
+ end
413
+
414
+ # form parameters
415
+ form_params = opts[:form_params] || {}
416
+
417
+ # http body (model)
418
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(unset_label)
419
+
420
+ # return_type
421
+ return_type = opts[:debug_return_type] || 'UnsetLabelResponse'
422
+
423
+ # auth_names
424
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
425
+
426
+ new_options = opts.merge(
427
+ :operation => :"ContentGenericContentsApi.unset_label",
428
+ :header_params => header_params,
429
+ :query_params => query_params,
430
+ :form_params => form_params,
431
+ :body => post_body,
432
+ :auth_names => auth_names,
433
+ :return_type => return_type
434
+ )
435
+
436
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
437
+ if @api_client.config.debugging
438
+ @api_client.config.logger.debug "API called: ContentGenericContentsApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
439
+ end
440
+ return data, status_code, headers
441
+ end
282
442
  end
283
443
  end
@@ -6,7 +6,7 @@
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
 
@@ -51,23 +51,27 @@ module PulpDebClient
51
51
  # header parameters
52
52
  header_params = opts[:header_params] || {}
53
53
  # HTTP header 'Accept' (if needed)
54
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
54
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
55
55
  # HTTP header 'Content-Type'
56
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
56
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
57
+ if !content_type.nil?
58
+ header_params['Content-Type'] = content_type
59
+ end
57
60
 
58
61
  # form parameters
59
62
  form_params = opts[:form_params] || {}
60
63
 
61
64
  # http body (model)
62
- post_body = opts[:body] || @api_client.object_to_http_body(deb_installer_file_index)
65
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(deb_installer_file_index)
63
66
 
64
67
  # return_type
65
- return_type = opts[:return_type] || 'DebInstallerFileIndexResponse'
68
+ return_type = opts[:debug_return_type] || 'DebInstallerFileIndexResponse'
66
69
 
67
70
  # auth_names
68
- auth_names = opts[:auth_names] || ['basicAuth']
71
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
69
72
 
70
73
  new_options = opts.merge(
74
+ :operation => :"ContentInstallerFileIndicesApi.create",
71
75
  :header_params => header_params,
72
76
  :query_params => query_params,
73
77
  :form_params => form_params,
@@ -90,11 +94,12 @@ module PulpDebClient
90
94
  # @option opts [String] :component Filter results where component matches value
91
95
  # @option opts [Integer] :limit Number of results to return per page.
92
96
  # @option opts [Integer] :offset The initial index from which to return the results.
93
- # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;component&#x60; - Component * &#x60;-component&#x60; - Component (descending) * &#x60;architecture&#x60; - Architecture * &#x60;-architecture&#x60; - Architecture (descending) * &#x60;relative_path&#x60; - Relative path * &#x60;-relative_path&#x60; - Relative path (descending) * &#x60;sha256&#x60; - Sha256 * &#x60;-sha256&#x60; - Sha256 (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
97
+ # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;component&#x60; - Component * &#x60;-component&#x60; - Component (descending) * &#x60;architecture&#x60; - Architecture * &#x60;-architecture&#x60; - Architecture (descending) * &#x60;relative_path&#x60; - Relative path * &#x60;-relative_path&#x60; - Relative path (descending) * &#x60;sha256&#x60; - Sha256 * &#x60;-sha256&#x60; - Sha256 (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
94
98
  # @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
95
99
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
96
100
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
97
101
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
102
+ # @option opts [String] :pulp_label_select Filter labels by search string
98
103
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
99
104
  # @option opts [String] :relative_path Filter results where relative_path matches value
100
105
  # @option opts [String] :repository_version Repository Version referenced by HREF/PRN
@@ -116,11 +121,12 @@ module PulpDebClient
116
121
  # @option opts [String] :component Filter results where component matches value
117
122
  # @option opts [Integer] :limit Number of results to return per page.
118
123
  # @option opts [Integer] :offset The initial index from which to return the results.
119
- # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;component&#x60; - Component * &#x60;-component&#x60; - Component (descending) * &#x60;architecture&#x60; - Architecture * &#x60;-architecture&#x60; - Architecture (descending) * &#x60;relative_path&#x60; - Relative path * &#x60;-relative_path&#x60; - Relative path (descending) * &#x60;sha256&#x60; - Sha256 * &#x60;-sha256&#x60; - Sha256 (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
124
+ # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;component&#x60; - Component * &#x60;-component&#x60; - Component (descending) * &#x60;architecture&#x60; - Architecture * &#x60;-architecture&#x60; - Architecture (descending) * &#x60;relative_path&#x60; - Relative path * &#x60;-relative_path&#x60; - Relative path (descending) * &#x60;sha256&#x60; - Sha256 * &#x60;-sha256&#x60; - Sha256 (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
120
125
  # @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
121
126
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
122
127
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
123
128
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
129
+ # @option opts [String] :pulp_label_select Filter labels by search string
124
130
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
125
131
  # @option opts [String] :relative_path Filter results where relative_path matches value
126
132
  # @option opts [String] :repository_version Repository Version referenced by HREF/PRN
@@ -134,7 +140,7 @@ module PulpDebClient
134
140
  if @api_client.config.debugging
135
141
  @api_client.config.logger.debug 'Calling API: ContentInstallerFileIndicesApi.list ...'
136
142
  end
137
- allowable_values = ["-architecture", "-component", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-relative_path", "-sha256", "-timestamp_of_interest", "-upstream_id", "architecture", "component", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "relative_path", "sha256", "timestamp_of_interest", "upstream_id"]
143
+ allowable_values = ["-architecture", "-component", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-relative_path", "-sha256", "-timestamp_of_interest", "-upstream_id", "architecture", "component", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "relative_path", "sha256", "timestamp_of_interest", "upstream_id"]
138
144
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
139
145
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
140
146
  end
@@ -152,6 +158,7 @@ module PulpDebClient
152
158
  query_params[:'prn__in'] = @api_client.build_collection_param(opts[:'prn__in'], :csv) if !opts[:'prn__in'].nil?
153
159
  query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
154
160
  query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
161
+ query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
155
162
  query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
156
163
  query_params[:'relative_path'] = opts[:'relative_path'] if !opts[:'relative_path'].nil?
157
164
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
@@ -164,21 +171,22 @@ module PulpDebClient
164
171
  # header parameters
165
172
  header_params = opts[:header_params] || {}
166
173
  # HTTP header 'Accept' (if needed)
167
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
174
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
168
175
 
169
176
  # form parameters
170
177
  form_params = opts[:form_params] || {}
171
178
 
172
179
  # http body (model)
173
- post_body = opts[:body]
180
+ post_body = opts[:debug_body]
174
181
 
175
182
  # return_type
176
- return_type = opts[:return_type] || 'PaginateddebInstallerFileIndexResponseList'
183
+ return_type = opts[:debug_return_type] || 'PaginateddebInstallerFileIndexResponseList'
177
184
 
178
185
  # auth_names
179
- auth_names = opts[:auth_names] || ['basicAuth']
186
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
180
187
 
181
188
  new_options = opts.merge(
189
+ :operation => :"ContentInstallerFileIndicesApi.list",
182
190
  :header_params => header_params,
183
191
  :query_params => query_params,
184
192
  :form_params => form_params,
@@ -232,21 +240,22 @@ module PulpDebClient
232
240
  # header parameters
233
241
  header_params = opts[:header_params] || {}
234
242
  # HTTP header 'Accept' (if needed)
235
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
243
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
236
244
 
237
245
  # form parameters
238
246
  form_params = opts[:form_params] || {}
239
247
 
240
248
  # http body (model)
241
- post_body = opts[:body]
249
+ post_body = opts[:debug_body]
242
250
 
243
251
  # return_type
244
- return_type = opts[:return_type] || 'DebInstallerFileIndexResponse'
252
+ return_type = opts[:debug_return_type] || 'DebInstallerFileIndexResponse'
245
253
 
246
254
  # auth_names
247
- auth_names = opts[:auth_names] || ['basicAuth']
255
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
248
256
 
249
257
  new_options = opts.merge(
258
+ :operation => :"ContentInstallerFileIndicesApi.read",
250
259
  :header_params => header_params,
251
260
  :query_params => query_params,
252
261
  :form_params => form_params,
@@ -261,5 +270,153 @@ module PulpDebClient
261
270
  end
262
271
  return data, status_code, headers
263
272
  end
273
+
274
+ # Set a label
275
+ # Set a single pulp_label on the object to a specific value or null.
276
+ # @param deb_installer_file_index_href [String]
277
+ # @param set_label [SetLabel]
278
+ # @param [Hash] opts the optional parameters
279
+ # @return [SetLabelResponse]
280
+ def set_label(deb_installer_file_index_href, set_label, opts = {})
281
+ data, _status_code, _headers = set_label_with_http_info(deb_installer_file_index_href, set_label, opts)
282
+ data
283
+ end
284
+
285
+ # Set a label
286
+ # Set a single pulp_label on the object to a specific value or null.
287
+ # @param deb_installer_file_index_href [String]
288
+ # @param set_label [SetLabel]
289
+ # @param [Hash] opts the optional parameters
290
+ # @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
291
+ def set_label_with_http_info(deb_installer_file_index_href, set_label, opts = {})
292
+ if @api_client.config.debugging
293
+ @api_client.config.logger.debug 'Calling API: ContentInstallerFileIndicesApi.set_label ...'
294
+ end
295
+ # verify the required parameter 'deb_installer_file_index_href' is set
296
+ if @api_client.config.client_side_validation && deb_installer_file_index_href.nil?
297
+ fail ArgumentError, "Missing the required parameter 'deb_installer_file_index_href' when calling ContentInstallerFileIndicesApi.set_label"
298
+ end
299
+ # verify the required parameter 'set_label' is set
300
+ if @api_client.config.client_side_validation && set_label.nil?
301
+ fail ArgumentError, "Missing the required parameter 'set_label' when calling ContentInstallerFileIndicesApi.set_label"
302
+ end
303
+ # resource path
304
+ local_var_path = '{deb_installer_file_index_href}set_label/'.sub('{' + 'deb_installer_file_index_href' + '}', CGI.escape(deb_installer_file_index_href.to_s).gsub('%2F', '/'))
305
+
306
+ # query parameters
307
+ query_params = opts[:query_params] || {}
308
+
309
+ # header parameters
310
+ header_params = opts[:header_params] || {}
311
+ # HTTP header 'Accept' (if needed)
312
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
313
+ # HTTP header 'Content-Type'
314
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
315
+ if !content_type.nil?
316
+ header_params['Content-Type'] = content_type
317
+ end
318
+
319
+ # form parameters
320
+ form_params = opts[:form_params] || {}
321
+
322
+ # http body (model)
323
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(set_label)
324
+
325
+ # return_type
326
+ return_type = opts[:debug_return_type] || 'SetLabelResponse'
327
+
328
+ # auth_names
329
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
330
+
331
+ new_options = opts.merge(
332
+ :operation => :"ContentInstallerFileIndicesApi.set_label",
333
+ :header_params => header_params,
334
+ :query_params => query_params,
335
+ :form_params => form_params,
336
+ :body => post_body,
337
+ :auth_names => auth_names,
338
+ :return_type => return_type
339
+ )
340
+
341
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
342
+ if @api_client.config.debugging
343
+ @api_client.config.logger.debug "API called: ContentInstallerFileIndicesApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
344
+ end
345
+ return data, status_code, headers
346
+ end
347
+
348
+ # Unset a label
349
+ # Unset a single pulp_label on the object.
350
+ # @param deb_installer_file_index_href [String]
351
+ # @param unset_label [UnsetLabel]
352
+ # @param [Hash] opts the optional parameters
353
+ # @return [UnsetLabelResponse]
354
+ def unset_label(deb_installer_file_index_href, unset_label, opts = {})
355
+ data, _status_code, _headers = unset_label_with_http_info(deb_installer_file_index_href, unset_label, opts)
356
+ data
357
+ end
358
+
359
+ # Unset a label
360
+ # Unset a single pulp_label on the object.
361
+ # @param deb_installer_file_index_href [String]
362
+ # @param unset_label [UnsetLabel]
363
+ # @param [Hash] opts the optional parameters
364
+ # @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
365
+ def unset_label_with_http_info(deb_installer_file_index_href, unset_label, opts = {})
366
+ if @api_client.config.debugging
367
+ @api_client.config.logger.debug 'Calling API: ContentInstallerFileIndicesApi.unset_label ...'
368
+ end
369
+ # verify the required parameter 'deb_installer_file_index_href' is set
370
+ if @api_client.config.client_side_validation && deb_installer_file_index_href.nil?
371
+ fail ArgumentError, "Missing the required parameter 'deb_installer_file_index_href' when calling ContentInstallerFileIndicesApi.unset_label"
372
+ end
373
+ # verify the required parameter 'unset_label' is set
374
+ if @api_client.config.client_side_validation && unset_label.nil?
375
+ fail ArgumentError, "Missing the required parameter 'unset_label' when calling ContentInstallerFileIndicesApi.unset_label"
376
+ end
377
+ # resource path
378
+ local_var_path = '{deb_installer_file_index_href}unset_label/'.sub('{' + 'deb_installer_file_index_href' + '}', CGI.escape(deb_installer_file_index_href.to_s).gsub('%2F', '/'))
379
+
380
+ # query parameters
381
+ query_params = opts[:query_params] || {}
382
+
383
+ # header parameters
384
+ header_params = opts[:header_params] || {}
385
+ # HTTP header 'Accept' (if needed)
386
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
387
+ # HTTP header 'Content-Type'
388
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
389
+ if !content_type.nil?
390
+ header_params['Content-Type'] = content_type
391
+ end
392
+
393
+ # form parameters
394
+ form_params = opts[:form_params] || {}
395
+
396
+ # http body (model)
397
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(unset_label)
398
+
399
+ # return_type
400
+ return_type = opts[:debug_return_type] || 'UnsetLabelResponse'
401
+
402
+ # auth_names
403
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
404
+
405
+ new_options = opts.merge(
406
+ :operation => :"ContentInstallerFileIndicesApi.unset_label",
407
+ :header_params => header_params,
408
+ :query_params => query_params,
409
+ :form_params => form_params,
410
+ :body => post_body,
411
+ :auth_names => auth_names,
412
+ :return_type => return_type
413
+ )
414
+
415
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
416
+ if @api_client.config.debugging
417
+ @api_client.config.logger.debug "API called: ContentInstallerFileIndicesApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
418
+ end
419
+ return data, status_code, headers
420
+ end
264
421
  end
265
422
  end