pulp_python_client 3.3.0 → 3.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (230) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +17 -4
  3. data/build/lib/pulpcore/__init__.py +2 -0
  4. data/build/lib/pulpcore/client/__init__.py +2 -0
  5. data/build/lib/pulpcore/client/pulp_python/__init__.py +75 -0
  6. data/build/lib/pulpcore/client/pulp_python/api/__init__.py +15 -0
  7. data/build/lib/pulpcore/client/pulp_python/api/content_packages_api.py +626 -0
  8. data/build/lib/pulpcore/client/pulp_python/api/distributions_pypi_api.py +830 -0
  9. data/build/lib/pulpcore/client/pulp_python/api/publications_pypi_api.py +566 -0
  10. data/build/lib/pulpcore/client/pulp_python/api/pypi_api.py +162 -0
  11. data/build/lib/pulpcore/client/pulp_python/api/pypi_legacy_api.py +185 -0
  12. data/build/lib/pulpcore/client/pulp_python/api/pypi_metadata_api.py +171 -0
  13. data/build/lib/pulpcore/client/pulp_python/api/pypi_simple_api.py +434 -0
  14. data/build/lib/pulpcore/client/pulp_python/api/remotes_python_api.py +972 -0
  15. data/build/lib/pulpcore/client/pulp_python/api/repositories_python_api.py +1063 -0
  16. data/build/lib/pulpcore/client/pulp_python/api/repositories_python_versions_api.py +614 -0
  17. data/build/lib/pulpcore/client/pulp_python/api_client.py +667 -0
  18. data/build/lib/pulpcore/client/pulp_python/configuration.py +427 -0
  19. data/build/lib/pulpcore/client/pulp_python/exceptions.py +121 -0
  20. data/build/lib/pulpcore/client/pulp_python/models/__init__.py +51 -0
  21. data/build/lib/pulpcore/client/pulp_python/models/async_operation_response.py +124 -0
  22. data/build/lib/pulpcore/client/pulp_python/models/content_summary.py +176 -0
  23. data/build/lib/pulpcore/client/pulp_python/models/content_summary_response.py +176 -0
  24. data/build/lib/pulpcore/client/pulp_python/models/exclude_platforms_enum.py +103 -0
  25. data/build/lib/pulpcore/client/pulp_python/models/package_metadata_response.py +209 -0
  26. data/build/lib/pulpcore/client/pulp_python/models/package_types_enum.py +107 -0
  27. data/build/lib/pulpcore/client/pulp_python/models/package_upload.py +187 -0
  28. data/build/lib/pulpcore/client/pulp_python/models/package_upload_task_response.py +176 -0
  29. data/build/lib/pulpcore/client/pulp_python/models/paginated_repository_version_response_list.py +197 -0
  30. data/build/lib/pulpcore/client/pulp_python/models/paginatedpython_python_distribution_response_list.py +197 -0
  31. data/build/lib/pulpcore/client/pulp_python/models/paginatedpython_python_package_content_response_list.py +197 -0
  32. data/build/lib/pulpcore/client/pulp_python/models/paginatedpython_python_publication_response_list.py +197 -0
  33. data/build/lib/pulpcore/client/pulp_python/models/paginatedpython_python_remote_response_list.py +197 -0
  34. data/build/lib/pulpcore/client/pulp_python/models/paginatedpython_python_repository_response_list.py +197 -0
  35. data/build/lib/pulpcore/client/pulp_python/models/patchedpython_python_distribution.py +286 -0
  36. data/build/lib/pulpcore/client/pulp_python/models/patchedpython_python_remote.py +823 -0
  37. data/build/lib/pulpcore/client/pulp_python/models/patchedpython_python_repository.py +259 -0
  38. data/build/lib/pulpcore/client/pulp_python/models/policy_enum.py +102 -0
  39. data/build/lib/pulpcore/client/pulp_python/models/python_bander_remote.py +181 -0
  40. data/build/lib/pulpcore/client/pulp_python/models/python_python_distribution.py +288 -0
  41. data/build/lib/pulpcore/client/pulp_python/models/python_python_distribution_response.py +368 -0
  42. data/build/lib/pulpcore/client/pulp_python/models/python_python_package_content.py +824 -0
  43. data/build/lib/pulpcore/client/pulp_python/models/python_python_package_content_response.py +933 -0
  44. data/build/lib/pulpcore/client/pulp_python/models/python_python_publication.py +149 -0
  45. data/build/lib/pulpcore/client/pulp_python/models/python_python_publication_response.py +231 -0
  46. data/build/lib/pulpcore/client/pulp_python/models/python_python_remote.py +825 -0
  47. data/build/lib/pulpcore/client/pulp_python/models/python_python_remote_response.py +772 -0
  48. data/build/lib/pulpcore/client/pulp_python/models/python_python_repository.py +260 -0
  49. data/build/lib/pulpcore/client/pulp_python/models/python_python_repository_response.py +366 -0
  50. data/build/lib/pulpcore/client/pulp_python/models/repository_add_remove_content.py +179 -0
  51. data/build/lib/pulpcore/client/pulp_python/models/repository_sync_url.py +151 -0
  52. data/build/lib/pulpcore/client/pulp_python/models/repository_version.py +123 -0
  53. data/build/lib/pulpcore/client/pulp_python/models/repository_version_response.py +257 -0
  54. data/build/lib/pulpcore/client/pulp_python/models/summary_response.py +182 -0
  55. data/build/lib/pulpcore/client/pulp_python/rest.py +292 -0
  56. data/dist/pulp_python-client-3.4.0.tar.gz +0 -0
  57. data/dist/pulp_python_client-3.4.0-py3-none-any.whl +0 -0
  58. data/docs/ContentPackagesApi.md +6 -0
  59. data/docs/DistributionsPypiApi.md +2 -2
  60. data/docs/PackageMetadataResponse.md +23 -0
  61. data/docs/PackageUpload.md +21 -0
  62. data/docs/PackageUploadTaskResponse.md +21 -0
  63. data/docs/PatchedpythonPythonDistribution.md +3 -1
  64. data/docs/PatchedpythonPythonRemote.md +1 -1
  65. data/docs/PublicationsPypiApi.md +1 -1
  66. data/docs/PypiApi.md +62 -0
  67. data/docs/PypiLegacyApi.md +70 -0
  68. data/docs/PypiMetadataApi.md +64 -0
  69. data/docs/PypiSimpleApi.md +190 -0
  70. data/docs/PythonBanderRemote.md +1 -1
  71. data/docs/PythonPythonDistribution.md +3 -1
  72. data/docs/PythonPythonDistributionResponse.md +4 -2
  73. data/docs/PythonPythonPackageContent.md +6 -0
  74. data/docs/PythonPythonPackageContentResponse.md +5 -1
  75. data/docs/PythonPythonRemote.md +1 -1
  76. data/docs/PythonPythonRemoteResponse.md +1 -1
  77. data/docs/RemotesPythonApi.md +3 -3
  78. data/docs/RepositoriesPythonApi.md +4 -4
  79. data/docs/SummaryResponse.md +21 -0
  80. data/lib/pulp_python_client/api/content_packages_api.rb +9 -0
  81. data/lib/pulp_python_client/api/distributions_pypi_api.rb +4 -4
  82. data/lib/pulp_python_client/api/publications_pypi_api.rb +2 -2
  83. data/lib/pulp_python_client/api/pypi_api.rb +90 -0
  84. data/lib/pulp_python_client/api/pypi_legacy_api.rb +111 -0
  85. data/lib/pulp_python_client/api/pypi_metadata_api.rb +96 -0
  86. data/lib/pulp_python_client/api/pypi_simple_api.rb +249 -0
  87. data/lib/pulp_python_client/api/remotes_python_api.rb +4 -4
  88. data/lib/pulp_python_client/api/repositories_python_api.rb +8 -8
  89. data/lib/pulp_python_client/models/package_metadata_response.rb +257 -0
  90. data/lib/pulp_python_client/models/package_upload.rb +268 -0
  91. data/lib/pulp_python_client/models/package_upload_task_response.rb +240 -0
  92. data/lib/pulp_python_client/models/patchedpython_python_distribution.rb +17 -5
  93. data/lib/pulp_python_client/models/patchedpython_python_remote.rb +1 -1
  94. data/lib/pulp_python_client/models/python_bander_remote.rb +1 -1
  95. data/lib/pulp_python_client/models/python_python_distribution.rb +17 -5
  96. data/lib/pulp_python_client/models/python_python_distribution_response.rb +17 -6
  97. data/lib/pulp_python_client/models/python_python_package_content.rb +33 -1
  98. data/lib/pulp_python_client/models/python_python_package_content_response.rb +23 -1
  99. data/lib/pulp_python_client/models/python_python_remote.rb +1 -1
  100. data/lib/pulp_python_client/models/python_python_remote_response.rb +1 -1
  101. data/lib/pulp_python_client/models/summary_response.rb +243 -0
  102. data/lib/pulp_python_client/version.rb +1 -1
  103. data/lib/pulp_python_client.rb +8 -0
  104. data/pulp_python_client.egg-info/PKG-INFO +15 -0
  105. data/pulp_python_client.egg-info/SOURCES.txt +105 -0
  106. data/pulp_python_client.egg-info/dependency_links.txt +1 -0
  107. data/pulp_python_client.egg-info/requires.txt +4 -0
  108. data/pulp_python_client.egg-info/top_level.txt +1 -0
  109. data/pulpcore/__init__.py +2 -0
  110. data/pulpcore/client/__init__.py +2 -0
  111. data/pulpcore/client/pulp_python/__init__.py +75 -0
  112. data/pulpcore/client/pulp_python/api/__init__.py +15 -0
  113. data/pulpcore/client/pulp_python/api/content_packages_api.py +626 -0
  114. data/pulpcore/client/pulp_python/api/distributions_pypi_api.py +830 -0
  115. data/pulpcore/client/pulp_python/api/publications_pypi_api.py +566 -0
  116. data/pulpcore/client/pulp_python/api/pypi_api.py +162 -0
  117. data/pulpcore/client/pulp_python/api/pypi_legacy_api.py +185 -0
  118. data/pulpcore/client/pulp_python/api/pypi_metadata_api.py +171 -0
  119. data/pulpcore/client/pulp_python/api/pypi_simple_api.py +434 -0
  120. data/pulpcore/client/pulp_python/api/remotes_python_api.py +972 -0
  121. data/pulpcore/client/pulp_python/api/repositories_python_api.py +1063 -0
  122. data/pulpcore/client/pulp_python/api/repositories_python_versions_api.py +614 -0
  123. data/pulpcore/client/pulp_python/api_client.py +667 -0
  124. data/pulpcore/client/pulp_python/configuration.py +427 -0
  125. data/pulpcore/client/pulp_python/exceptions.py +121 -0
  126. data/pulpcore/client/pulp_python/models/__init__.py +51 -0
  127. data/pulpcore/client/pulp_python/models/async_operation_response.py +124 -0
  128. data/pulpcore/client/pulp_python/models/content_summary.py +176 -0
  129. data/pulpcore/client/pulp_python/models/content_summary_response.py +176 -0
  130. data/pulpcore/client/pulp_python/models/exclude_platforms_enum.py +103 -0
  131. data/pulpcore/client/pulp_python/models/package_metadata_response.py +209 -0
  132. data/pulpcore/client/pulp_python/models/package_types_enum.py +107 -0
  133. data/pulpcore/client/pulp_python/models/package_upload.py +187 -0
  134. data/pulpcore/client/pulp_python/models/package_upload_task_response.py +176 -0
  135. data/pulpcore/client/pulp_python/models/paginated_repository_version_response_list.py +197 -0
  136. data/pulpcore/client/pulp_python/models/paginatedpython_python_distribution_response_list.py +197 -0
  137. data/pulpcore/client/pulp_python/models/paginatedpython_python_package_content_response_list.py +197 -0
  138. data/pulpcore/client/pulp_python/models/paginatedpython_python_publication_response_list.py +197 -0
  139. data/pulpcore/client/pulp_python/models/paginatedpython_python_remote_response_list.py +197 -0
  140. data/pulpcore/client/pulp_python/models/paginatedpython_python_repository_response_list.py +197 -0
  141. data/pulpcore/client/pulp_python/models/patchedpython_python_distribution.py +286 -0
  142. data/pulpcore/client/pulp_python/models/patchedpython_python_remote.py +823 -0
  143. data/pulpcore/client/pulp_python/models/patchedpython_python_repository.py +259 -0
  144. data/pulpcore/client/pulp_python/models/policy_enum.py +102 -0
  145. data/pulpcore/client/pulp_python/models/python_bander_remote.py +181 -0
  146. data/pulpcore/client/pulp_python/models/python_python_distribution.py +288 -0
  147. data/pulpcore/client/pulp_python/models/python_python_distribution_response.py +368 -0
  148. data/pulpcore/client/pulp_python/models/python_python_package_content.py +824 -0
  149. data/pulpcore/client/pulp_python/models/python_python_package_content_response.py +933 -0
  150. data/pulpcore/client/pulp_python/models/python_python_publication.py +149 -0
  151. data/pulpcore/client/pulp_python/models/python_python_publication_response.py +231 -0
  152. data/pulpcore/client/pulp_python/models/python_python_remote.py +825 -0
  153. data/pulpcore/client/pulp_python/models/python_python_remote_response.py +772 -0
  154. data/pulpcore/client/pulp_python/models/python_python_repository.py +260 -0
  155. data/pulpcore/client/pulp_python/models/python_python_repository_response.py +366 -0
  156. data/pulpcore/client/pulp_python/models/repository_add_remove_content.py +179 -0
  157. data/pulpcore/client/pulp_python/models/repository_sync_url.py +151 -0
  158. data/pulpcore/client/pulp_python/models/repository_version.py +123 -0
  159. data/pulpcore/client/pulp_python/models/repository_version_response.py +257 -0
  160. data/pulpcore/client/pulp_python/models/summary_response.py +182 -0
  161. data/pulpcore/client/pulp_python/rest.py +292 -0
  162. data/requirements.txt +6 -0
  163. data/setup.cfg +2 -0
  164. data/setup.py +42 -0
  165. data/spec/api/content_packages_api_spec.rb +3 -0
  166. data/spec/api/distributions_pypi_api_spec.rb +2 -2
  167. data/spec/api/publications_pypi_api_spec.rb +1 -1
  168. data/spec/api/pypi_api_spec.rb +49 -0
  169. data/spec/api/pypi_legacy_api_spec.rb +50 -0
  170. data/spec/api/pypi_metadata_api_spec.rb +50 -0
  171. data/spec/api/pypi_simple_api_spec.rb +79 -0
  172. data/spec/api/remotes_python_api_spec.rb +2 -2
  173. data/spec/api/repositories_python_api_spec.rb +4 -4
  174. data/spec/models/package_metadata_response_spec.rb +59 -0
  175. data/spec/models/package_upload_spec.rb +53 -0
  176. data/spec/models/package_upload_task_response_spec.rb +53 -0
  177. data/spec/models/patchedpython_python_distribution_spec.rb +6 -0
  178. data/spec/models/python_python_distribution_response_spec.rb +6 -0
  179. data/spec/models/python_python_distribution_spec.rb +6 -0
  180. data/spec/models/python_python_package_content_response_spec.rb +12 -0
  181. data/spec/models/python_python_package_content_spec.rb +18 -0
  182. data/spec/models/summary_response_spec.rb +53 -0
  183. data/test/__init__.py +0 -0
  184. data/test/test_async_operation_response.py +54 -0
  185. data/test/test_content_packages_api.py +55 -0
  186. data/test/test_content_summary.py +70 -0
  187. data/test/test_content_summary_response.py +70 -0
  188. data/test/test_distributions_pypi_api.py +76 -0
  189. data/test/test_exclude_platforms_enum.py +52 -0
  190. data/test/test_package_metadata_response.py +60 -0
  191. data/test/test_package_types_enum.py +52 -0
  192. data/test/test_package_upload.py +57 -0
  193. data/test/test_package_upload_task_response.py +58 -0
  194. data/test/test_paginated_repository_version_response_list.py +64 -0
  195. data/test/test_paginatedpython_python_distribution_response_list.py +68 -0
  196. data/test/test_paginatedpython_python_package_content_response_list.py +88 -0
  197. data/test/test_paginatedpython_python_publication_response_list.py +65 -0
  198. data/test/test_paginatedpython_python_remote_response_list.py +88 -0
  199. data/test/test_paginatedpython_python_repository_response_list.py +68 -0
  200. data/test/test_patchedpython_python_distribution.py +59 -0
  201. data/test/test_patchedpython_python_remote.py +84 -0
  202. data/test/test_patchedpython_python_repository.py +58 -0
  203. data/test/test_policy_enum.py +52 -0
  204. data/test/test_publications_pypi_api.py +62 -0
  205. data/test/test_pypi_api.py +41 -0
  206. data/test/test_pypi_legacy_api.py +41 -0
  207. data/test/test_pypi_metadata_api.py +41 -0
  208. data/test/test_pypi_simple_api.py +55 -0
  209. data/test/test_python_bander_remote.py +57 -0
  210. data/test/test_python_python_distribution.py +61 -0
  211. data/test/test_python_python_distribution_response.py +64 -0
  212. data/test/test_python_python_package_content.py +79 -0
  213. data/test/test_python_python_package_content_response.py +82 -0
  214. data/test/test_python_python_publication.py +54 -0
  215. data/test/test_python_python_publication_response.py +59 -0
  216. data/test/test_python_python_remote.py +86 -0
  217. data/test/test_python_python_remote_response.py +84 -0
  218. data/test/test_python_python_repository.py +59 -0
  219. data/test/test_python_python_repository_response.py +63 -0
  220. data/test/test_remotes_python_api.py +83 -0
  221. data/test/test_repositories_python_api.py +90 -0
  222. data/test/test_repositories_python_versions_api.py +61 -0
  223. data/test/test_repository_add_remove_content.py +59 -0
  224. data/test/test_repository_sync_url.py +54 -0
  225. data/test/test_repository_version.py +53 -0
  226. data/test/test_repository_version_response.py +58 -0
  227. data/test/test_summary_response.py +58 -0
  228. data/test-requirements.txt +3 -0
  229. data/tox.ini +9 -0
  230. metadata +221 -26
@@ -0,0 +1,626 @@
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)