pulp-python-client 3.19.0__tar.gz → 3.19.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/PKG-INFO +2 -2
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/README.md +1 -1
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/pulp_python_client.egg-info/PKG-INFO +2 -2
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/pulpcore/client/pulp_python/__init__.py +1 -1
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/pulpcore/client/pulp_python/api_client.py +1 -1
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/pulpcore/client/pulp_python/configuration.py +1 -1
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/pulpcore/client/pulp_python/models/async_operation_response.py +1 -11
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/pulpcore/client/pulp_python/models/content_summary_response.py +1 -13
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/pulpcore/client/pulp_python/models/my_permissions_response.py +1 -11
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/pulpcore/client/pulp_python/models/nested_role.py +1 -13
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/pulpcore/client/pulp_python/models/nested_role_response.py +1 -13
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/pulpcore/client/pulp_python/models/object_roles_response.py +1 -11
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/pulpcore/client/pulp_python/models/package_metadata_response.py +1 -14
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/pulpcore/client/pulp_python/models/package_upload_task_response.py +1 -13
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/pulpcore/client/pulp_python/models/paginated_repository_version_response_list.py +1 -14
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/pulpcore/client/pulp_python/models/paginatedpython_python_distribution_response_list.py +1 -14
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/pulpcore/client/pulp_python/models/paginatedpython_python_package_content_response_list.py +1 -14
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/pulpcore/client/pulp_python/models/paginatedpython_python_publication_response_list.py +1 -14
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/pulpcore/client/pulp_python/models/paginatedpython_python_remote_response_list.py +1 -14
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/pulpcore/client/pulp_python/models/paginatedpython_python_repository_response_list.py +1 -14
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/pulpcore/client/pulp_python/models/patchedpython_python_distribution.py +1 -19
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/pulpcore/client/pulp_python/models/patchedpython_python_remote.py +1 -37
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/pulpcore/client/pulp_python/models/patchedpython_python_repository.py +1 -16
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/pulpcore/client/pulp_python/models/python_python_distribution.py +1 -19
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/pulpcore/client/pulp_python/models/python_python_distribution_response.py +1 -25
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/pulpcore/client/pulp_python/models/python_python_package_content_response.py +1 -49
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/pulpcore/client/pulp_python/models/python_python_publication.py +1 -12
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/pulpcore/client/pulp_python/models/python_python_publication_response.py +1 -17
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/pulpcore/client/pulp_python/models/python_python_remote.py +1 -37
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/pulpcore/client/pulp_python/models/python_python_remote_response.py +1 -37
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/pulpcore/client/pulp_python/models/python_python_remote_response_hidden_fields_inner.py +1 -12
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/pulpcore/client/pulp_python/models/python_python_repository.py +1 -16
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/pulpcore/client/pulp_python/models/python_python_repository_response.py +1 -22
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/pulpcore/client/pulp_python/models/repair.py +1 -11
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/pulpcore/client/pulp_python/models/repository_add_remove_content.py +1 -13
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/pulpcore/client/pulp_python/models/repository_sync_url.py +1 -12
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/pulpcore/client/pulp_python/models/repository_version_response.py +1 -19
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/pulpcore/client/pulp_python/models/set_label.py +1 -12
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/pulpcore/client/pulp_python/models/set_label_response.py +1 -12
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/pulpcore/client/pulp_python/models/summary_response.py +1 -13
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/pulpcore/client/pulp_python/models/unset_label.py +1 -11
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/pulpcore/client/pulp_python/models/unset_label_response.py +1 -12
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/pyproject.toml +1 -1
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/setup.py +1 -1
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/pulp_python_client.egg-info/SOURCES.txt +0 -0
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/pulp_python_client.egg-info/dependency_links.txt +0 -0
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/pulp_python_client.egg-info/requires.txt +0 -0
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/pulp_python_client.egg-info/top_level.txt +0 -0
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/pulpcore/__init__.py +0 -0
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/pulpcore/client/__init__.py +0 -0
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/pulpcore/client/pulp_python/api/__init__.py +0 -0
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/pulpcore/client/pulp_python/api/content_packages_api.py +0 -0
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/pulpcore/client/pulp_python/api/distributions_pypi_api.py +0 -0
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/pulpcore/client/pulp_python/api/publications_pypi_api.py +0 -0
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/pulpcore/client/pulp_python/api/pypi_api.py +0 -0
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/pulpcore/client/pulp_python/api/pypi_legacy_api.py +0 -0
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/pulpcore/client/pulp_python/api/pypi_metadata_api.py +0 -0
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/pulpcore/client/pulp_python/api/pypi_simple_api.py +0 -0
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/pulpcore/client/pulp_python/api/remotes_python_api.py +0 -0
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/pulpcore/client/pulp_python/api/repositories_python_api.py +0 -0
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/pulpcore/client/pulp_python/api/repositories_python_versions_api.py +0 -0
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/pulpcore/client/pulp_python/api_response.py +0 -0
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/pulpcore/client/pulp_python/exceptions.py +0 -0
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/pulpcore/client/pulp_python/models/__init__.py +0 -0
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/pulpcore/client/pulp_python/models/exclude_platforms_enum.py +0 -0
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/pulpcore/client/pulp_python/models/package_types_enum.py +0 -0
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/pulpcore/client/pulp_python/models/policy_enum.py +0 -0
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/pulpcore/client/pulp_python/py.typed +0 -0
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/pulpcore/client/pulp_python/rest.py +0 -0
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/setup.cfg +0 -0
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/test/test_async_operation_response.py +0 -0
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/test/test_content_packages_api.py +0 -0
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/test/test_content_summary_response.py +0 -0
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/test/test_distributions_pypi_api.py +0 -0
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/test/test_exclude_platforms_enum.py +0 -0
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/test/test_my_permissions_response.py +0 -0
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/test/test_nested_role.py +0 -0
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/test/test_nested_role_response.py +0 -0
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/test/test_object_roles_response.py +0 -0
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/test/test_package_metadata_response.py +0 -0
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/test/test_package_types_enum.py +0 -0
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/test/test_package_upload_task_response.py +0 -0
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/test/test_paginated_repository_version_response_list.py +0 -0
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/test/test_paginatedpython_python_distribution_response_list.py +0 -0
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/test/test_paginatedpython_python_package_content_response_list.py +0 -0
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/test/test_paginatedpython_python_publication_response_list.py +0 -0
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/test/test_paginatedpython_python_remote_response_list.py +0 -0
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/test/test_paginatedpython_python_repository_response_list.py +0 -0
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/test/test_patchedpython_python_distribution.py +0 -0
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/test/test_patchedpython_python_remote.py +0 -0
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/test/test_patchedpython_python_repository.py +0 -0
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/test/test_policy_enum.py +0 -0
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/test/test_publications_pypi_api.py +0 -0
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/test/test_pypi_api.py +0 -0
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/test/test_pypi_legacy_api.py +0 -0
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/test/test_pypi_metadata_api.py +0 -0
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/test/test_pypi_simple_api.py +0 -0
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/test/test_python_python_distribution.py +0 -0
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/test/test_python_python_distribution_response.py +0 -0
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/test/test_python_python_package_content_response.py +0 -0
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/test/test_python_python_publication.py +0 -0
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/test/test_python_python_publication_response.py +0 -0
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/test/test_python_python_remote.py +0 -0
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/test/test_python_python_remote_response.py +0 -0
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/test/test_python_python_remote_response_hidden_fields_inner.py +0 -0
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/test/test_python_python_repository.py +0 -0
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/test/test_python_python_repository_response.py +0 -0
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/test/test_remotes_python_api.py +0 -0
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/test/test_repair.py +0 -0
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/test/test_repositories_python_api.py +0 -0
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/test/test_repositories_python_versions_api.py +0 -0
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/test/test_repository_add_remove_content.py +0 -0
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/test/test_repository_sync_url.py +0 -0
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/test/test_repository_version_response.py +0 -0
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/test/test_set_label.py +0 -0
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/test/test_set_label_response.py +0 -0
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/test/test_summary_response.py +0 -0
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/test/test_unset_label.py +0 -0
- {pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/test/test_unset_label_response.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pulp_python-client
|
|
3
|
-
Version: 3.19.
|
|
3
|
+
Version: 3.19.1
|
|
4
4
|
Summary: Pulp 3 API
|
|
5
5
|
Home-page:
|
|
6
6
|
Author: Pulp Team
|
|
@@ -17,7 +17,7 @@ Fetch, Upload, Organize, and Distribute Software Packages
|
|
|
17
17
|
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
18
18
|
|
|
19
19
|
- API version: v3
|
|
20
|
-
- Package version: 3.19.
|
|
20
|
+
- Package version: 3.19.1
|
|
21
21
|
- Generator version: 7.14.0
|
|
22
22
|
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
|
|
23
23
|
For more information, please visit [https://pulpproject.org](https://pulpproject.org)
|
|
@@ -4,7 +4,7 @@ Fetch, Upload, Organize, and Distribute Software Packages
|
|
|
4
4
|
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
5
5
|
|
|
6
6
|
- API version: v3
|
|
7
|
-
- Package version: 3.19.
|
|
7
|
+
- Package version: 3.19.1
|
|
8
8
|
- Generator version: 7.14.0
|
|
9
9
|
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
|
|
10
10
|
For more information, please visit [https://pulpproject.org](https://pulpproject.org)
|
{pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/pulp_python_client.egg-info/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pulp-python-client
|
|
3
|
-
Version: 3.19.
|
|
3
|
+
Version: 3.19.1
|
|
4
4
|
Summary: Pulp 3 API
|
|
5
5
|
Home-page:
|
|
6
6
|
Author: Pulp Team
|
|
@@ -17,7 +17,7 @@ Fetch, Upload, Organize, and Distribute Software Packages
|
|
|
17
17
|
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
18
18
|
|
|
19
19
|
- API version: v3
|
|
20
|
-
- Package version: 3.19.
|
|
20
|
+
- Package version: 3.19.1
|
|
21
21
|
- Generator version: 7.14.0
|
|
22
22
|
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
|
|
23
23
|
For more information, please visit [https://pulpproject.org](https://pulpproject.org)
|
{pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/pulpcore/client/pulp_python/api_client.py
RENAMED
|
@@ -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.19.
|
|
94
|
+
self.user_agent = 'OpenAPI-Generator/3.19.1/python'
|
|
95
95
|
self.client_side_validation = configuration.client_side_validation
|
|
96
96
|
|
|
97
97
|
def __enter__(self):
|
{pulp_python-client-3.19.0 → pulp_python-client-3.19.1}/pulpcore/client/pulp_python/configuration.py
RENAMED
|
@@ -556,7 +556,7 @@ conf = pulpcore.client.pulp_python.Configuration(
|
|
|
556
556
|
"OS: {env}\n"\
|
|
557
557
|
"Python Version: {pyversion}\n"\
|
|
558
558
|
"Version of the API: v3\n"\
|
|
559
|
-
"SDK Package Version: 3.19.
|
|
559
|
+
"SDK Package Version: 3.19.1".\
|
|
560
560
|
format(env=sys.platform, pyversion=sys.version)
|
|
561
561
|
|
|
562
562
|
def get_host_settings(self) -> List[HostSetting]:
|
|
@@ -23,14 +23,6 @@ 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
|
-
|
|
34
26
|
class AsyncOperationResponse(BaseModel):
|
|
35
27
|
"""
|
|
36
28
|
Serializer for asynchronous operations.
|
|
@@ -88,9 +80,7 @@ class AsyncOperationResponse(BaseModel):
|
|
|
88
80
|
if not isinstance(obj, dict):
|
|
89
81
|
return cls.model_validate(obj)
|
|
90
82
|
|
|
91
|
-
_obj = cls.model_validate(
|
|
92
|
-
"task": obj.get("task")
|
|
93
|
-
})
|
|
83
|
+
_obj = cls.model_validate(obj)
|
|
94
84
|
return _obj
|
|
95
85
|
|
|
96
86
|
|
|
@@ -23,14 +23,6 @@ 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
|
-
|
|
34
26
|
class ContentSummaryResponse(BaseModel):
|
|
35
27
|
"""
|
|
36
28
|
Serializer for the RepositoryVersion content summary
|
|
@@ -90,11 +82,7 @@ class ContentSummaryResponse(BaseModel):
|
|
|
90
82
|
if not isinstance(obj, dict):
|
|
91
83
|
return cls.model_validate(obj)
|
|
92
84
|
|
|
93
|
-
_obj = cls.model_validate(
|
|
94
|
-
"added": obj.get("added"),
|
|
95
|
-
"removed": obj.get("removed"),
|
|
96
|
-
"present": obj.get("present")
|
|
97
|
-
})
|
|
85
|
+
_obj = cls.model_validate(obj)
|
|
98
86
|
return _obj
|
|
99
87
|
|
|
100
88
|
|
|
@@ -23,14 +23,6 @@ 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
|
-
|
|
34
26
|
class MyPermissionsResponse(BaseModel):
|
|
35
27
|
"""
|
|
36
28
|
MyPermissionsResponse
|
|
@@ -88,9 +80,7 @@ class MyPermissionsResponse(BaseModel):
|
|
|
88
80
|
if not isinstance(obj, dict):
|
|
89
81
|
return cls.model_validate(obj)
|
|
90
82
|
|
|
91
|
-
_obj = cls.model_validate(
|
|
92
|
-
"permissions": obj.get("permissions")
|
|
93
|
-
})
|
|
83
|
+
_obj = cls.model_validate(obj)
|
|
94
84
|
return _obj
|
|
95
85
|
|
|
96
86
|
|
|
@@ -24,14 +24,6 @@ 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
|
-
|
|
35
27
|
class NestedRole(BaseModel):
|
|
36
28
|
"""
|
|
37
29
|
Serializer to add/remove object roles to/from users/groups. This is used in conjunction with ``pulpcore.app.viewsets.base.RolesMixin`` and requires the underlying object to be passed as ``content_object`` in the context.
|
|
@@ -91,11 +83,7 @@ class NestedRole(BaseModel):
|
|
|
91
83
|
if not isinstance(obj, dict):
|
|
92
84
|
return cls.model_validate(obj)
|
|
93
85
|
|
|
94
|
-
_obj = cls.model_validate(
|
|
95
|
-
"users": obj.get("users"),
|
|
96
|
-
"groups": obj.get("groups"),
|
|
97
|
-
"role": obj.get("role")
|
|
98
|
-
})
|
|
86
|
+
_obj = cls.model_validate(obj)
|
|
99
87
|
return _obj
|
|
100
88
|
|
|
101
89
|
|
|
@@ -23,14 +23,6 @@ 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
|
-
|
|
34
26
|
class NestedRoleResponse(BaseModel):
|
|
35
27
|
"""
|
|
36
28
|
Serializer to add/remove object roles to/from users/groups. This is used in conjunction with ``pulpcore.app.viewsets.base.RolesMixin`` and requires the underlying object to be passed as ``content_object`` in the context.
|
|
@@ -90,11 +82,7 @@ class NestedRoleResponse(BaseModel):
|
|
|
90
82
|
if not isinstance(obj, dict):
|
|
91
83
|
return cls.model_validate(obj)
|
|
92
84
|
|
|
93
|
-
_obj = cls.model_validate(
|
|
94
|
-
"users": obj.get("users"),
|
|
95
|
-
"groups": obj.get("groups"),
|
|
96
|
-
"role": obj.get("role")
|
|
97
|
-
})
|
|
85
|
+
_obj = cls.model_validate(obj)
|
|
98
86
|
return _obj
|
|
99
87
|
|
|
100
88
|
|
|
@@ -24,14 +24,6 @@ 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
|
-
|
|
35
27
|
class ObjectRolesResponse(BaseModel):
|
|
36
28
|
"""
|
|
37
29
|
ObjectRolesResponse
|
|
@@ -96,9 +88,7 @@ class ObjectRolesResponse(BaseModel):
|
|
|
96
88
|
if not isinstance(obj, dict):
|
|
97
89
|
return cls.model_validate(obj)
|
|
98
90
|
|
|
99
|
-
_obj = cls.model_validate(
|
|
100
|
-
"roles": [NestedRoleResponse.from_dict(_item) for _item in obj["roles"]] if obj.get("roles") is not None else None
|
|
101
|
-
})
|
|
91
|
+
_obj = cls.model_validate(obj)
|
|
102
92
|
return _obj
|
|
103
93
|
|
|
104
94
|
|
|
@@ -23,14 +23,6 @@ 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
|
-
|
|
34
26
|
class PackageMetadataResponse(BaseModel):
|
|
35
27
|
"""
|
|
36
28
|
A Serializer for a package's metadata.
|
|
@@ -106,12 +98,7 @@ class PackageMetadataResponse(BaseModel):
|
|
|
106
98
|
if not isinstance(obj, dict):
|
|
107
99
|
return cls.model_validate(obj)
|
|
108
100
|
|
|
109
|
-
_obj = cls.model_validate(
|
|
110
|
-
"last_serial": obj.get("last_serial"),
|
|
111
|
-
"info": obj.get("info"),
|
|
112
|
-
"releases": obj.get("releases"),
|
|
113
|
-
"urls": obj.get("urls")
|
|
114
|
-
})
|
|
101
|
+
_obj = cls.model_validate(obj)
|
|
115
102
|
return _obj
|
|
116
103
|
|
|
117
104
|
|
|
@@ -24,14 +24,6 @@ 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
|
-
|
|
35
27
|
class PackageUploadTaskResponse(BaseModel):
|
|
36
28
|
"""
|
|
37
29
|
A Serializer for responding to a package upload task.
|
|
@@ -101,11 +93,7 @@ class PackageUploadTaskResponse(BaseModel):
|
|
|
101
93
|
if not isinstance(obj, dict):
|
|
102
94
|
return cls.model_validate(obj)
|
|
103
95
|
|
|
104
|
-
_obj = cls.model_validate(
|
|
105
|
-
"session": obj.get("session"),
|
|
106
|
-
"task": obj.get("task"),
|
|
107
|
-
"task_start_time": obj.get("task_start_time")
|
|
108
|
-
})
|
|
96
|
+
_obj = cls.model_validate(obj)
|
|
109
97
|
return _obj
|
|
110
98
|
|
|
111
99
|
|
|
@@ -24,14 +24,6 @@ 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
|
-
|
|
35
27
|
class PaginatedRepositoryVersionResponseList(BaseModel):
|
|
36
28
|
"""
|
|
37
29
|
PaginatedRepositoryVersionResponseList
|
|
@@ -99,12 +91,7 @@ class PaginatedRepositoryVersionResponseList(BaseModel):
|
|
|
99
91
|
if not isinstance(obj, dict):
|
|
100
92
|
return cls.model_validate(obj)
|
|
101
93
|
|
|
102
|
-
_obj = cls.model_validate(
|
|
103
|
-
"count": obj.get("count"),
|
|
104
|
-
"next": obj.get("next"),
|
|
105
|
-
"previous": obj.get("previous"),
|
|
106
|
-
"results": [RepositoryVersionResponse.from_dict(_item) for _item in obj["results"]] if obj.get("results") is not None else None
|
|
107
|
-
})
|
|
94
|
+
_obj = cls.model_validate(obj)
|
|
108
95
|
return _obj
|
|
109
96
|
|
|
110
97
|
|
|
@@ -24,14 +24,6 @@ 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
|
-
|
|
35
27
|
class PaginatedpythonPythonDistributionResponseList(BaseModel):
|
|
36
28
|
"""
|
|
37
29
|
PaginatedpythonPythonDistributionResponseList
|
|
@@ -99,12 +91,7 @@ class PaginatedpythonPythonDistributionResponseList(BaseModel):
|
|
|
99
91
|
if not isinstance(obj, dict):
|
|
100
92
|
return cls.model_validate(obj)
|
|
101
93
|
|
|
102
|
-
_obj = cls.model_validate(
|
|
103
|
-
"count": obj.get("count"),
|
|
104
|
-
"next": obj.get("next"),
|
|
105
|
-
"previous": obj.get("previous"),
|
|
106
|
-
"results": [PythonPythonDistributionResponse.from_dict(_item) for _item in obj["results"]] if obj.get("results") is not None else None
|
|
107
|
-
})
|
|
94
|
+
_obj = cls.model_validate(obj)
|
|
108
95
|
return _obj
|
|
109
96
|
|
|
110
97
|
|
|
@@ -24,14 +24,6 @@ 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
|
-
|
|
35
27
|
class PaginatedpythonPythonPackageContentResponseList(BaseModel):
|
|
36
28
|
"""
|
|
37
29
|
PaginatedpythonPythonPackageContentResponseList
|
|
@@ -99,12 +91,7 @@ class PaginatedpythonPythonPackageContentResponseList(BaseModel):
|
|
|
99
91
|
if not isinstance(obj, dict):
|
|
100
92
|
return cls.model_validate(obj)
|
|
101
93
|
|
|
102
|
-
_obj = cls.model_validate(
|
|
103
|
-
"count": obj.get("count"),
|
|
104
|
-
"next": obj.get("next"),
|
|
105
|
-
"previous": obj.get("previous"),
|
|
106
|
-
"results": [PythonPythonPackageContentResponse.from_dict(_item) for _item in obj["results"]] if obj.get("results") is not None else None
|
|
107
|
-
})
|
|
94
|
+
_obj = cls.model_validate(obj)
|
|
108
95
|
return _obj
|
|
109
96
|
|
|
110
97
|
|
|
@@ -24,14 +24,6 @@ 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
|
-
|
|
35
27
|
class PaginatedpythonPythonPublicationResponseList(BaseModel):
|
|
36
28
|
"""
|
|
37
29
|
PaginatedpythonPythonPublicationResponseList
|
|
@@ -99,12 +91,7 @@ class PaginatedpythonPythonPublicationResponseList(BaseModel):
|
|
|
99
91
|
if not isinstance(obj, dict):
|
|
100
92
|
return cls.model_validate(obj)
|
|
101
93
|
|
|
102
|
-
_obj = cls.model_validate(
|
|
103
|
-
"count": obj.get("count"),
|
|
104
|
-
"next": obj.get("next"),
|
|
105
|
-
"previous": obj.get("previous"),
|
|
106
|
-
"results": [PythonPythonPublicationResponse.from_dict(_item) for _item in obj["results"]] if obj.get("results") is not None else None
|
|
107
|
-
})
|
|
94
|
+
_obj = cls.model_validate(obj)
|
|
108
95
|
return _obj
|
|
109
96
|
|
|
110
97
|
|
|
@@ -24,14 +24,6 @@ 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
|
-
|
|
35
27
|
class PaginatedpythonPythonRemoteResponseList(BaseModel):
|
|
36
28
|
"""
|
|
37
29
|
PaginatedpythonPythonRemoteResponseList
|
|
@@ -99,12 +91,7 @@ class PaginatedpythonPythonRemoteResponseList(BaseModel):
|
|
|
99
91
|
if not isinstance(obj, dict):
|
|
100
92
|
return cls.model_validate(obj)
|
|
101
93
|
|
|
102
|
-
_obj = cls.model_validate(
|
|
103
|
-
"count": obj.get("count"),
|
|
104
|
-
"next": obj.get("next"),
|
|
105
|
-
"previous": obj.get("previous"),
|
|
106
|
-
"results": [PythonPythonRemoteResponse.from_dict(_item) for _item in obj["results"]] if obj.get("results") is not None else None
|
|
107
|
-
})
|
|
94
|
+
_obj = cls.model_validate(obj)
|
|
108
95
|
return _obj
|
|
109
96
|
|
|
110
97
|
|
|
@@ -24,14 +24,6 @@ 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
|
-
|
|
35
27
|
class PaginatedpythonPythonRepositoryResponseList(BaseModel):
|
|
36
28
|
"""
|
|
37
29
|
PaginatedpythonPythonRepositoryResponseList
|
|
@@ -99,12 +91,7 @@ class PaginatedpythonPythonRepositoryResponseList(BaseModel):
|
|
|
99
91
|
if not isinstance(obj, dict):
|
|
100
92
|
return cls.model_validate(obj)
|
|
101
93
|
|
|
102
|
-
_obj = cls.model_validate(
|
|
103
|
-
"count": obj.get("count"),
|
|
104
|
-
"next": obj.get("next"),
|
|
105
|
-
"previous": obj.get("previous"),
|
|
106
|
-
"results": [PythonPythonRepositoryResponse.from_dict(_item) for _item in obj["results"]] if obj.get("results") is not None else None
|
|
107
|
-
})
|
|
94
|
+
_obj = cls.model_validate(obj)
|
|
108
95
|
return _obj
|
|
109
96
|
|
|
110
97
|
|
|
@@ -24,14 +24,6 @@ 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
|
-
|
|
35
27
|
class PatchedpythonPythonDistribution(BaseModel):
|
|
36
28
|
"""
|
|
37
29
|
Serializer for Pulp distributions for the Python type.
|
|
@@ -117,17 +109,7 @@ class PatchedpythonPythonDistribution(BaseModel):
|
|
|
117
109
|
if not isinstance(obj, dict):
|
|
118
110
|
return cls.model_validate(obj)
|
|
119
111
|
|
|
120
|
-
_obj = cls.model_validate(
|
|
121
|
-
"base_path": obj.get("base_path"),
|
|
122
|
-
"content_guard": obj.get("content_guard"),
|
|
123
|
-
"hidden": obj.get("hidden") if obj.get("hidden") is not None else False,
|
|
124
|
-
"pulp_labels": obj.get("pulp_labels"),
|
|
125
|
-
"name": obj.get("name"),
|
|
126
|
-
"repository": obj.get("repository"),
|
|
127
|
-
"publication": obj.get("publication"),
|
|
128
|
-
"allow_uploads": obj.get("allow_uploads") if obj.get("allow_uploads") is not None else True,
|
|
129
|
-
"remote": obj.get("remote")
|
|
130
|
-
})
|
|
112
|
+
_obj = cls.model_validate(obj)
|
|
131
113
|
return _obj
|
|
132
114
|
|
|
133
115
|
|
|
@@ -27,14 +27,6 @@ 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
|
-
|
|
38
30
|
class PatchedpythonPythonRemote(BaseModel):
|
|
39
31
|
"""
|
|
40
32
|
A Serializer for PythonRemote.
|
|
@@ -193,35 +185,7 @@ class PatchedpythonPythonRemote(BaseModel):
|
|
|
193
185
|
if not isinstance(obj, dict):
|
|
194
186
|
return cls.model_validate(obj)
|
|
195
187
|
|
|
196
|
-
_obj = cls.model_validate(
|
|
197
|
-
"name": obj.get("name"),
|
|
198
|
-
"url": obj.get("url"),
|
|
199
|
-
"ca_cert": obj.get("ca_cert"),
|
|
200
|
-
"client_cert": obj.get("client_cert"),
|
|
201
|
-
"client_key": obj.get("client_key"),
|
|
202
|
-
"tls_validation": obj.get("tls_validation"),
|
|
203
|
-
"proxy_url": obj.get("proxy_url"),
|
|
204
|
-
"proxy_username": obj.get("proxy_username"),
|
|
205
|
-
"proxy_password": obj.get("proxy_password"),
|
|
206
|
-
"username": obj.get("username"),
|
|
207
|
-
"password": obj.get("password"),
|
|
208
|
-
"pulp_labels": obj.get("pulp_labels"),
|
|
209
|
-
"download_concurrency": obj.get("download_concurrency"),
|
|
210
|
-
"max_retries": obj.get("max_retries"),
|
|
211
|
-
"policy": obj.get("policy"),
|
|
212
|
-
"total_timeout": obj.get("total_timeout"),
|
|
213
|
-
"connect_timeout": obj.get("connect_timeout"),
|
|
214
|
-
"sock_connect_timeout": obj.get("sock_connect_timeout"),
|
|
215
|
-
"sock_read_timeout": obj.get("sock_read_timeout"),
|
|
216
|
-
"headers": obj.get("headers"),
|
|
217
|
-
"rate_limit": obj.get("rate_limit"),
|
|
218
|
-
"includes": obj.get("includes"),
|
|
219
|
-
"excludes": obj.get("excludes"),
|
|
220
|
-
"prereleases": obj.get("prereleases"),
|
|
221
|
-
"package_types": obj.get("package_types"),
|
|
222
|
-
"keep_latest_packages": obj.get("keep_latest_packages") if obj.get("keep_latest_packages") is not None else 0,
|
|
223
|
-
"exclude_platforms": obj.get("exclude_platforms")
|
|
224
|
-
})
|
|
188
|
+
_obj = cls.model_validate(obj)
|
|
225
189
|
return _obj
|
|
226
190
|
|
|
227
191
|
|
|
@@ -24,14 +24,6 @@ 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
|
-
|
|
35
27
|
class PatchedpythonPythonRepository(BaseModel):
|
|
36
28
|
"""
|
|
37
29
|
Serializer for Python Repositories.
|
|
@@ -109,14 +101,7 @@ class PatchedpythonPythonRepository(BaseModel):
|
|
|
109
101
|
if not isinstance(obj, dict):
|
|
110
102
|
return cls.model_validate(obj)
|
|
111
103
|
|
|
112
|
-
_obj = cls.model_validate(
|
|
113
|
-
"pulp_labels": obj.get("pulp_labels"),
|
|
114
|
-
"name": obj.get("name"),
|
|
115
|
-
"description": obj.get("description"),
|
|
116
|
-
"retain_repo_versions": obj.get("retain_repo_versions"),
|
|
117
|
-
"remote": obj.get("remote"),
|
|
118
|
-
"autopublish": obj.get("autopublish") if obj.get("autopublish") is not None else False
|
|
119
|
-
})
|
|
104
|
+
_obj = cls.model_validate(obj)
|
|
120
105
|
return _obj
|
|
121
106
|
|
|
122
107
|
|
|
@@ -24,14 +24,6 @@ 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
|
-
|
|
35
27
|
class PythonPythonDistribution(BaseModel):
|
|
36
28
|
"""
|
|
37
29
|
Serializer for Pulp distributions for the Python type.
|
|
@@ -117,17 +109,7 @@ class PythonPythonDistribution(BaseModel):
|
|
|
117
109
|
if not isinstance(obj, dict):
|
|
118
110
|
return cls.model_validate(obj)
|
|
119
111
|
|
|
120
|
-
_obj = cls.model_validate(
|
|
121
|
-
"base_path": obj.get("base_path"),
|
|
122
|
-
"content_guard": obj.get("content_guard"),
|
|
123
|
-
"hidden": obj.get("hidden") if obj.get("hidden") is not None else False,
|
|
124
|
-
"pulp_labels": obj.get("pulp_labels"),
|
|
125
|
-
"name": obj.get("name"),
|
|
126
|
-
"repository": obj.get("repository"),
|
|
127
|
-
"publication": obj.get("publication"),
|
|
128
|
-
"allow_uploads": obj.get("allow_uploads") if obj.get("allow_uploads") is not None else True,
|
|
129
|
-
"remote": obj.get("remote")
|
|
130
|
-
})
|
|
112
|
+
_obj = cls.model_validate(obj)
|
|
131
113
|
return _obj
|
|
132
114
|
|
|
133
115
|
|
|
@@ -24,14 +24,6 @@ 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
|
-
|
|
35
27
|
class PythonPythonDistributionResponse(BaseModel):
|
|
36
28
|
"""
|
|
37
29
|
Serializer for Pulp distributions for the Python type.
|
|
@@ -135,23 +127,7 @@ class PythonPythonDistributionResponse(BaseModel):
|
|
|
135
127
|
if not isinstance(obj, dict):
|
|
136
128
|
return cls.model_validate(obj)
|
|
137
129
|
|
|
138
|
-
_obj = cls.model_validate(
|
|
139
|
-
"pulp_href": obj.get("pulp_href"),
|
|
140
|
-
"prn": obj.get("prn"),
|
|
141
|
-
"pulp_created": obj.get("pulp_created"),
|
|
142
|
-
"pulp_last_updated": obj.get("pulp_last_updated"),
|
|
143
|
-
"base_path": obj.get("base_path"),
|
|
144
|
-
"base_url": obj.get("base_url"),
|
|
145
|
-
"content_guard": obj.get("content_guard"),
|
|
146
|
-
"no_content_change_since": obj.get("no_content_change_since"),
|
|
147
|
-
"hidden": obj.get("hidden") if obj.get("hidden") is not None else False,
|
|
148
|
-
"pulp_labels": obj.get("pulp_labels"),
|
|
149
|
-
"name": obj.get("name"),
|
|
150
|
-
"repository": obj.get("repository"),
|
|
151
|
-
"publication": obj.get("publication"),
|
|
152
|
-
"allow_uploads": obj.get("allow_uploads") if obj.get("allow_uploads") is not None else True,
|
|
153
|
-
"remote": obj.get("remote")
|
|
154
|
-
})
|
|
130
|
+
_obj = cls.model_validate(obj)
|
|
155
131
|
return _obj
|
|
156
132
|
|
|
157
133
|
|