pulpcore-client 3.85.1__py3-none-any.whl → 3.87.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 +469 -234
- pulpcore/client/pulpcore/api/tasks_api.py +6 -6
- pulpcore/client/pulpcore/api/workers_api.py +12 -12
- pulpcore/client/pulpcore/api_client.py +6 -2
- pulpcore/client/pulpcore/configuration.py +10 -3
- pulpcore/client/pulpcore/exceptions.py +17 -0
- pulpcore/client/pulpcore/models/__init__.py +1 -2
- pulpcore/client/pulpcore/models/access_policy.py +8 -0
- pulpcore/client/pulpcore/models/access_policy_response.py +8 -0
- pulpcore/client/pulpcore/models/{api_app_status_response.py → app_status_response.py} +12 -4
- pulpcore/client/pulpcore/models/artifact_distribution_response.py +22 -14
- pulpcore/client/pulpcore/models/artifact_response.py +8 -0
- pulpcore/client/pulpcore/models/async_operation_response.py +8 -0
- pulpcore/client/pulpcore/models/composite_content_guard.py +8 -0
- pulpcore/client/pulpcore/models/composite_content_guard_response.py +8 -0
- pulpcore/client/pulpcore/models/content_guard_response.py +8 -0
- pulpcore/client/pulpcore/models/content_redirect_content_guard.py +8 -0
- pulpcore/client/pulpcore/models/content_redirect_content_guard_response.py +8 -0
- pulpcore/client/pulpcore/models/content_settings_response.py +8 -0
- pulpcore/client/pulpcore/models/content_summary_response.py +8 -0
- pulpcore/client/pulpcore/models/database_connection_response.py +8 -0
- pulpcore/client/pulpcore/models/distribution_response.py +8 -0
- pulpcore/client/pulpcore/models/domain.py +8 -0
- pulpcore/client/pulpcore/models/domain_backend_migrator.py +8 -0
- pulpcore/client/pulpcore/models/domain_response.py +8 -0
- pulpcore/client/pulpcore/models/evaluation_response.py +8 -0
- pulpcore/client/pulpcore/models/filesystem_export.py +8 -0
- pulpcore/client/pulpcore/models/filesystem_export_response.py +8 -0
- pulpcore/client/pulpcore/models/filesystem_exporter.py +8 -0
- pulpcore/client/pulpcore/models/filesystem_exporter_response.py +8 -0
- pulpcore/client/pulpcore/models/generic_remote_response.py +8 -0
- pulpcore/client/pulpcore/models/generic_remote_response_hidden_fields_inner.py +8 -0
- pulpcore/client/pulpcore/models/group.py +8 -0
- pulpcore/client/pulpcore/models/group_progress_report_response.py +8 -0
- pulpcore/client/pulpcore/models/group_response.py +8 -0
- pulpcore/client/pulpcore/models/group_role.py +8 -0
- pulpcore/client/pulpcore/models/group_role_response.py +8 -0
- pulpcore/client/pulpcore/models/group_user.py +8 -0
- pulpcore/client/pulpcore/models/group_user_response.py +8 -0
- pulpcore/client/pulpcore/models/header_content_guard.py +8 -0
- pulpcore/client/pulpcore/models/header_content_guard_response.py +8 -0
- pulpcore/client/pulpcore/models/import_response.py +8 -0
- pulpcore/client/pulpcore/models/login_response.py +8 -0
- pulpcore/client/pulpcore/models/minimal_task_response.py +8 -0
- pulpcore/client/pulpcore/models/multiple_artifact_content_response.py +8 -0
- pulpcore/client/pulpcore/models/my_permissions_response.py +8 -0
- pulpcore/client/pulpcore/models/nested_open_pgp_public_subkey.py +8 -0
- pulpcore/client/pulpcore/models/nested_open_pgp_public_subkey_response.py +8 -0
- pulpcore/client/pulpcore/models/nested_open_pgp_signature.py +8 -0
- pulpcore/client/pulpcore/models/nested_open_pgp_signature_response.py +8 -0
- pulpcore/client/pulpcore/models/nested_open_pgp_user_attribute.py +8 -0
- pulpcore/client/pulpcore/models/nested_open_pgp_user_attribute_response.py +8 -0
- pulpcore/client/pulpcore/models/nested_open_pgp_user_id.py +8 -0
- pulpcore/client/pulpcore/models/nested_open_pgp_user_id_response.py +8 -0
- pulpcore/client/pulpcore/models/nested_role.py +8 -0
- pulpcore/client/pulpcore/models/nested_role_response.py +8 -0
- pulpcore/client/pulpcore/models/object_roles_response.py +8 -0
- pulpcore/client/pulpcore/models/open_pgp_distribution.py +8 -0
- pulpcore/client/pulpcore/models/open_pgp_distribution_response.py +8 -0
- pulpcore/client/pulpcore/models/open_pgp_keyring.py +8 -0
- pulpcore/client/pulpcore/models/open_pgp_keyring_response.py +8 -0
- pulpcore/client/pulpcore/models/open_pgp_public_key_response.py +8 -0
- pulpcore/client/pulpcore/models/open_pgp_public_subkey_response.py +8 -0
- pulpcore/client/pulpcore/models/open_pgp_signature_response.py +8 -0
- pulpcore/client/pulpcore/models/open_pgp_user_attribute_response.py +8 -0
- pulpcore/client/pulpcore/models/open_pgp_user_id_response.py +8 -0
- pulpcore/client/pulpcore/models/orphans_cleanup.py +8 -0
- pulpcore/client/pulpcore/models/paginated_access_policy_response_list.py +8 -0
- pulpcore/client/pulpcore/models/paginated_artifact_distribution_response_list.py +8 -0
- pulpcore/client/pulpcore/models/paginated_artifact_response_list.py +8 -0
- pulpcore/client/pulpcore/models/paginated_composite_content_guard_response_list.py +8 -0
- pulpcore/client/pulpcore/models/paginated_content_guard_response_list.py +8 -0
- pulpcore/client/pulpcore/models/paginated_content_redirect_content_guard_response_list.py +8 -0
- pulpcore/client/pulpcore/models/paginated_distribution_response_list.py +8 -0
- pulpcore/client/pulpcore/models/paginated_domain_response_list.py +8 -0
- pulpcore/client/pulpcore/models/paginated_filesystem_export_response_list.py +8 -0
- pulpcore/client/pulpcore/models/paginated_filesystem_exporter_response_list.py +8 -0
- pulpcore/client/pulpcore/models/paginated_generic_remote_response_list.py +8 -0
- pulpcore/client/pulpcore/models/paginated_group_response_list.py +8 -0
- pulpcore/client/pulpcore/models/paginated_group_role_response_list.py +8 -0
- pulpcore/client/pulpcore/models/paginated_group_user_response_list.py +8 -0
- pulpcore/client/pulpcore/models/paginated_header_content_guard_response_list.py +8 -0
- pulpcore/client/pulpcore/models/paginated_import_response_list.py +8 -0
- pulpcore/client/pulpcore/models/paginated_multiple_artifact_content_response_list.py +8 -0
- pulpcore/client/pulpcore/models/paginated_open_pgp_distribution_response_list.py +8 -0
- pulpcore/client/pulpcore/models/paginated_open_pgp_keyring_response_list.py +8 -0
- pulpcore/client/pulpcore/models/paginated_open_pgp_public_key_response_list.py +8 -0
- pulpcore/client/pulpcore/models/paginated_open_pgp_public_subkey_response_list.py +8 -0
- pulpcore/client/pulpcore/models/paginated_open_pgp_signature_response_list.py +8 -0
- pulpcore/client/pulpcore/models/paginated_open_pgp_user_attribute_response_list.py +8 -0
- pulpcore/client/pulpcore/models/paginated_open_pgp_user_id_response_list.py +8 -0
- pulpcore/client/pulpcore/models/paginated_publication_response_list.py +8 -0
- pulpcore/client/pulpcore/models/paginated_pulp_export_response_list.py +8 -0
- pulpcore/client/pulpcore/models/paginated_pulp_exporter_response_list.py +8 -0
- pulpcore/client/pulpcore/models/paginated_pulp_importer_response_list.py +8 -0
- pulpcore/client/pulpcore/models/paginated_rbac_content_guard_response_list.py +8 -0
- pulpcore/client/pulpcore/models/paginated_repository_response_list.py +8 -0
- pulpcore/client/pulpcore/models/paginated_repository_version_response_list.py +8 -0
- pulpcore/client/pulpcore/models/paginated_role_response_list.py +8 -0
- pulpcore/client/pulpcore/models/paginated_signing_service_response_list.py +8 -0
- pulpcore/client/pulpcore/models/paginated_task_group_response_list.py +8 -0
- pulpcore/client/pulpcore/models/paginated_task_response_list.py +8 -0
- pulpcore/client/pulpcore/models/paginated_task_schedule_response_list.py +8 -0
- pulpcore/client/pulpcore/models/paginated_upload_response_list.py +8 -0
- pulpcore/client/pulpcore/models/paginated_upstream_pulp_response_list.py +8 -0
- pulpcore/client/pulpcore/models/paginated_user_response_list.py +8 -0
- pulpcore/client/pulpcore/models/paginated_user_role_response_list.py +8 -0
- pulpcore/client/pulpcore/models/paginated_vulnerability_report_response_list.py +8 -0
- pulpcore/client/pulpcore/models/paginated_worker_response_list.py +8 -0
- pulpcore/client/pulpcore/models/patched_access_policy.py +8 -0
- pulpcore/client/pulpcore/models/patched_composite_content_guard.py +8 -0
- pulpcore/client/pulpcore/models/patched_content_redirect_content_guard.py +8 -0
- pulpcore/client/pulpcore/models/patched_domain.py +8 -0
- pulpcore/client/pulpcore/models/patched_filesystem_exporter.py +8 -0
- pulpcore/client/pulpcore/models/patched_group.py +8 -0
- pulpcore/client/pulpcore/models/patched_header_content_guard.py +8 -0
- pulpcore/client/pulpcore/models/patched_open_pgp_distribution.py +8 -0
- pulpcore/client/pulpcore/models/patched_open_pgp_keyring.py +8 -0
- pulpcore/client/pulpcore/models/patched_pulp_exporter.py +8 -0
- pulpcore/client/pulpcore/models/patched_pulp_importer.py +8 -0
- pulpcore/client/pulpcore/models/patched_rbac_content_guard.py +8 -0
- pulpcore/client/pulpcore/models/patched_role.py +8 -0
- pulpcore/client/pulpcore/models/patched_task_cancel.py +8 -0
- pulpcore/client/pulpcore/models/patched_upstream_pulp.py +8 -0
- pulpcore/client/pulpcore/models/patched_user.py +8 -0
- pulpcore/client/pulpcore/models/profile_artifact_response.py +8 -0
- pulpcore/client/pulpcore/models/progress_report_response.py +8 -0
- pulpcore/client/pulpcore/models/publication_response.py +8 -0
- pulpcore/client/pulpcore/models/pulp_export.py +8 -0
- pulpcore/client/pulpcore/models/pulp_export_response.py +8 -0
- pulpcore/client/pulpcore/models/pulp_exporter.py +8 -0
- pulpcore/client/pulpcore/models/pulp_exporter_response.py +8 -0
- pulpcore/client/pulpcore/models/pulp_import.py +8 -0
- pulpcore/client/pulpcore/models/pulp_import_check.py +8 -0
- pulpcore/client/pulpcore/models/pulp_import_check_response.py +8 -0
- pulpcore/client/pulpcore/models/pulp_importer.py +8 -0
- pulpcore/client/pulpcore/models/pulp_importer_response.py +8 -0
- pulpcore/client/pulpcore/models/purge.py +8 -0
- pulpcore/client/pulpcore/models/rbac_content_guard.py +8 -0
- pulpcore/client/pulpcore/models/rbac_content_guard_response.py +8 -0
- pulpcore/client/pulpcore/models/reclaim_space.py +8 -0
- pulpcore/client/pulpcore/models/redis_connection_response.py +8 -0
- pulpcore/client/pulpcore/models/repair.py +8 -0
- pulpcore/client/pulpcore/models/repository_add_remove_content.py +8 -0
- pulpcore/client/pulpcore/models/repository_response.py +8 -0
- pulpcore/client/pulpcore/models/repository_version_response.py +8 -0
- pulpcore/client/pulpcore/models/role.py +8 -0
- pulpcore/client/pulpcore/models/role_response.py +8 -0
- pulpcore/client/pulpcore/models/set_label.py +8 -0
- pulpcore/client/pulpcore/models/set_label_response.py +8 -0
- pulpcore/client/pulpcore/models/signing_service_response.py +8 -0
- pulpcore/client/pulpcore/models/status_response.py +15 -9
- pulpcore/client/pulpcore/models/storage_response.py +8 -0
- pulpcore/client/pulpcore/models/task_group_operation_response.py +8 -0
- pulpcore/client/pulpcore/models/task_group_response.py +8 -0
- pulpcore/client/pulpcore/models/task_response.py +8 -0
- pulpcore/client/pulpcore/models/task_schedule_response.py +8 -0
- pulpcore/client/pulpcore/models/unset_label.py +8 -0
- pulpcore/client/pulpcore/models/unset_label_response.py +8 -0
- pulpcore/client/pulpcore/models/upload.py +8 -0
- pulpcore/client/pulpcore/models/upload_chunk_response.py +8 -0
- pulpcore/client/pulpcore/models/upload_commit.py +8 -0
- pulpcore/client/pulpcore/models/upload_detail_response.py +8 -0
- pulpcore/client/pulpcore/models/upload_response.py +8 -0
- pulpcore/client/pulpcore/models/upstream_pulp.py +8 -0
- pulpcore/client/pulpcore/models/upstream_pulp_response.py +8 -0
- pulpcore/client/pulpcore/models/user.py +8 -0
- pulpcore/client/pulpcore/models/user_group.py +8 -0
- pulpcore/client/pulpcore/models/user_group_response.py +8 -0
- pulpcore/client/pulpcore/models/user_response.py +8 -0
- pulpcore/client/pulpcore/models/user_role.py +8 -0
- pulpcore/client/pulpcore/models/user_role_response.py +8 -0
- pulpcore/client/pulpcore/models/version_response.py +8 -0
- pulpcore/client/pulpcore/models/vulnerability_report_response.py +8 -0
- pulpcore/client/pulpcore/models/worker_response.py +8 -0
- pulpcore/client/pulpcore/rest.py +1 -0
- pulpcore_client-3.87.0.dist-info/METADATA +572 -0
- pulpcore_client-3.87.0.dist-info/RECORD +238 -0
- pulpcore/client/pulpcore/models/content_app_status_response.py +0 -99
- pulpcore_client-3.85.1.dist-info/METADATA +0 -17
- pulpcore_client-3.85.1.dist-info/RECORD +0 -239
- {pulpcore_client-3.85.1.dist-info → pulpcore_client-3.87.0.dist-info}/WHEEL +0 -0
- {pulpcore_client-3.85.1.dist-info → pulpcore_client-3.87.0.dist-info}/top_level.txt +0 -0
|
@@ -24,6 +24,14 @@ 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
|
+
|
|
27
35
|
class RepositoryResponse(BaseModel):
|
|
28
36
|
"""
|
|
29
37
|
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.
|
|
@@ -25,6 +25,14 @@ 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
|
+
|
|
28
36
|
class RepositoryVersionResponse(BaseModel):
|
|
29
37
|
"""
|
|
30
38
|
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.
|
|
@@ -24,6 +24,14 @@ 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
|
+
|
|
27
35
|
class Role(BaseModel):
|
|
28
36
|
"""
|
|
29
37
|
Serializer for Role.
|
|
@@ -24,6 +24,14 @@ 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
|
+
|
|
27
35
|
class RoleResponse(BaseModel):
|
|
28
36
|
"""
|
|
29
37
|
Serializer for Role.
|
|
@@ -24,6 +24,14 @@ 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
|
+
|
|
27
35
|
class SetLabel(BaseModel):
|
|
28
36
|
"""
|
|
29
37
|
Serializer for synchronously setting a label.
|
|
@@ -24,6 +24,14 @@ 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
|
+
|
|
27
35
|
class SetLabelResponse(BaseModel):
|
|
28
36
|
"""
|
|
29
37
|
Serializer for synchronously setting a label.
|
|
@@ -24,6 +24,14 @@ 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
|
+
|
|
27
35
|
class SigningServiceResponse(BaseModel):
|
|
28
36
|
"""
|
|
29
37
|
A serializer for the model declaring a signing service.
|
|
@@ -20,25 +20,31 @@ import json
|
|
|
20
20
|
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, Field, StrictBool
|
|
22
22
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
23
|
-
from pulpcore.client.pulpcore.models.
|
|
24
|
-
from pulpcore.client.pulpcore.models.content_app_status_response import ContentAppStatusResponse
|
|
23
|
+
from pulpcore.client.pulpcore.models.app_status_response import AppStatusResponse
|
|
25
24
|
from pulpcore.client.pulpcore.models.content_settings_response import ContentSettingsResponse
|
|
26
25
|
from pulpcore.client.pulpcore.models.database_connection_response import DatabaseConnectionResponse
|
|
27
26
|
from pulpcore.client.pulpcore.models.redis_connection_response import RedisConnectionResponse
|
|
28
27
|
from pulpcore.client.pulpcore.models.storage_response import StorageResponse
|
|
29
28
|
from pulpcore.client.pulpcore.models.version_response import VersionResponse
|
|
30
|
-
from pulpcore.client.pulpcore.models.worker_response import WorkerResponse
|
|
31
29
|
from typing import Optional, Set
|
|
32
30
|
from typing_extensions import Self
|
|
33
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
|
+
|
|
34
40
|
class StatusResponse(BaseModel):
|
|
35
41
|
"""
|
|
36
42
|
Serializer for the status information of the app
|
|
37
43
|
""" # noqa: E501
|
|
38
44
|
versions: List[VersionResponse] = Field(description="Version information of Pulp components")
|
|
39
|
-
online_workers: List[
|
|
40
|
-
online_api_apps: List[
|
|
41
|
-
online_content_apps: List[
|
|
45
|
+
online_workers: List[AppStatusResponse] = Field(description="List of online workers known to the application. An online worker is actively heartbeating and can respond to new work.")
|
|
46
|
+
online_api_apps: List[AppStatusResponse] = Field(description="List of online api apps known to the application. An online api app is actively heartbeating and can serve the rest api to clients.")
|
|
47
|
+
online_content_apps: List[AppStatusResponse] = Field(description="List of online content apps known to the application. An online content app is actively heartbeating and can serve data to clients.")
|
|
42
48
|
database_connection: DatabaseConnectionResponse = Field(description="Database connection information")
|
|
43
49
|
redis_connection: Optional[RedisConnectionResponse] = Field(default=None, description="Redis connection information")
|
|
44
50
|
storage: Optional[StorageResponse] = Field(default=None, description="Storage information")
|
|
@@ -138,9 +144,9 @@ class StatusResponse(BaseModel):
|
|
|
138
144
|
|
|
139
145
|
_obj = cls.model_validate({
|
|
140
146
|
"versions": [VersionResponse.from_dict(_item) for _item in obj["versions"]] if obj.get("versions") is not None else None,
|
|
141
|
-
"online_workers": [
|
|
142
|
-
"online_api_apps": [
|
|
143
|
-
"online_content_apps": [
|
|
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,
|
|
144
150
|
"database_connection": DatabaseConnectionResponse.from_dict(obj["database_connection"]) if obj.get("database_connection") is not None else None,
|
|
145
151
|
"redis_connection": RedisConnectionResponse.from_dict(obj["redis_connection"]) if obj.get("redis_connection") is not None else None,
|
|
146
152
|
"storage": StorageResponse.from_dict(obj["storage"]) if obj.get("storage") is not None else None,
|
|
@@ -23,6 +23,14 @@ 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
|
+
|
|
26
34
|
class StorageResponse(BaseModel):
|
|
27
35
|
"""
|
|
28
36
|
Serializer for information about the storage system
|
|
@@ -23,6 +23,14 @@ 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
|
+
|
|
26
34
|
class TaskGroupOperationResponse(BaseModel):
|
|
27
35
|
"""
|
|
28
36
|
Serializer for asynchronous operations that return a task group.
|
|
@@ -25,6 +25,14 @@ 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
|
+
|
|
28
36
|
class TaskGroupResponse(BaseModel):
|
|
29
37
|
"""
|
|
30
38
|
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.
|
|
@@ -25,6 +25,14 @@ 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
|
+
|
|
28
36
|
class TaskResponse(BaseModel):
|
|
29
37
|
"""
|
|
30
38
|
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.
|
|
@@ -24,6 +24,14 @@ 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
|
+
|
|
27
35
|
class TaskScheduleResponse(BaseModel):
|
|
28
36
|
"""
|
|
29
37
|
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.
|
|
@@ -24,6 +24,14 @@ 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
|
+
|
|
27
35
|
class UnsetLabel(BaseModel):
|
|
28
36
|
"""
|
|
29
37
|
Serializer for synchronously UNsetting a label.
|
|
@@ -24,6 +24,14 @@ 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
|
+
|
|
27
35
|
class UnsetLabelResponse(BaseModel):
|
|
28
36
|
"""
|
|
29
37
|
Serializer for synchronously UNsetting a label.
|
|
@@ -23,6 +23,14 @@ 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
|
+
|
|
26
34
|
class Upload(BaseModel):
|
|
27
35
|
"""
|
|
28
36
|
Serializer for chunked uploads.
|
|
@@ -23,6 +23,14 @@ 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
|
+
|
|
26
34
|
class UploadChunkResponse(BaseModel):
|
|
27
35
|
"""
|
|
28
36
|
A mixin for validating unknown serializers' fields.
|
|
@@ -24,6 +24,14 @@ 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
|
+
|
|
27
35
|
class UploadCommit(BaseModel):
|
|
28
36
|
"""
|
|
29
37
|
A mixin for validating unknown serializers' fields.
|
|
@@ -25,6 +25,14 @@ 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
|
+
|
|
28
36
|
class UploadDetailResponse(BaseModel):
|
|
29
37
|
"""
|
|
30
38
|
Serializer for chunked uploads.
|
|
@@ -24,6 +24,14 @@ 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
|
+
|
|
27
35
|
class UploadResponse(BaseModel):
|
|
28
36
|
"""
|
|
29
37
|
Serializer for chunked uploads.
|
|
@@ -25,6 +25,14 @@ 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
|
+
|
|
28
36
|
class UpstreamPulp(BaseModel):
|
|
29
37
|
"""
|
|
30
38
|
Serializer for a Server.
|
|
@@ -26,6 +26,14 @@ 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
|
+
|
|
29
37
|
class UpstreamPulpResponse(BaseModel):
|
|
30
38
|
"""
|
|
31
39
|
Serializer for a Server.
|
|
@@ -24,6 +24,14 @@ 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
|
+
|
|
27
35
|
class User(BaseModel):
|
|
28
36
|
"""
|
|
29
37
|
Serializer for User.
|
|
@@ -24,6 +24,14 @@ 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
|
+
|
|
27
35
|
class UserGroup(BaseModel):
|
|
28
36
|
"""
|
|
29
37
|
Serializer for Groups that belong to an User.
|
|
@@ -24,6 +24,14 @@ 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
|
+
|
|
27
35
|
class UserGroupResponse(BaseModel):
|
|
28
36
|
"""
|
|
29
37
|
Serializer for Groups that belong to an User.
|
|
@@ -27,6 +27,14 @@ 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
|
+
|
|
30
38
|
class UserResponse(BaseModel):
|
|
31
39
|
"""
|
|
32
40
|
Serializer for User.
|
|
@@ -24,6 +24,14 @@ 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
|
+
|
|
27
35
|
class UserRole(BaseModel):
|
|
28
36
|
"""
|
|
29
37
|
Serializer for UserRole.
|
|
@@ -24,6 +24,14 @@ 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
|
+
|
|
27
35
|
class UserRoleResponse(BaseModel):
|
|
28
36
|
"""
|
|
29
37
|
Serializer for UserRole.
|
|
@@ -23,6 +23,14 @@ 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
|
+
|
|
26
34
|
class VersionResponse(BaseModel):
|
|
27
35
|
"""
|
|
28
36
|
Serializer for the version information of Pulp components
|
|
@@ -24,6 +24,14 @@ 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
|
+
|
|
27
35
|
class VulnerabilityReportResponse(BaseModel):
|
|
28
36
|
"""
|
|
29
37
|
A serializer for the VulnerabilityReport Model.
|
|
@@ -24,6 +24,14 @@ 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
|
+
|
|
27
35
|
class WorkerResponse(BaseModel):
|
|
28
36
|
"""
|
|
29
37
|
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.
|
pulpcore/client/pulpcore/rest.py
CHANGED
|
@@ -77,6 +77,7 @@ class RESTClientObject:
|
|
|
77
77
|
"ca_certs": configuration.ssl_ca_cert,
|
|
78
78
|
"cert_file": configuration.cert_file,
|
|
79
79
|
"key_file": configuration.key_file,
|
|
80
|
+
"ca_cert_data": configuration.ca_cert_data,
|
|
80
81
|
}
|
|
81
82
|
if configuration.assert_hostname is not None:
|
|
82
83
|
pool_args['assert_hostname'] = (
|