pulpcore-client 3.87.1__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/tasks_api.py +6 -6
- 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 +11 -31
- 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 +8 -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.87.1.dist-info → pulpcore_client-3.89.0.dist-info}/METADATA +2 -2
- {pulpcore_client-3.87.1.dist-info → pulpcore_client-3.89.0.dist-info}/RECORD +176 -176
- {pulpcore_client-3.87.1.dist-info → pulpcore_client-3.89.0.dist-info}/WHEEL +0 -0
- {pulpcore_client-3.87.1.dist-info → pulpcore_client-3.89.0.dist-info}/top_level.txt +0 -0
|
@@ -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 TaskGroupOperationResponse(BaseModel):
|
|
35
27
|
"""
|
|
36
28
|
Serializer for asynchronous operations that return a task group.
|
|
@@ -88,9 +80,7 @@ class TaskGroupOperationResponse(BaseModel):
|
|
|
88
80
|
if not isinstance(obj, dict):
|
|
89
81
|
return cls.model_validate(obj)
|
|
90
82
|
|
|
91
|
-
_obj = cls.model_validate(
|
|
92
|
-
"task_group": obj.get("task_group")
|
|
93
|
-
})
|
|
83
|
+
_obj = cls.model_validate(obj)
|
|
94
84
|
return _obj
|
|
95
85
|
|
|
96
86
|
|
|
@@ -25,14 +25,6 @@ from pulpcore.client.pulpcore.models.minimal_task_response import MinimalTaskRes
|
|
|
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 TaskGroupResponse(BaseModel):
|
|
37
29
|
"""
|
|
38
30
|
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.
|
|
@@ -134,21 +126,7 @@ class TaskGroupResponse(BaseModel):
|
|
|
134
126
|
if not isinstance(obj, dict):
|
|
135
127
|
return cls.model_validate(obj)
|
|
136
128
|
|
|
137
|
-
_obj = cls.model_validate(
|
|
138
|
-
"pulp_href": obj.get("pulp_href"),
|
|
139
|
-
"prn": obj.get("prn"),
|
|
140
|
-
"description": obj.get("description"),
|
|
141
|
-
"all_tasks_dispatched": obj.get("all_tasks_dispatched"),
|
|
142
|
-
"waiting": obj.get("waiting"),
|
|
143
|
-
"skipped": obj.get("skipped"),
|
|
144
|
-
"running": obj.get("running"),
|
|
145
|
-
"completed": obj.get("completed"),
|
|
146
|
-
"canceled": obj.get("canceled"),
|
|
147
|
-
"failed": obj.get("failed"),
|
|
148
|
-
"canceling": obj.get("canceling"),
|
|
149
|
-
"group_progress_reports": [GroupProgressReportResponse.from_dict(_item) for _item in obj["group_progress_reports"]] if obj.get("group_progress_reports") is not None else None,
|
|
150
|
-
"tasks": [MinimalTaskResponse.from_dict(_item) for _item in obj["tasks"]] if obj.get("tasks") is not None else None
|
|
151
|
-
})
|
|
129
|
+
_obj = cls.model_validate(obj)
|
|
152
130
|
return _obj
|
|
153
131
|
|
|
154
132
|
|
|
@@ -25,14 +25,6 @@ from pulpcore.client.pulpcore.models.progress_report_response import ProgressRep
|
|
|
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 TaskResponse(BaseModel):
|
|
37
29
|
"""
|
|
38
30
|
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.
|
|
@@ -56,7 +48,8 @@ class TaskResponse(BaseModel):
|
|
|
56
48
|
progress_reports: Optional[List[ProgressReportResponse]] = None
|
|
57
49
|
created_resources: Optional[List[StrictStr]] = Field(default=None, description="Resources created by this task.")
|
|
58
50
|
reserved_resources_record: Optional[List[StrictStr]] = Field(default=None, description="A list of resources required by that task.")
|
|
59
|
-
|
|
51
|
+
result: Optional[Any] = None
|
|
52
|
+
__properties: ClassVar[List[str]] = ["pulp_href", "prn", "pulp_created", "pulp_last_updated", "state", "name", "logging_cid", "created_by", "unblocked_at", "started_at", "finished_at", "error", "worker", "parent_task", "child_tasks", "task_group", "progress_reports", "created_resources", "reserved_resources_record", "result"]
|
|
60
53
|
|
|
61
54
|
model_config = ConfigDict(
|
|
62
55
|
populate_by_name=True,
|
|
@@ -130,6 +123,11 @@ class TaskResponse(BaseModel):
|
|
|
130
123
|
if _item_progress_reports:
|
|
131
124
|
_items.append(_item_progress_reports.to_dict())
|
|
132
125
|
_dict['progress_reports'] = _items
|
|
126
|
+
# set to None if result (nullable) is None
|
|
127
|
+
# and model_fields_set contains the field
|
|
128
|
+
if self.result is None and "result" in self.model_fields_set:
|
|
129
|
+
_dict['result'] = None
|
|
130
|
+
|
|
133
131
|
return _dict
|
|
134
132
|
|
|
135
133
|
@classmethod
|
|
@@ -141,27 +139,7 @@ class TaskResponse(BaseModel):
|
|
|
141
139
|
if not isinstance(obj, dict):
|
|
142
140
|
return cls.model_validate(obj)
|
|
143
141
|
|
|
144
|
-
_obj = cls.model_validate(
|
|
145
|
-
"pulp_href": obj.get("pulp_href"),
|
|
146
|
-
"prn": obj.get("prn"),
|
|
147
|
-
"pulp_created": obj.get("pulp_created"),
|
|
148
|
-
"pulp_last_updated": obj.get("pulp_last_updated"),
|
|
149
|
-
"state": obj.get("state"),
|
|
150
|
-
"name": obj.get("name"),
|
|
151
|
-
"logging_cid": obj.get("logging_cid"),
|
|
152
|
-
"created_by": obj.get("created_by"),
|
|
153
|
-
"unblocked_at": obj.get("unblocked_at"),
|
|
154
|
-
"started_at": obj.get("started_at"),
|
|
155
|
-
"finished_at": obj.get("finished_at"),
|
|
156
|
-
"error": obj.get("error"),
|
|
157
|
-
"worker": obj.get("worker"),
|
|
158
|
-
"parent_task": obj.get("parent_task"),
|
|
159
|
-
"child_tasks": obj.get("child_tasks"),
|
|
160
|
-
"task_group": obj.get("task_group"),
|
|
161
|
-
"progress_reports": [ProgressReportResponse.from_dict(_item) for _item in obj["progress_reports"]] if obj.get("progress_reports") is not None else None,
|
|
162
|
-
"created_resources": obj.get("created_resources"),
|
|
163
|
-
"reserved_resources_record": obj.get("reserved_resources_record")
|
|
164
|
-
})
|
|
142
|
+
_obj = cls.model_validate(obj)
|
|
165
143
|
return _obj
|
|
166
144
|
|
|
167
145
|
|
|
@@ -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 TaskScheduleResponse(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.
|
|
@@ -119,17 +111,7 @@ class TaskScheduleResponse(BaseModel):
|
|
|
119
111
|
if not isinstance(obj, dict):
|
|
120
112
|
return cls.model_validate(obj)
|
|
121
113
|
|
|
122
|
-
_obj = cls.model_validate(
|
|
123
|
-
"pulp_href": obj.get("pulp_href"),
|
|
124
|
-
"prn": obj.get("prn"),
|
|
125
|
-
"pulp_created": obj.get("pulp_created"),
|
|
126
|
-
"pulp_last_updated": obj.get("pulp_last_updated"),
|
|
127
|
-
"name": obj.get("name"),
|
|
128
|
-
"task_name": obj.get("task_name"),
|
|
129
|
-
"dispatch_interval": obj.get("dispatch_interval"),
|
|
130
|
-
"next_dispatch": obj.get("next_dispatch"),
|
|
131
|
-
"last_task": obj.get("last_task")
|
|
132
|
-
})
|
|
114
|
+
_obj = cls.model_validate(obj)
|
|
133
115
|
return _obj
|
|
134
116
|
|
|
135
117
|
|
|
@@ -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 UnsetLabel(BaseModel):
|
|
36
28
|
"""
|
|
37
29
|
Serializer for synchronously UNsetting a label.
|
|
@@ -96,9 +88,7 @@ class UnsetLabel(BaseModel):
|
|
|
96
88
|
if not isinstance(obj, dict):
|
|
97
89
|
return cls.model_validate(obj)
|
|
98
90
|
|
|
99
|
-
_obj = cls.model_validate(
|
|
100
|
-
"key": obj.get("key")
|
|
101
|
-
})
|
|
91
|
+
_obj = cls.model_validate(obj)
|
|
102
92
|
return _obj
|
|
103
93
|
|
|
104
94
|
|
|
@@ -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 UnsetLabelResponse(BaseModel):
|
|
36
28
|
"""
|
|
37
29
|
Serializer for synchronously UNsetting a label.
|
|
@@ -99,10 +91,7 @@ class UnsetLabelResponse(BaseModel):
|
|
|
99
91
|
if not isinstance(obj, dict):
|
|
100
92
|
return cls.model_validate(obj)
|
|
101
93
|
|
|
102
|
-
_obj = cls.model_validate(
|
|
103
|
-
"key": obj.get("key"),
|
|
104
|
-
"value": obj.get("value")
|
|
105
|
-
})
|
|
94
|
+
_obj = cls.model_validate(obj)
|
|
106
95
|
return _obj
|
|
107
96
|
|
|
108
97
|
|
|
@@ -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 Upload(BaseModel):
|
|
35
27
|
"""
|
|
36
28
|
Serializer for chunked uploads.
|
|
@@ -88,9 +80,7 @@ class Upload(BaseModel):
|
|
|
88
80
|
if not isinstance(obj, dict):
|
|
89
81
|
return cls.model_validate(obj)
|
|
90
82
|
|
|
91
|
-
_obj = cls.model_validate(
|
|
92
|
-
"size": obj.get("size")
|
|
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, 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 UploadChunkResponse(BaseModel):
|
|
35
27
|
"""
|
|
36
28
|
A mixin for validating unknown serializers' fields.
|
|
@@ -93,10 +85,7 @@ class UploadChunkResponse(BaseModel):
|
|
|
93
85
|
if not isinstance(obj, dict):
|
|
94
86
|
return cls.model_validate(obj)
|
|
95
87
|
|
|
96
|
-
_obj = cls.model_validate(
|
|
97
|
-
"offset": obj.get("offset"),
|
|
98
|
-
"size": obj.get("size")
|
|
99
|
-
})
|
|
88
|
+
_obj = cls.model_validate(obj)
|
|
100
89
|
return _obj
|
|
101
90
|
|
|
102
91
|
|
|
@@ -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 UploadCommit(BaseModel):
|
|
36
28
|
"""
|
|
37
29
|
A mixin for validating unknown serializers' fields.
|
|
@@ -89,9 +81,7 @@ class UploadCommit(BaseModel):
|
|
|
89
81
|
if not isinstance(obj, dict):
|
|
90
82
|
return cls.model_validate(obj)
|
|
91
83
|
|
|
92
|
-
_obj = cls.model_validate(
|
|
93
|
-
"sha256": obj.get("sha256")
|
|
94
|
-
})
|
|
84
|
+
_obj = cls.model_validate(obj)
|
|
95
85
|
return _obj
|
|
96
86
|
|
|
97
87
|
|
|
@@ -25,14 +25,6 @@ from pulpcore.client.pulpcore.models.upload_chunk_response import UploadChunkRes
|
|
|
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 UploadDetailResponse(BaseModel):
|
|
37
29
|
"""
|
|
38
30
|
Serializer for chunked uploads.
|
|
@@ -113,15 +105,7 @@ class UploadDetailResponse(BaseModel):
|
|
|
113
105
|
if not isinstance(obj, dict):
|
|
114
106
|
return cls.model_validate(obj)
|
|
115
107
|
|
|
116
|
-
_obj = cls.model_validate(
|
|
117
|
-
"pulp_href": obj.get("pulp_href"),
|
|
118
|
-
"prn": obj.get("prn"),
|
|
119
|
-
"pulp_created": obj.get("pulp_created"),
|
|
120
|
-
"pulp_last_updated": obj.get("pulp_last_updated"),
|
|
121
|
-
"size": obj.get("size"),
|
|
122
|
-
"completed": obj.get("completed"),
|
|
123
|
-
"chunks": [UploadChunkResponse.from_dict(_item) for _item in obj["chunks"]] if obj.get("chunks") is not None else None
|
|
124
|
-
})
|
|
108
|
+
_obj = cls.model_validate(obj)
|
|
125
109
|
return _obj
|
|
126
110
|
|
|
127
111
|
|
|
@@ -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 UploadResponse(BaseModel):
|
|
36
28
|
"""
|
|
37
29
|
Serializer for chunked uploads.
|
|
@@ -104,14 +96,7 @@ class UploadResponse(BaseModel):
|
|
|
104
96
|
if not isinstance(obj, dict):
|
|
105
97
|
return cls.model_validate(obj)
|
|
106
98
|
|
|
107
|
-
_obj = cls.model_validate(
|
|
108
|
-
"pulp_href": obj.get("pulp_href"),
|
|
109
|
-
"prn": obj.get("prn"),
|
|
110
|
-
"pulp_created": obj.get("pulp_created"),
|
|
111
|
-
"pulp_last_updated": obj.get("pulp_last_updated"),
|
|
112
|
-
"size": obj.get("size"),
|
|
113
|
-
"completed": obj.get("completed")
|
|
114
|
-
})
|
|
99
|
+
_obj = cls.model_validate(obj)
|
|
115
100
|
return _obj
|
|
116
101
|
|
|
117
102
|
|
|
@@ -25,14 +25,6 @@ from pulpcore.client.pulpcore.models.policy357_enum import Policy357Enum
|
|
|
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 UpstreamPulp(BaseModel):
|
|
37
29
|
"""
|
|
38
30
|
Serializer for a Server.
|
|
@@ -136,20 +128,7 @@ class UpstreamPulp(BaseModel):
|
|
|
136
128
|
if not isinstance(obj, dict):
|
|
137
129
|
return cls.model_validate(obj)
|
|
138
130
|
|
|
139
|
-
_obj = cls.model_validate(
|
|
140
|
-
"name": obj.get("name"),
|
|
141
|
-
"base_url": obj.get("base_url"),
|
|
142
|
-
"api_root": obj.get("api_root"),
|
|
143
|
-
"domain": obj.get("domain"),
|
|
144
|
-
"ca_cert": obj.get("ca_cert"),
|
|
145
|
-
"client_cert": obj.get("client_cert"),
|
|
146
|
-
"client_key": obj.get("client_key"),
|
|
147
|
-
"tls_validation": obj.get("tls_validation"),
|
|
148
|
-
"username": obj.get("username"),
|
|
149
|
-
"password": obj.get("password"),
|
|
150
|
-
"q_select": obj.get("q_select"),
|
|
151
|
-
"policy": obj.get("policy")
|
|
152
|
-
})
|
|
131
|
+
_obj = cls.model_validate(obj)
|
|
153
132
|
return _obj
|
|
154
133
|
|
|
155
134
|
|
|
@@ -26,14 +26,6 @@ from pulpcore.client.pulpcore.models.policy357_enum import Policy357Enum
|
|
|
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 UpstreamPulpResponse(BaseModel):
|
|
38
30
|
"""
|
|
39
31
|
Serializer for a Server.
|
|
@@ -142,23 +134,7 @@ class UpstreamPulpResponse(BaseModel):
|
|
|
142
134
|
if not isinstance(obj, dict):
|
|
143
135
|
return cls.model_validate(obj)
|
|
144
136
|
|
|
145
|
-
_obj = cls.model_validate(
|
|
146
|
-
"pulp_href": obj.get("pulp_href"),
|
|
147
|
-
"prn": obj.get("prn"),
|
|
148
|
-
"pulp_created": obj.get("pulp_created"),
|
|
149
|
-
"pulp_last_updated": obj.get("pulp_last_updated"),
|
|
150
|
-
"name": obj.get("name"),
|
|
151
|
-
"base_url": obj.get("base_url"),
|
|
152
|
-
"api_root": obj.get("api_root"),
|
|
153
|
-
"domain": obj.get("domain"),
|
|
154
|
-
"ca_cert": obj.get("ca_cert"),
|
|
155
|
-
"client_cert": obj.get("client_cert"),
|
|
156
|
-
"tls_validation": obj.get("tls_validation"),
|
|
157
|
-
"hidden_fields": [GenericRemoteResponseHiddenFieldsInner.from_dict(_item) for _item in obj["hidden_fields"]] if obj.get("hidden_fields") is not None else None,
|
|
158
|
-
"q_select": obj.get("q_select"),
|
|
159
|
-
"last_replication": obj.get("last_replication"),
|
|
160
|
-
"policy": obj.get("policy")
|
|
161
|
-
})
|
|
137
|
+
_obj = cls.model_validate(obj)
|
|
162
138
|
return _obj
|
|
163
139
|
|
|
164
140
|
|
|
@@ -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 User(BaseModel):
|
|
36
28
|
"""
|
|
37
29
|
Serializer for User.
|
|
@@ -100,15 +92,7 @@ class User(BaseModel):
|
|
|
100
92
|
if not isinstance(obj, dict):
|
|
101
93
|
return cls.model_validate(obj)
|
|
102
94
|
|
|
103
|
-
_obj = cls.model_validate(
|
|
104
|
-
"username": obj.get("username"),
|
|
105
|
-
"password": obj.get("password"),
|
|
106
|
-
"first_name": obj.get("first_name"),
|
|
107
|
-
"last_name": obj.get("last_name"),
|
|
108
|
-
"email": obj.get("email"),
|
|
109
|
-
"is_staff": obj.get("is_staff") if obj.get("is_staff") is not None else False,
|
|
110
|
-
"is_active": obj.get("is_active") if obj.get("is_active") is not None else True
|
|
111
|
-
})
|
|
95
|
+
_obj = cls.model_validate(obj)
|
|
112
96
|
return _obj
|
|
113
97
|
|
|
114
98
|
|
|
@@ -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 UserGroup(BaseModel):
|
|
36
28
|
"""
|
|
37
29
|
Serializer for Groups that belong to an User.
|
|
@@ -89,9 +81,7 @@ class UserGroup(BaseModel):
|
|
|
89
81
|
if not isinstance(obj, dict):
|
|
90
82
|
return cls.model_validate(obj)
|
|
91
83
|
|
|
92
|
-
_obj = cls.model_validate(
|
|
93
|
-
"name": obj.get("name")
|
|
94
|
-
})
|
|
84
|
+
_obj = cls.model_validate(obj)
|
|
95
85
|
return _obj
|
|
96
86
|
|
|
97
87
|
|
|
@@ -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 UserGroupResponse(BaseModel):
|
|
36
28
|
"""
|
|
37
29
|
Serializer for Groups that belong to an User.
|
|
@@ -95,11 +87,7 @@ class UserGroupResponse(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
|
-
"pulp_href": obj.get("pulp_href"),
|
|
101
|
-
"prn": obj.get("prn")
|
|
102
|
-
})
|
|
90
|
+
_obj = cls.model_validate(obj)
|
|
103
91
|
return _obj
|
|
104
92
|
|
|
105
93
|
|
|
@@ -27,14 +27,6 @@ from pulpcore.client.pulpcore.models.user_group_response import UserGroupRespons
|
|
|
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 UserResponse(BaseModel):
|
|
39
31
|
"""
|
|
40
32
|
Serializer for User.
|
|
@@ -125,20 +117,7 @@ class UserResponse(BaseModel):
|
|
|
125
117
|
if not isinstance(obj, dict):
|
|
126
118
|
return cls.model_validate(obj)
|
|
127
119
|
|
|
128
|
-
_obj = cls.model_validate(
|
|
129
|
-
"pulp_href": obj.get("pulp_href"),
|
|
130
|
-
"prn": obj.get("prn"),
|
|
131
|
-
"id": obj.get("id"),
|
|
132
|
-
"username": obj.get("username"),
|
|
133
|
-
"first_name": obj.get("first_name"),
|
|
134
|
-
"last_name": obj.get("last_name"),
|
|
135
|
-
"email": obj.get("email"),
|
|
136
|
-
"is_staff": obj.get("is_staff") if obj.get("is_staff") is not None else False,
|
|
137
|
-
"is_active": obj.get("is_active") if obj.get("is_active") is not None else True,
|
|
138
|
-
"date_joined": obj.get("date_joined"),
|
|
139
|
-
"groups": [UserGroupResponse.from_dict(_item) for _item in obj["groups"]] if obj.get("groups") is not None else None,
|
|
140
|
-
"hidden_fields": [GenericRemoteResponseHiddenFieldsInner.from_dict(_item) for _item in obj["hidden_fields"]] if obj.get("hidden_fields") is not None else None
|
|
141
|
-
})
|
|
120
|
+
_obj = cls.model_validate(obj)
|
|
142
121
|
return _obj
|
|
143
122
|
|
|
144
123
|
|
|
@@ -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 UserRole(BaseModel):
|
|
36
28
|
"""
|
|
37
29
|
Serializer for UserRole.
|
|
@@ -107,12 +99,7 @@ class UserRole(BaseModel):
|
|
|
107
99
|
if not isinstance(obj, dict):
|
|
108
100
|
return cls.model_validate(obj)
|
|
109
101
|
|
|
110
|
-
_obj = cls.model_validate(
|
|
111
|
-
"role": obj.get("role"),
|
|
112
|
-
"content_object": obj.get("content_object"),
|
|
113
|
-
"content_object_prn": obj.get("content_object_prn"),
|
|
114
|
-
"domain": obj.get("domain")
|
|
115
|
-
})
|
|
102
|
+
_obj = cls.model_validate(obj)
|
|
116
103
|
return _obj
|
|
117
104
|
|
|
118
105
|
|
|
@@ -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 UserRoleResponse(BaseModel):
|
|
36
28
|
"""
|
|
37
29
|
Serializer for UserRole.
|
|
@@ -123,18 +115,7 @@ class UserRoleResponse(BaseModel):
|
|
|
123
115
|
if not isinstance(obj, dict):
|
|
124
116
|
return cls.model_validate(obj)
|
|
125
117
|
|
|
126
|
-
_obj = cls.model_validate(
|
|
127
|
-
"pulp_href": obj.get("pulp_href"),
|
|
128
|
-
"prn": obj.get("prn"),
|
|
129
|
-
"pulp_created": obj.get("pulp_created"),
|
|
130
|
-
"pulp_last_updated": obj.get("pulp_last_updated"),
|
|
131
|
-
"role": obj.get("role"),
|
|
132
|
-
"content_object": obj.get("content_object"),
|
|
133
|
-
"content_object_prn": obj.get("content_object_prn"),
|
|
134
|
-
"description": obj.get("description"),
|
|
135
|
-
"permissions": obj.get("permissions"),
|
|
136
|
-
"domain": obj.get("domain")
|
|
137
|
-
})
|
|
118
|
+
_obj = cls.model_validate(obj)
|
|
138
119
|
return _obj
|
|
139
120
|
|
|
140
121
|
|
|
@@ -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 VersionResponse(BaseModel):
|
|
35
27
|
"""
|
|
36
28
|
Serializer for the version information of Pulp components
|
|
@@ -92,13 +84,7 @@ class VersionResponse(BaseModel):
|
|
|
92
84
|
if not isinstance(obj, dict):
|
|
93
85
|
return cls.model_validate(obj)
|
|
94
86
|
|
|
95
|
-
_obj = cls.model_validate(
|
|
96
|
-
"component": obj.get("component"),
|
|
97
|
-
"version": obj.get("version"),
|
|
98
|
-
"package": obj.get("package"),
|
|
99
|
-
"module": obj.get("module"),
|
|
100
|
-
"domain_compatible": obj.get("domain_compatible")
|
|
101
|
-
})
|
|
87
|
+
_obj = cls.model_validate(obj)
|
|
102
88
|
return _obj
|
|
103
89
|
|
|
104
90
|
|