pulp-python-client 3.18.0__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.18.0.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 +748 -6
  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 +8 -0
  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 -0
  17. pulpcore/client/pulp_python/models/paginatedpython_python_distribution_response_list.py +8 -0
  18. pulpcore/client/pulp_python/models/paginatedpython_python_package_content_response_list.py +8 -0
  19. pulpcore/client/pulp_python/models/paginatedpython_python_publication_response_list.py +8 -0
  20. pulpcore/client/pulp_python/models/paginatedpython_python_remote_response_list.py +8 -0
  21. pulpcore/client/pulp_python/models/paginatedpython_python_repository_response_list.py +8 -0
  22. pulpcore/client/pulp_python/models/patchedpython_python_distribution.py +8 -0
  23. pulpcore/client/pulp_python/models/patchedpython_python_remote.py +8 -0
  24. pulpcore/client/pulp_python/models/patchedpython_python_repository.py +8 -0
  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 +9 -1
  28. pulpcore/client/pulp_python/models/python_python_publication.py +8 -0
  29. pulpcore/client/pulp_python/models/python_python_publication_response.py +8 -0
  30. pulpcore/client/pulp_python/models/python_python_remote.py +8 -0
  31. pulpcore/client/pulp_python/models/python_python_remote_response.py +8 -0
  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 +8 -0
  34. pulpcore/client/pulp_python/models/python_python_repository_response.py +8 -0
  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 +8 -0
  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.18.0.dist-info/METADATA +0 -17
  46. {pulp_python_client-3.18.0.dist-info → pulp_python_client-3.19.0.dist-info}/WHEEL +0 -0
  47. {pulp_python_client-3.18.0.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.18.0/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.18.0".\
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,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 PackageMetadataResponse(BaseModel):
27
35
  """
28
36
  A Serializer for a package's metadata.
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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.
@@ -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 PatchedpythonPythonRepository(BaseModel):
28
36
  """
29
37
  Serializer for Python Repositories.
@@ -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.
@@ -58,7 +66,7 @@ class PythonPythonPackageContentResponse(BaseModel):
58
66
  requires_external: Optional[Any] = None
59
67
  requires_dist: Optional[Any] = None
60
68
  requires_python: Optional[StrictStr] = Field(default=None, description="The Python version(s) that the distribution is guaranteed to be compatible with.")
61
- 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.")
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.")
62
70
  provides_extras: Optional[Any] = None
63
71
  dynamic: Optional[Any] = None
64
72
  license_expression: Optional[StrictStr] = Field(default=None, description="Text string that is a valid SPDX license expression.")
@@ -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.
@@ -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 PythonPythonPublicationResponse(BaseModel):
28
36
  """
29
37
  A Serializer for PythonPublication.
@@ -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 PythonPythonRemote(BaseModel):
31
39
  """
32
40
  A Serializer for PythonRemote.
@@ -29,6 +29,14 @@ from pulpcore.client.pulp_python.models.python_python_remote_response_hidden_fie
29
29
  from typing import Optional, Set
30
30
  from typing_extensions import Self
31
31
 
32
+
33
+ class OneOf:
34
+ @staticmethod
35
+ def from_dict(obj, *args, **kwargs):
36
+ """Noop override to fix missing OneOf import/implementation."""
37
+ return obj
38
+
39
+
32
40
  class PythonPythonRemoteResponse(BaseModel):
33
41
  """
34
42
  A Serializer for PythonRemote.
@@ -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 PythonPythonRemoteResponseHiddenFieldsInner(BaseModel):
27
35
  """
28
36
  PythonPythonRemoteResponseHiddenFieldsInner
@@ -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 PythonPythonRepository(BaseModel):
28
36
  """
29
37
  Serializer for Python Repositories.
@@ -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 PythonPythonRepositoryResponse(BaseModel):
28
36
  """
29
37
  Serializer for Python Repositories.
@@ -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 Repair(BaseModel):
27
35
  """
28
36
  Repair
@@ -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 RepositoryAddRemoveContent(BaseModel):
28
36
  """
29
37
  Base serializer for use with [pulpcore.app.models.Model][] This ensures that all Serializers provide values for the 'pulp_href` field. The class provides a default for the ``ref_name`` attribute in the ModelSerializers's ``Meta`` class. This ensures that the OpenAPI definitions of plugins are namespaced properly.
@@ -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 RepositorySyncURL(BaseModel):
27
35
  """
28
36
  A mixin for validating unknown serializers' fields.
@@ -25,6 +25,14 @@ from pulpcore.client.pulp_python.models.content_summary_response import ContentS
25
25
  from typing import Optional, Set
26
26
  from typing_extensions import Self
27
27
 
28
+
29
+ class OneOf:
30
+ @staticmethod
31
+ def from_dict(obj, *args, **kwargs):
32
+ """Noop override to fix missing OneOf import/implementation."""
33
+ return obj
34
+
35
+
28
36
  class RepositoryVersionResponse(BaseModel):
29
37
  """
30
38
  Base serializer for use with [pulpcore.app.models.Model][] This ensures that all Serializers provide values for the 'pulp_href` field. The class provides a default for the ``ref_name`` attribute in the ModelSerializers's ``Meta`` class. This ensures that the OpenAPI definitions of plugins are namespaced properly.
@@ -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 SetLabel(BaseModel):
28
36
  """
29
37
  Serializer for synchronously setting a label.
@@ -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 SetLabelResponse(BaseModel):
28
36
  """
29
37
  Serializer for synchronously setting a label.