pulp-python-client 3.10.0__py3-none-any.whl → 3.11.1__py3-none-any.whl
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.
Potentially problematic release.
This version of pulp-python-client might be problematic. Click here for more details.
- {pulp_python_client-3.10.0.dist-info → pulp_python_client-3.11.1.dist-info}/METADATA +6 -8
- {pulp_python_client-3.10.0.dist-info → pulp_python_client-3.11.1.dist-info}/RECORD +34 -30
- {pulp_python_client-3.10.0.dist-info → pulp_python_client-3.11.1.dist-info}/WHEEL +1 -1
- pulpcore/client/pulp_python/__init__.py +5 -1
- pulpcore/client/pulp_python/api/content_packages_api.py +19 -9
- pulpcore/client/pulp_python/api/distributions_pypi_api.py +281 -2
- pulpcore/client/pulp_python/api/publications_pypi_api.py +5 -0
- pulpcore/client/pulp_python/api/remotes_python_api.py +279 -0
- pulpcore/client/pulp_python/api/repositories_python_api.py +279 -0
- pulpcore/client/pulp_python/api/repositories_python_versions_api.py +5 -0
- pulpcore/client/pulp_python/api_client.py +1 -1
- pulpcore/client/pulp_python/configuration.py +3 -3
- pulpcore/client/pulp_python/models/__init__.py +4 -0
- pulpcore/client/pulp_python/models/paginated_repository_version_response_list.py +6 -4
- pulpcore/client/pulp_python/models/paginatedpython_python_distribution_response_list.py +6 -4
- pulpcore/client/pulp_python/models/paginatedpython_python_package_content_response_list.py +6 -4
- pulpcore/client/pulp_python/models/paginatedpython_python_publication_response_list.py +6 -4
- pulpcore/client/pulp_python/models/paginatedpython_python_remote_response_list.py +6 -4
- pulpcore/client/pulp_python/models/paginatedpython_python_repository_response_list.py +6 -4
- pulpcore/client/pulp_python/models/patchedpython_python_distribution.py +29 -1
- pulpcore/client/pulp_python/models/python_python_distribution.py +29 -1
- pulpcore/client/pulp_python/models/python_python_distribution_response.py +57 -1
- pulpcore/client/pulp_python/models/python_python_package_content.py +33 -33
- pulpcore/client/pulp_python/models/python_python_package_content_response.py +29 -1
- pulpcore/client/pulp_python/models/python_python_publication_response.py +29 -1
- pulpcore/client/pulp_python/models/python_python_remote_response.py +29 -29
- pulpcore/client/pulp_python/models/python_python_remote_response_hidden_fields.py +6 -4
- pulpcore/client/pulp_python/models/python_python_repository_response.py +29 -1
- pulpcore/client/pulp_python/models/repository_version_response.py +29 -1
- pulpcore/client/pulp_python/models/set_label.py +153 -0
- pulpcore/client/pulp_python/models/set_label_response.py +150 -0
- pulpcore/client/pulp_python/models/unset_label.py +128 -0
- pulpcore/client/pulp_python/models/unset_label_response.py +151 -0
- {pulp_python_client-3.10.0.dist-info → pulp_python_client-3.11.1.dist-info}/top_level.txt +0 -0
|
@@ -1,19 +1,17 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pulp-python-client
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.11.1
|
|
4
4
|
Summary: Pulp 3 API
|
|
5
|
-
Home-page:
|
|
5
|
+
Home-page:
|
|
6
6
|
Author: Pulp Team
|
|
7
7
|
Author-email: pulp-list@redhat.com
|
|
8
8
|
License: GPLv2+
|
|
9
9
|
Keywords: pulp,pulpcore,client,Pulp 3 API
|
|
10
|
-
Platform: UNKNOWN
|
|
11
10
|
Requires-Python: >=3.4
|
|
12
|
-
Requires-Dist: urllib3
|
|
13
|
-
Requires-Dist: six
|
|
11
|
+
Requires-Dist: urllib3 >=1.15
|
|
12
|
+
Requires-Dist: six >=1.10
|
|
14
13
|
Requires-Dist: certifi
|
|
15
14
|
Requires-Dist: python-dateutil
|
|
16
15
|
|
|
17
|
-
Fetch, Upload, Organize, and Distribute Software Packages # noqa: E501
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
Fetch, Upload, Organize, and Distribute Software Packages # noqa: E501
|
|
17
|
+
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
pulpcore/__init__.py,sha256=QDJyS5jtJnGFsSuOx43ZvLBCOrHImm8NrZk5f9URWdk,75
|
|
2
2
|
pulpcore/client/__init__.py,sha256=QDJyS5jtJnGFsSuOx43ZvLBCOrHImm8NrZk5f9URWdk,75
|
|
3
|
-
pulpcore/client/pulp_python/__init__.py,sha256=
|
|
4
|
-
pulpcore/client/pulp_python/api_client.py,sha256=
|
|
5
|
-
pulpcore/client/pulp_python/configuration.py,sha256=
|
|
3
|
+
pulpcore/client/pulp_python/__init__.py,sha256=gyz9xNnm2xK3ahRUy1eUshFozJcupjEa6RVbefbMb9g,5553
|
|
4
|
+
pulpcore/client/pulp_python/api_client.py,sha256=oTrA7ZZUndCh7O7Zo1Wz6LkcZQuy80yDWYhWZLGkEW8,26290
|
|
5
|
+
pulpcore/client/pulp_python/configuration.py,sha256=JxYMBIJAngXGz4Z0a_mK5PtDAD-HoMwmaleoe-59uJ4,13968
|
|
6
6
|
pulpcore/client/pulp_python/exceptions.py,sha256=4P8pBnEQ5hqaudJJMdmM57YfxTTRFcvkQ86GsvtKNEs,3769
|
|
7
7
|
pulpcore/client/pulp_python/rest.py,sha256=LT9W8ZNtZbFDfYEEqBWcQ70vp8XfJLiN2TtKyozgk4U,12314
|
|
8
8
|
pulpcore/client/pulp_python/api/__init__.py,sha256=Kevd065wwgBI2gr_HXjcVAcTSqLHvBS_VAYlQkbNAYU,909
|
|
9
|
-
pulpcore/client/pulp_python/api/content_packages_api.py,sha256=
|
|
10
|
-
pulpcore/client/pulp_python/api/distributions_pypi_api.py,sha256=
|
|
11
|
-
pulpcore/client/pulp_python/api/publications_pypi_api.py,sha256=
|
|
9
|
+
pulpcore/client/pulp_python/api/content_packages_api.py,sha256=auS-1XYfdH6Z2vnmA2SQFpB-dYcfXfw1yFGLX5OdNyU,49196
|
|
10
|
+
pulpcore/client/pulp_python/api/distributions_pypi_api.py,sha256=tGMMVebO3xOxtG37iqPXLC_58RvewDmkZDCZXnt5m9w,60745
|
|
11
|
+
pulpcore/client/pulp_python/api/publications_pypi_api.py,sha256=DXVfU4nk2ZRmPLnzdeDwoRD6aXcelIrGevu0PLMpNuM,31112
|
|
12
12
|
pulpcore/client/pulp_python/api/pypi_api.py,sha256=4b8op0jY4_nHB_PPm-T0Xzr0Eqw7h3h0XnUUcLvpsjY,6615
|
|
13
13
|
pulpcore/client/pulp_python/api/pypi_legacy_api.py,sha256=RmvbEF-YqIikUksTaZ-Peao0T0-4jrvx922Wg7B8OZw,9226
|
|
14
14
|
pulpcore/client/pulp_python/api/pypi_metadata_api.py,sha256=af40pMUEdDIb3Z_3QOhaSYCk4-Rkmj-MH9tE65qXFZY,7580
|
|
15
15
|
pulpcore/client/pulp_python/api/pypi_simple_api.py,sha256=vaMDnI3Oqi0JJCnRwuQPDYNUbKmm4ktbtTD2aPM7RVY,21506
|
|
16
|
-
pulpcore/client/pulp_python/api/remotes_python_api.py,sha256=
|
|
17
|
-
pulpcore/client/pulp_python/api/repositories_python_api.py,sha256=
|
|
18
|
-
pulpcore/client/pulp_python/api/repositories_python_versions_api.py,sha256=
|
|
19
|
-
pulpcore/client/pulp_python/models/__init__.py,sha256=
|
|
16
|
+
pulpcore/client/pulp_python/api/remotes_python_api.py,sha256=LDj4GaFnOw_0gbt1Gwsgzw-rXSVdQUji6b-4FkoCKPg,70618
|
|
17
|
+
pulpcore/client/pulp_python/api/repositories_python_api.py,sha256=lN3y77Xsu1is0EXrpfqY7c2Vtue0dRLm_1KUY4_AfMo,75764
|
|
18
|
+
pulpcore/client/pulp_python/api/repositories_python_versions_api.py,sha256=WqfBLvCcV2u2DzBtL59uHaqeyKJuUB2j3FjhcNk8J7I,34096
|
|
19
|
+
pulpcore/client/pulp_python/models/__init__.py,sha256=V7AuvPwp0syJfbqw5EW1HOReFfYrZMpBLoiNE-mAaiA,4203
|
|
20
20
|
pulpcore/client/pulp_python/models/async_operation_response.py,sha256=I7rVENGhKiRyMqQ_XnGsH0gPYb2wEh1tpgQ2AxoZvgE,3575
|
|
21
21
|
pulpcore/client/pulp_python/models/content_summary_response.py,sha256=p5puVCEez70e-HkCTlUccZ7ND-UfFkcwg0cO4P1I9rQ,5302
|
|
22
22
|
pulpcore/client/pulp_python/models/exclude_platforms_enum.py,sha256=pBOeomv14HntYotXCW13BB8hvUZXc-A_xGtBLz0sETo,2908
|
|
@@ -24,34 +24,38 @@ pulpcore/client/pulp_python/models/package_metadata_response.py,sha256=VwwmNNuPD
|
|
|
24
24
|
pulpcore/client/pulp_python/models/package_types_enum.py,sha256=GJHD6pglj10qyB4Ap-mPbFzR5TO7TRXlvR0TbspzXoU,3093
|
|
25
25
|
pulpcore/client/pulp_python/models/package_upload.py,sha256=nZymY1TmC2x1E2YFNZfTyXDLR8N5vOhndK3EIXFGM4E,6276
|
|
26
26
|
pulpcore/client/pulp_python/models/package_upload_task_response.py,sha256=DcbKw4CPUL2t4RxsguqdgLzSmundaKuZNb4pvifdjA8,5386
|
|
27
|
-
pulpcore/client/pulp_python/models/paginated_repository_version_response_list.py,sha256=
|
|
28
|
-
pulpcore/client/pulp_python/models/paginatedpython_python_distribution_response_list.py,sha256=
|
|
29
|
-
pulpcore/client/pulp_python/models/paginatedpython_python_package_content_response_list.py,sha256
|
|
30
|
-
pulpcore/client/pulp_python/models/paginatedpython_python_publication_response_list.py,sha256=
|
|
31
|
-
pulpcore/client/pulp_python/models/paginatedpython_python_remote_response_list.py,sha256=
|
|
32
|
-
pulpcore/client/pulp_python/models/paginatedpython_python_repository_response_list.py,sha256=
|
|
33
|
-
pulpcore/client/pulp_python/models/patchedpython_python_distribution.py,sha256=
|
|
27
|
+
pulpcore/client/pulp_python/models/paginated_repository_version_response_list.py,sha256=IMzcMPg2LP8HZNy4G2Z2P5elpr9-NkC08hBdrav-sAI,5990
|
|
28
|
+
pulpcore/client/pulp_python/models/paginatedpython_python_distribution_response_list.py,sha256=cKnKaCTcRl68iCARZfAmoSQCmyPzEKwuizvGM8Abm4s,6151
|
|
29
|
+
pulpcore/client/pulp_python/models/paginatedpython_python_package_content_response_list.py,sha256=CQiMkR1cLlI1vFKL6felc6DEDIaOOMQJ6NlWdHydUgE,6197
|
|
30
|
+
pulpcore/client/pulp_python/models/paginatedpython_python_publication_response_list.py,sha256=uOLbzeu4ruUkvN-3gt3YpvSAXv0H9El87kFkSlJlOcI,6128
|
|
31
|
+
pulpcore/client/pulp_python/models/paginatedpython_python_remote_response_list.py,sha256=PrIFucl1vzjajOL_hvfEGDQHR4DUjsTYNF18hkxm1Ok,6013
|
|
32
|
+
pulpcore/client/pulp_python/models/paginatedpython_python_repository_response_list.py,sha256=lQ_VSabGgUfTl7Z5kTdGV1sgKSPTLBI5r8whjBB6B0s,6105
|
|
33
|
+
pulpcore/client/pulp_python/models/patchedpython_python_distribution.py,sha256=14hsCKjn6gvvUz20b_sW7Z8rxpVIBbKb0K3dabLmWt4,11314
|
|
34
34
|
pulpcore/client/pulp_python/models/patchedpython_python_remote.py,sha256=xQ0lnzjHajhglcLWUNNmJkK6lNqOVe0TGi3A2EIFT8o,34026
|
|
35
35
|
pulpcore/client/pulp_python/models/patchedpython_python_repository.py,sha256=laidxfBKqEm2-LNTm7YsMl8_JMrAgiOmT21pXIW2ujw,8968
|
|
36
36
|
pulpcore/client/pulp_python/models/policy_enum.py,sha256=73sYQjy3uC2cxirdImyK1VIZtivP3ZdoGjVwzlXP9vc,2862
|
|
37
37
|
pulpcore/client/pulp_python/models/python_bander_remote.py,sha256=MeYhjtFxH7ffQpv7c0_y99yofNlrNHYna_wzjJui2Mg,6771
|
|
38
|
-
pulpcore/client/pulp_python/models/python_python_distribution.py,sha256=
|
|
39
|
-
pulpcore/client/pulp_python/models/python_python_distribution_response.py,sha256=
|
|
40
|
-
pulpcore/client/pulp_python/models/python_python_package_content.py,sha256=
|
|
41
|
-
pulpcore/client/pulp_python/models/python_python_package_content_response.py,sha256=
|
|
38
|
+
pulpcore/client/pulp_python/models/python_python_distribution.py,sha256=xYjloBXTKGhXyvxh83zPkjzZb7paFEuccE9hSJyFrhQ,11347
|
|
39
|
+
pulpcore/client/pulp_python/models/python_python_distribution_response.py,sha256=N5Wkha0tt3sBO11rUx3FOQ1qVl1aY6tI_tVSmj5nCPU,14964
|
|
40
|
+
pulpcore/client/pulp_python/models/python_python_package_content.py,sha256=kAwd-5h4-kkhVtMdf_lQDZcQCXgISbxhdku6PCNfc5U,29642
|
|
41
|
+
pulpcore/client/pulp_python/models/python_python_package_content_response.py,sha256=AQ2_T51m7lFXvqEqj9MaO1GI_jHGHbg3p5SkAAoVl6w,33939
|
|
42
42
|
pulpcore/client/pulp_python/models/python_python_publication.py,sha256=WTrDUV3q7pTf-cI7LTTrv_OQz0xuqAqSHVc8fTbnzb4,4488
|
|
43
|
-
pulpcore/client/pulp_python/models/python_python_publication_response.py,sha256=
|
|
43
|
+
pulpcore/client/pulp_python/models/python_python_publication_response.py,sha256=46zUsGER5G8tgBxQ83RIEDT__-7kGJ_stdYhcq6xC8I,8680
|
|
44
44
|
pulpcore/client/pulp_python/models/python_python_remote.py,sha256=5PxRjJiPtuMHsvzwv1IkVHm3T78ftQSnY3rpdEearF0,33549
|
|
45
|
-
pulpcore/client/pulp_python/models/python_python_remote_response.py,sha256=
|
|
46
|
-
pulpcore/client/pulp_python/models/python_python_remote_response_hidden_fields.py,sha256=
|
|
45
|
+
pulpcore/client/pulp_python/models/python_python_remote_response.py,sha256=xuMX7T6Zhce4vBHZbkPUitHqDXbKK3K5XbJkIHaFYPM,31026
|
|
46
|
+
pulpcore/client/pulp_python/models/python_python_remote_response_hidden_fields.py,sha256=FMQnJB2ReyO6XAUzui-KVDsXvh5-k_Xu5mVLfpPXmfM,4495
|
|
47
47
|
pulpcore/client/pulp_python/models/python_python_repository.py,sha256=OleE3896uKYswXkzmuNdXVQwr9f-oqNyp6YsrDC6vmo,8926
|
|
48
|
-
pulpcore/client/pulp_python/models/python_python_repository_response.py,sha256=
|
|
48
|
+
pulpcore/client/pulp_python/models/python_python_repository_response.py,sha256=2Ps5Lyk6QOHH1lnJIhuW_7_tLio_NjJ9xV1BAX7SqcI,13458
|
|
49
49
|
pulpcore/client/pulp_python/models/repair.py,sha256=bbqKUW0PEkU439CTemJqfDGc46y6GNMSkRiUrfYZy34,3820
|
|
50
50
|
pulpcore/client/pulp_python/models/repository_add_remove_content.py,sha256=kIKRNyasPNB7OpvdgItkj4du9vWGU2xJoMeORzr_jdc,6381
|
|
51
51
|
pulpcore/client/pulp_python/models/repository_sync_url.py,sha256=kVBwS5dytzGac0I9pAHQt4s-XzNduB4wKQ8Vvp9PBk8,4484
|
|
52
|
-
pulpcore/client/pulp_python/models/repository_version_response.py,sha256=
|
|
52
|
+
pulpcore/client/pulp_python/models/repository_version_response.py,sha256=CGTz78FzWd2Acv9ZPXLcveTnjPE6_WrRv0ralQQVaNc,9262
|
|
53
|
+
pulpcore/client/pulp_python/models/set_label.py,sha256=YgHWKSUcjKD3F2NL5rt0QiD3ucEDCB-uyFG-hI9GOms,4427
|
|
54
|
+
pulpcore/client/pulp_python/models/set_label_response.py,sha256=n0PkgGraiIISAl2UcCTiRUu5NaiEfbPeBoMgPbD02ss,4288
|
|
53
55
|
pulpcore/client/pulp_python/models/summary_response.py,sha256=tnsbMSIsJ7Wn3TxKOFYPNgwutne1jy6Vx-aaOZejiRA,5498
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
pulp_python_client-3.
|
|
57
|
-
pulp_python_client-3.
|
|
56
|
+
pulpcore/client/pulp_python/models/unset_label.py,sha256=jOchl5kHsTLqXAI6TSlm3qydKvjrMLusScLEEybe-8A,3896
|
|
57
|
+
pulpcore/client/pulp_python/models/unset_label_response.py,sha256=zz9WS1LOXfadx_kZ3MEhQE0ipzN_6zSvVLIRHt3Yn1g,4346
|
|
58
|
+
pulp_python_client-3.11.1.dist-info/METADATA,sha256=wdEI00kL4XftC5GEPrmcYuGJGEbDTeZlYq54H7Q1ZHU,421
|
|
59
|
+
pulp_python_client-3.11.1.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
60
|
+
pulp_python_client-3.11.1.dist-info/top_level.txt,sha256=v1J0AeNxNhm8YE5-xQe1G1YbfoMRZ_u9DAg_Gi7omeY,9
|
|
61
|
+
pulp_python_client-3.11.1.dist-info/RECORD,,
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
|
|
16
16
|
from __future__ import absolute_import
|
|
17
17
|
|
|
18
|
-
__version__ = "3.
|
|
18
|
+
__version__ = "3.11.1"
|
|
19
19
|
|
|
20
20
|
# import apis into sdk package
|
|
21
21
|
from pulpcore.client.pulp_python.api.content_packages_api import ContentPackagesApi
|
|
@@ -71,5 +71,9 @@ from pulpcore.client.pulp_python.models.repair import Repair
|
|
|
71
71
|
from pulpcore.client.pulp_python.models.repository_add_remove_content import RepositoryAddRemoveContent
|
|
72
72
|
from pulpcore.client.pulp_python.models.repository_sync_url import RepositorySyncURL
|
|
73
73
|
from pulpcore.client.pulp_python.models.repository_version_response import RepositoryVersionResponse
|
|
74
|
+
from pulpcore.client.pulp_python.models.set_label import SetLabel
|
|
75
|
+
from pulpcore.client.pulp_python.models.set_label_response import SetLabelResponse
|
|
74
76
|
from pulpcore.client.pulp_python.models.summary_response import SummaryResponse
|
|
77
|
+
from pulpcore.client.pulp_python.models.unset_label import UnsetLabel
|
|
78
|
+
from pulpcore.client.pulp_python.models.unset_label_response import UnsetLabelResponse
|
|
75
79
|
|
|
@@ -48,10 +48,10 @@ class ContentPackagesApi(object):
|
|
|
48
48
|
|
|
49
49
|
:param async_req bool: execute request asynchronously
|
|
50
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
51
|
:param str repository: A URI of a repository the new content unit should be associated with.
|
|
54
|
-
:param str
|
|
52
|
+
:param str artifact: Artifact file representing the physical content
|
|
53
|
+
:param file file: An uploaded file that may be turned into the content unit.
|
|
54
|
+
:param str upload: An uncommitted upload that may be turned into the content unit.
|
|
55
55
|
:param str sha256: The SHA256 digest of this package.
|
|
56
56
|
:param str summary: A one-line summary of what the package does.
|
|
57
57
|
:param str description: A longer description of the package that can run to several paragraphs.
|
|
@@ -99,10 +99,10 @@ class ContentPackagesApi(object):
|
|
|
99
99
|
|
|
100
100
|
:param async_req bool: execute request asynchronously
|
|
101
101
|
:param str relative_path: Path where the artifact is located relative to distributions base_path (required)
|
|
102
|
-
:param str artifact: Artifact file representing the physical content
|
|
103
|
-
:param file file: An uploaded file that may be turned into the artifact of the content unit.
|
|
104
102
|
:param str repository: A URI of a repository the new content unit should be associated with.
|
|
105
|
-
:param str
|
|
103
|
+
:param str artifact: Artifact file representing the physical content
|
|
104
|
+
:param file file: An uploaded file that may be turned into the content unit.
|
|
105
|
+
:param str upload: An uncommitted upload that may be turned into the content unit.
|
|
106
106
|
:param str sha256: The SHA256 digest of this package.
|
|
107
107
|
:param str summary: A one-line summary of what the package does.
|
|
108
108
|
:param str description: A longer description of the package that can run to several paragraphs.
|
|
@@ -143,9 +143,9 @@ class ContentPackagesApi(object):
|
|
|
143
143
|
|
|
144
144
|
all_params = [
|
|
145
145
|
'relative_path',
|
|
146
|
+
'repository',
|
|
146
147
|
'artifact',
|
|
147
148
|
'file',
|
|
148
|
-
'repository',
|
|
149
149
|
'upload',
|
|
150
150
|
'sha256',
|
|
151
151
|
'summary',
|
|
@@ -208,14 +208,14 @@ class ContentPackagesApi(object):
|
|
|
208
208
|
|
|
209
209
|
form_params = []
|
|
210
210
|
local_var_files = {}
|
|
211
|
+
if 'repository' in local_var_params:
|
|
212
|
+
form_params.append(('repository', local_var_params['repository'])) # noqa: E501
|
|
211
213
|
if 'artifact' in local_var_params:
|
|
212
214
|
form_params.append(('artifact', local_var_params['artifact'])) # noqa: E501
|
|
213
215
|
if 'relative_path' in local_var_params:
|
|
214
216
|
form_params.append(('relative_path', local_var_params['relative_path'])) # noqa: E501
|
|
215
217
|
if 'file' in local_var_params:
|
|
216
218
|
local_var_files['file'] = local_var_params['file'] # noqa: E501
|
|
217
|
-
if 'repository' in local_var_params:
|
|
218
|
-
form_params.append(('repository', local_var_params['repository'])) # noqa: E501
|
|
219
219
|
if 'upload' in local_var_params:
|
|
220
220
|
form_params.append(('upload', local_var_params['upload'])) # noqa: E501
|
|
221
221
|
if 'sha256' in local_var_params:
|
|
@@ -313,10 +313,12 @@ class ContentPackagesApi(object):
|
|
|
313
313
|
:param list[str] name__in: Filter results where name is in a comma-separated list of values
|
|
314
314
|
:param int offset: The initial index from which to return the results.
|
|
315
315
|
:param list[str] ordering: Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `filename` - Filename * `-filename` - Filename (descending) * `packagetype` - Packagetype * `-packagetype` - Packagetype (descending) * `name` - Name * `-name` - Name (descending) * `version` - Version * `-version` - Version (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `python_version` - Python version * `-python_version` - Python version (descending) * `metadata_version` - Metadata version * `-metadata_version` - Metadata version (descending) * `summary` - Summary * `-summary` - Summary (descending) * `description` - Description * `-description` - Description (descending) * `keywords` - Keywords * `-keywords` - Keywords (descending) * `home_page` - Home page * `-home_page` - Home page (descending) * `download_url` - Download url * `-download_url` - Download url (descending) * `author` - Author * `-author` - Author (descending) * `author_email` - Author email * `-author_email` - Author email (descending) * `maintainer` - Maintainer * `-maintainer` - Maintainer (descending) * `maintainer_email` - Maintainer email * `-maintainer_email` - Maintainer email (descending) * `license` - License * `-license` - License (descending) * `requires_python` - Requires python * `-requires_python` - Requires python (descending) * `project_url` - Project url * `-project_url` - Project url (descending) * `platform` - Platform * `-platform` - Platform (descending) * `supported_platform` - Supported platform * `-supported_platform` - Supported platform (descending) * `requires_dist` - Requires dist * `-requires_dist` - Requires dist (descending) * `provides_dist` - Provides dist * `-provides_dist` - Provides dist (descending) * `obsoletes_dist` - Obsoletes dist * `-obsoletes_dist` - Obsoletes dist (descending) * `requires_external` - Requires external * `-requires_external` - Requires external (descending) * `classifiers` - Classifiers * `-classifiers` - Classifiers (descending) * `project_urls` - Project urls * `-project_urls` - Project urls (descending) * `description_content_type` - Description content type * `-description_content_type` - Description content type (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
316
|
+
:param float orphaned_for: Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
|
316
317
|
:param str packagetype: Filter results where packagetype matches value * `bdist_dmg` - bdist_dmg * `bdist_dumb` - bdist_dumb * `bdist_egg` - bdist_egg * `bdist_msi` - bdist_msi * `bdist_rpm` - bdist_rpm * `bdist_wheel` - bdist_wheel * `bdist_wininst` - bdist_wininst * `sdist` - sdist
|
|
317
318
|
:param list[str] packagetype__in: Filter results where packagetype is in a comma-separated list of values
|
|
318
319
|
:param list[str] pulp_href__in: Multiple values may be separated by commas.
|
|
319
320
|
:param list[str] pulp_id__in: Multiple values may be separated by commas.
|
|
321
|
+
:param str q:
|
|
320
322
|
:param str repository_version: Repository Version referenced by HREF
|
|
321
323
|
:param str repository_version_added: Repository Version referenced by HREF
|
|
322
324
|
:param str repository_version_removed: Repository Version referenced by HREF
|
|
@@ -368,10 +370,12 @@ class ContentPackagesApi(object):
|
|
|
368
370
|
:param list[str] name__in: Filter results where name is in a comma-separated list of values
|
|
369
371
|
:param int offset: The initial index from which to return the results.
|
|
370
372
|
:param list[str] ordering: Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `filename` - Filename * `-filename` - Filename (descending) * `packagetype` - Packagetype * `-packagetype` - Packagetype (descending) * `name` - Name * `-name` - Name (descending) * `version` - Version * `-version` - Version (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `python_version` - Python version * `-python_version` - Python version (descending) * `metadata_version` - Metadata version * `-metadata_version` - Metadata version (descending) * `summary` - Summary * `-summary` - Summary (descending) * `description` - Description * `-description` - Description (descending) * `keywords` - Keywords * `-keywords` - Keywords (descending) * `home_page` - Home page * `-home_page` - Home page (descending) * `download_url` - Download url * `-download_url` - Download url (descending) * `author` - Author * `-author` - Author (descending) * `author_email` - Author email * `-author_email` - Author email (descending) * `maintainer` - Maintainer * `-maintainer` - Maintainer (descending) * `maintainer_email` - Maintainer email * `-maintainer_email` - Maintainer email (descending) * `license` - License * `-license` - License (descending) * `requires_python` - Requires python * `-requires_python` - Requires python (descending) * `project_url` - Project url * `-project_url` - Project url (descending) * `platform` - Platform * `-platform` - Platform (descending) * `supported_platform` - Supported platform * `-supported_platform` - Supported platform (descending) * `requires_dist` - Requires dist * `-requires_dist` - Requires dist (descending) * `provides_dist` - Provides dist * `-provides_dist` - Provides dist (descending) * `obsoletes_dist` - Obsoletes dist * `-obsoletes_dist` - Obsoletes dist (descending) * `requires_external` - Requires external * `-requires_external` - Requires external (descending) * `classifiers` - Classifiers * `-classifiers` - Classifiers (descending) * `project_urls` - Project urls * `-project_urls` - Project urls (descending) * `description_content_type` - Description content type * `-description_content_type` - Description content type (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
373
|
+
:param float orphaned_for: Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
|
371
374
|
:param str packagetype: Filter results where packagetype matches value * `bdist_dmg` - bdist_dmg * `bdist_dumb` - bdist_dumb * `bdist_egg` - bdist_egg * `bdist_msi` - bdist_msi * `bdist_rpm` - bdist_rpm * `bdist_wheel` - bdist_wheel * `bdist_wininst` - bdist_wininst * `sdist` - sdist
|
|
372
375
|
:param list[str] packagetype__in: Filter results where packagetype is in a comma-separated list of values
|
|
373
376
|
:param list[str] pulp_href__in: Multiple values may be separated by commas.
|
|
374
377
|
:param list[str] pulp_id__in: Multiple values may be separated by commas.
|
|
378
|
+
:param str q:
|
|
375
379
|
:param str repository_version: Repository Version referenced by HREF
|
|
376
380
|
:param str repository_version_added: Repository Version referenced by HREF
|
|
377
381
|
:param str repository_version_removed: Repository Version referenced by HREF
|
|
@@ -416,10 +420,12 @@ class ContentPackagesApi(object):
|
|
|
416
420
|
'name__in',
|
|
417
421
|
'offset',
|
|
418
422
|
'ordering',
|
|
423
|
+
'orphaned_for',
|
|
419
424
|
'packagetype',
|
|
420
425
|
'packagetype__in',
|
|
421
426
|
'pulp_href__in',
|
|
422
427
|
'pulp_id__in',
|
|
428
|
+
'q',
|
|
423
429
|
'repository_version',
|
|
424
430
|
'repository_version_added',
|
|
425
431
|
'repository_version_removed',
|
|
@@ -488,6 +494,8 @@ class ContentPackagesApi(object):
|
|
|
488
494
|
if 'ordering' in local_var_params and local_var_params['ordering'] is not None: # noqa: E501
|
|
489
495
|
query_params.append(('ordering', local_var_params['ordering'])) # noqa: E501
|
|
490
496
|
collection_formats['ordering'] = 'csv' # noqa: E501
|
|
497
|
+
if 'orphaned_for' in local_var_params and local_var_params['orphaned_for'] is not None: # noqa: E501
|
|
498
|
+
query_params.append(('orphaned_for', local_var_params['orphaned_for'])) # noqa: E501
|
|
491
499
|
if 'packagetype' in local_var_params and local_var_params['packagetype'] is not None: # noqa: E501
|
|
492
500
|
query_params.append(('packagetype', local_var_params['packagetype'])) # noqa: E501
|
|
493
501
|
if 'packagetype__in' in local_var_params and local_var_params['packagetype__in'] is not None: # noqa: E501
|
|
@@ -499,6 +507,8 @@ class ContentPackagesApi(object):
|
|
|
499
507
|
if 'pulp_id__in' in local_var_params and local_var_params['pulp_id__in'] is not None: # noqa: E501
|
|
500
508
|
query_params.append(('pulp_id__in', local_var_params['pulp_id__in'])) # noqa: E501
|
|
501
509
|
collection_formats['pulp_id__in'] = 'csv' # noqa: E501
|
|
510
|
+
if 'q' in local_var_params and local_var_params['q'] is not None: # noqa: E501
|
|
511
|
+
query_params.append(('q', local_var_params['q'])) # noqa: E501
|
|
502
512
|
if 'repository_version' in local_var_params and local_var_params['repository_version'] is not None: # noqa: E501
|
|
503
513
|
query_params.append(('repository_version', local_var_params['repository_version'])) # noqa: E501
|
|
504
514
|
if 'repository_version_added' in local_var_params and local_var_params['repository_version_added'] is not None: # noqa: E501
|
|
@@ -287,13 +287,18 @@ class DistributionsPypiApi(object):
|
|
|
287
287
|
:param str name: Filter results where name matches value
|
|
288
288
|
:param str name__contains: Filter results where name contains value
|
|
289
289
|
:param str name__icontains: Filter results where name contains value
|
|
290
|
+
:param str name__iexact: Filter results where name matches value
|
|
290
291
|
:param list[str] name__in: Filter results where name is in a comma-separated list of values
|
|
292
|
+
:param str name__iregex: Filter results where name matches regex value
|
|
293
|
+
:param str name__istartswith: Filter results where name starts with value
|
|
294
|
+
:param str name__regex: Filter results where name matches regex value
|
|
291
295
|
:param str name__startswith: Filter results where name starts with value
|
|
292
296
|
:param int offset: The initial index from which to return the results.
|
|
293
|
-
:param list[str] ordering: Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `base_path` - Base path * `-base_path` - Base path (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
297
|
+
:param list[str] ordering: Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `base_path` - Base path * `-base_path` - Base path (descending) * `hidden` - Hidden * `-hidden` - Hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
294
298
|
:param list[str] pulp_href__in: Multiple values may be separated by commas.
|
|
295
299
|
:param list[str] pulp_id__in: Multiple values may be separated by commas.
|
|
296
300
|
:param str pulp_label_select: Filter labels by search string
|
|
301
|
+
:param str q:
|
|
297
302
|
:param str repository: Filter results where repository matches value
|
|
298
303
|
:param list[str] repository__in: Filter results where repository is in a comma-separated list of values
|
|
299
304
|
:param str with_content: Filter distributions based on the content served by them
|
|
@@ -331,13 +336,18 @@ class DistributionsPypiApi(object):
|
|
|
331
336
|
:param str name: Filter results where name matches value
|
|
332
337
|
:param str name__contains: Filter results where name contains value
|
|
333
338
|
:param str name__icontains: Filter results where name contains value
|
|
339
|
+
:param str name__iexact: Filter results where name matches value
|
|
334
340
|
:param list[str] name__in: Filter results where name is in a comma-separated list of values
|
|
341
|
+
:param str name__iregex: Filter results where name matches regex value
|
|
342
|
+
:param str name__istartswith: Filter results where name starts with value
|
|
343
|
+
:param str name__regex: Filter results where name matches regex value
|
|
335
344
|
:param str name__startswith: Filter results where name starts with value
|
|
336
345
|
:param int offset: The initial index from which to return the results.
|
|
337
|
-
:param list[str] ordering: Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `base_path` - Base path * `-base_path` - Base path (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
346
|
+
:param list[str] ordering: Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `base_path` - Base path * `-base_path` - Base path (descending) * `hidden` - Hidden * `-hidden` - Hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
338
347
|
:param list[str] pulp_href__in: Multiple values may be separated by commas.
|
|
339
348
|
:param list[str] pulp_id__in: Multiple values may be separated by commas.
|
|
340
349
|
:param str pulp_label_select: Filter labels by search string
|
|
350
|
+
:param str q:
|
|
341
351
|
:param str repository: Filter results where repository matches value
|
|
342
352
|
:param list[str] repository__in: Filter results where repository is in a comma-separated list of values
|
|
343
353
|
:param str with_content: Filter distributions based on the content served by them
|
|
@@ -368,13 +378,18 @@ class DistributionsPypiApi(object):
|
|
|
368
378
|
'name',
|
|
369
379
|
'name__contains',
|
|
370
380
|
'name__icontains',
|
|
381
|
+
'name__iexact',
|
|
371
382
|
'name__in',
|
|
383
|
+
'name__iregex',
|
|
384
|
+
'name__istartswith',
|
|
385
|
+
'name__regex',
|
|
372
386
|
'name__startswith',
|
|
373
387
|
'offset',
|
|
374
388
|
'ordering',
|
|
375
389
|
'pulp_href__in',
|
|
376
390
|
'pulp_id__in',
|
|
377
391
|
'pulp_label_select',
|
|
392
|
+
'q',
|
|
378
393
|
'repository',
|
|
379
394
|
'repository__in',
|
|
380
395
|
'with_content',
|
|
@@ -421,9 +436,17 @@ class DistributionsPypiApi(object):
|
|
|
421
436
|
query_params.append(('name__contains', local_var_params['name__contains'])) # noqa: E501
|
|
422
437
|
if 'name__icontains' in local_var_params and local_var_params['name__icontains'] is not None: # noqa: E501
|
|
423
438
|
query_params.append(('name__icontains', local_var_params['name__icontains'])) # noqa: E501
|
|
439
|
+
if 'name__iexact' in local_var_params and local_var_params['name__iexact'] is not None: # noqa: E501
|
|
440
|
+
query_params.append(('name__iexact', local_var_params['name__iexact'])) # noqa: E501
|
|
424
441
|
if 'name__in' in local_var_params and local_var_params['name__in'] is not None: # noqa: E501
|
|
425
442
|
query_params.append(('name__in', local_var_params['name__in'])) # noqa: E501
|
|
426
443
|
collection_formats['name__in'] = 'csv' # noqa: E501
|
|
444
|
+
if 'name__iregex' in local_var_params and local_var_params['name__iregex'] is not None: # noqa: E501
|
|
445
|
+
query_params.append(('name__iregex', local_var_params['name__iregex'])) # noqa: E501
|
|
446
|
+
if 'name__istartswith' in local_var_params and local_var_params['name__istartswith'] is not None: # noqa: E501
|
|
447
|
+
query_params.append(('name__istartswith', local_var_params['name__istartswith'])) # noqa: E501
|
|
448
|
+
if 'name__regex' in local_var_params and local_var_params['name__regex'] is not None: # noqa: E501
|
|
449
|
+
query_params.append(('name__regex', local_var_params['name__regex'])) # noqa: E501
|
|
427
450
|
if 'name__startswith' in local_var_params and local_var_params['name__startswith'] is not None: # noqa: E501
|
|
428
451
|
query_params.append(('name__startswith', local_var_params['name__startswith'])) # noqa: E501
|
|
429
452
|
if 'offset' in local_var_params and local_var_params['offset'] is not None: # noqa: E501
|
|
@@ -439,6 +462,8 @@ class DistributionsPypiApi(object):
|
|
|
439
462
|
collection_formats['pulp_id__in'] = 'csv' # noqa: E501
|
|
440
463
|
if 'pulp_label_select' in local_var_params and local_var_params['pulp_label_select'] is not None: # noqa: E501
|
|
441
464
|
query_params.append(('pulp_label_select', local_var_params['pulp_label_select'])) # noqa: E501
|
|
465
|
+
if 'q' in local_var_params and local_var_params['q'] is not None: # noqa: E501
|
|
466
|
+
query_params.append(('q', local_var_params['q'])) # noqa: E501
|
|
442
467
|
if 'repository' in local_var_params and local_var_params['repository'] is not None: # noqa: E501
|
|
443
468
|
query_params.append(('repository', local_var_params['repository'])) # noqa: E501
|
|
444
469
|
if 'repository__in' in local_var_params and local_var_params['repository__in'] is not None: # noqa: E501
|
|
@@ -735,6 +760,260 @@ class DistributionsPypiApi(object):
|
|
|
735
760
|
_request_timeout=local_var_params.get('_request_timeout'),
|
|
736
761
|
collection_formats=collection_formats)
|
|
737
762
|
|
|
763
|
+
def set_label(self, python_python_distribution_href, set_label, **kwargs): # noqa: E501
|
|
764
|
+
"""Set a label # noqa: E501
|
|
765
|
+
|
|
766
|
+
Set a single pulp_label on the object to a specific value or null. # noqa: E501
|
|
767
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
768
|
+
asynchronous HTTP request, please pass async_req=True
|
|
769
|
+
>>> thread = api.set_label(python_python_distribution_href, set_label, async_req=True)
|
|
770
|
+
>>> result = thread.get()
|
|
771
|
+
|
|
772
|
+
:param async_req bool: execute request asynchronously
|
|
773
|
+
:param str python_python_distribution_href: (required)
|
|
774
|
+
:param SetLabel set_label: (required)
|
|
775
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
776
|
+
be returned without reading/decoding response
|
|
777
|
+
data. Default is True.
|
|
778
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
779
|
+
number provided, it will be total request
|
|
780
|
+
timeout. It can also be a pair (tuple) of
|
|
781
|
+
(connection, read) timeouts.
|
|
782
|
+
:return: SetLabelResponse
|
|
783
|
+
If the method is called asynchronously,
|
|
784
|
+
returns the request thread.
|
|
785
|
+
"""
|
|
786
|
+
kwargs['_return_http_data_only'] = True
|
|
787
|
+
return self.set_label_with_http_info(python_python_distribution_href, set_label, **kwargs) # noqa: E501
|
|
788
|
+
|
|
789
|
+
def set_label_with_http_info(self, python_python_distribution_href, set_label, **kwargs): # noqa: E501
|
|
790
|
+
"""Set a label # noqa: E501
|
|
791
|
+
|
|
792
|
+
Set a single pulp_label on the object to a specific value or null. # noqa: E501
|
|
793
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
794
|
+
asynchronous HTTP request, please pass async_req=True
|
|
795
|
+
>>> thread = api.set_label_with_http_info(python_python_distribution_href, set_label, async_req=True)
|
|
796
|
+
>>> result = thread.get()
|
|
797
|
+
|
|
798
|
+
:param async_req bool: execute request asynchronously
|
|
799
|
+
:param str python_python_distribution_href: (required)
|
|
800
|
+
:param SetLabel set_label: (required)
|
|
801
|
+
:param _return_http_data_only: response data without head status code
|
|
802
|
+
and headers
|
|
803
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
804
|
+
be returned without reading/decoding response
|
|
805
|
+
data. Default is True.
|
|
806
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
807
|
+
number provided, it will be total request
|
|
808
|
+
timeout. It can also be a pair (tuple) of
|
|
809
|
+
(connection, read) timeouts.
|
|
810
|
+
:return: tuple(SetLabelResponse, status_code(int), headers(HTTPHeaderDict))
|
|
811
|
+
If the method is called asynchronously,
|
|
812
|
+
returns the request thread.
|
|
813
|
+
"""
|
|
814
|
+
|
|
815
|
+
local_var_params = locals()
|
|
816
|
+
|
|
817
|
+
all_params = [
|
|
818
|
+
'python_python_distribution_href',
|
|
819
|
+
'set_label'
|
|
820
|
+
]
|
|
821
|
+
all_params.extend(
|
|
822
|
+
[
|
|
823
|
+
'async_req',
|
|
824
|
+
'_return_http_data_only',
|
|
825
|
+
'_preload_content',
|
|
826
|
+
'_request_timeout'
|
|
827
|
+
]
|
|
828
|
+
)
|
|
829
|
+
|
|
830
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
|
831
|
+
if key not in all_params:
|
|
832
|
+
raise ApiTypeError(
|
|
833
|
+
"Got an unexpected keyword argument '%s'"
|
|
834
|
+
" to method set_label" % key
|
|
835
|
+
)
|
|
836
|
+
local_var_params[key] = val
|
|
837
|
+
del local_var_params['kwargs']
|
|
838
|
+
# verify the required parameter 'python_python_distribution_href' is set
|
|
839
|
+
if self.api_client.client_side_validation and ('python_python_distribution_href' not in local_var_params or # noqa: E501
|
|
840
|
+
local_var_params['python_python_distribution_href'] is None): # noqa: E501
|
|
841
|
+
raise ApiValueError("Missing the required parameter `python_python_distribution_href` when calling `set_label`") # noqa: E501
|
|
842
|
+
# verify the required parameter 'set_label' is set
|
|
843
|
+
if self.api_client.client_side_validation and ('set_label' not in local_var_params or # noqa: E501
|
|
844
|
+
local_var_params['set_label'] is None): # noqa: E501
|
|
845
|
+
raise ApiValueError("Missing the required parameter `set_label` when calling `set_label`") # noqa: E501
|
|
846
|
+
|
|
847
|
+
collection_formats = {}
|
|
848
|
+
|
|
849
|
+
path_params = {}
|
|
850
|
+
if 'python_python_distribution_href' in local_var_params:
|
|
851
|
+
path_params['python_python_distribution_href'] = local_var_params['python_python_distribution_href'] # noqa: E501
|
|
852
|
+
|
|
853
|
+
query_params = []
|
|
854
|
+
|
|
855
|
+
header_params = {}
|
|
856
|
+
|
|
857
|
+
form_params = []
|
|
858
|
+
local_var_files = {}
|
|
859
|
+
|
|
860
|
+
body_params = None
|
|
861
|
+
if 'set_label' in local_var_params:
|
|
862
|
+
body_params = local_var_params['set_label']
|
|
863
|
+
# HTTP header `Accept`
|
|
864
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
865
|
+
['application/json']) # noqa: E501
|
|
866
|
+
|
|
867
|
+
# HTTP header `Content-Type`
|
|
868
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
869
|
+
['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data']) # noqa: E501
|
|
870
|
+
|
|
871
|
+
# Authentication setting
|
|
872
|
+
auth_settings = ['basicAuth', 'cookieAuth'] # noqa: E501
|
|
873
|
+
|
|
874
|
+
return self.api_client.call_api(
|
|
875
|
+
'{python_python_distribution_href}set_label/', 'POST',
|
|
876
|
+
path_params,
|
|
877
|
+
query_params,
|
|
878
|
+
header_params,
|
|
879
|
+
body=body_params,
|
|
880
|
+
post_params=form_params,
|
|
881
|
+
files=local_var_files,
|
|
882
|
+
response_type='SetLabelResponse', # noqa: E501
|
|
883
|
+
auth_settings=auth_settings,
|
|
884
|
+
async_req=local_var_params.get('async_req'),
|
|
885
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
|
886
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
|
887
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
|
888
|
+
collection_formats=collection_formats)
|
|
889
|
+
|
|
890
|
+
def unset_label(self, python_python_distribution_href, unset_label, **kwargs): # noqa: E501
|
|
891
|
+
"""Unset a label # noqa: E501
|
|
892
|
+
|
|
893
|
+
Unset a single pulp_label on the object. # noqa: E501
|
|
894
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
895
|
+
asynchronous HTTP request, please pass async_req=True
|
|
896
|
+
>>> thread = api.unset_label(python_python_distribution_href, unset_label, async_req=True)
|
|
897
|
+
>>> result = thread.get()
|
|
898
|
+
|
|
899
|
+
:param async_req bool: execute request asynchronously
|
|
900
|
+
:param str python_python_distribution_href: (required)
|
|
901
|
+
:param UnsetLabel unset_label: (required)
|
|
902
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
903
|
+
be returned without reading/decoding response
|
|
904
|
+
data. Default is True.
|
|
905
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
906
|
+
number provided, it will be total request
|
|
907
|
+
timeout. It can also be a pair (tuple) of
|
|
908
|
+
(connection, read) timeouts.
|
|
909
|
+
:return: UnsetLabelResponse
|
|
910
|
+
If the method is called asynchronously,
|
|
911
|
+
returns the request thread.
|
|
912
|
+
"""
|
|
913
|
+
kwargs['_return_http_data_only'] = True
|
|
914
|
+
return self.unset_label_with_http_info(python_python_distribution_href, unset_label, **kwargs) # noqa: E501
|
|
915
|
+
|
|
916
|
+
def unset_label_with_http_info(self, python_python_distribution_href, unset_label, **kwargs): # noqa: E501
|
|
917
|
+
"""Unset a label # noqa: E501
|
|
918
|
+
|
|
919
|
+
Unset a single pulp_label on the object. # noqa: E501
|
|
920
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
921
|
+
asynchronous HTTP request, please pass async_req=True
|
|
922
|
+
>>> thread = api.unset_label_with_http_info(python_python_distribution_href, unset_label, async_req=True)
|
|
923
|
+
>>> result = thread.get()
|
|
924
|
+
|
|
925
|
+
:param async_req bool: execute request asynchronously
|
|
926
|
+
:param str python_python_distribution_href: (required)
|
|
927
|
+
:param UnsetLabel unset_label: (required)
|
|
928
|
+
:param _return_http_data_only: response data without head status code
|
|
929
|
+
and headers
|
|
930
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
931
|
+
be returned without reading/decoding response
|
|
932
|
+
data. Default is True.
|
|
933
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
934
|
+
number provided, it will be total request
|
|
935
|
+
timeout. It can also be a pair (tuple) of
|
|
936
|
+
(connection, read) timeouts.
|
|
937
|
+
:return: tuple(UnsetLabelResponse, status_code(int), headers(HTTPHeaderDict))
|
|
938
|
+
If the method is called asynchronously,
|
|
939
|
+
returns the request thread.
|
|
940
|
+
"""
|
|
941
|
+
|
|
942
|
+
local_var_params = locals()
|
|
943
|
+
|
|
944
|
+
all_params = [
|
|
945
|
+
'python_python_distribution_href',
|
|
946
|
+
'unset_label'
|
|
947
|
+
]
|
|
948
|
+
all_params.extend(
|
|
949
|
+
[
|
|
950
|
+
'async_req',
|
|
951
|
+
'_return_http_data_only',
|
|
952
|
+
'_preload_content',
|
|
953
|
+
'_request_timeout'
|
|
954
|
+
]
|
|
955
|
+
)
|
|
956
|
+
|
|
957
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
|
958
|
+
if key not in all_params:
|
|
959
|
+
raise ApiTypeError(
|
|
960
|
+
"Got an unexpected keyword argument '%s'"
|
|
961
|
+
" to method unset_label" % key
|
|
962
|
+
)
|
|
963
|
+
local_var_params[key] = val
|
|
964
|
+
del local_var_params['kwargs']
|
|
965
|
+
# verify the required parameter 'python_python_distribution_href' is set
|
|
966
|
+
if self.api_client.client_side_validation and ('python_python_distribution_href' not in local_var_params or # noqa: E501
|
|
967
|
+
local_var_params['python_python_distribution_href'] is None): # noqa: E501
|
|
968
|
+
raise ApiValueError("Missing the required parameter `python_python_distribution_href` when calling `unset_label`") # noqa: E501
|
|
969
|
+
# verify the required parameter 'unset_label' is set
|
|
970
|
+
if self.api_client.client_side_validation and ('unset_label' not in local_var_params or # noqa: E501
|
|
971
|
+
local_var_params['unset_label'] is None): # noqa: E501
|
|
972
|
+
raise ApiValueError("Missing the required parameter `unset_label` when calling `unset_label`") # noqa: E501
|
|
973
|
+
|
|
974
|
+
collection_formats = {}
|
|
975
|
+
|
|
976
|
+
path_params = {}
|
|
977
|
+
if 'python_python_distribution_href' in local_var_params:
|
|
978
|
+
path_params['python_python_distribution_href'] = local_var_params['python_python_distribution_href'] # noqa: E501
|
|
979
|
+
|
|
980
|
+
query_params = []
|
|
981
|
+
|
|
982
|
+
header_params = {}
|
|
983
|
+
|
|
984
|
+
form_params = []
|
|
985
|
+
local_var_files = {}
|
|
986
|
+
|
|
987
|
+
body_params = None
|
|
988
|
+
if 'unset_label' in local_var_params:
|
|
989
|
+
body_params = local_var_params['unset_label']
|
|
990
|
+
# HTTP header `Accept`
|
|
991
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
992
|
+
['application/json']) # noqa: E501
|
|
993
|
+
|
|
994
|
+
# HTTP header `Content-Type`
|
|
995
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
996
|
+
['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data']) # noqa: E501
|
|
997
|
+
|
|
998
|
+
# Authentication setting
|
|
999
|
+
auth_settings = ['basicAuth', 'cookieAuth'] # noqa: E501
|
|
1000
|
+
|
|
1001
|
+
return self.api_client.call_api(
|
|
1002
|
+
'{python_python_distribution_href}unset_label/', 'POST',
|
|
1003
|
+
path_params,
|
|
1004
|
+
query_params,
|
|
1005
|
+
header_params,
|
|
1006
|
+
body=body_params,
|
|
1007
|
+
post_params=form_params,
|
|
1008
|
+
files=local_var_files,
|
|
1009
|
+
response_type='UnsetLabelResponse', # noqa: E501
|
|
1010
|
+
auth_settings=auth_settings,
|
|
1011
|
+
async_req=local_var_params.get('async_req'),
|
|
1012
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
|
1013
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
|
1014
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
|
1015
|
+
collection_formats=collection_formats)
|
|
1016
|
+
|
|
738
1017
|
def update(self, python_python_distribution_href, python_python_distribution, **kwargs): # noqa: E501
|
|
739
1018
|
"""Update a python distribution # noqa: E501
|
|
740
1019
|
|