pulp_python_client 3.4.0 → 3.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (266) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/README.md +4 -4
  4. data/docs/ContentPackagesApi.md +4 -0
  5. data/docs/RepositoryAddRemoveContent.md +2 -2
  6. data/lib/pulp_python_client/api/content_packages_api.rb +7 -1
  7. data/lib/pulp_python_client/api/distributions_pypi_api.rb +1 -1
  8. data/lib/pulp_python_client/api/publications_pypi_api.rb +1 -1
  9. data/lib/pulp_python_client/api/pypi_api.rb +1 -1
  10. data/lib/pulp_python_client/api/pypi_legacy_api.rb +1 -1
  11. data/lib/pulp_python_client/api/pypi_metadata_api.rb +1 -1
  12. data/lib/pulp_python_client/api/pypi_simple_api.rb +1 -1
  13. data/lib/pulp_python_client/api/remotes_python_api.rb +1 -1
  14. data/lib/pulp_python_client/api/repositories_python_api.rb +1 -1
  15. data/lib/pulp_python_client/api/repositories_python_versions_api.rb +1 -1
  16. data/lib/pulp_python_client/api_client.rb +12 -8
  17. data/lib/pulp_python_client/api_error.rb +1 -1
  18. data/lib/pulp_python_client/configuration.rb +8 -1
  19. data/lib/pulp_python_client/models/async_operation_response.rb +1 -1
  20. data/lib/pulp_python_client/models/content_summary.rb +1 -1
  21. data/lib/pulp_python_client/models/content_summary_response.rb +1 -1
  22. data/lib/pulp_python_client/models/exclude_platforms_enum.rb +1 -1
  23. data/lib/pulp_python_client/models/package_metadata_response.rb +1 -1
  24. data/lib/pulp_python_client/models/package_types_enum.rb +1 -1
  25. data/lib/pulp_python_client/models/package_upload.rb +1 -1
  26. data/lib/pulp_python_client/models/package_upload_task_response.rb +1 -1
  27. data/lib/pulp_python_client/models/paginated_repository_version_response_list.rb +1 -1
  28. data/lib/pulp_python_client/models/paginatedpython_python_distribution_response_list.rb +1 -1
  29. data/lib/pulp_python_client/models/paginatedpython_python_package_content_response_list.rb +1 -1
  30. data/lib/pulp_python_client/models/paginatedpython_python_publication_response_list.rb +1 -1
  31. data/lib/pulp_python_client/models/paginatedpython_python_remote_response_list.rb +1 -1
  32. data/lib/pulp_python_client/models/paginatedpython_python_repository_response_list.rb +1 -1
  33. data/lib/pulp_python_client/models/patchedpython_python_distribution.rb +1 -1
  34. data/lib/pulp_python_client/models/patchedpython_python_remote.rb +1 -1
  35. data/lib/pulp_python_client/models/patchedpython_python_repository.rb +1 -1
  36. data/lib/pulp_python_client/models/policy_enum.rb +1 -1
  37. data/lib/pulp_python_client/models/python_bander_remote.rb +1 -1
  38. data/lib/pulp_python_client/models/python_python_distribution.rb +1 -1
  39. data/lib/pulp_python_client/models/python_python_distribution_response.rb +1 -1
  40. data/lib/pulp_python_client/models/python_python_package_content.rb +1 -1
  41. data/lib/pulp_python_client/models/python_python_package_content_response.rb +1 -1
  42. data/lib/pulp_python_client/models/python_python_publication.rb +1 -1
  43. data/lib/pulp_python_client/models/python_python_publication_response.rb +1 -1
  44. data/lib/pulp_python_client/models/python_python_remote.rb +1 -1
  45. data/lib/pulp_python_client/models/python_python_remote_response.rb +1 -1
  46. data/lib/pulp_python_client/models/python_python_repository.rb +1 -1
  47. data/lib/pulp_python_client/models/python_python_repository_response.rb +1 -1
  48. data/lib/pulp_python_client/models/repository_add_remove_content.rb +3 -3
  49. data/lib/pulp_python_client/models/repository_sync_url.rb +1 -1
  50. data/lib/pulp_python_client/models/repository_version.rb +1 -1
  51. data/lib/pulp_python_client/models/repository_version_response.rb +1 -1
  52. data/lib/pulp_python_client/models/summary_response.rb +1 -1
  53. data/lib/pulp_python_client/version.rb +2 -2
  54. data/lib/pulp_python_client.rb +1 -1
  55. data/pulp_python_client.gemspec +1 -1
  56. data/spec/api/content_packages_api_spec.rb +3 -1
  57. data/spec/api/distributions_pypi_api_spec.rb +1 -1
  58. data/spec/api/publications_pypi_api_spec.rb +1 -1
  59. data/spec/api/pypi_api_spec.rb +1 -1
  60. data/spec/api/pypi_legacy_api_spec.rb +1 -1
  61. data/spec/api/pypi_metadata_api_spec.rb +1 -1
  62. data/spec/api/pypi_simple_api_spec.rb +1 -1
  63. data/spec/api/remotes_python_api_spec.rb +1 -1
  64. data/spec/api/repositories_python_api_spec.rb +1 -1
  65. data/spec/api/repositories_python_versions_api_spec.rb +1 -1
  66. data/spec/api_client_spec.rb +2 -2
  67. data/spec/configuration_spec.rb +1 -1
  68. data/spec/models/async_operation_response_spec.rb +1 -1
  69. data/spec/models/content_summary_response_spec.rb +1 -1
  70. data/spec/models/content_summary_spec.rb +1 -1
  71. data/spec/models/exclude_platforms_enum_spec.rb +1 -1
  72. data/spec/models/package_metadata_response_spec.rb +1 -1
  73. data/spec/models/package_types_enum_spec.rb +1 -1
  74. data/spec/models/package_upload_spec.rb +1 -1
  75. data/spec/models/package_upload_task_response_spec.rb +1 -1
  76. data/spec/models/paginated_repository_version_response_list_spec.rb +1 -1
  77. data/spec/models/paginatedpython_python_distribution_response_list_spec.rb +1 -1
  78. data/spec/models/paginatedpython_python_package_content_response_list_spec.rb +1 -1
  79. data/spec/models/paginatedpython_python_publication_response_list_spec.rb +1 -1
  80. data/spec/models/paginatedpython_python_remote_response_list_spec.rb +1 -1
  81. data/spec/models/paginatedpython_python_repository_response_list_spec.rb +1 -1
  82. data/spec/models/patchedpython_python_distribution_spec.rb +1 -1
  83. data/spec/models/patchedpython_python_remote_spec.rb +1 -1
  84. data/spec/models/patchedpython_python_repository_spec.rb +1 -1
  85. data/spec/models/policy_enum_spec.rb +1 -1
  86. data/spec/models/python_bander_remote_spec.rb +1 -1
  87. data/spec/models/python_python_distribution_response_spec.rb +1 -1
  88. data/spec/models/python_python_distribution_spec.rb +1 -1
  89. data/spec/models/python_python_package_content_response_spec.rb +1 -1
  90. data/spec/models/python_python_package_content_spec.rb +1 -1
  91. data/spec/models/python_python_publication_response_spec.rb +1 -1
  92. data/spec/models/python_python_publication_spec.rb +1 -1
  93. data/spec/models/python_python_remote_response_spec.rb +1 -1
  94. data/spec/models/python_python_remote_spec.rb +1 -1
  95. data/spec/models/python_python_repository_response_spec.rb +1 -1
  96. data/spec/models/python_python_repository_spec.rb +1 -1
  97. data/spec/models/repository_add_remove_content_spec.rb +1 -1
  98. data/spec/models/repository_sync_url_spec.rb +1 -1
  99. data/spec/models/repository_version_response_spec.rb +1 -1
  100. data/spec/models/repository_version_spec.rb +1 -1
  101. data/spec/models/summary_response_spec.rb +1 -1
  102. data/spec/spec_helper.rb +1 -1
  103. metadata +33 -196
  104. data/build/lib/pulpcore/__init__.py +0 -2
  105. data/build/lib/pulpcore/client/__init__.py +0 -2
  106. data/build/lib/pulpcore/client/pulp_python/__init__.py +0 -75
  107. data/build/lib/pulpcore/client/pulp_python/api/__init__.py +0 -15
  108. data/build/lib/pulpcore/client/pulp_python/api/content_packages_api.py +0 -626
  109. data/build/lib/pulpcore/client/pulp_python/api/distributions_pypi_api.py +0 -830
  110. data/build/lib/pulpcore/client/pulp_python/api/publications_pypi_api.py +0 -566
  111. data/build/lib/pulpcore/client/pulp_python/api/pypi_api.py +0 -162
  112. data/build/lib/pulpcore/client/pulp_python/api/pypi_legacy_api.py +0 -185
  113. data/build/lib/pulpcore/client/pulp_python/api/pypi_metadata_api.py +0 -171
  114. data/build/lib/pulpcore/client/pulp_python/api/pypi_simple_api.py +0 -434
  115. data/build/lib/pulpcore/client/pulp_python/api/remotes_python_api.py +0 -972
  116. data/build/lib/pulpcore/client/pulp_python/api/repositories_python_api.py +0 -1063
  117. data/build/lib/pulpcore/client/pulp_python/api/repositories_python_versions_api.py +0 -614
  118. data/build/lib/pulpcore/client/pulp_python/api_client.py +0 -667
  119. data/build/lib/pulpcore/client/pulp_python/configuration.py +0 -427
  120. data/build/lib/pulpcore/client/pulp_python/exceptions.py +0 -121
  121. data/build/lib/pulpcore/client/pulp_python/models/__init__.py +0 -51
  122. data/build/lib/pulpcore/client/pulp_python/models/async_operation_response.py +0 -124
  123. data/build/lib/pulpcore/client/pulp_python/models/content_summary.py +0 -176
  124. data/build/lib/pulpcore/client/pulp_python/models/content_summary_response.py +0 -176
  125. data/build/lib/pulpcore/client/pulp_python/models/exclude_platforms_enum.py +0 -103
  126. data/build/lib/pulpcore/client/pulp_python/models/package_metadata_response.py +0 -209
  127. data/build/lib/pulpcore/client/pulp_python/models/package_types_enum.py +0 -107
  128. data/build/lib/pulpcore/client/pulp_python/models/package_upload.py +0 -187
  129. data/build/lib/pulpcore/client/pulp_python/models/package_upload_task_response.py +0 -176
  130. data/build/lib/pulpcore/client/pulp_python/models/paginated_repository_version_response_list.py +0 -197
  131. data/build/lib/pulpcore/client/pulp_python/models/paginatedpython_python_distribution_response_list.py +0 -197
  132. data/build/lib/pulpcore/client/pulp_python/models/paginatedpython_python_package_content_response_list.py +0 -197
  133. data/build/lib/pulpcore/client/pulp_python/models/paginatedpython_python_publication_response_list.py +0 -197
  134. data/build/lib/pulpcore/client/pulp_python/models/paginatedpython_python_remote_response_list.py +0 -197
  135. data/build/lib/pulpcore/client/pulp_python/models/paginatedpython_python_repository_response_list.py +0 -197
  136. data/build/lib/pulpcore/client/pulp_python/models/patchedpython_python_distribution.py +0 -286
  137. data/build/lib/pulpcore/client/pulp_python/models/patchedpython_python_remote.py +0 -823
  138. data/build/lib/pulpcore/client/pulp_python/models/patchedpython_python_repository.py +0 -259
  139. data/build/lib/pulpcore/client/pulp_python/models/policy_enum.py +0 -102
  140. data/build/lib/pulpcore/client/pulp_python/models/python_bander_remote.py +0 -181
  141. data/build/lib/pulpcore/client/pulp_python/models/python_python_distribution.py +0 -288
  142. data/build/lib/pulpcore/client/pulp_python/models/python_python_distribution_response.py +0 -368
  143. data/build/lib/pulpcore/client/pulp_python/models/python_python_package_content.py +0 -824
  144. data/build/lib/pulpcore/client/pulp_python/models/python_python_package_content_response.py +0 -933
  145. data/build/lib/pulpcore/client/pulp_python/models/python_python_publication.py +0 -149
  146. data/build/lib/pulpcore/client/pulp_python/models/python_python_publication_response.py +0 -231
  147. data/build/lib/pulpcore/client/pulp_python/models/python_python_remote.py +0 -825
  148. data/build/lib/pulpcore/client/pulp_python/models/python_python_remote_response.py +0 -772
  149. data/build/lib/pulpcore/client/pulp_python/models/python_python_repository.py +0 -260
  150. data/build/lib/pulpcore/client/pulp_python/models/python_python_repository_response.py +0 -366
  151. data/build/lib/pulpcore/client/pulp_python/models/repository_add_remove_content.py +0 -179
  152. data/build/lib/pulpcore/client/pulp_python/models/repository_sync_url.py +0 -151
  153. data/build/lib/pulpcore/client/pulp_python/models/repository_version.py +0 -123
  154. data/build/lib/pulpcore/client/pulp_python/models/repository_version_response.py +0 -257
  155. data/build/lib/pulpcore/client/pulp_python/models/summary_response.py +0 -182
  156. data/build/lib/pulpcore/client/pulp_python/rest.py +0 -292
  157. data/dist/pulp_python-client-3.4.0.tar.gz +0 -0
  158. data/dist/pulp_python_client-3.4.0-py3-none-any.whl +0 -0
  159. data/pulp_python_client.egg-info/PKG-INFO +0 -15
  160. data/pulp_python_client.egg-info/SOURCES.txt +0 -105
  161. data/pulp_python_client.egg-info/dependency_links.txt +0 -1
  162. data/pulp_python_client.egg-info/requires.txt +0 -4
  163. data/pulp_python_client.egg-info/top_level.txt +0 -1
  164. data/pulpcore/__init__.py +0 -2
  165. data/pulpcore/client/__init__.py +0 -2
  166. data/pulpcore/client/pulp_python/__init__.py +0 -75
  167. data/pulpcore/client/pulp_python/api/__init__.py +0 -15
  168. data/pulpcore/client/pulp_python/api/content_packages_api.py +0 -626
  169. data/pulpcore/client/pulp_python/api/distributions_pypi_api.py +0 -830
  170. data/pulpcore/client/pulp_python/api/publications_pypi_api.py +0 -566
  171. data/pulpcore/client/pulp_python/api/pypi_api.py +0 -162
  172. data/pulpcore/client/pulp_python/api/pypi_legacy_api.py +0 -185
  173. data/pulpcore/client/pulp_python/api/pypi_metadata_api.py +0 -171
  174. data/pulpcore/client/pulp_python/api/pypi_simple_api.py +0 -434
  175. data/pulpcore/client/pulp_python/api/remotes_python_api.py +0 -972
  176. data/pulpcore/client/pulp_python/api/repositories_python_api.py +0 -1063
  177. data/pulpcore/client/pulp_python/api/repositories_python_versions_api.py +0 -614
  178. data/pulpcore/client/pulp_python/api_client.py +0 -667
  179. data/pulpcore/client/pulp_python/configuration.py +0 -427
  180. data/pulpcore/client/pulp_python/exceptions.py +0 -121
  181. data/pulpcore/client/pulp_python/models/__init__.py +0 -51
  182. data/pulpcore/client/pulp_python/models/async_operation_response.py +0 -124
  183. data/pulpcore/client/pulp_python/models/content_summary.py +0 -176
  184. data/pulpcore/client/pulp_python/models/content_summary_response.py +0 -176
  185. data/pulpcore/client/pulp_python/models/exclude_platforms_enum.py +0 -103
  186. data/pulpcore/client/pulp_python/models/package_metadata_response.py +0 -209
  187. data/pulpcore/client/pulp_python/models/package_types_enum.py +0 -107
  188. data/pulpcore/client/pulp_python/models/package_upload.py +0 -187
  189. data/pulpcore/client/pulp_python/models/package_upload_task_response.py +0 -176
  190. data/pulpcore/client/pulp_python/models/paginated_repository_version_response_list.py +0 -197
  191. data/pulpcore/client/pulp_python/models/paginatedpython_python_distribution_response_list.py +0 -197
  192. data/pulpcore/client/pulp_python/models/paginatedpython_python_package_content_response_list.py +0 -197
  193. data/pulpcore/client/pulp_python/models/paginatedpython_python_publication_response_list.py +0 -197
  194. data/pulpcore/client/pulp_python/models/paginatedpython_python_remote_response_list.py +0 -197
  195. data/pulpcore/client/pulp_python/models/paginatedpython_python_repository_response_list.py +0 -197
  196. data/pulpcore/client/pulp_python/models/patchedpython_python_distribution.py +0 -286
  197. data/pulpcore/client/pulp_python/models/patchedpython_python_remote.py +0 -823
  198. data/pulpcore/client/pulp_python/models/patchedpython_python_repository.py +0 -259
  199. data/pulpcore/client/pulp_python/models/policy_enum.py +0 -102
  200. data/pulpcore/client/pulp_python/models/python_bander_remote.py +0 -181
  201. data/pulpcore/client/pulp_python/models/python_python_distribution.py +0 -288
  202. data/pulpcore/client/pulp_python/models/python_python_distribution_response.py +0 -368
  203. data/pulpcore/client/pulp_python/models/python_python_package_content.py +0 -824
  204. data/pulpcore/client/pulp_python/models/python_python_package_content_response.py +0 -933
  205. data/pulpcore/client/pulp_python/models/python_python_publication.py +0 -149
  206. data/pulpcore/client/pulp_python/models/python_python_publication_response.py +0 -231
  207. data/pulpcore/client/pulp_python/models/python_python_remote.py +0 -825
  208. data/pulpcore/client/pulp_python/models/python_python_remote_response.py +0 -772
  209. data/pulpcore/client/pulp_python/models/python_python_repository.py +0 -260
  210. data/pulpcore/client/pulp_python/models/python_python_repository_response.py +0 -366
  211. data/pulpcore/client/pulp_python/models/repository_add_remove_content.py +0 -179
  212. data/pulpcore/client/pulp_python/models/repository_sync_url.py +0 -151
  213. data/pulpcore/client/pulp_python/models/repository_version.py +0 -123
  214. data/pulpcore/client/pulp_python/models/repository_version_response.py +0 -257
  215. data/pulpcore/client/pulp_python/models/summary_response.py +0 -182
  216. data/pulpcore/client/pulp_python/rest.py +0 -292
  217. data/requirements.txt +0 -6
  218. data/setup.cfg +0 -2
  219. data/setup.py +0 -42
  220. data/test/__init__.py +0 -0
  221. data/test/test_async_operation_response.py +0 -54
  222. data/test/test_content_packages_api.py +0 -55
  223. data/test/test_content_summary.py +0 -70
  224. data/test/test_content_summary_response.py +0 -70
  225. data/test/test_distributions_pypi_api.py +0 -76
  226. data/test/test_exclude_platforms_enum.py +0 -52
  227. data/test/test_package_metadata_response.py +0 -60
  228. data/test/test_package_types_enum.py +0 -52
  229. data/test/test_package_upload.py +0 -57
  230. data/test/test_package_upload_task_response.py +0 -58
  231. data/test/test_paginated_repository_version_response_list.py +0 -64
  232. data/test/test_paginatedpython_python_distribution_response_list.py +0 -68
  233. data/test/test_paginatedpython_python_package_content_response_list.py +0 -88
  234. data/test/test_paginatedpython_python_publication_response_list.py +0 -65
  235. data/test/test_paginatedpython_python_remote_response_list.py +0 -88
  236. data/test/test_paginatedpython_python_repository_response_list.py +0 -68
  237. data/test/test_patchedpython_python_distribution.py +0 -59
  238. data/test/test_patchedpython_python_remote.py +0 -84
  239. data/test/test_patchedpython_python_repository.py +0 -58
  240. data/test/test_policy_enum.py +0 -52
  241. data/test/test_publications_pypi_api.py +0 -62
  242. data/test/test_pypi_api.py +0 -41
  243. data/test/test_pypi_legacy_api.py +0 -41
  244. data/test/test_pypi_metadata_api.py +0 -41
  245. data/test/test_pypi_simple_api.py +0 -55
  246. data/test/test_python_bander_remote.py +0 -57
  247. data/test/test_python_python_distribution.py +0 -61
  248. data/test/test_python_python_distribution_response.py +0 -64
  249. data/test/test_python_python_package_content.py +0 -79
  250. data/test/test_python_python_package_content_response.py +0 -82
  251. data/test/test_python_python_publication.py +0 -54
  252. data/test/test_python_python_publication_response.py +0 -59
  253. data/test/test_python_python_remote.py +0 -86
  254. data/test/test_python_python_remote_response.py +0 -84
  255. data/test/test_python_python_repository.py +0 -59
  256. data/test/test_python_python_repository_response.py +0 -63
  257. data/test/test_remotes_python_api.py +0 -83
  258. data/test/test_repositories_python_api.py +0 -90
  259. data/test/test_repositories_python_versions_api.py +0 -61
  260. data/test/test_repository_add_remove_content.py +0 -59
  261. data/test/test_repository_sync_url.py +0 -54
  262. data/test/test_repository_version.py +0 -53
  263. data/test/test_repository_version_response.py +0 -58
  264. data/test/test_summary_response.py +0 -58
  265. data/test-requirements.txt +0 -3
  266. data/tox.ini +0 -9
Binary file
@@ -1,15 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: pulp-python-client
3
- Version: 3.4.0
4
- Summary: Pulp 3 API
5
- Home-page: UNKNOWN
6
- Author: Pulp Team
7
- Author-email: pulp-list@redhat.com
8
- License: GPLv2+
9
- Keywords: pulp,pulpcore,client,Pulp 3 API
10
- Platform: UNKNOWN
11
- Requires-Python: >=3.4
12
-
13
- Fetch, Upload, Organize, and Distribute Software Packages # noqa: E501
14
-
15
-
@@ -1,105 +0,0 @@
1
- README.md
2
- setup.cfg
3
- setup.py
4
- pulp_python_client.egg-info/PKG-INFO
5
- pulp_python_client.egg-info/SOURCES.txt
6
- pulp_python_client.egg-info/dependency_links.txt
7
- pulp_python_client.egg-info/requires.txt
8
- pulp_python_client.egg-info/top_level.txt
9
- pulpcore/__init__.py
10
- pulpcore/client/__init__.py
11
- pulpcore/client/pulp_python/__init__.py
12
- pulpcore/client/pulp_python/api_client.py
13
- pulpcore/client/pulp_python/configuration.py
14
- pulpcore/client/pulp_python/exceptions.py
15
- pulpcore/client/pulp_python/rest.py
16
- pulpcore/client/pulp_python/api/__init__.py
17
- pulpcore/client/pulp_python/api/content_packages_api.py
18
- pulpcore/client/pulp_python/api/distributions_pypi_api.py
19
- pulpcore/client/pulp_python/api/publications_pypi_api.py
20
- pulpcore/client/pulp_python/api/pypi_api.py
21
- pulpcore/client/pulp_python/api/pypi_legacy_api.py
22
- pulpcore/client/pulp_python/api/pypi_metadata_api.py
23
- pulpcore/client/pulp_python/api/pypi_simple_api.py
24
- pulpcore/client/pulp_python/api/remotes_python_api.py
25
- pulpcore/client/pulp_python/api/repositories_python_api.py
26
- pulpcore/client/pulp_python/api/repositories_python_versions_api.py
27
- pulpcore/client/pulp_python/models/__init__.py
28
- pulpcore/client/pulp_python/models/async_operation_response.py
29
- pulpcore/client/pulp_python/models/content_summary.py
30
- pulpcore/client/pulp_python/models/content_summary_response.py
31
- pulpcore/client/pulp_python/models/exclude_platforms_enum.py
32
- pulpcore/client/pulp_python/models/package_metadata_response.py
33
- pulpcore/client/pulp_python/models/package_types_enum.py
34
- pulpcore/client/pulp_python/models/package_upload.py
35
- pulpcore/client/pulp_python/models/package_upload_task_response.py
36
- pulpcore/client/pulp_python/models/paginated_repository_version_response_list.py
37
- pulpcore/client/pulp_python/models/paginatedpython_python_distribution_response_list.py
38
- pulpcore/client/pulp_python/models/paginatedpython_python_package_content_response_list.py
39
- pulpcore/client/pulp_python/models/paginatedpython_python_publication_response_list.py
40
- pulpcore/client/pulp_python/models/paginatedpython_python_remote_response_list.py
41
- pulpcore/client/pulp_python/models/paginatedpython_python_repository_response_list.py
42
- pulpcore/client/pulp_python/models/patchedpython_python_distribution.py
43
- pulpcore/client/pulp_python/models/patchedpython_python_remote.py
44
- pulpcore/client/pulp_python/models/patchedpython_python_repository.py
45
- pulpcore/client/pulp_python/models/policy_enum.py
46
- pulpcore/client/pulp_python/models/python_bander_remote.py
47
- pulpcore/client/pulp_python/models/python_python_distribution.py
48
- pulpcore/client/pulp_python/models/python_python_distribution_response.py
49
- pulpcore/client/pulp_python/models/python_python_package_content.py
50
- pulpcore/client/pulp_python/models/python_python_package_content_response.py
51
- pulpcore/client/pulp_python/models/python_python_publication.py
52
- pulpcore/client/pulp_python/models/python_python_publication_response.py
53
- pulpcore/client/pulp_python/models/python_python_remote.py
54
- pulpcore/client/pulp_python/models/python_python_remote_response.py
55
- pulpcore/client/pulp_python/models/python_python_repository.py
56
- pulpcore/client/pulp_python/models/python_python_repository_response.py
57
- pulpcore/client/pulp_python/models/repository_add_remove_content.py
58
- pulpcore/client/pulp_python/models/repository_sync_url.py
59
- pulpcore/client/pulp_python/models/repository_version.py
60
- pulpcore/client/pulp_python/models/repository_version_response.py
61
- pulpcore/client/pulp_python/models/summary_response.py
62
- test/test_async_operation_response.py
63
- test/test_content_packages_api.py
64
- test/test_content_summary.py
65
- test/test_content_summary_response.py
66
- test/test_distributions_pypi_api.py
67
- test/test_exclude_platforms_enum.py
68
- test/test_package_metadata_response.py
69
- test/test_package_types_enum.py
70
- test/test_package_upload.py
71
- test/test_package_upload_task_response.py
72
- test/test_paginated_repository_version_response_list.py
73
- test/test_paginatedpython_python_distribution_response_list.py
74
- test/test_paginatedpython_python_package_content_response_list.py
75
- test/test_paginatedpython_python_publication_response_list.py
76
- test/test_paginatedpython_python_remote_response_list.py
77
- test/test_paginatedpython_python_repository_response_list.py
78
- test/test_patchedpython_python_distribution.py
79
- test/test_patchedpython_python_remote.py
80
- test/test_patchedpython_python_repository.py
81
- test/test_policy_enum.py
82
- test/test_publications_pypi_api.py
83
- test/test_pypi_api.py
84
- test/test_pypi_legacy_api.py
85
- test/test_pypi_metadata_api.py
86
- test/test_pypi_simple_api.py
87
- test/test_python_bander_remote.py
88
- test/test_python_python_distribution.py
89
- test/test_python_python_distribution_response.py
90
- test/test_python_python_package_content.py
91
- test/test_python_python_package_content_response.py
92
- test/test_python_python_publication.py
93
- test/test_python_python_publication_response.py
94
- test/test_python_python_remote.py
95
- test/test_python_python_remote_response.py
96
- test/test_python_python_repository.py
97
- test/test_python_python_repository_response.py
98
- test/test_remotes_python_api.py
99
- test/test_repositories_python_api.py
100
- test/test_repositories_python_versions_api.py
101
- test/test_repository_add_remove_content.py
102
- test/test_repository_sync_url.py
103
- test/test_repository_version.py
104
- test/test_repository_version_response.py
105
- test/test_summary_response.py
@@ -1,4 +0,0 @@
1
- urllib3>=1.15
2
- six>=1.10
3
- certifi
4
- python-dateutil
@@ -1 +0,0 @@
1
- pulpcore
data/pulpcore/__init__.py DELETED
@@ -1,2 +0,0 @@
1
- from pkgutil import extend_path
2
- __path__ = extend_path(__path__, __name__)
@@ -1,2 +0,0 @@
1
- from pkgutil import extend_path
2
- __path__ = extend_path(__path__, __name__)
@@ -1,75 +0,0 @@
1
- # coding: utf-8
2
-
3
- # flake8: noqa
4
-
5
- """
6
- Pulp 3 API
7
-
8
- Fetch, Upload, Organize, and Distribute Software Packages # noqa: E501
9
-
10
- The version of the OpenAPI document: v3
11
- Contact: pulp-list@redhat.com
12
- Generated by: https://openapi-generator.tech
13
- """
14
-
15
-
16
- from __future__ import absolute_import
17
-
18
- __version__ = "3.4.0"
19
-
20
- # import apis into sdk package
21
- from pulpcore.client.pulp_python.api.content_packages_api import ContentPackagesApi
22
- from pulpcore.client.pulp_python.api.distributions_pypi_api import DistributionsPypiApi
23
- from pulpcore.client.pulp_python.api.publications_pypi_api import PublicationsPypiApi
24
- from pulpcore.client.pulp_python.api.pypi_api import PypiApi
25
- from pulpcore.client.pulp_python.api.pypi_legacy_api import PypiLegacyApi
26
- from pulpcore.client.pulp_python.api.pypi_metadata_api import PypiMetadataApi
27
- from pulpcore.client.pulp_python.api.pypi_simple_api import PypiSimpleApi
28
- from pulpcore.client.pulp_python.api.remotes_python_api import RemotesPythonApi
29
- from pulpcore.client.pulp_python.api.repositories_python_api import RepositoriesPythonApi
30
- from pulpcore.client.pulp_python.api.repositories_python_versions_api import RepositoriesPythonVersionsApi
31
-
32
- # import ApiClient
33
- from pulpcore.client.pulp_python.api_client import ApiClient
34
- from pulpcore.client.pulp_python.configuration import Configuration
35
- from pulpcore.client.pulp_python.exceptions import OpenApiException
36
- from pulpcore.client.pulp_python.exceptions import ApiTypeError
37
- from pulpcore.client.pulp_python.exceptions import ApiValueError
38
- from pulpcore.client.pulp_python.exceptions import ApiKeyError
39
- from pulpcore.client.pulp_python.exceptions import ApiException
40
- # import models into sdk package
41
- from pulpcore.client.pulp_python.models.async_operation_response import AsyncOperationResponse
42
- from pulpcore.client.pulp_python.models.content_summary import ContentSummary
43
- from pulpcore.client.pulp_python.models.content_summary_response import ContentSummaryResponse
44
- from pulpcore.client.pulp_python.models.exclude_platforms_enum import ExcludePlatformsEnum
45
- from pulpcore.client.pulp_python.models.package_metadata_response import PackageMetadataResponse
46
- from pulpcore.client.pulp_python.models.package_types_enum import PackageTypesEnum
47
- from pulpcore.client.pulp_python.models.package_upload import PackageUpload
48
- from pulpcore.client.pulp_python.models.package_upload_task_response import PackageUploadTaskResponse
49
- from pulpcore.client.pulp_python.models.paginated_repository_version_response_list import PaginatedRepositoryVersionResponseList
50
- from pulpcore.client.pulp_python.models.paginatedpython_python_distribution_response_list import PaginatedpythonPythonDistributionResponseList
51
- from pulpcore.client.pulp_python.models.paginatedpython_python_package_content_response_list import PaginatedpythonPythonPackageContentResponseList
52
- from pulpcore.client.pulp_python.models.paginatedpython_python_publication_response_list import PaginatedpythonPythonPublicationResponseList
53
- from pulpcore.client.pulp_python.models.paginatedpython_python_remote_response_list import PaginatedpythonPythonRemoteResponseList
54
- from pulpcore.client.pulp_python.models.paginatedpython_python_repository_response_list import PaginatedpythonPythonRepositoryResponseList
55
- from pulpcore.client.pulp_python.models.patchedpython_python_distribution import PatchedpythonPythonDistribution
56
- from pulpcore.client.pulp_python.models.patchedpython_python_remote import PatchedpythonPythonRemote
57
- from pulpcore.client.pulp_python.models.patchedpython_python_repository import PatchedpythonPythonRepository
58
- from pulpcore.client.pulp_python.models.policy_enum import PolicyEnum
59
- from pulpcore.client.pulp_python.models.python_bander_remote import PythonBanderRemote
60
- from pulpcore.client.pulp_python.models.python_python_distribution import PythonPythonDistribution
61
- from pulpcore.client.pulp_python.models.python_python_distribution_response import PythonPythonDistributionResponse
62
- from pulpcore.client.pulp_python.models.python_python_package_content import PythonPythonPackageContent
63
- from pulpcore.client.pulp_python.models.python_python_package_content_response import PythonPythonPackageContentResponse
64
- from pulpcore.client.pulp_python.models.python_python_publication import PythonPythonPublication
65
- from pulpcore.client.pulp_python.models.python_python_publication_response import PythonPythonPublicationResponse
66
- from pulpcore.client.pulp_python.models.python_python_remote import PythonPythonRemote
67
- from pulpcore.client.pulp_python.models.python_python_remote_response import PythonPythonRemoteResponse
68
- from pulpcore.client.pulp_python.models.python_python_repository import PythonPythonRepository
69
- from pulpcore.client.pulp_python.models.python_python_repository_response import PythonPythonRepositoryResponse
70
- from pulpcore.client.pulp_python.models.repository_add_remove_content import RepositoryAddRemoveContent
71
- from pulpcore.client.pulp_python.models.repository_sync_url import RepositorySyncURL
72
- from pulpcore.client.pulp_python.models.repository_version import RepositoryVersion
73
- from pulpcore.client.pulp_python.models.repository_version_response import RepositoryVersionResponse
74
- from pulpcore.client.pulp_python.models.summary_response import SummaryResponse
75
-
@@ -1,15 +0,0 @@
1
- from __future__ import absolute_import
2
-
3
- # flake8: noqa
4
-
5
- # import apis into api package
6
- from pulpcore.client.pulp_python.api.content_packages_api import ContentPackagesApi
7
- from pulpcore.client.pulp_python.api.distributions_pypi_api import DistributionsPypiApi
8
- from pulpcore.client.pulp_python.api.publications_pypi_api import PublicationsPypiApi
9
- from pulpcore.client.pulp_python.api.pypi_api import PypiApi
10
- from pulpcore.client.pulp_python.api.pypi_legacy_api import PypiLegacyApi
11
- from pulpcore.client.pulp_python.api.pypi_metadata_api import PypiMetadataApi
12
- from pulpcore.client.pulp_python.api.pypi_simple_api import PypiSimpleApi
13
- from pulpcore.client.pulp_python.api.remotes_python_api import RemotesPythonApi
14
- from pulpcore.client.pulp_python.api.repositories_python_api import RepositoriesPythonApi
15
- from pulpcore.client.pulp_python.api.repositories_python_versions_api import RepositoriesPythonVersionsApi
@@ -1,626 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- Pulp 3 API
5
-
6
- Fetch, Upload, Organize, and Distribute Software Packages # noqa: E501
7
-
8
- The version of the OpenAPI document: v3
9
- Contact: pulp-list@redhat.com
10
- Generated by: https://openapi-generator.tech
11
- """
12
-
13
-
14
- from __future__ import absolute_import
15
-
16
- import re # noqa: F401
17
-
18
- # python 2 and python 3 compatibility library
19
- import six
20
-
21
- from pulpcore.client.pulp_python.api_client import ApiClient
22
- from pulpcore.client.pulp_python.exceptions import ( # noqa: F401
23
- ApiTypeError,
24
- ApiValueError
25
- )
26
-
27
-
28
- class ContentPackagesApi(object):
29
- """NOTE: This class is auto generated by OpenAPI Generator
30
- Ref: https://openapi-generator.tech
31
-
32
- Do not edit the class manually.
33
- """
34
-
35
- def __init__(self, api_client=None):
36
- if api_client is None:
37
- api_client = ApiClient()
38
- self.api_client = api_client
39
-
40
- def create(self, relative_path, **kwargs): # noqa: E501
41
- """Create a python package content # noqa: E501
42
-
43
- Trigger an asynchronous task to create content,optionally create new repository version. # noqa: E501
44
- This method makes a synchronous HTTP request by default. To make an
45
- asynchronous HTTP request, please pass async_req=True
46
- >>> thread = api.create(relative_path, async_req=True)
47
- >>> result = thread.get()
48
-
49
- :param async_req bool: execute request asynchronously
50
- :param str relative_path: Path where the artifact is located relative to distributions base_path (required)
51
- :param str artifact: Artifact file representing the physical content
52
- :param file file: An uploaded file that may be turned into the artifact of the content unit.
53
- :param str repository: A URI of a repository the new content unit should be associated with.
54
- :param str sha256: The SHA256 digest of this package.
55
- :param str summary: A one-line summary of what the package does.
56
- :param str description: A longer description of the package that can run to several paragraphs.
57
- :param str description_content_type: A string stating the markup syntax (if any) used in the distribution’s description, so that tools can intelligently render the description.
58
- :param str keywords: Additional keywords to be used to assist searching for the package in a larger catalog.
59
- :param str home_page: The URL for the package's home page.
60
- :param str download_url: Legacy field denoting the URL from which this package can be downloaded.
61
- :param str author: Text containing the author's name. Contact information can also be added, separated with newlines.
62
- :param str author_email: The author's e-mail address.
63
- :param str maintainer: The maintainer's name at a minimum; additional contact information may be provided.
64
- :param str maintainer_email: The maintainer's e-mail address.
65
- :param str license: Text indicating the license covering the distribution
66
- :param str requires_python: The Python version(s) that the distribution is guaranteed to be compatible with.
67
- :param str project_url: A browsable URL for the project and a label for it, separated by a comma.
68
- :param object project_urls: A dictionary of labels and URLs for the project.
69
- :param str platform: A comma-separated list of platform specifications, summarizing the operating systems supported by the package.
70
- :param str supported_platform: Field to specify the OS and CPU for which the binary package was compiled.
71
- :param object requires_dist: A JSON list containing names of some other distutils project required by this distribution.
72
- :param object provides_dist: A JSON list containing names of a Distutils project which is contained within this distribution.
73
- :param object obsoletes_dist: A JSON list containing names of a distutils project's distribution which this distribution renders obsolete, meaning that the two projects should not be installed at the same time.
74
- :param object requires_external: A JSON list containing some dependency in the system that the distribution is to be used.
75
- :param object classifiers: A JSON list containing classification values for a Python package.
76
- :param _preload_content: if False, the urllib3.HTTPResponse object will
77
- be returned without reading/decoding response
78
- data. Default is True.
79
- :param _request_timeout: timeout setting for this request. If one
80
- number provided, it will be total request
81
- timeout. It can also be a pair (tuple) of
82
- (connection, read) timeouts.
83
- :return: AsyncOperationResponse
84
- If the method is called asynchronously,
85
- returns the request thread.
86
- """
87
- kwargs['_return_http_data_only'] = True
88
- return self.create_with_http_info(relative_path, **kwargs) # noqa: E501
89
-
90
- def create_with_http_info(self, relative_path, **kwargs): # noqa: E501
91
- """Create a python package content # noqa: E501
92
-
93
- Trigger an asynchronous task to create content,optionally create new repository version. # noqa: E501
94
- This method makes a synchronous HTTP request by default. To make an
95
- asynchronous HTTP request, please pass async_req=True
96
- >>> thread = api.create_with_http_info(relative_path, async_req=True)
97
- >>> result = thread.get()
98
-
99
- :param async_req bool: execute request asynchronously
100
- :param str relative_path: Path where the artifact is located relative to distributions base_path (required)
101
- :param str artifact: Artifact file representing the physical content
102
- :param file file: An uploaded file that may be turned into the artifact of the content unit.
103
- :param str repository: A URI of a repository the new content unit should be associated with.
104
- :param str sha256: The SHA256 digest of this package.
105
- :param str summary: A one-line summary of what the package does.
106
- :param str description: A longer description of the package that can run to several paragraphs.
107
- :param str description_content_type: A string stating the markup syntax (if any) used in the distribution’s description, so that tools can intelligently render the description.
108
- :param str keywords: Additional keywords to be used to assist searching for the package in a larger catalog.
109
- :param str home_page: The URL for the package's home page.
110
- :param str download_url: Legacy field denoting the URL from which this package can be downloaded.
111
- :param str author: Text containing the author's name. Contact information can also be added, separated with newlines.
112
- :param str author_email: The author's e-mail address.
113
- :param str maintainer: The maintainer's name at a minimum; additional contact information may be provided.
114
- :param str maintainer_email: The maintainer's e-mail address.
115
- :param str license: Text indicating the license covering the distribution
116
- :param str requires_python: The Python version(s) that the distribution is guaranteed to be compatible with.
117
- :param str project_url: A browsable URL for the project and a label for it, separated by a comma.
118
- :param object project_urls: A dictionary of labels and URLs for the project.
119
- :param str platform: A comma-separated list of platform specifications, summarizing the operating systems supported by the package.
120
- :param str supported_platform: Field to specify the OS and CPU for which the binary package was compiled.
121
- :param object requires_dist: A JSON list containing names of some other distutils project required by this distribution.
122
- :param object provides_dist: A JSON list containing names of a Distutils project which is contained within this distribution.
123
- :param object obsoletes_dist: A JSON list containing names of a distutils project's distribution which this distribution renders obsolete, meaning that the two projects should not be installed at the same time.
124
- :param object requires_external: A JSON list containing some dependency in the system that the distribution is to be used.
125
- :param object classifiers: A JSON list containing classification values for a Python package.
126
- :param _return_http_data_only: response data without head status code
127
- and headers
128
- :param _preload_content: if False, the urllib3.HTTPResponse object will
129
- be returned without reading/decoding response
130
- data. Default is True.
131
- :param _request_timeout: timeout setting for this request. If one
132
- number provided, it will be total request
133
- timeout. It can also be a pair (tuple) of
134
- (connection, read) timeouts.
135
- :return: tuple(AsyncOperationResponse, status_code(int), headers(HTTPHeaderDict))
136
- If the method is called asynchronously,
137
- returns the request thread.
138
- """
139
-
140
- local_var_params = locals()
141
-
142
- all_params = [
143
- 'relative_path',
144
- 'artifact',
145
- 'file',
146
- 'repository',
147
- 'sha256',
148
- 'summary',
149
- 'description',
150
- 'description_content_type',
151
- 'keywords',
152
- 'home_page',
153
- 'download_url',
154
- 'author',
155
- 'author_email',
156
- 'maintainer',
157
- 'maintainer_email',
158
- 'license',
159
- 'requires_python',
160
- 'project_url',
161
- 'project_urls',
162
- 'platform',
163
- 'supported_platform',
164
- 'requires_dist',
165
- 'provides_dist',
166
- 'obsoletes_dist',
167
- 'requires_external',
168
- 'classifiers'
169
- ]
170
- all_params.extend(
171
- [
172
- 'async_req',
173
- '_return_http_data_only',
174
- '_preload_content',
175
- '_request_timeout'
176
- ]
177
- )
178
-
179
- for key, val in six.iteritems(local_var_params['kwargs']):
180
- if key not in all_params:
181
- raise ApiTypeError(
182
- "Got an unexpected keyword argument '%s'"
183
- " to method create" % key
184
- )
185
- local_var_params[key] = val
186
- del local_var_params['kwargs']
187
- # verify the required parameter 'relative_path' is set
188
- if self.api_client.client_side_validation and ('relative_path' not in local_var_params or # noqa: E501
189
- local_var_params['relative_path'] is None): # noqa: E501
190
- raise ApiValueError("Missing the required parameter `relative_path` when calling `create`") # noqa: E501
191
-
192
- collection_formats = {}
193
-
194
- path_params = {}
195
-
196
- query_params = []
197
-
198
- header_params = {}
199
-
200
- form_params = []
201
- local_var_files = {}
202
- if 'artifact' in local_var_params:
203
- form_params.append(('artifact', local_var_params['artifact'])) # noqa: E501
204
- if 'relative_path' in local_var_params:
205
- form_params.append(('relative_path', local_var_params['relative_path'])) # noqa: E501
206
- if 'file' in local_var_params:
207
- local_var_files['file'] = local_var_params['file'] # noqa: E501
208
- if 'repository' in local_var_params:
209
- form_params.append(('repository', local_var_params['repository'])) # noqa: E501
210
- if 'sha256' in local_var_params:
211
- form_params.append(('sha256', local_var_params['sha256'])) # noqa: E501
212
- if 'summary' in local_var_params:
213
- form_params.append(('summary', local_var_params['summary'])) # noqa: E501
214
- if 'description' in local_var_params:
215
- form_params.append(('description', local_var_params['description'])) # noqa: E501
216
- if 'description_content_type' in local_var_params:
217
- form_params.append(('description_content_type', local_var_params['description_content_type'])) # noqa: E501
218
- if 'keywords' in local_var_params:
219
- form_params.append(('keywords', local_var_params['keywords'])) # noqa: E501
220
- if 'home_page' in local_var_params:
221
- form_params.append(('home_page', local_var_params['home_page'])) # noqa: E501
222
- if 'download_url' in local_var_params:
223
- form_params.append(('download_url', local_var_params['download_url'])) # noqa: E501
224
- if 'author' in local_var_params:
225
- form_params.append(('author', local_var_params['author'])) # noqa: E501
226
- if 'author_email' in local_var_params:
227
- form_params.append(('author_email', local_var_params['author_email'])) # noqa: E501
228
- if 'maintainer' in local_var_params:
229
- form_params.append(('maintainer', local_var_params['maintainer'])) # noqa: E501
230
- if 'maintainer_email' in local_var_params:
231
- form_params.append(('maintainer_email', local_var_params['maintainer_email'])) # noqa: E501
232
- if 'license' in local_var_params:
233
- form_params.append(('license', local_var_params['license'])) # noqa: E501
234
- if 'requires_python' in local_var_params:
235
- form_params.append(('requires_python', local_var_params['requires_python'])) # noqa: E501
236
- if 'project_url' in local_var_params:
237
- form_params.append(('project_url', local_var_params['project_url'])) # noqa: E501
238
- if 'project_urls' in local_var_params:
239
- form_params.append(('project_urls', local_var_params['project_urls'])) # noqa: E501
240
- if 'platform' in local_var_params:
241
- form_params.append(('platform', local_var_params['platform'])) # noqa: E501
242
- if 'supported_platform' in local_var_params:
243
- form_params.append(('supported_platform', local_var_params['supported_platform'])) # noqa: E501
244
- if 'requires_dist' in local_var_params:
245
- form_params.append(('requires_dist', local_var_params['requires_dist'])) # noqa: E501
246
- if 'provides_dist' in local_var_params:
247
- form_params.append(('provides_dist', local_var_params['provides_dist'])) # noqa: E501
248
- if 'obsoletes_dist' in local_var_params:
249
- form_params.append(('obsoletes_dist', local_var_params['obsoletes_dist'])) # noqa: E501
250
- if 'requires_external' in local_var_params:
251
- form_params.append(('requires_external', local_var_params['requires_external'])) # noqa: E501
252
- if 'classifiers' in local_var_params:
253
- form_params.append(('classifiers', local_var_params['classifiers'])) # noqa: E501
254
-
255
- body_params = None
256
- # HTTP header `Accept`
257
- header_params['Accept'] = self.api_client.select_header_accept(
258
- ['application/json']) # noqa: E501
259
-
260
- # HTTP header `Content-Type`
261
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
262
- ['multipart/form-data', 'application/x-www-form-urlencoded']) # noqa: E501
263
-
264
- # Authentication setting
265
- auth_settings = ['basicAuth', 'cookieAuth'] # noqa: E501
266
-
267
- return self.api_client.call_api(
268
- '/pulp/api/v3/content/python/packages/', 'POST',
269
- path_params,
270
- query_params,
271
- header_params,
272
- body=body_params,
273
- post_params=form_params,
274
- files=local_var_files,
275
- response_type='AsyncOperationResponse', # noqa: E501
276
- auth_settings=auth_settings,
277
- async_req=local_var_params.get('async_req'),
278
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
279
- _preload_content=local_var_params.get('_preload_content', True),
280
- _request_timeout=local_var_params.get('_request_timeout'),
281
- collection_formats=collection_formats)
282
-
283
- def list(self, **kwargs): # noqa: E501
284
- """List python package contents # noqa: E501
285
-
286
- PythonPackageContent represents each individually installable Python package. In the Python ecosystem, this is called a Python Distribution, sometimes (ambiguously) refered to as a package. In Pulp Python, we refer to it as PythonPackageContent. Each PythonPackageContent corresponds to a single filename, for example `pulpcore-3.0.0rc1-py3-none-any.whl` or `pulpcore-3.0.0rc1.tar.gz`. # noqa: E501
287
- This method makes a synchronous HTTP request by default. To make an
288
- asynchronous HTTP request, please pass async_req=True
289
- >>> thread = api.list(async_req=True)
290
- >>> result = thread.get()
291
-
292
- :param async_req bool: execute request asynchronously
293
- :param str author: Filter results where author matches value
294
- :param list[str] author__in: Filter results where author is in a comma-separated list of values
295
- :param str filename: Filter results where filename matches value
296
- :param str filename__contains: Filter results where filename contains value
297
- :param list[str] filename__in: Filter results where filename is in a comma-separated list of values
298
- :param str keywords__contains: Filter results where keywords contains value
299
- :param list[str] keywords__in: Filter results where keywords is in a comma-separated list of values
300
- :param int limit: Number of results to return per page.
301
- :param str name: Filter results where name matches value
302
- :param list[str] name__in: Filter results where name is in a comma-separated list of values
303
- :param int offset: The initial index from which to return the results.
304
- :param str ordering: Which field to use when ordering the results.
305
- :param str packagetype: Filter results where packagetype matches value
306
- :param list[str] packagetype__in: Filter results where packagetype is in a comma-separated list of values
307
- :param str repository_version: Repository Version referenced by HREF
308
- :param str repository_version_added: Repository Version referenced by HREF
309
- :param str repository_version_removed: Repository Version referenced by HREF
310
- :param str requires_python: Filter results where requires_python matches value
311
- :param str requires_python__contains: Filter results where requires_python contains value
312
- :param list[str] requires_python__in: Filter results where requires_python is in a comma-separated list of values
313
- :param str fields: A list of fields to include in the response.
314
- :param str exclude_fields: A list of fields to exclude from the response.
315
- :param _preload_content: if False, the urllib3.HTTPResponse object will
316
- be returned without reading/decoding response
317
- data. Default is True.
318
- :param _request_timeout: timeout setting for this request. If one
319
- number provided, it will be total request
320
- timeout. It can also be a pair (tuple) of
321
- (connection, read) timeouts.
322
- :return: PaginatedpythonPythonPackageContentResponseList
323
- If the method is called asynchronously,
324
- returns the request thread.
325
- """
326
- kwargs['_return_http_data_only'] = True
327
- return self.list_with_http_info(**kwargs) # noqa: E501
328
-
329
- def list_with_http_info(self, **kwargs): # noqa: E501
330
- """List python package contents # noqa: E501
331
-
332
- PythonPackageContent represents each individually installable Python package. In the Python ecosystem, this is called a Python Distribution, sometimes (ambiguously) refered to as a package. In Pulp Python, we refer to it as PythonPackageContent. Each PythonPackageContent corresponds to a single filename, for example `pulpcore-3.0.0rc1-py3-none-any.whl` or `pulpcore-3.0.0rc1.tar.gz`. # noqa: E501
333
- This method makes a synchronous HTTP request by default. To make an
334
- asynchronous HTTP request, please pass async_req=True
335
- >>> thread = api.list_with_http_info(async_req=True)
336
- >>> result = thread.get()
337
-
338
- :param async_req bool: execute request asynchronously
339
- :param str author: Filter results where author matches value
340
- :param list[str] author__in: Filter results where author is in a comma-separated list of values
341
- :param str filename: Filter results where filename matches value
342
- :param str filename__contains: Filter results where filename contains value
343
- :param list[str] filename__in: Filter results where filename is in a comma-separated list of values
344
- :param str keywords__contains: Filter results where keywords contains value
345
- :param list[str] keywords__in: Filter results where keywords is in a comma-separated list of values
346
- :param int limit: Number of results to return per page.
347
- :param str name: Filter results where name matches value
348
- :param list[str] name__in: Filter results where name is in a comma-separated list of values
349
- :param int offset: The initial index from which to return the results.
350
- :param str ordering: Which field to use when ordering the results.
351
- :param str packagetype: Filter results where packagetype matches value
352
- :param list[str] packagetype__in: Filter results where packagetype is in a comma-separated list of values
353
- :param str repository_version: Repository Version referenced by HREF
354
- :param str repository_version_added: Repository Version referenced by HREF
355
- :param str repository_version_removed: Repository Version referenced by HREF
356
- :param str requires_python: Filter results where requires_python matches value
357
- :param str requires_python__contains: Filter results where requires_python contains value
358
- :param list[str] requires_python__in: Filter results where requires_python is in a comma-separated list of values
359
- :param str fields: A list of fields to include in the response.
360
- :param str exclude_fields: A list of fields to exclude from the response.
361
- :param _return_http_data_only: response data without head status code
362
- and headers
363
- :param _preload_content: if False, the urllib3.HTTPResponse object will
364
- be returned without reading/decoding response
365
- data. Default is True.
366
- :param _request_timeout: timeout setting for this request. If one
367
- number provided, it will be total request
368
- timeout. It can also be a pair (tuple) of
369
- (connection, read) timeouts.
370
- :return: tuple(PaginatedpythonPythonPackageContentResponseList, status_code(int), headers(HTTPHeaderDict))
371
- If the method is called asynchronously,
372
- returns the request thread.
373
- """
374
-
375
- local_var_params = locals()
376
-
377
- all_params = [
378
- 'author',
379
- 'author__in',
380
- 'filename',
381
- 'filename__contains',
382
- 'filename__in',
383
- 'keywords__contains',
384
- 'keywords__in',
385
- 'limit',
386
- 'name',
387
- 'name__in',
388
- 'offset',
389
- 'ordering',
390
- 'packagetype',
391
- 'packagetype__in',
392
- 'repository_version',
393
- 'repository_version_added',
394
- 'repository_version_removed',
395
- 'requires_python',
396
- 'requires_python__contains',
397
- 'requires_python__in',
398
- 'fields',
399
- 'exclude_fields'
400
- ]
401
- all_params.extend(
402
- [
403
- 'async_req',
404
- '_return_http_data_only',
405
- '_preload_content',
406
- '_request_timeout'
407
- ]
408
- )
409
-
410
- for key, val in six.iteritems(local_var_params['kwargs']):
411
- if key not in all_params:
412
- raise ApiTypeError(
413
- "Got an unexpected keyword argument '%s'"
414
- " to method list" % key
415
- )
416
- local_var_params[key] = val
417
- del local_var_params['kwargs']
418
-
419
- collection_formats = {}
420
-
421
- path_params = {}
422
-
423
- query_params = []
424
- if 'author' in local_var_params and local_var_params['author'] is not None: # noqa: E501
425
- query_params.append(('author', local_var_params['author'])) # noqa: E501
426
- if 'author__in' in local_var_params and local_var_params['author__in'] is not None: # noqa: E501
427
- query_params.append(('author__in', local_var_params['author__in'])) # noqa: E501
428
- collection_formats['author__in'] = 'csv' # noqa: E501
429
- if 'filename' in local_var_params and local_var_params['filename'] is not None: # noqa: E501
430
- query_params.append(('filename', local_var_params['filename'])) # noqa: E501
431
- if 'filename__contains' in local_var_params and local_var_params['filename__contains'] is not None: # noqa: E501
432
- query_params.append(('filename__contains', local_var_params['filename__contains'])) # noqa: E501
433
- if 'filename__in' in local_var_params and local_var_params['filename__in'] is not None: # noqa: E501
434
- query_params.append(('filename__in', local_var_params['filename__in'])) # noqa: E501
435
- collection_formats['filename__in'] = 'csv' # noqa: E501
436
- if 'keywords__contains' in local_var_params and local_var_params['keywords__contains'] is not None: # noqa: E501
437
- query_params.append(('keywords__contains', local_var_params['keywords__contains'])) # noqa: E501
438
- if 'keywords__in' in local_var_params and local_var_params['keywords__in'] is not None: # noqa: E501
439
- query_params.append(('keywords__in', local_var_params['keywords__in'])) # noqa: E501
440
- collection_formats['keywords__in'] = 'csv' # noqa: E501
441
- if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501
442
- query_params.append(('limit', local_var_params['limit'])) # noqa: E501
443
- if 'name' in local_var_params and local_var_params['name'] is not None: # noqa: E501
444
- query_params.append(('name', local_var_params['name'])) # noqa: E501
445
- if 'name__in' in local_var_params and local_var_params['name__in'] is not None: # noqa: E501
446
- query_params.append(('name__in', local_var_params['name__in'])) # noqa: E501
447
- collection_formats['name__in'] = 'csv' # noqa: E501
448
- if 'offset' in local_var_params and local_var_params['offset'] is not None: # noqa: E501
449
- query_params.append(('offset', local_var_params['offset'])) # noqa: E501
450
- if 'ordering' in local_var_params and local_var_params['ordering'] is not None: # noqa: E501
451
- query_params.append(('ordering', local_var_params['ordering'])) # noqa: E501
452
- if 'packagetype' in local_var_params and local_var_params['packagetype'] is not None: # noqa: E501
453
- query_params.append(('packagetype', local_var_params['packagetype'])) # noqa: E501
454
- if 'packagetype__in' in local_var_params and local_var_params['packagetype__in'] is not None: # noqa: E501
455
- query_params.append(('packagetype__in', local_var_params['packagetype__in'])) # noqa: E501
456
- collection_formats['packagetype__in'] = 'csv' # noqa: E501
457
- if 'repository_version' in local_var_params and local_var_params['repository_version'] is not None: # noqa: E501
458
- query_params.append(('repository_version', local_var_params['repository_version'])) # noqa: E501
459
- if 'repository_version_added' in local_var_params and local_var_params['repository_version_added'] is not None: # noqa: E501
460
- query_params.append(('repository_version_added', local_var_params['repository_version_added'])) # noqa: E501
461
- if 'repository_version_removed' in local_var_params and local_var_params['repository_version_removed'] is not None: # noqa: E501
462
- query_params.append(('repository_version_removed', local_var_params['repository_version_removed'])) # noqa: E501
463
- if 'requires_python' in local_var_params and local_var_params['requires_python'] is not None: # noqa: E501
464
- query_params.append(('requires_python', local_var_params['requires_python'])) # noqa: E501
465
- if 'requires_python__contains' in local_var_params and local_var_params['requires_python__contains'] is not None: # noqa: E501
466
- query_params.append(('requires_python__contains', local_var_params['requires_python__contains'])) # noqa: E501
467
- if 'requires_python__in' in local_var_params and local_var_params['requires_python__in'] is not None: # noqa: E501
468
- query_params.append(('requires_python__in', local_var_params['requires_python__in'])) # noqa: E501
469
- collection_formats['requires_python__in'] = 'csv' # noqa: E501
470
- if 'fields' in local_var_params and local_var_params['fields'] is not None: # noqa: E501
471
- query_params.append(('fields', local_var_params['fields'])) # noqa: E501
472
- if 'exclude_fields' in local_var_params and local_var_params['exclude_fields'] is not None: # noqa: E501
473
- query_params.append(('exclude_fields', local_var_params['exclude_fields'])) # noqa: E501
474
-
475
- header_params = {}
476
-
477
- form_params = []
478
- local_var_files = {}
479
-
480
- body_params = None
481
- # HTTP header `Accept`
482
- header_params['Accept'] = self.api_client.select_header_accept(
483
- ['application/json']) # noqa: E501
484
-
485
- # Authentication setting
486
- auth_settings = ['basicAuth', 'cookieAuth'] # noqa: E501
487
-
488
- return self.api_client.call_api(
489
- '/pulp/api/v3/content/python/packages/', 'GET',
490
- path_params,
491
- query_params,
492
- header_params,
493
- body=body_params,
494
- post_params=form_params,
495
- files=local_var_files,
496
- response_type='PaginatedpythonPythonPackageContentResponseList', # noqa: E501
497
- auth_settings=auth_settings,
498
- async_req=local_var_params.get('async_req'),
499
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
500
- _preload_content=local_var_params.get('_preload_content', True),
501
- _request_timeout=local_var_params.get('_request_timeout'),
502
- collection_formats=collection_formats)
503
-
504
- def read(self, python_python_package_content_href, **kwargs): # noqa: E501
505
- """Inspect a python package content # noqa: E501
506
-
507
- PythonPackageContent represents each individually installable Python package. In the Python ecosystem, this is called a Python Distribution, sometimes (ambiguously) refered to as a package. In Pulp Python, we refer to it as PythonPackageContent. Each PythonPackageContent corresponds to a single filename, for example `pulpcore-3.0.0rc1-py3-none-any.whl` or `pulpcore-3.0.0rc1.tar.gz`. # noqa: E501
508
- This method makes a synchronous HTTP request by default. To make an
509
- asynchronous HTTP request, please pass async_req=True
510
- >>> thread = api.read(python_python_package_content_href, async_req=True)
511
- >>> result = thread.get()
512
-
513
- :param async_req bool: execute request asynchronously
514
- :param str python_python_package_content_href: (required)
515
- :param str fields: A list of fields to include in the response.
516
- :param str exclude_fields: A list of fields to exclude from the response.
517
- :param _preload_content: if False, the urllib3.HTTPResponse object will
518
- be returned without reading/decoding response
519
- data. Default is True.
520
- :param _request_timeout: timeout setting for this request. If one
521
- number provided, it will be total request
522
- timeout. It can also be a pair (tuple) of
523
- (connection, read) timeouts.
524
- :return: PythonPythonPackageContentResponse
525
- If the method is called asynchronously,
526
- returns the request thread.
527
- """
528
- kwargs['_return_http_data_only'] = True
529
- return self.read_with_http_info(python_python_package_content_href, **kwargs) # noqa: E501
530
-
531
- def read_with_http_info(self, python_python_package_content_href, **kwargs): # noqa: E501
532
- """Inspect a python package content # noqa: E501
533
-
534
- PythonPackageContent represents each individually installable Python package. In the Python ecosystem, this is called a Python Distribution, sometimes (ambiguously) refered to as a package. In Pulp Python, we refer to it as PythonPackageContent. Each PythonPackageContent corresponds to a single filename, for example `pulpcore-3.0.0rc1-py3-none-any.whl` or `pulpcore-3.0.0rc1.tar.gz`. # noqa: E501
535
- This method makes a synchronous HTTP request by default. To make an
536
- asynchronous HTTP request, please pass async_req=True
537
- >>> thread = api.read_with_http_info(python_python_package_content_href, async_req=True)
538
- >>> result = thread.get()
539
-
540
- :param async_req bool: execute request asynchronously
541
- :param str python_python_package_content_href: (required)
542
- :param str fields: A list of fields to include in the response.
543
- :param str exclude_fields: A list of fields to exclude from the response.
544
- :param _return_http_data_only: response data without head status code
545
- and headers
546
- :param _preload_content: if False, the urllib3.HTTPResponse object will
547
- be returned without reading/decoding response
548
- data. Default is True.
549
- :param _request_timeout: timeout setting for this request. If one
550
- number provided, it will be total request
551
- timeout. It can also be a pair (tuple) of
552
- (connection, read) timeouts.
553
- :return: tuple(PythonPythonPackageContentResponse, status_code(int), headers(HTTPHeaderDict))
554
- If the method is called asynchronously,
555
- returns the request thread.
556
- """
557
-
558
- local_var_params = locals()
559
-
560
- all_params = [
561
- 'python_python_package_content_href',
562
- 'fields',
563
- 'exclude_fields'
564
- ]
565
- all_params.extend(
566
- [
567
- 'async_req',
568
- '_return_http_data_only',
569
- '_preload_content',
570
- '_request_timeout'
571
- ]
572
- )
573
-
574
- for key, val in six.iteritems(local_var_params['kwargs']):
575
- if key not in all_params:
576
- raise ApiTypeError(
577
- "Got an unexpected keyword argument '%s'"
578
- " to method read" % key
579
- )
580
- local_var_params[key] = val
581
- del local_var_params['kwargs']
582
- # verify the required parameter 'python_python_package_content_href' is set
583
- if self.api_client.client_side_validation and ('python_python_package_content_href' not in local_var_params or # noqa: E501
584
- local_var_params['python_python_package_content_href'] is None): # noqa: E501
585
- raise ApiValueError("Missing the required parameter `python_python_package_content_href` when calling `read`") # noqa: E501
586
-
587
- collection_formats = {}
588
-
589
- path_params = {}
590
- if 'python_python_package_content_href' in local_var_params:
591
- path_params['python_python_package_content_href'] = local_var_params['python_python_package_content_href'] # noqa: E501
592
-
593
- query_params = []
594
- if 'fields' in local_var_params and local_var_params['fields'] is not None: # noqa: E501
595
- query_params.append(('fields', local_var_params['fields'])) # noqa: E501
596
- if 'exclude_fields' in local_var_params and local_var_params['exclude_fields'] is not None: # noqa: E501
597
- query_params.append(('exclude_fields', local_var_params['exclude_fields'])) # noqa: E501
598
-
599
- header_params = {}
600
-
601
- form_params = []
602
- local_var_files = {}
603
-
604
- body_params = None
605
- # HTTP header `Accept`
606
- header_params['Accept'] = self.api_client.select_header_accept(
607
- ['application/json']) # noqa: E501
608
-
609
- # Authentication setting
610
- auth_settings = ['basicAuth', 'cookieAuth'] # noqa: E501
611
-
612
- return self.api_client.call_api(
613
- '{python_python_package_content_href}', 'GET',
614
- path_params,
615
- query_params,
616
- header_params,
617
- body=body_params,
618
- post_params=form_params,
619
- files=local_var_files,
620
- response_type='PythonPythonPackageContentResponse', # noqa: E501
621
- auth_settings=auth_settings,
622
- async_req=local_var_params.get('async_req'),
623
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
624
- _preload_content=local_var_params.get('_preload_content', True),
625
- _request_timeout=local_var_params.get('_request_timeout'),
626
- collection_formats=collection_formats)