pulpcore-client 3.88.0__py3-none-any.whl → 3.89.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 pulpcore-client might be problematic. Click here for more details.
- pulpcore/client/pulpcore/__init__.py +1 -1
- pulpcore/client/pulpcore/api_client.py +1 -1
- pulpcore/client/pulpcore/configuration.py +1 -1
- pulpcore/client/pulpcore/models/access_policy.py +1 -14
- pulpcore/client/pulpcore/models/access_policy_response.py +1 -20
- pulpcore/client/pulpcore/models/app_status_response.py +1 -13
- pulpcore/client/pulpcore/models/artifact_distribution_response.py +14 -34
- pulpcore/client/pulpcore/models/artifact_response.py +1 -22
- pulpcore/client/pulpcore/models/async_operation_response.py +1 -11
- pulpcore/client/pulpcore/models/composite_content_guard.py +1 -13
- pulpcore/client/pulpcore/models/composite_content_guard_response.py +1 -17
- pulpcore/client/pulpcore/models/content_guard_response.py +1 -16
- pulpcore/client/pulpcore/models/content_redirect_content_guard.py +1 -12
- pulpcore/client/pulpcore/models/content_redirect_content_guard_response.py +1 -16
- pulpcore/client/pulpcore/models/content_settings_response.py +1 -12
- pulpcore/client/pulpcore/models/content_summary_response.py +1 -13
- pulpcore/client/pulpcore/models/database_connection_response.py +1 -11
- pulpcore/client/pulpcore/models/distribution_response.py +1 -22
- pulpcore/client/pulpcore/models/domain.py +1 -17
- pulpcore/client/pulpcore/models/domain_backend_migrator.py +1 -12
- pulpcore/client/pulpcore/models/domain_response.py +1 -21
- pulpcore/client/pulpcore/models/evaluation_response.py +1 -13
- pulpcore/client/pulpcore/models/filesystem_export.py +1 -14
- pulpcore/client/pulpcore/models/filesystem_export_response.py +1 -17
- pulpcore/client/pulpcore/models/filesystem_exporter.py +1 -13
- pulpcore/client/pulpcore/models/filesystem_exporter_response.py +1 -17
- pulpcore/client/pulpcore/models/generic_remote_response.py +1 -31
- pulpcore/client/pulpcore/models/generic_remote_response_hidden_fields_inner.py +1 -12
- pulpcore/client/pulpcore/models/group.py +1 -11
- pulpcore/client/pulpcore/models/group_progress_report_response.py +1 -15
- pulpcore/client/pulpcore/models/group_response.py +1 -14
- pulpcore/client/pulpcore/models/group_role.py +1 -14
- pulpcore/client/pulpcore/models/group_role_response.py +1 -20
- pulpcore/client/pulpcore/models/group_user.py +1 -11
- pulpcore/client/pulpcore/models/group_user_response.py +1 -13
- pulpcore/client/pulpcore/models/header_content_guard.py +1 -15
- pulpcore/client/pulpcore/models/header_content_guard_response.py +1 -19
- pulpcore/client/pulpcore/models/import_response.py +1 -16
- pulpcore/client/pulpcore/models/login_response.py +1 -13
- pulpcore/client/pulpcore/models/minimal_task_response.py +1 -20
- pulpcore/client/pulpcore/models/multiple_artifact_content_response.py +1 -17
- pulpcore/client/pulpcore/models/my_permissions_response.py +1 -11
- pulpcore/client/pulpcore/models/nested_open_pgp_public_subkey.py +1 -12
- pulpcore/client/pulpcore/models/nested_open_pgp_public_subkey_response.py +1 -13
- pulpcore/client/pulpcore/models/nested_open_pgp_signature.py +1 -16
- pulpcore/client/pulpcore/models/nested_open_pgp_signature_response.py +1 -17
- pulpcore/client/pulpcore/models/nested_open_pgp_user_attribute.py +1 -11
- pulpcore/client/pulpcore/models/nested_open_pgp_user_attribute_response.py +1 -12
- pulpcore/client/pulpcore/models/nested_open_pgp_user_id.py +1 -11
- pulpcore/client/pulpcore/models/nested_open_pgp_user_id_response.py +1 -12
- pulpcore/client/pulpcore/models/nested_role.py +1 -13
- pulpcore/client/pulpcore/models/nested_role_response.py +1 -13
- pulpcore/client/pulpcore/models/object_roles_response.py +1 -11
- pulpcore/client/pulpcore/models/open_pgp_distribution.py +1 -17
- pulpcore/client/pulpcore/models/open_pgp_distribution_response.py +1 -23
- pulpcore/client/pulpcore/models/open_pgp_keyring.py +1 -15
- pulpcore/client/pulpcore/models/open_pgp_keyring_response.py +1 -21
- pulpcore/client/pulpcore/models/open_pgp_public_key_response.py +1 -21
- pulpcore/client/pulpcore/models/open_pgp_public_subkey_response.py +1 -20
- pulpcore/client/pulpcore/models/open_pgp_signature_response.py +1 -24
- pulpcore/client/pulpcore/models/open_pgp_user_attribute_response.py +1 -19
- pulpcore/client/pulpcore/models/open_pgp_user_id_response.py +1 -19
- pulpcore/client/pulpcore/models/orphans_cleanup.py +1 -12
- pulpcore/client/pulpcore/models/paginated_access_policy_response_list.py +1 -14
- pulpcore/client/pulpcore/models/paginated_artifact_distribution_response_list.py +1 -14
- pulpcore/client/pulpcore/models/paginated_artifact_response_list.py +1 -14
- pulpcore/client/pulpcore/models/paginated_composite_content_guard_response_list.py +1 -14
- pulpcore/client/pulpcore/models/paginated_content_guard_response_list.py +1 -14
- pulpcore/client/pulpcore/models/paginated_content_redirect_content_guard_response_list.py +1 -14
- pulpcore/client/pulpcore/models/paginated_distribution_response_list.py +1 -14
- pulpcore/client/pulpcore/models/paginated_domain_response_list.py +1 -14
- pulpcore/client/pulpcore/models/paginated_filesystem_export_response_list.py +1 -14
- pulpcore/client/pulpcore/models/paginated_filesystem_exporter_response_list.py +1 -14
- pulpcore/client/pulpcore/models/paginated_generic_remote_response_list.py +1 -14
- pulpcore/client/pulpcore/models/paginated_group_response_list.py +1 -14
- pulpcore/client/pulpcore/models/paginated_group_role_response_list.py +1 -14
- pulpcore/client/pulpcore/models/paginated_group_user_response_list.py +1 -14
- pulpcore/client/pulpcore/models/paginated_header_content_guard_response_list.py +1 -14
- pulpcore/client/pulpcore/models/paginated_import_response_list.py +1 -14
- pulpcore/client/pulpcore/models/paginated_multiple_artifact_content_response_list.py +1 -14
- pulpcore/client/pulpcore/models/paginated_open_pgp_distribution_response_list.py +1 -14
- pulpcore/client/pulpcore/models/paginated_open_pgp_keyring_response_list.py +1 -14
- pulpcore/client/pulpcore/models/paginated_open_pgp_public_key_response_list.py +1 -14
- pulpcore/client/pulpcore/models/paginated_open_pgp_public_subkey_response_list.py +1 -14
- pulpcore/client/pulpcore/models/paginated_open_pgp_signature_response_list.py +1 -14
- pulpcore/client/pulpcore/models/paginated_open_pgp_user_attribute_response_list.py +1 -14
- pulpcore/client/pulpcore/models/paginated_open_pgp_user_id_response_list.py +1 -14
- pulpcore/client/pulpcore/models/paginated_publication_response_list.py +1 -14
- pulpcore/client/pulpcore/models/paginated_pulp_export_response_list.py +1 -14
- pulpcore/client/pulpcore/models/paginated_pulp_exporter_response_list.py +1 -14
- pulpcore/client/pulpcore/models/paginated_pulp_importer_response_list.py +1 -14
- pulpcore/client/pulpcore/models/paginated_rbac_content_guard_response_list.py +1 -14
- pulpcore/client/pulpcore/models/paginated_repository_response_list.py +1 -14
- pulpcore/client/pulpcore/models/paginated_repository_version_response_list.py +1 -14
- pulpcore/client/pulpcore/models/paginated_role_response_list.py +1 -14
- pulpcore/client/pulpcore/models/paginated_signing_service_response_list.py +1 -14
- pulpcore/client/pulpcore/models/paginated_task_group_response_list.py +1 -14
- pulpcore/client/pulpcore/models/paginated_task_response_list.py +1 -14
- pulpcore/client/pulpcore/models/paginated_task_schedule_response_list.py +1 -14
- pulpcore/client/pulpcore/models/paginated_upload_response_list.py +1 -14
- pulpcore/client/pulpcore/models/paginated_upstream_pulp_response_list.py +1 -14
- pulpcore/client/pulpcore/models/paginated_user_response_list.py +1 -14
- pulpcore/client/pulpcore/models/paginated_user_role_response_list.py +1 -14
- pulpcore/client/pulpcore/models/paginated_vulnerability_report_response_list.py +1 -14
- pulpcore/client/pulpcore/models/paginated_worker_response_list.py +1 -14
- pulpcore/client/pulpcore/models/patched_access_policy.py +1 -14
- pulpcore/client/pulpcore/models/patched_composite_content_guard.py +1 -13
- pulpcore/client/pulpcore/models/patched_content_redirect_content_guard.py +1 -12
- pulpcore/client/pulpcore/models/patched_domain.py +1 -17
- pulpcore/client/pulpcore/models/patched_filesystem_exporter.py +1 -13
- pulpcore/client/pulpcore/models/patched_group.py +1 -11
- pulpcore/client/pulpcore/models/patched_header_content_guard.py +1 -15
- pulpcore/client/pulpcore/models/patched_open_pgp_distribution.py +1 -17
- pulpcore/client/pulpcore/models/patched_open_pgp_keyring.py +1 -15
- pulpcore/client/pulpcore/models/patched_pulp_exporter.py +1 -14
- pulpcore/client/pulpcore/models/patched_pulp_importer.py +1 -12
- pulpcore/client/pulpcore/models/patched_rbac_content_guard.py +1 -12
- pulpcore/client/pulpcore/models/patched_role.py +1 -13
- pulpcore/client/pulpcore/models/patched_task_cancel.py +1 -11
- pulpcore/client/pulpcore/models/patched_upstream_pulp.py +1 -22
- pulpcore/client/pulpcore/models/patched_user.py +1 -17
- pulpcore/client/pulpcore/models/profile_artifact_response.py +1 -11
- pulpcore/client/pulpcore/models/progress_report_response.py +1 -16
- pulpcore/client/pulpcore/models/publication_response.py +1 -16
- pulpcore/client/pulpcore/models/pulp_export.py +1 -16
- pulpcore/client/pulpcore/models/pulp_export_response.py +1 -19
- pulpcore/client/pulpcore/models/pulp_exporter.py +1 -14
- pulpcore/client/pulpcore/models/pulp_exporter_response.py +1 -18
- pulpcore/client/pulpcore/models/pulp_import.py +1 -13
- pulpcore/client/pulpcore/models/pulp_import_check.py +1 -13
- pulpcore/client/pulpcore/models/pulp_import_check_response.py +1 -13
- pulpcore/client/pulpcore/models/pulp_importer.py +1 -12
- pulpcore/client/pulpcore/models/pulp_importer_response.py +1 -16
- pulpcore/client/pulpcore/models/purge.py +1 -12
- pulpcore/client/pulpcore/models/rbac_content_guard.py +1 -12
- pulpcore/client/pulpcore/models/rbac_content_guard_response.py +1 -18
- pulpcore/client/pulpcore/models/reclaim_space.py +1 -12
- pulpcore/client/pulpcore/models/redis_connection_response.py +1 -11
- pulpcore/client/pulpcore/models/repair.py +1 -11
- pulpcore/client/pulpcore/models/repository_add_remove_content.py +1 -13
- pulpcore/client/pulpcore/models/repository_response.py +1 -21
- pulpcore/client/pulpcore/models/repository_version_response.py +1 -19
- pulpcore/client/pulpcore/models/role.py +1 -13
- pulpcore/client/pulpcore/models/role_response.py +1 -18
- pulpcore/client/pulpcore/models/set_label.py +1 -12
- pulpcore/client/pulpcore/models/set_label_response.py +1 -12
- pulpcore/client/pulpcore/models/signing_service_response.py +1 -18
- pulpcore/client/pulpcore/models/status_response.py +1 -19
- pulpcore/client/pulpcore/models/storage_response.py +1 -13
- pulpcore/client/pulpcore/models/task_group_operation_response.py +1 -11
- pulpcore/client/pulpcore/models/task_group_response.py +1 -23
- pulpcore/client/pulpcore/models/task_response.py +1 -30
- pulpcore/client/pulpcore/models/task_schedule_response.py +1 -19
- pulpcore/client/pulpcore/models/unset_label.py +1 -11
- pulpcore/client/pulpcore/models/unset_label_response.py +1 -12
- pulpcore/client/pulpcore/models/upload.py +1 -11
- pulpcore/client/pulpcore/models/upload_chunk_response.py +1 -12
- pulpcore/client/pulpcore/models/upload_commit.py +1 -11
- pulpcore/client/pulpcore/models/upload_detail_response.py +1 -17
- pulpcore/client/pulpcore/models/upload_response.py +1 -16
- pulpcore/client/pulpcore/models/upstream_pulp.py +1 -22
- pulpcore/client/pulpcore/models/upstream_pulp_response.py +1 -25
- pulpcore/client/pulpcore/models/user.py +1 -17
- pulpcore/client/pulpcore/models/user_group.py +1 -11
- pulpcore/client/pulpcore/models/user_group_response.py +1 -13
- pulpcore/client/pulpcore/models/user_response.py +1 -22
- pulpcore/client/pulpcore/models/user_role.py +1 -14
- pulpcore/client/pulpcore/models/user_role_response.py +1 -20
- pulpcore/client/pulpcore/models/version_response.py +1 -15
- pulpcore/client/pulpcore/models/vulnerability_report_response.py +1 -17
- pulpcore/client/pulpcore/models/worker_response.py +1 -18
- {pulpcore_client-3.88.0.dist-info → pulpcore_client-3.89.0.dist-info}/METADATA +2 -2
- {pulpcore_client-3.88.0.dist-info → pulpcore_client-3.89.0.dist-info}/RECORD +175 -175
- {pulpcore_client-3.88.0.dist-info → pulpcore_client-3.89.0.dist-info}/WHEEL +0 -0
- {pulpcore_client-3.88.0.dist-info → pulpcore_client-3.89.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.
|
|
94
|
+
self.user_agent = 'OpenAPI-Generator/3.89.0/python'
|
|
95
95
|
self.client_side_validation = configuration.client_side_validation
|
|
96
96
|
|
|
97
97
|
def __enter__(self):
|
|
@@ -556,7 +556,7 @@ conf = pulpcore.client.pulpcore.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.
|
|
559
|
+
"SDK Package Version: 3.89.0".\
|
|
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, 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 AccessPolicy(BaseModel):
|
|
35
27
|
"""
|
|
36
28
|
Serializer for AccessPolicy.
|
|
@@ -91,12 +83,7 @@ class AccessPolicy(BaseModel):
|
|
|
91
83
|
if not isinstance(obj, dict):
|
|
92
84
|
return cls.model_validate(obj)
|
|
93
85
|
|
|
94
|
-
_obj = cls.model_validate(
|
|
95
|
-
"permissions_assignment": obj.get("permissions_assignment"),
|
|
96
|
-
"creation_hooks": obj.get("creation_hooks"),
|
|
97
|
-
"statements": obj.get("statements"),
|
|
98
|
-
"queryset_scoping": obj.get("queryset_scoping")
|
|
99
|
-
})
|
|
86
|
+
_obj = cls.model_validate(obj)
|
|
100
87
|
return _obj
|
|
101
88
|
|
|
102
89
|
|
|
@@ -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 AccessPolicyResponse(BaseModel):
|
|
36
28
|
"""
|
|
37
29
|
Serializer for AccessPolicy.
|
|
@@ -110,18 +102,7 @@ class AccessPolicyResponse(BaseModel):
|
|
|
110
102
|
if not isinstance(obj, dict):
|
|
111
103
|
return cls.model_validate(obj)
|
|
112
104
|
|
|
113
|
-
_obj = cls.model_validate(
|
|
114
|
-
"pulp_href": obj.get("pulp_href"),
|
|
115
|
-
"prn": obj.get("prn"),
|
|
116
|
-
"pulp_created": obj.get("pulp_created"),
|
|
117
|
-
"pulp_last_updated": obj.get("pulp_last_updated"),
|
|
118
|
-
"permissions_assignment": obj.get("permissions_assignment"),
|
|
119
|
-
"creation_hooks": obj.get("creation_hooks"),
|
|
120
|
-
"statements": obj.get("statements"),
|
|
121
|
-
"viewset_name": obj.get("viewset_name"),
|
|
122
|
-
"customized": obj.get("customized"),
|
|
123
|
-
"queryset_scoping": obj.get("queryset_scoping")
|
|
124
|
-
})
|
|
105
|
+
_obj = cls.model_validate(obj)
|
|
125
106
|
return _obj
|
|
126
107
|
|
|
127
108
|
|
|
@@ -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 AppStatusResponse(BaseModel):
|
|
36
28
|
"""
|
|
37
29
|
AppStatusResponse
|
|
@@ -97,11 +89,7 @@ class AppStatusResponse(BaseModel):
|
|
|
97
89
|
if not isinstance(obj, dict):
|
|
98
90
|
return cls.model_validate(obj)
|
|
99
91
|
|
|
100
|
-
_obj = cls.model_validate(
|
|
101
|
-
"name": obj.get("name"),
|
|
102
|
-
"last_heartbeat": obj.get("last_heartbeat"),
|
|
103
|
-
"versions": obj.get("versions")
|
|
104
|
-
})
|
|
92
|
+
_obj = cls.model_validate(obj)
|
|
105
93
|
return _obj
|
|
106
94
|
|
|
107
95
|
|
|
@@ -24,30 +24,22 @@ 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 ArtifactDistributionResponse(BaseModel):
|
|
36
28
|
"""
|
|
37
29
|
A serializer for ArtifactDistribution.
|
|
38
30
|
""" # noqa: E501
|
|
39
|
-
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.")
|
|
40
|
-
base_url: Optional[StrictStr] = Field(default=None, description="The URL for accessing the publication as defined by this distribution.")
|
|
41
|
-
pulp_href: Optional[StrictStr] = None
|
|
42
|
-
pulp_labels: Optional[Dict[str, Optional[StrictStr]]] = None
|
|
43
31
|
no_content_change_since: Optional[StrictStr] = Field(default=None, description="Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.")
|
|
44
|
-
hidden: Optional[StrictBool] = Field(default=False, description="Whether this distribution should be shown in the content app.")
|
|
45
|
-
prn: Optional[StrictStr] = Field(default=None, description="The Pulp Resource Name (PRN).")
|
|
46
|
-
content_guard: Optional[StrictStr] = Field(default=None, description="An optional content-guard.")
|
|
47
|
-
name: StrictStr = Field(description="A unique name. Ex, `rawhide` and `stable`.")
|
|
48
32
|
pulp_created: Optional[datetime] = Field(default=None, description="Timestamp of creation.")
|
|
33
|
+
pulp_labels: Optional[Dict[str, Optional[StrictStr]]] = None
|
|
34
|
+
name: StrictStr = Field(description="A unique name. Ex, `rawhide` and `stable`.")
|
|
35
|
+
base_url: Optional[StrictStr] = Field(default=None, description="The URL for accessing the publication as defined by this distribution.")
|
|
36
|
+
content_guard: Optional[StrictStr] = Field(default=None, description="An optional content-guard.")
|
|
49
37
|
base_path: StrictStr = Field(description="The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")")
|
|
50
|
-
|
|
38
|
+
prn: Optional[StrictStr] = Field(default=None, description="The Pulp Resource Name (PRN).")
|
|
39
|
+
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.")
|
|
40
|
+
pulp_href: Optional[StrictStr] = None
|
|
41
|
+
hidden: Optional[StrictBool] = Field(default=False, description="Whether this distribution should be shown in the content app.")
|
|
42
|
+
__properties: ClassVar[List[str]] = ["no_content_change_since", "pulp_created", "pulp_labels", "name", "base_url", "content_guard", "base_path", "prn", "pulp_last_updated", "pulp_href", "hidden"]
|
|
51
43
|
|
|
52
44
|
model_config = ConfigDict(
|
|
53
45
|
populate_by_name=True,
|
|
@@ -87,12 +79,12 @@ class ArtifactDistributionResponse(BaseModel):
|
|
|
87
79
|
* OpenAPI `readOnly` fields are excluded.
|
|
88
80
|
"""
|
|
89
81
|
excluded_fields: Set[str] = set([
|
|
90
|
-
"pulp_last_updated",
|
|
91
|
-
"base_url",
|
|
92
|
-
"pulp_href",
|
|
93
82
|
"no_content_change_since",
|
|
94
|
-
"prn",
|
|
95
83
|
"pulp_created",
|
|
84
|
+
"base_url",
|
|
85
|
+
"prn",
|
|
86
|
+
"pulp_last_updated",
|
|
87
|
+
"pulp_href",
|
|
96
88
|
])
|
|
97
89
|
|
|
98
90
|
_dict = self.model_dump(
|
|
@@ -116,19 +108,7 @@ class ArtifactDistributionResponse(BaseModel):
|
|
|
116
108
|
if not isinstance(obj, dict):
|
|
117
109
|
return cls.model_validate(obj)
|
|
118
110
|
|
|
119
|
-
_obj = cls.model_validate(
|
|
120
|
-
"pulp_last_updated": obj.get("pulp_last_updated"),
|
|
121
|
-
"base_url": obj.get("base_url"),
|
|
122
|
-
"pulp_href": obj.get("pulp_href"),
|
|
123
|
-
"pulp_labels": obj.get("pulp_labels"),
|
|
124
|
-
"no_content_change_since": obj.get("no_content_change_since"),
|
|
125
|
-
"hidden": obj.get("hidden") if obj.get("hidden") is not None else False,
|
|
126
|
-
"prn": obj.get("prn"),
|
|
127
|
-
"content_guard": obj.get("content_guard"),
|
|
128
|
-
"name": obj.get("name"),
|
|
129
|
-
"pulp_created": obj.get("pulp_created"),
|
|
130
|
-
"base_path": obj.get("base_path")
|
|
131
|
-
})
|
|
111
|
+
_obj = cls.model_validate(obj)
|
|
132
112
|
return _obj
|
|
133
113
|
|
|
134
114
|
|
|
@@ -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 ArtifactResponse(BaseModel):
|
|
36
28
|
"""
|
|
37
29
|
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.
|
|
@@ -138,20 +130,7 @@ class ArtifactResponse(BaseModel):
|
|
|
138
130
|
if not isinstance(obj, dict):
|
|
139
131
|
return cls.model_validate(obj)
|
|
140
132
|
|
|
141
|
-
_obj = cls.model_validate(
|
|
142
|
-
"pulp_href": obj.get("pulp_href"),
|
|
143
|
-
"prn": obj.get("prn"),
|
|
144
|
-
"pulp_created": obj.get("pulp_created"),
|
|
145
|
-
"pulp_last_updated": obj.get("pulp_last_updated"),
|
|
146
|
-
"file": obj.get("file"),
|
|
147
|
-
"size": obj.get("size"),
|
|
148
|
-
"md5": obj.get("md5"),
|
|
149
|
-
"sha1": obj.get("sha1"),
|
|
150
|
-
"sha224": obj.get("sha224"),
|
|
151
|
-
"sha256": obj.get("sha256"),
|
|
152
|
-
"sha384": obj.get("sha384"),
|
|
153
|
-
"sha512": obj.get("sha512")
|
|
154
|
-
})
|
|
133
|
+
_obj = cls.model_validate(obj)
|
|
155
134
|
return _obj
|
|
156
135
|
|
|
157
136
|
|
|
@@ -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
|
|
|
@@ -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 CompositeContentGuard(BaseModel):
|
|
36
28
|
"""
|
|
37
29
|
Base class for content guard serializers.
|
|
@@ -96,11 +88,7 @@ class CompositeContentGuard(BaseModel):
|
|
|
96
88
|
if not isinstance(obj, dict):
|
|
97
89
|
return cls.model_validate(obj)
|
|
98
90
|
|
|
99
|
-
_obj = cls.model_validate(
|
|
100
|
-
"name": obj.get("name"),
|
|
101
|
-
"description": obj.get("description"),
|
|
102
|
-
"guards": obj.get("guards")
|
|
103
|
-
})
|
|
91
|
+
_obj = cls.model_validate(obj)
|
|
104
92
|
return _obj
|
|
105
93
|
|
|
106
94
|
|
|
@@ -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 CompositeContentGuardResponse(BaseModel):
|
|
36
28
|
"""
|
|
37
29
|
Base class for content guard serializers.
|
|
@@ -108,15 +100,7 @@ class CompositeContentGuardResponse(BaseModel):
|
|
|
108
100
|
if not isinstance(obj, dict):
|
|
109
101
|
return cls.model_validate(obj)
|
|
110
102
|
|
|
111
|
-
_obj = cls.model_validate(
|
|
112
|
-
"pulp_href": obj.get("pulp_href"),
|
|
113
|
-
"prn": obj.get("prn"),
|
|
114
|
-
"pulp_created": obj.get("pulp_created"),
|
|
115
|
-
"pulp_last_updated": obj.get("pulp_last_updated"),
|
|
116
|
-
"name": obj.get("name"),
|
|
117
|
-
"description": obj.get("description"),
|
|
118
|
-
"guards": obj.get("guards")
|
|
119
|
-
})
|
|
103
|
+
_obj = cls.model_validate(obj)
|
|
120
104
|
return _obj
|
|
121
105
|
|
|
122
106
|
|
|
@@ -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 ContentGuardResponse(BaseModel):
|
|
36
28
|
"""
|
|
37
29
|
Base class for content guard serializers.
|
|
@@ -107,14 +99,7 @@ class ContentGuardResponse(BaseModel):
|
|
|
107
99
|
if not isinstance(obj, dict):
|
|
108
100
|
return cls.model_validate(obj)
|
|
109
101
|
|
|
110
|
-
_obj = cls.model_validate(
|
|
111
|
-
"pulp_href": obj.get("pulp_href"),
|
|
112
|
-
"prn": obj.get("prn"),
|
|
113
|
-
"pulp_created": obj.get("pulp_created"),
|
|
114
|
-
"pulp_last_updated": obj.get("pulp_last_updated"),
|
|
115
|
-
"name": obj.get("name"),
|
|
116
|
-
"description": obj.get("description")
|
|
117
|
-
})
|
|
102
|
+
_obj = cls.model_validate(obj)
|
|
118
103
|
return _obj
|
|
119
104
|
|
|
120
105
|
|
|
@@ -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 ContentRedirectContentGuard(BaseModel):
|
|
36
28
|
"""
|
|
37
29
|
A serializer for ContentRedirectContentGuard.
|
|
@@ -95,10 +87,7 @@ class ContentRedirectContentGuard(BaseModel):
|
|
|
95
87
|
if not isinstance(obj, dict):
|
|
96
88
|
return cls.model_validate(obj)
|
|
97
89
|
|
|
98
|
-
_obj = cls.model_validate(
|
|
99
|
-
"name": obj.get("name"),
|
|
100
|
-
"description": obj.get("description")
|
|
101
|
-
})
|
|
90
|
+
_obj = cls.model_validate(obj)
|
|
102
91
|
return _obj
|
|
103
92
|
|
|
104
93
|
|
|
@@ -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 ContentRedirectContentGuardResponse(BaseModel):
|
|
36
28
|
"""
|
|
37
29
|
A serializer for ContentRedirectContentGuard.
|
|
@@ -107,14 +99,7 @@ class ContentRedirectContentGuardResponse(BaseModel):
|
|
|
107
99
|
if not isinstance(obj, dict):
|
|
108
100
|
return cls.model_validate(obj)
|
|
109
101
|
|
|
110
|
-
_obj = cls.model_validate(
|
|
111
|
-
"pulp_href": obj.get("pulp_href"),
|
|
112
|
-
"prn": obj.get("prn"),
|
|
113
|
-
"pulp_created": obj.get("pulp_created"),
|
|
114
|
-
"pulp_last_updated": obj.get("pulp_last_updated"),
|
|
115
|
-
"name": obj.get("name"),
|
|
116
|
-
"description": obj.get("description")
|
|
117
|
-
})
|
|
102
|
+
_obj = cls.model_validate(obj)
|
|
118
103
|
return _obj
|
|
119
104
|
|
|
120
105
|
|
|
@@ -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 ContentSettingsResponse(BaseModel):
|
|
35
27
|
"""
|
|
36
28
|
Serializer for information about content-app-settings for the pulp instance
|
|
@@ -94,10 +86,7 @@ class ContentSettingsResponse(BaseModel):
|
|
|
94
86
|
if not isinstance(obj, dict):
|
|
95
87
|
return cls.model_validate(obj)
|
|
96
88
|
|
|
97
|
-
_obj = cls.model_validate(
|
|
98
|
-
"content_origin": obj.get("content_origin"),
|
|
99
|
-
"content_path_prefix": obj.get("content_path_prefix")
|
|
100
|
-
})
|
|
89
|
+
_obj = cls.model_validate(obj)
|
|
101
90
|
return _obj
|
|
102
91
|
|
|
103
92
|
|
|
@@ -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 DatabaseConnectionResponse(BaseModel):
|
|
35
27
|
"""
|
|
36
28
|
Serializer for the database connection information
|
|
@@ -88,9 +80,7 @@ class DatabaseConnectionResponse(BaseModel):
|
|
|
88
80
|
if not isinstance(obj, dict):
|
|
89
81
|
return cls.model_validate(obj)
|
|
90
82
|
|
|
91
|
-
_obj = cls.model_validate(
|
|
92
|
-
"connected": obj.get("connected")
|
|
93
|
-
})
|
|
83
|
+
_obj = cls.model_validate(obj)
|
|
94
84
|
return _obj
|
|
95
85
|
|
|
96
86
|
|
|
@@ -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 DistributionResponse(BaseModel):
|
|
36
28
|
"""
|
|
37
29
|
The Serializer for the Distribution model. The serializer deliberately omits the `publication` and `repository_version` field due to plugins typically requiring one or the other but not both. To include the ``publication`` field, it is recommended plugins define the field:: publication = DetailRelatedField( required=False, help_text=_(\"Publication to be served\"), view_name_pattern=r\"publications(-.*/.*)?-detail\", queryset=models.Publication.objects.exclude(complete=False), allow_null=True, ) To include the ``repository_version`` field, it is recommended plugins define the field:: repository_version = RepositoryVersionRelatedField( required=False, help_text=_(\"RepositoryVersion to be served\"), allow_null=True ) Additionally, the serializer omits the ``remote`` field, which is used for pull-through caching feature and only by plugins which use publications. Plugins implementing a pull-through caching should define the field in their derived serializer class like this:: remote = DetailRelatedField( required=False, help_text=_('Remote that can be used to fetch content when using pull-through caching.'), queryset=models.Remote.objects.all(), allow_null=True )
|
|
@@ -122,20 +114,7 @@ class DistributionResponse(BaseModel):
|
|
|
122
114
|
if not isinstance(obj, dict):
|
|
123
115
|
return cls.model_validate(obj)
|
|
124
116
|
|
|
125
|
-
_obj = cls.model_validate(
|
|
126
|
-
"pulp_href": obj.get("pulp_href"),
|
|
127
|
-
"prn": obj.get("prn"),
|
|
128
|
-
"pulp_created": obj.get("pulp_created"),
|
|
129
|
-
"pulp_last_updated": obj.get("pulp_last_updated"),
|
|
130
|
-
"base_path": obj.get("base_path"),
|
|
131
|
-
"base_url": obj.get("base_url"),
|
|
132
|
-
"content_guard": obj.get("content_guard"),
|
|
133
|
-
"no_content_change_since": obj.get("no_content_change_since"),
|
|
134
|
-
"hidden": obj.get("hidden") if obj.get("hidden") is not None else False,
|
|
135
|
-
"pulp_labels": obj.get("pulp_labels"),
|
|
136
|
-
"name": obj.get("name"),
|
|
137
|
-
"repository": obj.get("repository")
|
|
138
|
-
})
|
|
117
|
+
_obj = cls.model_validate(obj)
|
|
139
118
|
return _obj
|
|
140
119
|
|
|
141
120
|
|
|
@@ -25,14 +25,6 @@ from pulpcore.client.pulpcore.models.storage_class_enum import StorageClassEnum
|
|
|
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
|
-
|
|
36
28
|
class Domain(BaseModel):
|
|
37
29
|
"""
|
|
38
30
|
Serializer for Domain.
|
|
@@ -108,15 +100,7 @@ class Domain(BaseModel):
|
|
|
108
100
|
if not isinstance(obj, dict):
|
|
109
101
|
return cls.model_validate(obj)
|
|
110
102
|
|
|
111
|
-
_obj = cls.model_validate(
|
|
112
|
-
"name": obj.get("name"),
|
|
113
|
-
"description": obj.get("description"),
|
|
114
|
-
"pulp_labels": obj.get("pulp_labels"),
|
|
115
|
-
"storage_class": obj.get("storage_class"),
|
|
116
|
-
"storage_settings": obj.get("storage_settings"),
|
|
117
|
-
"redirect_to_object_storage": obj.get("redirect_to_object_storage") if obj.get("redirect_to_object_storage") is not None else True,
|
|
118
|
-
"hide_guarded_distributions": obj.get("hide_guarded_distributions") if obj.get("hide_guarded_distributions") is not None else False
|
|
119
|
-
})
|
|
103
|
+
_obj = cls.model_validate(obj)
|
|
120
104
|
return _obj
|
|
121
105
|
|
|
122
106
|
|
|
@@ -24,14 +24,6 @@ from pulpcore.client.pulpcore.models.storage_class_enum import StorageClassEnum
|
|
|
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 DomainBackendMigrator(BaseModel):
|
|
36
28
|
"""
|
|
37
29
|
Special serializer for performing a storage backend migration on a Domain.
|
|
@@ -90,10 +82,7 @@ class DomainBackendMigrator(BaseModel):
|
|
|
90
82
|
if not isinstance(obj, dict):
|
|
91
83
|
return cls.model_validate(obj)
|
|
92
84
|
|
|
93
|
-
_obj = cls.model_validate(
|
|
94
|
-
"storage_class": obj.get("storage_class"),
|
|
95
|
-
"storage_settings": obj.get("storage_settings")
|
|
96
|
-
})
|
|
85
|
+
_obj = cls.model_validate(obj)
|
|
97
86
|
return _obj
|
|
98
87
|
|
|
99
88
|
|
|
@@ -26,14 +26,6 @@ from pulpcore.client.pulpcore.models.storage_class_enum import StorageClassEnum
|
|
|
26
26
|
from typing import Optional, Set
|
|
27
27
|
from typing_extensions import Self
|
|
28
28
|
|
|
29
|
-
|
|
30
|
-
class OneOf:
|
|
31
|
-
@staticmethod
|
|
32
|
-
def from_dict(obj, *args, **kwargs):
|
|
33
|
-
"""Noop override to fix missing OneOf import/implementation."""
|
|
34
|
-
return obj
|
|
35
|
-
|
|
36
|
-
|
|
37
29
|
class DomainResponse(BaseModel):
|
|
38
30
|
"""
|
|
39
31
|
Serializer for Domain.
|
|
@@ -121,19 +113,7 @@ class DomainResponse(BaseModel):
|
|
|
121
113
|
if not isinstance(obj, dict):
|
|
122
114
|
return cls.model_validate(obj)
|
|
123
115
|
|
|
124
|
-
_obj = cls.model_validate(
|
|
125
|
-
"pulp_href": obj.get("pulp_href"),
|
|
126
|
-
"prn": obj.get("prn"),
|
|
127
|
-
"pulp_created": obj.get("pulp_created"),
|
|
128
|
-
"pulp_last_updated": obj.get("pulp_last_updated"),
|
|
129
|
-
"name": obj.get("name"),
|
|
130
|
-
"description": obj.get("description"),
|
|
131
|
-
"pulp_labels": obj.get("pulp_labels"),
|
|
132
|
-
"storage_class": obj.get("storage_class"),
|
|
133
|
-
"storage_settings": obj.get("storage_settings"),
|
|
134
|
-
"redirect_to_object_storage": obj.get("redirect_to_object_storage") if obj.get("redirect_to_object_storage") is not None else True,
|
|
135
|
-
"hide_guarded_distributions": obj.get("hide_guarded_distributions") if obj.get("hide_guarded_distributions") is not None else False
|
|
136
|
-
})
|
|
116
|
+
_obj = cls.model_validate(obj)
|
|
137
117
|
return _obj
|
|
138
118
|
|
|
139
119
|
|
|
@@ -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 EvaluationResponse(BaseModel):
|
|
35
27
|
"""
|
|
36
28
|
Results from evaluating a proposed parameter to a PulpImport call.
|
|
@@ -90,11 +82,7 @@ class EvaluationResponse(BaseModel):
|
|
|
90
82
|
if not isinstance(obj, dict):
|
|
91
83
|
return cls.model_validate(obj)
|
|
92
84
|
|
|
93
|
-
_obj = cls.model_validate(
|
|
94
|
-
"context": obj.get("context"),
|
|
95
|
-
"is_valid": obj.get("is_valid"),
|
|
96
|
-
"messages": obj.get("messages")
|
|
97
|
-
})
|
|
85
|
+
_obj = cls.model_validate(obj)
|
|
98
86
|
return _obj
|
|
99
87
|
|
|
100
88
|
|