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
 
@@ -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_source_index)
65
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(deb_source_index)
63
66
 
64
67
  # return_type
65
- return_type = opts[:return_type] || 'DebSourceIndexResponse'
68
+ return_type = opts[:debug_return_type] || 'DebSourceIndexResponse'
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 => :"ContentSourceIndicesApi.create",
71
75
  :header_params => header_params,
72
76
  :query_params => query_params,
73
77
  :form_params => form_params,
@@ -89,11 +93,12 @@ module PulpDebClient
89
93
  # @option opts [String] :component Filter results where component matches value
90
94
  # @option opts [Integer] :limit Number of results to return per page.
91
95
  # @option opts [Integer] :offset The initial index from which to return the results.
92
- # @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;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)
96
+ # @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;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)
93
97
  # @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
94
98
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
95
99
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
96
100
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
101
+ # @option opts [String] :pulp_label_select Filter labels by search string
97
102
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
98
103
  # @option opts [String] :relative_path Filter results where relative_path matches value
99
104
  # @option opts [String] :repository_version Repository Version referenced by HREF/PRN
@@ -114,11 +119,12 @@ module PulpDebClient
114
119
  # @option opts [String] :component Filter results where component matches value
115
120
  # @option opts [Integer] :limit Number of results to return per page.
116
121
  # @option opts [Integer] :offset The initial index from which to return the results.
117
- # @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;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;component&#x60; - Component * &#x60;-component&#x60; - Component (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)
118
123
  # @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
119
124
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
120
125
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
121
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
122
128
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
123
129
  # @option opts [String] :relative_path Filter results where relative_path matches value
124
130
  # @option opts [String] :repository_version Repository Version referenced by HREF/PRN
@@ -132,7 +138,7 @@ module PulpDebClient
132
138
  if @api_client.config.debugging
133
139
  @api_client.config.logger.debug 'Calling API: ContentSourceIndicesApi.list ...'
134
140
  end
135
- allowable_values = ["-component", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-relative_path", "-sha256", "-timestamp_of_interest", "-upstream_id", "component", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "relative_path", "sha256", "timestamp_of_interest", "upstream_id"]
141
+ allowable_values = ["-component", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-relative_path", "-sha256", "-timestamp_of_interest", "-upstream_id", "component", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "relative_path", "sha256", "timestamp_of_interest", "upstream_id"]
136
142
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
137
143
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
138
144
  end
@@ -149,6 +155,7 @@ module PulpDebClient
149
155
  query_params[:'prn__in'] = @api_client.build_collection_param(opts[:'prn__in'], :csv) if !opts[:'prn__in'].nil?
150
156
  query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
151
157
  query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
158
+ query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
152
159
  query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
153
160
  query_params[:'relative_path'] = opts[:'relative_path'] if !opts[:'relative_path'].nil?
154
161
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
@@ -161,21 +168,22 @@ module PulpDebClient
161
168
  # header parameters
162
169
  header_params = opts[:header_params] || {}
163
170
  # HTTP header 'Accept' (if needed)
164
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
171
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
165
172
 
166
173
  # form parameters
167
174
  form_params = opts[:form_params] || {}
168
175
 
169
176
  # http body (model)
170
- post_body = opts[:body]
177
+ post_body = opts[:debug_body]
171
178
 
172
179
  # return_type
173
- return_type = opts[:return_type] || 'PaginateddebSourceIndexResponseList'
180
+ return_type = opts[:debug_return_type] || 'PaginateddebSourceIndexResponseList'
174
181
 
175
182
  # auth_names
176
- auth_names = opts[:auth_names] || ['basicAuth']
183
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
177
184
 
178
185
  new_options = opts.merge(
186
+ :operation => :"ContentSourceIndicesApi.list",
179
187
  :header_params => header_params,
180
188
  :query_params => query_params,
181
189
  :form_params => form_params,
@@ -229,21 +237,22 @@ module PulpDebClient
229
237
  # header parameters
230
238
  header_params = opts[:header_params] || {}
231
239
  # HTTP header 'Accept' (if needed)
232
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
240
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
233
241
 
234
242
  # form parameters
235
243
  form_params = opts[:form_params] || {}
236
244
 
237
245
  # http body (model)
238
- post_body = opts[:body]
246
+ post_body = opts[:debug_body]
239
247
 
240
248
  # return_type
241
- return_type = opts[:return_type] || 'DebSourceIndexResponse'
249
+ return_type = opts[:debug_return_type] || 'DebSourceIndexResponse'
242
250
 
243
251
  # auth_names
244
- auth_names = opts[:auth_names] || ['basicAuth']
252
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
245
253
 
246
254
  new_options = opts.merge(
255
+ :operation => :"ContentSourceIndicesApi.read",
247
256
  :header_params => header_params,
248
257
  :query_params => query_params,
249
258
  :form_params => form_params,
@@ -258,5 +267,153 @@ module PulpDebClient
258
267
  end
259
268
  return data, status_code, headers
260
269
  end
270
+
271
+ # Set a label
272
+ # Set a single pulp_label on the object to a specific value or null.
273
+ # @param deb_source_index_href [String]
274
+ # @param set_label [SetLabel]
275
+ # @param [Hash] opts the optional parameters
276
+ # @return [SetLabelResponse]
277
+ def set_label(deb_source_index_href, set_label, opts = {})
278
+ data, _status_code, _headers = set_label_with_http_info(deb_source_index_href, set_label, opts)
279
+ data
280
+ end
281
+
282
+ # Set a label
283
+ # Set a single pulp_label on the object to a specific value or null.
284
+ # @param deb_source_index_href [String]
285
+ # @param set_label [SetLabel]
286
+ # @param [Hash] opts the optional parameters
287
+ # @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
288
+ def set_label_with_http_info(deb_source_index_href, set_label, opts = {})
289
+ if @api_client.config.debugging
290
+ @api_client.config.logger.debug 'Calling API: ContentSourceIndicesApi.set_label ...'
291
+ end
292
+ # verify the required parameter 'deb_source_index_href' is set
293
+ if @api_client.config.client_side_validation && deb_source_index_href.nil?
294
+ fail ArgumentError, "Missing the required parameter 'deb_source_index_href' when calling ContentSourceIndicesApi.set_label"
295
+ end
296
+ # verify the required parameter 'set_label' is set
297
+ if @api_client.config.client_side_validation && set_label.nil?
298
+ fail ArgumentError, "Missing the required parameter 'set_label' when calling ContentSourceIndicesApi.set_label"
299
+ end
300
+ # resource path
301
+ local_var_path = '{deb_source_index_href}set_label/'.sub('{' + 'deb_source_index_href' + '}', CGI.escape(deb_source_index_href.to_s).gsub('%2F', '/'))
302
+
303
+ # query parameters
304
+ query_params = opts[:query_params] || {}
305
+
306
+ # header parameters
307
+ header_params = opts[:header_params] || {}
308
+ # HTTP header 'Accept' (if needed)
309
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
310
+ # HTTP header 'Content-Type'
311
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
312
+ if !content_type.nil?
313
+ header_params['Content-Type'] = content_type
314
+ end
315
+
316
+ # form parameters
317
+ form_params = opts[:form_params] || {}
318
+
319
+ # http body (model)
320
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(set_label)
321
+
322
+ # return_type
323
+ return_type = opts[:debug_return_type] || 'SetLabelResponse'
324
+
325
+ # auth_names
326
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
327
+
328
+ new_options = opts.merge(
329
+ :operation => :"ContentSourceIndicesApi.set_label",
330
+ :header_params => header_params,
331
+ :query_params => query_params,
332
+ :form_params => form_params,
333
+ :body => post_body,
334
+ :auth_names => auth_names,
335
+ :return_type => return_type
336
+ )
337
+
338
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
339
+ if @api_client.config.debugging
340
+ @api_client.config.logger.debug "API called: ContentSourceIndicesApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
341
+ end
342
+ return data, status_code, headers
343
+ end
344
+
345
+ # Unset a label
346
+ # Unset a single pulp_label on the object.
347
+ # @param deb_source_index_href [String]
348
+ # @param unset_label [UnsetLabel]
349
+ # @param [Hash] opts the optional parameters
350
+ # @return [UnsetLabelResponse]
351
+ def unset_label(deb_source_index_href, unset_label, opts = {})
352
+ data, _status_code, _headers = unset_label_with_http_info(deb_source_index_href, unset_label, opts)
353
+ data
354
+ end
355
+
356
+ # Unset a label
357
+ # Unset a single pulp_label on the object.
358
+ # @param deb_source_index_href [String]
359
+ # @param unset_label [UnsetLabel]
360
+ # @param [Hash] opts the optional parameters
361
+ # @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
362
+ def unset_label_with_http_info(deb_source_index_href, unset_label, opts = {})
363
+ if @api_client.config.debugging
364
+ @api_client.config.logger.debug 'Calling API: ContentSourceIndicesApi.unset_label ...'
365
+ end
366
+ # verify the required parameter 'deb_source_index_href' is set
367
+ if @api_client.config.client_side_validation && deb_source_index_href.nil?
368
+ fail ArgumentError, "Missing the required parameter 'deb_source_index_href' when calling ContentSourceIndicesApi.unset_label"
369
+ end
370
+ # verify the required parameter 'unset_label' is set
371
+ if @api_client.config.client_side_validation && unset_label.nil?
372
+ fail ArgumentError, "Missing the required parameter 'unset_label' when calling ContentSourceIndicesApi.unset_label"
373
+ end
374
+ # resource path
375
+ local_var_path = '{deb_source_index_href}unset_label/'.sub('{' + 'deb_source_index_href' + '}', CGI.escape(deb_source_index_href.to_s).gsub('%2F', '/'))
376
+
377
+ # query parameters
378
+ query_params = opts[:query_params] || {}
379
+
380
+ # header parameters
381
+ header_params = opts[:header_params] || {}
382
+ # HTTP header 'Accept' (if needed)
383
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
384
+ # HTTP header 'Content-Type'
385
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
386
+ if !content_type.nil?
387
+ header_params['Content-Type'] = content_type
388
+ end
389
+
390
+ # form parameters
391
+ form_params = opts[:form_params] || {}
392
+
393
+ # http body (model)
394
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(unset_label)
395
+
396
+ # return_type
397
+ return_type = opts[:debug_return_type] || 'UnsetLabelResponse'
398
+
399
+ # auth_names
400
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
401
+
402
+ new_options = opts.merge(
403
+ :operation => :"ContentSourceIndicesApi.unset_label",
404
+ :header_params => header_params,
405
+ :query_params => query_params,
406
+ :form_params => form_params,
407
+ :body => post_body,
408
+ :auth_names => auth_names,
409
+ :return_type => return_type
410
+ )
411
+
412
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
413
+ if @api_client.config.debugging
414
+ @api_client.config.logger.debug "API called: ContentSourceIndicesApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
415
+ end
416
+ return data, status_code, headers
417
+ end
261
418
  end
262
419
  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_source_package)
65
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(deb_source_package)
63
66
 
64
67
  # return_type
65
- return_type = opts[:return_type] || 'AsyncOperationResponse'
68
+ return_type = opts[:debug_return_type] || 'AsyncOperationResponse'
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 => :"ContentSourcePackagesApi.create",
71
75
  :header_params => header_params,
72
76
  :query_params => query_params,
73
77
  :form_params => form_params,
@@ -100,12 +104,13 @@ module PulpDebClient
100
104
  # @option opts [Integer] :limit Number of results to return per page.
101
105
  # @option opts [String] :maintainer Filter results where maintainer matches value
102
106
  # @option opts [Integer] :offset The initial index from which to return the results.
103
- # @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;format&#x60; - Format * &#x60;-format&#x60; - Format (descending) * &#x60;source&#x60; - Source * &#x60;-source&#x60; - Source (descending) * &#x60;binary&#x60; - Binary * &#x60;-binary&#x60; - Binary (descending) * &#x60;architecture&#x60; - Architecture * &#x60;-architecture&#x60; - Architecture (descending) * &#x60;version&#x60; - Version * &#x60;-version&#x60; - Version (descending) * &#x60;maintainer&#x60; - Maintainer * &#x60;-maintainer&#x60; - Maintainer (descending) * &#x60;uploaders&#x60; - Uploaders * &#x60;-uploaders&#x60; - Uploaders (descending) * &#x60;homepage&#x60; - Homepage * &#x60;-homepage&#x60; - Homepage (descending) * &#x60;vcs_browser&#x60; - Vcs browser * &#x60;-vcs_browser&#x60; - Vcs browser (descending) * &#x60;vcs_arch&#x60; - Vcs arch * &#x60;-vcs_arch&#x60; - Vcs arch (descending) * &#x60;vcs_bzr&#x60; - Vcs bzr * &#x60;-vcs_bzr&#x60; - Vcs bzr (descending) * &#x60;vcs_cvs&#x60; - Vcs cvs * &#x60;-vcs_cvs&#x60; - Vcs cvs (descending) * &#x60;vcs_darcs&#x60; - Vcs darcs * &#x60;-vcs_darcs&#x60; - Vcs darcs (descending) * &#x60;vcs_git&#x60; - Vcs git * &#x60;-vcs_git&#x60; - Vcs git (descending) * &#x60;vcs_hg&#x60; - Vcs hg * &#x60;-vcs_hg&#x60; - Vcs hg (descending) * &#x60;vcs_mtn&#x60; - Vcs mtn * &#x60;-vcs_mtn&#x60; - Vcs mtn (descending) * &#x60;vcs_snv&#x60; - Vcs snv * &#x60;-vcs_snv&#x60; - Vcs snv (descending) * &#x60;testsuite&#x60; - Testsuite * &#x60;-testsuite&#x60; - Testsuite (descending) * &#x60;dgit&#x60; - Dgit * &#x60;-dgit&#x60; - Dgit (descending) * &#x60;standards_version&#x60; - Standards version * &#x60;-standards_version&#x60; - Standards version (descending) * &#x60;build_depends&#x60; - Build depends * &#x60;-build_depends&#x60; - Build depends (descending) * &#x60;build_depends_indep&#x60; - Build depends indep * &#x60;-build_depends_indep&#x60; - Build depends indep (descending) * &#x60;build_depends_arch&#x60; - Build depends arch * &#x60;-build_depends_arch&#x60; - Build depends arch (descending) * &#x60;build_conflicts&#x60; - Build conflicts * &#x60;-build_conflicts&#x60; - Build conflicts (descending) * &#x60;build_conflicts_indep&#x60; - Build conflicts indep * &#x60;-build_conflicts_indep&#x60; - Build conflicts indep (descending) * &#x60;build_conflicts_arch&#x60; - Build conflicts arch * &#x60;-build_conflicts_arch&#x60; - Build conflicts arch (descending) * &#x60;package_list&#x60; - Package list * &#x60;-package_list&#x60; - Package list (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
107
+ # @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;format&#x60; - Format * &#x60;-format&#x60; - Format (descending) * &#x60;source&#x60; - Source * &#x60;-source&#x60; - Source (descending) * &#x60;binary&#x60; - Binary * &#x60;-binary&#x60; - Binary (descending) * &#x60;architecture&#x60; - Architecture * &#x60;-architecture&#x60; - Architecture (descending) * &#x60;version&#x60; - Version * &#x60;-version&#x60; - Version (descending) * &#x60;maintainer&#x60; - Maintainer * &#x60;-maintainer&#x60; - Maintainer (descending) * &#x60;uploaders&#x60; - Uploaders * &#x60;-uploaders&#x60; - Uploaders (descending) * &#x60;homepage&#x60; - Homepage * &#x60;-homepage&#x60; - Homepage (descending) * &#x60;vcs_browser&#x60; - Vcs browser * &#x60;-vcs_browser&#x60; - Vcs browser (descending) * &#x60;vcs_arch&#x60; - Vcs arch * &#x60;-vcs_arch&#x60; - Vcs arch (descending) * &#x60;vcs_bzr&#x60; - Vcs bzr * &#x60;-vcs_bzr&#x60; - Vcs bzr (descending) * &#x60;vcs_cvs&#x60; - Vcs cvs * &#x60;-vcs_cvs&#x60; - Vcs cvs (descending) * &#x60;vcs_darcs&#x60; - Vcs darcs * &#x60;-vcs_darcs&#x60; - Vcs darcs (descending) * &#x60;vcs_git&#x60; - Vcs git * &#x60;-vcs_git&#x60; - Vcs git (descending) * &#x60;vcs_hg&#x60; - Vcs hg * &#x60;-vcs_hg&#x60; - Vcs hg (descending) * &#x60;vcs_mtn&#x60; - Vcs mtn * &#x60;-vcs_mtn&#x60; - Vcs mtn (descending) * &#x60;vcs_snv&#x60; - Vcs snv * &#x60;-vcs_snv&#x60; - Vcs snv (descending) * &#x60;testsuite&#x60; - Testsuite * &#x60;-testsuite&#x60; - Testsuite (descending) * &#x60;dgit&#x60; - Dgit * &#x60;-dgit&#x60; - Dgit (descending) * &#x60;standards_version&#x60; - Standards version * &#x60;-standards_version&#x60; - Standards version (descending) * &#x60;build_depends&#x60; - Build depends * &#x60;-build_depends&#x60; - Build depends (descending) * &#x60;build_depends_indep&#x60; - Build depends indep * &#x60;-build_depends_indep&#x60; - Build depends indep (descending) * &#x60;build_depends_arch&#x60; - Build depends arch * &#x60;-build_depends_arch&#x60; - Build depends arch (descending) * &#x60;build_conflicts&#x60; - Build conflicts * &#x60;-build_conflicts&#x60; - Build conflicts (descending) * &#x60;build_conflicts_indep&#x60; - Build conflicts indep * &#x60;-build_conflicts_indep&#x60; - Build conflicts indep (descending) * &#x60;build_conflicts_arch&#x60; - Build conflicts arch * &#x60;-build_conflicts_arch&#x60; - Build conflicts arch (descending) * &#x60;package_list&#x60; - Package list * &#x60;-package_list&#x60; - Package list (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
104
108
  # @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
105
109
  # @option opts [String] :package_list Filter results where package_list matches value
106
110
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
107
111
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
108
112
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
113
+ # @option opts [String] :pulp_label_select Filter labels by search string
109
114
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
110
115
  # @option opts [String] :relative_path Filter results where relative_path matches value
111
116
  # @option opts [String] :release Must be a comma-separated string: \&quot;release_href,repository_or_repository_version_href\&quot; release_href: Filter results where SourcePackage in Release repository_or_repository_version_href: The RepositoryVersion href to filter by, or Repository href (assume latest version)
@@ -152,12 +157,13 @@ module PulpDebClient
152
157
  # @option opts [Integer] :limit Number of results to return per page.
153
158
  # @option opts [String] :maintainer Filter results where maintainer matches value
154
159
  # @option opts [Integer] :offset The initial index from which to return the results.
155
- # @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;format&#x60; - Format * &#x60;-format&#x60; - Format (descending) * &#x60;source&#x60; - Source * &#x60;-source&#x60; - Source (descending) * &#x60;binary&#x60; - Binary * &#x60;-binary&#x60; - Binary (descending) * &#x60;architecture&#x60; - Architecture * &#x60;-architecture&#x60; - Architecture (descending) * &#x60;version&#x60; - Version * &#x60;-version&#x60; - Version (descending) * &#x60;maintainer&#x60; - Maintainer * &#x60;-maintainer&#x60; - Maintainer (descending) * &#x60;uploaders&#x60; - Uploaders * &#x60;-uploaders&#x60; - Uploaders (descending) * &#x60;homepage&#x60; - Homepage * &#x60;-homepage&#x60; - Homepage (descending) * &#x60;vcs_browser&#x60; - Vcs browser * &#x60;-vcs_browser&#x60; - Vcs browser (descending) * &#x60;vcs_arch&#x60; - Vcs arch * &#x60;-vcs_arch&#x60; - Vcs arch (descending) * &#x60;vcs_bzr&#x60; - Vcs bzr * &#x60;-vcs_bzr&#x60; - Vcs bzr (descending) * &#x60;vcs_cvs&#x60; - Vcs cvs * &#x60;-vcs_cvs&#x60; - Vcs cvs (descending) * &#x60;vcs_darcs&#x60; - Vcs darcs * &#x60;-vcs_darcs&#x60; - Vcs darcs (descending) * &#x60;vcs_git&#x60; - Vcs git * &#x60;-vcs_git&#x60; - Vcs git (descending) * &#x60;vcs_hg&#x60; - Vcs hg * &#x60;-vcs_hg&#x60; - Vcs hg (descending) * &#x60;vcs_mtn&#x60; - Vcs mtn * &#x60;-vcs_mtn&#x60; - Vcs mtn (descending) * &#x60;vcs_snv&#x60; - Vcs snv * &#x60;-vcs_snv&#x60; - Vcs snv (descending) * &#x60;testsuite&#x60; - Testsuite * &#x60;-testsuite&#x60; - Testsuite (descending) * &#x60;dgit&#x60; - Dgit * &#x60;-dgit&#x60; - Dgit (descending) * &#x60;standards_version&#x60; - Standards version * &#x60;-standards_version&#x60; - Standards version (descending) * &#x60;build_depends&#x60; - Build depends * &#x60;-build_depends&#x60; - Build depends (descending) * &#x60;build_depends_indep&#x60; - Build depends indep * &#x60;-build_depends_indep&#x60; - Build depends indep (descending) * &#x60;build_depends_arch&#x60; - Build depends arch * &#x60;-build_depends_arch&#x60; - Build depends arch (descending) * &#x60;build_conflicts&#x60; - Build conflicts * &#x60;-build_conflicts&#x60; - Build conflicts (descending) * &#x60;build_conflicts_indep&#x60; - Build conflicts indep * &#x60;-build_conflicts_indep&#x60; - Build conflicts indep (descending) * &#x60;build_conflicts_arch&#x60; - Build conflicts arch * &#x60;-build_conflicts_arch&#x60; - Build conflicts arch (descending) * &#x60;package_list&#x60; - Package list * &#x60;-package_list&#x60; - Package list (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
160
+ # @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;format&#x60; - Format * &#x60;-format&#x60; - Format (descending) * &#x60;source&#x60; - Source * &#x60;-source&#x60; - Source (descending) * &#x60;binary&#x60; - Binary * &#x60;-binary&#x60; - Binary (descending) * &#x60;architecture&#x60; - Architecture * &#x60;-architecture&#x60; - Architecture (descending) * &#x60;version&#x60; - Version * &#x60;-version&#x60; - Version (descending) * &#x60;maintainer&#x60; - Maintainer * &#x60;-maintainer&#x60; - Maintainer (descending) * &#x60;uploaders&#x60; - Uploaders * &#x60;-uploaders&#x60; - Uploaders (descending) * &#x60;homepage&#x60; - Homepage * &#x60;-homepage&#x60; - Homepage (descending) * &#x60;vcs_browser&#x60; - Vcs browser * &#x60;-vcs_browser&#x60; - Vcs browser (descending) * &#x60;vcs_arch&#x60; - Vcs arch * &#x60;-vcs_arch&#x60; - Vcs arch (descending) * &#x60;vcs_bzr&#x60; - Vcs bzr * &#x60;-vcs_bzr&#x60; - Vcs bzr (descending) * &#x60;vcs_cvs&#x60; - Vcs cvs * &#x60;-vcs_cvs&#x60; - Vcs cvs (descending) * &#x60;vcs_darcs&#x60; - Vcs darcs * &#x60;-vcs_darcs&#x60; - Vcs darcs (descending) * &#x60;vcs_git&#x60; - Vcs git * &#x60;-vcs_git&#x60; - Vcs git (descending) * &#x60;vcs_hg&#x60; - Vcs hg * &#x60;-vcs_hg&#x60; - Vcs hg (descending) * &#x60;vcs_mtn&#x60; - Vcs mtn * &#x60;-vcs_mtn&#x60; - Vcs mtn (descending) * &#x60;vcs_snv&#x60; - Vcs snv * &#x60;-vcs_snv&#x60; - Vcs snv (descending) * &#x60;testsuite&#x60; - Testsuite * &#x60;-testsuite&#x60; - Testsuite (descending) * &#x60;dgit&#x60; - Dgit * &#x60;-dgit&#x60; - Dgit (descending) * &#x60;standards_version&#x60; - Standards version * &#x60;-standards_version&#x60; - Standards version (descending) * &#x60;build_depends&#x60; - Build depends * &#x60;-build_depends&#x60; - Build depends (descending) * &#x60;build_depends_indep&#x60; - Build depends indep * &#x60;-build_depends_indep&#x60; - Build depends indep (descending) * &#x60;build_depends_arch&#x60; - Build depends arch * &#x60;-build_depends_arch&#x60; - Build depends arch (descending) * &#x60;build_conflicts&#x60; - Build conflicts * &#x60;-build_conflicts&#x60; - Build conflicts (descending) * &#x60;build_conflicts_indep&#x60; - Build conflicts indep * &#x60;-build_conflicts_indep&#x60; - Build conflicts indep (descending) * &#x60;build_conflicts_arch&#x60; - Build conflicts arch * &#x60;-build_conflicts_arch&#x60; - Build conflicts arch (descending) * &#x60;package_list&#x60; - Package list * &#x60;-package_list&#x60; - Package list (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
156
161
  # @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
157
162
  # @option opts [String] :package_list Filter results where package_list matches value
158
163
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
159
164
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
160
165
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
166
+ # @option opts [String] :pulp_label_select Filter labels by search string
161
167
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
162
168
  # @option opts [String] :relative_path Filter results where relative_path matches value
163
169
  # @option opts [String] :release Must be a comma-separated string: \&quot;release_href,repository_or_repository_version_href\&quot; release_href: Filter results where SourcePackage in Release repository_or_repository_version_href: The RepositoryVersion href to filter by, or Repository href (assume latest version)
@@ -186,7 +192,7 @@ module PulpDebClient
186
192
  if @api_client.config.debugging
187
193
  @api_client.config.logger.debug 'Calling API: ContentSourcePackagesApi.list ...'
188
194
  end
189
- allowable_values = ["-architecture", "-binary", "-build_conflicts", "-build_conflicts_arch", "-build_conflicts_indep", "-build_depends", "-build_depends_arch", "-build_depends_indep", "-dgit", "-format", "-homepage", "-maintainer", "-package_list", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-relative_path", "-source", "-standards_version", "-testsuite", "-timestamp_of_interest", "-uploaders", "-upstream_id", "-vcs_arch", "-vcs_browser", "-vcs_bzr", "-vcs_cvs", "-vcs_darcs", "-vcs_git", "-vcs_hg", "-vcs_mtn", "-vcs_snv", "-version", "architecture", "binary", "build_conflicts", "build_conflicts_arch", "build_conflicts_indep", "build_depends", "build_depends_arch", "build_depends_indep", "dgit", "format", "homepage", "maintainer", "package_list", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "relative_path", "source", "standards_version", "testsuite", "timestamp_of_interest", "uploaders", "upstream_id", "vcs_arch", "vcs_browser", "vcs_bzr", "vcs_cvs", "vcs_darcs", "vcs_git", "vcs_hg", "vcs_mtn", "vcs_snv", "version"]
195
+ allowable_values = ["-architecture", "-binary", "-build_conflicts", "-build_conflicts_arch", "-build_conflicts_indep", "-build_depends", "-build_depends_arch", "-build_depends_indep", "-dgit", "-format", "-homepage", "-maintainer", "-package_list", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-relative_path", "-source", "-standards_version", "-testsuite", "-timestamp_of_interest", "-uploaders", "-upstream_id", "-vcs_arch", "-vcs_browser", "-vcs_bzr", "-vcs_cvs", "-vcs_darcs", "-vcs_git", "-vcs_hg", "-vcs_mtn", "-vcs_snv", "-version", "architecture", "binary", "build_conflicts", "build_conflicts_arch", "build_conflicts_indep", "build_depends", "build_depends_arch", "build_depends_indep", "dgit", "format", "homepage", "maintainer", "package_list", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "relative_path", "source", "standards_version", "testsuite", "timestamp_of_interest", "uploaders", "upstream_id", "vcs_arch", "vcs_browser", "vcs_bzr", "vcs_cvs", "vcs_darcs", "vcs_git", "vcs_hg", "vcs_mtn", "vcs_snv", "version"]
190
196
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
191
197
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
192
198
  end
@@ -215,6 +221,7 @@ module PulpDebClient
215
221
  query_params[:'prn__in'] = @api_client.build_collection_param(opts[:'prn__in'], :csv) if !opts[:'prn__in'].nil?
216
222
  query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
217
223
  query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
224
+ query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
218
225
  query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
219
226
  query_params[:'relative_path'] = opts[:'relative_path'] if !opts[:'relative_path'].nil?
220
227
  query_params[:'release'] = opts[:'release'] if !opts[:'release'].nil?
@@ -242,21 +249,22 @@ module PulpDebClient
242
249
  # header parameters
243
250
  header_params = opts[:header_params] || {}
244
251
  # HTTP header 'Accept' (if needed)
245
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
252
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
246
253
 
247
254
  # form parameters
248
255
  form_params = opts[:form_params] || {}
249
256
 
250
257
  # http body (model)
251
- post_body = opts[:body]
258
+ post_body = opts[:debug_body]
252
259
 
253
260
  # return_type
254
- return_type = opts[:return_type] || 'PaginateddebSourcePackageResponseList'
261
+ return_type = opts[:debug_return_type] || 'PaginateddebSourcePackageResponseList'
255
262
 
256
263
  # auth_names
257
- auth_names = opts[:auth_names] || ['basicAuth']
264
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
258
265
 
259
266
  new_options = opts.merge(
267
+ :operation => :"ContentSourcePackagesApi.list",
260
268
  :header_params => header_params,
261
269
  :query_params => query_params,
262
270
  :form_params => form_params,
@@ -310,21 +318,22 @@ module PulpDebClient
310
318
  # header parameters
311
319
  header_params = opts[:header_params] || {}
312
320
  # HTTP header 'Accept' (if needed)
313
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
321
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
314
322
 
315
323
  # form parameters
316
324
  form_params = opts[:form_params] || {}
317
325
 
318
326
  # http body (model)
319
- post_body = opts[:body]
327
+ post_body = opts[:debug_body]
320
328
 
321
329
  # return_type
322
- return_type = opts[:return_type] || 'DebSourcePackageResponse'
330
+ return_type = opts[:debug_return_type] || 'DebSourcePackageResponse'
323
331
 
324
332
  # auth_names
325
- auth_names = opts[:auth_names] || ['basicAuth']
333
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
326
334
 
327
335
  new_options = opts.merge(
336
+ :operation => :"ContentSourcePackagesApi.read",
328
337
  :header_params => header_params,
329
338
  :query_params => query_params,
330
339
  :form_params => form_params,
@@ -339,5 +348,153 @@ module PulpDebClient
339
348
  end
340
349
  return data, status_code, headers
341
350
  end
351
+
352
+ # Set a label
353
+ # Set a single pulp_label on the object to a specific value or null.
354
+ # @param deb_source_package_href [String]
355
+ # @param set_label [SetLabel]
356
+ # @param [Hash] opts the optional parameters
357
+ # @return [SetLabelResponse]
358
+ def set_label(deb_source_package_href, set_label, opts = {})
359
+ data, _status_code, _headers = set_label_with_http_info(deb_source_package_href, set_label, opts)
360
+ data
361
+ end
362
+
363
+ # Set a label
364
+ # Set a single pulp_label on the object to a specific value or null.
365
+ # @param deb_source_package_href [String]
366
+ # @param set_label [SetLabel]
367
+ # @param [Hash] opts the optional parameters
368
+ # @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
369
+ def set_label_with_http_info(deb_source_package_href, set_label, opts = {})
370
+ if @api_client.config.debugging
371
+ @api_client.config.logger.debug 'Calling API: ContentSourcePackagesApi.set_label ...'
372
+ end
373
+ # verify the required parameter 'deb_source_package_href' is set
374
+ if @api_client.config.client_side_validation && deb_source_package_href.nil?
375
+ fail ArgumentError, "Missing the required parameter 'deb_source_package_href' when calling ContentSourcePackagesApi.set_label"
376
+ end
377
+ # verify the required parameter 'set_label' is set
378
+ if @api_client.config.client_side_validation && set_label.nil?
379
+ fail ArgumentError, "Missing the required parameter 'set_label' when calling ContentSourcePackagesApi.set_label"
380
+ end
381
+ # resource path
382
+ local_var_path = '{deb_source_package_href}set_label/'.sub('{' + 'deb_source_package_href' + '}', CGI.escape(deb_source_package_href.to_s).gsub('%2F', '/'))
383
+
384
+ # query parameters
385
+ query_params = opts[:query_params] || {}
386
+
387
+ # header parameters
388
+ header_params = opts[:header_params] || {}
389
+ # HTTP header 'Accept' (if needed)
390
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
391
+ # HTTP header 'Content-Type'
392
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
393
+ if !content_type.nil?
394
+ header_params['Content-Type'] = content_type
395
+ end
396
+
397
+ # form parameters
398
+ form_params = opts[:form_params] || {}
399
+
400
+ # http body (model)
401
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(set_label)
402
+
403
+ # return_type
404
+ return_type = opts[:debug_return_type] || 'SetLabelResponse'
405
+
406
+ # auth_names
407
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
408
+
409
+ new_options = opts.merge(
410
+ :operation => :"ContentSourcePackagesApi.set_label",
411
+ :header_params => header_params,
412
+ :query_params => query_params,
413
+ :form_params => form_params,
414
+ :body => post_body,
415
+ :auth_names => auth_names,
416
+ :return_type => return_type
417
+ )
418
+
419
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
420
+ if @api_client.config.debugging
421
+ @api_client.config.logger.debug "API called: ContentSourcePackagesApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
422
+ end
423
+ return data, status_code, headers
424
+ end
425
+
426
+ # Unset a label
427
+ # Unset a single pulp_label on the object.
428
+ # @param deb_source_package_href [String]
429
+ # @param unset_label [UnsetLabel]
430
+ # @param [Hash] opts the optional parameters
431
+ # @return [UnsetLabelResponse]
432
+ def unset_label(deb_source_package_href, unset_label, opts = {})
433
+ data, _status_code, _headers = unset_label_with_http_info(deb_source_package_href, unset_label, opts)
434
+ data
435
+ end
436
+
437
+ # Unset a label
438
+ # Unset a single pulp_label on the object.
439
+ # @param deb_source_package_href [String]
440
+ # @param unset_label [UnsetLabel]
441
+ # @param [Hash] opts the optional parameters
442
+ # @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
443
+ def unset_label_with_http_info(deb_source_package_href, unset_label, opts = {})
444
+ if @api_client.config.debugging
445
+ @api_client.config.logger.debug 'Calling API: ContentSourcePackagesApi.unset_label ...'
446
+ end
447
+ # verify the required parameter 'deb_source_package_href' is set
448
+ if @api_client.config.client_side_validation && deb_source_package_href.nil?
449
+ fail ArgumentError, "Missing the required parameter 'deb_source_package_href' when calling ContentSourcePackagesApi.unset_label"
450
+ end
451
+ # verify the required parameter 'unset_label' is set
452
+ if @api_client.config.client_side_validation && unset_label.nil?
453
+ fail ArgumentError, "Missing the required parameter 'unset_label' when calling ContentSourcePackagesApi.unset_label"
454
+ end
455
+ # resource path
456
+ local_var_path = '{deb_source_package_href}unset_label/'.sub('{' + 'deb_source_package_href' + '}', CGI.escape(deb_source_package_href.to_s).gsub('%2F', '/'))
457
+
458
+ # query parameters
459
+ query_params = opts[:query_params] || {}
460
+
461
+ # header parameters
462
+ header_params = opts[:header_params] || {}
463
+ # HTTP header 'Accept' (if needed)
464
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
465
+ # HTTP header 'Content-Type'
466
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
467
+ if !content_type.nil?
468
+ header_params['Content-Type'] = content_type
469
+ end
470
+
471
+ # form parameters
472
+ form_params = opts[:form_params] || {}
473
+
474
+ # http body (model)
475
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(unset_label)
476
+
477
+ # return_type
478
+ return_type = opts[:debug_return_type] || 'UnsetLabelResponse'
479
+
480
+ # auth_names
481
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
482
+
483
+ new_options = opts.merge(
484
+ :operation => :"ContentSourcePackagesApi.unset_label",
485
+ :header_params => header_params,
486
+ :query_params => query_params,
487
+ :form_params => form_params,
488
+ :body => post_body,
489
+ :auth_names => auth_names,
490
+ :return_type => return_type
491
+ )
492
+
493
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
494
+ if @api_client.config.debugging
495
+ @api_client.config.logger.debug "API called: ContentSourcePackagesApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
496
+ end
497
+ return data, status_code, headers
498
+ end
342
499
  end
343
500
  end