pulp-python-client 3.17.1__py3-none-any.whl → 3.19.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.

Files changed (47) hide show
  1. pulp_python_client-3.19.0.dist-info/METADATA +287 -0
  2. {pulp_python_client-3.17.1.dist-info → pulp_python_client-3.19.0.dist-info}/RECORD +46 -46
  3. pulpcore/client/pulp_python/__init__.py +121 -59
  4. pulpcore/client/pulp_python/api/content_packages_api.py +802 -60
  5. pulpcore/client/pulp_python/api_client.py +6 -2
  6. pulpcore/client/pulp_python/configuration.py +10 -3
  7. pulpcore/client/pulp_python/exceptions.py +17 -0
  8. pulpcore/client/pulp_python/models/async_operation_response.py +8 -0
  9. pulpcore/client/pulp_python/models/content_summary_response.py +8 -0
  10. pulpcore/client/pulp_python/models/my_permissions_response.py +8 -0
  11. pulpcore/client/pulp_python/models/nested_role.py +8 -0
  12. pulpcore/client/pulp_python/models/nested_role_response.py +8 -0
  13. pulpcore/client/pulp_python/models/object_roles_response.py +8 -0
  14. pulpcore/client/pulp_python/models/package_metadata_response.py +10 -2
  15. pulpcore/client/pulp_python/models/package_upload_task_response.py +8 -0
  16. pulpcore/client/pulp_python/models/paginated_repository_version_response_list.py +8 -10
  17. pulpcore/client/pulp_python/models/paginatedpython_python_distribution_response_list.py +8 -10
  18. pulpcore/client/pulp_python/models/paginatedpython_python_package_content_response_list.py +8 -10
  19. pulpcore/client/pulp_python/models/paginatedpython_python_publication_response_list.py +8 -10
  20. pulpcore/client/pulp_python/models/paginatedpython_python_remote_response_list.py +8 -10
  21. pulpcore/client/pulp_python/models/paginatedpython_python_repository_response_list.py +8 -10
  22. pulpcore/client/pulp_python/models/patchedpython_python_distribution.py +8 -0
  23. pulpcore/client/pulp_python/models/patchedpython_python_remote.py +9 -1
  24. pulpcore/client/pulp_python/models/patchedpython_python_repository.py +10 -2
  25. pulpcore/client/pulp_python/models/python_python_distribution.py +8 -0
  26. pulpcore/client/pulp_python/models/python_python_distribution_response.py +8 -0
  27. pulpcore/client/pulp_python/models/python_python_package_content_response.py +23 -11
  28. pulpcore/client/pulp_python/models/python_python_publication.py +8 -0
  29. pulpcore/client/pulp_python/models/python_python_publication_response.py +8 -2
  30. pulpcore/client/pulp_python/models/python_python_remote.py +9 -1
  31. pulpcore/client/pulp_python/models/python_python_remote_response.py +9 -3
  32. pulpcore/client/pulp_python/models/python_python_remote_response_hidden_fields_inner.py +8 -0
  33. pulpcore/client/pulp_python/models/python_python_repository.py +10 -2
  34. pulpcore/client/pulp_python/models/python_python_repository_response.py +10 -3
  35. pulpcore/client/pulp_python/models/repair.py +8 -0
  36. pulpcore/client/pulp_python/models/repository_add_remove_content.py +8 -0
  37. pulpcore/client/pulp_python/models/repository_sync_url.py +8 -0
  38. pulpcore/client/pulp_python/models/repository_version_response.py +14 -2
  39. pulpcore/client/pulp_python/models/set_label.py +8 -0
  40. pulpcore/client/pulp_python/models/set_label_response.py +8 -0
  41. pulpcore/client/pulp_python/models/summary_response.py +8 -0
  42. pulpcore/client/pulp_python/models/unset_label.py +8 -0
  43. pulpcore/client/pulp_python/models/unset_label_response.py +8 -0
  44. pulpcore/client/pulp_python/rest.py +1 -0
  45. pulp_python_client-3.17.1.dist-info/METADATA +0 -17
  46. {pulp_python_client-3.17.1.dist-info → pulp_python_client-3.19.0.dist-info}/WHEEL +0 -0
  47. {pulp_python_client-3.17.1.dist-info → pulp_python_client-3.19.0.dist-info}/top_level.txt +0 -0
@@ -91,7 +91,7 @@ class ApiClient:
91
91
  self.default_headers[header_name] = header_value
92
92
  self.cookie = cookie
93
93
  # Set default User-Agent.
94
- self.user_agent = 'OpenAPI-Generator/3.17.1/python'
94
+ self.user_agent = 'OpenAPI-Generator/3.19.0/python'
95
95
  self.client_side_validation = configuration.client_side_validation
96
96
 
97
97
  def __enter__(self):
@@ -383,6 +383,10 @@ class ApiClient:
383
383
  else:
384
384
  obj_dict = obj.__dict__
385
385
 
386
+ if isinstance(obj_dict, list):
387
+ # here we handle instances that can either be a list or something else, and only became a real list by calling to_dict()
388
+ return self.sanitize_for_serialization(obj_dict)
389
+
386
390
  return {
387
391
  key: self.sanitize_for_serialization(val)
388
392
  for key, val in obj_dict.items()
@@ -518,7 +522,7 @@ class ApiClient:
518
522
  if k in collection_formats:
519
523
  collection_format = collection_formats[k]
520
524
  if collection_format == 'multi':
521
- new_params.extend((k, str(value)) for value in v)
525
+ new_params.extend((k, quote(str(value))) for value in v)
522
526
  else:
523
527
  if collection_format == 'ssv':
524
528
  delimiter = ' '
@@ -19,7 +19,7 @@ import logging
19
19
  from logging import FileHandler
20
20
  import multiprocessing
21
21
  import sys
22
- from typing import Any, ClassVar, Dict, List, Literal, Optional, TypedDict
22
+ from typing import Any, ClassVar, Dict, List, Literal, Optional, TypedDict, Union
23
23
  from typing_extensions import NotRequired, Self
24
24
 
25
25
  import urllib3
@@ -163,6 +163,8 @@ class Configuration:
163
163
  :param ssl_ca_cert: str - the path to a file of concatenated CA certificates
164
164
  in PEM format.
165
165
  :param retries: Number of retries for API requests.
166
+ :param ca_cert_data: verify the peer using concatenated CA certificate data
167
+ in PEM (str) or DER (bytes) format.
166
168
 
167
169
  :Example:
168
170
 
@@ -212,13 +214,14 @@ conf = pulpcore.client.pulp_python.Configuration(
212
214
  username: Optional[str]=None,
213
215
  password: Optional[str]=None,
214
216
  access_token: Optional[str]=None,
215
- server_index: Optional[int]=None,
217
+ server_index: Optional[int]=None,
216
218
  server_variables: Optional[ServerVariablesT]=None,
217
219
  server_operation_index: Optional[Dict[int, int]]=None,
218
220
  server_operation_variables: Optional[Dict[int, ServerVariablesT]]=None,
219
221
  ignore_operation_servers: bool=False,
220
222
  ssl_ca_cert: Optional[str]=None,
221
223
  retries: Optional[int] = None,
224
+ ca_cert_data: Optional[Union[str, bytes]] = None,
222
225
  *,
223
226
  debug: Optional[bool] = None,
224
227
  ) -> None:
@@ -296,6 +299,10 @@ conf = pulpcore.client.pulp_python.Configuration(
296
299
  self.ssl_ca_cert = ssl_ca_cert
297
300
  """Set this to customize the certificate file to verify the peer.
298
301
  """
302
+ self.ca_cert_data = ca_cert_data
303
+ """Set this to verify the peer using PEM (str) or DER (bytes)
304
+ certificate data.
305
+ """
299
306
  self.cert_file = None
300
307
  """client certificate file
301
308
  """
@@ -549,7 +556,7 @@ conf = pulpcore.client.pulp_python.Configuration(
549
556
  "OS: {env}\n"\
550
557
  "Python Version: {pyversion}\n"\
551
558
  "Version of the API: v3\n"\
552
- "SDK Package Version: 3.17.1".\
559
+ "SDK Package Version: 3.19.0".\
553
560
  format(env=sys.platform, pyversion=sys.version)
554
561
 
555
562
  def get_host_settings(self) -> List[HostSetting]:
@@ -151,6 +151,13 @@ class ApiException(OpenApiException):
151
151
  if http_resp.status == 404:
152
152
  raise NotFoundException(http_resp=http_resp, body=body, data=data)
153
153
 
154
+ # Added new conditions for 409 and 422
155
+ if http_resp.status == 409:
156
+ raise ConflictException(http_resp=http_resp, body=body, data=data)
157
+
158
+ if http_resp.status == 422:
159
+ raise UnprocessableEntityException(http_resp=http_resp, body=body, data=data)
160
+
154
161
  if 500 <= http_resp.status <= 599:
155
162
  raise ServiceException(http_resp=http_resp, body=body, data=data)
156
163
  raise ApiException(http_resp=http_resp, body=body, data=data)
@@ -189,6 +196,16 @@ class ServiceException(ApiException):
189
196
  pass
190
197
 
191
198
 
199
+ class ConflictException(ApiException):
200
+ """Exception for HTTP 409 Conflict."""
201
+ pass
202
+
203
+
204
+ class UnprocessableEntityException(ApiException):
205
+ """Exception for HTTP 422 Unprocessable Entity."""
206
+ pass
207
+
208
+
192
209
  def render_path(path_to_item):
193
210
  """Returns a string representation of a path"""
194
211
  result = ""
@@ -23,6 +23,14 @@ from typing import Any, ClassVar, Dict, List
23
23
  from typing import Optional, Set
24
24
  from typing_extensions import Self
25
25
 
26
+
27
+ class OneOf:
28
+ @staticmethod
29
+ def from_dict(obj, *args, **kwargs):
30
+ """Noop override to fix missing OneOf import/implementation."""
31
+ return obj
32
+
33
+
26
34
  class AsyncOperationResponse(BaseModel):
27
35
  """
28
36
  Serializer for asynchronous operations.
@@ -23,6 +23,14 @@ from typing import Any, ClassVar, Dict, List
23
23
  from typing import Optional, Set
24
24
  from typing_extensions import Self
25
25
 
26
+
27
+ class OneOf:
28
+ @staticmethod
29
+ def from_dict(obj, *args, **kwargs):
30
+ """Noop override to fix missing OneOf import/implementation."""
31
+ return obj
32
+
33
+
26
34
  class ContentSummaryResponse(BaseModel):
27
35
  """
28
36
  Serializer for the RepositoryVersion content summary
@@ -23,6 +23,14 @@ from typing import Any, ClassVar, Dict, List
23
23
  from typing import Optional, Set
24
24
  from typing_extensions import Self
25
25
 
26
+
27
+ class OneOf:
28
+ @staticmethod
29
+ def from_dict(obj, *args, **kwargs):
30
+ """Noop override to fix missing OneOf import/implementation."""
31
+ return obj
32
+
33
+
26
34
  class MyPermissionsResponse(BaseModel):
27
35
  """
28
36
  MyPermissionsResponse
@@ -24,6 +24,14 @@ from typing_extensions import Annotated
24
24
  from typing import Optional, Set
25
25
  from typing_extensions import Self
26
26
 
27
+
28
+ class OneOf:
29
+ @staticmethod
30
+ def from_dict(obj, *args, **kwargs):
31
+ """Noop override to fix missing OneOf import/implementation."""
32
+ return obj
33
+
34
+
27
35
  class NestedRole(BaseModel):
28
36
  """
29
37
  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.
@@ -23,6 +23,14 @@ from typing import Any, ClassVar, Dict, List, Optional
23
23
  from typing import Optional, Set
24
24
  from typing_extensions import Self
25
25
 
26
+
27
+ class OneOf:
28
+ @staticmethod
29
+ def from_dict(obj, *args, **kwargs):
30
+ """Noop override to fix missing OneOf import/implementation."""
31
+ return obj
32
+
33
+
26
34
  class NestedRoleResponse(BaseModel):
27
35
  """
28
36
  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.
@@ -24,6 +24,14 @@ from pulpcore.client.pulp_python.models.nested_role_response import NestedRoleRe
24
24
  from typing import Optional, Set
25
25
  from typing_extensions import Self
26
26
 
27
+
28
+ class OneOf:
29
+ @staticmethod
30
+ def from_dict(obj, *args, **kwargs):
31
+ """Noop override to fix missing OneOf import/implementation."""
32
+ return obj
33
+
34
+
27
35
  class ObjectRolesResponse(BaseModel):
28
36
  """
29
37
  ObjectRolesResponse
@@ -23,13 +23,21 @@ from typing import Any, ClassVar, Dict, List, Optional
23
23
  from typing import Optional, Set
24
24
  from typing_extensions import Self
25
25
 
26
+
27
+ class OneOf:
28
+ @staticmethod
29
+ def from_dict(obj, *args, **kwargs):
30
+ """Noop override to fix missing OneOf import/implementation."""
31
+ return obj
32
+
33
+
26
34
  class PackageMetadataResponse(BaseModel):
27
35
  """
28
36
  A Serializer for a package's metadata.
29
37
  """ # noqa: E501
30
38
  last_serial: StrictInt = Field(description="Cache value from last PyPI sync")
31
- info: Optional[Any] = Field(description="Core metadata of the package")
32
- releases: Optional[Any] = Field(description="List of all the releases of the package")
39
+ info: Optional[Any]
40
+ releases: Optional[Any]
33
41
  urls: Optional[Any]
34
42
  __properties: ClassVar[List[str]] = ["last_serial", "info", "releases", "urls"]
35
43
 
@@ -24,6 +24,14 @@ from typing import Any, ClassVar, Dict, List, Optional
24
24
  from typing import Optional, Set
25
25
  from typing_extensions import Self
26
26
 
27
+
28
+ class OneOf:
29
+ @staticmethod
30
+ def from_dict(obj, *args, **kwargs):
31
+ """Noop override to fix missing OneOf import/implementation."""
32
+ return obj
33
+
34
+
27
35
  class PackageUploadTaskResponse(BaseModel):
28
36
  """
29
37
  A Serializer for responding to a package upload task.
@@ -24,6 +24,14 @@ from pulpcore.client.pulp_python.models.repository_version_response import Repos
24
24
  from typing import Optional, Set
25
25
  from typing_extensions import Self
26
26
 
27
+
28
+ class OneOf:
29
+ @staticmethod
30
+ def from_dict(obj, *args, **kwargs):
31
+ """Noop override to fix missing OneOf import/implementation."""
32
+ return obj
33
+
34
+
27
35
  class PaginatedRepositoryVersionResponseList(BaseModel):
28
36
  """
29
37
  PaginatedRepositoryVersionResponseList
@@ -80,16 +88,6 @@ class PaginatedRepositoryVersionResponseList(BaseModel):
80
88
  if _item_results:
81
89
  _items.append(_item_results.to_dict())
82
90
  _dict['results'] = _items
83
- # set to None if next (nullable) is None
84
- # and model_fields_set contains the field
85
- if self.next is None and "next" in self.model_fields_set:
86
- _dict['next'] = None
87
-
88
- # set to None if previous (nullable) is None
89
- # and model_fields_set contains the field
90
- if self.previous is None and "previous" in self.model_fields_set:
91
- _dict['previous'] = None
92
-
93
91
  return _dict
94
92
 
95
93
  @classmethod
@@ -24,6 +24,14 @@ from pulpcore.client.pulp_python.models.python_python_distribution_response impo
24
24
  from typing import Optional, Set
25
25
  from typing_extensions import Self
26
26
 
27
+
28
+ class OneOf:
29
+ @staticmethod
30
+ def from_dict(obj, *args, **kwargs):
31
+ """Noop override to fix missing OneOf import/implementation."""
32
+ return obj
33
+
34
+
27
35
  class PaginatedpythonPythonDistributionResponseList(BaseModel):
28
36
  """
29
37
  PaginatedpythonPythonDistributionResponseList
@@ -80,16 +88,6 @@ class PaginatedpythonPythonDistributionResponseList(BaseModel):
80
88
  if _item_results:
81
89
  _items.append(_item_results.to_dict())
82
90
  _dict['results'] = _items
83
- # set to None if next (nullable) is None
84
- # and model_fields_set contains the field
85
- if self.next is None and "next" in self.model_fields_set:
86
- _dict['next'] = None
87
-
88
- # set to None if previous (nullable) is None
89
- # and model_fields_set contains the field
90
- if self.previous is None and "previous" in self.model_fields_set:
91
- _dict['previous'] = None
92
-
93
91
  return _dict
94
92
 
95
93
  @classmethod
@@ -24,6 +24,14 @@ from pulpcore.client.pulp_python.models.python_python_package_content_response i
24
24
  from typing import Optional, Set
25
25
  from typing_extensions import Self
26
26
 
27
+
28
+ class OneOf:
29
+ @staticmethod
30
+ def from_dict(obj, *args, **kwargs):
31
+ """Noop override to fix missing OneOf import/implementation."""
32
+ return obj
33
+
34
+
27
35
  class PaginatedpythonPythonPackageContentResponseList(BaseModel):
28
36
  """
29
37
  PaginatedpythonPythonPackageContentResponseList
@@ -80,16 +88,6 @@ class PaginatedpythonPythonPackageContentResponseList(BaseModel):
80
88
  if _item_results:
81
89
  _items.append(_item_results.to_dict())
82
90
  _dict['results'] = _items
83
- # set to None if next (nullable) is None
84
- # and model_fields_set contains the field
85
- if self.next is None and "next" in self.model_fields_set:
86
- _dict['next'] = None
87
-
88
- # set to None if previous (nullable) is None
89
- # and model_fields_set contains the field
90
- if self.previous is None and "previous" in self.model_fields_set:
91
- _dict['previous'] = None
92
-
93
91
  return _dict
94
92
 
95
93
  @classmethod
@@ -24,6 +24,14 @@ from pulpcore.client.pulp_python.models.python_python_publication_response impor
24
24
  from typing import Optional, Set
25
25
  from typing_extensions import Self
26
26
 
27
+
28
+ class OneOf:
29
+ @staticmethod
30
+ def from_dict(obj, *args, **kwargs):
31
+ """Noop override to fix missing OneOf import/implementation."""
32
+ return obj
33
+
34
+
27
35
  class PaginatedpythonPythonPublicationResponseList(BaseModel):
28
36
  """
29
37
  PaginatedpythonPythonPublicationResponseList
@@ -80,16 +88,6 @@ class PaginatedpythonPythonPublicationResponseList(BaseModel):
80
88
  if _item_results:
81
89
  _items.append(_item_results.to_dict())
82
90
  _dict['results'] = _items
83
- # set to None if next (nullable) is None
84
- # and model_fields_set contains the field
85
- if self.next is None and "next" in self.model_fields_set:
86
- _dict['next'] = None
87
-
88
- # set to None if previous (nullable) is None
89
- # and model_fields_set contains the field
90
- if self.previous is None and "previous" in self.model_fields_set:
91
- _dict['previous'] = None
92
-
93
91
  return _dict
94
92
 
95
93
  @classmethod
@@ -24,6 +24,14 @@ from pulpcore.client.pulp_python.models.python_python_remote_response import Pyt
24
24
  from typing import Optional, Set
25
25
  from typing_extensions import Self
26
26
 
27
+
28
+ class OneOf:
29
+ @staticmethod
30
+ def from_dict(obj, *args, **kwargs):
31
+ """Noop override to fix missing OneOf import/implementation."""
32
+ return obj
33
+
34
+
27
35
  class PaginatedpythonPythonRemoteResponseList(BaseModel):
28
36
  """
29
37
  PaginatedpythonPythonRemoteResponseList
@@ -80,16 +88,6 @@ class PaginatedpythonPythonRemoteResponseList(BaseModel):
80
88
  if _item_results:
81
89
  _items.append(_item_results.to_dict())
82
90
  _dict['results'] = _items
83
- # set to None if next (nullable) is None
84
- # and model_fields_set contains the field
85
- if self.next is None and "next" in self.model_fields_set:
86
- _dict['next'] = None
87
-
88
- # set to None if previous (nullable) is None
89
- # and model_fields_set contains the field
90
- if self.previous is None and "previous" in self.model_fields_set:
91
- _dict['previous'] = None
92
-
93
91
  return _dict
94
92
 
95
93
  @classmethod
@@ -24,6 +24,14 @@ from pulpcore.client.pulp_python.models.python_python_repository_response import
24
24
  from typing import Optional, Set
25
25
  from typing_extensions import Self
26
26
 
27
+
28
+ class OneOf:
29
+ @staticmethod
30
+ def from_dict(obj, *args, **kwargs):
31
+ """Noop override to fix missing OneOf import/implementation."""
32
+ return obj
33
+
34
+
27
35
  class PaginatedpythonPythonRepositoryResponseList(BaseModel):
28
36
  """
29
37
  PaginatedpythonPythonRepositoryResponseList
@@ -80,16 +88,6 @@ class PaginatedpythonPythonRepositoryResponseList(BaseModel):
80
88
  if _item_results:
81
89
  _items.append(_item_results.to_dict())
82
90
  _dict['results'] = _items
83
- # set to None if next (nullable) is None
84
- # and model_fields_set contains the field
85
- if self.next is None and "next" in self.model_fields_set:
86
- _dict['next'] = None
87
-
88
- # set to None if previous (nullable) is None
89
- # and model_fields_set contains the field
90
- if self.previous is None and "previous" in self.model_fields_set:
91
- _dict['previous'] = None
92
-
93
91
  return _dict
94
92
 
95
93
  @classmethod
@@ -24,6 +24,14 @@ from typing_extensions import Annotated
24
24
  from typing import Optional, Set
25
25
  from typing_extensions import Self
26
26
 
27
+
28
+ class OneOf:
29
+ @staticmethod
30
+ def from_dict(obj, *args, **kwargs):
31
+ """Noop override to fix missing OneOf import/implementation."""
32
+ return obj
33
+
34
+
27
35
  class PatchedpythonPythonDistribution(BaseModel):
28
36
  """
29
37
  Serializer for Pulp distributions for the Python type.
@@ -27,6 +27,14 @@ from pulpcore.client.pulp_python.models.policy_enum import PolicyEnum
27
27
  from typing import Optional, Set
28
28
  from typing_extensions import Self
29
29
 
30
+
31
+ class OneOf:
32
+ @staticmethod
33
+ def from_dict(obj, *args, **kwargs):
34
+ """Noop override to fix missing OneOf import/implementation."""
35
+ return obj
36
+
37
+
30
38
  class PatchedpythonPythonRemote(BaseModel):
31
39
  """
32
40
  A Serializer for PythonRemote.
@@ -43,7 +51,7 @@ class PatchedpythonPythonRemote(BaseModel):
43
51
  username: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="The username to be used for authentication when syncing.")
44
52
  password: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed.")
45
53
  pulp_labels: Optional[Dict[str, Optional[StrictStr]]] = None
46
- download_concurrency: Optional[Annotated[int, Field(strict=True, ge=1)]] = Field(default=None, description="Total number of simultaneous connections. If not set then the default value will be used.")
54
+ download_concurrency: Optional[StrictInt] = Field(default=None, description="Total number of simultaneous connections. If not set then the default value will be used.")
47
55
  max_retries: Optional[StrictInt] = Field(default=None, description="Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.")
48
56
  policy: Optional[PolicyEnum] = Field(default=None, description="The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'on_demand' is the default. * `immediate` - When syncing, download all metadata and content now. * `on_demand` - When syncing, download metadata, but do not download content now. Instead, download content as clients request it, and save it in Pulp to be served for future client requests. * `streamed` - When syncing, download metadata, but do not download content now. Instead,download content as clients request it, but never save it in Pulp. This causes future requests for that same content to have to be downloaded again.")
49
57
  total_timeout: Optional[Union[Annotated[float, Field(strict=True, ge=0.0)], Annotated[int, Field(strict=True, ge=0)]]] = Field(default=None, description="aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.")
@@ -18,12 +18,20 @@ import pprint
18
18
  import re # noqa: F401
19
19
  import json
20
20
 
21
- from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
21
+ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr
22
22
  from typing import Any, ClassVar, Dict, List, Optional
23
23
  from typing_extensions import Annotated
24
24
  from typing import Optional, Set
25
25
  from typing_extensions import Self
26
26
 
27
+
28
+ class OneOf:
29
+ @staticmethod
30
+ def from_dict(obj, *args, **kwargs):
31
+ """Noop override to fix missing OneOf import/implementation."""
32
+ return obj
33
+
34
+
27
35
  class PatchedpythonPythonRepository(BaseModel):
28
36
  """
29
37
  Serializer for Python Repositories.
@@ -31,7 +39,7 @@ class PatchedpythonPythonRepository(BaseModel):
31
39
  pulp_labels: Optional[Dict[str, Optional[StrictStr]]] = None
32
40
  name: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="A unique name for this repository.")
33
41
  description: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="An optional description.")
34
- retain_repo_versions: Optional[Annotated[int, Field(strict=True, ge=1)]] = Field(default=None, description="Retain X versions of the repository. Default is null which retains all versions.")
42
+ retain_repo_versions: Optional[StrictInt] = Field(default=None, description="Retain X versions of the repository. Default is null which retains all versions.")
35
43
  remote: Optional[StrictStr] = Field(default=None, description="An optional remote to use by default when syncing.")
36
44
  autopublish: Optional[StrictBool] = Field(default=False, description="Whether to automatically create publications for new repository versions, and update any distributions pointing to this repository.")
37
45
  __properties: ClassVar[List[str]] = ["pulp_labels", "name", "description", "retain_repo_versions", "remote", "autopublish"]
@@ -24,6 +24,14 @@ from typing_extensions import Annotated
24
24
  from typing import Optional, Set
25
25
  from typing_extensions import Self
26
26
 
27
+
28
+ class OneOf:
29
+ @staticmethod
30
+ def from_dict(obj, *args, **kwargs):
31
+ """Noop override to fix missing OneOf import/implementation."""
32
+ return obj
33
+
34
+
27
35
  class PythonPythonDistribution(BaseModel):
28
36
  """
29
37
  Serializer for Pulp distributions for the Python type.
@@ -24,6 +24,14 @@ from typing import Any, ClassVar, Dict, List, Optional
24
24
  from typing import Optional, Set
25
25
  from typing_extensions import Self
26
26
 
27
+
28
+ class OneOf:
29
+ @staticmethod
30
+ def from_dict(obj, *args, **kwargs):
31
+ """Noop override to fix missing OneOf import/implementation."""
32
+ return obj
33
+
34
+
27
35
  class PythonPythonDistributionResponse(BaseModel):
28
36
  """
29
37
  Serializer for Pulp distributions for the Python type.
@@ -24,6 +24,14 @@ from typing import Any, ClassVar, Dict, List, Optional
24
24
  from typing import Optional, Set
25
25
  from typing_extensions import Self
26
26
 
27
+
28
+ class OneOf:
29
+ @staticmethod
30
+ def from_dict(obj, *args, **kwargs):
31
+ """Noop override to fix missing OneOf import/implementation."""
32
+ return obj
33
+
34
+
27
35
  class PythonPythonPackageContentResponse(BaseModel):
28
36
  """
29
37
  A Serializer for PythonPackageContent.
@@ -33,6 +41,7 @@ class PythonPythonPackageContentResponse(BaseModel):
33
41
  pulp_created: Optional[datetime] = Field(default=None, description="Timestamp of creation.")
34
42
  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
43
  pulp_labels: Optional[Dict[str, Optional[StrictStr]]] = Field(default=None, description="A dictionary of arbitrary key/value pairs used to describe a specific Content instance.")
44
+ vuln_report: Optional[StrictStr] = None
36
45
  artifact: Optional[StrictStr] = Field(default=None, description="Artifact file representing the physical content")
37
46
  author: Optional[StrictStr] = Field(default=None, description="Text containing the author's name. Contact information can also be added, separated with newlines.")
38
47
  author_email: Optional[StrictStr] = Field(default=None, description="The author's e-mail address. ")
@@ -45,28 +54,28 @@ class PythonPythonPackageContentResponse(BaseModel):
45
54
  platform: Optional[StrictStr] = Field(default=None, description="A comma-separated list of platform specifications, summarizing the operating systems supported by the package.")
46
55
  summary: Optional[StrictStr] = Field(default=None, description="A one-line summary of what the package does.")
47
56
  version: Optional[StrictStr] = Field(default=None, description="The packages version number.")
48
- classifiers: Optional[Any] = Field(default=None, description="A JSON list containing classification values for a Python package.")
57
+ classifiers: Optional[Any] = None
49
58
  download_url: Optional[StrictStr] = Field(default=None, description="Legacy field denoting the URL from which this package can be downloaded.")
50
59
  supported_platform: Optional[StrictStr] = Field(default=None, description="Field to specify the OS and CPU for which the binary package was compiled. ")
51
60
  maintainer: Optional[StrictStr] = Field(default=None, description="The maintainer's name at a minimum; additional contact information may be provided.")
52
61
  maintainer_email: Optional[StrictStr] = Field(default=None, description="The maintainer's e-mail address.")
53
- obsoletes_dist: Optional[Any] = Field(default=None, description="A JSON list containing names of a distutils project's distribution which this distribution renders obsolete, meaning that the two projects should not be installed at the same time.")
62
+ obsoletes_dist: Optional[Any] = None
54
63
  project_url: Optional[StrictStr] = Field(default=None, description="A browsable URL for the project and a label for it, separated by a comma.")
55
- project_urls: Optional[Any] = Field(default=None, description="A dictionary of labels and URLs for the project.")
56
- provides_dist: Optional[Any] = Field(default=None, description="A JSON list containing names of a Distutils project which is contained within this distribution.")
57
- requires_external: Optional[Any] = Field(default=None, description="A JSON list containing some dependency in the system that the distribution is to be used.")
58
- requires_dist: Optional[Any] = Field(default=None, description="A JSON list containing names of some other distutils project required by this distribution.")
64
+ project_urls: Optional[Any] = None
65
+ provides_dist: Optional[Any] = None
66
+ requires_external: Optional[Any] = None
67
+ requires_dist: Optional[Any] = None
59
68
  requires_python: Optional[StrictStr] = Field(default=None, description="The Python version(s) that the distribution is guaranteed to be compatible with.")
60
- description_content_type: Optional[StrictStr] = Field(default=None, description="A string stating the markup syntax (if any) used in the distributions description, so that tools can intelligently render the description.")
61
- provides_extras: Optional[Any] = Field(default=None, description="A JSON list containing names of optional features provided by the package.")
62
- dynamic: Optional[Any] = Field(default=None, description="A JSON list containing names of other core metadata fields which are permitted to vary between sdist and bdist packages. Fields NOT marked dynamic MUST be the same between bdist and sdist.")
69
+ description_content_type: Optional[StrictStr] = Field(default=None, description="A string stating the markup syntax (if any) used in the distribution's description, so that tools can intelligently render the description.")
70
+ provides_extras: Optional[Any] = None
71
+ dynamic: Optional[Any] = None
63
72
  license_expression: Optional[StrictStr] = Field(default=None, description="Text string that is a valid SPDX license expression.")
64
- license_file: Optional[Any] = Field(default=None, description="A JSON list containing names of the paths to license-related files.")
73
+ license_file: Optional[Any] = None
65
74
  filename: Optional[StrictStr] = Field(default=None, description="The name of the distribution package, usually of the format: {distribution}-{version}(-{build tag})?-{python tag}-{abi tag}-{platform tag}.{packagetype}")
66
75
  packagetype: Optional[StrictStr] = Field(default=None, description="The type of the distribution package (e.g. sdist, bdist_wheel, bdist_egg, etc)")
67
76
  python_version: Optional[StrictStr] = Field(default=None, description="The tag that indicates which Python implementation or version the package requires.")
68
77
  sha256: Optional[StrictStr] = Field(default='', description="The SHA256 digest of this package.")
69
- __properties: ClassVar[List[str]] = ["pulp_href", "prn", "pulp_created", "pulp_last_updated", "pulp_labels", "artifact", "author", "author_email", "description", "home_page", "keywords", "license", "metadata_version", "name", "platform", "summary", "version", "classifiers", "download_url", "supported_platform", "maintainer", "maintainer_email", "obsoletes_dist", "project_url", "project_urls", "provides_dist", "requires_external", "requires_dist", "requires_python", "description_content_type", "provides_extras", "dynamic", "license_expression", "license_file", "filename", "packagetype", "python_version", "sha256"]
78
+ __properties: ClassVar[List[str]] = ["pulp_href", "prn", "pulp_created", "pulp_last_updated", "pulp_labels", "vuln_report", "artifact", "author", "author_email", "description", "home_page", "keywords", "license", "metadata_version", "name", "platform", "summary", "version", "classifiers", "download_url", "supported_platform", "maintainer", "maintainer_email", "obsoletes_dist", "project_url", "project_urls", "provides_dist", "requires_external", "requires_dist", "requires_python", "description_content_type", "provides_extras", "dynamic", "license_expression", "license_file", "filename", "packagetype", "python_version", "sha256"]
70
79
 
71
80
  model_config = ConfigDict(
72
81
  populate_by_name=True,
@@ -108,12 +117,14 @@ class PythonPythonPackageContentResponse(BaseModel):
108
117
  * OpenAPI `readOnly` fields are excluded.
109
118
  * OpenAPI `readOnly` fields are excluded.
110
119
  * OpenAPI `readOnly` fields are excluded.
120
+ * OpenAPI `readOnly` fields are excluded.
111
121
  """
112
122
  excluded_fields: Set[str] = set([
113
123
  "pulp_href",
114
124
  "prn",
115
125
  "pulp_created",
116
126
  "pulp_last_updated",
127
+ "vuln_report",
117
128
  "metadata_version",
118
129
  "name",
119
130
  "version",
@@ -189,6 +200,7 @@ class PythonPythonPackageContentResponse(BaseModel):
189
200
  "pulp_created": obj.get("pulp_created"),
190
201
  "pulp_last_updated": obj.get("pulp_last_updated"),
191
202
  "pulp_labels": obj.get("pulp_labels"),
203
+ "vuln_report": obj.get("vuln_report"),
192
204
  "artifact": obj.get("artifact"),
193
205
  "author": obj.get("author"),
194
206
  "author_email": obj.get("author_email"),
@@ -23,6 +23,14 @@ from typing import Any, ClassVar, Dict, List, Optional
23
23
  from typing import Optional, Set
24
24
  from typing_extensions import Self
25
25
 
26
+
27
+ class OneOf:
28
+ @staticmethod
29
+ def from_dict(obj, *args, **kwargs):
30
+ """Noop override to fix missing OneOf import/implementation."""
31
+ return obj
32
+
33
+
26
34
  class PythonPythonPublication(BaseModel):
27
35
  """
28
36
  A Serializer for PythonPublication.