pulpcore-client 3.88.0__py3-none-any.whl → 3.89.1__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 +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 +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.1.dist-info}/METADATA +2 -2
- {pulpcore_client-3.88.0.dist-info → pulpcore_client-3.89.1.dist-info}/RECORD +175 -175
- {pulpcore_client-3.88.0.dist-info → pulpcore_client-3.89.1.dist-info}/WHEEL +0 -0
- {pulpcore_client-3.88.0.dist-info → pulpcore_client-3.89.1.dist-info}/top_level.txt +0 -0
|
@@ -25,14 +25,6 @@ from typing_extensions import Annotated
|
|
|
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 NestedOpenPGPSignature(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.
|
|
@@ -115,14 +107,7 @@ class NestedOpenPGPSignature(BaseModel):
|
|
|
115
107
|
if not isinstance(obj, dict):
|
|
116
108
|
return cls.model_validate(obj)
|
|
117
109
|
|
|
118
|
-
_obj = cls.model_validate(
|
|
119
|
-
"issuer": obj.get("issuer"),
|
|
120
|
-
"created": obj.get("created"),
|
|
121
|
-
"expiration_time": obj.get("expiration_time"),
|
|
122
|
-
"signers_user_id": obj.get("signers_user_id"),
|
|
123
|
-
"key_expiration_time": obj.get("key_expiration_time"),
|
|
124
|
-
"expired": obj.get("expired")
|
|
125
|
-
})
|
|
110
|
+
_obj = cls.model_validate(obj)
|
|
126
111
|
return _obj
|
|
127
112
|
|
|
128
113
|
|
|
@@ -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 NestedOpenPGPSignatureResponse(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.
|
|
@@ -117,15 +109,7 @@ class NestedOpenPGPSignatureResponse(BaseModel):
|
|
|
117
109
|
if not isinstance(obj, dict):
|
|
118
110
|
return cls.model_validate(obj)
|
|
119
111
|
|
|
120
|
-
_obj = cls.model_validate(
|
|
121
|
-
"issuer": obj.get("issuer"),
|
|
122
|
-
"created": obj.get("created"),
|
|
123
|
-
"expiration_time": obj.get("expiration_time"),
|
|
124
|
-
"signers_user_id": obj.get("signers_user_id"),
|
|
125
|
-
"key_expiration_time": obj.get("key_expiration_time"),
|
|
126
|
-
"expired": obj.get("expired"),
|
|
127
|
-
"key_expired": obj.get("key_expired")
|
|
128
|
-
})
|
|
112
|
+
_obj = cls.model_validate(obj)
|
|
129
113
|
return _obj
|
|
130
114
|
|
|
131
115
|
|
|
@@ -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 NestedOpenPGPUserAttribute(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.
|
|
@@ -89,9 +81,7 @@ class NestedOpenPGPUserAttribute(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.nested_open_pgp_signature_response import N
|
|
|
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 NestedOpenPGPUserAttributeResponse(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.
|
|
@@ -98,10 +90,7 @@ class NestedOpenPGPUserAttributeResponse(BaseModel):
|
|
|
98
90
|
if not isinstance(obj, dict):
|
|
99
91
|
return cls.model_validate(obj)
|
|
100
92
|
|
|
101
|
-
_obj = cls.model_validate(
|
|
102
|
-
"sha256": obj.get("sha256"),
|
|
103
|
-
"signatures": [NestedOpenPGPSignatureResponse.from_dict(_item) for _item in obj["signatures"]] if obj.get("signatures") is not None else None
|
|
104
|
-
})
|
|
93
|
+
_obj = cls.model_validate(obj)
|
|
105
94
|
return _obj
|
|
106
95
|
|
|
107
96
|
|
|
@@ -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 NestedOpenPGPUserID(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.
|
|
@@ -89,9 +81,7 @@ class NestedOpenPGPUserID(BaseModel):
|
|
|
89
81
|
if not isinstance(obj, dict):
|
|
90
82
|
return cls.model_validate(obj)
|
|
91
83
|
|
|
92
|
-
_obj = cls.model_validate(
|
|
93
|
-
"user_id": obj.get("user_id")
|
|
94
|
-
})
|
|
84
|
+
_obj = cls.model_validate(obj)
|
|
95
85
|
return _obj
|
|
96
86
|
|
|
97
87
|
|
|
@@ -24,14 +24,6 @@ from pulpcore.client.pulpcore.models.nested_open_pgp_signature_response import N
|
|
|
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 NestedOpenPGPUserIDResponse(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.
|
|
@@ -97,10 +89,7 @@ class NestedOpenPGPUserIDResponse(BaseModel):
|
|
|
97
89
|
if not isinstance(obj, dict):
|
|
98
90
|
return cls.model_validate(obj)
|
|
99
91
|
|
|
100
|
-
_obj = cls.model_validate(
|
|
101
|
-
"user_id": obj.get("user_id"),
|
|
102
|
-
"signatures": [NestedOpenPGPSignatureResponse.from_dict(_item) for _item in obj["signatures"]] if obj.get("signatures") is not None else None
|
|
103
|
-
})
|
|
92
|
+
_obj = cls.model_validate(obj)
|
|
104
93
|
return _obj
|
|
105
94
|
|
|
106
95
|
|
|
@@ -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.pulpcore.models.nested_role_response import NestedRoleRespo
|
|
|
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
|
|
|
@@ -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 OpenPGPDistribution(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 )
|
|
@@ -110,15 +102,7 @@ class OpenPGPDistribution(BaseModel):
|
|
|
110
102
|
if not isinstance(obj, dict):
|
|
111
103
|
return cls.model_validate(obj)
|
|
112
104
|
|
|
113
|
-
_obj = cls.model_validate(
|
|
114
|
-
"base_path": obj.get("base_path"),
|
|
115
|
-
"content_guard": obj.get("content_guard"),
|
|
116
|
-
"hidden": obj.get("hidden") if obj.get("hidden") is not None else False,
|
|
117
|
-
"pulp_labels": obj.get("pulp_labels"),
|
|
118
|
-
"name": obj.get("name"),
|
|
119
|
-
"repository": obj.get("repository"),
|
|
120
|
-
"repository_version": obj.get("repository_version")
|
|
121
|
-
})
|
|
105
|
+
_obj = cls.model_validate(obj)
|
|
122
106
|
return _obj
|
|
123
107
|
|
|
124
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 OpenPGPDistributionResponse(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 )
|
|
@@ -128,21 +120,7 @@ class OpenPGPDistributionResponse(BaseModel):
|
|
|
128
120
|
if not isinstance(obj, dict):
|
|
129
121
|
return cls.model_validate(obj)
|
|
130
122
|
|
|
131
|
-
_obj = cls.model_validate(
|
|
132
|
-
"pulp_href": obj.get("pulp_href"),
|
|
133
|
-
"prn": obj.get("prn"),
|
|
134
|
-
"pulp_created": obj.get("pulp_created"),
|
|
135
|
-
"pulp_last_updated": obj.get("pulp_last_updated"),
|
|
136
|
-
"base_path": obj.get("base_path"),
|
|
137
|
-
"base_url": obj.get("base_url"),
|
|
138
|
-
"content_guard": obj.get("content_guard"),
|
|
139
|
-
"no_content_change_since": obj.get("no_content_change_since"),
|
|
140
|
-
"hidden": obj.get("hidden") if obj.get("hidden") is not None else False,
|
|
141
|
-
"pulp_labels": obj.get("pulp_labels"),
|
|
142
|
-
"name": obj.get("name"),
|
|
143
|
-
"repository": obj.get("repository"),
|
|
144
|
-
"repository_version": obj.get("repository_version")
|
|
145
|
-
})
|
|
123
|
+
_obj = cls.model_validate(obj)
|
|
146
124
|
return _obj
|
|
147
125
|
|
|
148
126
|
|
|
@@ -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 OpenPGPKeyring(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.
|
|
@@ -108,13 +100,7 @@ class OpenPGPKeyring(BaseModel):
|
|
|
108
100
|
if not isinstance(obj, dict):
|
|
109
101
|
return cls.model_validate(obj)
|
|
110
102
|
|
|
111
|
-
_obj = cls.model_validate(
|
|
112
|
-
"pulp_labels": obj.get("pulp_labels"),
|
|
113
|
-
"name": obj.get("name"),
|
|
114
|
-
"description": obj.get("description"),
|
|
115
|
-
"retain_repo_versions": obj.get("retain_repo_versions"),
|
|
116
|
-
"remote": obj.get("remote")
|
|
117
|
-
})
|
|
103
|
+
_obj = cls.model_validate(obj)
|
|
118
104
|
return _obj
|
|
119
105
|
|
|
120
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 OpenPGPKeyringResponse(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.
|
|
@@ -126,19 +118,7 @@ class OpenPGPKeyringResponse(BaseModel):
|
|
|
126
118
|
if not isinstance(obj, dict):
|
|
127
119
|
return cls.model_validate(obj)
|
|
128
120
|
|
|
129
|
-
_obj = cls.model_validate(
|
|
130
|
-
"pulp_href": obj.get("pulp_href"),
|
|
131
|
-
"prn": obj.get("prn"),
|
|
132
|
-
"pulp_created": obj.get("pulp_created"),
|
|
133
|
-
"pulp_last_updated": obj.get("pulp_last_updated"),
|
|
134
|
-
"versions_href": obj.get("versions_href"),
|
|
135
|
-
"pulp_labels": obj.get("pulp_labels"),
|
|
136
|
-
"latest_version_href": obj.get("latest_version_href"),
|
|
137
|
-
"name": obj.get("name"),
|
|
138
|
-
"description": obj.get("description"),
|
|
139
|
-
"retain_repo_versions": obj.get("retain_repo_versions"),
|
|
140
|
-
"remote": obj.get("remote")
|
|
141
|
-
})
|
|
121
|
+
_obj = cls.model_validate(obj)
|
|
142
122
|
return _obj
|
|
143
123
|
|
|
144
124
|
|
|
@@ -28,14 +28,6 @@ from pulpcore.client.pulpcore.models.nested_open_pgp_user_id_response import Nes
|
|
|
28
28
|
from typing import Optional, Set
|
|
29
29
|
from typing_extensions import Self
|
|
30
30
|
|
|
31
|
-
|
|
32
|
-
class OneOf:
|
|
33
|
-
@staticmethod
|
|
34
|
-
def from_dict(obj, *args, **kwargs):
|
|
35
|
-
"""Noop override to fix missing OneOf import/implementation."""
|
|
36
|
-
return obj
|
|
37
|
-
|
|
38
|
-
|
|
39
31
|
class OpenPGPPublicKeyResponse(BaseModel):
|
|
40
32
|
"""
|
|
41
33
|
A serializer for content types with no Artifact.
|
|
@@ -138,19 +130,7 @@ class OpenPGPPublicKeyResponse(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
|
-
"pulp_labels": obj.get("pulp_labels"),
|
|
147
|
-
"vuln_report": obj.get("vuln_report"),
|
|
148
|
-
"fingerprint": obj.get("fingerprint"),
|
|
149
|
-
"created": obj.get("created"),
|
|
150
|
-
"user_ids": [NestedOpenPGPUserIDResponse.from_dict(_item) for _item in obj["user_ids"]] if obj.get("user_ids") is not None else None,
|
|
151
|
-
"user_attributes": [NestedOpenPGPUserAttributeResponse.from_dict(_item) for _item in obj["user_attributes"]] if obj.get("user_attributes") is not None else None,
|
|
152
|
-
"public_subkeys": [NestedOpenPGPPublicSubkeyResponse.from_dict(_item) for _item in obj["public_subkeys"]] if obj.get("public_subkeys") is not None else None
|
|
153
|
-
})
|
|
133
|
+
_obj = cls.model_validate(obj)
|
|
154
134
|
return _obj
|
|
155
135
|
|
|
156
136
|
|
|
@@ -26,14 +26,6 @@ from pulpcore.client.pulpcore.models.nested_open_pgp_signature_response import N
|
|
|
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 OpenPGPPublicSubkeyResponse(BaseModel):
|
|
38
30
|
"""
|
|
39
31
|
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,18 +111,7 @@ class OpenPGPPublicSubkeyResponse(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
|
-
"pulp_labels": obj.get("pulp_labels"),
|
|
128
|
-
"vuln_report": obj.get("vuln_report"),
|
|
129
|
-
"fingerprint": obj.get("fingerprint"),
|
|
130
|
-
"created": obj.get("created"),
|
|
131
|
-
"signatures": [NestedOpenPGPSignatureResponse.from_dict(_item) for _item in obj["signatures"]] if obj.get("signatures") is not None else None,
|
|
132
|
-
"public_key": obj.get("public_key")
|
|
133
|
-
})
|
|
114
|
+
_obj = cls.model_validate(obj)
|
|
134
115
|
return _obj
|
|
135
116
|
|
|
136
117
|
|
|
@@ -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 OpenPGPSignatureResponse(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.
|
|
@@ -136,22 +128,7 @@ class OpenPGPSignatureResponse(BaseModel):
|
|
|
136
128
|
if not isinstance(obj, dict):
|
|
137
129
|
return cls.model_validate(obj)
|
|
138
130
|
|
|
139
|
-
_obj = cls.model_validate(
|
|
140
|
-
"pulp_href": obj.get("pulp_href"),
|
|
141
|
-
"prn": obj.get("prn"),
|
|
142
|
-
"pulp_created": obj.get("pulp_created"),
|
|
143
|
-
"pulp_last_updated": obj.get("pulp_last_updated"),
|
|
144
|
-
"pulp_labels": obj.get("pulp_labels"),
|
|
145
|
-
"vuln_report": obj.get("vuln_report"),
|
|
146
|
-
"issuer": obj.get("issuer"),
|
|
147
|
-
"created": obj.get("created"),
|
|
148
|
-
"expiration_time": obj.get("expiration_time"),
|
|
149
|
-
"signers_user_id": obj.get("signers_user_id"),
|
|
150
|
-
"key_expiration_time": obj.get("key_expiration_time"),
|
|
151
|
-
"expired": obj.get("expired"),
|
|
152
|
-
"key_expired": obj.get("key_expired"),
|
|
153
|
-
"signed_content": obj.get("signed_content")
|
|
154
|
-
})
|
|
131
|
+
_obj = cls.model_validate(obj)
|
|
155
132
|
return _obj
|
|
156
133
|
|
|
157
134
|
|
|
@@ -26,14 +26,6 @@ from pulpcore.client.pulpcore.models.nested_open_pgp_signature_response import N
|
|
|
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 OpenPGPUserAttributeResponse(BaseModel):
|
|
38
30
|
"""
|
|
39
31
|
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.
|
|
@@ -118,17 +110,7 @@ class OpenPGPUserAttributeResponse(BaseModel):
|
|
|
118
110
|
if not isinstance(obj, dict):
|
|
119
111
|
return cls.model_validate(obj)
|
|
120
112
|
|
|
121
|
-
_obj = cls.model_validate(
|
|
122
|
-
"pulp_href": obj.get("pulp_href"),
|
|
123
|
-
"prn": obj.get("prn"),
|
|
124
|
-
"pulp_created": obj.get("pulp_created"),
|
|
125
|
-
"pulp_last_updated": obj.get("pulp_last_updated"),
|
|
126
|
-
"pulp_labels": obj.get("pulp_labels"),
|
|
127
|
-
"vuln_report": obj.get("vuln_report"),
|
|
128
|
-
"sha256": obj.get("sha256"),
|
|
129
|
-
"signatures": [NestedOpenPGPSignatureResponse.from_dict(_item) for _item in obj["signatures"]] if obj.get("signatures") is not None else None,
|
|
130
|
-
"public_key": obj.get("public_key")
|
|
131
|
-
})
|
|
113
|
+
_obj = cls.model_validate(obj)
|
|
132
114
|
return _obj
|
|
133
115
|
|
|
134
116
|
|
|
@@ -25,14 +25,6 @@ from pulpcore.client.pulpcore.models.nested_open_pgp_signature_response import N
|
|
|
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 OpenPGPUserIDResponse(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.
|
|
@@ -117,17 +109,7 @@ class OpenPGPUserIDResponse(BaseModel):
|
|
|
117
109
|
if not isinstance(obj, dict):
|
|
118
110
|
return cls.model_validate(obj)
|
|
119
111
|
|
|
120
|
-
_obj = cls.model_validate(
|
|
121
|
-
"pulp_href": obj.get("pulp_href"),
|
|
122
|
-
"prn": obj.get("prn"),
|
|
123
|
-
"pulp_created": obj.get("pulp_created"),
|
|
124
|
-
"pulp_last_updated": obj.get("pulp_last_updated"),
|
|
125
|
-
"pulp_labels": obj.get("pulp_labels"),
|
|
126
|
-
"vuln_report": obj.get("vuln_report"),
|
|
127
|
-
"user_id": obj.get("user_id"),
|
|
128
|
-
"signatures": [NestedOpenPGPSignatureResponse.from_dict(_item) for _item in obj["signatures"]] if obj.get("signatures") is not None else None,
|
|
129
|
-
"public_key": obj.get("public_key")
|
|
130
|
-
})
|
|
112
|
+
_obj = cls.model_validate(obj)
|
|
131
113
|
return _obj
|
|
132
114
|
|
|
133
115
|
|
|
@@ -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 OrphansCleanup(BaseModel):
|
|
35
27
|
"""
|
|
36
28
|
OrphansCleanup
|
|
@@ -94,10 +86,7 @@ class OrphansCleanup(BaseModel):
|
|
|
94
86
|
if not isinstance(obj, dict):
|
|
95
87
|
return cls.model_validate(obj)
|
|
96
88
|
|
|
97
|
-
_obj = cls.model_validate(
|
|
98
|
-
"content_hrefs": obj.get("content_hrefs"),
|
|
99
|
-
"orphan_protection_time": obj.get("orphan_protection_time")
|
|
100
|
-
})
|
|
89
|
+
_obj = cls.model_validate(obj)
|
|
101
90
|
return _obj
|
|
102
91
|
|
|
103
92
|
|
|
@@ -24,14 +24,6 @@ from pulpcore.client.pulpcore.models.access_policy_response import AccessPolicyR
|
|
|
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 PaginatedAccessPolicyResponseList(BaseModel):
|
|
36
28
|
"""
|
|
37
29
|
PaginatedAccessPolicyResponseList
|
|
@@ -99,12 +91,7 @@ class PaginatedAccessPolicyResponseList(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": [AccessPolicyResponse.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.pulpcore.models.artifact_distribution_response import Artif
|
|
|
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 PaginatedArtifactDistributionResponseList(BaseModel):
|
|
36
28
|
"""
|
|
37
29
|
PaginatedArtifactDistributionResponseList
|
|
@@ -99,12 +91,7 @@ class PaginatedArtifactDistributionResponseList(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": [ArtifactDistributionResponse.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
|
|