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,505 +3,147 @@
|
|
|
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)
|
|
11
|
+
|
|
12
|
+
Do not edit the class manually.
|
|
13
|
+
""" # noqa: E501
|
|
12
14
|
|
|
13
15
|
|
|
16
|
+
from __future__ import annotations
|
|
14
17
|
import pprint
|
|
15
18
|
import re # noqa: F401
|
|
19
|
+
import json
|
|
16
20
|
|
|
17
|
-
import
|
|
18
|
-
|
|
19
|
-
from
|
|
20
|
-
|
|
21
|
+
from datetime import datetime
|
|
22
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
|
|
23
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
24
|
+
from typing import Optional, Set
|
|
25
|
+
from typing_extensions import Self
|
|
21
26
|
|
|
22
|
-
class PythonPythonDistributionResponse(
|
|
23
|
-
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
24
|
-
Ref: https://openapi-generator.tech
|
|
25
|
-
|
|
26
|
-
Do not edit the class manually.
|
|
27
|
-
"""
|
|
28
|
-
|
|
29
|
-
"""
|
|
30
|
-
Attributes:
|
|
31
|
-
openapi_types (dict): The key is attribute name
|
|
32
|
-
and the value is attribute type.
|
|
33
|
-
attribute_map (dict): The key is attribute name
|
|
34
|
-
and the value is json key in definition.
|
|
27
|
+
class PythonPythonDistributionResponse(BaseModel):
|
|
35
28
|
"""
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
def
|
|
73
|
-
"""PythonPythonDistributionResponse
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
self.
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
if
|
|
112
|
-
|
|
113
|
-
self.
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
if
|
|
117
|
-
|
|
118
|
-
self.
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
The Pulp Resource Name (PRN). # noqa: E501
|
|
157
|
-
|
|
158
|
-
:param prn: The prn of this PythonPythonDistributionResponse. # noqa: E501
|
|
159
|
-
:type: str
|
|
160
|
-
"""
|
|
161
|
-
|
|
162
|
-
self._prn = prn
|
|
163
|
-
|
|
164
|
-
@property
|
|
165
|
-
def pulp_created(self):
|
|
166
|
-
"""Gets the pulp_created of this PythonPythonDistributionResponse. # noqa: E501
|
|
167
|
-
|
|
168
|
-
Timestamp of creation. # noqa: E501
|
|
169
|
-
|
|
170
|
-
:return: The pulp_created of this PythonPythonDistributionResponse. # noqa: E501
|
|
171
|
-
:rtype: datetime
|
|
172
|
-
"""
|
|
173
|
-
return self._pulp_created
|
|
174
|
-
|
|
175
|
-
@pulp_created.setter
|
|
176
|
-
def pulp_created(self, pulp_created):
|
|
177
|
-
"""Sets the pulp_created of this PythonPythonDistributionResponse.
|
|
178
|
-
|
|
179
|
-
Timestamp of creation. # noqa: E501
|
|
180
|
-
|
|
181
|
-
:param pulp_created: The pulp_created of this PythonPythonDistributionResponse. # noqa: E501
|
|
182
|
-
:type: datetime
|
|
183
|
-
"""
|
|
184
|
-
|
|
185
|
-
self._pulp_created = pulp_created
|
|
186
|
-
|
|
187
|
-
@property
|
|
188
|
-
def pulp_last_updated(self):
|
|
189
|
-
"""Gets the pulp_last_updated of this PythonPythonDistributionResponse. # noqa: E501
|
|
190
|
-
|
|
191
|
-
Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same. # noqa: E501
|
|
192
|
-
|
|
193
|
-
:return: The pulp_last_updated of this PythonPythonDistributionResponse. # noqa: E501
|
|
194
|
-
:rtype: datetime
|
|
195
|
-
"""
|
|
196
|
-
return self._pulp_last_updated
|
|
197
|
-
|
|
198
|
-
@pulp_last_updated.setter
|
|
199
|
-
def pulp_last_updated(self, pulp_last_updated):
|
|
200
|
-
"""Sets the pulp_last_updated of this PythonPythonDistributionResponse.
|
|
201
|
-
|
|
202
|
-
Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same. # noqa: E501
|
|
203
|
-
|
|
204
|
-
:param pulp_last_updated: The pulp_last_updated of this PythonPythonDistributionResponse. # noqa: E501
|
|
205
|
-
:type: datetime
|
|
206
|
-
"""
|
|
207
|
-
|
|
208
|
-
self._pulp_last_updated = pulp_last_updated
|
|
209
|
-
|
|
210
|
-
@property
|
|
211
|
-
def base_path(self):
|
|
212
|
-
"""Gets the base_path of this PythonPythonDistributionResponse. # noqa: E501
|
|
213
|
-
|
|
214
|
-
The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") # noqa: E501
|
|
215
|
-
|
|
216
|
-
:return: The base_path of this PythonPythonDistributionResponse. # noqa: E501
|
|
217
|
-
:rtype: str
|
|
218
|
-
"""
|
|
219
|
-
return self._base_path
|
|
220
|
-
|
|
221
|
-
@base_path.setter
|
|
222
|
-
def base_path(self, base_path):
|
|
223
|
-
"""Sets the base_path of this PythonPythonDistributionResponse.
|
|
224
|
-
|
|
225
|
-
The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") # noqa: E501
|
|
226
|
-
|
|
227
|
-
:param base_path: The base_path of this PythonPythonDistributionResponse. # noqa: E501
|
|
228
|
-
:type: str
|
|
229
|
-
"""
|
|
230
|
-
if self.local_vars_configuration.client_side_validation and base_path is None: # noqa: E501
|
|
231
|
-
raise ValueError("Invalid value for `base_path`, must not be `None`") # noqa: E501
|
|
232
|
-
|
|
233
|
-
self._base_path = base_path
|
|
234
|
-
|
|
235
|
-
@property
|
|
236
|
-
def base_url(self):
|
|
237
|
-
"""Gets the base_url of this PythonPythonDistributionResponse. # noqa: E501
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
:return: The base_url of this PythonPythonDistributionResponse. # noqa: E501
|
|
241
|
-
:rtype: str
|
|
242
|
-
"""
|
|
243
|
-
return self._base_url
|
|
244
|
-
|
|
245
|
-
@base_url.setter
|
|
246
|
-
def base_url(self, base_url):
|
|
247
|
-
"""Sets the base_url of this PythonPythonDistributionResponse.
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
:param base_url: The base_url of this PythonPythonDistributionResponse. # noqa: E501
|
|
251
|
-
:type: str
|
|
252
|
-
"""
|
|
253
|
-
|
|
254
|
-
self._base_url = base_url
|
|
255
|
-
|
|
256
|
-
@property
|
|
257
|
-
def content_guard(self):
|
|
258
|
-
"""Gets the content_guard of this PythonPythonDistributionResponse. # noqa: E501
|
|
259
|
-
|
|
260
|
-
An optional content-guard. # noqa: E501
|
|
261
|
-
|
|
262
|
-
:return: The content_guard of this PythonPythonDistributionResponse. # noqa: E501
|
|
263
|
-
:rtype: str
|
|
264
|
-
"""
|
|
265
|
-
return self._content_guard
|
|
266
|
-
|
|
267
|
-
@content_guard.setter
|
|
268
|
-
def content_guard(self, content_guard):
|
|
269
|
-
"""Sets the content_guard of this PythonPythonDistributionResponse.
|
|
270
|
-
|
|
271
|
-
An optional content-guard. # noqa: E501
|
|
272
|
-
|
|
273
|
-
:param content_guard: The content_guard of this PythonPythonDistributionResponse. # noqa: E501
|
|
274
|
-
:type: str
|
|
275
|
-
"""
|
|
276
|
-
|
|
277
|
-
self._content_guard = content_guard
|
|
278
|
-
|
|
279
|
-
@property
|
|
280
|
-
def no_content_change_since(self):
|
|
281
|
-
"""Gets the no_content_change_since of this PythonPythonDistributionResponse. # noqa: E501
|
|
282
|
-
|
|
283
|
-
Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes. # noqa: E501
|
|
284
|
-
|
|
285
|
-
:return: The no_content_change_since of this PythonPythonDistributionResponse. # noqa: E501
|
|
286
|
-
:rtype: str
|
|
287
|
-
"""
|
|
288
|
-
return self._no_content_change_since
|
|
289
|
-
|
|
290
|
-
@no_content_change_since.setter
|
|
291
|
-
def no_content_change_since(self, no_content_change_since):
|
|
292
|
-
"""Sets the no_content_change_since of this PythonPythonDistributionResponse.
|
|
293
|
-
|
|
294
|
-
Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes. # noqa: E501
|
|
295
|
-
|
|
296
|
-
:param no_content_change_since: The no_content_change_since of this PythonPythonDistributionResponse. # noqa: E501
|
|
297
|
-
:type: str
|
|
298
|
-
"""
|
|
299
|
-
|
|
300
|
-
self._no_content_change_since = no_content_change_since
|
|
301
|
-
|
|
302
|
-
@property
|
|
303
|
-
def hidden(self):
|
|
304
|
-
"""Gets the hidden of this PythonPythonDistributionResponse. # noqa: E501
|
|
305
|
-
|
|
306
|
-
Whether this distribution should be shown in the content app. # noqa: E501
|
|
307
|
-
|
|
308
|
-
:return: The hidden of this PythonPythonDistributionResponse. # noqa: E501
|
|
309
|
-
:rtype: bool
|
|
310
|
-
"""
|
|
311
|
-
return self._hidden
|
|
312
|
-
|
|
313
|
-
@hidden.setter
|
|
314
|
-
def hidden(self, hidden):
|
|
315
|
-
"""Sets the hidden of this PythonPythonDistributionResponse.
|
|
316
|
-
|
|
317
|
-
Whether this distribution should be shown in the content app. # noqa: E501
|
|
318
|
-
|
|
319
|
-
:param hidden: The hidden of this PythonPythonDistributionResponse. # noqa: E501
|
|
320
|
-
:type: bool
|
|
321
|
-
"""
|
|
322
|
-
|
|
323
|
-
self._hidden = hidden
|
|
324
|
-
|
|
325
|
-
@property
|
|
326
|
-
def pulp_labels(self):
|
|
327
|
-
"""Gets the pulp_labels of this PythonPythonDistributionResponse. # noqa: E501
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
:return: The pulp_labels of this PythonPythonDistributionResponse. # noqa: E501
|
|
331
|
-
:rtype: dict(str, str)
|
|
332
|
-
"""
|
|
333
|
-
return self._pulp_labels
|
|
334
|
-
|
|
335
|
-
@pulp_labels.setter
|
|
336
|
-
def pulp_labels(self, pulp_labels):
|
|
337
|
-
"""Sets the pulp_labels of this PythonPythonDistributionResponse.
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
:param pulp_labels: The pulp_labels of this PythonPythonDistributionResponse. # noqa: E501
|
|
341
|
-
:type: dict(str, str)
|
|
342
|
-
"""
|
|
343
|
-
|
|
344
|
-
self._pulp_labels = pulp_labels
|
|
345
|
-
|
|
346
|
-
@property
|
|
347
|
-
def name(self):
|
|
348
|
-
"""Gets the name of this PythonPythonDistributionResponse. # noqa: E501
|
|
349
|
-
|
|
350
|
-
A unique name. Ex, `rawhide` and `stable`. # noqa: E501
|
|
351
|
-
|
|
352
|
-
:return: The name of this PythonPythonDistributionResponse. # noqa: E501
|
|
353
|
-
:rtype: str
|
|
354
|
-
"""
|
|
355
|
-
return self._name
|
|
356
|
-
|
|
357
|
-
@name.setter
|
|
358
|
-
def name(self, name):
|
|
359
|
-
"""Sets the name of this PythonPythonDistributionResponse.
|
|
360
|
-
|
|
361
|
-
A unique name. Ex, `rawhide` and `stable`. # noqa: E501
|
|
362
|
-
|
|
363
|
-
:param name: The name of this PythonPythonDistributionResponse. # noqa: E501
|
|
364
|
-
:type: str
|
|
365
|
-
"""
|
|
366
|
-
if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
|
|
367
|
-
raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
|
|
368
|
-
|
|
369
|
-
self._name = name
|
|
370
|
-
|
|
371
|
-
@property
|
|
372
|
-
def repository(self):
|
|
373
|
-
"""Gets the repository of this PythonPythonDistributionResponse. # noqa: E501
|
|
374
|
-
|
|
375
|
-
The latest RepositoryVersion for this Repository will be served. # noqa: E501
|
|
376
|
-
|
|
377
|
-
:return: The repository of this PythonPythonDistributionResponse. # noqa: E501
|
|
378
|
-
:rtype: str
|
|
379
|
-
"""
|
|
380
|
-
return self._repository
|
|
381
|
-
|
|
382
|
-
@repository.setter
|
|
383
|
-
def repository(self, repository):
|
|
384
|
-
"""Sets the repository of this PythonPythonDistributionResponse.
|
|
385
|
-
|
|
386
|
-
The latest RepositoryVersion for this Repository will be served. # noqa: E501
|
|
387
|
-
|
|
388
|
-
:param repository: The repository of this PythonPythonDistributionResponse. # noqa: E501
|
|
389
|
-
:type: str
|
|
390
|
-
"""
|
|
391
|
-
|
|
392
|
-
self._repository = repository
|
|
393
|
-
|
|
394
|
-
@property
|
|
395
|
-
def publication(self):
|
|
396
|
-
"""Gets the publication of this PythonPythonDistributionResponse. # noqa: E501
|
|
397
|
-
|
|
398
|
-
Publication to be served # noqa: E501
|
|
399
|
-
|
|
400
|
-
:return: The publication of this PythonPythonDistributionResponse. # noqa: E501
|
|
401
|
-
:rtype: str
|
|
402
|
-
"""
|
|
403
|
-
return self._publication
|
|
404
|
-
|
|
405
|
-
@publication.setter
|
|
406
|
-
def publication(self, publication):
|
|
407
|
-
"""Sets the publication of this PythonPythonDistributionResponse.
|
|
408
|
-
|
|
409
|
-
Publication to be served # noqa: E501
|
|
410
|
-
|
|
411
|
-
:param publication: The publication of this PythonPythonDistributionResponse. # noqa: E501
|
|
412
|
-
:type: str
|
|
413
|
-
"""
|
|
414
|
-
|
|
415
|
-
self._publication = publication
|
|
416
|
-
|
|
417
|
-
@property
|
|
418
|
-
def allow_uploads(self):
|
|
419
|
-
"""Gets the allow_uploads of this PythonPythonDistributionResponse. # noqa: E501
|
|
420
|
-
|
|
421
|
-
Allow packages to be uploaded to this index. # noqa: E501
|
|
422
|
-
|
|
423
|
-
:return: The allow_uploads of this PythonPythonDistributionResponse. # noqa: E501
|
|
424
|
-
:rtype: bool
|
|
425
|
-
"""
|
|
426
|
-
return self._allow_uploads
|
|
427
|
-
|
|
428
|
-
@allow_uploads.setter
|
|
429
|
-
def allow_uploads(self, allow_uploads):
|
|
430
|
-
"""Sets the allow_uploads of this PythonPythonDistributionResponse.
|
|
431
|
-
|
|
432
|
-
Allow packages to be uploaded to this index. # noqa: E501
|
|
433
|
-
|
|
434
|
-
:param allow_uploads: The allow_uploads of this PythonPythonDistributionResponse. # noqa: E501
|
|
435
|
-
:type: bool
|
|
436
|
-
"""
|
|
437
|
-
|
|
438
|
-
self._allow_uploads = allow_uploads
|
|
439
|
-
|
|
440
|
-
@property
|
|
441
|
-
def remote(self):
|
|
442
|
-
"""Gets the remote of this PythonPythonDistributionResponse. # noqa: E501
|
|
443
|
-
|
|
444
|
-
Remote that can be used to fetch content when using pull-through caching. # noqa: E501
|
|
445
|
-
|
|
446
|
-
:return: The remote of this PythonPythonDistributionResponse. # noqa: E501
|
|
447
|
-
:rtype: str
|
|
448
|
-
"""
|
|
449
|
-
return self._remote
|
|
450
|
-
|
|
451
|
-
@remote.setter
|
|
452
|
-
def remote(self, remote):
|
|
453
|
-
"""Sets the remote of this PythonPythonDistributionResponse.
|
|
454
|
-
|
|
455
|
-
Remote that can be used to fetch content when using pull-through caching. # noqa: E501
|
|
456
|
-
|
|
457
|
-
:param remote: The remote of this PythonPythonDistributionResponse. # noqa: E501
|
|
458
|
-
:type: str
|
|
459
|
-
"""
|
|
460
|
-
|
|
461
|
-
self._remote = remote
|
|
462
|
-
|
|
463
|
-
def to_dict(self):
|
|
464
|
-
"""Returns the model properties as a dict"""
|
|
465
|
-
result = {}
|
|
466
|
-
|
|
467
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
|
468
|
-
value = getattr(self, attr)
|
|
469
|
-
if isinstance(value, list):
|
|
470
|
-
result[attr] = list(map(
|
|
471
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
472
|
-
value
|
|
473
|
-
))
|
|
474
|
-
elif hasattr(value, "to_dict"):
|
|
475
|
-
result[attr] = value.to_dict()
|
|
476
|
-
elif isinstance(value, dict):
|
|
477
|
-
result[attr] = dict(map(
|
|
478
|
-
lambda item: (item[0], item[1].to_dict())
|
|
479
|
-
if hasattr(item[1], "to_dict") else item,
|
|
480
|
-
value.items()
|
|
481
|
-
))
|
|
482
|
-
else:
|
|
483
|
-
result[attr] = value
|
|
484
|
-
|
|
485
|
-
return result
|
|
486
|
-
|
|
487
|
-
def to_str(self):
|
|
488
|
-
"""Returns the string representation of the model"""
|
|
489
|
-
return pprint.pformat(self.to_dict())
|
|
490
|
-
|
|
491
|
-
def __repr__(self):
|
|
492
|
-
"""For `print` and `pprint`"""
|
|
493
|
-
return self.to_str()
|
|
494
|
-
|
|
495
|
-
def __eq__(self, other):
|
|
496
|
-
"""Returns true if both objects are equal"""
|
|
497
|
-
if not isinstance(other, PythonPythonDistributionResponse):
|
|
498
|
-
return False
|
|
499
|
-
|
|
500
|
-
return self.to_dict() == other.to_dict()
|
|
29
|
+
Serializer for Pulp distributions for the Python type.
|
|
30
|
+
""" # noqa: E501
|
|
31
|
+
pulp_href: Optional[StrictStr] = None
|
|
32
|
+
prn: Optional[StrictStr] = Field(default=None, description="The Pulp Resource Name (PRN).")
|
|
33
|
+
pulp_created: Optional[datetime] = Field(default=None, description="Timestamp of creation.")
|
|
34
|
+
pulp_last_updated: Optional[datetime] = Field(default=None, description="Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.")
|
|
35
|
+
base_path: StrictStr = Field(description="The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")")
|
|
36
|
+
base_url: Optional[StrictStr] = None
|
|
37
|
+
content_guard: Optional[StrictStr] = Field(default=None, description="An optional content-guard.")
|
|
38
|
+
no_content_change_since: Optional[StrictStr] = Field(default=None, description="Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.")
|
|
39
|
+
hidden: Optional[StrictBool] = Field(default=False, description="Whether this distribution should be shown in the content app.")
|
|
40
|
+
pulp_labels: Optional[Dict[str, Optional[StrictStr]]] = None
|
|
41
|
+
name: StrictStr = Field(description="A unique name. Ex, `rawhide` and `stable`.")
|
|
42
|
+
repository: Optional[StrictStr] = Field(default=None, description="The latest RepositoryVersion for this Repository will be served.")
|
|
43
|
+
publication: Optional[StrictStr] = Field(default=None, description="Publication to be served")
|
|
44
|
+
allow_uploads: Optional[StrictBool] = Field(default=True, description="Allow packages to be uploaded to this index.")
|
|
45
|
+
remote: Optional[StrictStr] = Field(default=None, description="Remote that can be used to fetch content when using pull-through caching.")
|
|
46
|
+
__properties: ClassVar[List[str]] = ["pulp_href", "prn", "pulp_created", "pulp_last_updated", "base_path", "base_url", "content_guard", "no_content_change_since", "hidden", "pulp_labels", "name", "repository", "publication", "allow_uploads", "remote"]
|
|
47
|
+
|
|
48
|
+
model_config = ConfigDict(
|
|
49
|
+
populate_by_name=True,
|
|
50
|
+
validate_assignment=True,
|
|
51
|
+
protected_namespaces=(),
|
|
52
|
+
)
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
def to_str(self) -> str:
|
|
56
|
+
"""Returns the string representation of the model using alias"""
|
|
57
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
58
|
+
|
|
59
|
+
def to_json(self) -> str:
|
|
60
|
+
"""Returns the JSON representation of the model using alias"""
|
|
61
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
62
|
+
return json.dumps(self.to_dict())
|
|
63
|
+
|
|
64
|
+
@classmethod
|
|
65
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
66
|
+
"""Create an instance of PythonPythonDistributionResponse from a JSON string"""
|
|
67
|
+
return cls.from_dict(json.loads(json_str))
|
|
68
|
+
|
|
69
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
70
|
+
"""Return the dictionary representation of the model using alias.
|
|
71
|
+
|
|
72
|
+
This has the following differences from calling pydantic's
|
|
73
|
+
`self.model_dump(by_alias=True)`:
|
|
74
|
+
|
|
75
|
+
* `None` is only added to the output dict for nullable fields that
|
|
76
|
+
were set at model initialization. Other fields with value `None`
|
|
77
|
+
are ignored.
|
|
78
|
+
* OpenAPI `readOnly` fields are excluded.
|
|
79
|
+
* OpenAPI `readOnly` fields are excluded.
|
|
80
|
+
* OpenAPI `readOnly` fields are excluded.
|
|
81
|
+
* OpenAPI `readOnly` fields are excluded.
|
|
82
|
+
* OpenAPI `readOnly` fields are excluded.
|
|
83
|
+
* OpenAPI `readOnly` fields are excluded.
|
|
84
|
+
"""
|
|
85
|
+
excluded_fields: Set[str] = set([
|
|
86
|
+
"pulp_href",
|
|
87
|
+
"prn",
|
|
88
|
+
"pulp_created",
|
|
89
|
+
"pulp_last_updated",
|
|
90
|
+
"base_url",
|
|
91
|
+
"no_content_change_since",
|
|
92
|
+
])
|
|
93
|
+
|
|
94
|
+
_dict = self.model_dump(
|
|
95
|
+
by_alias=True,
|
|
96
|
+
exclude=excluded_fields,
|
|
97
|
+
exclude_none=True,
|
|
98
|
+
)
|
|
99
|
+
# set to None if content_guard (nullable) is None
|
|
100
|
+
# and model_fields_set contains the field
|
|
101
|
+
if self.content_guard is None and "content_guard" in self.model_fields_set:
|
|
102
|
+
_dict['content_guard'] = None
|
|
103
|
+
|
|
104
|
+
# set to None if repository (nullable) is None
|
|
105
|
+
# and model_fields_set contains the field
|
|
106
|
+
if self.repository is None and "repository" in self.model_fields_set:
|
|
107
|
+
_dict['repository'] = None
|
|
108
|
+
|
|
109
|
+
# set to None if publication (nullable) is None
|
|
110
|
+
# and model_fields_set contains the field
|
|
111
|
+
if self.publication is None and "publication" in self.model_fields_set:
|
|
112
|
+
_dict['publication'] = None
|
|
113
|
+
|
|
114
|
+
# set to None if remote (nullable) is None
|
|
115
|
+
# and model_fields_set contains the field
|
|
116
|
+
if self.remote is None and "remote" in self.model_fields_set:
|
|
117
|
+
_dict['remote'] = None
|
|
118
|
+
|
|
119
|
+
return _dict
|
|
120
|
+
|
|
121
|
+
@classmethod
|
|
122
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
123
|
+
"""Create an instance of PythonPythonDistributionResponse from a dict"""
|
|
124
|
+
if obj is None:
|
|
125
|
+
return None
|
|
126
|
+
|
|
127
|
+
if not isinstance(obj, dict):
|
|
128
|
+
return cls.model_validate(obj)
|
|
129
|
+
|
|
130
|
+
_obj = cls.model_validate({
|
|
131
|
+
"pulp_href": obj.get("pulp_href"),
|
|
132
|
+
"prn": obj.get("prn"),
|
|
133
|
+
"pulp_created": obj.get("pulp_created"),
|
|
134
|
+
"pulp_last_updated": obj.get("pulp_last_updated"),
|
|
135
|
+
"base_path": obj.get("base_path"),
|
|
136
|
+
"base_url": obj.get("base_url"),
|
|
137
|
+
"content_guard": obj.get("content_guard"),
|
|
138
|
+
"no_content_change_since": obj.get("no_content_change_since"),
|
|
139
|
+
"hidden": obj.get("hidden") if obj.get("hidden") is not None else False,
|
|
140
|
+
"pulp_labels": obj.get("pulp_labels"),
|
|
141
|
+
"name": obj.get("name"),
|
|
142
|
+
"repository": obj.get("repository"),
|
|
143
|
+
"publication": obj.get("publication"),
|
|
144
|
+
"allow_uploads": obj.get("allow_uploads") if obj.get("allow_uploads") is not None else True,
|
|
145
|
+
"remote": obj.get("remote")
|
|
146
|
+
})
|
|
147
|
+
return _obj
|
|
501
148
|
|
|
502
|
-
def __ne__(self, other):
|
|
503
|
-
"""Returns true if both objects are not equal"""
|
|
504
|
-
if not isinstance(other, PythonPythonDistributionResponse):
|
|
505
|
-
return True
|
|
506
149
|
|
|
507
|
-
return self.to_dict() != other.to_dict()
|