pulpcore-client 3.88.0__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.
Files changed (175) hide show
  1. pulpcore/client/pulpcore/__init__.py +1 -1
  2. pulpcore/client/pulpcore/api_client.py +1 -1
  3. pulpcore/client/pulpcore/configuration.py +1 -1
  4. pulpcore/client/pulpcore/models/access_policy.py +1 -14
  5. pulpcore/client/pulpcore/models/access_policy_response.py +1 -20
  6. pulpcore/client/pulpcore/models/app_status_response.py +1 -13
  7. pulpcore/client/pulpcore/models/artifact_distribution_response.py +14 -34
  8. pulpcore/client/pulpcore/models/artifact_response.py +1 -22
  9. pulpcore/client/pulpcore/models/async_operation_response.py +1 -11
  10. pulpcore/client/pulpcore/models/composite_content_guard.py +1 -13
  11. pulpcore/client/pulpcore/models/composite_content_guard_response.py +1 -17
  12. pulpcore/client/pulpcore/models/content_guard_response.py +1 -16
  13. pulpcore/client/pulpcore/models/content_redirect_content_guard.py +1 -12
  14. pulpcore/client/pulpcore/models/content_redirect_content_guard_response.py +1 -16
  15. pulpcore/client/pulpcore/models/content_settings_response.py +1 -12
  16. pulpcore/client/pulpcore/models/content_summary_response.py +1 -13
  17. pulpcore/client/pulpcore/models/database_connection_response.py +1 -11
  18. pulpcore/client/pulpcore/models/distribution_response.py +1 -22
  19. pulpcore/client/pulpcore/models/domain.py +1 -17
  20. pulpcore/client/pulpcore/models/domain_backend_migrator.py +1 -12
  21. pulpcore/client/pulpcore/models/domain_response.py +1 -21
  22. pulpcore/client/pulpcore/models/evaluation_response.py +1 -13
  23. pulpcore/client/pulpcore/models/filesystem_export.py +1 -14
  24. pulpcore/client/pulpcore/models/filesystem_export_response.py +1 -17
  25. pulpcore/client/pulpcore/models/filesystem_exporter.py +1 -13
  26. pulpcore/client/pulpcore/models/filesystem_exporter_response.py +1 -17
  27. pulpcore/client/pulpcore/models/generic_remote_response.py +1 -31
  28. pulpcore/client/pulpcore/models/generic_remote_response_hidden_fields_inner.py +1 -12
  29. pulpcore/client/pulpcore/models/group.py +1 -11
  30. pulpcore/client/pulpcore/models/group_progress_report_response.py +1 -15
  31. pulpcore/client/pulpcore/models/group_response.py +1 -14
  32. pulpcore/client/pulpcore/models/group_role.py +1 -14
  33. pulpcore/client/pulpcore/models/group_role_response.py +1 -20
  34. pulpcore/client/pulpcore/models/group_user.py +1 -11
  35. pulpcore/client/pulpcore/models/group_user_response.py +1 -13
  36. pulpcore/client/pulpcore/models/header_content_guard.py +1 -15
  37. pulpcore/client/pulpcore/models/header_content_guard_response.py +1 -19
  38. pulpcore/client/pulpcore/models/import_response.py +1 -16
  39. pulpcore/client/pulpcore/models/login_response.py +1 -13
  40. pulpcore/client/pulpcore/models/minimal_task_response.py +1 -20
  41. pulpcore/client/pulpcore/models/multiple_artifact_content_response.py +1 -17
  42. pulpcore/client/pulpcore/models/my_permissions_response.py +1 -11
  43. pulpcore/client/pulpcore/models/nested_open_pgp_public_subkey.py +1 -12
  44. pulpcore/client/pulpcore/models/nested_open_pgp_public_subkey_response.py +1 -13
  45. pulpcore/client/pulpcore/models/nested_open_pgp_signature.py +1 -16
  46. pulpcore/client/pulpcore/models/nested_open_pgp_signature_response.py +1 -17
  47. pulpcore/client/pulpcore/models/nested_open_pgp_user_attribute.py +1 -11
  48. pulpcore/client/pulpcore/models/nested_open_pgp_user_attribute_response.py +1 -12
  49. pulpcore/client/pulpcore/models/nested_open_pgp_user_id.py +1 -11
  50. pulpcore/client/pulpcore/models/nested_open_pgp_user_id_response.py +1 -12
  51. pulpcore/client/pulpcore/models/nested_role.py +1 -13
  52. pulpcore/client/pulpcore/models/nested_role_response.py +1 -13
  53. pulpcore/client/pulpcore/models/object_roles_response.py +1 -11
  54. pulpcore/client/pulpcore/models/open_pgp_distribution.py +1 -17
  55. pulpcore/client/pulpcore/models/open_pgp_distribution_response.py +1 -23
  56. pulpcore/client/pulpcore/models/open_pgp_keyring.py +1 -15
  57. pulpcore/client/pulpcore/models/open_pgp_keyring_response.py +1 -21
  58. pulpcore/client/pulpcore/models/open_pgp_public_key_response.py +1 -21
  59. pulpcore/client/pulpcore/models/open_pgp_public_subkey_response.py +1 -20
  60. pulpcore/client/pulpcore/models/open_pgp_signature_response.py +1 -24
  61. pulpcore/client/pulpcore/models/open_pgp_user_attribute_response.py +1 -19
  62. pulpcore/client/pulpcore/models/open_pgp_user_id_response.py +1 -19
  63. pulpcore/client/pulpcore/models/orphans_cleanup.py +1 -12
  64. pulpcore/client/pulpcore/models/paginated_access_policy_response_list.py +1 -14
  65. pulpcore/client/pulpcore/models/paginated_artifact_distribution_response_list.py +1 -14
  66. pulpcore/client/pulpcore/models/paginated_artifact_response_list.py +1 -14
  67. pulpcore/client/pulpcore/models/paginated_composite_content_guard_response_list.py +1 -14
  68. pulpcore/client/pulpcore/models/paginated_content_guard_response_list.py +1 -14
  69. pulpcore/client/pulpcore/models/paginated_content_redirect_content_guard_response_list.py +1 -14
  70. pulpcore/client/pulpcore/models/paginated_distribution_response_list.py +1 -14
  71. pulpcore/client/pulpcore/models/paginated_domain_response_list.py +1 -14
  72. pulpcore/client/pulpcore/models/paginated_filesystem_export_response_list.py +1 -14
  73. pulpcore/client/pulpcore/models/paginated_filesystem_exporter_response_list.py +1 -14
  74. pulpcore/client/pulpcore/models/paginated_generic_remote_response_list.py +1 -14
  75. pulpcore/client/pulpcore/models/paginated_group_response_list.py +1 -14
  76. pulpcore/client/pulpcore/models/paginated_group_role_response_list.py +1 -14
  77. pulpcore/client/pulpcore/models/paginated_group_user_response_list.py +1 -14
  78. pulpcore/client/pulpcore/models/paginated_header_content_guard_response_list.py +1 -14
  79. pulpcore/client/pulpcore/models/paginated_import_response_list.py +1 -14
  80. pulpcore/client/pulpcore/models/paginated_multiple_artifact_content_response_list.py +1 -14
  81. pulpcore/client/pulpcore/models/paginated_open_pgp_distribution_response_list.py +1 -14
  82. pulpcore/client/pulpcore/models/paginated_open_pgp_keyring_response_list.py +1 -14
  83. pulpcore/client/pulpcore/models/paginated_open_pgp_public_key_response_list.py +1 -14
  84. pulpcore/client/pulpcore/models/paginated_open_pgp_public_subkey_response_list.py +1 -14
  85. pulpcore/client/pulpcore/models/paginated_open_pgp_signature_response_list.py +1 -14
  86. pulpcore/client/pulpcore/models/paginated_open_pgp_user_attribute_response_list.py +1 -14
  87. pulpcore/client/pulpcore/models/paginated_open_pgp_user_id_response_list.py +1 -14
  88. pulpcore/client/pulpcore/models/paginated_publication_response_list.py +1 -14
  89. pulpcore/client/pulpcore/models/paginated_pulp_export_response_list.py +1 -14
  90. pulpcore/client/pulpcore/models/paginated_pulp_exporter_response_list.py +1 -14
  91. pulpcore/client/pulpcore/models/paginated_pulp_importer_response_list.py +1 -14
  92. pulpcore/client/pulpcore/models/paginated_rbac_content_guard_response_list.py +1 -14
  93. pulpcore/client/pulpcore/models/paginated_repository_response_list.py +1 -14
  94. pulpcore/client/pulpcore/models/paginated_repository_version_response_list.py +1 -14
  95. pulpcore/client/pulpcore/models/paginated_role_response_list.py +1 -14
  96. pulpcore/client/pulpcore/models/paginated_signing_service_response_list.py +1 -14
  97. pulpcore/client/pulpcore/models/paginated_task_group_response_list.py +1 -14
  98. pulpcore/client/pulpcore/models/paginated_task_response_list.py +1 -14
  99. pulpcore/client/pulpcore/models/paginated_task_schedule_response_list.py +1 -14
  100. pulpcore/client/pulpcore/models/paginated_upload_response_list.py +1 -14
  101. pulpcore/client/pulpcore/models/paginated_upstream_pulp_response_list.py +1 -14
  102. pulpcore/client/pulpcore/models/paginated_user_response_list.py +1 -14
  103. pulpcore/client/pulpcore/models/paginated_user_role_response_list.py +1 -14
  104. pulpcore/client/pulpcore/models/paginated_vulnerability_report_response_list.py +1 -14
  105. pulpcore/client/pulpcore/models/paginated_worker_response_list.py +1 -14
  106. pulpcore/client/pulpcore/models/patched_access_policy.py +1 -14
  107. pulpcore/client/pulpcore/models/patched_composite_content_guard.py +1 -13
  108. pulpcore/client/pulpcore/models/patched_content_redirect_content_guard.py +1 -12
  109. pulpcore/client/pulpcore/models/patched_domain.py +1 -17
  110. pulpcore/client/pulpcore/models/patched_filesystem_exporter.py +1 -13
  111. pulpcore/client/pulpcore/models/patched_group.py +1 -11
  112. pulpcore/client/pulpcore/models/patched_header_content_guard.py +1 -15
  113. pulpcore/client/pulpcore/models/patched_open_pgp_distribution.py +1 -17
  114. pulpcore/client/pulpcore/models/patched_open_pgp_keyring.py +1 -15
  115. pulpcore/client/pulpcore/models/patched_pulp_exporter.py +1 -14
  116. pulpcore/client/pulpcore/models/patched_pulp_importer.py +1 -12
  117. pulpcore/client/pulpcore/models/patched_rbac_content_guard.py +1 -12
  118. pulpcore/client/pulpcore/models/patched_role.py +1 -13
  119. pulpcore/client/pulpcore/models/patched_task_cancel.py +1 -11
  120. pulpcore/client/pulpcore/models/patched_upstream_pulp.py +1 -22
  121. pulpcore/client/pulpcore/models/patched_user.py +1 -17
  122. pulpcore/client/pulpcore/models/profile_artifact_response.py +1 -11
  123. pulpcore/client/pulpcore/models/progress_report_response.py +1 -16
  124. pulpcore/client/pulpcore/models/publication_response.py +1 -16
  125. pulpcore/client/pulpcore/models/pulp_export.py +1 -16
  126. pulpcore/client/pulpcore/models/pulp_export_response.py +1 -19
  127. pulpcore/client/pulpcore/models/pulp_exporter.py +1 -14
  128. pulpcore/client/pulpcore/models/pulp_exporter_response.py +1 -18
  129. pulpcore/client/pulpcore/models/pulp_import.py +1 -13
  130. pulpcore/client/pulpcore/models/pulp_import_check.py +1 -13
  131. pulpcore/client/pulpcore/models/pulp_import_check_response.py +1 -13
  132. pulpcore/client/pulpcore/models/pulp_importer.py +1 -12
  133. pulpcore/client/pulpcore/models/pulp_importer_response.py +1 -16
  134. pulpcore/client/pulpcore/models/purge.py +1 -12
  135. pulpcore/client/pulpcore/models/rbac_content_guard.py +1 -12
  136. pulpcore/client/pulpcore/models/rbac_content_guard_response.py +1 -18
  137. pulpcore/client/pulpcore/models/reclaim_space.py +1 -12
  138. pulpcore/client/pulpcore/models/redis_connection_response.py +1 -11
  139. pulpcore/client/pulpcore/models/repair.py +1 -11
  140. pulpcore/client/pulpcore/models/repository_add_remove_content.py +1 -13
  141. pulpcore/client/pulpcore/models/repository_response.py +1 -21
  142. pulpcore/client/pulpcore/models/repository_version_response.py +1 -19
  143. pulpcore/client/pulpcore/models/role.py +1 -13
  144. pulpcore/client/pulpcore/models/role_response.py +1 -18
  145. pulpcore/client/pulpcore/models/set_label.py +1 -12
  146. pulpcore/client/pulpcore/models/set_label_response.py +1 -12
  147. pulpcore/client/pulpcore/models/signing_service_response.py +1 -18
  148. pulpcore/client/pulpcore/models/status_response.py +1 -19
  149. pulpcore/client/pulpcore/models/storage_response.py +1 -13
  150. pulpcore/client/pulpcore/models/task_group_operation_response.py +1 -11
  151. pulpcore/client/pulpcore/models/task_group_response.py +1 -23
  152. pulpcore/client/pulpcore/models/task_response.py +1 -30
  153. pulpcore/client/pulpcore/models/task_schedule_response.py +1 -19
  154. pulpcore/client/pulpcore/models/unset_label.py +1 -11
  155. pulpcore/client/pulpcore/models/unset_label_response.py +1 -12
  156. pulpcore/client/pulpcore/models/upload.py +1 -11
  157. pulpcore/client/pulpcore/models/upload_chunk_response.py +1 -12
  158. pulpcore/client/pulpcore/models/upload_commit.py +1 -11
  159. pulpcore/client/pulpcore/models/upload_detail_response.py +1 -17
  160. pulpcore/client/pulpcore/models/upload_response.py +1 -16
  161. pulpcore/client/pulpcore/models/upstream_pulp.py +1 -22
  162. pulpcore/client/pulpcore/models/upstream_pulp_response.py +1 -25
  163. pulpcore/client/pulpcore/models/user.py +1 -17
  164. pulpcore/client/pulpcore/models/user_group.py +1 -11
  165. pulpcore/client/pulpcore/models/user_group_response.py +1 -13
  166. pulpcore/client/pulpcore/models/user_response.py +1 -22
  167. pulpcore/client/pulpcore/models/user_role.py +1 -14
  168. pulpcore/client/pulpcore/models/user_role_response.py +1 -20
  169. pulpcore/client/pulpcore/models/version_response.py +1 -15
  170. pulpcore/client/pulpcore/models/vulnerability_report_response.py +1 -17
  171. pulpcore/client/pulpcore/models/worker_response.py +1 -18
  172. {pulpcore_client-3.88.0.dist-info → pulpcore_client-3.89.0.dist-info}/METADATA +2 -2
  173. {pulpcore_client-3.88.0.dist-info → pulpcore_client-3.89.0.dist-info}/RECORD +175 -175
  174. {pulpcore_client-3.88.0.dist-info → pulpcore_client-3.89.0.dist-info}/WHEEL +0 -0
  175. {pulpcore_client-3.88.0.dist-info → pulpcore_client-3.89.0.dist-info}/top_level.txt +0 -0
@@ -24,14 +24,6 @@ from pulpcore.client.pulpcore.models.publication_response import PublicationResp
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 PaginatedPublicationResponseList(BaseModel):
36
28
  """
37
29
  PaginatedPublicationResponseList
@@ -99,12 +91,7 @@ class PaginatedPublicationResponseList(BaseModel):
99
91
  if not isinstance(obj, dict):
100
92
  return cls.model_validate(obj)
101
93
 
102
- _obj = cls.model_validate({
103
- "count": obj.get("count"),
104
- "next": obj.get("next"),
105
- "previous": obj.get("previous"),
106
- "results": [PublicationResponse.from_dict(_item) for _item in obj["results"]] if obj.get("results") is not None else None
107
- })
94
+ _obj = cls.model_validate(obj)
108
95
  return _obj
109
96
 
110
97
 
@@ -24,14 +24,6 @@ from pulpcore.client.pulpcore.models.pulp_export_response import PulpExportRespo
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 PaginatedPulpExportResponseList(BaseModel):
36
28
  """
37
29
  PaginatedPulpExportResponseList
@@ -99,12 +91,7 @@ class PaginatedPulpExportResponseList(BaseModel):
99
91
  if not isinstance(obj, dict):
100
92
  return cls.model_validate(obj)
101
93
 
102
- _obj = cls.model_validate({
103
- "count": obj.get("count"),
104
- "next": obj.get("next"),
105
- "previous": obj.get("previous"),
106
- "results": [PulpExportResponse.from_dict(_item) for _item in obj["results"]] if obj.get("results") is not None else None
107
- })
94
+ _obj = cls.model_validate(obj)
108
95
  return _obj
109
96
 
110
97
 
@@ -24,14 +24,6 @@ from pulpcore.client.pulpcore.models.pulp_exporter_response import PulpExporterR
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 PaginatedPulpExporterResponseList(BaseModel):
36
28
  """
37
29
  PaginatedPulpExporterResponseList
@@ -99,12 +91,7 @@ class PaginatedPulpExporterResponseList(BaseModel):
99
91
  if not isinstance(obj, dict):
100
92
  return cls.model_validate(obj)
101
93
 
102
- _obj = cls.model_validate({
103
- "count": obj.get("count"),
104
- "next": obj.get("next"),
105
- "previous": obj.get("previous"),
106
- "results": [PulpExporterResponse.from_dict(_item) for _item in obj["results"]] if obj.get("results") is not None else None
107
- })
94
+ _obj = cls.model_validate(obj)
108
95
  return _obj
109
96
 
110
97
 
@@ -24,14 +24,6 @@ from pulpcore.client.pulpcore.models.pulp_importer_response import PulpImporterR
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 PaginatedPulpImporterResponseList(BaseModel):
36
28
  """
37
29
  PaginatedPulpImporterResponseList
@@ -99,12 +91,7 @@ class PaginatedPulpImporterResponseList(BaseModel):
99
91
  if not isinstance(obj, dict):
100
92
  return cls.model_validate(obj)
101
93
 
102
- _obj = cls.model_validate({
103
- "count": obj.get("count"),
104
- "next": obj.get("next"),
105
- "previous": obj.get("previous"),
106
- "results": [PulpImporterResponse.from_dict(_item) for _item in obj["results"]] if obj.get("results") is not None else None
107
- })
94
+ _obj = cls.model_validate(obj)
108
95
  return _obj
109
96
 
110
97
 
@@ -24,14 +24,6 @@ from pulpcore.client.pulpcore.models.rbac_content_guard_response import RBACCont
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 PaginatedRBACContentGuardResponseList(BaseModel):
36
28
  """
37
29
  PaginatedRBACContentGuardResponseList
@@ -99,12 +91,7 @@ class PaginatedRBACContentGuardResponseList(BaseModel):
99
91
  if not isinstance(obj, dict):
100
92
  return cls.model_validate(obj)
101
93
 
102
- _obj = cls.model_validate({
103
- "count": obj.get("count"),
104
- "next": obj.get("next"),
105
- "previous": obj.get("previous"),
106
- "results": [RBACContentGuardResponse.from_dict(_item) for _item in obj["results"]] if obj.get("results") is not None else None
107
- })
94
+ _obj = cls.model_validate(obj)
108
95
  return _obj
109
96
 
110
97
 
@@ -24,14 +24,6 @@ from pulpcore.client.pulpcore.models.repository_response import RepositoryRespon
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 PaginatedRepositoryResponseList(BaseModel):
36
28
  """
37
29
  PaginatedRepositoryResponseList
@@ -99,12 +91,7 @@ class PaginatedRepositoryResponseList(BaseModel):
99
91
  if not isinstance(obj, dict):
100
92
  return cls.model_validate(obj)
101
93
 
102
- _obj = cls.model_validate({
103
- "count": obj.get("count"),
104
- "next": obj.get("next"),
105
- "previous": obj.get("previous"),
106
- "results": [RepositoryResponse.from_dict(_item) for _item in obj["results"]] if obj.get("results") is not None else None
107
- })
94
+ _obj = cls.model_validate(obj)
108
95
  return _obj
109
96
 
110
97
 
@@ -24,14 +24,6 @@ from pulpcore.client.pulpcore.models.repository_version_response import Reposito
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 PaginatedRepositoryVersionResponseList(BaseModel):
36
28
  """
37
29
  PaginatedRepositoryVersionResponseList
@@ -99,12 +91,7 @@ class PaginatedRepositoryVersionResponseList(BaseModel):
99
91
  if not isinstance(obj, dict):
100
92
  return cls.model_validate(obj)
101
93
 
102
- _obj = cls.model_validate({
103
- "count": obj.get("count"),
104
- "next": obj.get("next"),
105
- "previous": obj.get("previous"),
106
- "results": [RepositoryVersionResponse.from_dict(_item) for _item in obj["results"]] if obj.get("results") is not None else None
107
- })
94
+ _obj = cls.model_validate(obj)
108
95
  return _obj
109
96
 
110
97
 
@@ -24,14 +24,6 @@ from pulpcore.client.pulpcore.models.role_response import RoleResponse
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 PaginatedRoleResponseList(BaseModel):
36
28
  """
37
29
  PaginatedRoleResponseList
@@ -99,12 +91,7 @@ class PaginatedRoleResponseList(BaseModel):
99
91
  if not isinstance(obj, dict):
100
92
  return cls.model_validate(obj)
101
93
 
102
- _obj = cls.model_validate({
103
- "count": obj.get("count"),
104
- "next": obj.get("next"),
105
- "previous": obj.get("previous"),
106
- "results": [RoleResponse.from_dict(_item) for _item in obj["results"]] if obj.get("results") is not None else None
107
- })
94
+ _obj = cls.model_validate(obj)
108
95
  return _obj
109
96
 
110
97
 
@@ -24,14 +24,6 @@ from pulpcore.client.pulpcore.models.signing_service_response import SigningServ
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 PaginatedSigningServiceResponseList(BaseModel):
36
28
  """
37
29
  PaginatedSigningServiceResponseList
@@ -99,12 +91,7 @@ class PaginatedSigningServiceResponseList(BaseModel):
99
91
  if not isinstance(obj, dict):
100
92
  return cls.model_validate(obj)
101
93
 
102
- _obj = cls.model_validate({
103
- "count": obj.get("count"),
104
- "next": obj.get("next"),
105
- "previous": obj.get("previous"),
106
- "results": [SigningServiceResponse.from_dict(_item) for _item in obj["results"]] if obj.get("results") is not None else None
107
- })
94
+ _obj = cls.model_validate(obj)
108
95
  return _obj
109
96
 
110
97
 
@@ -24,14 +24,6 @@ from pulpcore.client.pulpcore.models.task_group_response import TaskGroupRespons
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 PaginatedTaskGroupResponseList(BaseModel):
36
28
  """
37
29
  PaginatedTaskGroupResponseList
@@ -99,12 +91,7 @@ class PaginatedTaskGroupResponseList(BaseModel):
99
91
  if not isinstance(obj, dict):
100
92
  return cls.model_validate(obj)
101
93
 
102
- _obj = cls.model_validate({
103
- "count": obj.get("count"),
104
- "next": obj.get("next"),
105
- "previous": obj.get("previous"),
106
- "results": [TaskGroupResponse.from_dict(_item) for _item in obj["results"]] if obj.get("results") is not None else None
107
- })
94
+ _obj = cls.model_validate(obj)
108
95
  return _obj
109
96
 
110
97
 
@@ -24,14 +24,6 @@ from pulpcore.client.pulpcore.models.task_response import TaskResponse
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 PaginatedTaskResponseList(BaseModel):
36
28
  """
37
29
  PaginatedTaskResponseList
@@ -99,12 +91,7 @@ class PaginatedTaskResponseList(BaseModel):
99
91
  if not isinstance(obj, dict):
100
92
  return cls.model_validate(obj)
101
93
 
102
- _obj = cls.model_validate({
103
- "count": obj.get("count"),
104
- "next": obj.get("next"),
105
- "previous": obj.get("previous"),
106
- "results": [TaskResponse.from_dict(_item) for _item in obj["results"]] if obj.get("results") is not None else None
107
- })
94
+ _obj = cls.model_validate(obj)
108
95
  return _obj
109
96
 
110
97
 
@@ -24,14 +24,6 @@ from pulpcore.client.pulpcore.models.task_schedule_response import TaskScheduleR
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 PaginatedTaskScheduleResponseList(BaseModel):
36
28
  """
37
29
  PaginatedTaskScheduleResponseList
@@ -99,12 +91,7 @@ class PaginatedTaskScheduleResponseList(BaseModel):
99
91
  if not isinstance(obj, dict):
100
92
  return cls.model_validate(obj)
101
93
 
102
- _obj = cls.model_validate({
103
- "count": obj.get("count"),
104
- "next": obj.get("next"),
105
- "previous": obj.get("previous"),
106
- "results": [TaskScheduleResponse.from_dict(_item) for _item in obj["results"]] if obj.get("results") is not None else None
107
- })
94
+ _obj = cls.model_validate(obj)
108
95
  return _obj
109
96
 
110
97
 
@@ -24,14 +24,6 @@ from pulpcore.client.pulpcore.models.upload_response import UploadResponse
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 PaginatedUploadResponseList(BaseModel):
36
28
  """
37
29
  PaginatedUploadResponseList
@@ -99,12 +91,7 @@ class PaginatedUploadResponseList(BaseModel):
99
91
  if not isinstance(obj, dict):
100
92
  return cls.model_validate(obj)
101
93
 
102
- _obj = cls.model_validate({
103
- "count": obj.get("count"),
104
- "next": obj.get("next"),
105
- "previous": obj.get("previous"),
106
- "results": [UploadResponse.from_dict(_item) for _item in obj["results"]] if obj.get("results") is not None else None
107
- })
94
+ _obj = cls.model_validate(obj)
108
95
  return _obj
109
96
 
110
97
 
@@ -24,14 +24,6 @@ from pulpcore.client.pulpcore.models.upstream_pulp_response import UpstreamPulpR
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 PaginatedUpstreamPulpResponseList(BaseModel):
36
28
  """
37
29
  PaginatedUpstreamPulpResponseList
@@ -99,12 +91,7 @@ class PaginatedUpstreamPulpResponseList(BaseModel):
99
91
  if not isinstance(obj, dict):
100
92
  return cls.model_validate(obj)
101
93
 
102
- _obj = cls.model_validate({
103
- "count": obj.get("count"),
104
- "next": obj.get("next"),
105
- "previous": obj.get("previous"),
106
- "results": [UpstreamPulpResponse.from_dict(_item) for _item in obj["results"]] if obj.get("results") is not None else None
107
- })
94
+ _obj = cls.model_validate(obj)
108
95
  return _obj
109
96
 
110
97
 
@@ -24,14 +24,6 @@ from pulpcore.client.pulpcore.models.user_response import UserResponse
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 PaginatedUserResponseList(BaseModel):
36
28
  """
37
29
  PaginatedUserResponseList
@@ -99,12 +91,7 @@ class PaginatedUserResponseList(BaseModel):
99
91
  if not isinstance(obj, dict):
100
92
  return cls.model_validate(obj)
101
93
 
102
- _obj = cls.model_validate({
103
- "count": obj.get("count"),
104
- "next": obj.get("next"),
105
- "previous": obj.get("previous"),
106
- "results": [UserResponse.from_dict(_item) for _item in obj["results"]] if obj.get("results") is not None else None
107
- })
94
+ _obj = cls.model_validate(obj)
108
95
  return _obj
109
96
 
110
97
 
@@ -24,14 +24,6 @@ from pulpcore.client.pulpcore.models.user_role_response import UserRoleResponse
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 PaginatedUserRoleResponseList(BaseModel):
36
28
  """
37
29
  PaginatedUserRoleResponseList
@@ -99,12 +91,7 @@ class PaginatedUserRoleResponseList(BaseModel):
99
91
  if not isinstance(obj, dict):
100
92
  return cls.model_validate(obj)
101
93
 
102
- _obj = cls.model_validate({
103
- "count": obj.get("count"),
104
- "next": obj.get("next"),
105
- "previous": obj.get("previous"),
106
- "results": [UserRoleResponse.from_dict(_item) for _item in obj["results"]] if obj.get("results") is not None else None
107
- })
94
+ _obj = cls.model_validate(obj)
108
95
  return _obj
109
96
 
110
97
 
@@ -24,14 +24,6 @@ from pulpcore.client.pulpcore.models.vulnerability_report_response import Vulner
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 PaginatedVulnerabilityReportResponseList(BaseModel):
36
28
  """
37
29
  PaginatedVulnerabilityReportResponseList
@@ -99,12 +91,7 @@ class PaginatedVulnerabilityReportResponseList(BaseModel):
99
91
  if not isinstance(obj, dict):
100
92
  return cls.model_validate(obj)
101
93
 
102
- _obj = cls.model_validate({
103
- "count": obj.get("count"),
104
- "next": obj.get("next"),
105
- "previous": obj.get("previous"),
106
- "results": [VulnerabilityReportResponse.from_dict(_item) for _item in obj["results"]] if obj.get("results") is not None else None
107
- })
94
+ _obj = cls.model_validate(obj)
108
95
  return _obj
109
96
 
110
97
 
@@ -24,14 +24,6 @@ from pulpcore.client.pulpcore.models.worker_response import WorkerResponse
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 PaginatedWorkerResponseList(BaseModel):
36
28
  """
37
29
  PaginatedWorkerResponseList
@@ -99,12 +91,7 @@ class PaginatedWorkerResponseList(BaseModel):
99
91
  if not isinstance(obj, dict):
100
92
  return cls.model_validate(obj)
101
93
 
102
- _obj = cls.model_validate({
103
- "count": obj.get("count"),
104
- "next": obj.get("next"),
105
- "previous": obj.get("previous"),
106
- "results": [WorkerResponse.from_dict(_item) for _item in obj["results"]] if obj.get("results") is not None else None
107
- })
94
+ _obj = cls.model_validate(obj)
108
95
  return _obj
109
96
 
110
97
 
@@ -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 PatchedAccessPolicy(BaseModel):
35
27
  """
36
28
  Serializer for AccessPolicy.
@@ -91,12 +83,7 @@ class PatchedAccessPolicy(BaseModel):
91
83
  if not isinstance(obj, dict):
92
84
  return cls.model_validate(obj)
93
85
 
94
- _obj = cls.model_validate({
95
- "permissions_assignment": obj.get("permissions_assignment"),
96
- "creation_hooks": obj.get("creation_hooks"),
97
- "statements": obj.get("statements"),
98
- "queryset_scoping": obj.get("queryset_scoping")
99
- })
86
+ _obj = cls.model_validate(obj)
100
87
  return _obj
101
88
 
102
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 PatchedCompositeContentGuard(BaseModel):
36
28
  """
37
29
  Base class for content guard serializers.
@@ -96,11 +88,7 @@ class PatchedCompositeContentGuard(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
- "guards": obj.get("guards")
103
- })
91
+ _obj = cls.model_validate(obj)
104
92
  return _obj
105
93
 
106
94
 
@@ -24,14 +24,6 @@ from typing_extensions import Annotated
24
24
  from typing import Optional, Set
25
25
  from typing_extensions import Self
26
26
 
27
-
28
- class OneOf:
29
- @staticmethod
30
- def from_dict(obj, *args, **kwargs):
31
- """Noop override to fix missing OneOf import/implementation."""
32
- return obj
33
-
34
-
35
27
  class PatchedContentRedirectContentGuard(BaseModel):
36
28
  """
37
29
  A serializer for ContentRedirectContentGuard.
@@ -95,10 +87,7 @@ class PatchedContentRedirectContentGuard(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
 
@@ -25,14 +25,6 @@ from pulpcore.client.pulpcore.models.storage_class_enum import StorageClassEnum
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 PatchedDomain(BaseModel):
37
29
  """
38
30
  Serializer for Domain.
@@ -111,15 +103,7 @@ class PatchedDomain(BaseModel):
111
103
  if not isinstance(obj, dict):
112
104
  return cls.model_validate(obj)
113
105
 
114
- _obj = cls.model_validate({
115
- "name": obj.get("name"),
116
- "description": obj.get("description"),
117
- "pulp_labels": obj.get("pulp_labels"),
118
- "storage_class": obj.get("storage_class"),
119
- "storage_settings": obj.get("storage_settings"),
120
- "redirect_to_object_storage": obj.get("redirect_to_object_storage") if obj.get("redirect_to_object_storage") is not None else True,
121
- "hide_guarded_distributions": obj.get("hide_guarded_distributions") if obj.get("hide_guarded_distributions") is not None else False
122
- })
106
+ _obj = cls.model_validate(obj)
123
107
  return _obj
124
108
 
125
109
 
@@ -25,14 +25,6 @@ from pulpcore.client.pulpcore.models.method_enum import MethodEnum
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 PatchedFilesystemExporter(BaseModel):
37
29
  """
38
30
  Serializer for FilesystemExporters.
@@ -92,11 +84,7 @@ class PatchedFilesystemExporter(BaseModel):
92
84
  if not isinstance(obj, dict):
93
85
  return cls.model_validate(obj)
94
86
 
95
- _obj = cls.model_validate({
96
- "name": obj.get("name"),
97
- "path": obj.get("path"),
98
- "method": obj.get("method")
99
- })
87
+ _obj = cls.model_validate(obj)
100
88
  return _obj
101
89
 
102
90