crc-pulpcore-client 20250819.1__py3-none-any.whl → 20250820.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 crc-pulpcore-client might be problematic. Click here for more details.
- crc-pulpcore-client/api_client.py +1 -1
- crc-pulpcore-client/configuration.py +3 -3
- crc-pulpcore-client/models/artifact_distribution_response.py +17 -17
- {crc_pulpcore_client-20250819.1.dist-info → crc_pulpcore_client-20250820.1.dist-info}/METADATA +1 -1
- crc_pulpcore_client-20250820.1.dist-info/RECORD +234 -0
- crc_pulpcore_client-20250820.1.dist-info/top_level.txt +1 -0
- crc_pulpcore_client-20250819.1.dist-info/RECORD +0 -464
- crc_pulpcore_client-20250819.1.dist-info/top_level.txt +0 -2
- services-pulpcore-client/__init__.py +0 -2
- services-pulpcore-client/api/__init__.py +0 -53
- services-pulpcore-client/api/access_policies_api.py +0 -1864
- services-pulpcore-client/api/artifacts_api.py +0 -1615
- services-pulpcore-client/api/content_api.py +0 -598
- services-pulpcore-client/api/content_openpgp_publickey_api.py +0 -1887
- services-pulpcore-client/api/content_openpgp_publicsubkey_api.py +0 -1518
- services-pulpcore-client/api/content_openpgp_signature_api.py +0 -1518
- services-pulpcore-client/api/content_openpgp_userattribute_api.py +0 -1518
- services-pulpcore-client/api/content_openpgp_userid_api.py +0 -1655
- services-pulpcore-client/api/contentguards_api.py +0 -667
- services-pulpcore-client/api/contentguards_composite_api.py +0 -3401
- services-pulpcore-client/api/contentguards_content_redirect_api.py +0 -3401
- services-pulpcore-client/api/contentguards_header_api.py +0 -3401
- services-pulpcore-client/api/contentguards_rbac_api.py +0 -3401
- services-pulpcore-client/api/distributions_api.py +0 -822
- services-pulpcore-client/api/distributions_artifacts_api.py +0 -1103
- services-pulpcore-client/api/distributions_openpgp_api.py +0 -2676
- services-pulpcore-client/api/domains_api.py +0 -3106
- services-pulpcore-client/api/exporters_filesystem_api.py +0 -2157
- services-pulpcore-client/api/exporters_filesystem_exports_api.py +0 -1288
- services-pulpcore-client/api/exporters_pulp_api.py +0 -2157
- services-pulpcore-client/api/exporters_pulp_exports_api.py +0 -1288
- services-pulpcore-client/api/groups_api.py +0 -3368
- services-pulpcore-client/api/groups_roles_api.py +0 -1496
- services-pulpcore-client/api/groups_users_api.py +0 -972
- services-pulpcore-client/api/importers_pulp_api.py +0 -2149
- services-pulpcore-client/api/importers_pulp_import_check_api.py +0 -350
- services-pulpcore-client/api/importers_pulp_imports_api.py +0 -1288
- services-pulpcore-client/api/livez_api.py +0 -329
- services-pulpcore-client/api/login_api.py +0 -897
- services-pulpcore-client/api/orphans_api.py +0 -319
- services-pulpcore-client/api/orphans_cleanup_api.py +0 -350
- services-pulpcore-client/api/publications_api.py +0 -765
- services-pulpcore-client/api/remotes_api.py +0 -850
- services-pulpcore-client/api/repair_api.py +0 -350
- services-pulpcore-client/api/repositories_api.py +0 -872
- services-pulpcore-client/api/repositories_openpgp_keyring_api.py +0 -4546
- services-pulpcore-client/api/repositories_reclaim_space_api.py +0 -350
- services-pulpcore-client/api/repository_versions_api.py +0 -764
- services-pulpcore-client/api/roles_api.py +0 -2269
- services-pulpcore-client/api/signing_services_api.py +0 -811
- services-pulpcore-client/api/status_api.py +0 -337
- services-pulpcore-client/api/task_groups_api.py +0 -1012
- services-pulpcore-client/api/task_schedules_api.py +0 -2114
- services-pulpcore-client/api/tasks_api.py +0 -4299
- services-pulpcore-client/api/uploads_api.py +0 -3346
- services-pulpcore-client/api/upstream_pulps_api.py +0 -4001
- services-pulpcore-client/api/users_api.py +0 -2373
- services-pulpcore-client/api/users_roles_api.py +0 -1496
- services-pulpcore-client/api/workers_api.py +0 -1148
- services-pulpcore-client/api_client.py +0 -798
- services-pulpcore-client/api_response.py +0 -21
- services-pulpcore-client/configuration.py +0 -628
- services-pulpcore-client/exceptions.py +0 -200
- services-pulpcore-client/models/__init__.py +0 -189
- services-pulpcore-client/models/access_policy.py +0 -94
- services-pulpcore-client/models/access_policy_response.py +0 -119
- services-pulpcore-client/models/api_app_status_response.py +0 -99
- services-pulpcore-client/models/artifact_distribution_response.py +0 -126
- services-pulpcore-client/models/artifact_response.py +0 -149
- services-pulpcore-client/models/async_operation_response.py +0 -88
- services-pulpcore-client/models/composite_content_guard.py +0 -98
- services-pulpcore-client/models/composite_content_guard_response.py +0 -114
- services-pulpcore-client/models/content_app_status_response.py +0 -99
- services-pulpcore-client/models/content_guard_response.py +0 -112
- services-pulpcore-client/models/content_redirect_content_guard.py +0 -96
- services-pulpcore-client/models/content_redirect_content_guard_response.py +0 -112
- services-pulpcore-client/models/content_settings_response.py +0 -95
- services-pulpcore-client/models/content_summary_response.py +0 -92
- services-pulpcore-client/models/database_connection_response.py +0 -88
- services-pulpcore-client/models/distribution_response.py +0 -133
- services-pulpcore-client/models/domain.py +0 -114
- services-pulpcore-client/models/domain_backend_migrator.py +0 -91
- services-pulpcore-client/models/domain_response.py +0 -131
- services-pulpcore-client/models/evaluation_response.py +0 -92
- services-pulpcore-client/models/filesystem_export.py +0 -99
- services-pulpcore-client/models/filesystem_export_response.py +0 -118
- services-pulpcore-client/models/filesystem_exporter.py +0 -94
- services-pulpcore-client/models/filesystem_exporter_response.py +0 -110
- services-pulpcore-client/models/generic_remote_response.py +0 -199
- services-pulpcore-client/models/generic_remote_response_hidden_fields_inner.py +0 -90
- services-pulpcore-client/models/generic_remote_response_policy_enum.py +0 -39
- services-pulpcore-client/models/group.py +0 -89
- services-pulpcore-client/models/group_progress_report_response.py +0 -111
- services-pulpcore-client/models/group_response.py +0 -101
- services-pulpcore-client/models/group_role.py +0 -110
- services-pulpcore-client/models/group_role_response.py +0 -134
- services-pulpcore-client/models/group_user.py +0 -89
- services-pulpcore-client/models/group_user_response.py +0 -97
- services-pulpcore-client/models/header_content_guard.py +0 -107
- services-pulpcore-client/models/header_content_guard_response.py +0 -123
- services-pulpcore-client/models/import_response.py +0 -107
- services-pulpcore-client/models/login_response.py +0 -98
- services-pulpcore-client/models/method_enum.py +0 -39
- services-pulpcore-client/models/minimal_task_response.py +0 -125
- services-pulpcore-client/models/multiple_artifact_content_response.py +0 -107
- services-pulpcore-client/models/my_permissions_response.py +0 -88
- services-pulpcore-client/models/nested_open_pgp_public_subkey.py +0 -92
- services-pulpcore-client/models/nested_open_pgp_public_subkey_response.py +0 -104
- services-pulpcore-client/models/nested_open_pgp_signature.py +0 -120
- services-pulpcore-client/models/nested_open_pgp_signature_response.py +0 -124
- services-pulpcore-client/models/nested_open_pgp_user_attribute.py +0 -89
- services-pulpcore-client/models/nested_open_pgp_user_attribute_response.py +0 -101
- services-pulpcore-client/models/nested_open_pgp_user_id.py +0 -89
- services-pulpcore-client/models/nested_open_pgp_user_id_response.py +0 -100
- services-pulpcore-client/models/nested_role.py +0 -93
- services-pulpcore-client/models/nested_role_response.py +0 -92
- services-pulpcore-client/models/object_roles_response.py +0 -96
- services-pulpcore-client/models/open_pgp_distribution.py +0 -116
- services-pulpcore-client/models/open_pgp_distribution_response.py +0 -140
- services-pulpcore-client/models/open_pgp_keyring.py +0 -112
- services-pulpcore-client/models/open_pgp_keyring_response.py +0 -137
- services-pulpcore-client/models/open_pgp_public_key_response.py +0 -150
- services-pulpcore-client/models/open_pgp_public_subkey_response.py +0 -126
- services-pulpcore-client/models/open_pgp_signature_response.py +0 -146
- services-pulpcore-client/models/open_pgp_user_attribute_response.py +0 -124
- services-pulpcore-client/models/open_pgp_user_id_response.py +0 -123
- services-pulpcore-client/models/orphans_cleanup.py +0 -96
- services-pulpcore-client/models/paginated_access_policy_response_list.py +0 -112
- services-pulpcore-client/models/paginated_artifact_distribution_response_list.py +0 -112
- services-pulpcore-client/models/paginated_artifact_response_list.py +0 -112
- services-pulpcore-client/models/paginated_composite_content_guard_response_list.py +0 -112
- services-pulpcore-client/models/paginated_content_guard_response_list.py +0 -112
- services-pulpcore-client/models/paginated_content_redirect_content_guard_response_list.py +0 -112
- services-pulpcore-client/models/paginated_distribution_response_list.py +0 -112
- services-pulpcore-client/models/paginated_domain_response_list.py +0 -112
- services-pulpcore-client/models/paginated_filesystem_export_response_list.py +0 -112
- services-pulpcore-client/models/paginated_filesystem_exporter_response_list.py +0 -112
- services-pulpcore-client/models/paginated_generic_remote_response_list.py +0 -112
- services-pulpcore-client/models/paginated_group_response_list.py +0 -112
- services-pulpcore-client/models/paginated_group_role_response_list.py +0 -112
- services-pulpcore-client/models/paginated_group_user_response_list.py +0 -112
- services-pulpcore-client/models/paginated_header_content_guard_response_list.py +0 -112
- services-pulpcore-client/models/paginated_import_response_list.py +0 -112
- services-pulpcore-client/models/paginated_multiple_artifact_content_response_list.py +0 -112
- services-pulpcore-client/models/paginated_open_pgp_distribution_response_list.py +0 -112
- services-pulpcore-client/models/paginated_open_pgp_keyring_response_list.py +0 -112
- services-pulpcore-client/models/paginated_open_pgp_public_key_response_list.py +0 -112
- services-pulpcore-client/models/paginated_open_pgp_public_subkey_response_list.py +0 -112
- services-pulpcore-client/models/paginated_open_pgp_signature_response_list.py +0 -112
- services-pulpcore-client/models/paginated_open_pgp_user_attribute_response_list.py +0 -112
- services-pulpcore-client/models/paginated_open_pgp_user_id_response_list.py +0 -112
- services-pulpcore-client/models/paginated_publication_response_list.py +0 -112
- services-pulpcore-client/models/paginated_pulp_export_response_list.py +0 -112
- services-pulpcore-client/models/paginated_pulp_exporter_response_list.py +0 -112
- services-pulpcore-client/models/paginated_pulp_importer_response_list.py +0 -112
- services-pulpcore-client/models/paginated_rbac_content_guard_response_list.py +0 -112
- services-pulpcore-client/models/paginated_repository_response_list.py +0 -112
- services-pulpcore-client/models/paginated_repository_version_response_list.py +0 -112
- services-pulpcore-client/models/paginated_role_response_list.py +0 -112
- services-pulpcore-client/models/paginated_signing_service_response_list.py +0 -112
- services-pulpcore-client/models/paginated_task_group_response_list.py +0 -112
- services-pulpcore-client/models/paginated_task_response_list.py +0 -112
- services-pulpcore-client/models/paginated_task_schedule_response_list.py +0 -112
- services-pulpcore-client/models/paginated_upload_response_list.py +0 -112
- services-pulpcore-client/models/paginated_upstream_pulp_response_list.py +0 -112
- services-pulpcore-client/models/paginated_user_response_list.py +0 -112
- services-pulpcore-client/models/paginated_user_role_response_list.py +0 -112
- services-pulpcore-client/models/paginated_worker_response_list.py +0 -112
- services-pulpcore-client/models/patched_access_policy.py +0 -94
- services-pulpcore-client/models/patched_composite_content_guard.py +0 -98
- services-pulpcore-client/models/patched_content_redirect_content_guard.py +0 -96
- services-pulpcore-client/models/patched_domain.py +0 -117
- services-pulpcore-client/models/patched_filesystem_exporter.py +0 -94
- services-pulpcore-client/models/patched_group.py +0 -89
- services-pulpcore-client/models/patched_header_content_guard.py +0 -107
- services-pulpcore-client/models/patched_open_pgp_distribution.py +0 -116
- services-pulpcore-client/models/patched_open_pgp_keyring.py +0 -112
- services-pulpcore-client/models/patched_pulp_exporter.py +0 -100
- services-pulpcore-client/models/patched_pulp_importer.py +0 -91
- services-pulpcore-client/models/patched_rbac_content_guard.py +0 -96
- services-pulpcore-client/models/patched_role.py +0 -98
- services-pulpcore-client/models/patched_task_cancel.py +0 -89
- services-pulpcore-client/models/patched_upstream_pulp.py +0 -147
- services-pulpcore-client/models/patched_user.py +0 -106
- services-pulpcore-client/models/policy357_enum.py +0 -39
- services-pulpcore-client/models/profile_artifact_response.py +0 -88
- services-pulpcore-client/models/progress_report_response.py +0 -115
- services-pulpcore-client/models/publication_response.py +0 -107
- services-pulpcore-client/models/pulp_export.py +0 -104
- services-pulpcore-client/models/pulp_export_response.py +0 -126
- services-pulpcore-client/models/pulp_exporter.py +0 -100
- services-pulpcore-client/models/pulp_exporter_response.py +0 -116
- services-pulpcore-client/models/pulp_import.py +0 -93
- services-pulpcore-client/models/pulp_import_check.py +0 -93
- services-pulpcore-client/models/pulp_import_check_response.py +0 -102
- services-pulpcore-client/models/pulp_importer.py +0 -91
- services-pulpcore-client/models/pulp_importer_response.py +0 -107
- services-pulpcore-client/models/purge.py +0 -92
- services-pulpcore-client/models/rbac_content_guard.py +0 -96
- services-pulpcore-client/models/rbac_content_guard_response.py +0 -136
- services-pulpcore-client/models/reclaim_space.py +0 -90
- services-pulpcore-client/models/redis_connection_response.py +0 -88
- services-pulpcore-client/models/repair.py +0 -88
- services-pulpcore-client/models/repository_add_remove_content.py +0 -93
- services-pulpcore-client/models/repository_response.py +0 -137
- services-pulpcore-client/models/repository_version_response.py +0 -121
- services-pulpcore-client/models/role.py +0 -98
- services-pulpcore-client/models/role_response.py +0 -118
- services-pulpcore-client/models/set_label.py +0 -103
- services-pulpcore-client/models/set_label_response.py +0 -103
- services-pulpcore-client/models/signing_service_response.py +0 -111
- services-pulpcore-client/models/states_enum.py +0 -40
- services-pulpcore-client/models/status_response.py +0 -152
- services-pulpcore-client/models/storage_class_enum.py +0 -40
- services-pulpcore-client/models/storage_response.py +0 -108
- services-pulpcore-client/models/task_group_operation_response.py +0 -88
- services-pulpcore-client/models/task_group_response.py +0 -150
- services-pulpcore-client/models/task_response.py +0 -167
- services-pulpcore-client/models/task_schedule_response.py +0 -127
- services-pulpcore-client/models/unset_label.py +0 -96
- services-pulpcore-client/models/unset_label_response.py +0 -100
- services-pulpcore-client/models/upload.py +0 -88
- services-pulpcore-client/models/upload_chunk_response.py +0 -94
- services-pulpcore-client/models/upload_commit.py +0 -89
- services-pulpcore-client/models/upload_detail_response.py +0 -121
- services-pulpcore-client/models/upload_response.py +0 -109
- services-pulpcore-client/models/upstream_pulp.py +0 -147
- services-pulpcore-client/models/upstream_pulp_response.py +0 -158
- services-pulpcore-client/models/user.py +0 -106
- services-pulpcore-client/models/user_group.py +0 -89
- services-pulpcore-client/models/user_group_response.py +0 -97
- services-pulpcore-client/models/user_response.py +0 -140
- services-pulpcore-client/models/user_role.py +0 -110
- services-pulpcore-client/models/user_role_response.py +0 -134
- services-pulpcore-client/models/version_response.py +0 -96
- services-pulpcore-client/models/worker_response.py +0 -119
- services-pulpcore-client/py.typed +0 -0
- services-pulpcore-client/rest.py +0 -258
- {crc_pulpcore_client-20250819.1.dist-info → crc_pulpcore_client-20250820.1.dist-info}/WHEEL +0 -0
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
# coding: utf-8
|
|
2
|
-
|
|
3
|
-
"""
|
|
4
|
-
Pulp 3 API
|
|
5
|
-
|
|
6
|
-
Fetch, Upload, Organize, and Distribute Software Packages
|
|
7
|
-
|
|
8
|
-
The version of the OpenAPI document: v3
|
|
9
|
-
Contact: pulp-list@redhat.com
|
|
10
|
-
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
|
-
|
|
12
|
-
Do not edit the class manually.
|
|
13
|
-
""" # noqa: E501
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
from __future__ import annotations
|
|
17
|
-
import json
|
|
18
|
-
from enum import Enum
|
|
19
|
-
from typing_extensions import Self
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
class StatesEnum(str, Enum):
|
|
23
|
-
"""
|
|
24
|
-
* `skipped` - skipped * `completed` - completed * `failed` - failed * `canceled` - canceled
|
|
25
|
-
"""
|
|
26
|
-
|
|
27
|
-
"""
|
|
28
|
-
allowed enum values
|
|
29
|
-
"""
|
|
30
|
-
SKIPPED = 'skipped'
|
|
31
|
-
COMPLETED = 'completed'
|
|
32
|
-
FAILED = 'failed'
|
|
33
|
-
CANCELED = 'canceled'
|
|
34
|
-
|
|
35
|
-
@classmethod
|
|
36
|
-
def from_json(cls, json_str: str) -> Self:
|
|
37
|
-
"""Create an instance of StatesEnum from a JSON string"""
|
|
38
|
-
return cls(json.loads(json_str))
|
|
39
|
-
|
|
40
|
-
|
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
# coding: utf-8
|
|
2
|
-
|
|
3
|
-
"""
|
|
4
|
-
Pulp 3 API
|
|
5
|
-
|
|
6
|
-
Fetch, Upload, Organize, and Distribute Software Packages
|
|
7
|
-
|
|
8
|
-
The version of the OpenAPI document: v3
|
|
9
|
-
Contact: pulp-list@redhat.com
|
|
10
|
-
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
|
-
|
|
12
|
-
Do not edit the class manually.
|
|
13
|
-
""" # noqa: E501
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
from __future__ import annotations
|
|
17
|
-
import pprint
|
|
18
|
-
import re # noqa: F401
|
|
19
|
-
import json
|
|
20
|
-
|
|
21
|
-
from pydantic import BaseModel, ConfigDict, Field, StrictBool
|
|
22
|
-
from typing import Any, ClassVar, Dict, List, Optional
|
|
23
|
-
from services-pulpcore-client.models.api_app_status_response import ApiAppStatusResponse
|
|
24
|
-
from services-pulpcore-client.models.content_app_status_response import ContentAppStatusResponse
|
|
25
|
-
from services-pulpcore-client.models.content_settings_response import ContentSettingsResponse
|
|
26
|
-
from services-pulpcore-client.models.database_connection_response import DatabaseConnectionResponse
|
|
27
|
-
from services-pulpcore-client.models.redis_connection_response import RedisConnectionResponse
|
|
28
|
-
from services-pulpcore-client.models.storage_response import StorageResponse
|
|
29
|
-
from services-pulpcore-client.models.version_response import VersionResponse
|
|
30
|
-
from services-pulpcore-client.models.worker_response import WorkerResponse
|
|
31
|
-
from typing import Optional, Set
|
|
32
|
-
from typing_extensions import Self
|
|
33
|
-
|
|
34
|
-
class StatusResponse(BaseModel):
|
|
35
|
-
"""
|
|
36
|
-
Serializer for the status information of the app
|
|
37
|
-
""" # noqa: E501
|
|
38
|
-
versions: List[VersionResponse] = Field(description="Version information of Pulp components")
|
|
39
|
-
online_workers: List[WorkerResponse] = Field(description="List of online workers known to the application. An online worker is actively heartbeating and can respond to new work.")
|
|
40
|
-
online_api_apps: List[ApiAppStatusResponse] = 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.")
|
|
41
|
-
online_content_apps: List[ContentAppStatusResponse] = 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
|
-
database_connection: DatabaseConnectionResponse = Field(description="Database connection information")
|
|
43
|
-
redis_connection: Optional[RedisConnectionResponse] = Field(default=None, description="Redis connection information")
|
|
44
|
-
storage: Optional[StorageResponse] = Field(default=None, description="Storage information")
|
|
45
|
-
content_settings: ContentSettingsResponse = Field(description="Content-app settings")
|
|
46
|
-
domain_enabled: StrictBool = Field(description="Is Domains enabled")
|
|
47
|
-
__properties: ClassVar[List[str]] = ["versions", "online_workers", "online_api_apps", "online_content_apps", "database_connection", "redis_connection", "storage", "content_settings", "domain_enabled"]
|
|
48
|
-
|
|
49
|
-
model_config = ConfigDict(
|
|
50
|
-
populate_by_name=True,
|
|
51
|
-
validate_assignment=True,
|
|
52
|
-
protected_namespaces=(),
|
|
53
|
-
)
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
def to_str(self) -> str:
|
|
57
|
-
"""Returns the string representation of the model using alias"""
|
|
58
|
-
return pprint.pformat(self.model_dump(by_alias=True))
|
|
59
|
-
|
|
60
|
-
def to_json(self) -> str:
|
|
61
|
-
"""Returns the JSON representation of the model using alias"""
|
|
62
|
-
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
63
|
-
return json.dumps(self.to_dict())
|
|
64
|
-
|
|
65
|
-
@classmethod
|
|
66
|
-
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
67
|
-
"""Create an instance of StatusResponse from a JSON string"""
|
|
68
|
-
return cls.from_dict(json.loads(json_str))
|
|
69
|
-
|
|
70
|
-
def to_dict(self) -> Dict[str, Any]:
|
|
71
|
-
"""Return the dictionary representation of the model using alias.
|
|
72
|
-
|
|
73
|
-
This has the following differences from calling pydantic's
|
|
74
|
-
`self.model_dump(by_alias=True)`:
|
|
75
|
-
|
|
76
|
-
* `None` is only added to the output dict for nullable fields that
|
|
77
|
-
were set at model initialization. Other fields with value `None`
|
|
78
|
-
are ignored.
|
|
79
|
-
"""
|
|
80
|
-
excluded_fields: Set[str] = set([
|
|
81
|
-
])
|
|
82
|
-
|
|
83
|
-
_dict = self.model_dump(
|
|
84
|
-
by_alias=True,
|
|
85
|
-
exclude=excluded_fields,
|
|
86
|
-
exclude_none=True,
|
|
87
|
-
)
|
|
88
|
-
# override the default output from pydantic by calling `to_dict()` of each item in versions (list)
|
|
89
|
-
_items = []
|
|
90
|
-
if self.versions:
|
|
91
|
-
for _item_versions in self.versions:
|
|
92
|
-
if _item_versions:
|
|
93
|
-
_items.append(_item_versions.to_dict())
|
|
94
|
-
_dict['versions'] = _items
|
|
95
|
-
# override the default output from pydantic by calling `to_dict()` of each item in online_workers (list)
|
|
96
|
-
_items = []
|
|
97
|
-
if self.online_workers:
|
|
98
|
-
for _item_online_workers in self.online_workers:
|
|
99
|
-
if _item_online_workers:
|
|
100
|
-
_items.append(_item_online_workers.to_dict())
|
|
101
|
-
_dict['online_workers'] = _items
|
|
102
|
-
# override the default output from pydantic by calling `to_dict()` of each item in online_api_apps (list)
|
|
103
|
-
_items = []
|
|
104
|
-
if self.online_api_apps:
|
|
105
|
-
for _item_online_api_apps in self.online_api_apps:
|
|
106
|
-
if _item_online_api_apps:
|
|
107
|
-
_items.append(_item_online_api_apps.to_dict())
|
|
108
|
-
_dict['online_api_apps'] = _items
|
|
109
|
-
# override the default output from pydantic by calling `to_dict()` of each item in online_content_apps (list)
|
|
110
|
-
_items = []
|
|
111
|
-
if self.online_content_apps:
|
|
112
|
-
for _item_online_content_apps in self.online_content_apps:
|
|
113
|
-
if _item_online_content_apps:
|
|
114
|
-
_items.append(_item_online_content_apps.to_dict())
|
|
115
|
-
_dict['online_content_apps'] = _items
|
|
116
|
-
# override the default output from pydantic by calling `to_dict()` of database_connection
|
|
117
|
-
if self.database_connection:
|
|
118
|
-
_dict['database_connection'] = self.database_connection.to_dict()
|
|
119
|
-
# override the default output from pydantic by calling `to_dict()` of redis_connection
|
|
120
|
-
if self.redis_connection:
|
|
121
|
-
_dict['redis_connection'] = self.redis_connection.to_dict()
|
|
122
|
-
# override the default output from pydantic by calling `to_dict()` of storage
|
|
123
|
-
if self.storage:
|
|
124
|
-
_dict['storage'] = self.storage.to_dict()
|
|
125
|
-
# override the default output from pydantic by calling `to_dict()` of content_settings
|
|
126
|
-
if self.content_settings:
|
|
127
|
-
_dict['content_settings'] = self.content_settings.to_dict()
|
|
128
|
-
return _dict
|
|
129
|
-
|
|
130
|
-
@classmethod
|
|
131
|
-
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
132
|
-
"""Create an instance of StatusResponse from a dict"""
|
|
133
|
-
if obj is None:
|
|
134
|
-
return None
|
|
135
|
-
|
|
136
|
-
if not isinstance(obj, dict):
|
|
137
|
-
return cls.model_validate(obj)
|
|
138
|
-
|
|
139
|
-
_obj = cls.model_validate({
|
|
140
|
-
"versions": [VersionResponse.from_dict(_item) for _item in obj["versions"]] if obj.get("versions") is not None else None,
|
|
141
|
-
"online_workers": [WorkerResponse.from_dict(_item) for _item in obj["online_workers"]] if obj.get("online_workers") is not None else None,
|
|
142
|
-
"online_api_apps": [ApiAppStatusResponse.from_dict(_item) for _item in obj["online_api_apps"]] if obj.get("online_api_apps") is not None else None,
|
|
143
|
-
"online_content_apps": [ContentAppStatusResponse.from_dict(_item) for _item in obj["online_content_apps"]] if obj.get("online_content_apps") is not None else None,
|
|
144
|
-
"database_connection": DatabaseConnectionResponse.from_dict(obj["database_connection"]) if obj.get("database_connection") is not None else None,
|
|
145
|
-
"redis_connection": RedisConnectionResponse.from_dict(obj["redis_connection"]) if obj.get("redis_connection") is not None else None,
|
|
146
|
-
"storage": StorageResponse.from_dict(obj["storage"]) if obj.get("storage") is not None else None,
|
|
147
|
-
"content_settings": ContentSettingsResponse.from_dict(obj["content_settings"]) if obj.get("content_settings") is not None else None,
|
|
148
|
-
"domain_enabled": obj.get("domain_enabled")
|
|
149
|
-
})
|
|
150
|
-
return _obj
|
|
151
|
-
|
|
152
|
-
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
# coding: utf-8
|
|
2
|
-
|
|
3
|
-
"""
|
|
4
|
-
Pulp 3 API
|
|
5
|
-
|
|
6
|
-
Fetch, Upload, Organize, and Distribute Software Packages
|
|
7
|
-
|
|
8
|
-
The version of the OpenAPI document: v3
|
|
9
|
-
Contact: pulp-list@redhat.com
|
|
10
|
-
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
|
-
|
|
12
|
-
Do not edit the class manually.
|
|
13
|
-
""" # noqa: E501
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
from __future__ import annotations
|
|
17
|
-
import json
|
|
18
|
-
from enum import Enum
|
|
19
|
-
from typing_extensions import Self
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
class StorageClassEnum(str, Enum):
|
|
23
|
-
"""
|
|
24
|
-
* `pulpcore.app.models.storage.FileSystem` - Use local filesystem as storage * `storages.backends.s3boto3.S3Boto3Storage` - Use Amazon S3 as storage * `storages.backends.azure_storage.AzureStorage` - Use Azure Blob as storage * `pulp_service.app.storage.OCIStorage` - Use OCI as storage
|
|
25
|
-
"""
|
|
26
|
-
|
|
27
|
-
"""
|
|
28
|
-
allowed enum values
|
|
29
|
-
"""
|
|
30
|
-
PULPCORE_DOT_APP_DOT_MODELS_DOT_STORAGE_DOT_FILE_SYSTEM = 'pulpcore.app.models.storage.FileSystem'
|
|
31
|
-
STORAGES_DOT_BACKENDS_DOT_S3BOTO3_DOT_S3_BOTO3_STORAGE = 'storages.backends.s3boto3.S3Boto3Storage'
|
|
32
|
-
STORAGES_DOT_BACKENDS_DOT_AZURE_STORAGE_DOT_AZURE_STORAGE = 'storages.backends.azure_storage.AzureStorage'
|
|
33
|
-
PULP_SERVICE_DOT_APP_DOT_STORAGE_DOT_OCI_STORAGE = 'pulp_service.app.storage.OCIStorage'
|
|
34
|
-
|
|
35
|
-
@classmethod
|
|
36
|
-
def from_json(cls, json_str: str) -> Self:
|
|
37
|
-
"""Create an instance of StorageClassEnum from a JSON string"""
|
|
38
|
-
return cls(json.loads(json_str))
|
|
39
|
-
|
|
40
|
-
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
# coding: utf-8
|
|
2
|
-
|
|
3
|
-
"""
|
|
4
|
-
Pulp 3 API
|
|
5
|
-
|
|
6
|
-
Fetch, Upload, Organize, and Distribute Software Packages
|
|
7
|
-
|
|
8
|
-
The version of the OpenAPI document: v3
|
|
9
|
-
Contact: pulp-list@redhat.com
|
|
10
|
-
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
|
-
|
|
12
|
-
Do not edit the class manually.
|
|
13
|
-
""" # noqa: E501
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
from __future__ import annotations
|
|
17
|
-
import pprint
|
|
18
|
-
import re # noqa: F401
|
|
19
|
-
import json
|
|
20
|
-
|
|
21
|
-
from pydantic import BaseModel, ConfigDict, Field
|
|
22
|
-
from typing import Any, ClassVar, Dict, List, Optional
|
|
23
|
-
from typing_extensions import Annotated
|
|
24
|
-
from typing import Optional, Set
|
|
25
|
-
from typing_extensions import Self
|
|
26
|
-
|
|
27
|
-
class StorageResponse(BaseModel):
|
|
28
|
-
"""
|
|
29
|
-
Serializer for information about the storage system
|
|
30
|
-
""" # noqa: E501
|
|
31
|
-
total: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(description="Total number of bytes")
|
|
32
|
-
used: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(description="Number of bytes in use")
|
|
33
|
-
free: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(description="Number of free bytes")
|
|
34
|
-
__properties: ClassVar[List[str]] = ["total", "used", "free"]
|
|
35
|
-
|
|
36
|
-
model_config = ConfigDict(
|
|
37
|
-
populate_by_name=True,
|
|
38
|
-
validate_assignment=True,
|
|
39
|
-
protected_namespaces=(),
|
|
40
|
-
)
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
def to_str(self) -> str:
|
|
44
|
-
"""Returns the string representation of the model using alias"""
|
|
45
|
-
return pprint.pformat(self.model_dump(by_alias=True))
|
|
46
|
-
|
|
47
|
-
def to_json(self) -> str:
|
|
48
|
-
"""Returns the JSON representation of the model using alias"""
|
|
49
|
-
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
50
|
-
return json.dumps(self.to_dict())
|
|
51
|
-
|
|
52
|
-
@classmethod
|
|
53
|
-
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
54
|
-
"""Create an instance of StorageResponse from a JSON string"""
|
|
55
|
-
return cls.from_dict(json.loads(json_str))
|
|
56
|
-
|
|
57
|
-
def to_dict(self) -> Dict[str, Any]:
|
|
58
|
-
"""Return the dictionary representation of the model using alias.
|
|
59
|
-
|
|
60
|
-
This has the following differences from calling pydantic's
|
|
61
|
-
`self.model_dump(by_alias=True)`:
|
|
62
|
-
|
|
63
|
-
* `None` is only added to the output dict for nullable fields that
|
|
64
|
-
were set at model initialization. Other fields with value `None`
|
|
65
|
-
are ignored.
|
|
66
|
-
"""
|
|
67
|
-
excluded_fields: Set[str] = set([
|
|
68
|
-
])
|
|
69
|
-
|
|
70
|
-
_dict = self.model_dump(
|
|
71
|
-
by_alias=True,
|
|
72
|
-
exclude=excluded_fields,
|
|
73
|
-
exclude_none=True,
|
|
74
|
-
)
|
|
75
|
-
# set to None if total (nullable) is None
|
|
76
|
-
# and model_fields_set contains the field
|
|
77
|
-
if self.total is None and "total" in self.model_fields_set:
|
|
78
|
-
_dict['total'] = None
|
|
79
|
-
|
|
80
|
-
# set to None if used (nullable) is None
|
|
81
|
-
# and model_fields_set contains the field
|
|
82
|
-
if self.used is None and "used" in self.model_fields_set:
|
|
83
|
-
_dict['used'] = None
|
|
84
|
-
|
|
85
|
-
# set to None if free (nullable) is None
|
|
86
|
-
# and model_fields_set contains the field
|
|
87
|
-
if self.free is None and "free" in self.model_fields_set:
|
|
88
|
-
_dict['free'] = None
|
|
89
|
-
|
|
90
|
-
return _dict
|
|
91
|
-
|
|
92
|
-
@classmethod
|
|
93
|
-
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
94
|
-
"""Create an instance of StorageResponse from a dict"""
|
|
95
|
-
if obj is None:
|
|
96
|
-
return None
|
|
97
|
-
|
|
98
|
-
if not isinstance(obj, dict):
|
|
99
|
-
return cls.model_validate(obj)
|
|
100
|
-
|
|
101
|
-
_obj = cls.model_validate({
|
|
102
|
-
"total": obj.get("total"),
|
|
103
|
-
"used": obj.get("used"),
|
|
104
|
-
"free": obj.get("free")
|
|
105
|
-
})
|
|
106
|
-
return _obj
|
|
107
|
-
|
|
108
|
-
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
# coding: utf-8
|
|
2
|
-
|
|
3
|
-
"""
|
|
4
|
-
Pulp 3 API
|
|
5
|
-
|
|
6
|
-
Fetch, Upload, Organize, and Distribute Software Packages
|
|
7
|
-
|
|
8
|
-
The version of the OpenAPI document: v3
|
|
9
|
-
Contact: pulp-list@redhat.com
|
|
10
|
-
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
|
-
|
|
12
|
-
Do not edit the class manually.
|
|
13
|
-
""" # noqa: E501
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
from __future__ import annotations
|
|
17
|
-
import pprint
|
|
18
|
-
import re # noqa: F401
|
|
19
|
-
import json
|
|
20
|
-
|
|
21
|
-
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
22
|
-
from typing import Any, ClassVar, Dict, List
|
|
23
|
-
from typing import Optional, Set
|
|
24
|
-
from typing_extensions import Self
|
|
25
|
-
|
|
26
|
-
class TaskGroupOperationResponse(BaseModel):
|
|
27
|
-
"""
|
|
28
|
-
Serializer for asynchronous operations that return a task group.
|
|
29
|
-
""" # noqa: E501
|
|
30
|
-
task_group: StrictStr = Field(description="The href of the task group.")
|
|
31
|
-
__properties: ClassVar[List[str]] = ["task_group"]
|
|
32
|
-
|
|
33
|
-
model_config = ConfigDict(
|
|
34
|
-
populate_by_name=True,
|
|
35
|
-
validate_assignment=True,
|
|
36
|
-
protected_namespaces=(),
|
|
37
|
-
)
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
def to_str(self) -> str:
|
|
41
|
-
"""Returns the string representation of the model using alias"""
|
|
42
|
-
return pprint.pformat(self.model_dump(by_alias=True))
|
|
43
|
-
|
|
44
|
-
def to_json(self) -> str:
|
|
45
|
-
"""Returns the JSON representation of the model using alias"""
|
|
46
|
-
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
47
|
-
return json.dumps(self.to_dict())
|
|
48
|
-
|
|
49
|
-
@classmethod
|
|
50
|
-
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
51
|
-
"""Create an instance of TaskGroupOperationResponse from a JSON string"""
|
|
52
|
-
return cls.from_dict(json.loads(json_str))
|
|
53
|
-
|
|
54
|
-
def to_dict(self) -> Dict[str, Any]:
|
|
55
|
-
"""Return the dictionary representation of the model using alias.
|
|
56
|
-
|
|
57
|
-
This has the following differences from calling pydantic's
|
|
58
|
-
`self.model_dump(by_alias=True)`:
|
|
59
|
-
|
|
60
|
-
* `None` is only added to the output dict for nullable fields that
|
|
61
|
-
were set at model initialization. Other fields with value `None`
|
|
62
|
-
are ignored.
|
|
63
|
-
"""
|
|
64
|
-
excluded_fields: Set[str] = set([
|
|
65
|
-
])
|
|
66
|
-
|
|
67
|
-
_dict = self.model_dump(
|
|
68
|
-
by_alias=True,
|
|
69
|
-
exclude=excluded_fields,
|
|
70
|
-
exclude_none=True,
|
|
71
|
-
)
|
|
72
|
-
return _dict
|
|
73
|
-
|
|
74
|
-
@classmethod
|
|
75
|
-
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
76
|
-
"""Create an instance of TaskGroupOperationResponse from a dict"""
|
|
77
|
-
if obj is None:
|
|
78
|
-
return None
|
|
79
|
-
|
|
80
|
-
if not isinstance(obj, dict):
|
|
81
|
-
return cls.model_validate(obj)
|
|
82
|
-
|
|
83
|
-
_obj = cls.model_validate({
|
|
84
|
-
"task_group": obj.get("task_group")
|
|
85
|
-
})
|
|
86
|
-
return _obj
|
|
87
|
-
|
|
88
|
-
|
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
# coding: utf-8
|
|
2
|
-
|
|
3
|
-
"""
|
|
4
|
-
Pulp 3 API
|
|
5
|
-
|
|
6
|
-
Fetch, Upload, Organize, and Distribute Software Packages
|
|
7
|
-
|
|
8
|
-
The version of the OpenAPI document: v3
|
|
9
|
-
Contact: pulp-list@redhat.com
|
|
10
|
-
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
|
-
|
|
12
|
-
Do not edit the class manually.
|
|
13
|
-
""" # noqa: E501
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
from __future__ import annotations
|
|
17
|
-
import pprint
|
|
18
|
-
import re # noqa: F401
|
|
19
|
-
import json
|
|
20
|
-
|
|
21
|
-
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr
|
|
22
|
-
from typing import Any, ClassVar, Dict, List, Optional
|
|
23
|
-
from services-pulpcore-client.models.group_progress_report_response import GroupProgressReportResponse
|
|
24
|
-
from services-pulpcore-client.models.minimal_task_response import MinimalTaskResponse
|
|
25
|
-
from typing import Optional, Set
|
|
26
|
-
from typing_extensions import Self
|
|
27
|
-
|
|
28
|
-
class TaskGroupResponse(BaseModel):
|
|
29
|
-
"""
|
|
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.
|
|
31
|
-
""" # noqa: E501
|
|
32
|
-
pulp_href: Optional[StrictStr] = None
|
|
33
|
-
prn: Optional[StrictStr] = Field(default=None, description="The Pulp Resource Name (PRN).")
|
|
34
|
-
description: StrictStr = Field(description="A description of the task group.")
|
|
35
|
-
all_tasks_dispatched: StrictBool = Field(description="Whether all tasks have been spawned for this task group.")
|
|
36
|
-
waiting: Optional[StrictInt] = Field(default=None, description="Number of tasks in the 'waiting' state")
|
|
37
|
-
skipped: Optional[StrictInt] = Field(default=None, description="Number of tasks in the 'skipped' state")
|
|
38
|
-
running: Optional[StrictInt] = Field(default=None, description="Number of tasks in the 'running' state")
|
|
39
|
-
completed: Optional[StrictInt] = Field(default=None, description="Number of tasks in the 'completed' state")
|
|
40
|
-
canceled: Optional[StrictInt] = Field(default=None, description="Number of tasks in the 'canceled' state")
|
|
41
|
-
failed: Optional[StrictInt] = Field(default=None, description="Number of tasks in the 'failed' state")
|
|
42
|
-
canceling: Optional[StrictInt] = Field(default=None, description="Number of tasks in the 'canceling' state")
|
|
43
|
-
group_progress_reports: Optional[List[GroupProgressReportResponse]] = None
|
|
44
|
-
tasks: Optional[List[MinimalTaskResponse]] = None
|
|
45
|
-
__properties: ClassVar[List[str]] = ["pulp_href", "prn", "description", "all_tasks_dispatched", "waiting", "skipped", "running", "completed", "canceled", "failed", "canceling", "group_progress_reports", "tasks"]
|
|
46
|
-
|
|
47
|
-
model_config = ConfigDict(
|
|
48
|
-
populate_by_name=True,
|
|
49
|
-
validate_assignment=True,
|
|
50
|
-
protected_namespaces=(),
|
|
51
|
-
)
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
def to_str(self) -> str:
|
|
55
|
-
"""Returns the string representation of the model using alias"""
|
|
56
|
-
return pprint.pformat(self.model_dump(by_alias=True))
|
|
57
|
-
|
|
58
|
-
def to_json(self) -> str:
|
|
59
|
-
"""Returns the JSON representation of the model using alias"""
|
|
60
|
-
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
61
|
-
return json.dumps(self.to_dict())
|
|
62
|
-
|
|
63
|
-
@classmethod
|
|
64
|
-
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
65
|
-
"""Create an instance of TaskGroupResponse from a JSON string"""
|
|
66
|
-
return cls.from_dict(json.loads(json_str))
|
|
67
|
-
|
|
68
|
-
def to_dict(self) -> Dict[str, Any]:
|
|
69
|
-
"""Return the dictionary representation of the model using alias.
|
|
70
|
-
|
|
71
|
-
This has the following differences from calling pydantic's
|
|
72
|
-
`self.model_dump(by_alias=True)`:
|
|
73
|
-
|
|
74
|
-
* `None` is only added to the output dict for nullable fields that
|
|
75
|
-
were set at model initialization. Other fields with value `None`
|
|
76
|
-
are ignored.
|
|
77
|
-
* OpenAPI `readOnly` fields are excluded.
|
|
78
|
-
* OpenAPI `readOnly` fields are excluded.
|
|
79
|
-
* OpenAPI `readOnly` fields are excluded.
|
|
80
|
-
* OpenAPI `readOnly` fields are excluded.
|
|
81
|
-
* OpenAPI `readOnly` fields are excluded.
|
|
82
|
-
* OpenAPI `readOnly` fields are excluded.
|
|
83
|
-
* OpenAPI `readOnly` fields are excluded.
|
|
84
|
-
* OpenAPI `readOnly` fields are excluded.
|
|
85
|
-
* OpenAPI `readOnly` fields are excluded.
|
|
86
|
-
* OpenAPI `readOnly` fields are excluded.
|
|
87
|
-
* OpenAPI `readOnly` fields are excluded.
|
|
88
|
-
"""
|
|
89
|
-
excluded_fields: Set[str] = set([
|
|
90
|
-
"pulp_href",
|
|
91
|
-
"prn",
|
|
92
|
-
"waiting",
|
|
93
|
-
"skipped",
|
|
94
|
-
"running",
|
|
95
|
-
"completed",
|
|
96
|
-
"canceled",
|
|
97
|
-
"failed",
|
|
98
|
-
"canceling",
|
|
99
|
-
"group_progress_reports",
|
|
100
|
-
"tasks",
|
|
101
|
-
])
|
|
102
|
-
|
|
103
|
-
_dict = self.model_dump(
|
|
104
|
-
by_alias=True,
|
|
105
|
-
exclude=excluded_fields,
|
|
106
|
-
exclude_none=True,
|
|
107
|
-
)
|
|
108
|
-
# override the default output from pydantic by calling `to_dict()` of each item in group_progress_reports (list)
|
|
109
|
-
_items = []
|
|
110
|
-
if self.group_progress_reports:
|
|
111
|
-
for _item_group_progress_reports in self.group_progress_reports:
|
|
112
|
-
if _item_group_progress_reports:
|
|
113
|
-
_items.append(_item_group_progress_reports.to_dict())
|
|
114
|
-
_dict['group_progress_reports'] = _items
|
|
115
|
-
# override the default output from pydantic by calling `to_dict()` of each item in tasks (list)
|
|
116
|
-
_items = []
|
|
117
|
-
if self.tasks:
|
|
118
|
-
for _item_tasks in self.tasks:
|
|
119
|
-
if _item_tasks:
|
|
120
|
-
_items.append(_item_tasks.to_dict())
|
|
121
|
-
_dict['tasks'] = _items
|
|
122
|
-
return _dict
|
|
123
|
-
|
|
124
|
-
@classmethod
|
|
125
|
-
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
126
|
-
"""Create an instance of TaskGroupResponse from a dict"""
|
|
127
|
-
if obj is None:
|
|
128
|
-
return None
|
|
129
|
-
|
|
130
|
-
if not isinstance(obj, dict):
|
|
131
|
-
return cls.model_validate(obj)
|
|
132
|
-
|
|
133
|
-
_obj = cls.model_validate({
|
|
134
|
-
"pulp_href": obj.get("pulp_href"),
|
|
135
|
-
"prn": obj.get("prn"),
|
|
136
|
-
"description": obj.get("description"),
|
|
137
|
-
"all_tasks_dispatched": obj.get("all_tasks_dispatched"),
|
|
138
|
-
"waiting": obj.get("waiting"),
|
|
139
|
-
"skipped": obj.get("skipped"),
|
|
140
|
-
"running": obj.get("running"),
|
|
141
|
-
"completed": obj.get("completed"),
|
|
142
|
-
"canceled": obj.get("canceled"),
|
|
143
|
-
"failed": obj.get("failed"),
|
|
144
|
-
"canceling": obj.get("canceling"),
|
|
145
|
-
"group_progress_reports": [GroupProgressReportResponse.from_dict(_item) for _item in obj["group_progress_reports"]] if obj.get("group_progress_reports") is not None else None,
|
|
146
|
-
"tasks": [MinimalTaskResponse.from_dict(_item) for _item in obj["tasks"]] if obj.get("tasks") is not None else None
|
|
147
|
-
})
|
|
148
|
-
return _obj
|
|
149
|
-
|
|
150
|
-
|