pulp-python-client 3.12.4__py3-none-any.whl → 3.13.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.
Potentially problematic release.
This version of pulp-python-client might be problematic. Click here for more details.
- pulp_python_client-3.13.0.dist-info/METADATA +17 -0
- pulp_python_client-3.13.0.dist-info/RECORD +64 -0
- {pulp_python_client-3.12.4.dist-info → pulp_python_client-3.13.0.dist-info}/WHEEL +1 -1
- pulpcore/client/pulp_python/__init__.py +9 -10
- pulpcore/client/pulp_python/api/__init__.py +1 -2
- pulpcore/client/pulp_python/api/content_packages_api.py +1800 -655
- pulpcore/client/pulp_python/api/distributions_pypi_api.py +3755 -1474
- pulpcore/client/pulp_python/api/publications_pypi_api.py +2574 -982
- pulpcore/client/pulp_python/api/pypi_api.py +302 -128
- pulpcore/client/pulp_python/api/pypi_legacy_api.py +326 -153
- pulpcore/client/pulp_python/api/pypi_metadata_api.py +319 -139
- pulpcore/client/pulp_python/api/pypi_simple_api.py +899 -382
- pulpcore/client/pulp_python/api/remotes_python_api.py +4092 -1589
- pulpcore/client/pulp_python/api/repositories_python_api.py +4380 -1719
- pulpcore/client/pulp_python/api/repositories_python_versions_api.py +1526 -561
- pulpcore/client/pulp_python/api_client.py +444 -313
- pulpcore/client/pulp_python/api_response.py +21 -0
- pulpcore/client/pulp_python/configuration.py +266 -73
- pulpcore/client/pulp_python/exceptions.py +99 -20
- pulpcore/client/pulp_python/models/__init__.py +5 -8
- pulpcore/client/pulp_python/models/async_operation_response.py +60 -96
- pulpcore/client/pulp_python/models/content_summary_response.py +70 -154
- pulpcore/client/pulp_python/models/exclude_platforms_enum.py +19 -82
- pulpcore/client/pulp_python/models/my_permissions_response.py +60 -94
- pulpcore/client/pulp_python/models/nested_role.py +71 -155
- pulpcore/client/pulp_python/models/nested_role_response.py +70 -152
- pulpcore/client/pulp_python/models/object_roles_response.py +70 -96
- pulpcore/client/pulp_python/models/package_metadata_response.py +91 -191
- pulpcore/client/pulp_python/models/package_types_enum.py +23 -86
- pulpcore/client/pulp_python/models/package_upload_task_response.py +85 -154
- pulpcore/client/pulp_python/models/paginated_repository_version_response_list.py +94 -181
- pulpcore/client/pulp_python/models/paginatedpython_python_distribution_response_list.py +94 -181
- pulpcore/client/pulp_python/models/paginatedpython_python_package_content_response_list.py +94 -181
- pulpcore/client/pulp_python/models/paginatedpython_python_publication_response_list.py +94 -181
- pulpcore/client/pulp_python/models/paginatedpython_python_remote_response_list.py +94 -181
- pulpcore/client/pulp_python/models/paginatedpython_python_repository_response_list.py +94 -181
- pulpcore/client/pulp_python/models/patchedpython_python_distribution.py +108 -330
- pulpcore/client/pulp_python/models/patchedpython_python_remote.py +204 -864
- pulpcore/client/pulp_python/models/patchedpython_python_repository.py +96 -249
- pulpcore/client/pulp_python/models/policy_enum.py +18 -81
- pulpcore/client/pulp_python/models/python_python_distribution.py +108 -332
- pulpcore/client/pulp_python/models/python_python_distribution_response.py +132 -490
- pulpcore/client/pulp_python/models/python_python_package_content_response.py +182 -972
- pulpcore/client/pulp_python/models/python_python_publication.py +68 -127
- pulpcore/client/pulp_python/models/python_python_publication_response.py +93 -269
- pulpcore/client/pulp_python/models/python_python_remote.py +204 -866
- pulpcore/client/pulp_python/models/python_python_remote_response.py +198 -839
- pulpcore/client/pulp_python/models/python_python_remote_response_hidden_fields_inner.py +90 -0
- pulpcore/client/pulp_python/models/python_python_repository.py +96 -250
- pulpcore/client/pulp_python/models/python_python_repository_response.py +122 -407
- pulpcore/client/pulp_python/models/repair.py +60 -95
- pulpcore/client/pulp_python/models/repository_add_remove_content.py +71 -157
- pulpcore/client/pulp_python/models/repository_sync_url.py +68 -129
- pulpcore/client/pulp_python/models/repository_version_response.py +104 -296
- pulpcore/client/pulp_python/models/set_label.py +80 -130
- pulpcore/client/pulp_python/models/set_label_response.py +80 -127
- pulpcore/client/pulp_python/models/summary_response.py +70 -160
- pulpcore/client/pulp_python/models/unset_label.py +75 -107
- pulpcore/client/pulp_python/models/unset_label_response.py +78 -129
- pulpcore/client/pulp_python/py.typed +0 -0
- pulpcore/client/pulp_python/rest.py +136 -170
- pulp_python_client-3.12.4.dist-info/METADATA +0 -17
- pulp_python_client-3.12.4.dist-info/RECORD +0 -65
- pulpcore/client/pulp_python/models/package_upload.py +0 -190
- pulpcore/client/pulp_python/models/python_bander_remote.py +0 -184
- pulpcore/client/pulp_python/models/python_python_package_content.py +0 -889
- pulpcore/client/pulp_python/models/python_python_remote_response_hidden_fields.py +0 -149
- {pulp_python_client-3.12.4.dist-info → pulp_python_client-3.13.0.dist-info}/top_level.txt +0 -0
|
@@ -3,58 +3,67 @@
|
|
|
3
3
|
"""
|
|
4
4
|
Pulp 3 API
|
|
5
5
|
|
|
6
|
-
Fetch, Upload, Organize, and Distribute Software Packages
|
|
6
|
+
Fetch, Upload, Organize, and Distribute Software Packages
|
|
7
7
|
|
|
8
8
|
The version of the OpenAPI document: v3
|
|
9
9
|
Contact: pulp-list@redhat.com
|
|
10
|
-
Generated by
|
|
11
|
-
"""
|
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
12
11
|
|
|
12
|
+
Do not edit the class manually.
|
|
13
|
+
""" # noqa: E501
|
|
13
14
|
|
|
14
|
-
from __future__ import absolute_import
|
|
15
15
|
|
|
16
16
|
import io
|
|
17
17
|
import json
|
|
18
|
-
import logging
|
|
19
18
|
import re
|
|
20
19
|
import ssl
|
|
21
20
|
|
|
22
|
-
import certifi
|
|
23
|
-
# python 2 and python 3 compatibility library
|
|
24
|
-
import six
|
|
25
|
-
from six.moves.urllib.parse import urlencode
|
|
26
21
|
import urllib3
|
|
27
22
|
|
|
28
23
|
from pulpcore.client.pulp_python.exceptions import ApiException, ApiValueError
|
|
29
24
|
|
|
25
|
+
SUPPORTED_SOCKS_PROXIES = {"socks5", "socks5h", "socks4", "socks4a"}
|
|
26
|
+
RESTResponseType = urllib3.HTTPResponse
|
|
27
|
+
|
|
30
28
|
|
|
31
|
-
|
|
29
|
+
def is_socks_proxy_url(url):
|
|
30
|
+
if url is None:
|
|
31
|
+
return False
|
|
32
|
+
split_section = url.split("://")
|
|
33
|
+
if len(split_section) < 2:
|
|
34
|
+
return False
|
|
35
|
+
else:
|
|
36
|
+
return split_section[0].lower() in SUPPORTED_SOCKS_PROXIES
|
|
32
37
|
|
|
33
38
|
|
|
34
39
|
class RESTResponse(io.IOBase):
|
|
35
40
|
|
|
36
|
-
def __init__(self, resp):
|
|
37
|
-
self.
|
|
41
|
+
def __init__(self, resp) -> None:
|
|
42
|
+
self.response = resp
|
|
38
43
|
self.status = resp.status
|
|
39
44
|
self.reason = resp.reason
|
|
40
|
-
self.data =
|
|
45
|
+
self.data = None
|
|
46
|
+
|
|
47
|
+
def read(self):
|
|
48
|
+
if self.data is None:
|
|
49
|
+
self.data = self.response.data
|
|
50
|
+
return self.data
|
|
41
51
|
|
|
42
52
|
def getheaders(self):
|
|
43
53
|
"""Returns a dictionary of the response headers."""
|
|
44
|
-
return self.
|
|
54
|
+
return self.response.headers
|
|
45
55
|
|
|
46
56
|
def getheader(self, name, default=None):
|
|
47
57
|
"""Returns a given response header."""
|
|
48
|
-
return self.
|
|
58
|
+
return self.response.headers.get(name, default)
|
|
49
59
|
|
|
50
60
|
|
|
51
|
-
class RESTClientObject
|
|
61
|
+
class RESTClientObject:
|
|
52
62
|
|
|
53
|
-
def __init__(self, configuration
|
|
63
|
+
def __init__(self, configuration) -> None:
|
|
54
64
|
# urllib3.PoolManager will pass all kw parameters to connectionpool
|
|
55
65
|
# https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/poolmanager.py#L75 # noqa: E501
|
|
56
66
|
# https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/connectionpool.py#L680 # noqa: E501
|
|
57
|
-
# maxsize is the number of requests to host that are allowed in parallel # noqa: E501
|
|
58
67
|
# Custom SSL certificates and client certificates: http://urllib3.readthedocs.io/en/latest/advanced-usage.html # noqa: E501
|
|
59
68
|
|
|
60
69
|
# cert_reqs
|
|
@@ -63,74 +72,79 @@ class RESTClientObject(object):
|
|
|
63
72
|
else:
|
|
64
73
|
cert_reqs = ssl.CERT_NONE
|
|
65
74
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
ca_certs
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
addition_pool_args = {}
|
|
75
|
+
pool_args = {
|
|
76
|
+
"cert_reqs": cert_reqs,
|
|
77
|
+
"ca_certs": configuration.ssl_ca_cert,
|
|
78
|
+
"cert_file": configuration.cert_file,
|
|
79
|
+
"key_file": configuration.key_file,
|
|
80
|
+
}
|
|
74
81
|
if configuration.assert_hostname is not None:
|
|
75
|
-
|
|
82
|
+
pool_args['assert_hostname'] = (
|
|
83
|
+
configuration.assert_hostname
|
|
84
|
+
)
|
|
76
85
|
|
|
77
86
|
if configuration.retries is not None:
|
|
78
|
-
|
|
87
|
+
pool_args['retries'] = configuration.retries
|
|
79
88
|
|
|
80
|
-
if
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
89
|
+
if configuration.tls_server_name:
|
|
90
|
+
pool_args['server_hostname'] = configuration.tls_server_name
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
if configuration.socket_options is not None:
|
|
94
|
+
pool_args['socket_options'] = configuration.socket_options
|
|
95
|
+
|
|
96
|
+
if configuration.connection_pool_maxsize is not None:
|
|
97
|
+
pool_args['maxsize'] = configuration.connection_pool_maxsize
|
|
85
98
|
|
|
86
99
|
# https pool manager
|
|
100
|
+
self.pool_manager: urllib3.PoolManager
|
|
101
|
+
|
|
87
102
|
if configuration.proxy:
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
**addition_pool_args
|
|
98
|
-
)
|
|
103
|
+
if is_socks_proxy_url(configuration.proxy):
|
|
104
|
+
from urllib3.contrib.socks import SOCKSProxyManager
|
|
105
|
+
pool_args["proxy_url"] = configuration.proxy
|
|
106
|
+
pool_args["headers"] = configuration.proxy_headers
|
|
107
|
+
self.pool_manager = SOCKSProxyManager(**pool_args)
|
|
108
|
+
else:
|
|
109
|
+
pool_args["proxy_url"] = configuration.proxy
|
|
110
|
+
pool_args["proxy_headers"] = configuration.proxy_headers
|
|
111
|
+
self.pool_manager = urllib3.ProxyManager(**pool_args)
|
|
99
112
|
else:
|
|
100
|
-
self.pool_manager = urllib3.PoolManager(
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
body=None, post_params=None, _preload_content=True,
|
|
112
|
-
_request_timeout=None):
|
|
113
|
+
self.pool_manager = urllib3.PoolManager(**pool_args)
|
|
114
|
+
|
|
115
|
+
def request(
|
|
116
|
+
self,
|
|
117
|
+
method,
|
|
118
|
+
url,
|
|
119
|
+
headers=None,
|
|
120
|
+
body=None,
|
|
121
|
+
post_params=None,
|
|
122
|
+
_request_timeout=None
|
|
123
|
+
):
|
|
113
124
|
"""Perform requests.
|
|
114
125
|
|
|
115
126
|
:param method: http request method
|
|
116
127
|
:param url: http request url
|
|
117
|
-
:param query_params: query parameters in the url
|
|
118
128
|
:param headers: http request headers
|
|
119
129
|
:param body: request json body, for `application/json`
|
|
120
130
|
:param post_params: request post parameters,
|
|
121
131
|
`application/x-www-form-urlencoded`
|
|
122
132
|
and `multipart/form-data`
|
|
123
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
124
|
-
be returned without reading/decoding response
|
|
125
|
-
data. Default is True.
|
|
126
133
|
:param _request_timeout: timeout setting for this request. If one
|
|
127
134
|
number provided, it will be total request
|
|
128
135
|
timeout. It can also be a pair (tuple) of
|
|
129
136
|
(connection, read) timeouts.
|
|
130
137
|
"""
|
|
131
138
|
method = method.upper()
|
|
132
|
-
assert method in [
|
|
133
|
-
|
|
139
|
+
assert method in [
|
|
140
|
+
'GET',
|
|
141
|
+
'HEAD',
|
|
142
|
+
'DELETE',
|
|
143
|
+
'POST',
|
|
144
|
+
'PUT',
|
|
145
|
+
'PATCH',
|
|
146
|
+
'OPTIONS'
|
|
147
|
+
]
|
|
134
148
|
|
|
135
149
|
if post_params and body:
|
|
136
150
|
raise ApiValueError(
|
|
@@ -142,60 +156,83 @@ class RESTClientObject(object):
|
|
|
142
156
|
|
|
143
157
|
timeout = None
|
|
144
158
|
if _request_timeout:
|
|
145
|
-
if isinstance(_request_timeout, (int, )
|
|
159
|
+
if isinstance(_request_timeout, (int, float)):
|
|
146
160
|
timeout = urllib3.Timeout(total=_request_timeout)
|
|
147
|
-
elif (
|
|
148
|
-
|
|
161
|
+
elif (
|
|
162
|
+
isinstance(_request_timeout, tuple)
|
|
163
|
+
and len(_request_timeout) == 2
|
|
164
|
+
):
|
|
149
165
|
timeout = urllib3.Timeout(
|
|
150
|
-
connect=_request_timeout[0],
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
headers['Content-Type'] = 'application/json'
|
|
166
|
+
connect=_request_timeout[0],
|
|
167
|
+
read=_request_timeout[1]
|
|
168
|
+
)
|
|
154
169
|
|
|
155
170
|
try:
|
|
156
171
|
# For `POST`, `PUT`, `PATCH`, `OPTIONS`, `DELETE`
|
|
157
172
|
if method in ['POST', 'PUT', 'PATCH', 'OPTIONS', 'DELETE']:
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
173
|
+
|
|
174
|
+
# no content type provided or payload is json
|
|
175
|
+
content_type = headers.get('Content-Type')
|
|
176
|
+
if (
|
|
177
|
+
not content_type
|
|
178
|
+
or re.search('json', content_type, re.IGNORECASE)
|
|
179
|
+
):
|
|
161
180
|
request_body = None
|
|
162
181
|
if body is not None:
|
|
163
182
|
request_body = json.dumps(body)
|
|
164
183
|
r = self.pool_manager.request(
|
|
165
|
-
method,
|
|
184
|
+
method,
|
|
185
|
+
url,
|
|
166
186
|
body=request_body,
|
|
167
|
-
preload_content=_preload_content,
|
|
168
187
|
timeout=timeout,
|
|
169
|
-
headers=headers
|
|
170
|
-
|
|
188
|
+
headers=headers,
|
|
189
|
+
preload_content=False
|
|
190
|
+
)
|
|
191
|
+
elif content_type == 'application/x-www-form-urlencoded':
|
|
171
192
|
r = self.pool_manager.request(
|
|
172
|
-
method,
|
|
193
|
+
method,
|
|
194
|
+
url,
|
|
173
195
|
fields=post_params,
|
|
174
196
|
encode_multipart=False,
|
|
175
|
-
preload_content=_preload_content,
|
|
176
197
|
timeout=timeout,
|
|
177
|
-
headers=headers
|
|
178
|
-
|
|
198
|
+
headers=headers,
|
|
199
|
+
preload_content=False
|
|
200
|
+
)
|
|
201
|
+
elif content_type == 'multipart/form-data':
|
|
179
202
|
# must del headers['Content-Type'], or the correct
|
|
180
203
|
# Content-Type which generated by urllib3 will be
|
|
181
204
|
# overwritten.
|
|
182
205
|
del headers['Content-Type']
|
|
206
|
+
# Ensures that dict objects are serialized
|
|
207
|
+
post_params = [(a, json.dumps(b)) if isinstance(b, dict) else (a,b) for a, b in post_params]
|
|
183
208
|
r = self.pool_manager.request(
|
|
184
|
-
method,
|
|
209
|
+
method,
|
|
210
|
+
url,
|
|
185
211
|
fields=post_params,
|
|
186
212
|
encode_multipart=True,
|
|
187
|
-
preload_content=_preload_content,
|
|
188
213
|
timeout=timeout,
|
|
189
|
-
headers=headers
|
|
214
|
+
headers=headers,
|
|
215
|
+
preload_content=False
|
|
216
|
+
)
|
|
190
217
|
# Pass a `string` parameter directly in the body to support
|
|
191
|
-
# other content types than
|
|
192
|
-
# provided in serialized form
|
|
218
|
+
# other content types than JSON when `body` argument is
|
|
219
|
+
# provided in serialized form.
|
|
193
220
|
elif isinstance(body, str) or isinstance(body, bytes):
|
|
194
|
-
request_body = body
|
|
195
221
|
r = self.pool_manager.request(
|
|
196
|
-
method,
|
|
222
|
+
method,
|
|
223
|
+
url,
|
|
224
|
+
body=body,
|
|
225
|
+
timeout=timeout,
|
|
226
|
+
headers=headers,
|
|
227
|
+
preload_content=False
|
|
228
|
+
)
|
|
229
|
+
elif headers['Content-Type'].startswith('text/') and isinstance(body, bool):
|
|
230
|
+
request_body = "true" if body else "false"
|
|
231
|
+
r = self.pool_manager.request(
|
|
232
|
+
method,
|
|
233
|
+
url,
|
|
197
234
|
body=request_body,
|
|
198
|
-
preload_content=
|
|
235
|
+
preload_content=False,
|
|
199
236
|
timeout=timeout,
|
|
200
237
|
headers=headers)
|
|
201
238
|
else:
|
|
@@ -206,87 +243,16 @@ class RESTClientObject(object):
|
|
|
206
243
|
raise ApiException(status=0, reason=msg)
|
|
207
244
|
# For `GET`, `HEAD`
|
|
208
245
|
else:
|
|
209
|
-
r = self.pool_manager.request(
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
246
|
+
r = self.pool_manager.request(
|
|
247
|
+
method,
|
|
248
|
+
url,
|
|
249
|
+
fields={},
|
|
250
|
+
timeout=timeout,
|
|
251
|
+
headers=headers,
|
|
252
|
+
preload_content=False
|
|
253
|
+
)
|
|
214
254
|
except urllib3.exceptions.SSLError as e:
|
|
215
|
-
msg = "
|
|
255
|
+
msg = "\n".join([type(e).__name__, str(e)])
|
|
216
256
|
raise ApiException(status=0, reason=msg)
|
|
217
257
|
|
|
218
|
-
|
|
219
|
-
r = RESTResponse(r)
|
|
220
|
-
|
|
221
|
-
# log response body
|
|
222
|
-
logger.debug("response body: %s", r.data)
|
|
223
|
-
|
|
224
|
-
if not 200 <= r.status <= 299:
|
|
225
|
-
raise ApiException(http_resp=r)
|
|
226
|
-
|
|
227
|
-
return r
|
|
228
|
-
|
|
229
|
-
def GET(self, url, headers=None, query_params=None, _preload_content=True,
|
|
230
|
-
_request_timeout=None):
|
|
231
|
-
return self.request("GET", url,
|
|
232
|
-
headers=headers,
|
|
233
|
-
_preload_content=_preload_content,
|
|
234
|
-
_request_timeout=_request_timeout,
|
|
235
|
-
query_params=query_params)
|
|
236
|
-
|
|
237
|
-
def HEAD(self, url, headers=None, query_params=None, _preload_content=True,
|
|
238
|
-
_request_timeout=None):
|
|
239
|
-
return self.request("HEAD", url,
|
|
240
|
-
headers=headers,
|
|
241
|
-
_preload_content=_preload_content,
|
|
242
|
-
_request_timeout=_request_timeout,
|
|
243
|
-
query_params=query_params)
|
|
244
|
-
|
|
245
|
-
def OPTIONS(self, url, headers=None, query_params=None, post_params=None,
|
|
246
|
-
body=None, _preload_content=True, _request_timeout=None):
|
|
247
|
-
return self.request("OPTIONS", url,
|
|
248
|
-
headers=headers,
|
|
249
|
-
query_params=query_params,
|
|
250
|
-
post_params=post_params,
|
|
251
|
-
_preload_content=_preload_content,
|
|
252
|
-
_request_timeout=_request_timeout,
|
|
253
|
-
body=body)
|
|
254
|
-
|
|
255
|
-
def DELETE(self, url, headers=None, query_params=None, body=None,
|
|
256
|
-
_preload_content=True, _request_timeout=None):
|
|
257
|
-
return self.request("DELETE", url,
|
|
258
|
-
headers=headers,
|
|
259
|
-
query_params=query_params,
|
|
260
|
-
_preload_content=_preload_content,
|
|
261
|
-
_request_timeout=_request_timeout,
|
|
262
|
-
body=body)
|
|
263
|
-
|
|
264
|
-
def POST(self, url, headers=None, query_params=None, post_params=None,
|
|
265
|
-
body=None, _preload_content=True, _request_timeout=None):
|
|
266
|
-
return self.request("POST", url,
|
|
267
|
-
headers=headers,
|
|
268
|
-
query_params=query_params,
|
|
269
|
-
post_params=post_params,
|
|
270
|
-
_preload_content=_preload_content,
|
|
271
|
-
_request_timeout=_request_timeout,
|
|
272
|
-
body=body)
|
|
273
|
-
|
|
274
|
-
def PUT(self, url, headers=None, query_params=None, post_params=None,
|
|
275
|
-
body=None, _preload_content=True, _request_timeout=None):
|
|
276
|
-
return self.request("PUT", url,
|
|
277
|
-
headers=headers,
|
|
278
|
-
query_params=query_params,
|
|
279
|
-
post_params=post_params,
|
|
280
|
-
_preload_content=_preload_content,
|
|
281
|
-
_request_timeout=_request_timeout,
|
|
282
|
-
body=body)
|
|
283
|
-
|
|
284
|
-
def PATCH(self, url, headers=None, query_params=None, post_params=None,
|
|
285
|
-
body=None, _preload_content=True, _request_timeout=None):
|
|
286
|
-
return self.request("PATCH", url,
|
|
287
|
-
headers=headers,
|
|
288
|
-
query_params=query_params,
|
|
289
|
-
post_params=post_params,
|
|
290
|
-
_preload_content=_preload_content,
|
|
291
|
-
_request_timeout=_request_timeout,
|
|
292
|
-
body=body)
|
|
258
|
+
return RESTResponse(r)
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.1
|
|
2
|
-
Name: pulp-python-client
|
|
3
|
-
Version: 3.12.4
|
|
4
|
-
Summary: Pulp 3 API
|
|
5
|
-
Home-page:
|
|
6
|
-
Author: Pulp Team
|
|
7
|
-
Author-email: pulp-list@redhat.com
|
|
8
|
-
License: GPLv2+
|
|
9
|
-
Keywords: pulp,pulpcore,client,Pulp 3 API
|
|
10
|
-
Requires-Python: >=3.4
|
|
11
|
-
Requires-Dist: urllib3>=1.15
|
|
12
|
-
Requires-Dist: six>=1.10
|
|
13
|
-
Requires-Dist: certifi
|
|
14
|
-
Requires-Dist: python-dateutil
|
|
15
|
-
|
|
16
|
-
Fetch, Upload, Organize, and Distribute Software Packages # noqa: E501
|
|
17
|
-
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
pulpcore/__init__.py,sha256=QDJyS5jtJnGFsSuOx43ZvLBCOrHImm8NrZk5f9URWdk,75
|
|
2
|
-
pulpcore/client/__init__.py,sha256=QDJyS5jtJnGFsSuOx43ZvLBCOrHImm8NrZk5f9URWdk,75
|
|
3
|
-
pulpcore/client/pulp_python/__init__.py,sha256=QhyFVJWIgKvt8FmkK1uU_m4C-XPqdIzIQ20SNE3nV18,5892
|
|
4
|
-
pulpcore/client/pulp_python/api_client.py,sha256=oCLe4uVIoQNUmZmQ6B94Lg4bCO97lVaRONyFTbeP2U4,26290
|
|
5
|
-
pulpcore/client/pulp_python/configuration.py,sha256=zebmHTcB1AXX2eF-E0EczElq0nd7ZYviVK_GzT5AfJ0,13990
|
|
6
|
-
pulpcore/client/pulp_python/exceptions.py,sha256=4P8pBnEQ5hqaudJJMdmM57YfxTTRFcvkQ86GsvtKNEs,3769
|
|
7
|
-
pulpcore/client/pulp_python/rest.py,sha256=LT9W8ZNtZbFDfYEEqBWcQ70vp8XfJLiN2TtKyozgk4U,12314
|
|
8
|
-
pulpcore/client/pulp_python/api/__init__.py,sha256=Kevd065wwgBI2gr_HXjcVAcTSqLHvBS_VAYlQkbNAYU,909
|
|
9
|
-
pulpcore/client/pulp_python/api/content_packages_api.py,sha256=mfB0jA9QtwLFHOANim2qhrD2Z3Kgn2qopOppi2Rr50w,50492
|
|
10
|
-
pulpcore/client/pulp_python/api/distributions_pypi_api.py,sha256=Tw5ofoYCi5ZKbCACyShlOKvpwSax-6Bnw2LLP8kVja4,86535
|
|
11
|
-
pulpcore/client/pulp_python/api/publications_pypi_api.py,sha256=qSHF1-fMgBYHrwG7yLX1Jzab8C7mwsrK2ykFGnU4wyE,56966
|
|
12
|
-
pulpcore/client/pulp_python/api/pypi_api.py,sha256=ce97kpSZBhTIKsQx0_k3AgA17f7QAkJ3pqoG-Y_dH-o,6640
|
|
13
|
-
pulpcore/client/pulp_python/api/pypi_legacy_api.py,sha256=RmvbEF-YqIikUksTaZ-Peao0T0-4jrvx922Wg7B8OZw,9226
|
|
14
|
-
pulpcore/client/pulp_python/api/pypi_metadata_api.py,sha256=EQlEc5dArAiWtYYrCo8veR9sQve1bkNzepcIwCXIu_g,7605
|
|
15
|
-
pulpcore/client/pulp_python/api/pypi_simple_api.py,sha256=vaMDnI3Oqi0JJCnRwuQPDYNUbKmm4ktbtTD2aPM7RVY,21506
|
|
16
|
-
pulpcore/client/pulp_python/api/remotes_python_api.py,sha256=1oUROFbKeHCuhNGxYEDynDbtrN8uNhLiINtptqpJdb8,96024
|
|
17
|
-
pulpcore/client/pulp_python/api/repositories_python_api.py,sha256=xs8PY1FLPo4neNESipQMh1jDZ_itVoYdm6DkDh8PmeM,101442
|
|
18
|
-
pulpcore/client/pulp_python/api/repositories_python_versions_api.py,sha256=Z_nwOghy9jqQWkEq_QN4usmui5nwrIroQQNwFuIEbuo,34775
|
|
19
|
-
pulpcore/client/pulp_python/models/__init__.py,sha256=iao4RoTwk18uJVWr-e0jd2KA4bQWnTSBcAPsFUaoWeA,4542
|
|
20
|
-
pulpcore/client/pulp_python/models/async_operation_response.py,sha256=I7rVENGhKiRyMqQ_XnGsH0gPYb2wEh1tpgQ2AxoZvgE,3575
|
|
21
|
-
pulpcore/client/pulp_python/models/content_summary_response.py,sha256=p5puVCEez70e-HkCTlUccZ7ND-UfFkcwg0cO4P1I9rQ,5302
|
|
22
|
-
pulpcore/client/pulp_python/models/exclude_platforms_enum.py,sha256=pBOeomv14HntYotXCW13BB8hvUZXc-A_xGtBLz0sETo,2908
|
|
23
|
-
pulpcore/client/pulp_python/models/my_permissions_response.py,sha256=Lh8sQBb7C526uAR22i2xGjaxjpD4HuQJ6LI0yZ0ZdnQ,3644
|
|
24
|
-
pulpcore/client/pulp_python/models/nested_role.py,sha256=ecOL7IICk8N8PkFIL_DXRTcPzb4FAneT4zJnvklk5jU,4859
|
|
25
|
-
pulpcore/client/pulp_python/models/nested_role_response.py,sha256=TMYX2A9fmc18JKcz_D7ZdA7-JtE75gS8d8AcvsgrecI,4749
|
|
26
|
-
pulpcore/client/pulp_python/models/object_roles_response.py,sha256=1dPNuLGTl68vKbdvftzjCIsgC-ARKuEWaR1Li4UgEDU,3547
|
|
27
|
-
pulpcore/client/pulp_python/models/package_metadata_response.py,sha256=VwwmNNuPDKiLZnho9dLDoZqJZcZjF245ksOmHEGR6RU,6412
|
|
28
|
-
pulpcore/client/pulp_python/models/package_types_enum.py,sha256=GJHD6pglj10qyB4Ap-mPbFzR5TO7TRXlvR0TbspzXoU,3093
|
|
29
|
-
pulpcore/client/pulp_python/models/package_upload.py,sha256=nZymY1TmC2x1E2YFNZfTyXDLR8N5vOhndK3EIXFGM4E,6276
|
|
30
|
-
pulpcore/client/pulp_python/models/package_upload_task_response.py,sha256=DyocWJBf2OUUuomRIlIBVyhLJBrcXsw6V_KOW9qpo3Y,4984
|
|
31
|
-
pulpcore/client/pulp_python/models/paginated_repository_version_response_list.py,sha256=IMzcMPg2LP8HZNy4G2Z2P5elpr9-NkC08hBdrav-sAI,5990
|
|
32
|
-
pulpcore/client/pulp_python/models/paginatedpython_python_distribution_response_list.py,sha256=cKnKaCTcRl68iCARZfAmoSQCmyPzEKwuizvGM8Abm4s,6151
|
|
33
|
-
pulpcore/client/pulp_python/models/paginatedpython_python_package_content_response_list.py,sha256=CQiMkR1cLlI1vFKL6felc6DEDIaOOMQJ6NlWdHydUgE,6197
|
|
34
|
-
pulpcore/client/pulp_python/models/paginatedpython_python_publication_response_list.py,sha256=uOLbzeu4ruUkvN-3gt3YpvSAXv0H9El87kFkSlJlOcI,6128
|
|
35
|
-
pulpcore/client/pulp_python/models/paginatedpython_python_remote_response_list.py,sha256=PrIFucl1vzjajOL_hvfEGDQHR4DUjsTYNF18hkxm1Ok,6013
|
|
36
|
-
pulpcore/client/pulp_python/models/paginatedpython_python_repository_response_list.py,sha256=lQ_VSabGgUfTl7Z5kTdGV1sgKSPTLBI5r8whjBB6B0s,6105
|
|
37
|
-
pulpcore/client/pulp_python/models/patchedpython_python_distribution.py,sha256=14hsCKjn6gvvUz20b_sW7Z8rxpVIBbKb0K3dabLmWt4,11314
|
|
38
|
-
pulpcore/client/pulp_python/models/patchedpython_python_remote.py,sha256=xQ0lnzjHajhglcLWUNNmJkK6lNqOVe0TGi3A2EIFT8o,34026
|
|
39
|
-
pulpcore/client/pulp_python/models/patchedpython_python_repository.py,sha256=laidxfBKqEm2-LNTm7YsMl8_JMrAgiOmT21pXIW2ujw,8968
|
|
40
|
-
pulpcore/client/pulp_python/models/policy_enum.py,sha256=73sYQjy3uC2cxirdImyK1VIZtivP3ZdoGjVwzlXP9vc,2862
|
|
41
|
-
pulpcore/client/pulp_python/models/python_bander_remote.py,sha256=MeYhjtFxH7ffQpv7c0_y99yofNlrNHYna_wzjJui2Mg,6771
|
|
42
|
-
pulpcore/client/pulp_python/models/python_python_distribution.py,sha256=xYjloBXTKGhXyvxh83zPkjzZb7paFEuccE9hSJyFrhQ,11347
|
|
43
|
-
pulpcore/client/pulp_python/models/python_python_distribution_response.py,sha256=Rj0331jI6bIlicSDv2aAcqTxyd3TcAHyVtThLvLoNzY,17104
|
|
44
|
-
pulpcore/client/pulp_python/models/python_python_package_content.py,sha256=5wr0-FGzi8as0pSVBYHIoqfBxSONPuBQUMdI5VL5paA,30771
|
|
45
|
-
pulpcore/client/pulp_python/models/python_python_package_content_response.py,sha256=gUYNqwYASUTSmZjgYQ8Nin4KvQ82BznwDMmKuBP11wY,34688
|
|
46
|
-
pulpcore/client/pulp_python/models/python_python_publication.py,sha256=WTrDUV3q7pTf-cI7LTTrv_OQz0xuqAqSHVc8fTbnzb4,4488
|
|
47
|
-
pulpcore/client/pulp_python/models/python_python_publication_response.py,sha256=1LZAakOiz7vWIAYaPx2HElWlKGxpx7WdcQCEMcqpWoI,9417
|
|
48
|
-
pulpcore/client/pulp_python/models/python_python_remote.py,sha256=5PxRjJiPtuMHsvzwv1IkVHm3T78ftQSnY3rpdEearF0,33549
|
|
49
|
-
pulpcore/client/pulp_python/models/python_python_remote_response.py,sha256=Ro4iCWSV_sw2bLjfYFRcGXRKU5ozaEeAUMBf3-R041w,31743
|
|
50
|
-
pulpcore/client/pulp_python/models/python_python_remote_response_hidden_fields.py,sha256=FMQnJB2ReyO6XAUzui-KVDsXvh5-k_Xu5mVLfpPXmfM,4495
|
|
51
|
-
pulpcore/client/pulp_python/models/python_python_repository.py,sha256=OleE3896uKYswXkzmuNdXVQwr9f-oqNyp6YsrDC6vmo,8926
|
|
52
|
-
pulpcore/client/pulp_python/models/python_python_repository_response.py,sha256=9gO3vzVxZ18pLKIPThFSvY5-tkereTparsIIPAGoZZI,14191
|
|
53
|
-
pulpcore/client/pulp_python/models/repair.py,sha256=bbqKUW0PEkU439CTemJqfDGc46y6GNMSkRiUrfYZy34,3820
|
|
54
|
-
pulpcore/client/pulp_python/models/repository_add_remove_content.py,sha256=kIKRNyasPNB7OpvdgItkj4du9vWGU2xJoMeORzr_jdc,6381
|
|
55
|
-
pulpcore/client/pulp_python/models/repository_sync_url.py,sha256=kVBwS5dytzGac0I9pAHQt4s-XzNduB4wKQ8Vvp9PBk8,4484
|
|
56
|
-
pulpcore/client/pulp_python/models/repository_version_response.py,sha256=9o8tyw72NTK4TYfhES3VQfy4WlUpz-rId0GKpCLDJts,9975
|
|
57
|
-
pulpcore/client/pulp_python/models/set_label.py,sha256=YgHWKSUcjKD3F2NL5rt0QiD3ucEDCB-uyFG-hI9GOms,4427
|
|
58
|
-
pulpcore/client/pulp_python/models/set_label_response.py,sha256=n0PkgGraiIISAl2UcCTiRUu5NaiEfbPeBoMgPbD02ss,4288
|
|
59
|
-
pulpcore/client/pulp_python/models/summary_response.py,sha256=tnsbMSIsJ7Wn3TxKOFYPNgwutne1jy6Vx-aaOZejiRA,5498
|
|
60
|
-
pulpcore/client/pulp_python/models/unset_label.py,sha256=jOchl5kHsTLqXAI6TSlm3qydKvjrMLusScLEEybe-8A,3896
|
|
61
|
-
pulpcore/client/pulp_python/models/unset_label_response.py,sha256=zz9WS1LOXfadx_kZ3MEhQE0ipzN_6zSvVLIRHt3Yn1g,4346
|
|
62
|
-
pulp_python_client-3.12.4.dist-info/METADATA,sha256=VNkjzG6xqox_bdsme1CX9ecKFf6e-3SqtJyiMIwae5Y,419
|
|
63
|
-
pulp_python_client-3.12.4.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
|
|
64
|
-
pulp_python_client-3.12.4.dist-info/top_level.txt,sha256=v1J0AeNxNhm8YE5-xQe1G1YbfoMRZ_u9DAg_Gi7omeY,9
|
|
65
|
-
pulp_python_client-3.12.4.dist-info/RECORD,,
|