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
@@ -1,162 +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 PypiApi(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 read(self, path, **kwargs): # noqa: E501
41
- """Get index summary # noqa: E501
42
-
43
- Gets package summary stats of index. # 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.read(path, async_req=True)
47
- >>> result = thread.get()
48
-
49
- :param async_req bool: execute request asynchronously
50
- :param str path: (required)
51
- :param str fields: A list of fields to include in the response.
52
- :param str exclude_fields: A list of fields to exclude from the response.
53
- :param _preload_content: if False, the urllib3.HTTPResponse object will
54
- be returned without reading/decoding response
55
- data. Default is True.
56
- :param _request_timeout: timeout setting for this request. If one
57
- number provided, it will be total request
58
- timeout. It can also be a pair (tuple) of
59
- (connection, read) timeouts.
60
- :return: SummaryResponse
61
- If the method is called asynchronously,
62
- returns the request thread.
63
- """
64
- kwargs['_return_http_data_only'] = True
65
- return self.read_with_http_info(path, **kwargs) # noqa: E501
66
-
67
- def read_with_http_info(self, path, **kwargs): # noqa: E501
68
- """Get index summary # noqa: E501
69
-
70
- Gets package summary stats of index. # noqa: E501
71
- This method makes a synchronous HTTP request by default. To make an
72
- asynchronous HTTP request, please pass async_req=True
73
- >>> thread = api.read_with_http_info(path, async_req=True)
74
- >>> result = thread.get()
75
-
76
- :param async_req bool: execute request asynchronously
77
- :param str path: (required)
78
- :param str fields: A list of fields to include in the response.
79
- :param str exclude_fields: A list of fields to exclude from the response.
80
- :param _return_http_data_only: response data without head status code
81
- and headers
82
- :param _preload_content: if False, the urllib3.HTTPResponse object will
83
- be returned without reading/decoding response
84
- data. Default is True.
85
- :param _request_timeout: timeout setting for this request. If one
86
- number provided, it will be total request
87
- timeout. It can also be a pair (tuple) of
88
- (connection, read) timeouts.
89
- :return: tuple(SummaryResponse, status_code(int), headers(HTTPHeaderDict))
90
- If the method is called asynchronously,
91
- returns the request thread.
92
- """
93
-
94
- local_var_params = locals()
95
-
96
- all_params = [
97
- 'path',
98
- 'fields',
99
- 'exclude_fields'
100
- ]
101
- all_params.extend(
102
- [
103
- 'async_req',
104
- '_return_http_data_only',
105
- '_preload_content',
106
- '_request_timeout'
107
- ]
108
- )
109
-
110
- for key, val in six.iteritems(local_var_params['kwargs']):
111
- if key not in all_params:
112
- raise ApiTypeError(
113
- "Got an unexpected keyword argument '%s'"
114
- " to method read" % key
115
- )
116
- local_var_params[key] = val
117
- del local_var_params['kwargs']
118
- # verify the required parameter 'path' is set
119
- if self.api_client.client_side_validation and ('path' not in local_var_params or # noqa: E501
120
- local_var_params['path'] is None): # noqa: E501
121
- raise ApiValueError("Missing the required parameter `path` when calling `read`") # noqa: E501
122
-
123
- collection_formats = {}
124
-
125
- path_params = {}
126
- if 'path' in local_var_params:
127
- path_params['path'] = local_var_params['path'] # noqa: E501
128
-
129
- query_params = []
130
- if 'fields' in local_var_params and local_var_params['fields'] is not None: # noqa: E501
131
- query_params.append(('fields', local_var_params['fields'])) # noqa: E501
132
- if 'exclude_fields' in local_var_params and local_var_params['exclude_fields'] is not None: # noqa: E501
133
- query_params.append(('exclude_fields', local_var_params['exclude_fields'])) # noqa: E501
134
-
135
- header_params = {}
136
-
137
- form_params = []
138
- local_var_files = {}
139
-
140
- body_params = None
141
- # HTTP header `Accept`
142
- header_params['Accept'] = self.api_client.select_header_accept(
143
- ['application/json']) # noqa: E501
144
-
145
- # Authentication setting
146
- auth_settings = [] # noqa: E501
147
-
148
- return self.api_client.call_api(
149
- '/pypi/{path}/', 'GET',
150
- path_params,
151
- query_params,
152
- header_params,
153
- body=body_params,
154
- post_params=form_params,
155
- files=local_var_files,
156
- response_type='SummaryResponse', # noqa: E501
157
- auth_settings=auth_settings,
158
- async_req=local_var_params.get('async_req'),
159
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
160
- _preload_content=local_var_params.get('_preload_content', True),
161
- _request_timeout=local_var_params.get('_request_timeout'),
162
- collection_formats=collection_formats)
@@ -1,185 +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 PypiLegacyApi(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, path, content, sha256_digest, **kwargs): # noqa: E501
41
- """Upload a package # noqa: E501
42
-
43
- Upload package to the index. This is the endpoint that tools like Twine and Poetry use for their upload commands. # 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(path, content, sha256_digest, async_req=True)
47
- >>> result = thread.get()
48
-
49
- :param async_req bool: execute request asynchronously
50
- :param str path: (required)
51
- :param file content: A Python package release file to upload to the index. (required)
52
- :param str sha256_digest: SHA256 of package to validate upload integrity. (required)
53
- :param str action: Defaults to `file_upload`, don't change it or request will fail!
54
- :param _preload_content: if False, the urllib3.HTTPResponse object will
55
- be returned without reading/decoding response
56
- data. Default is True.
57
- :param _request_timeout: timeout setting for this request. If one
58
- number provided, it will be total request
59
- timeout. It can also be a pair (tuple) of
60
- (connection, read) timeouts.
61
- :return: PackageUploadTaskResponse
62
- If the method is called asynchronously,
63
- returns the request thread.
64
- """
65
- kwargs['_return_http_data_only'] = True
66
- return self.create_with_http_info(path, content, sha256_digest, **kwargs) # noqa: E501
67
-
68
- def create_with_http_info(self, path, content, sha256_digest, **kwargs): # noqa: E501
69
- """Upload a package # noqa: E501
70
-
71
- Upload package to the index. This is the endpoint that tools like Twine and Poetry use for their upload commands. # noqa: E501
72
- This method makes a synchronous HTTP request by default. To make an
73
- asynchronous HTTP request, please pass async_req=True
74
- >>> thread = api.create_with_http_info(path, content, sha256_digest, async_req=True)
75
- >>> result = thread.get()
76
-
77
- :param async_req bool: execute request asynchronously
78
- :param str path: (required)
79
- :param file content: A Python package release file to upload to the index. (required)
80
- :param str sha256_digest: SHA256 of package to validate upload integrity. (required)
81
- :param str action: Defaults to `file_upload`, don't change it or request will fail!
82
- :param _return_http_data_only: response data without head status code
83
- and headers
84
- :param _preload_content: if False, the urllib3.HTTPResponse object will
85
- be returned without reading/decoding response
86
- data. Default is True.
87
- :param _request_timeout: timeout setting for this request. If one
88
- number provided, it will be total request
89
- timeout. It can also be a pair (tuple) of
90
- (connection, read) timeouts.
91
- :return: tuple(PackageUploadTaskResponse, status_code(int), headers(HTTPHeaderDict))
92
- If the method is called asynchronously,
93
- returns the request thread.
94
- """
95
-
96
- local_var_params = locals()
97
-
98
- all_params = [
99
- 'path',
100
- 'content',
101
- 'sha256_digest',
102
- 'action'
103
- ]
104
- all_params.extend(
105
- [
106
- 'async_req',
107
- '_return_http_data_only',
108
- '_preload_content',
109
- '_request_timeout'
110
- ]
111
- )
112
-
113
- for key, val in six.iteritems(local_var_params['kwargs']):
114
- if key not in all_params:
115
- raise ApiTypeError(
116
- "Got an unexpected keyword argument '%s'"
117
- " to method create" % key
118
- )
119
- local_var_params[key] = val
120
- del local_var_params['kwargs']
121
- # verify the required parameter 'path' is set
122
- if self.api_client.client_side_validation and ('path' not in local_var_params or # noqa: E501
123
- local_var_params['path'] is None): # noqa: E501
124
- raise ApiValueError("Missing the required parameter `path` when calling `create`") # noqa: E501
125
- # verify the required parameter 'content' is set
126
- if self.api_client.client_side_validation and ('content' not in local_var_params or # noqa: E501
127
- local_var_params['content'] is None): # noqa: E501
128
- raise ApiValueError("Missing the required parameter `content` when calling `create`") # noqa: E501
129
- # verify the required parameter 'sha256_digest' is set
130
- if self.api_client.client_side_validation and ('sha256_digest' not in local_var_params or # noqa: E501
131
- local_var_params['sha256_digest'] is None): # noqa: E501
132
- raise ApiValueError("Missing the required parameter `sha256_digest` when calling `create`") # noqa: E501
133
-
134
- if self.api_client.client_side_validation and ('sha256_digest' in local_var_params and # noqa: E501
135
- len(local_var_params['sha256_digest']) > 64): # noqa: E501
136
- raise ApiValueError("Invalid value for parameter `sha256_digest` when calling `create`, length must be less than or equal to `64`") # noqa: E501
137
- if self.api_client.client_side_validation and ('sha256_digest' in local_var_params and # noqa: E501
138
- len(local_var_params['sha256_digest']) < 64): # noqa: E501
139
- raise ApiValueError("Invalid value for parameter `sha256_digest` when calling `create`, length must be greater than or equal to `64`") # noqa: E501
140
- collection_formats = {}
141
-
142
- path_params = {}
143
- if 'path' in local_var_params:
144
- path_params['path'] = local_var_params['path'] # noqa: E501
145
-
146
- query_params = []
147
-
148
- header_params = {}
149
-
150
- form_params = []
151
- local_var_files = {}
152
- if 'content' in local_var_params:
153
- local_var_files['content'] = local_var_params['content'] # noqa: E501
154
- if 'action' in local_var_params:
155
- form_params.append(('action', local_var_params['action'])) # noqa: E501
156
- if 'sha256_digest' in local_var_params:
157
- form_params.append(('sha256_digest', local_var_params['sha256_digest'])) # noqa: E501
158
-
159
- body_params = None
160
- # HTTP header `Accept`
161
- header_params['Accept'] = self.api_client.select_header_accept(
162
- ['application/json']) # noqa: E501
163
-
164
- # HTTP header `Content-Type`
165
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
166
- ['multipart/form-data', 'application/x-www-form-urlencoded']) # noqa: E501
167
-
168
- # Authentication setting
169
- auth_settings = ['basicAuth', 'cookieAuth'] # noqa: E501
170
-
171
- return self.api_client.call_api(
172
- '/pypi/{path}/legacy/', 'POST',
173
- path_params,
174
- query_params,
175
- header_params,
176
- body=body_params,
177
- post_params=form_params,
178
- files=local_var_files,
179
- response_type='PackageUploadTaskResponse', # noqa: E501
180
- auth_settings=auth_settings,
181
- async_req=local_var_params.get('async_req'),
182
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
183
- _preload_content=local_var_params.get('_preload_content', True),
184
- _request_timeout=local_var_params.get('_request_timeout'),
185
- collection_formats=collection_formats)
@@ -1,171 +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 PypiMetadataApi(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 read(self, meta, path, **kwargs): # noqa: E501
41
- """Get package metadata # noqa: E501
42
-
43
- Retrieves the package's core-metadata specified by https://packaging.python.org/specifications/core-metadata/. `meta` must be a path in form of `{package}/json/` or `{package}/{version}/json/` # 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.read(meta, path, async_req=True)
47
- >>> result = thread.get()
48
-
49
- :param async_req bool: execute request asynchronously
50
- :param str meta: (required)
51
- :param str path: (required)
52
- :param str fields: A list of fields to include in the response.
53
- :param str exclude_fields: A list of fields to exclude from the response.
54
- :param _preload_content: if False, the urllib3.HTTPResponse object will
55
- be returned without reading/decoding response
56
- data. Default is True.
57
- :param _request_timeout: timeout setting for this request. If one
58
- number provided, it will be total request
59
- timeout. It can also be a pair (tuple) of
60
- (connection, read) timeouts.
61
- :return: PackageMetadataResponse
62
- If the method is called asynchronously,
63
- returns the request thread.
64
- """
65
- kwargs['_return_http_data_only'] = True
66
- return self.read_with_http_info(meta, path, **kwargs) # noqa: E501
67
-
68
- def read_with_http_info(self, meta, path, **kwargs): # noqa: E501
69
- """Get package metadata # noqa: E501
70
-
71
- Retrieves the package's core-metadata specified by https://packaging.python.org/specifications/core-metadata/. `meta` must be a path in form of `{package}/json/` or `{package}/{version}/json/` # noqa: E501
72
- This method makes a synchronous HTTP request by default. To make an
73
- asynchronous HTTP request, please pass async_req=True
74
- >>> thread = api.read_with_http_info(meta, path, async_req=True)
75
- >>> result = thread.get()
76
-
77
- :param async_req bool: execute request asynchronously
78
- :param str meta: (required)
79
- :param str path: (required)
80
- :param str fields: A list of fields to include in the response.
81
- :param str exclude_fields: A list of fields to exclude from the response.
82
- :param _return_http_data_only: response data without head status code
83
- and headers
84
- :param _preload_content: if False, the urllib3.HTTPResponse object will
85
- be returned without reading/decoding response
86
- data. Default is True.
87
- :param _request_timeout: timeout setting for this request. If one
88
- number provided, it will be total request
89
- timeout. It can also be a pair (tuple) of
90
- (connection, read) timeouts.
91
- :return: tuple(PackageMetadataResponse, status_code(int), headers(HTTPHeaderDict))
92
- If the method is called asynchronously,
93
- returns the request thread.
94
- """
95
-
96
- local_var_params = locals()
97
-
98
- all_params = [
99
- 'meta',
100
- 'path',
101
- 'fields',
102
- 'exclude_fields'
103
- ]
104
- all_params.extend(
105
- [
106
- 'async_req',
107
- '_return_http_data_only',
108
- '_preload_content',
109
- '_request_timeout'
110
- ]
111
- )
112
-
113
- for key, val in six.iteritems(local_var_params['kwargs']):
114
- if key not in all_params:
115
- raise ApiTypeError(
116
- "Got an unexpected keyword argument '%s'"
117
- " to method read" % key
118
- )
119
- local_var_params[key] = val
120
- del local_var_params['kwargs']
121
- # verify the required parameter 'meta' is set
122
- if self.api_client.client_side_validation and ('meta' not in local_var_params or # noqa: E501
123
- local_var_params['meta'] is None): # noqa: E501
124
- raise ApiValueError("Missing the required parameter `meta` when calling `read`") # noqa: E501
125
- # verify the required parameter 'path' is set
126
- if self.api_client.client_side_validation and ('path' not in local_var_params or # noqa: E501
127
- local_var_params['path'] is None): # noqa: E501
128
- raise ApiValueError("Missing the required parameter `path` when calling `read`") # noqa: E501
129
-
130
- collection_formats = {}
131
-
132
- path_params = {}
133
- if 'meta' in local_var_params:
134
- path_params['meta'] = local_var_params['meta'] # noqa: E501
135
- if 'path' in local_var_params:
136
- path_params['path'] = local_var_params['path'] # noqa: E501
137
-
138
- query_params = []
139
- if 'fields' in local_var_params and local_var_params['fields'] is not None: # noqa: E501
140
- query_params.append(('fields', local_var_params['fields'])) # noqa: E501
141
- if 'exclude_fields' in local_var_params and local_var_params['exclude_fields'] is not None: # noqa: E501
142
- query_params.append(('exclude_fields', local_var_params['exclude_fields'])) # noqa: E501
143
-
144
- header_params = {}
145
-
146
- form_params = []
147
- local_var_files = {}
148
-
149
- body_params = None
150
- # HTTP header `Accept`
151
- header_params['Accept'] = self.api_client.select_header_accept(
152
- ['application/json']) # noqa: E501
153
-
154
- # Authentication setting
155
- auth_settings = [] # noqa: E501
156
-
157
- return self.api_client.call_api(
158
- '/pypi/{path}/pypi/{meta}/', 'GET',
159
- path_params,
160
- query_params,
161
- header_params,
162
- body=body_params,
163
- post_params=form_params,
164
- files=local_var_files,
165
- response_type='PackageMetadataResponse', # noqa: E501
166
- auth_settings=auth_settings,
167
- async_req=local_var_params.get('async_req'),
168
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
169
- _preload_content=local_var_params.get('_preload_content', True),
170
- _request_timeout=local_var_params.get('_request_timeout'),
171
- collection_formats=collection_formats)