pulp-python-client 3.34.0__py3-none-any.whl → 3.36.0__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.
- {pulp_python_client-3.34.0.dist-info → pulp_python_client-3.36.0.dist-info}/METADATA +5 -2
- {pulp_python_client-3.34.0.dist-info → pulp_python_client-3.36.0.dist-info}/RECORD +16 -13
- pulpcore/client/pulp_python/__init__.py +7 -1
- pulpcore/client/pulp_python/api/__init__.py +3 -0
- pulpcore/client/pulp_python/api/pypi_packages_xml_api.py +346 -0
- pulpcore/client/pulp_python/api/pypi_project_releases_xml_api.py +361 -0
- pulpcore/client/pulp_python/api/pypi_updates_xml_api.py +346 -0
- pulpcore/client/pulp_python/api_client.py +1 -1
- pulpcore/client/pulp_python/configuration.py +1 -1
- pulpcore/client/pulp_python/models/nested_role.py +1 -1
- pulpcore/client/pulp_python/models/nested_role_response.py +1 -1
- pulpcore/client/pulp_python/models/repository_add_remove_content.py +1 -1
- pulpcore/client/pulp_python/models/repository_sync_url.py +1 -1
- pulpcore/client/pulp_python/models/repository_version_response.py +1 -1
- {pulp_python_client-3.34.0.dist-info → pulp_python_client-3.36.0.dist-info}/WHEEL +0 -0
- {pulp_python_client-3.34.0.dist-info → pulp_python_client-3.36.0.dist-info}/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pulp_python-client
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.36.0
|
|
4
4
|
Summary: Pulp 3 API
|
|
5
5
|
Home-page:
|
|
6
6
|
Author: Pulp Team
|
|
@@ -23,7 +23,7 @@ Fetch, Upload, Organize, and Distribute Software Packages
|
|
|
23
23
|
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
24
24
|
|
|
25
25
|
- API version: v3
|
|
26
|
-
- Package version: 3.
|
|
26
|
+
- Package version: 3.36.0
|
|
27
27
|
- Generator version: 7.19.0
|
|
28
28
|
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
|
|
29
29
|
For more information, please visit [https://pulpproject.org](https://pulpproject.org)
|
|
@@ -196,11 +196,14 @@ Class | Method | HTTP request | Description
|
|
|
196
196
|
*PypiApi* | [**read**](docs/PypiApi.md#read) | **GET** /pypi/{path}/ | Get index summary
|
|
197
197
|
*PypiLegacyApi* | [**create**](docs/PypiLegacyApi.md#create) | **POST** /pypi/{path}/legacy/ | Upload a package
|
|
198
198
|
*PypiMetadataApi* | [**read**](docs/PypiMetadataApi.md#read) | **GET** /pypi/{path}/pypi/{meta}/ | Get package metadata
|
|
199
|
+
*PypiPackagesXmlApi* | [**packages**](docs/PypiPackagesXmlApi.md#packages) | **GET** /pypi/{path}/rss/packages.xml | Get newest packages RSS feed
|
|
200
|
+
*PypiProjectReleasesXmlApi* | [**project_releases**](docs/PypiProjectReleasesXmlApi.md#project_releases) | **GET** /pypi/{path}/rss/project/{package}/releases.xml | Get project releases RSS feed
|
|
199
201
|
*PypiProvenanceApi* | [**read**](docs/PypiProvenanceApi.md#read) | **GET** /pypi/{path}/integrity/{package}/{version}/{filename}/provenance/ | Get package provenance
|
|
200
202
|
*PypiSimpleApi* | [**create**](docs/PypiSimpleApi.md#create) | **POST** /pypi/{path}/simple/ | Upload a package
|
|
201
203
|
*PypiSimpleApi* | [**pypi_simple_package_read**](docs/PypiSimpleApi.md#pypi_simple_package_read) | **GET** /pypi/{path}/simple/{package}/ | Get package simple page
|
|
202
204
|
*PypiSimpleApi* | [**read**](docs/PypiSimpleApi.md#read) | **GET** /pypi/{path}/simple/ | Get index simple page
|
|
203
205
|
*PypiUnyankApi* | [**unyank**](docs/PypiUnyankApi.md#unyank) | **POST** /pypi/{path}/unyank/ | Unyank a package version
|
|
206
|
+
*PypiUpdatesXmlApi* | [**updates**](docs/PypiUpdatesXmlApi.md#updates) | **GET** /pypi/{path}/rss/updates.xml | Get latest updates RSS feed
|
|
204
207
|
*PypiYankApi* | [**yank**](docs/PypiYankApi.md#yank) | **POST** /pypi/{path}/yank/ | Yank a package version
|
|
205
208
|
*RemotesPythonApi* | [**add_role**](docs/RemotesPythonApi.md#add_role) | **POST** {python_python_remote_href}add_role/ | Add a role
|
|
206
209
|
*RemotesPythonApi* | [**create**](docs/RemotesPythonApi.md#create) | **POST** /pulp/api/v3/remotes/python/python/ | Create a python remote
|
|
@@ -1,13 +1,13 @@
|
|
|
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=
|
|
3
|
+
pulpcore/client/pulp_python/__init__.py,sha256=1_wZvd6Z2dVJ7baDPZQmVl7qIOCSWfqoQzijwDE2ldY,12482
|
|
4
|
+
pulpcore/client/pulp_python/api_client.py,sha256=yqiys3XpHQzOvrx1Eo_QauKJPb-bMnAPGeGjZZrCIsI,27853
|
|
5
5
|
pulpcore/client/pulp_python/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
|
|
6
|
-
pulpcore/client/pulp_python/configuration.py,sha256=
|
|
6
|
+
pulpcore/client/pulp_python/configuration.py,sha256=TRuAVwipCml3c5HDuH3YOaihoJwtzUFvS3Qd4I1Vvlk,19858
|
|
7
7
|
pulpcore/client/pulp_python/exceptions.py,sha256=Fsv2zEzULrsk-_KDtVSHSCRArB6jK8ZCbhFeS0_EUSs,6523
|
|
8
8
|
pulpcore/client/pulp_python/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
9
|
pulpcore/client/pulp_python/rest.py,sha256=K_cgcVFoJaac0-QiXjSmq5-JEkxQ7MeJIypgDa6VOM8,9969
|
|
10
|
-
pulpcore/client/pulp_python/api/__init__.py,sha256=
|
|
10
|
+
pulpcore/client/pulp_python/api/__init__.py,sha256=R4hu0CTqSMn5UpCD1bsCat3_QqL52QE1xhikkiw9bUM,1654
|
|
11
11
|
pulpcore/client/pulp_python/api/content_packages_api.py,sha256=-9YkQnp39bF2bQdx7XXdiPjzMWib5szypty2iuxRt3g,204151
|
|
12
12
|
pulpcore/client/pulp_python/api/content_provenance_api.py,sha256=v6e2GpKejIbspowa1HrGUg7D-GWUV251f_EWFc4B1JM,93412
|
|
13
13
|
pulpcore/client/pulp_python/api/content_yanks_api.py,sha256=MJAz5w-j7OSFNEHqW3skrh5f9LY0vxMXBTgAilxfXnI,64242
|
|
@@ -16,9 +16,12 @@ pulpcore/client/pulp_python/api/publications_pypi_api.py,sha256=8B5senN0n87OOO5T
|
|
|
16
16
|
pulpcore/client/pulp_python/api/pypi_api.py,sha256=YV0qe3htsZrysNA8nyQwV-te9hxZgrZ89aMin8HQV70,13944
|
|
17
17
|
pulpcore/client/pulp_python/api/pypi_legacy_api.py,sha256=enPZ9ZXw65023UMvwGRK3gtaYk3O0zh2oGAi6B5p-d0,20696
|
|
18
18
|
pulpcore/client/pulp_python/api/pypi_metadata_api.py,sha256=DC25AkQ4dPl8n7NJJrpxFbfD2T83aKLLnmaoqehQQPs,14893
|
|
19
|
+
pulpcore/client/pulp_python/api/pypi_packages_xml_api.py,sha256=lay8tb9XPOWwAmjggZqZMR04-D-kNdMNNoYhJnlJWr0,13736
|
|
20
|
+
pulpcore/client/pulp_python/api/pypi_project_releases_xml_api.py,sha256=Ps8r9XSj724LVOxNRFi_-M9RsifqnSXyZ3dINV4gjbo,14311
|
|
19
21
|
pulpcore/client/pulp_python/api/pypi_provenance_api.py,sha256=E9-vmrOejeeYrsPtzMpZPeY4dul2t_Hl-uOQxBJ16UE,15001
|
|
20
22
|
pulpcore/client/pulp_python/api/pypi_simple_api.py,sha256=kd8-wlp4vloMlRxNzY4tCkTt9pV_gZQPkAimLM1HqGE,47663
|
|
21
23
|
pulpcore/client/pulp_python/api/pypi_unyank_api.py,sha256=LW-dmOePfKkKAT-gczsNUNFpCD1oMLl_I65azPImGC4,13144
|
|
24
|
+
pulpcore/client/pulp_python/api/pypi_updates_xml_api.py,sha256=Nu3hR_ghWtRVc5FwS79dBjPo2MvzP6dGjC88_J6G7os,13745
|
|
22
25
|
pulpcore/client/pulp_python/api/pypi_yank_api.py,sha256=6zgoiUn3bvYBGWQK3Ub_58SX3Fmo7QKqVJuzWnAATqQ,13108
|
|
23
26
|
pulpcore/client/pulp_python/api/remotes_python_api.py,sha256=TXjb4t0zI83Dr95ArxqkzjYmrmPrXyngrRD6MfWjXz4,210240
|
|
24
27
|
pulpcore/client/pulp_python/api/repositories_python_api.py,sha256=Tk7kvQ_3Elf8noQH6_jTgxOqK2HEd2Exd9glaD4rAQU,237474
|
|
@@ -31,8 +34,8 @@ pulpcore/client/pulp_python/models/exclude_platforms_enum.py,sha256=04Ppg5ulYtQg
|
|
|
31
34
|
pulpcore/client/pulp_python/models/filetype_enum.py,sha256=6LGvvuQPuCH9Fdq76PH20bsfrsQGRHAmPyE5E1gfAFU,777
|
|
32
35
|
pulpcore/client/pulp_python/models/metadata_version_enum.py,sha256=IJxvrUp3XEeAVSg8Px889G_vo0lV_1R4H_XzpIMuOQY,1042
|
|
33
36
|
pulpcore/client/pulp_python/models/my_permissions_response.py,sha256=TyVgzd2Q-oDHujaPT7tVnSlHys0S-8j7VXynLg_0mgM,2461
|
|
34
|
-
pulpcore/client/pulp_python/models/nested_role.py,sha256=
|
|
35
|
-
pulpcore/client/pulp_python/models/nested_role_response.py,sha256=
|
|
37
|
+
pulpcore/client/pulp_python/models/nested_role.py,sha256=S3mfqb6_OUIy3UJMkS-W8nhuYtnGGeMiUEboJQfzxQQ,2875
|
|
38
|
+
pulpcore/client/pulp_python/models/nested_role_response.py,sha256=Ti4M0hyccnqVI1V5tfN3r2GGeTujVlYWZ6CqcsJeON0,2746
|
|
36
39
|
pulpcore/client/pulp_python/models/object_roles_response.py,sha256=jIHKhrNXmQujixs_ELIbVsmFRo2c0WSI-u6UYRvQuRY,2841
|
|
37
40
|
pulpcore/client/pulp_python/models/package_metadata_response.py,sha256=Rf-FCzbRmmchhvA4GmG9tRZFTjhQ3ULg4ZaQHWrp8Zw,3267
|
|
38
41
|
pulpcore/client/pulp_python/models/package_types_enum.py,sha256=IxfhKcGOGO-63Uewkd9iYmgNVjD-pFctINtq2l7zwbE,1129
|
|
@@ -68,16 +71,16 @@ pulpcore/client/pulp_python/models/python_python_repository_response.py,sha256=Y
|
|
|
68
71
|
pulpcore/client/pulp_python/models/remote_network_config.py,sha256=wy727M9zoBT8_NeuNgWJMsDlxgrZKa1w9_mDKbHkQ-s,9849
|
|
69
72
|
pulpcore/client/pulp_python/models/remote_network_config_response.py,sha256=C7jw8k2mhKtgaIjdEgSzfMERl-sZsxKhQn0lpgYRhMI,7616
|
|
70
73
|
pulpcore/client/pulp_python/models/repair.py,sha256=-jAKvUUzykn-n5O5jYGJy40JF0PRI32rJA8lojwQV-o,2635
|
|
71
|
-
pulpcore/client/pulp_python/models/repository_add_remove_content.py,sha256=
|
|
72
|
-
pulpcore/client/pulp_python/models/repository_sync_url.py,sha256=
|
|
73
|
-
pulpcore/client/pulp_python/models/repository_version_response.py,sha256=
|
|
74
|
+
pulpcore/client/pulp_python/models/repository_add_remove_content.py,sha256=dfKQpZDxIdV9nE_yi-yTcta2nifehnF16JuyXm9FRuQ,3881
|
|
75
|
+
pulpcore/client/pulp_python/models/repository_sync_url.py,sha256=eEbN_w-v4dX4F5Nl1JEx0msWrSAaBXGuwJ1yrG9eeO4,2827
|
|
76
|
+
pulpcore/client/pulp_python/models/repository_version_response.py,sha256=sdOXAl7xZn-vRjcg9tqz7JtvaDaNzX0u7wkZ1xx9B3Y,4795
|
|
74
77
|
pulpcore/client/pulp_python/models/set_label.py,sha256=RUyFNW3RAhBGopbdzeL4g0cMmXJ3Gw4mHA68On7wx9g,2763
|
|
75
78
|
pulpcore/client/pulp_python/models/set_label_response.py,sha256=AJKyRWVTgpODnchrBjPeXYQQv0-ZrJ2cVykdfIIabKo,2701
|
|
76
79
|
pulpcore/client/pulp_python/models/summary_response.py,sha256=UW-FGA9ffCbn7a6czqjddy0FziM5DQYqIP6nmqQb_bY,2731
|
|
77
80
|
pulpcore/client/pulp_python/models/unset_label.py,sha256=bioUtBJUl9y7hpLJ4iYYhcQ4sXj-FRUZq0In2gEGbxU,2507
|
|
78
81
|
pulpcore/client/pulp_python/models/unset_label_response.py,sha256=iaHiYMGW-vu1fIHnzasVzMhY_0AHiYzvy48mfQOuw5M,2584
|
|
79
82
|
pulpcore/client/pulp_python/models/yank.py,sha256=eZHpaW8NfheoB_D9TI7WVnOFEXpEAXmd-SIZ-aqR8ZI,2856
|
|
80
|
-
pulp_python_client-3.
|
|
81
|
-
pulp_python_client-3.
|
|
82
|
-
pulp_python_client-3.
|
|
83
|
-
pulp_python_client-3.
|
|
83
|
+
pulp_python_client-3.36.0.dist-info/METADATA,sha256=ICkh6-emLnl33oDUfw7c2w4YQh5b7xnk2cJ4eynzWys,25351
|
|
84
|
+
pulp_python_client-3.36.0.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
|
|
85
|
+
pulp_python_client-3.36.0.dist-info/top_level.txt,sha256=v1J0AeNxNhm8YE5-xQe1G1YbfoMRZ_u9DAg_Gi7omeY,9
|
|
86
|
+
pulp_python_client-3.36.0.dist-info/RECORD,,
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
""" # noqa: E501
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
__version__ = "3.
|
|
18
|
+
__version__ = "3.36.0"
|
|
19
19
|
|
|
20
20
|
# Define package exports
|
|
21
21
|
__all__ = [
|
|
@@ -27,9 +27,12 @@ __all__ = [
|
|
|
27
27
|
"PypiApi",
|
|
28
28
|
"PypiLegacyApi",
|
|
29
29
|
"PypiMetadataApi",
|
|
30
|
+
"PypiPackagesXmlApi",
|
|
31
|
+
"PypiProjectReleasesXmlApi",
|
|
30
32
|
"PypiProvenanceApi",
|
|
31
33
|
"PypiSimpleApi",
|
|
32
34
|
"PypiUnyankApi",
|
|
35
|
+
"PypiUpdatesXmlApi",
|
|
33
36
|
"PypiYankApi",
|
|
34
37
|
"RemotesPythonApi",
|
|
35
38
|
"RepositoriesPythonApi",
|
|
@@ -107,9 +110,12 @@ from pulpcore.client.pulp_python.api.publications_pypi_api import PublicationsPy
|
|
|
107
110
|
from pulpcore.client.pulp_python.api.pypi_api import PypiApi as PypiApi
|
|
108
111
|
from pulpcore.client.pulp_python.api.pypi_legacy_api import PypiLegacyApi as PypiLegacyApi
|
|
109
112
|
from pulpcore.client.pulp_python.api.pypi_metadata_api import PypiMetadataApi as PypiMetadataApi
|
|
113
|
+
from pulpcore.client.pulp_python.api.pypi_packages_xml_api import PypiPackagesXmlApi as PypiPackagesXmlApi
|
|
114
|
+
from pulpcore.client.pulp_python.api.pypi_project_releases_xml_api import PypiProjectReleasesXmlApi as PypiProjectReleasesXmlApi
|
|
110
115
|
from pulpcore.client.pulp_python.api.pypi_provenance_api import PypiProvenanceApi as PypiProvenanceApi
|
|
111
116
|
from pulpcore.client.pulp_python.api.pypi_simple_api import PypiSimpleApi as PypiSimpleApi
|
|
112
117
|
from pulpcore.client.pulp_python.api.pypi_unyank_api import PypiUnyankApi as PypiUnyankApi
|
|
118
|
+
from pulpcore.client.pulp_python.api.pypi_updates_xml_api import PypiUpdatesXmlApi as PypiUpdatesXmlApi
|
|
113
119
|
from pulpcore.client.pulp_python.api.pypi_yank_api import PypiYankApi as PypiYankApi
|
|
114
120
|
from pulpcore.client.pulp_python.api.remotes_python_api import RemotesPythonApi as RemotesPythonApi
|
|
115
121
|
from pulpcore.client.pulp_python.api.repositories_python_api import RepositoriesPythonApi as RepositoriesPythonApi
|
|
@@ -9,9 +9,12 @@ from pulpcore.client.pulp_python.api.publications_pypi_api import PublicationsPy
|
|
|
9
9
|
from pulpcore.client.pulp_python.api.pypi_api import PypiApi
|
|
10
10
|
from pulpcore.client.pulp_python.api.pypi_legacy_api import PypiLegacyApi
|
|
11
11
|
from pulpcore.client.pulp_python.api.pypi_metadata_api import PypiMetadataApi
|
|
12
|
+
from pulpcore.client.pulp_python.api.pypi_packages_xml_api import PypiPackagesXmlApi
|
|
13
|
+
from pulpcore.client.pulp_python.api.pypi_project_releases_xml_api import PypiProjectReleasesXmlApi
|
|
12
14
|
from pulpcore.client.pulp_python.api.pypi_provenance_api import PypiProvenanceApi
|
|
13
15
|
from pulpcore.client.pulp_python.api.pypi_simple_api import PypiSimpleApi
|
|
14
16
|
from pulpcore.client.pulp_python.api.pypi_unyank_api import PypiUnyankApi
|
|
17
|
+
from pulpcore.client.pulp_python.api.pypi_updates_xml_api import PypiUpdatesXmlApi
|
|
15
18
|
from pulpcore.client.pulp_python.api.pypi_yank_api import PypiYankApi
|
|
16
19
|
from pulpcore.client.pulp_python.api.remotes_python_api import RemotesPythonApi
|
|
17
20
|
from pulpcore.client.pulp_python.api.repositories_python_api import RepositoriesPythonApi
|
|
@@ -0,0 +1,346 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Pulp 3 API
|
|
5
|
+
|
|
6
|
+
Fetch, Upload, Organize, and Distribute Software Packages
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: v3
|
|
9
|
+
Contact: pulp-list@redhat.com
|
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
|
+
|
|
12
|
+
Do not edit the class manually.
|
|
13
|
+
""" # noqa: E501
|
|
14
|
+
|
|
15
|
+
import warnings
|
|
16
|
+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
17
|
+
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
18
|
+
from typing_extensions import Annotated
|
|
19
|
+
|
|
20
|
+
from pydantic import Field, StrictStr
|
|
21
|
+
from typing import List, Optional
|
|
22
|
+
from typing_extensions import Annotated
|
|
23
|
+
|
|
24
|
+
from pulpcore.client.pulp_python.api_client import ApiClient, RequestSerialized
|
|
25
|
+
from pulpcore.client.pulp_python.api_response import ApiResponse
|
|
26
|
+
from pulpcore.client.pulp_python.rest import RESTResponseType
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
class PypiPackagesXmlApi:
|
|
30
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
31
|
+
Ref: https://openapi-generator.tech
|
|
32
|
+
|
|
33
|
+
Do not edit the class manually.
|
|
34
|
+
"""
|
|
35
|
+
|
|
36
|
+
def __init__(self, api_client=None) -> None:
|
|
37
|
+
if api_client is None:
|
|
38
|
+
api_client = ApiClient.get_default()
|
|
39
|
+
self.api_client = api_client
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
@validate_call
|
|
43
|
+
def packages(
|
|
44
|
+
self,
|
|
45
|
+
path: StrictStr,
|
|
46
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
47
|
+
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
48
|
+
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
49
|
+
_request_timeout: Union[
|
|
50
|
+
None,
|
|
51
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
52
|
+
Tuple[
|
|
53
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
54
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
55
|
+
]
|
|
56
|
+
] = None,
|
|
57
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
58
|
+
_content_type: Optional[StrictStr] = None,
|
|
59
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
60
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
61
|
+
) -> None:
|
|
62
|
+
"""Get newest packages RSS feed
|
|
63
|
+
|
|
64
|
+
Latest newly added projects, analogous to PyPI `/rss/packages.xml`.
|
|
65
|
+
|
|
66
|
+
:param path: (required)
|
|
67
|
+
:type path: str
|
|
68
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
69
|
+
:type x_task_diagnostics: List[str]
|
|
70
|
+
:param fields: A list of fields to include in the response.
|
|
71
|
+
:type fields: List[str]
|
|
72
|
+
:param exclude_fields: A list of fields to exclude from the response.
|
|
73
|
+
:type exclude_fields: List[str]
|
|
74
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
75
|
+
number provided, it will be total request
|
|
76
|
+
timeout. It can also be a pair (tuple) of
|
|
77
|
+
(connection, read) timeouts.
|
|
78
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
79
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
80
|
+
request; this effectively ignores the
|
|
81
|
+
authentication in the spec for a single request.
|
|
82
|
+
:type _request_auth: dict, optional
|
|
83
|
+
:param _content_type: force content-type for the request.
|
|
84
|
+
:type _content_type: str, Optional
|
|
85
|
+
:param _headers: set to override the headers for a single
|
|
86
|
+
request; this effectively ignores the headers
|
|
87
|
+
in the spec for a single request.
|
|
88
|
+
:type _headers: dict, optional
|
|
89
|
+
:param _host_index: set to override the host_index for a single
|
|
90
|
+
request; this effectively ignores the host_index
|
|
91
|
+
in the spec for a single request.
|
|
92
|
+
:type _host_index: int, optional
|
|
93
|
+
:return: Returns the result object.
|
|
94
|
+
""" # noqa: E501
|
|
95
|
+
|
|
96
|
+
_param = self._packages_serialize(
|
|
97
|
+
path=path,
|
|
98
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
99
|
+
fields=fields,
|
|
100
|
+
exclude_fields=exclude_fields,
|
|
101
|
+
_request_auth=_request_auth,
|
|
102
|
+
_content_type=_content_type,
|
|
103
|
+
_headers=_headers,
|
|
104
|
+
_host_index=_host_index
|
|
105
|
+
)
|
|
106
|
+
|
|
107
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
108
|
+
'200': None,
|
|
109
|
+
}
|
|
110
|
+
response_data = self.api_client.call_api(
|
|
111
|
+
*_param,
|
|
112
|
+
_request_timeout=_request_timeout
|
|
113
|
+
)
|
|
114
|
+
response_data.read()
|
|
115
|
+
return self.api_client.response_deserialize(
|
|
116
|
+
response_data=response_data,
|
|
117
|
+
response_types_map=_response_types_map,
|
|
118
|
+
).data
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
@validate_call
|
|
122
|
+
def packages_with_http_info(
|
|
123
|
+
self,
|
|
124
|
+
path: StrictStr,
|
|
125
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
126
|
+
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
127
|
+
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
128
|
+
_request_timeout: Union[
|
|
129
|
+
None,
|
|
130
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
131
|
+
Tuple[
|
|
132
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
133
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
134
|
+
]
|
|
135
|
+
] = None,
|
|
136
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
137
|
+
_content_type: Optional[StrictStr] = None,
|
|
138
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
139
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
140
|
+
) -> ApiResponse[None]:
|
|
141
|
+
"""Get newest packages RSS feed
|
|
142
|
+
|
|
143
|
+
Latest newly added projects, analogous to PyPI `/rss/packages.xml`.
|
|
144
|
+
|
|
145
|
+
:param path: (required)
|
|
146
|
+
:type path: str
|
|
147
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
148
|
+
:type x_task_diagnostics: List[str]
|
|
149
|
+
:param fields: A list of fields to include in the response.
|
|
150
|
+
:type fields: List[str]
|
|
151
|
+
:param exclude_fields: A list of fields to exclude from the response.
|
|
152
|
+
:type exclude_fields: List[str]
|
|
153
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
154
|
+
number provided, it will be total request
|
|
155
|
+
timeout. It can also be a pair (tuple) of
|
|
156
|
+
(connection, read) timeouts.
|
|
157
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
158
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
159
|
+
request; this effectively ignores the
|
|
160
|
+
authentication in the spec for a single request.
|
|
161
|
+
:type _request_auth: dict, optional
|
|
162
|
+
:param _content_type: force content-type for the request.
|
|
163
|
+
:type _content_type: str, Optional
|
|
164
|
+
:param _headers: set to override the headers for a single
|
|
165
|
+
request; this effectively ignores the headers
|
|
166
|
+
in the spec for a single request.
|
|
167
|
+
:type _headers: dict, optional
|
|
168
|
+
:param _host_index: set to override the host_index for a single
|
|
169
|
+
request; this effectively ignores the host_index
|
|
170
|
+
in the spec for a single request.
|
|
171
|
+
:type _host_index: int, optional
|
|
172
|
+
:return: Returns the result object.
|
|
173
|
+
""" # noqa: E501
|
|
174
|
+
|
|
175
|
+
_param = self._packages_serialize(
|
|
176
|
+
path=path,
|
|
177
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
178
|
+
fields=fields,
|
|
179
|
+
exclude_fields=exclude_fields,
|
|
180
|
+
_request_auth=_request_auth,
|
|
181
|
+
_content_type=_content_type,
|
|
182
|
+
_headers=_headers,
|
|
183
|
+
_host_index=_host_index
|
|
184
|
+
)
|
|
185
|
+
|
|
186
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
187
|
+
'200': None,
|
|
188
|
+
}
|
|
189
|
+
response_data = self.api_client.call_api(
|
|
190
|
+
*_param,
|
|
191
|
+
_request_timeout=_request_timeout
|
|
192
|
+
)
|
|
193
|
+
response_data.read()
|
|
194
|
+
return self.api_client.response_deserialize(
|
|
195
|
+
response_data=response_data,
|
|
196
|
+
response_types_map=_response_types_map,
|
|
197
|
+
)
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
@validate_call
|
|
201
|
+
def packages_without_preload_content(
|
|
202
|
+
self,
|
|
203
|
+
path: StrictStr,
|
|
204
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
205
|
+
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
206
|
+
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
207
|
+
_request_timeout: Union[
|
|
208
|
+
None,
|
|
209
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
210
|
+
Tuple[
|
|
211
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
212
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
213
|
+
]
|
|
214
|
+
] = None,
|
|
215
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
216
|
+
_content_type: Optional[StrictStr] = None,
|
|
217
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
218
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
219
|
+
) -> RESTResponseType:
|
|
220
|
+
"""Get newest packages RSS feed
|
|
221
|
+
|
|
222
|
+
Latest newly added projects, analogous to PyPI `/rss/packages.xml`.
|
|
223
|
+
|
|
224
|
+
:param path: (required)
|
|
225
|
+
:type path: str
|
|
226
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
227
|
+
:type x_task_diagnostics: List[str]
|
|
228
|
+
:param fields: A list of fields to include in the response.
|
|
229
|
+
:type fields: List[str]
|
|
230
|
+
:param exclude_fields: A list of fields to exclude from the response.
|
|
231
|
+
:type exclude_fields: List[str]
|
|
232
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
233
|
+
number provided, it will be total request
|
|
234
|
+
timeout. It can also be a pair (tuple) of
|
|
235
|
+
(connection, read) timeouts.
|
|
236
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
237
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
238
|
+
request; this effectively ignores the
|
|
239
|
+
authentication in the spec for a single request.
|
|
240
|
+
:type _request_auth: dict, optional
|
|
241
|
+
:param _content_type: force content-type for the request.
|
|
242
|
+
:type _content_type: str, Optional
|
|
243
|
+
:param _headers: set to override the headers for a single
|
|
244
|
+
request; this effectively ignores the headers
|
|
245
|
+
in the spec for a single request.
|
|
246
|
+
:type _headers: dict, optional
|
|
247
|
+
:param _host_index: set to override the host_index for a single
|
|
248
|
+
request; this effectively ignores the host_index
|
|
249
|
+
in the spec for a single request.
|
|
250
|
+
:type _host_index: int, optional
|
|
251
|
+
:return: Returns the result object.
|
|
252
|
+
""" # noqa: E501
|
|
253
|
+
|
|
254
|
+
_param = self._packages_serialize(
|
|
255
|
+
path=path,
|
|
256
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
257
|
+
fields=fields,
|
|
258
|
+
exclude_fields=exclude_fields,
|
|
259
|
+
_request_auth=_request_auth,
|
|
260
|
+
_content_type=_content_type,
|
|
261
|
+
_headers=_headers,
|
|
262
|
+
_host_index=_host_index
|
|
263
|
+
)
|
|
264
|
+
|
|
265
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
266
|
+
'200': None,
|
|
267
|
+
}
|
|
268
|
+
response_data = self.api_client.call_api(
|
|
269
|
+
*_param,
|
|
270
|
+
_request_timeout=_request_timeout
|
|
271
|
+
)
|
|
272
|
+
return response_data.response
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
def _packages_serialize(
|
|
276
|
+
self,
|
|
277
|
+
path,
|
|
278
|
+
x_task_diagnostics,
|
|
279
|
+
fields,
|
|
280
|
+
exclude_fields,
|
|
281
|
+
_request_auth,
|
|
282
|
+
_content_type,
|
|
283
|
+
_headers,
|
|
284
|
+
_host_index,
|
|
285
|
+
) -> RequestSerialized:
|
|
286
|
+
|
|
287
|
+
_host = None
|
|
288
|
+
|
|
289
|
+
_collection_formats: Dict[str, str] = {
|
|
290
|
+
'X-Task-Diagnostics': 'csv',
|
|
291
|
+
'fields': 'multi',
|
|
292
|
+
'exclude_fields': 'multi',
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
_path_params: Dict[str, str] = {}
|
|
296
|
+
_query_params: List[Tuple[str, str]] = []
|
|
297
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
298
|
+
_form_params: List[Tuple[str, str]] = []
|
|
299
|
+
_files: Dict[
|
|
300
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
301
|
+
] = {}
|
|
302
|
+
_body_params: Optional[bytes] = None
|
|
303
|
+
|
|
304
|
+
# process the path parameters
|
|
305
|
+
if path is not None:
|
|
306
|
+
_path_params['path'] = path
|
|
307
|
+
# process the query parameters
|
|
308
|
+
if fields is not None:
|
|
309
|
+
|
|
310
|
+
_query_params.append(('fields', fields))
|
|
311
|
+
|
|
312
|
+
if exclude_fields is not None:
|
|
313
|
+
|
|
314
|
+
_query_params.append(('exclude_fields', exclude_fields))
|
|
315
|
+
|
|
316
|
+
# process the header parameters
|
|
317
|
+
if x_task_diagnostics is not None:
|
|
318
|
+
_header_params['X-Task-Diagnostics'] = x_task_diagnostics
|
|
319
|
+
# process the form parameters
|
|
320
|
+
# process the body parameter
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
|
|
325
|
+
# authentication setting
|
|
326
|
+
_auth_settings: List[str] = [
|
|
327
|
+
'basicAuth',
|
|
328
|
+
'cookieAuth'
|
|
329
|
+
]
|
|
330
|
+
|
|
331
|
+
return self.api_client.param_serialize(
|
|
332
|
+
method='GET',
|
|
333
|
+
resource_path='/pypi/{path}/rss/packages.xml',
|
|
334
|
+
path_params=_path_params,
|
|
335
|
+
query_params=_query_params,
|
|
336
|
+
header_params=_header_params,
|
|
337
|
+
body=_body_params,
|
|
338
|
+
post_params=_form_params,
|
|
339
|
+
files=_files,
|
|
340
|
+
auth_settings=_auth_settings,
|
|
341
|
+
collection_formats=_collection_formats,
|
|
342
|
+
_host=_host,
|
|
343
|
+
_request_auth=_request_auth
|
|
344
|
+
)
|
|
345
|
+
|
|
346
|
+
|
|
@@ -0,0 +1,361 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Pulp 3 API
|
|
5
|
+
|
|
6
|
+
Fetch, Upload, Organize, and Distribute Software Packages
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: v3
|
|
9
|
+
Contact: pulp-list@redhat.com
|
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
|
+
|
|
12
|
+
Do not edit the class manually.
|
|
13
|
+
""" # noqa: E501
|
|
14
|
+
|
|
15
|
+
import warnings
|
|
16
|
+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
17
|
+
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
18
|
+
from typing_extensions import Annotated
|
|
19
|
+
|
|
20
|
+
from pydantic import Field, StrictStr
|
|
21
|
+
from typing import List, Optional
|
|
22
|
+
from typing_extensions import Annotated
|
|
23
|
+
|
|
24
|
+
from pulpcore.client.pulp_python.api_client import ApiClient, RequestSerialized
|
|
25
|
+
from pulpcore.client.pulp_python.api_response import ApiResponse
|
|
26
|
+
from pulpcore.client.pulp_python.rest import RESTResponseType
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
class PypiProjectReleasesXmlApi:
|
|
30
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
31
|
+
Ref: https://openapi-generator.tech
|
|
32
|
+
|
|
33
|
+
Do not edit the class manually.
|
|
34
|
+
"""
|
|
35
|
+
|
|
36
|
+
def __init__(self, api_client=None) -> None:
|
|
37
|
+
if api_client is None:
|
|
38
|
+
api_client = ApiClient.get_default()
|
|
39
|
+
self.api_client = api_client
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
@validate_call
|
|
43
|
+
def project_releases(
|
|
44
|
+
self,
|
|
45
|
+
package: StrictStr,
|
|
46
|
+
path: StrictStr,
|
|
47
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
48
|
+
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
49
|
+
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
50
|
+
_request_timeout: Union[
|
|
51
|
+
None,
|
|
52
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
53
|
+
Tuple[
|
|
54
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
55
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
56
|
+
]
|
|
57
|
+
] = None,
|
|
58
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
59
|
+
_content_type: Optional[StrictStr] = None,
|
|
60
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
61
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
62
|
+
) -> None:
|
|
63
|
+
"""Get project releases RSS feed
|
|
64
|
+
|
|
65
|
+
Latest releases for one project, analogous to PyPI `/rss/project//releases.xml`.
|
|
66
|
+
|
|
67
|
+
:param package: (required)
|
|
68
|
+
:type package: str
|
|
69
|
+
:param path: (required)
|
|
70
|
+
:type path: str
|
|
71
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
72
|
+
:type x_task_diagnostics: List[str]
|
|
73
|
+
:param fields: A list of fields to include in the response.
|
|
74
|
+
:type fields: List[str]
|
|
75
|
+
:param exclude_fields: A list of fields to exclude from the response.
|
|
76
|
+
:type exclude_fields: List[str]
|
|
77
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
78
|
+
number provided, it will be total request
|
|
79
|
+
timeout. It can also be a pair (tuple) of
|
|
80
|
+
(connection, read) timeouts.
|
|
81
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
82
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
83
|
+
request; this effectively ignores the
|
|
84
|
+
authentication in the spec for a single request.
|
|
85
|
+
:type _request_auth: dict, optional
|
|
86
|
+
:param _content_type: force content-type for the request.
|
|
87
|
+
:type _content_type: str, Optional
|
|
88
|
+
:param _headers: set to override the headers for a single
|
|
89
|
+
request; this effectively ignores the headers
|
|
90
|
+
in the spec for a single request.
|
|
91
|
+
:type _headers: dict, optional
|
|
92
|
+
:param _host_index: set to override the host_index for a single
|
|
93
|
+
request; this effectively ignores the host_index
|
|
94
|
+
in the spec for a single request.
|
|
95
|
+
:type _host_index: int, optional
|
|
96
|
+
:return: Returns the result object.
|
|
97
|
+
""" # noqa: E501
|
|
98
|
+
|
|
99
|
+
_param = self._project_releases_serialize(
|
|
100
|
+
package=package,
|
|
101
|
+
path=path,
|
|
102
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
103
|
+
fields=fields,
|
|
104
|
+
exclude_fields=exclude_fields,
|
|
105
|
+
_request_auth=_request_auth,
|
|
106
|
+
_content_type=_content_type,
|
|
107
|
+
_headers=_headers,
|
|
108
|
+
_host_index=_host_index
|
|
109
|
+
)
|
|
110
|
+
|
|
111
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
112
|
+
'200': None,
|
|
113
|
+
}
|
|
114
|
+
response_data = self.api_client.call_api(
|
|
115
|
+
*_param,
|
|
116
|
+
_request_timeout=_request_timeout
|
|
117
|
+
)
|
|
118
|
+
response_data.read()
|
|
119
|
+
return self.api_client.response_deserialize(
|
|
120
|
+
response_data=response_data,
|
|
121
|
+
response_types_map=_response_types_map,
|
|
122
|
+
).data
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
@validate_call
|
|
126
|
+
def project_releases_with_http_info(
|
|
127
|
+
self,
|
|
128
|
+
package: StrictStr,
|
|
129
|
+
path: StrictStr,
|
|
130
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
131
|
+
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
132
|
+
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
133
|
+
_request_timeout: Union[
|
|
134
|
+
None,
|
|
135
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
136
|
+
Tuple[
|
|
137
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
138
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
139
|
+
]
|
|
140
|
+
] = None,
|
|
141
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
142
|
+
_content_type: Optional[StrictStr] = None,
|
|
143
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
144
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
145
|
+
) -> ApiResponse[None]:
|
|
146
|
+
"""Get project releases RSS feed
|
|
147
|
+
|
|
148
|
+
Latest releases for one project, analogous to PyPI `/rss/project//releases.xml`.
|
|
149
|
+
|
|
150
|
+
:param package: (required)
|
|
151
|
+
:type package: str
|
|
152
|
+
:param path: (required)
|
|
153
|
+
:type path: str
|
|
154
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
155
|
+
:type x_task_diagnostics: List[str]
|
|
156
|
+
:param fields: A list of fields to include in the response.
|
|
157
|
+
:type fields: List[str]
|
|
158
|
+
:param exclude_fields: A list of fields to exclude from the response.
|
|
159
|
+
:type exclude_fields: List[str]
|
|
160
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
161
|
+
number provided, it will be total request
|
|
162
|
+
timeout. It can also be a pair (tuple) of
|
|
163
|
+
(connection, read) timeouts.
|
|
164
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
165
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
166
|
+
request; this effectively ignores the
|
|
167
|
+
authentication in the spec for a single request.
|
|
168
|
+
:type _request_auth: dict, optional
|
|
169
|
+
:param _content_type: force content-type for the request.
|
|
170
|
+
:type _content_type: str, Optional
|
|
171
|
+
:param _headers: set to override the headers for a single
|
|
172
|
+
request; this effectively ignores the headers
|
|
173
|
+
in the spec for a single request.
|
|
174
|
+
:type _headers: dict, optional
|
|
175
|
+
:param _host_index: set to override the host_index for a single
|
|
176
|
+
request; this effectively ignores the host_index
|
|
177
|
+
in the spec for a single request.
|
|
178
|
+
:type _host_index: int, optional
|
|
179
|
+
:return: Returns the result object.
|
|
180
|
+
""" # noqa: E501
|
|
181
|
+
|
|
182
|
+
_param = self._project_releases_serialize(
|
|
183
|
+
package=package,
|
|
184
|
+
path=path,
|
|
185
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
186
|
+
fields=fields,
|
|
187
|
+
exclude_fields=exclude_fields,
|
|
188
|
+
_request_auth=_request_auth,
|
|
189
|
+
_content_type=_content_type,
|
|
190
|
+
_headers=_headers,
|
|
191
|
+
_host_index=_host_index
|
|
192
|
+
)
|
|
193
|
+
|
|
194
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
195
|
+
'200': None,
|
|
196
|
+
}
|
|
197
|
+
response_data = self.api_client.call_api(
|
|
198
|
+
*_param,
|
|
199
|
+
_request_timeout=_request_timeout
|
|
200
|
+
)
|
|
201
|
+
response_data.read()
|
|
202
|
+
return self.api_client.response_deserialize(
|
|
203
|
+
response_data=response_data,
|
|
204
|
+
response_types_map=_response_types_map,
|
|
205
|
+
)
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
@validate_call
|
|
209
|
+
def project_releases_without_preload_content(
|
|
210
|
+
self,
|
|
211
|
+
package: StrictStr,
|
|
212
|
+
path: StrictStr,
|
|
213
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
214
|
+
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
215
|
+
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
216
|
+
_request_timeout: Union[
|
|
217
|
+
None,
|
|
218
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
219
|
+
Tuple[
|
|
220
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
221
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
222
|
+
]
|
|
223
|
+
] = None,
|
|
224
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
225
|
+
_content_type: Optional[StrictStr] = None,
|
|
226
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
227
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
228
|
+
) -> RESTResponseType:
|
|
229
|
+
"""Get project releases RSS feed
|
|
230
|
+
|
|
231
|
+
Latest releases for one project, analogous to PyPI `/rss/project//releases.xml`.
|
|
232
|
+
|
|
233
|
+
:param package: (required)
|
|
234
|
+
:type package: str
|
|
235
|
+
:param path: (required)
|
|
236
|
+
:type path: str
|
|
237
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
238
|
+
:type x_task_diagnostics: List[str]
|
|
239
|
+
:param fields: A list of fields to include in the response.
|
|
240
|
+
:type fields: List[str]
|
|
241
|
+
:param exclude_fields: A list of fields to exclude from the response.
|
|
242
|
+
:type exclude_fields: List[str]
|
|
243
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
244
|
+
number provided, it will be total request
|
|
245
|
+
timeout. It can also be a pair (tuple) of
|
|
246
|
+
(connection, read) timeouts.
|
|
247
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
248
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
249
|
+
request; this effectively ignores the
|
|
250
|
+
authentication in the spec for a single request.
|
|
251
|
+
:type _request_auth: dict, optional
|
|
252
|
+
:param _content_type: force content-type for the request.
|
|
253
|
+
:type _content_type: str, Optional
|
|
254
|
+
:param _headers: set to override the headers for a single
|
|
255
|
+
request; this effectively ignores the headers
|
|
256
|
+
in the spec for a single request.
|
|
257
|
+
:type _headers: dict, optional
|
|
258
|
+
:param _host_index: set to override the host_index for a single
|
|
259
|
+
request; this effectively ignores the host_index
|
|
260
|
+
in the spec for a single request.
|
|
261
|
+
:type _host_index: int, optional
|
|
262
|
+
:return: Returns the result object.
|
|
263
|
+
""" # noqa: E501
|
|
264
|
+
|
|
265
|
+
_param = self._project_releases_serialize(
|
|
266
|
+
package=package,
|
|
267
|
+
path=path,
|
|
268
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
269
|
+
fields=fields,
|
|
270
|
+
exclude_fields=exclude_fields,
|
|
271
|
+
_request_auth=_request_auth,
|
|
272
|
+
_content_type=_content_type,
|
|
273
|
+
_headers=_headers,
|
|
274
|
+
_host_index=_host_index
|
|
275
|
+
)
|
|
276
|
+
|
|
277
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
278
|
+
'200': None,
|
|
279
|
+
}
|
|
280
|
+
response_data = self.api_client.call_api(
|
|
281
|
+
*_param,
|
|
282
|
+
_request_timeout=_request_timeout
|
|
283
|
+
)
|
|
284
|
+
return response_data.response
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
def _project_releases_serialize(
|
|
288
|
+
self,
|
|
289
|
+
package,
|
|
290
|
+
path,
|
|
291
|
+
x_task_diagnostics,
|
|
292
|
+
fields,
|
|
293
|
+
exclude_fields,
|
|
294
|
+
_request_auth,
|
|
295
|
+
_content_type,
|
|
296
|
+
_headers,
|
|
297
|
+
_host_index,
|
|
298
|
+
) -> RequestSerialized:
|
|
299
|
+
|
|
300
|
+
_host = None
|
|
301
|
+
|
|
302
|
+
_collection_formats: Dict[str, str] = {
|
|
303
|
+
'X-Task-Diagnostics': 'csv',
|
|
304
|
+
'fields': 'multi',
|
|
305
|
+
'exclude_fields': 'multi',
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
_path_params: Dict[str, str] = {}
|
|
309
|
+
_query_params: List[Tuple[str, str]] = []
|
|
310
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
311
|
+
_form_params: List[Tuple[str, str]] = []
|
|
312
|
+
_files: Dict[
|
|
313
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
314
|
+
] = {}
|
|
315
|
+
_body_params: Optional[bytes] = None
|
|
316
|
+
|
|
317
|
+
# process the path parameters
|
|
318
|
+
if package is not None:
|
|
319
|
+
_path_params['package'] = package
|
|
320
|
+
if path is not None:
|
|
321
|
+
_path_params['path'] = path
|
|
322
|
+
# process the query parameters
|
|
323
|
+
if fields is not None:
|
|
324
|
+
|
|
325
|
+
_query_params.append(('fields', fields))
|
|
326
|
+
|
|
327
|
+
if exclude_fields is not None:
|
|
328
|
+
|
|
329
|
+
_query_params.append(('exclude_fields', exclude_fields))
|
|
330
|
+
|
|
331
|
+
# process the header parameters
|
|
332
|
+
if x_task_diagnostics is not None:
|
|
333
|
+
_header_params['X-Task-Diagnostics'] = x_task_diagnostics
|
|
334
|
+
# process the form parameters
|
|
335
|
+
# process the body parameter
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
|
|
339
|
+
|
|
340
|
+
# authentication setting
|
|
341
|
+
_auth_settings: List[str] = [
|
|
342
|
+
'basicAuth',
|
|
343
|
+
'cookieAuth'
|
|
344
|
+
]
|
|
345
|
+
|
|
346
|
+
return self.api_client.param_serialize(
|
|
347
|
+
method='GET',
|
|
348
|
+
resource_path='/pypi/{path}/rss/project/{package}/releases.xml',
|
|
349
|
+
path_params=_path_params,
|
|
350
|
+
query_params=_query_params,
|
|
351
|
+
header_params=_header_params,
|
|
352
|
+
body=_body_params,
|
|
353
|
+
post_params=_form_params,
|
|
354
|
+
files=_files,
|
|
355
|
+
auth_settings=_auth_settings,
|
|
356
|
+
collection_formats=_collection_formats,
|
|
357
|
+
_host=_host,
|
|
358
|
+
_request_auth=_request_auth
|
|
359
|
+
)
|
|
360
|
+
|
|
361
|
+
|
|
@@ -0,0 +1,346 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Pulp 3 API
|
|
5
|
+
|
|
6
|
+
Fetch, Upload, Organize, and Distribute Software Packages
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: v3
|
|
9
|
+
Contact: pulp-list@redhat.com
|
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
|
+
|
|
12
|
+
Do not edit the class manually.
|
|
13
|
+
""" # noqa: E501
|
|
14
|
+
|
|
15
|
+
import warnings
|
|
16
|
+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
17
|
+
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
18
|
+
from typing_extensions import Annotated
|
|
19
|
+
|
|
20
|
+
from pydantic import Field, StrictStr
|
|
21
|
+
from typing import List, Optional
|
|
22
|
+
from typing_extensions import Annotated
|
|
23
|
+
|
|
24
|
+
from pulpcore.client.pulp_python.api_client import ApiClient, RequestSerialized
|
|
25
|
+
from pulpcore.client.pulp_python.api_response import ApiResponse
|
|
26
|
+
from pulpcore.client.pulp_python.rest import RESTResponseType
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
class PypiUpdatesXmlApi:
|
|
30
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
31
|
+
Ref: https://openapi-generator.tech
|
|
32
|
+
|
|
33
|
+
Do not edit the class manually.
|
|
34
|
+
"""
|
|
35
|
+
|
|
36
|
+
def __init__(self, api_client=None) -> None:
|
|
37
|
+
if api_client is None:
|
|
38
|
+
api_client = ApiClient.get_default()
|
|
39
|
+
self.api_client = api_client
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
@validate_call
|
|
43
|
+
def updates(
|
|
44
|
+
self,
|
|
45
|
+
path: StrictStr,
|
|
46
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
47
|
+
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
48
|
+
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
49
|
+
_request_timeout: Union[
|
|
50
|
+
None,
|
|
51
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
52
|
+
Tuple[
|
|
53
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
54
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
55
|
+
]
|
|
56
|
+
] = None,
|
|
57
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
58
|
+
_content_type: Optional[StrictStr] = None,
|
|
59
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
60
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
61
|
+
) -> None:
|
|
62
|
+
"""Get latest updates RSS feed
|
|
63
|
+
|
|
64
|
+
Latest releases added to this index, analogous to PyPI `/rss/updates.xml`.
|
|
65
|
+
|
|
66
|
+
:param path: (required)
|
|
67
|
+
:type path: str
|
|
68
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
69
|
+
:type x_task_diagnostics: List[str]
|
|
70
|
+
:param fields: A list of fields to include in the response.
|
|
71
|
+
:type fields: List[str]
|
|
72
|
+
:param exclude_fields: A list of fields to exclude from the response.
|
|
73
|
+
:type exclude_fields: List[str]
|
|
74
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
75
|
+
number provided, it will be total request
|
|
76
|
+
timeout. It can also be a pair (tuple) of
|
|
77
|
+
(connection, read) timeouts.
|
|
78
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
79
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
80
|
+
request; this effectively ignores the
|
|
81
|
+
authentication in the spec for a single request.
|
|
82
|
+
:type _request_auth: dict, optional
|
|
83
|
+
:param _content_type: force content-type for the request.
|
|
84
|
+
:type _content_type: str, Optional
|
|
85
|
+
:param _headers: set to override the headers for a single
|
|
86
|
+
request; this effectively ignores the headers
|
|
87
|
+
in the spec for a single request.
|
|
88
|
+
:type _headers: dict, optional
|
|
89
|
+
:param _host_index: set to override the host_index for a single
|
|
90
|
+
request; this effectively ignores the host_index
|
|
91
|
+
in the spec for a single request.
|
|
92
|
+
:type _host_index: int, optional
|
|
93
|
+
:return: Returns the result object.
|
|
94
|
+
""" # noqa: E501
|
|
95
|
+
|
|
96
|
+
_param = self._updates_serialize(
|
|
97
|
+
path=path,
|
|
98
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
99
|
+
fields=fields,
|
|
100
|
+
exclude_fields=exclude_fields,
|
|
101
|
+
_request_auth=_request_auth,
|
|
102
|
+
_content_type=_content_type,
|
|
103
|
+
_headers=_headers,
|
|
104
|
+
_host_index=_host_index
|
|
105
|
+
)
|
|
106
|
+
|
|
107
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
108
|
+
'200': None,
|
|
109
|
+
}
|
|
110
|
+
response_data = self.api_client.call_api(
|
|
111
|
+
*_param,
|
|
112
|
+
_request_timeout=_request_timeout
|
|
113
|
+
)
|
|
114
|
+
response_data.read()
|
|
115
|
+
return self.api_client.response_deserialize(
|
|
116
|
+
response_data=response_data,
|
|
117
|
+
response_types_map=_response_types_map,
|
|
118
|
+
).data
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
@validate_call
|
|
122
|
+
def updates_with_http_info(
|
|
123
|
+
self,
|
|
124
|
+
path: StrictStr,
|
|
125
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
126
|
+
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
127
|
+
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
128
|
+
_request_timeout: Union[
|
|
129
|
+
None,
|
|
130
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
131
|
+
Tuple[
|
|
132
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
133
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
134
|
+
]
|
|
135
|
+
] = None,
|
|
136
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
137
|
+
_content_type: Optional[StrictStr] = None,
|
|
138
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
139
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
140
|
+
) -> ApiResponse[None]:
|
|
141
|
+
"""Get latest updates RSS feed
|
|
142
|
+
|
|
143
|
+
Latest releases added to this index, analogous to PyPI `/rss/updates.xml`.
|
|
144
|
+
|
|
145
|
+
:param path: (required)
|
|
146
|
+
:type path: str
|
|
147
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
148
|
+
:type x_task_diagnostics: List[str]
|
|
149
|
+
:param fields: A list of fields to include in the response.
|
|
150
|
+
:type fields: List[str]
|
|
151
|
+
:param exclude_fields: A list of fields to exclude from the response.
|
|
152
|
+
:type exclude_fields: List[str]
|
|
153
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
154
|
+
number provided, it will be total request
|
|
155
|
+
timeout. It can also be a pair (tuple) of
|
|
156
|
+
(connection, read) timeouts.
|
|
157
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
158
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
159
|
+
request; this effectively ignores the
|
|
160
|
+
authentication in the spec for a single request.
|
|
161
|
+
:type _request_auth: dict, optional
|
|
162
|
+
:param _content_type: force content-type for the request.
|
|
163
|
+
:type _content_type: str, Optional
|
|
164
|
+
:param _headers: set to override the headers for a single
|
|
165
|
+
request; this effectively ignores the headers
|
|
166
|
+
in the spec for a single request.
|
|
167
|
+
:type _headers: dict, optional
|
|
168
|
+
:param _host_index: set to override the host_index for a single
|
|
169
|
+
request; this effectively ignores the host_index
|
|
170
|
+
in the spec for a single request.
|
|
171
|
+
:type _host_index: int, optional
|
|
172
|
+
:return: Returns the result object.
|
|
173
|
+
""" # noqa: E501
|
|
174
|
+
|
|
175
|
+
_param = self._updates_serialize(
|
|
176
|
+
path=path,
|
|
177
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
178
|
+
fields=fields,
|
|
179
|
+
exclude_fields=exclude_fields,
|
|
180
|
+
_request_auth=_request_auth,
|
|
181
|
+
_content_type=_content_type,
|
|
182
|
+
_headers=_headers,
|
|
183
|
+
_host_index=_host_index
|
|
184
|
+
)
|
|
185
|
+
|
|
186
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
187
|
+
'200': None,
|
|
188
|
+
}
|
|
189
|
+
response_data = self.api_client.call_api(
|
|
190
|
+
*_param,
|
|
191
|
+
_request_timeout=_request_timeout
|
|
192
|
+
)
|
|
193
|
+
response_data.read()
|
|
194
|
+
return self.api_client.response_deserialize(
|
|
195
|
+
response_data=response_data,
|
|
196
|
+
response_types_map=_response_types_map,
|
|
197
|
+
)
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
@validate_call
|
|
201
|
+
def updates_without_preload_content(
|
|
202
|
+
self,
|
|
203
|
+
path: StrictStr,
|
|
204
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
205
|
+
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
206
|
+
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
207
|
+
_request_timeout: Union[
|
|
208
|
+
None,
|
|
209
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
210
|
+
Tuple[
|
|
211
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
212
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
213
|
+
]
|
|
214
|
+
] = None,
|
|
215
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
216
|
+
_content_type: Optional[StrictStr] = None,
|
|
217
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
218
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
219
|
+
) -> RESTResponseType:
|
|
220
|
+
"""Get latest updates RSS feed
|
|
221
|
+
|
|
222
|
+
Latest releases added to this index, analogous to PyPI `/rss/updates.xml`.
|
|
223
|
+
|
|
224
|
+
:param path: (required)
|
|
225
|
+
:type path: str
|
|
226
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
227
|
+
:type x_task_diagnostics: List[str]
|
|
228
|
+
:param fields: A list of fields to include in the response.
|
|
229
|
+
:type fields: List[str]
|
|
230
|
+
:param exclude_fields: A list of fields to exclude from the response.
|
|
231
|
+
:type exclude_fields: List[str]
|
|
232
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
233
|
+
number provided, it will be total request
|
|
234
|
+
timeout. It can also be a pair (tuple) of
|
|
235
|
+
(connection, read) timeouts.
|
|
236
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
237
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
238
|
+
request; this effectively ignores the
|
|
239
|
+
authentication in the spec for a single request.
|
|
240
|
+
:type _request_auth: dict, optional
|
|
241
|
+
:param _content_type: force content-type for the request.
|
|
242
|
+
:type _content_type: str, Optional
|
|
243
|
+
:param _headers: set to override the headers for a single
|
|
244
|
+
request; this effectively ignores the headers
|
|
245
|
+
in the spec for a single request.
|
|
246
|
+
:type _headers: dict, optional
|
|
247
|
+
:param _host_index: set to override the host_index for a single
|
|
248
|
+
request; this effectively ignores the host_index
|
|
249
|
+
in the spec for a single request.
|
|
250
|
+
:type _host_index: int, optional
|
|
251
|
+
:return: Returns the result object.
|
|
252
|
+
""" # noqa: E501
|
|
253
|
+
|
|
254
|
+
_param = self._updates_serialize(
|
|
255
|
+
path=path,
|
|
256
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
257
|
+
fields=fields,
|
|
258
|
+
exclude_fields=exclude_fields,
|
|
259
|
+
_request_auth=_request_auth,
|
|
260
|
+
_content_type=_content_type,
|
|
261
|
+
_headers=_headers,
|
|
262
|
+
_host_index=_host_index
|
|
263
|
+
)
|
|
264
|
+
|
|
265
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
266
|
+
'200': None,
|
|
267
|
+
}
|
|
268
|
+
response_data = self.api_client.call_api(
|
|
269
|
+
*_param,
|
|
270
|
+
_request_timeout=_request_timeout
|
|
271
|
+
)
|
|
272
|
+
return response_data.response
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
def _updates_serialize(
|
|
276
|
+
self,
|
|
277
|
+
path,
|
|
278
|
+
x_task_diagnostics,
|
|
279
|
+
fields,
|
|
280
|
+
exclude_fields,
|
|
281
|
+
_request_auth,
|
|
282
|
+
_content_type,
|
|
283
|
+
_headers,
|
|
284
|
+
_host_index,
|
|
285
|
+
) -> RequestSerialized:
|
|
286
|
+
|
|
287
|
+
_host = None
|
|
288
|
+
|
|
289
|
+
_collection_formats: Dict[str, str] = {
|
|
290
|
+
'X-Task-Diagnostics': 'csv',
|
|
291
|
+
'fields': 'multi',
|
|
292
|
+
'exclude_fields': 'multi',
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
_path_params: Dict[str, str] = {}
|
|
296
|
+
_query_params: List[Tuple[str, str]] = []
|
|
297
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
298
|
+
_form_params: List[Tuple[str, str]] = []
|
|
299
|
+
_files: Dict[
|
|
300
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
301
|
+
] = {}
|
|
302
|
+
_body_params: Optional[bytes] = None
|
|
303
|
+
|
|
304
|
+
# process the path parameters
|
|
305
|
+
if path is not None:
|
|
306
|
+
_path_params['path'] = path
|
|
307
|
+
# process the query parameters
|
|
308
|
+
if fields is not None:
|
|
309
|
+
|
|
310
|
+
_query_params.append(('fields', fields))
|
|
311
|
+
|
|
312
|
+
if exclude_fields is not None:
|
|
313
|
+
|
|
314
|
+
_query_params.append(('exclude_fields', exclude_fields))
|
|
315
|
+
|
|
316
|
+
# process the header parameters
|
|
317
|
+
if x_task_diagnostics is not None:
|
|
318
|
+
_header_params['X-Task-Diagnostics'] = x_task_diagnostics
|
|
319
|
+
# process the form parameters
|
|
320
|
+
# process the body parameter
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
|
|
325
|
+
# authentication setting
|
|
326
|
+
_auth_settings: List[str] = [
|
|
327
|
+
'basicAuth',
|
|
328
|
+
'cookieAuth'
|
|
329
|
+
]
|
|
330
|
+
|
|
331
|
+
return self.api_client.param_serialize(
|
|
332
|
+
method='GET',
|
|
333
|
+
resource_path='/pypi/{path}/rss/updates.xml',
|
|
334
|
+
path_params=_path_params,
|
|
335
|
+
query_params=_query_params,
|
|
336
|
+
header_params=_header_params,
|
|
337
|
+
body=_body_params,
|
|
338
|
+
post_params=_form_params,
|
|
339
|
+
files=_files,
|
|
340
|
+
auth_settings=_auth_settings,
|
|
341
|
+
collection_formats=_collection_formats,
|
|
342
|
+
_host=_host,
|
|
343
|
+
_request_auth=_request_auth
|
|
344
|
+
)
|
|
345
|
+
|
|
346
|
+
|
|
@@ -92,7 +92,7 @@ class ApiClient:
|
|
|
92
92
|
self.default_headers[header_name] = header_value
|
|
93
93
|
self.cookie = cookie
|
|
94
94
|
# Set default User-Agent.
|
|
95
|
-
self.user_agent = 'OpenAPI-Generator/3.
|
|
95
|
+
self.user_agent = 'OpenAPI-Generator/3.36.0/python'
|
|
96
96
|
self.client_side_validation = configuration.client_side_validation
|
|
97
97
|
|
|
98
98
|
def __enter__(self):
|
|
@@ -561,7 +561,7 @@ conf = pulpcore.client.pulp_python.Configuration(
|
|
|
561
561
|
"OS: {env}\n"\
|
|
562
562
|
"Python Version: {pyversion}\n"\
|
|
563
563
|
"Version of the API: v3\n"\
|
|
564
|
-
"SDK Package Version: 3.
|
|
564
|
+
"SDK Package Version: 3.36.0".\
|
|
565
565
|
format(env=sys.platform, pyversion=sys.version)
|
|
566
566
|
|
|
567
567
|
def get_host_settings(self) -> List[HostSetting]:
|
|
@@ -26,7 +26,7 @@ from typing_extensions import Self
|
|
|
26
26
|
|
|
27
27
|
class NestedRole(BaseModel):
|
|
28
28
|
"""
|
|
29
|
-
Serializer to add/remove object roles to/from users/groups. This is used in conjunction with
|
|
29
|
+
Serializer to add/remove object roles to/from users/groups. This is used in conjunction with `pulpcore.app.viewsets.base.RolesMixin` and requires the underlying object to be passed as `content_object` in the context.
|
|
30
30
|
""" # noqa: E501
|
|
31
31
|
users: Optional[List[Annotated[str, Field(min_length=1, strict=True)]]] = None
|
|
32
32
|
groups: Optional[List[Annotated[str, Field(min_length=1, strict=True)]]] = None
|
|
@@ -25,7 +25,7 @@ from typing_extensions import Self
|
|
|
25
25
|
|
|
26
26
|
class NestedRoleResponse(BaseModel):
|
|
27
27
|
"""
|
|
28
|
-
Serializer to add/remove object roles to/from users/groups. This is used in conjunction with
|
|
28
|
+
Serializer to add/remove object roles to/from users/groups. This is used in conjunction with `pulpcore.app.viewsets.base.RolesMixin` and requires the underlying object to be passed as `content_object` in the context.
|
|
29
29
|
""" # noqa: E501
|
|
30
30
|
users: Optional[List[StrictStr]] = None
|
|
31
31
|
groups: Optional[List[StrictStr]] = None
|
|
@@ -26,7 +26,7 @@ from typing_extensions import Self
|
|
|
26
26
|
|
|
27
27
|
class RepositoryAddRemoveContent(BaseModel):
|
|
28
28
|
"""
|
|
29
|
-
Base serializer for use with [pulpcore.app.models.Model][] This ensures that all Serializers provide values for the 'pulp_href` field. The class provides a default for the
|
|
29
|
+
Base serializer for use with [pulpcore.app.models.Model][] This ensures that all Serializers provide values for the 'pulp_href` field. The class provides a default for the `ref_name` attribute in the ModelSerializers's `Meta` class. This ensures that the OpenAPI definitions of plugins are namespaced properly.
|
|
30
30
|
""" # noqa: E501
|
|
31
31
|
add_content_units: Optional[List[Annotated[str, Field(min_length=1, strict=True)]]] = Field(default=None, description="A list of content units to add to a new repository version. This content is added after remove_content_units are removed.")
|
|
32
32
|
remove_content_units: Optional[List[Annotated[str, Field(min_length=1, strict=True)]]] = Field(default=None, description="A list of content units to remove from the latest repository version. You may also specify '*' as an entry to remove all content. This content is removed before add_content_units are added.")
|
|
@@ -28,7 +28,7 @@ class RepositorySyncURL(BaseModel):
|
|
|
28
28
|
A mixin for validating unknown serializers' fields.
|
|
29
29
|
""" # noqa: E501
|
|
30
30
|
remote: Optional[StrictStr] = Field(default=None, description="A remote to sync from. This will override a remote set on repository.")
|
|
31
|
-
mirror: Optional[StrictBool] = Field(default=False, description="If
|
|
31
|
+
mirror: Optional[StrictBool] = Field(default=False, description="If `True`, synchronization will remove all content that is not present in the remote repository. If `False`, sync will be additive only.")
|
|
32
32
|
__properties: ClassVar[List[str]] = ["remote", "mirror"]
|
|
33
33
|
|
|
34
34
|
model_config = ConfigDict(
|
|
@@ -27,7 +27,7 @@ from typing_extensions import Self
|
|
|
27
27
|
|
|
28
28
|
class RepositoryVersionResponse(BaseModel):
|
|
29
29
|
"""
|
|
30
|
-
Base serializer for use with [pulpcore.app.models.Model][] This ensures that all Serializers provide values for the 'pulp_href` field. The class provides a default for the
|
|
30
|
+
Base serializer for use with [pulpcore.app.models.Model][] This ensures that all Serializers provide values for the 'pulp_href` field. The class provides a default for the `ref_name` attribute in the ModelSerializers's `Meta` class. This ensures that the OpenAPI definitions of plugins are namespaced properly.
|
|
31
31
|
""" # noqa: E501
|
|
32
32
|
pulp_href: Optional[StrictStr] = None
|
|
33
33
|
prn: Optional[StrictStr] = Field(default=None, description="The Pulp Resource Name (PRN).")
|
|
File without changes
|
|
File without changes
|