pulp_python_client 3.4.0 → 3.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/README.md +4 -4
- data/docs/ContentPackagesApi.md +4 -0
- data/docs/RepositoryAddRemoveContent.md +2 -2
- data/lib/pulp_python_client/api/content_packages_api.rb +7 -1
- data/lib/pulp_python_client/api/distributions_pypi_api.rb +1 -1
- data/lib/pulp_python_client/api/publications_pypi_api.rb +1 -1
- data/lib/pulp_python_client/api/pypi_api.rb +1 -1
- data/lib/pulp_python_client/api/pypi_legacy_api.rb +1 -1
- data/lib/pulp_python_client/api/pypi_metadata_api.rb +1 -1
- data/lib/pulp_python_client/api/pypi_simple_api.rb +1 -1
- data/lib/pulp_python_client/api/remotes_python_api.rb +1 -1
- data/lib/pulp_python_client/api/repositories_python_api.rb +1 -1
- data/lib/pulp_python_client/api/repositories_python_versions_api.rb +1 -1
- data/lib/pulp_python_client/api_client.rb +12 -8
- data/lib/pulp_python_client/api_error.rb +1 -1
- data/lib/pulp_python_client/configuration.rb +8 -1
- data/lib/pulp_python_client/models/async_operation_response.rb +1 -1
- data/lib/pulp_python_client/models/content_summary.rb +1 -1
- data/lib/pulp_python_client/models/content_summary_response.rb +1 -1
- data/lib/pulp_python_client/models/exclude_platforms_enum.rb +1 -1
- data/lib/pulp_python_client/models/package_metadata_response.rb +1 -1
- data/lib/pulp_python_client/models/package_types_enum.rb +1 -1
- data/lib/pulp_python_client/models/package_upload.rb +1 -1
- data/lib/pulp_python_client/models/package_upload_task_response.rb +1 -1
- data/lib/pulp_python_client/models/paginated_repository_version_response_list.rb +1 -1
- data/lib/pulp_python_client/models/paginatedpython_python_distribution_response_list.rb +1 -1
- data/lib/pulp_python_client/models/paginatedpython_python_package_content_response_list.rb +1 -1
- data/lib/pulp_python_client/models/paginatedpython_python_publication_response_list.rb +1 -1
- data/lib/pulp_python_client/models/paginatedpython_python_remote_response_list.rb +1 -1
- data/lib/pulp_python_client/models/paginatedpython_python_repository_response_list.rb +1 -1
- data/lib/pulp_python_client/models/patchedpython_python_distribution.rb +1 -1
- data/lib/pulp_python_client/models/patchedpython_python_remote.rb +1 -1
- data/lib/pulp_python_client/models/patchedpython_python_repository.rb +1 -1
- data/lib/pulp_python_client/models/policy_enum.rb +1 -1
- data/lib/pulp_python_client/models/python_bander_remote.rb +1 -1
- data/lib/pulp_python_client/models/python_python_distribution.rb +1 -1
- data/lib/pulp_python_client/models/python_python_distribution_response.rb +1 -1
- data/lib/pulp_python_client/models/python_python_package_content.rb +1 -1
- data/lib/pulp_python_client/models/python_python_package_content_response.rb +1 -1
- data/lib/pulp_python_client/models/python_python_publication.rb +1 -1
- data/lib/pulp_python_client/models/python_python_publication_response.rb +1 -1
- data/lib/pulp_python_client/models/python_python_remote.rb +1 -1
- data/lib/pulp_python_client/models/python_python_remote_response.rb +1 -1
- data/lib/pulp_python_client/models/python_python_repository.rb +1 -1
- data/lib/pulp_python_client/models/python_python_repository_response.rb +1 -1
- data/lib/pulp_python_client/models/repository_add_remove_content.rb +3 -3
- data/lib/pulp_python_client/models/repository_sync_url.rb +1 -1
- data/lib/pulp_python_client/models/repository_version.rb +1 -1
- data/lib/pulp_python_client/models/repository_version_response.rb +1 -1
- data/lib/pulp_python_client/models/summary_response.rb +1 -1
- data/lib/pulp_python_client/version.rb +2 -2
- data/lib/pulp_python_client.rb +1 -1
- data/pulp_python_client.gemspec +1 -1
- data/spec/api/content_packages_api_spec.rb +3 -1
- data/spec/api/distributions_pypi_api_spec.rb +1 -1
- data/spec/api/publications_pypi_api_spec.rb +1 -1
- data/spec/api/pypi_api_spec.rb +1 -1
- data/spec/api/pypi_legacy_api_spec.rb +1 -1
- data/spec/api/pypi_metadata_api_spec.rb +1 -1
- data/spec/api/pypi_simple_api_spec.rb +1 -1
- data/spec/api/remotes_python_api_spec.rb +1 -1
- data/spec/api/repositories_python_api_spec.rb +1 -1
- data/spec/api/repositories_python_versions_api_spec.rb +1 -1
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/async_operation_response_spec.rb +1 -1
- data/spec/models/content_summary_response_spec.rb +1 -1
- data/spec/models/content_summary_spec.rb +1 -1
- data/spec/models/exclude_platforms_enum_spec.rb +1 -1
- data/spec/models/package_metadata_response_spec.rb +1 -1
- data/spec/models/package_types_enum_spec.rb +1 -1
- data/spec/models/package_upload_spec.rb +1 -1
- data/spec/models/package_upload_task_response_spec.rb +1 -1
- data/spec/models/paginated_repository_version_response_list_spec.rb +1 -1
- data/spec/models/paginatedpython_python_distribution_response_list_spec.rb +1 -1
- data/spec/models/paginatedpython_python_package_content_response_list_spec.rb +1 -1
- data/spec/models/paginatedpython_python_publication_response_list_spec.rb +1 -1
- data/spec/models/paginatedpython_python_remote_response_list_spec.rb +1 -1
- data/spec/models/paginatedpython_python_repository_response_list_spec.rb +1 -1
- data/spec/models/patchedpython_python_distribution_spec.rb +1 -1
- data/spec/models/patchedpython_python_remote_spec.rb +1 -1
- data/spec/models/patchedpython_python_repository_spec.rb +1 -1
- data/spec/models/policy_enum_spec.rb +1 -1
- data/spec/models/python_bander_remote_spec.rb +1 -1
- data/spec/models/python_python_distribution_response_spec.rb +1 -1
- data/spec/models/python_python_distribution_spec.rb +1 -1
- data/spec/models/python_python_package_content_response_spec.rb +1 -1
- data/spec/models/python_python_package_content_spec.rb +1 -1
- data/spec/models/python_python_publication_response_spec.rb +1 -1
- data/spec/models/python_python_publication_spec.rb +1 -1
- data/spec/models/python_python_remote_response_spec.rb +1 -1
- data/spec/models/python_python_remote_spec.rb +1 -1
- data/spec/models/python_python_repository_response_spec.rb +1 -1
- data/spec/models/python_python_repository_spec.rb +1 -1
- data/spec/models/repository_add_remove_content_spec.rb +1 -1
- data/spec/models/repository_sync_url_spec.rb +1 -1
- data/spec/models/repository_version_response_spec.rb +1 -1
- data/spec/models/repository_version_spec.rb +1 -1
- data/spec/models/summary_response_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +33 -196
- data/build/lib/pulpcore/__init__.py +0 -2
- data/build/lib/pulpcore/client/__init__.py +0 -2
- data/build/lib/pulpcore/client/pulp_python/__init__.py +0 -75
- data/build/lib/pulpcore/client/pulp_python/api/__init__.py +0 -15
- data/build/lib/pulpcore/client/pulp_python/api/content_packages_api.py +0 -626
- data/build/lib/pulpcore/client/pulp_python/api/distributions_pypi_api.py +0 -830
- data/build/lib/pulpcore/client/pulp_python/api/publications_pypi_api.py +0 -566
- data/build/lib/pulpcore/client/pulp_python/api/pypi_api.py +0 -162
- data/build/lib/pulpcore/client/pulp_python/api/pypi_legacy_api.py +0 -185
- data/build/lib/pulpcore/client/pulp_python/api/pypi_metadata_api.py +0 -171
- data/build/lib/pulpcore/client/pulp_python/api/pypi_simple_api.py +0 -434
- data/build/lib/pulpcore/client/pulp_python/api/remotes_python_api.py +0 -972
- data/build/lib/pulpcore/client/pulp_python/api/repositories_python_api.py +0 -1063
- data/build/lib/pulpcore/client/pulp_python/api/repositories_python_versions_api.py +0 -614
- data/build/lib/pulpcore/client/pulp_python/api_client.py +0 -667
- data/build/lib/pulpcore/client/pulp_python/configuration.py +0 -427
- data/build/lib/pulpcore/client/pulp_python/exceptions.py +0 -121
- data/build/lib/pulpcore/client/pulp_python/models/__init__.py +0 -51
- data/build/lib/pulpcore/client/pulp_python/models/async_operation_response.py +0 -124
- data/build/lib/pulpcore/client/pulp_python/models/content_summary.py +0 -176
- data/build/lib/pulpcore/client/pulp_python/models/content_summary_response.py +0 -176
- data/build/lib/pulpcore/client/pulp_python/models/exclude_platforms_enum.py +0 -103
- data/build/lib/pulpcore/client/pulp_python/models/package_metadata_response.py +0 -209
- data/build/lib/pulpcore/client/pulp_python/models/package_types_enum.py +0 -107
- data/build/lib/pulpcore/client/pulp_python/models/package_upload.py +0 -187
- data/build/lib/pulpcore/client/pulp_python/models/package_upload_task_response.py +0 -176
- data/build/lib/pulpcore/client/pulp_python/models/paginated_repository_version_response_list.py +0 -197
- data/build/lib/pulpcore/client/pulp_python/models/paginatedpython_python_distribution_response_list.py +0 -197
- data/build/lib/pulpcore/client/pulp_python/models/paginatedpython_python_package_content_response_list.py +0 -197
- data/build/lib/pulpcore/client/pulp_python/models/paginatedpython_python_publication_response_list.py +0 -197
- data/build/lib/pulpcore/client/pulp_python/models/paginatedpython_python_remote_response_list.py +0 -197
- data/build/lib/pulpcore/client/pulp_python/models/paginatedpython_python_repository_response_list.py +0 -197
- data/build/lib/pulpcore/client/pulp_python/models/patchedpython_python_distribution.py +0 -286
- data/build/lib/pulpcore/client/pulp_python/models/patchedpython_python_remote.py +0 -823
- data/build/lib/pulpcore/client/pulp_python/models/patchedpython_python_repository.py +0 -259
- data/build/lib/pulpcore/client/pulp_python/models/policy_enum.py +0 -102
- data/build/lib/pulpcore/client/pulp_python/models/python_bander_remote.py +0 -181
- data/build/lib/pulpcore/client/pulp_python/models/python_python_distribution.py +0 -288
- data/build/lib/pulpcore/client/pulp_python/models/python_python_distribution_response.py +0 -368
- data/build/lib/pulpcore/client/pulp_python/models/python_python_package_content.py +0 -824
- data/build/lib/pulpcore/client/pulp_python/models/python_python_package_content_response.py +0 -933
- data/build/lib/pulpcore/client/pulp_python/models/python_python_publication.py +0 -149
- data/build/lib/pulpcore/client/pulp_python/models/python_python_publication_response.py +0 -231
- data/build/lib/pulpcore/client/pulp_python/models/python_python_remote.py +0 -825
- data/build/lib/pulpcore/client/pulp_python/models/python_python_remote_response.py +0 -772
- data/build/lib/pulpcore/client/pulp_python/models/python_python_repository.py +0 -260
- data/build/lib/pulpcore/client/pulp_python/models/python_python_repository_response.py +0 -366
- data/build/lib/pulpcore/client/pulp_python/models/repository_add_remove_content.py +0 -179
- data/build/lib/pulpcore/client/pulp_python/models/repository_sync_url.py +0 -151
- data/build/lib/pulpcore/client/pulp_python/models/repository_version.py +0 -123
- data/build/lib/pulpcore/client/pulp_python/models/repository_version_response.py +0 -257
- data/build/lib/pulpcore/client/pulp_python/models/summary_response.py +0 -182
- data/build/lib/pulpcore/client/pulp_python/rest.py +0 -292
- data/dist/pulp_python-client-3.4.0.tar.gz +0 -0
- data/dist/pulp_python_client-3.4.0-py3-none-any.whl +0 -0
- data/pulp_python_client.egg-info/PKG-INFO +0 -15
- data/pulp_python_client.egg-info/SOURCES.txt +0 -105
- data/pulp_python_client.egg-info/dependency_links.txt +0 -1
- data/pulp_python_client.egg-info/requires.txt +0 -4
- data/pulp_python_client.egg-info/top_level.txt +0 -1
- data/pulpcore/__init__.py +0 -2
- data/pulpcore/client/__init__.py +0 -2
- data/pulpcore/client/pulp_python/__init__.py +0 -75
- data/pulpcore/client/pulp_python/api/__init__.py +0 -15
- data/pulpcore/client/pulp_python/api/content_packages_api.py +0 -626
- data/pulpcore/client/pulp_python/api/distributions_pypi_api.py +0 -830
- data/pulpcore/client/pulp_python/api/publications_pypi_api.py +0 -566
- data/pulpcore/client/pulp_python/api/pypi_api.py +0 -162
- data/pulpcore/client/pulp_python/api/pypi_legacy_api.py +0 -185
- data/pulpcore/client/pulp_python/api/pypi_metadata_api.py +0 -171
- data/pulpcore/client/pulp_python/api/pypi_simple_api.py +0 -434
- data/pulpcore/client/pulp_python/api/remotes_python_api.py +0 -972
- data/pulpcore/client/pulp_python/api/repositories_python_api.py +0 -1063
- data/pulpcore/client/pulp_python/api/repositories_python_versions_api.py +0 -614
- data/pulpcore/client/pulp_python/api_client.py +0 -667
- data/pulpcore/client/pulp_python/configuration.py +0 -427
- data/pulpcore/client/pulp_python/exceptions.py +0 -121
- data/pulpcore/client/pulp_python/models/__init__.py +0 -51
- data/pulpcore/client/pulp_python/models/async_operation_response.py +0 -124
- data/pulpcore/client/pulp_python/models/content_summary.py +0 -176
- data/pulpcore/client/pulp_python/models/content_summary_response.py +0 -176
- data/pulpcore/client/pulp_python/models/exclude_platforms_enum.py +0 -103
- data/pulpcore/client/pulp_python/models/package_metadata_response.py +0 -209
- data/pulpcore/client/pulp_python/models/package_types_enum.py +0 -107
- data/pulpcore/client/pulp_python/models/package_upload.py +0 -187
- data/pulpcore/client/pulp_python/models/package_upload_task_response.py +0 -176
- data/pulpcore/client/pulp_python/models/paginated_repository_version_response_list.py +0 -197
- data/pulpcore/client/pulp_python/models/paginatedpython_python_distribution_response_list.py +0 -197
- data/pulpcore/client/pulp_python/models/paginatedpython_python_package_content_response_list.py +0 -197
- data/pulpcore/client/pulp_python/models/paginatedpython_python_publication_response_list.py +0 -197
- data/pulpcore/client/pulp_python/models/paginatedpython_python_remote_response_list.py +0 -197
- data/pulpcore/client/pulp_python/models/paginatedpython_python_repository_response_list.py +0 -197
- data/pulpcore/client/pulp_python/models/patchedpython_python_distribution.py +0 -286
- data/pulpcore/client/pulp_python/models/patchedpython_python_remote.py +0 -823
- data/pulpcore/client/pulp_python/models/patchedpython_python_repository.py +0 -259
- data/pulpcore/client/pulp_python/models/policy_enum.py +0 -102
- data/pulpcore/client/pulp_python/models/python_bander_remote.py +0 -181
- data/pulpcore/client/pulp_python/models/python_python_distribution.py +0 -288
- data/pulpcore/client/pulp_python/models/python_python_distribution_response.py +0 -368
- data/pulpcore/client/pulp_python/models/python_python_package_content.py +0 -824
- data/pulpcore/client/pulp_python/models/python_python_package_content_response.py +0 -933
- data/pulpcore/client/pulp_python/models/python_python_publication.py +0 -149
- data/pulpcore/client/pulp_python/models/python_python_publication_response.py +0 -231
- data/pulpcore/client/pulp_python/models/python_python_remote.py +0 -825
- data/pulpcore/client/pulp_python/models/python_python_remote_response.py +0 -772
- data/pulpcore/client/pulp_python/models/python_python_repository.py +0 -260
- data/pulpcore/client/pulp_python/models/python_python_repository_response.py +0 -366
- data/pulpcore/client/pulp_python/models/repository_add_remove_content.py +0 -179
- data/pulpcore/client/pulp_python/models/repository_sync_url.py +0 -151
- data/pulpcore/client/pulp_python/models/repository_version.py +0 -123
- data/pulpcore/client/pulp_python/models/repository_version_response.py +0 -257
- data/pulpcore/client/pulp_python/models/summary_response.py +0 -182
- data/pulpcore/client/pulp_python/rest.py +0 -292
- data/requirements.txt +0 -6
- data/setup.cfg +0 -2
- data/setup.py +0 -42
- data/test/__init__.py +0 -0
- data/test/test_async_operation_response.py +0 -54
- data/test/test_content_packages_api.py +0 -55
- data/test/test_content_summary.py +0 -70
- data/test/test_content_summary_response.py +0 -70
- data/test/test_distributions_pypi_api.py +0 -76
- data/test/test_exclude_platforms_enum.py +0 -52
- data/test/test_package_metadata_response.py +0 -60
- data/test/test_package_types_enum.py +0 -52
- data/test/test_package_upload.py +0 -57
- data/test/test_package_upload_task_response.py +0 -58
- data/test/test_paginated_repository_version_response_list.py +0 -64
- data/test/test_paginatedpython_python_distribution_response_list.py +0 -68
- data/test/test_paginatedpython_python_package_content_response_list.py +0 -88
- data/test/test_paginatedpython_python_publication_response_list.py +0 -65
- data/test/test_paginatedpython_python_remote_response_list.py +0 -88
- data/test/test_paginatedpython_python_repository_response_list.py +0 -68
- data/test/test_patchedpython_python_distribution.py +0 -59
- data/test/test_patchedpython_python_remote.py +0 -84
- data/test/test_patchedpython_python_repository.py +0 -58
- data/test/test_policy_enum.py +0 -52
- data/test/test_publications_pypi_api.py +0 -62
- data/test/test_pypi_api.py +0 -41
- data/test/test_pypi_legacy_api.py +0 -41
- data/test/test_pypi_metadata_api.py +0 -41
- data/test/test_pypi_simple_api.py +0 -55
- data/test/test_python_bander_remote.py +0 -57
- data/test/test_python_python_distribution.py +0 -61
- data/test/test_python_python_distribution_response.py +0 -64
- data/test/test_python_python_package_content.py +0 -79
- data/test/test_python_python_package_content_response.py +0 -82
- data/test/test_python_python_publication.py +0 -54
- data/test/test_python_python_publication_response.py +0 -59
- data/test/test_python_python_remote.py +0 -86
- data/test/test_python_python_remote_response.py +0 -84
- data/test/test_python_python_repository.py +0 -59
- data/test/test_python_python_repository_response.py +0 -63
- data/test/test_remotes_python_api.py +0 -83
- data/test/test_repositories_python_api.py +0 -90
- data/test/test_repositories_python_versions_api.py +0 -61
- data/test/test_repository_add_remove_content.py +0 -59
- data/test/test_repository_sync_url.py +0 -54
- data/test/test_repository_version.py +0 -53
- data/test/test_repository_version_response.py +0 -58
- data/test/test_summary_response.py +0 -58
- data/test-requirements.txt +0 -3
- 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)
|