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.

Files changed (183) hide show
  1. pulpcore/client/pulpcore/__init__.py +469 -234
  2. pulpcore/client/pulpcore/api/tasks_api.py +6 -6
  3. pulpcore/client/pulpcore/api/workers_api.py +12 -12
  4. pulpcore/client/pulpcore/api_client.py +6 -2
  5. pulpcore/client/pulpcore/configuration.py +10 -3
  6. pulpcore/client/pulpcore/exceptions.py +17 -0
  7. pulpcore/client/pulpcore/models/__init__.py +1 -2
  8. pulpcore/client/pulpcore/models/access_policy.py +8 -0
  9. pulpcore/client/pulpcore/models/access_policy_response.py +8 -0
  10. pulpcore/client/pulpcore/models/{api_app_status_response.py → app_status_response.py} +12 -4
  11. pulpcore/client/pulpcore/models/artifact_distribution_response.py +22 -14
  12. pulpcore/client/pulpcore/models/artifact_response.py +8 -0
  13. pulpcore/client/pulpcore/models/async_operation_response.py +8 -0
  14. pulpcore/client/pulpcore/models/composite_content_guard.py +8 -0
  15. pulpcore/client/pulpcore/models/composite_content_guard_response.py +8 -0
  16. pulpcore/client/pulpcore/models/content_guard_response.py +8 -0
  17. pulpcore/client/pulpcore/models/content_redirect_content_guard.py +8 -0
  18. pulpcore/client/pulpcore/models/content_redirect_content_guard_response.py +8 -0
  19. pulpcore/client/pulpcore/models/content_settings_response.py +8 -0
  20. pulpcore/client/pulpcore/models/content_summary_response.py +8 -0
  21. pulpcore/client/pulpcore/models/database_connection_response.py +8 -0
  22. pulpcore/client/pulpcore/models/distribution_response.py +8 -0
  23. pulpcore/client/pulpcore/models/domain.py +8 -0
  24. pulpcore/client/pulpcore/models/domain_backend_migrator.py +8 -0
  25. pulpcore/client/pulpcore/models/domain_response.py +8 -0
  26. pulpcore/client/pulpcore/models/evaluation_response.py +8 -0
  27. pulpcore/client/pulpcore/models/filesystem_export.py +8 -0
  28. pulpcore/client/pulpcore/models/filesystem_export_response.py +8 -0
  29. pulpcore/client/pulpcore/models/filesystem_exporter.py +8 -0
  30. pulpcore/client/pulpcore/models/filesystem_exporter_response.py +8 -0
  31. pulpcore/client/pulpcore/models/generic_remote_response.py +8 -0
  32. pulpcore/client/pulpcore/models/generic_remote_response_hidden_fields_inner.py +8 -0
  33. pulpcore/client/pulpcore/models/group.py +8 -0
  34. pulpcore/client/pulpcore/models/group_progress_report_response.py +8 -0
  35. pulpcore/client/pulpcore/models/group_response.py +8 -0
  36. pulpcore/client/pulpcore/models/group_role.py +8 -0
  37. pulpcore/client/pulpcore/models/group_role_response.py +8 -0
  38. pulpcore/client/pulpcore/models/group_user.py +8 -0
  39. pulpcore/client/pulpcore/models/group_user_response.py +8 -0
  40. pulpcore/client/pulpcore/models/header_content_guard.py +8 -0
  41. pulpcore/client/pulpcore/models/header_content_guard_response.py +8 -0
  42. pulpcore/client/pulpcore/models/import_response.py +8 -0
  43. pulpcore/client/pulpcore/models/login_response.py +8 -0
  44. pulpcore/client/pulpcore/models/minimal_task_response.py +8 -0
  45. pulpcore/client/pulpcore/models/multiple_artifact_content_response.py +8 -0
  46. pulpcore/client/pulpcore/models/my_permissions_response.py +8 -0
  47. pulpcore/client/pulpcore/models/nested_open_pgp_public_subkey.py +8 -0
  48. pulpcore/client/pulpcore/models/nested_open_pgp_public_subkey_response.py +8 -0
  49. pulpcore/client/pulpcore/models/nested_open_pgp_signature.py +8 -0
  50. pulpcore/client/pulpcore/models/nested_open_pgp_signature_response.py +8 -0
  51. pulpcore/client/pulpcore/models/nested_open_pgp_user_attribute.py +8 -0
  52. pulpcore/client/pulpcore/models/nested_open_pgp_user_attribute_response.py +8 -0
  53. pulpcore/client/pulpcore/models/nested_open_pgp_user_id.py +8 -0
  54. pulpcore/client/pulpcore/models/nested_open_pgp_user_id_response.py +8 -0
  55. pulpcore/client/pulpcore/models/nested_role.py +8 -0
  56. pulpcore/client/pulpcore/models/nested_role_response.py +8 -0
  57. pulpcore/client/pulpcore/models/object_roles_response.py +8 -0
  58. pulpcore/client/pulpcore/models/open_pgp_distribution.py +8 -0
  59. pulpcore/client/pulpcore/models/open_pgp_distribution_response.py +8 -0
  60. pulpcore/client/pulpcore/models/open_pgp_keyring.py +8 -0
  61. pulpcore/client/pulpcore/models/open_pgp_keyring_response.py +8 -0
  62. pulpcore/client/pulpcore/models/open_pgp_public_key_response.py +8 -0
  63. pulpcore/client/pulpcore/models/open_pgp_public_subkey_response.py +8 -0
  64. pulpcore/client/pulpcore/models/open_pgp_signature_response.py +8 -0
  65. pulpcore/client/pulpcore/models/open_pgp_user_attribute_response.py +8 -0
  66. pulpcore/client/pulpcore/models/open_pgp_user_id_response.py +8 -0
  67. pulpcore/client/pulpcore/models/orphans_cleanup.py +8 -0
  68. pulpcore/client/pulpcore/models/paginated_access_policy_response_list.py +8 -0
  69. pulpcore/client/pulpcore/models/paginated_artifact_distribution_response_list.py +8 -0
  70. pulpcore/client/pulpcore/models/paginated_artifact_response_list.py +8 -0
  71. pulpcore/client/pulpcore/models/paginated_composite_content_guard_response_list.py +8 -0
  72. pulpcore/client/pulpcore/models/paginated_content_guard_response_list.py +8 -0
  73. pulpcore/client/pulpcore/models/paginated_content_redirect_content_guard_response_list.py +8 -0
  74. pulpcore/client/pulpcore/models/paginated_distribution_response_list.py +8 -0
  75. pulpcore/client/pulpcore/models/paginated_domain_response_list.py +8 -0
  76. pulpcore/client/pulpcore/models/paginated_filesystem_export_response_list.py +8 -0
  77. pulpcore/client/pulpcore/models/paginated_filesystem_exporter_response_list.py +8 -0
  78. pulpcore/client/pulpcore/models/paginated_generic_remote_response_list.py +8 -0
  79. pulpcore/client/pulpcore/models/paginated_group_response_list.py +8 -0
  80. pulpcore/client/pulpcore/models/paginated_group_role_response_list.py +8 -0
  81. pulpcore/client/pulpcore/models/paginated_group_user_response_list.py +8 -0
  82. pulpcore/client/pulpcore/models/paginated_header_content_guard_response_list.py +8 -0
  83. pulpcore/client/pulpcore/models/paginated_import_response_list.py +8 -0
  84. pulpcore/client/pulpcore/models/paginated_multiple_artifact_content_response_list.py +8 -0
  85. pulpcore/client/pulpcore/models/paginated_open_pgp_distribution_response_list.py +8 -0
  86. pulpcore/client/pulpcore/models/paginated_open_pgp_keyring_response_list.py +8 -0
  87. pulpcore/client/pulpcore/models/paginated_open_pgp_public_key_response_list.py +8 -0
  88. pulpcore/client/pulpcore/models/paginated_open_pgp_public_subkey_response_list.py +8 -0
  89. pulpcore/client/pulpcore/models/paginated_open_pgp_signature_response_list.py +8 -0
  90. pulpcore/client/pulpcore/models/paginated_open_pgp_user_attribute_response_list.py +8 -0
  91. pulpcore/client/pulpcore/models/paginated_open_pgp_user_id_response_list.py +8 -0
  92. pulpcore/client/pulpcore/models/paginated_publication_response_list.py +8 -0
  93. pulpcore/client/pulpcore/models/paginated_pulp_export_response_list.py +8 -0
  94. pulpcore/client/pulpcore/models/paginated_pulp_exporter_response_list.py +8 -0
  95. pulpcore/client/pulpcore/models/paginated_pulp_importer_response_list.py +8 -0
  96. pulpcore/client/pulpcore/models/paginated_rbac_content_guard_response_list.py +8 -0
  97. pulpcore/client/pulpcore/models/paginated_repository_response_list.py +8 -0
  98. pulpcore/client/pulpcore/models/paginated_repository_version_response_list.py +8 -0
  99. pulpcore/client/pulpcore/models/paginated_role_response_list.py +8 -0
  100. pulpcore/client/pulpcore/models/paginated_signing_service_response_list.py +8 -0
  101. pulpcore/client/pulpcore/models/paginated_task_group_response_list.py +8 -0
  102. pulpcore/client/pulpcore/models/paginated_task_response_list.py +8 -0
  103. pulpcore/client/pulpcore/models/paginated_task_schedule_response_list.py +8 -0
  104. pulpcore/client/pulpcore/models/paginated_upload_response_list.py +8 -0
  105. pulpcore/client/pulpcore/models/paginated_upstream_pulp_response_list.py +8 -0
  106. pulpcore/client/pulpcore/models/paginated_user_response_list.py +8 -0
  107. pulpcore/client/pulpcore/models/paginated_user_role_response_list.py +8 -0
  108. pulpcore/client/pulpcore/models/paginated_vulnerability_report_response_list.py +8 -0
  109. pulpcore/client/pulpcore/models/paginated_worker_response_list.py +8 -0
  110. pulpcore/client/pulpcore/models/patched_access_policy.py +8 -0
  111. pulpcore/client/pulpcore/models/patched_composite_content_guard.py +8 -0
  112. pulpcore/client/pulpcore/models/patched_content_redirect_content_guard.py +8 -0
  113. pulpcore/client/pulpcore/models/patched_domain.py +8 -0
  114. pulpcore/client/pulpcore/models/patched_filesystem_exporter.py +8 -0
  115. pulpcore/client/pulpcore/models/patched_group.py +8 -0
  116. pulpcore/client/pulpcore/models/patched_header_content_guard.py +8 -0
  117. pulpcore/client/pulpcore/models/patched_open_pgp_distribution.py +8 -0
  118. pulpcore/client/pulpcore/models/patched_open_pgp_keyring.py +8 -0
  119. pulpcore/client/pulpcore/models/patched_pulp_exporter.py +8 -0
  120. pulpcore/client/pulpcore/models/patched_pulp_importer.py +8 -0
  121. pulpcore/client/pulpcore/models/patched_rbac_content_guard.py +8 -0
  122. pulpcore/client/pulpcore/models/patched_role.py +8 -0
  123. pulpcore/client/pulpcore/models/patched_task_cancel.py +8 -0
  124. pulpcore/client/pulpcore/models/patched_upstream_pulp.py +8 -0
  125. pulpcore/client/pulpcore/models/patched_user.py +8 -0
  126. pulpcore/client/pulpcore/models/profile_artifact_response.py +8 -0
  127. pulpcore/client/pulpcore/models/progress_report_response.py +8 -0
  128. pulpcore/client/pulpcore/models/publication_response.py +8 -0
  129. pulpcore/client/pulpcore/models/pulp_export.py +8 -0
  130. pulpcore/client/pulpcore/models/pulp_export_response.py +8 -0
  131. pulpcore/client/pulpcore/models/pulp_exporter.py +8 -0
  132. pulpcore/client/pulpcore/models/pulp_exporter_response.py +8 -0
  133. pulpcore/client/pulpcore/models/pulp_import.py +8 -0
  134. pulpcore/client/pulpcore/models/pulp_import_check.py +8 -0
  135. pulpcore/client/pulpcore/models/pulp_import_check_response.py +8 -0
  136. pulpcore/client/pulpcore/models/pulp_importer.py +8 -0
  137. pulpcore/client/pulpcore/models/pulp_importer_response.py +8 -0
  138. pulpcore/client/pulpcore/models/purge.py +8 -0
  139. pulpcore/client/pulpcore/models/rbac_content_guard.py +8 -0
  140. pulpcore/client/pulpcore/models/rbac_content_guard_response.py +8 -0
  141. pulpcore/client/pulpcore/models/reclaim_space.py +8 -0
  142. pulpcore/client/pulpcore/models/redis_connection_response.py +8 -0
  143. pulpcore/client/pulpcore/models/repair.py +8 -0
  144. pulpcore/client/pulpcore/models/repository_add_remove_content.py +8 -0
  145. pulpcore/client/pulpcore/models/repository_response.py +8 -0
  146. pulpcore/client/pulpcore/models/repository_version_response.py +8 -0
  147. pulpcore/client/pulpcore/models/role.py +8 -0
  148. pulpcore/client/pulpcore/models/role_response.py +8 -0
  149. pulpcore/client/pulpcore/models/set_label.py +8 -0
  150. pulpcore/client/pulpcore/models/set_label_response.py +8 -0
  151. pulpcore/client/pulpcore/models/signing_service_response.py +8 -0
  152. pulpcore/client/pulpcore/models/status_response.py +15 -9
  153. pulpcore/client/pulpcore/models/storage_response.py +8 -0
  154. pulpcore/client/pulpcore/models/task_group_operation_response.py +8 -0
  155. pulpcore/client/pulpcore/models/task_group_response.py +8 -0
  156. pulpcore/client/pulpcore/models/task_response.py +8 -0
  157. pulpcore/client/pulpcore/models/task_schedule_response.py +8 -0
  158. pulpcore/client/pulpcore/models/unset_label.py +8 -0
  159. pulpcore/client/pulpcore/models/unset_label_response.py +8 -0
  160. pulpcore/client/pulpcore/models/upload.py +8 -0
  161. pulpcore/client/pulpcore/models/upload_chunk_response.py +8 -0
  162. pulpcore/client/pulpcore/models/upload_commit.py +8 -0
  163. pulpcore/client/pulpcore/models/upload_detail_response.py +8 -0
  164. pulpcore/client/pulpcore/models/upload_response.py +8 -0
  165. pulpcore/client/pulpcore/models/upstream_pulp.py +8 -0
  166. pulpcore/client/pulpcore/models/upstream_pulp_response.py +8 -0
  167. pulpcore/client/pulpcore/models/user.py +8 -0
  168. pulpcore/client/pulpcore/models/user_group.py +8 -0
  169. pulpcore/client/pulpcore/models/user_group_response.py +8 -0
  170. pulpcore/client/pulpcore/models/user_response.py +8 -0
  171. pulpcore/client/pulpcore/models/user_role.py +8 -0
  172. pulpcore/client/pulpcore/models/user_role_response.py +8 -0
  173. pulpcore/client/pulpcore/models/version_response.py +8 -0
  174. pulpcore/client/pulpcore/models/vulnerability_report_response.py +8 -0
  175. pulpcore/client/pulpcore/models/worker_response.py +8 -0
  176. pulpcore/client/pulpcore/rest.py +1 -0
  177. pulpcore_client-3.87.0.dist-info/METADATA +572 -0
  178. pulpcore_client-3.87.0.dist-info/RECORD +238 -0
  179. pulpcore/client/pulpcore/models/content_app_status_response.py +0 -99
  180. pulpcore_client-3.85.1.dist-info/METADATA +0 -17
  181. pulpcore_client-3.85.1.dist-info/RECORD +0 -239
  182. {pulpcore_client-3.85.1.dist-info → pulpcore_client-3.87.0.dist-info}/WHEEL +0 -0
  183. {pulpcore_client-3.85.1.dist-info → pulpcore_client-3.87.0.dist-info}/top_level.txt +0 -0
@@ -687,7 +687,7 @@ class TasksApi:
687
687
  unblocked_at__lt: Annotated[Optional[datetime], Field(description="Filter results where unblocked_at is less than value")] = None,
688
688
  unblocked_at__lte: Annotated[Optional[datetime], Field(description="Filter results where unblocked_at is less than or equal to value")] = None,
689
689
  unblocked_at__range: Annotated[Optional[List[datetime]], Field(description="Filter results where unblocked_at is between two comma separated values")] = None,
690
- worker: Annotated[Optional[StrictStr], Field(description="Filter results where worker matches value")] = None,
690
+ worker: Optional[StrictStr] = None,
691
691
  worker__in: Annotated[Optional[List[StrictStr]], Field(description="Filter results where worker is in a comma-separated list of values")] = None,
692
692
  worker__isnull: Annotated[Optional[StrictBool], Field(description="Filter results where worker has a null value")] = None,
693
693
  fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
@@ -819,7 +819,7 @@ class TasksApi:
819
819
  :type unblocked_at__lte: datetime
820
820
  :param unblocked_at__range: Filter results where unblocked_at is between two comma separated values
821
821
  :type unblocked_at__range: List[datetime]
822
- :param worker: Filter results where worker matches value
822
+ :param worker:
823
823
  :type worker: str
824
824
  :param worker__in: Filter results where worker is in a comma-separated list of values
825
825
  :type worker__in: List[str]
@@ -990,7 +990,7 @@ class TasksApi:
990
990
  unblocked_at__lt: Annotated[Optional[datetime], Field(description="Filter results where unblocked_at is less than value")] = None,
991
991
  unblocked_at__lte: Annotated[Optional[datetime], Field(description="Filter results where unblocked_at is less than or equal to value")] = None,
992
992
  unblocked_at__range: Annotated[Optional[List[datetime]], Field(description="Filter results where unblocked_at is between two comma separated values")] = None,
993
- worker: Annotated[Optional[StrictStr], Field(description="Filter results where worker matches value")] = None,
993
+ worker: Optional[StrictStr] = None,
994
994
  worker__in: Annotated[Optional[List[StrictStr]], Field(description="Filter results where worker is in a comma-separated list of values")] = None,
995
995
  worker__isnull: Annotated[Optional[StrictBool], Field(description="Filter results where worker has a null value")] = None,
996
996
  fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
@@ -1122,7 +1122,7 @@ class TasksApi:
1122
1122
  :type unblocked_at__lte: datetime
1123
1123
  :param unblocked_at__range: Filter results where unblocked_at is between two comma separated values
1124
1124
  :type unblocked_at__range: List[datetime]
1125
- :param worker: Filter results where worker matches value
1125
+ :param worker:
1126
1126
  :type worker: str
1127
1127
  :param worker__in: Filter results where worker is in a comma-separated list of values
1128
1128
  :type worker__in: List[str]
@@ -1293,7 +1293,7 @@ class TasksApi:
1293
1293
  unblocked_at__lt: Annotated[Optional[datetime], Field(description="Filter results where unblocked_at is less than value")] = None,
1294
1294
  unblocked_at__lte: Annotated[Optional[datetime], Field(description="Filter results where unblocked_at is less than or equal to value")] = None,
1295
1295
  unblocked_at__range: Annotated[Optional[List[datetime]], Field(description="Filter results where unblocked_at is between two comma separated values")] = None,
1296
- worker: Annotated[Optional[StrictStr], Field(description="Filter results where worker matches value")] = None,
1296
+ worker: Optional[StrictStr] = None,
1297
1297
  worker__in: Annotated[Optional[List[StrictStr]], Field(description="Filter results where worker is in a comma-separated list of values")] = None,
1298
1298
  worker__isnull: Annotated[Optional[StrictBool], Field(description="Filter results where worker has a null value")] = None,
1299
1299
  fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
@@ -1425,7 +1425,7 @@ class TasksApi:
1425
1425
  :type unblocked_at__lte: datetime
1426
1426
  :param unblocked_at__range: Filter results where unblocked_at is between two comma separated values
1427
1427
  :type unblocked_at__range: List[datetime]
1428
- :param worker: Filter results where worker matches value
1428
+ :param worker:
1429
1429
  :type worker: str
1430
1430
  :param worker__in: Filter results where worker is in a comma-separated list of values
1431
1431
  :type worker__in: List[str]
@@ -66,7 +66,7 @@ class WorkersApi:
66
66
  name__startswith: Annotated[Optional[StrictStr], Field(description="Filter results where name starts with value")] = None,
67
67
  offset: Annotated[Optional[StrictInt], Field(description="The initial index from which to return the results.")] = None,
68
68
  online: Optional[StrictBool] = None,
69
- ordering: Annotated[Optional[List[StrictStr]], Field(description="Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `name` - Name * `-name` - Name (descending) * `last_heartbeat` - Last heartbeat * `-last_heartbeat` - Last heartbeat (descending) * `versions` - Versions * `-versions` - Versions (descending) * `pk` - Pk * `-pk` - Pk (descending)")] = None,
69
+ ordering: Annotated[Optional[List[StrictStr]], Field(description="Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `app_type` - App type * `-app_type` - App type (descending) * `name` - Name * `-name` - Name (descending) * `versions` - Versions * `-versions` - Versions (descending) * `ttl` - Ttl * `-ttl` - Ttl (descending) * `last_heartbeat` - Last heartbeat * `-last_heartbeat` - Last heartbeat (descending) * `pk` - Pk * `-pk` - Pk (descending)")] = None,
70
70
  prn__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
71
71
  pulp_href__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
72
72
  pulp_id__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
@@ -86,7 +86,7 @@ class WorkersApi:
86
86
  _headers: Optional[Dict[StrictStr, Any]] = None,
87
87
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
88
88
  ) -> PaginatedWorkerResponseList:
89
- """List workers
89
+ """List app statuss
90
90
 
91
91
  A customized named ModelViewSet that knows how to register itself with the Pulp API router. This viewset is discoverable by its name. \"Normal\" Django Models and Master/Detail models are supported by the ``register_with`` method. Attributes: lookup_field (str): The name of the field by which an object should be looked up, in addition to any parent lookups if this ViewSet is nested. Defaults to 'pk' endpoint_name (str): The name of the final path segment that should identify the ViewSet's collection endpoint. nest_prefix (str): Optional prefix under which this ViewSet should be nested. This must correspond to the \"parent_prefix\" of a router with rest_framework_nested.NestedMixin. None indicates this ViewSet should not be nested. parent_lookup_kwargs (dict): Optional mapping of key names that would appear in self.kwargs to django model filter expressions that can be used with the corresponding value from self.kwargs, used only by a nested ViewSet to filter based on the parent object's identity. schema (DefaultSchema): The schema class to use by default in a viewset.
92
92
 
@@ -132,7 +132,7 @@ class WorkersApi:
132
132
  :type offset: int
133
133
  :param online:
134
134
  :type online: bool
135
- :param ordering: Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `name` - Name * `-name` - Name (descending) * `last_heartbeat` - Last heartbeat * `-last_heartbeat` - Last heartbeat (descending) * `versions` - Versions * `-versions` - Versions (descending) * `pk` - Pk * `-pk` - Pk (descending)
135
+ :param ordering: Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `app_type` - App type * `-app_type` - App type (descending) * `name` - Name * `-name` - Name (descending) * `versions` - Versions * `-versions` - Versions (descending) * `ttl` - Ttl * `-ttl` - Ttl (descending) * `last_heartbeat` - Last heartbeat * `-last_heartbeat` - Last heartbeat (descending) * `pk` - Pk * `-pk` - Pk (descending)
136
136
  :type ordering: List[str]
137
137
  :param prn__in: Multiple values may be separated by commas.
138
138
  :type prn__in: List[str]
@@ -241,7 +241,7 @@ class WorkersApi:
241
241
  name__startswith: Annotated[Optional[StrictStr], Field(description="Filter results where name starts with value")] = None,
242
242
  offset: Annotated[Optional[StrictInt], Field(description="The initial index from which to return the results.")] = None,
243
243
  online: Optional[StrictBool] = None,
244
- ordering: Annotated[Optional[List[StrictStr]], Field(description="Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `name` - Name * `-name` - Name (descending) * `last_heartbeat` - Last heartbeat * `-last_heartbeat` - Last heartbeat (descending) * `versions` - Versions * `-versions` - Versions (descending) * `pk` - Pk * `-pk` - Pk (descending)")] = None,
244
+ ordering: Annotated[Optional[List[StrictStr]], Field(description="Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `app_type` - App type * `-app_type` - App type (descending) * `name` - Name * `-name` - Name (descending) * `versions` - Versions * `-versions` - Versions (descending) * `ttl` - Ttl * `-ttl` - Ttl (descending) * `last_heartbeat` - Last heartbeat * `-last_heartbeat` - Last heartbeat (descending) * `pk` - Pk * `-pk` - Pk (descending)")] = None,
245
245
  prn__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
246
246
  pulp_href__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
247
247
  pulp_id__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
@@ -261,7 +261,7 @@ class WorkersApi:
261
261
  _headers: Optional[Dict[StrictStr, Any]] = None,
262
262
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
263
263
  ) -> ApiResponse[PaginatedWorkerResponseList]:
264
- """List workers
264
+ """List app statuss
265
265
 
266
266
  A customized named ModelViewSet that knows how to register itself with the Pulp API router. This viewset is discoverable by its name. \"Normal\" Django Models and Master/Detail models are supported by the ``register_with`` method. Attributes: lookup_field (str): The name of the field by which an object should be looked up, in addition to any parent lookups if this ViewSet is nested. Defaults to 'pk' endpoint_name (str): The name of the final path segment that should identify the ViewSet's collection endpoint. nest_prefix (str): Optional prefix under which this ViewSet should be nested. This must correspond to the \"parent_prefix\" of a router with rest_framework_nested.NestedMixin. None indicates this ViewSet should not be nested. parent_lookup_kwargs (dict): Optional mapping of key names that would appear in self.kwargs to django model filter expressions that can be used with the corresponding value from self.kwargs, used only by a nested ViewSet to filter based on the parent object's identity. schema (DefaultSchema): The schema class to use by default in a viewset.
267
267
 
@@ -307,7 +307,7 @@ class WorkersApi:
307
307
  :type offset: int
308
308
  :param online:
309
309
  :type online: bool
310
- :param ordering: Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `name` - Name * `-name` - Name (descending) * `last_heartbeat` - Last heartbeat * `-last_heartbeat` - Last heartbeat (descending) * `versions` - Versions * `-versions` - Versions (descending) * `pk` - Pk * `-pk` - Pk (descending)
310
+ :param ordering: Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `app_type` - App type * `-app_type` - App type (descending) * `name` - Name * `-name` - Name (descending) * `versions` - Versions * `-versions` - Versions (descending) * `ttl` - Ttl * `-ttl` - Ttl (descending) * `last_heartbeat` - Last heartbeat * `-last_heartbeat` - Last heartbeat (descending) * `pk` - Pk * `-pk` - Pk (descending)
311
311
  :type ordering: List[str]
312
312
  :param prn__in: Multiple values may be separated by commas.
313
313
  :type prn__in: List[str]
@@ -416,7 +416,7 @@ class WorkersApi:
416
416
  name__startswith: Annotated[Optional[StrictStr], Field(description="Filter results where name starts with value")] = None,
417
417
  offset: Annotated[Optional[StrictInt], Field(description="The initial index from which to return the results.")] = None,
418
418
  online: Optional[StrictBool] = None,
419
- ordering: Annotated[Optional[List[StrictStr]], Field(description="Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `name` - Name * `-name` - Name (descending) * `last_heartbeat` - Last heartbeat * `-last_heartbeat` - Last heartbeat (descending) * `versions` - Versions * `-versions` - Versions (descending) * `pk` - Pk * `-pk` - Pk (descending)")] = None,
419
+ ordering: Annotated[Optional[List[StrictStr]], Field(description="Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `app_type` - App type * `-app_type` - App type (descending) * `name` - Name * `-name` - Name (descending) * `versions` - Versions * `-versions` - Versions (descending) * `ttl` - Ttl * `-ttl` - Ttl (descending) * `last_heartbeat` - Last heartbeat * `-last_heartbeat` - Last heartbeat (descending) * `pk` - Pk * `-pk` - Pk (descending)")] = None,
420
420
  prn__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
421
421
  pulp_href__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
422
422
  pulp_id__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
@@ -436,7 +436,7 @@ class WorkersApi:
436
436
  _headers: Optional[Dict[StrictStr, Any]] = None,
437
437
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
438
438
  ) -> RESTResponseType:
439
- """List workers
439
+ """List app statuss
440
440
 
441
441
  A customized named ModelViewSet that knows how to register itself with the Pulp API router. This viewset is discoverable by its name. \"Normal\" Django Models and Master/Detail models are supported by the ``register_with`` method. Attributes: lookup_field (str): The name of the field by which an object should be looked up, in addition to any parent lookups if this ViewSet is nested. Defaults to 'pk' endpoint_name (str): The name of the final path segment that should identify the ViewSet's collection endpoint. nest_prefix (str): Optional prefix under which this ViewSet should be nested. This must correspond to the \"parent_prefix\" of a router with rest_framework_nested.NestedMixin. None indicates this ViewSet should not be nested. parent_lookup_kwargs (dict): Optional mapping of key names that would appear in self.kwargs to django model filter expressions that can be used with the corresponding value from self.kwargs, used only by a nested ViewSet to filter based on the parent object's identity. schema (DefaultSchema): The schema class to use by default in a viewset.
442
442
 
@@ -482,7 +482,7 @@ class WorkersApi:
482
482
  :type offset: int
483
483
  :param online:
484
484
  :type online: bool
485
- :param ordering: Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `name` - Name * `-name` - Name (descending) * `last_heartbeat` - Last heartbeat * `-last_heartbeat` - Last heartbeat (descending) * `versions` - Versions * `-versions` - Versions (descending) * `pk` - Pk * `-pk` - Pk (descending)
485
+ :param ordering: Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `app_type` - App type * `-app_type` - App type (descending) * `name` - Name * `-name` - Name (descending) * `versions` - Versions * `-versions` - Versions (descending) * `ttl` - Ttl * `-ttl` - Ttl (descending) * `last_heartbeat` - Last heartbeat * `-last_heartbeat` - Last heartbeat (descending) * `pk` - Pk * `-pk` - Pk (descending)
486
486
  :type ordering: List[str]
487
487
  :param prn__in: Multiple values may be separated by commas.
488
488
  :type prn__in: List[str]
@@ -837,7 +837,7 @@ class WorkersApi:
837
837
  _headers: Optional[Dict[StrictStr, Any]] = None,
838
838
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
839
839
  ) -> WorkerResponse:
840
- """Inspect a worker
840
+ """Inspect an app status
841
841
 
842
842
  A customized named ModelViewSet that knows how to register itself with the Pulp API router. This viewset is discoverable by its name. \"Normal\" Django Models and Master/Detail models are supported by the ``register_with`` method. Attributes: lookup_field (str): The name of the field by which an object should be looked up, in addition to any parent lookups if this ViewSet is nested. Defaults to 'pk' endpoint_name (str): The name of the final path segment that should identify the ViewSet's collection endpoint. nest_prefix (str): Optional prefix under which this ViewSet should be nested. This must correspond to the \"parent_prefix\" of a router with rest_framework_nested.NestedMixin. None indicates this ViewSet should not be nested. parent_lookup_kwargs (dict): Optional mapping of key names that would appear in self.kwargs to django model filter expressions that can be used with the corresponding value from self.kwargs, used only by a nested ViewSet to filter based on the parent object's identity. schema (DefaultSchema): The schema class to use by default in a viewset.
843
843
 
@@ -916,7 +916,7 @@ class WorkersApi:
916
916
  _headers: Optional[Dict[StrictStr, Any]] = None,
917
917
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
918
918
  ) -> ApiResponse[WorkerResponse]:
919
- """Inspect a worker
919
+ """Inspect an app status
920
920
 
921
921
  A customized named ModelViewSet that knows how to register itself with the Pulp API router. This viewset is discoverable by its name. \"Normal\" Django Models and Master/Detail models are supported by the ``register_with`` method. Attributes: lookup_field (str): The name of the field by which an object should be looked up, in addition to any parent lookups if this ViewSet is nested. Defaults to 'pk' endpoint_name (str): The name of the final path segment that should identify the ViewSet's collection endpoint. nest_prefix (str): Optional prefix under which this ViewSet should be nested. This must correspond to the \"parent_prefix\" of a router with rest_framework_nested.NestedMixin. None indicates this ViewSet should not be nested. parent_lookup_kwargs (dict): Optional mapping of key names that would appear in self.kwargs to django model filter expressions that can be used with the corresponding value from self.kwargs, used only by a nested ViewSet to filter based on the parent object's identity. schema (DefaultSchema): The schema class to use by default in a viewset.
922
922
 
@@ -995,7 +995,7 @@ class WorkersApi:
995
995
  _headers: Optional[Dict[StrictStr, Any]] = None,
996
996
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
997
997
  ) -> RESTResponseType:
998
- """Inspect a worker
998
+ """Inspect an app status
999
999
 
1000
1000
  A customized named ModelViewSet that knows how to register itself with the Pulp API router. This viewset is discoverable by its name. \"Normal\" Django Models and Master/Detail models are supported by the ``register_with`` method. Attributes: lookup_field (str): The name of the field by which an object should be looked up, in addition to any parent lookups if this ViewSet is nested. Defaults to 'pk' endpoint_name (str): The name of the final path segment that should identify the ViewSet's collection endpoint. nest_prefix (str): Optional prefix under which this ViewSet should be nested. This must correspond to the \"parent_prefix\" of a router with rest_framework_nested.NestedMixin. None indicates this ViewSet should not be nested. parent_lookup_kwargs (dict): Optional mapping of key names that would appear in self.kwargs to django model filter expressions that can be used with the corresponding value from self.kwargs, used only by a nested ViewSet to filter based on the parent object's identity. schema (DefaultSchema): The schema class to use by default in a viewset.
1001
1001
 
@@ -91,7 +91,7 @@ class ApiClient:
91
91
  self.default_headers[header_name] = header_value
92
92
  self.cookie = cookie
93
93
  # Set default User-Agent.
94
- self.user_agent = 'OpenAPI-Generator/3.85.1/python'
94
+ self.user_agent = 'OpenAPI-Generator/3.87.0/python'
95
95
  self.client_side_validation = configuration.client_side_validation
96
96
 
97
97
  def __enter__(self):
@@ -383,6 +383,10 @@ class ApiClient:
383
383
  else:
384
384
  obj_dict = obj.__dict__
385
385
 
386
+ if isinstance(obj_dict, list):
387
+ # here we handle instances that can either be a list or something else, and only became a real list by calling to_dict()
388
+ return self.sanitize_for_serialization(obj_dict)
389
+
386
390
  return {
387
391
  key: self.sanitize_for_serialization(val)
388
392
  for key, val in obj_dict.items()
@@ -518,7 +522,7 @@ class ApiClient:
518
522
  if k in collection_formats:
519
523
  collection_format = collection_formats[k]
520
524
  if collection_format == 'multi':
521
- new_params.extend((k, str(value)) for value in v)
525
+ new_params.extend((k, quote(str(value))) for value in v)
522
526
  else:
523
527
  if collection_format == 'ssv':
524
528
  delimiter = ' '
@@ -19,7 +19,7 @@ import logging
19
19
  from logging import FileHandler
20
20
  import multiprocessing
21
21
  import sys
22
- from typing import Any, ClassVar, Dict, List, Literal, Optional, TypedDict
22
+ from typing import Any, ClassVar, Dict, List, Literal, Optional, TypedDict, Union
23
23
  from typing_extensions import NotRequired, Self
24
24
 
25
25
  import urllib3
@@ -163,6 +163,8 @@ class Configuration:
163
163
  :param ssl_ca_cert: str - the path to a file of concatenated CA certificates
164
164
  in PEM format.
165
165
  :param retries: Number of retries for API requests.
166
+ :param ca_cert_data: verify the peer using concatenated CA certificate data
167
+ in PEM (str) or DER (bytes) format.
166
168
 
167
169
  :Example:
168
170
 
@@ -212,13 +214,14 @@ conf = pulpcore.client.pulpcore.Configuration(
212
214
  username: Optional[str]=None,
213
215
  password: Optional[str]=None,
214
216
  access_token: Optional[str]=None,
215
- server_index: Optional[int]=None,
217
+ server_index: Optional[int]=None,
216
218
  server_variables: Optional[ServerVariablesT]=None,
217
219
  server_operation_index: Optional[Dict[int, int]]=None,
218
220
  server_operation_variables: Optional[Dict[int, ServerVariablesT]]=None,
219
221
  ignore_operation_servers: bool=False,
220
222
  ssl_ca_cert: Optional[str]=None,
221
223
  retries: Optional[int] = None,
224
+ ca_cert_data: Optional[Union[str, bytes]] = None,
222
225
  *,
223
226
  debug: Optional[bool] = None,
224
227
  ) -> None:
@@ -296,6 +299,10 @@ conf = pulpcore.client.pulpcore.Configuration(
296
299
  self.ssl_ca_cert = ssl_ca_cert
297
300
  """Set this to customize the certificate file to verify the peer.
298
301
  """
302
+ self.ca_cert_data = ca_cert_data
303
+ """Set this to verify the peer using PEM (str) or DER (bytes)
304
+ certificate data.
305
+ """
299
306
  self.cert_file = None
300
307
  """client certificate file
301
308
  """
@@ -549,7 +556,7 @@ conf = pulpcore.client.pulpcore.Configuration(
549
556
  "OS: {env}\n"\
550
557
  "Python Version: {pyversion}\n"\
551
558
  "Version of the API: v3\n"\
552
- "SDK Package Version: 3.85.1".\
559
+ "SDK Package Version: 3.87.0".\
553
560
  format(env=sys.platform, pyversion=sys.version)
554
561
 
555
562
  def get_host_settings(self) -> List[HostSetting]:
@@ -151,6 +151,13 @@ class ApiException(OpenApiException):
151
151
  if http_resp.status == 404:
152
152
  raise NotFoundException(http_resp=http_resp, body=body, data=data)
153
153
 
154
+ # Added new conditions for 409 and 422
155
+ if http_resp.status == 409:
156
+ raise ConflictException(http_resp=http_resp, body=body, data=data)
157
+
158
+ if http_resp.status == 422:
159
+ raise UnprocessableEntityException(http_resp=http_resp, body=body, data=data)
160
+
154
161
  if 500 <= http_resp.status <= 599:
155
162
  raise ServiceException(http_resp=http_resp, body=body, data=data)
156
163
  raise ApiException(http_resp=http_resp, body=body, data=data)
@@ -189,6 +196,16 @@ class ServiceException(ApiException):
189
196
  pass
190
197
 
191
198
 
199
+ class ConflictException(ApiException):
200
+ """Exception for HTTP 409 Conflict."""
201
+ pass
202
+
203
+
204
+ class UnprocessableEntityException(ApiException):
205
+ """Exception for HTTP 422 Unprocessable Entity."""
206
+ pass
207
+
208
+
192
209
  def render_path(path_to_item):
193
210
  """Returns a string representation of a path"""
194
211
  result = ""
@@ -17,13 +17,12 @@
17
17
  # import models into model package
18
18
  from pulpcore.client.pulpcore.models.access_policy import AccessPolicy
19
19
  from pulpcore.client.pulpcore.models.access_policy_response import AccessPolicyResponse
20
- from pulpcore.client.pulpcore.models.api_app_status_response import ApiAppStatusResponse
20
+ from pulpcore.client.pulpcore.models.app_status_response import AppStatusResponse
21
21
  from pulpcore.client.pulpcore.models.artifact_distribution_response import ArtifactDistributionResponse
22
22
  from pulpcore.client.pulpcore.models.artifact_response import ArtifactResponse
23
23
  from pulpcore.client.pulpcore.models.async_operation_response import AsyncOperationResponse
24
24
  from pulpcore.client.pulpcore.models.composite_content_guard import CompositeContentGuard
25
25
  from pulpcore.client.pulpcore.models.composite_content_guard_response import CompositeContentGuardResponse
26
- from pulpcore.client.pulpcore.models.content_app_status_response import ContentAppStatusResponse
27
26
  from pulpcore.client.pulpcore.models.content_guard_response import ContentGuardResponse
28
27
  from pulpcore.client.pulpcore.models.content_redirect_content_guard import ContentRedirectContentGuard
29
28
  from pulpcore.client.pulpcore.models.content_redirect_content_guard_response import ContentRedirectContentGuardResponse
@@ -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 AccessPolicy(BaseModel):
27
35
  """
28
36
  Serializer for AccessPolicy.
@@ -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 AccessPolicyResponse(BaseModel):
28
36
  """
29
37
  Serializer for AccessPolicy.
@@ -24,9 +24,17 @@ 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
- class ApiAppStatusResponse(BaseModel):
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
+ class AppStatusResponse(BaseModel):
28
36
  """
29
- Base serializer for use with [pulpcore.app.models.Model][] This ensures that all Serializers provide values for the 'pulp_href` field. The class provides a default for the ``ref_name`` attribute in the ModelSerializers's ``Meta`` class. This ensures that the OpenAPI definitions of plugins are namespaced properly.
37
+ AppStatusResponse
30
38
  """ # noqa: E501
31
39
  name: Optional[StrictStr] = Field(default=None, description="The name of the worker.")
32
40
  last_heartbeat: Optional[datetime] = Field(default=None, description="Timestamp of the last time the worker talked to the service.")
@@ -51,7 +59,7 @@ class ApiAppStatusResponse(BaseModel):
51
59
 
52
60
  @classmethod
53
61
  def from_json(cls, json_str: str) -> Optional[Self]:
54
- """Create an instance of ApiAppStatusResponse from a JSON string"""
62
+ """Create an instance of AppStatusResponse from a JSON string"""
55
63
  return cls.from_dict(json.loads(json_str))
56
64
 
57
65
  def to_dict(self) -> Dict[str, Any]:
@@ -82,7 +90,7 @@ class ApiAppStatusResponse(BaseModel):
82
90
 
83
91
  @classmethod
84
92
  def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
85
- """Create an instance of ApiAppStatusResponse from a dict"""
93
+ """Create an instance of AppStatusResponse from a dict"""
86
94
  if obj is None:
87
95
  return None
88
96
 
@@ -24,22 +24,30 @@ 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 ArtifactDistributionResponse(BaseModel):
28
36
  """
29
37
  A serializer for ArtifactDistribution.
30
38
  """ # noqa: E501
39
+ name: StrictStr = Field(description="A unique name. Ex, `rawhide` and `stable`.")
31
40
  pulp_labels: Optional[Dict[str, Optional[StrictStr]]] = None
32
- pulp_href: Optional[StrictStr] = None
33
- content_guard: Optional[StrictStr] = Field(default=None, description="An optional content-guard.")
34
41
  base_path: StrictStr = Field(description="The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")")
35
42
  pulp_last_updated: Optional[datetime] = Field(default=None, description="Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.")
43
+ pulp_created: Optional[datetime] = Field(default=None, description="Timestamp of creation.")
36
44
  hidden: Optional[StrictBool] = Field(default=False, description="Whether this distribution should be shown in the content app.")
37
- name: StrictStr = Field(description="A unique name. Ex, `rawhide` and `stable`.")
38
- no_content_change_since: Optional[StrictStr] = Field(default=None, description="Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.")
45
+ content_guard: Optional[StrictStr] = Field(default=None, description="An optional content-guard.")
39
46
  prn: Optional[StrictStr] = Field(default=None, description="The Pulp Resource Name (PRN).")
40
- pulp_created: Optional[datetime] = Field(default=None, description="Timestamp of creation.")
47
+ no_content_change_since: Optional[StrictStr] = Field(default=None, description="Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.")
48
+ pulp_href: Optional[StrictStr] = None
41
49
  base_url: Optional[StrictStr] = Field(default=None, description="The URL for accessing the publication as defined by this distribution.")
42
- __properties: ClassVar[List[str]] = ["pulp_labels", "pulp_href", "content_guard", "base_path", "pulp_last_updated", "hidden", "name", "no_content_change_since", "prn", "pulp_created", "base_url"]
50
+ __properties: ClassVar[List[str]] = ["name", "pulp_labels", "base_path", "pulp_last_updated", "pulp_created", "hidden", "content_guard", "prn", "no_content_change_since", "pulp_href", "base_url"]
43
51
 
44
52
  model_config = ConfigDict(
45
53
  populate_by_name=True,
@@ -79,11 +87,11 @@ class ArtifactDistributionResponse(BaseModel):
79
87
  * OpenAPI `readOnly` fields are excluded.
80
88
  """
81
89
  excluded_fields: Set[str] = set([
82
- "pulp_href",
83
90
  "pulp_last_updated",
84
- "no_content_change_since",
85
- "prn",
86
91
  "pulp_created",
92
+ "prn",
93
+ "no_content_change_since",
94
+ "pulp_href",
87
95
  "base_url",
88
96
  ])
89
97
 
@@ -109,16 +117,16 @@ class ArtifactDistributionResponse(BaseModel):
109
117
  return cls.model_validate(obj)
110
118
 
111
119
  _obj = cls.model_validate({
120
+ "name": obj.get("name"),
112
121
  "pulp_labels": obj.get("pulp_labels"),
113
- "pulp_href": obj.get("pulp_href"),
114
- "content_guard": obj.get("content_guard"),
115
122
  "base_path": obj.get("base_path"),
116
123
  "pulp_last_updated": obj.get("pulp_last_updated"),
124
+ "pulp_created": obj.get("pulp_created"),
117
125
  "hidden": obj.get("hidden") if obj.get("hidden") is not None else False,
118
- "name": obj.get("name"),
119
- "no_content_change_since": obj.get("no_content_change_since"),
126
+ "content_guard": obj.get("content_guard"),
120
127
  "prn": obj.get("prn"),
121
- "pulp_created": obj.get("pulp_created"),
128
+ "no_content_change_since": obj.get("no_content_change_since"),
129
+ "pulp_href": obj.get("pulp_href"),
122
130
  "base_url": obj.get("base_url")
123
131
  })
124
132
  return _obj
@@ -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 ArtifactResponse(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.
@@ -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 AsyncOperationResponse(BaseModel):
27
35
  """
28
36
  Serializer for asynchronous operations.
@@ -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 CompositeContentGuard(BaseModel):
28
36
  """
29
37
  Base class for content guard serializers.
@@ -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 CompositeContentGuardResponse(BaseModel):
28
36
  """
29
37
  Base class for content guard serializers.
@@ -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 ContentGuardResponse(BaseModel):
28
36
  """
29
37
  Base class for content guard serializers.
@@ -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 ContentRedirectContentGuard(BaseModel):
28
36
  """
29
37
  A serializer for ContentRedirectContentGuard.
@@ -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 ContentRedirectContentGuardResponse(BaseModel):
28
36
  """
29
37
  A serializer for ContentRedirectContentGuard.
@@ -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 ContentSettingsResponse(BaseModel):
27
35
  """
28
36
  Serializer for information about content-app-settings for the pulp instance
@@ -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 ContentSummaryResponse(BaseModel):
27
35
  """
28
36
  Serializer for the RepositoryVersion content summary
@@ -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 DatabaseConnectionResponse(BaseModel):
27
35
  """
28
36
  Serializer for the database connection information
@@ -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 DistributionResponse(BaseModel):
28
36
  """
29
37
  The Serializer for the Distribution model. The serializer deliberately omits the `publication` and `repository_version` field due to plugins typically requiring one or the other but not both. To include the ``publication`` field, it is recommended plugins define the field:: publication = DetailRelatedField( required=False, help_text=_(\"Publication to be served\"), view_name_pattern=r\"publications(-.*/.*)?-detail\", queryset=models.Publication.objects.exclude(complete=False), allow_null=True, ) To include the ``repository_version`` field, it is recommended plugins define the field:: repository_version = RepositoryVersionRelatedField( required=False, help_text=_(\"RepositoryVersion to be served\"), allow_null=True ) Additionally, the serializer omits the ``remote`` field, which is used for pull-through caching feature and only by plugins which use publications. Plugins implementing a pull-through caching should define the field in their derived serializer class like this:: remote = DetailRelatedField( required=False, help_text=_('Remote that can be used to fetch content when using pull-through caching.'), queryset=models.Remote.objects.all(), allow_null=True )