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
|
@@ -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 PulpExporterResponse(BaseModel):
|
|
36
28
|
"""
|
|
37
29
|
Serializer for pulp exporters.
|
|
@@ -109,16 +101,7 @@ class PulpExporterResponse(BaseModel):
|
|
|
109
101
|
if not isinstance(obj, dict):
|
|
110
102
|
return cls.model_validate(obj)
|
|
111
103
|
|
|
112
|
-
_obj = cls.model_validate(
|
|
113
|
-
"pulp_href": obj.get("pulp_href"),
|
|
114
|
-
"prn": obj.get("prn"),
|
|
115
|
-
"pulp_created": obj.get("pulp_created"),
|
|
116
|
-
"pulp_last_updated": obj.get("pulp_last_updated"),
|
|
117
|
-
"name": obj.get("name"),
|
|
118
|
-
"path": obj.get("path"),
|
|
119
|
-
"repositories": obj.get("repositories"),
|
|
120
|
-
"last_export": obj.get("last_export")
|
|
121
|
-
})
|
|
104
|
+
_obj = cls.model_validate(obj)
|
|
122
105
|
return _obj
|
|
123
106
|
|
|
124
107
|
|
|
@@ -24,14 +24,6 @@ from typing_extensions import Annotated
|
|
|
24
24
|
from typing import Optional, Set
|
|
25
25
|
from typing_extensions import Self
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
class OneOf:
|
|
29
|
-
@staticmethod
|
|
30
|
-
def from_dict(obj, *args, **kwargs):
|
|
31
|
-
"""Noop override to fix missing OneOf import/implementation."""
|
|
32
|
-
return obj
|
|
33
|
-
|
|
34
|
-
|
|
35
27
|
class PulpImport(BaseModel):
|
|
36
28
|
"""
|
|
37
29
|
Serializer for call to import into Pulp.
|
|
@@ -91,11 +83,7 @@ class PulpImport(BaseModel):
|
|
|
91
83
|
if not isinstance(obj, dict):
|
|
92
84
|
return cls.model_validate(obj)
|
|
93
85
|
|
|
94
|
-
_obj = cls.model_validate(
|
|
95
|
-
"path": obj.get("path"),
|
|
96
|
-
"toc": obj.get("toc"),
|
|
97
|
-
"create_repositories": obj.get("create_repositories") if obj.get("create_repositories") is not None else False
|
|
98
|
-
})
|
|
86
|
+
_obj = cls.model_validate(obj)
|
|
99
87
|
return _obj
|
|
100
88
|
|
|
101
89
|
|
|
@@ -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 PulpImportCheck(BaseModel):
|
|
36
28
|
"""
|
|
37
29
|
Check validity of provided import-options. Provides the ability to check that an import is 'sane' without having to actually create an importer.
|
|
@@ -91,11 +83,7 @@ class PulpImportCheck(BaseModel):
|
|
|
91
83
|
if not isinstance(obj, dict):
|
|
92
84
|
return cls.model_validate(obj)
|
|
93
85
|
|
|
94
|
-
_obj = cls.model_validate(
|
|
95
|
-
"path": obj.get("path"),
|
|
96
|
-
"toc": obj.get("toc"),
|
|
97
|
-
"repo_mapping": obj.get("repo_mapping")
|
|
98
|
-
})
|
|
86
|
+
_obj = cls.model_validate(obj)
|
|
99
87
|
return _obj
|
|
100
88
|
|
|
101
89
|
|
|
@@ -24,14 +24,6 @@ from pulpcore.client.pulpcore.models.evaluation_response import EvaluationRespon
|
|
|
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 PulpImportCheckResponse(BaseModel):
|
|
36
28
|
"""
|
|
37
29
|
Return the response to a PulpImport import-check call.
|
|
@@ -100,11 +92,7 @@ class PulpImportCheckResponse(BaseModel):
|
|
|
100
92
|
if not isinstance(obj, dict):
|
|
101
93
|
return cls.model_validate(obj)
|
|
102
94
|
|
|
103
|
-
_obj = cls.model_validate(
|
|
104
|
-
"toc": EvaluationResponse.from_dict(obj["toc"]) if obj.get("toc") is not None else None,
|
|
105
|
-
"path": EvaluationResponse.from_dict(obj["path"]) if obj.get("path") is not None else None,
|
|
106
|
-
"repo_mapping": EvaluationResponse.from_dict(obj["repo_mapping"]) if obj.get("repo_mapping") is not None else None
|
|
107
|
-
})
|
|
95
|
+
_obj = cls.model_validate(obj)
|
|
108
96
|
return _obj
|
|
109
97
|
|
|
110
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 PulpImporter(BaseModel):
|
|
36
28
|
"""
|
|
37
29
|
Serializer for PulpImporters.
|
|
@@ -90,10 +82,7 @@ class PulpImporter(BaseModel):
|
|
|
90
82
|
if not isinstance(obj, dict):
|
|
91
83
|
return cls.model_validate(obj)
|
|
92
84
|
|
|
93
|
-
_obj = cls.model_validate(
|
|
94
|
-
"name": obj.get("name"),
|
|
95
|
-
"repo_mapping": obj.get("repo_mapping")
|
|
96
|
-
})
|
|
85
|
+
_obj = cls.model_validate(obj)
|
|
97
86
|
return _obj
|
|
98
87
|
|
|
99
88
|
|
|
@@ -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 PulpImporterResponse(BaseModel):
|
|
36
28
|
"""
|
|
37
29
|
Serializer for PulpImporters.
|
|
@@ -102,14 +94,7 @@ class PulpImporterResponse(BaseModel):
|
|
|
102
94
|
if not isinstance(obj, dict):
|
|
103
95
|
return cls.model_validate(obj)
|
|
104
96
|
|
|
105
|
-
_obj = cls.model_validate(
|
|
106
|
-
"pulp_href": obj.get("pulp_href"),
|
|
107
|
-
"prn": obj.get("prn"),
|
|
108
|
-
"pulp_created": obj.get("pulp_created"),
|
|
109
|
-
"pulp_last_updated": obj.get("pulp_last_updated"),
|
|
110
|
-
"name": obj.get("name"),
|
|
111
|
-
"repo_mapping": obj.get("repo_mapping")
|
|
112
|
-
})
|
|
97
|
+
_obj = cls.model_validate(obj)
|
|
113
98
|
return _obj
|
|
114
99
|
|
|
115
100
|
|
|
@@ -25,14 +25,6 @@ from pulpcore.client.pulpcore.models.states_enum import StatesEnum
|
|
|
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 Purge(BaseModel):
|
|
37
29
|
"""
|
|
38
30
|
Purge
|
|
@@ -91,10 +83,7 @@ class Purge(BaseModel):
|
|
|
91
83
|
if not isinstance(obj, dict):
|
|
92
84
|
return cls.model_validate(obj)
|
|
93
85
|
|
|
94
|
-
_obj = cls.model_validate(
|
|
95
|
-
"finished_before": obj.get("finished_before"),
|
|
96
|
-
"states": obj.get("states")
|
|
97
|
-
})
|
|
86
|
+
_obj = cls.model_validate(obj)
|
|
98
87
|
return _obj
|
|
99
88
|
|
|
100
89
|
|
|
@@ -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 RBACContentGuard(BaseModel):
|
|
36
28
|
"""
|
|
37
29
|
Base class for content guard serializers.
|
|
@@ -95,10 +87,7 @@ class RBACContentGuard(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
|
|
|
@@ -26,14 +26,6 @@ from pulpcore.client.pulpcore.models.group_user_response import GroupUserRespons
|
|
|
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 RBACContentGuardResponse(BaseModel):
|
|
38
30
|
"""
|
|
39
31
|
Base class for content guard serializers.
|
|
@@ -125,16 +117,7 @@ class RBACContentGuardResponse(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
|
-
"pulp_created": obj.get("pulp_created"),
|
|
132
|
-
"pulp_last_updated": obj.get("pulp_last_updated"),
|
|
133
|
-
"name": obj.get("name"),
|
|
134
|
-
"description": obj.get("description"),
|
|
135
|
-
"users": [GroupUserResponse.from_dict(_item) for _item in obj["users"]] if obj.get("users") is not None else None,
|
|
136
|
-
"groups": [GroupResponse.from_dict(_item) for _item in obj["groups"]] if obj.get("groups") is not None else None
|
|
137
|
-
})
|
|
120
|
+
_obj = cls.model_validate(obj)
|
|
138
121
|
return _obj
|
|
139
122
|
|
|
140
123
|
|
|
@@ -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 ReclaimSpace(BaseModel):
|
|
35
27
|
"""
|
|
36
28
|
Serializer for reclaim disk space operation.
|
|
@@ -89,10 +81,7 @@ class ReclaimSpace(BaseModel):
|
|
|
89
81
|
if not isinstance(obj, dict):
|
|
90
82
|
return cls.model_validate(obj)
|
|
91
83
|
|
|
92
|
-
_obj = cls.model_validate(
|
|
93
|
-
"repo_hrefs": obj.get("repo_hrefs"),
|
|
94
|
-
"repo_versions_keeplist": obj.get("repo_versions_keeplist")
|
|
95
|
-
})
|
|
84
|
+
_obj = cls.model_validate(obj)
|
|
96
85
|
return _obj
|
|
97
86
|
|
|
98
87
|
|
|
@@ -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 RedisConnectionResponse(BaseModel):
|
|
35
27
|
"""
|
|
36
28
|
Serializer for information about the Redis connection
|
|
@@ -88,9 +80,7 @@ class RedisConnectionResponse(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
|
|
|
@@ -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 Repair(BaseModel):
|
|
35
27
|
"""
|
|
36
28
|
Repair
|
|
@@ -88,9 +80,7 @@ class Repair(BaseModel):
|
|
|
88
80
|
if not isinstance(obj, dict):
|
|
89
81
|
return cls.model_validate(obj)
|
|
90
82
|
|
|
91
|
-
_obj = cls.model_validate(
|
|
92
|
-
"verify_checksums": obj.get("verify_checksums") if obj.get("verify_checksums") is not None else True
|
|
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 RepositoryAddRemoveContent(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.
|
|
@@ -91,11 +83,7 @@ class RepositoryAddRemoveContent(BaseModel):
|
|
|
91
83
|
if not isinstance(obj, dict):
|
|
92
84
|
return cls.model_validate(obj)
|
|
93
85
|
|
|
94
|
-
_obj = cls.model_validate(
|
|
95
|
-
"add_content_units": obj.get("add_content_units"),
|
|
96
|
-
"remove_content_units": obj.get("remove_content_units"),
|
|
97
|
-
"base_version": obj.get("base_version")
|
|
98
|
-
})
|
|
86
|
+
_obj = cls.model_validate(obj)
|
|
99
87
|
return _obj
|
|
100
88
|
|
|
101
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 RepositoryResponse(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 RepositoryResponse(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
|
|
|
@@ -25,14 +25,6 @@ from pulpcore.client.pulpcore.models.content_summary_response import ContentSumm
|
|
|
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 RepositoryVersionResponse(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 RepositoryVersionResponse(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
|
-
"number": obj.get("number"),
|
|
126
|
-
"repository": obj.get("repository"),
|
|
127
|
-
"base_version": obj.get("base_version"),
|
|
128
|
-
"content_summary": ContentSummaryResponse.from_dict(obj["content_summary"]) if obj.get("content_summary") is not None else None,
|
|
129
|
-
"vuln_report": obj.get("vuln_report")
|
|
130
|
-
})
|
|
112
|
+
_obj = cls.model_validate(obj)
|
|
131
113
|
return _obj
|
|
132
114
|
|
|
133
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 Role(BaseModel):
|
|
36
28
|
"""
|
|
37
29
|
Serializer for Role.
|
|
@@ -96,11 +88,7 @@ class Role(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
|
-
"permissions": obj.get("permissions")
|
|
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 RoleResponse(BaseModel):
|
|
36
28
|
"""
|
|
37
29
|
Serializer for Role.
|
|
@@ -111,16 +103,7 @@ class RoleResponse(BaseModel):
|
|
|
111
103
|
if not isinstance(obj, dict):
|
|
112
104
|
return cls.model_validate(obj)
|
|
113
105
|
|
|
114
|
-
_obj = cls.model_validate(
|
|
115
|
-
"pulp_href": obj.get("pulp_href"),
|
|
116
|
-
"prn": obj.get("prn"),
|
|
117
|
-
"pulp_created": obj.get("pulp_created"),
|
|
118
|
-
"pulp_last_updated": obj.get("pulp_last_updated"),
|
|
119
|
-
"name": obj.get("name"),
|
|
120
|
-
"description": obj.get("description"),
|
|
121
|
-
"permissions": obj.get("permissions"),
|
|
122
|
-
"locked": obj.get("locked")
|
|
123
|
-
})
|
|
106
|
+
_obj = cls.model_validate(obj)
|
|
124
107
|
return _obj
|
|
125
108
|
|
|
126
109
|
|
|
@@ -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 SetLabel(BaseModel):
|
|
36
28
|
"""
|
|
37
29
|
Serializer for synchronously setting a label.
|
|
@@ -102,10 +94,7 @@ class SetLabel(BaseModel):
|
|
|
102
94
|
if not isinstance(obj, dict):
|
|
103
95
|
return cls.model_validate(obj)
|
|
104
96
|
|
|
105
|
-
_obj = cls.model_validate(
|
|
106
|
-
"key": obj.get("key"),
|
|
107
|
-
"value": obj.get("value")
|
|
108
|
-
})
|
|
97
|
+
_obj = cls.model_validate(obj)
|
|
109
98
|
return _obj
|
|
110
99
|
|
|
111
100
|
|
|
@@ -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 SetLabelResponse(BaseModel):
|
|
36
28
|
"""
|
|
37
29
|
Serializer for synchronously setting a label.
|
|
@@ -102,10 +94,7 @@ class SetLabelResponse(BaseModel):
|
|
|
102
94
|
if not isinstance(obj, dict):
|
|
103
95
|
return cls.model_validate(obj)
|
|
104
96
|
|
|
105
|
-
_obj = cls.model_validate(
|
|
106
|
-
"key": obj.get("key"),
|
|
107
|
-
"value": obj.get("value")
|
|
108
|
-
})
|
|
97
|
+
_obj = cls.model_validate(obj)
|
|
109
98
|
return _obj
|
|
110
99
|
|
|
111
100
|
|
|
@@ -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 SigningServiceResponse(BaseModel):
|
|
36
28
|
"""
|
|
37
29
|
A serializer for the model declaring a signing service.
|
|
@@ -104,16 +96,7 @@ class SigningServiceResponse(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
|
-
"name": obj.get("name"),
|
|
113
|
-
"public_key": obj.get("public_key"),
|
|
114
|
-
"pubkey_fingerprint": obj.get("pubkey_fingerprint"),
|
|
115
|
-
"script": obj.get("script")
|
|
116
|
-
})
|
|
99
|
+
_obj = cls.model_validate(obj)
|
|
117
100
|
return _obj
|
|
118
101
|
|
|
119
102
|
|
|
@@ -29,14 +29,6 @@ from pulpcore.client.pulpcore.models.version_response import VersionResponse
|
|
|
29
29
|
from typing import Optional, Set
|
|
30
30
|
from typing_extensions import Self
|
|
31
31
|
|
|
32
|
-
|
|
33
|
-
class OneOf:
|
|
34
|
-
@staticmethod
|
|
35
|
-
def from_dict(obj, *args, **kwargs):
|
|
36
|
-
"""Noop override to fix missing OneOf import/implementation."""
|
|
37
|
-
return obj
|
|
38
|
-
|
|
39
|
-
|
|
40
32
|
class StatusResponse(BaseModel):
|
|
41
33
|
"""
|
|
42
34
|
Serializer for the status information of the app
|
|
@@ -142,17 +134,7 @@ class StatusResponse(BaseModel):
|
|
|
142
134
|
if not isinstance(obj, dict):
|
|
143
135
|
return cls.model_validate(obj)
|
|
144
136
|
|
|
145
|
-
_obj = cls.model_validate(
|
|
146
|
-
"versions": [VersionResponse.from_dict(_item) for _item in obj["versions"]] if obj.get("versions") is not None else None,
|
|
147
|
-
"online_workers": [AppStatusResponse.from_dict(_item) for _item in obj["online_workers"]] if obj.get("online_workers") is not None else None,
|
|
148
|
-
"online_api_apps": [AppStatusResponse.from_dict(_item) for _item in obj["online_api_apps"]] if obj.get("online_api_apps") is not None else None,
|
|
149
|
-
"online_content_apps": [AppStatusResponse.from_dict(_item) for _item in obj["online_content_apps"]] if obj.get("online_content_apps") is not None else None,
|
|
150
|
-
"database_connection": DatabaseConnectionResponse.from_dict(obj["database_connection"]) if obj.get("database_connection") is not None else None,
|
|
151
|
-
"redis_connection": RedisConnectionResponse.from_dict(obj["redis_connection"]) if obj.get("redis_connection") is not None else None,
|
|
152
|
-
"storage": StorageResponse.from_dict(obj["storage"]) if obj.get("storage") is not None else None,
|
|
153
|
-
"content_settings": ContentSettingsResponse.from_dict(obj["content_settings"]) if obj.get("content_settings") is not None else None,
|
|
154
|
-
"domain_enabled": obj.get("domain_enabled")
|
|
155
|
-
})
|
|
137
|
+
_obj = cls.model_validate(obj)
|
|
156
138
|
return _obj
|
|
157
139
|
|
|
158
140
|
|
|
@@ -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 StorageResponse(BaseModel):
|
|
35
27
|
"""
|
|
36
28
|
Serializer for information about the storage system
|
|
@@ -105,11 +97,7 @@ class StorageResponse(BaseModel):
|
|
|
105
97
|
if not isinstance(obj, dict):
|
|
106
98
|
return cls.model_validate(obj)
|
|
107
99
|
|
|
108
|
-
_obj = cls.model_validate(
|
|
109
|
-
"total": obj.get("total"),
|
|
110
|
-
"used": obj.get("used"),
|
|
111
|
-
"free": obj.get("free")
|
|
112
|
-
})
|
|
100
|
+
_obj = cls.model_validate(obj)
|
|
113
101
|
return _obj
|
|
114
102
|
|
|
115
103
|
|