crc-pulpcore-client 20250819.1__py3-none-any.whl → 20250821.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.

Files changed (239) hide show
  1. crc-pulpcore-client/api_client.py +1 -1
  2. crc-pulpcore-client/configuration.py +3 -3
  3. crc-pulpcore-client/models/artifact_distribution_response.py +13 -13
  4. {crc_pulpcore_client-20250819.1.dist-info → crc_pulpcore_client-20250821.1.dist-info}/METADATA +1 -1
  5. crc_pulpcore_client-20250821.1.dist-info/RECORD +234 -0
  6. crc_pulpcore_client-20250821.1.dist-info/top_level.txt +1 -0
  7. crc_pulpcore_client-20250819.1.dist-info/RECORD +0 -464
  8. crc_pulpcore_client-20250819.1.dist-info/top_level.txt +0 -2
  9. services-pulpcore-client/__init__.py +0 -2
  10. services-pulpcore-client/api/__init__.py +0 -53
  11. services-pulpcore-client/api/access_policies_api.py +0 -1864
  12. services-pulpcore-client/api/artifacts_api.py +0 -1615
  13. services-pulpcore-client/api/content_api.py +0 -598
  14. services-pulpcore-client/api/content_openpgp_publickey_api.py +0 -1887
  15. services-pulpcore-client/api/content_openpgp_publicsubkey_api.py +0 -1518
  16. services-pulpcore-client/api/content_openpgp_signature_api.py +0 -1518
  17. services-pulpcore-client/api/content_openpgp_userattribute_api.py +0 -1518
  18. services-pulpcore-client/api/content_openpgp_userid_api.py +0 -1655
  19. services-pulpcore-client/api/contentguards_api.py +0 -667
  20. services-pulpcore-client/api/contentguards_composite_api.py +0 -3401
  21. services-pulpcore-client/api/contentguards_content_redirect_api.py +0 -3401
  22. services-pulpcore-client/api/contentguards_header_api.py +0 -3401
  23. services-pulpcore-client/api/contentguards_rbac_api.py +0 -3401
  24. services-pulpcore-client/api/distributions_api.py +0 -822
  25. services-pulpcore-client/api/distributions_artifacts_api.py +0 -1103
  26. services-pulpcore-client/api/distributions_openpgp_api.py +0 -2676
  27. services-pulpcore-client/api/domains_api.py +0 -3106
  28. services-pulpcore-client/api/exporters_filesystem_api.py +0 -2157
  29. services-pulpcore-client/api/exporters_filesystem_exports_api.py +0 -1288
  30. services-pulpcore-client/api/exporters_pulp_api.py +0 -2157
  31. services-pulpcore-client/api/exporters_pulp_exports_api.py +0 -1288
  32. services-pulpcore-client/api/groups_api.py +0 -3368
  33. services-pulpcore-client/api/groups_roles_api.py +0 -1496
  34. services-pulpcore-client/api/groups_users_api.py +0 -972
  35. services-pulpcore-client/api/importers_pulp_api.py +0 -2149
  36. services-pulpcore-client/api/importers_pulp_import_check_api.py +0 -350
  37. services-pulpcore-client/api/importers_pulp_imports_api.py +0 -1288
  38. services-pulpcore-client/api/livez_api.py +0 -329
  39. services-pulpcore-client/api/login_api.py +0 -897
  40. services-pulpcore-client/api/orphans_api.py +0 -319
  41. services-pulpcore-client/api/orphans_cleanup_api.py +0 -350
  42. services-pulpcore-client/api/publications_api.py +0 -765
  43. services-pulpcore-client/api/remotes_api.py +0 -850
  44. services-pulpcore-client/api/repair_api.py +0 -350
  45. services-pulpcore-client/api/repositories_api.py +0 -872
  46. services-pulpcore-client/api/repositories_openpgp_keyring_api.py +0 -4546
  47. services-pulpcore-client/api/repositories_reclaim_space_api.py +0 -350
  48. services-pulpcore-client/api/repository_versions_api.py +0 -764
  49. services-pulpcore-client/api/roles_api.py +0 -2269
  50. services-pulpcore-client/api/signing_services_api.py +0 -811
  51. services-pulpcore-client/api/status_api.py +0 -337
  52. services-pulpcore-client/api/task_groups_api.py +0 -1012
  53. services-pulpcore-client/api/task_schedules_api.py +0 -2114
  54. services-pulpcore-client/api/tasks_api.py +0 -4299
  55. services-pulpcore-client/api/uploads_api.py +0 -3346
  56. services-pulpcore-client/api/upstream_pulps_api.py +0 -4001
  57. services-pulpcore-client/api/users_api.py +0 -2373
  58. services-pulpcore-client/api/users_roles_api.py +0 -1496
  59. services-pulpcore-client/api/workers_api.py +0 -1148
  60. services-pulpcore-client/api_client.py +0 -798
  61. services-pulpcore-client/api_response.py +0 -21
  62. services-pulpcore-client/configuration.py +0 -628
  63. services-pulpcore-client/exceptions.py +0 -200
  64. services-pulpcore-client/models/__init__.py +0 -189
  65. services-pulpcore-client/models/access_policy.py +0 -94
  66. services-pulpcore-client/models/access_policy_response.py +0 -119
  67. services-pulpcore-client/models/api_app_status_response.py +0 -99
  68. services-pulpcore-client/models/artifact_distribution_response.py +0 -126
  69. services-pulpcore-client/models/artifact_response.py +0 -149
  70. services-pulpcore-client/models/async_operation_response.py +0 -88
  71. services-pulpcore-client/models/composite_content_guard.py +0 -98
  72. services-pulpcore-client/models/composite_content_guard_response.py +0 -114
  73. services-pulpcore-client/models/content_app_status_response.py +0 -99
  74. services-pulpcore-client/models/content_guard_response.py +0 -112
  75. services-pulpcore-client/models/content_redirect_content_guard.py +0 -96
  76. services-pulpcore-client/models/content_redirect_content_guard_response.py +0 -112
  77. services-pulpcore-client/models/content_settings_response.py +0 -95
  78. services-pulpcore-client/models/content_summary_response.py +0 -92
  79. services-pulpcore-client/models/database_connection_response.py +0 -88
  80. services-pulpcore-client/models/distribution_response.py +0 -133
  81. services-pulpcore-client/models/domain.py +0 -114
  82. services-pulpcore-client/models/domain_backend_migrator.py +0 -91
  83. services-pulpcore-client/models/domain_response.py +0 -131
  84. services-pulpcore-client/models/evaluation_response.py +0 -92
  85. services-pulpcore-client/models/filesystem_export.py +0 -99
  86. services-pulpcore-client/models/filesystem_export_response.py +0 -118
  87. services-pulpcore-client/models/filesystem_exporter.py +0 -94
  88. services-pulpcore-client/models/filesystem_exporter_response.py +0 -110
  89. services-pulpcore-client/models/generic_remote_response.py +0 -199
  90. services-pulpcore-client/models/generic_remote_response_hidden_fields_inner.py +0 -90
  91. services-pulpcore-client/models/generic_remote_response_policy_enum.py +0 -39
  92. services-pulpcore-client/models/group.py +0 -89
  93. services-pulpcore-client/models/group_progress_report_response.py +0 -111
  94. services-pulpcore-client/models/group_response.py +0 -101
  95. services-pulpcore-client/models/group_role.py +0 -110
  96. services-pulpcore-client/models/group_role_response.py +0 -134
  97. services-pulpcore-client/models/group_user.py +0 -89
  98. services-pulpcore-client/models/group_user_response.py +0 -97
  99. services-pulpcore-client/models/header_content_guard.py +0 -107
  100. services-pulpcore-client/models/header_content_guard_response.py +0 -123
  101. services-pulpcore-client/models/import_response.py +0 -107
  102. services-pulpcore-client/models/login_response.py +0 -98
  103. services-pulpcore-client/models/method_enum.py +0 -39
  104. services-pulpcore-client/models/minimal_task_response.py +0 -125
  105. services-pulpcore-client/models/multiple_artifact_content_response.py +0 -107
  106. services-pulpcore-client/models/my_permissions_response.py +0 -88
  107. services-pulpcore-client/models/nested_open_pgp_public_subkey.py +0 -92
  108. services-pulpcore-client/models/nested_open_pgp_public_subkey_response.py +0 -104
  109. services-pulpcore-client/models/nested_open_pgp_signature.py +0 -120
  110. services-pulpcore-client/models/nested_open_pgp_signature_response.py +0 -124
  111. services-pulpcore-client/models/nested_open_pgp_user_attribute.py +0 -89
  112. services-pulpcore-client/models/nested_open_pgp_user_attribute_response.py +0 -101
  113. services-pulpcore-client/models/nested_open_pgp_user_id.py +0 -89
  114. services-pulpcore-client/models/nested_open_pgp_user_id_response.py +0 -100
  115. services-pulpcore-client/models/nested_role.py +0 -93
  116. services-pulpcore-client/models/nested_role_response.py +0 -92
  117. services-pulpcore-client/models/object_roles_response.py +0 -96
  118. services-pulpcore-client/models/open_pgp_distribution.py +0 -116
  119. services-pulpcore-client/models/open_pgp_distribution_response.py +0 -140
  120. services-pulpcore-client/models/open_pgp_keyring.py +0 -112
  121. services-pulpcore-client/models/open_pgp_keyring_response.py +0 -137
  122. services-pulpcore-client/models/open_pgp_public_key_response.py +0 -150
  123. services-pulpcore-client/models/open_pgp_public_subkey_response.py +0 -126
  124. services-pulpcore-client/models/open_pgp_signature_response.py +0 -146
  125. services-pulpcore-client/models/open_pgp_user_attribute_response.py +0 -124
  126. services-pulpcore-client/models/open_pgp_user_id_response.py +0 -123
  127. services-pulpcore-client/models/orphans_cleanup.py +0 -96
  128. services-pulpcore-client/models/paginated_access_policy_response_list.py +0 -112
  129. services-pulpcore-client/models/paginated_artifact_distribution_response_list.py +0 -112
  130. services-pulpcore-client/models/paginated_artifact_response_list.py +0 -112
  131. services-pulpcore-client/models/paginated_composite_content_guard_response_list.py +0 -112
  132. services-pulpcore-client/models/paginated_content_guard_response_list.py +0 -112
  133. services-pulpcore-client/models/paginated_content_redirect_content_guard_response_list.py +0 -112
  134. services-pulpcore-client/models/paginated_distribution_response_list.py +0 -112
  135. services-pulpcore-client/models/paginated_domain_response_list.py +0 -112
  136. services-pulpcore-client/models/paginated_filesystem_export_response_list.py +0 -112
  137. services-pulpcore-client/models/paginated_filesystem_exporter_response_list.py +0 -112
  138. services-pulpcore-client/models/paginated_generic_remote_response_list.py +0 -112
  139. services-pulpcore-client/models/paginated_group_response_list.py +0 -112
  140. services-pulpcore-client/models/paginated_group_role_response_list.py +0 -112
  141. services-pulpcore-client/models/paginated_group_user_response_list.py +0 -112
  142. services-pulpcore-client/models/paginated_header_content_guard_response_list.py +0 -112
  143. services-pulpcore-client/models/paginated_import_response_list.py +0 -112
  144. services-pulpcore-client/models/paginated_multiple_artifact_content_response_list.py +0 -112
  145. services-pulpcore-client/models/paginated_open_pgp_distribution_response_list.py +0 -112
  146. services-pulpcore-client/models/paginated_open_pgp_keyring_response_list.py +0 -112
  147. services-pulpcore-client/models/paginated_open_pgp_public_key_response_list.py +0 -112
  148. services-pulpcore-client/models/paginated_open_pgp_public_subkey_response_list.py +0 -112
  149. services-pulpcore-client/models/paginated_open_pgp_signature_response_list.py +0 -112
  150. services-pulpcore-client/models/paginated_open_pgp_user_attribute_response_list.py +0 -112
  151. services-pulpcore-client/models/paginated_open_pgp_user_id_response_list.py +0 -112
  152. services-pulpcore-client/models/paginated_publication_response_list.py +0 -112
  153. services-pulpcore-client/models/paginated_pulp_export_response_list.py +0 -112
  154. services-pulpcore-client/models/paginated_pulp_exporter_response_list.py +0 -112
  155. services-pulpcore-client/models/paginated_pulp_importer_response_list.py +0 -112
  156. services-pulpcore-client/models/paginated_rbac_content_guard_response_list.py +0 -112
  157. services-pulpcore-client/models/paginated_repository_response_list.py +0 -112
  158. services-pulpcore-client/models/paginated_repository_version_response_list.py +0 -112
  159. services-pulpcore-client/models/paginated_role_response_list.py +0 -112
  160. services-pulpcore-client/models/paginated_signing_service_response_list.py +0 -112
  161. services-pulpcore-client/models/paginated_task_group_response_list.py +0 -112
  162. services-pulpcore-client/models/paginated_task_response_list.py +0 -112
  163. services-pulpcore-client/models/paginated_task_schedule_response_list.py +0 -112
  164. services-pulpcore-client/models/paginated_upload_response_list.py +0 -112
  165. services-pulpcore-client/models/paginated_upstream_pulp_response_list.py +0 -112
  166. services-pulpcore-client/models/paginated_user_response_list.py +0 -112
  167. services-pulpcore-client/models/paginated_user_role_response_list.py +0 -112
  168. services-pulpcore-client/models/paginated_worker_response_list.py +0 -112
  169. services-pulpcore-client/models/patched_access_policy.py +0 -94
  170. services-pulpcore-client/models/patched_composite_content_guard.py +0 -98
  171. services-pulpcore-client/models/patched_content_redirect_content_guard.py +0 -96
  172. services-pulpcore-client/models/patched_domain.py +0 -117
  173. services-pulpcore-client/models/patched_filesystem_exporter.py +0 -94
  174. services-pulpcore-client/models/patched_group.py +0 -89
  175. services-pulpcore-client/models/patched_header_content_guard.py +0 -107
  176. services-pulpcore-client/models/patched_open_pgp_distribution.py +0 -116
  177. services-pulpcore-client/models/patched_open_pgp_keyring.py +0 -112
  178. services-pulpcore-client/models/patched_pulp_exporter.py +0 -100
  179. services-pulpcore-client/models/patched_pulp_importer.py +0 -91
  180. services-pulpcore-client/models/patched_rbac_content_guard.py +0 -96
  181. services-pulpcore-client/models/patched_role.py +0 -98
  182. services-pulpcore-client/models/patched_task_cancel.py +0 -89
  183. services-pulpcore-client/models/patched_upstream_pulp.py +0 -147
  184. services-pulpcore-client/models/patched_user.py +0 -106
  185. services-pulpcore-client/models/policy357_enum.py +0 -39
  186. services-pulpcore-client/models/profile_artifact_response.py +0 -88
  187. services-pulpcore-client/models/progress_report_response.py +0 -115
  188. services-pulpcore-client/models/publication_response.py +0 -107
  189. services-pulpcore-client/models/pulp_export.py +0 -104
  190. services-pulpcore-client/models/pulp_export_response.py +0 -126
  191. services-pulpcore-client/models/pulp_exporter.py +0 -100
  192. services-pulpcore-client/models/pulp_exporter_response.py +0 -116
  193. services-pulpcore-client/models/pulp_import.py +0 -93
  194. services-pulpcore-client/models/pulp_import_check.py +0 -93
  195. services-pulpcore-client/models/pulp_import_check_response.py +0 -102
  196. services-pulpcore-client/models/pulp_importer.py +0 -91
  197. services-pulpcore-client/models/pulp_importer_response.py +0 -107
  198. services-pulpcore-client/models/purge.py +0 -92
  199. services-pulpcore-client/models/rbac_content_guard.py +0 -96
  200. services-pulpcore-client/models/rbac_content_guard_response.py +0 -136
  201. services-pulpcore-client/models/reclaim_space.py +0 -90
  202. services-pulpcore-client/models/redis_connection_response.py +0 -88
  203. services-pulpcore-client/models/repair.py +0 -88
  204. services-pulpcore-client/models/repository_add_remove_content.py +0 -93
  205. services-pulpcore-client/models/repository_response.py +0 -137
  206. services-pulpcore-client/models/repository_version_response.py +0 -121
  207. services-pulpcore-client/models/role.py +0 -98
  208. services-pulpcore-client/models/role_response.py +0 -118
  209. services-pulpcore-client/models/set_label.py +0 -103
  210. services-pulpcore-client/models/set_label_response.py +0 -103
  211. services-pulpcore-client/models/signing_service_response.py +0 -111
  212. services-pulpcore-client/models/states_enum.py +0 -40
  213. services-pulpcore-client/models/status_response.py +0 -152
  214. services-pulpcore-client/models/storage_class_enum.py +0 -40
  215. services-pulpcore-client/models/storage_response.py +0 -108
  216. services-pulpcore-client/models/task_group_operation_response.py +0 -88
  217. services-pulpcore-client/models/task_group_response.py +0 -150
  218. services-pulpcore-client/models/task_response.py +0 -167
  219. services-pulpcore-client/models/task_schedule_response.py +0 -127
  220. services-pulpcore-client/models/unset_label.py +0 -96
  221. services-pulpcore-client/models/unset_label_response.py +0 -100
  222. services-pulpcore-client/models/upload.py +0 -88
  223. services-pulpcore-client/models/upload_chunk_response.py +0 -94
  224. services-pulpcore-client/models/upload_commit.py +0 -89
  225. services-pulpcore-client/models/upload_detail_response.py +0 -121
  226. services-pulpcore-client/models/upload_response.py +0 -109
  227. services-pulpcore-client/models/upstream_pulp.py +0 -147
  228. services-pulpcore-client/models/upstream_pulp_response.py +0 -158
  229. services-pulpcore-client/models/user.py +0 -106
  230. services-pulpcore-client/models/user_group.py +0 -89
  231. services-pulpcore-client/models/user_group_response.py +0 -97
  232. services-pulpcore-client/models/user_response.py +0 -140
  233. services-pulpcore-client/models/user_role.py +0 -110
  234. services-pulpcore-client/models/user_role_response.py +0 -134
  235. services-pulpcore-client/models/version_response.py +0 -96
  236. services-pulpcore-client/models/worker_response.py +0 -119
  237. services-pulpcore-client/py.typed +0 -0
  238. services-pulpcore-client/rest.py +0 -258
  239. {crc_pulpcore_client-20250819.1.dist-info → crc_pulpcore_client-20250821.1.dist-info}/WHEEL +0 -0
@@ -1,765 +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
- import warnings
16
- from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
17
- from typing import Any, Dict, List, Optional, Tuple, Union
18
- from typing_extensions import Annotated
19
-
20
- from datetime import datetime
21
- from pydantic import Field, StrictBool, StrictInt, StrictStr, field_validator
22
- from typing import List, Optional
23
- from typing_extensions import Annotated
24
- from services-pulpcore-client.models.paginated_publication_response_list import PaginatedPublicationResponseList
25
-
26
- from services-pulpcore-client.api_client import ApiClient, RequestSerialized
27
- from services-pulpcore-client.api_response import ApiResponse
28
- from services-pulpcore-client.rest import RESTResponseType
29
-
30
-
31
- class PublicationsApi:
32
- """NOTE: This class is auto generated by OpenAPI Generator
33
- Ref: https://openapi-generator.tech
34
-
35
- Do not edit the class manually.
36
- """
37
-
38
- def __init__(self, api_client=None) -> None:
39
- if api_client is None:
40
- api_client = ApiClient.get_default()
41
- self.api_client = api_client
42
-
43
-
44
- @validate_call
45
- def list(
46
- self,
47
- x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
48
- checkpoint: Annotated[Optional[StrictBool], Field(description="Filter results where checkpoint matches value")] = None,
49
- content: Annotated[Optional[StrictStr], Field(description="Content Unit referenced by HREF/PRN")] = None,
50
- content__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
51
- limit: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None,
52
- offset: Annotated[Optional[StrictInt], Field(description="The initial index from which to return the results.")] = None,
53
- 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) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `complete` - Complete * `-complete` - Complete (descending) * `pass_through` - Pass through * `-pass_through` - Pass through (descending) * `checkpoint` - Checkpoint * `-checkpoint` - Checkpoint (descending) * `pk` - Pk * `-pk` - Pk (descending)")] = None,
54
- prn__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
55
- pulp_created: Annotated[Optional[datetime], Field(description="Filter results where pulp_created matches value")] = None,
56
- pulp_created__gt: Annotated[Optional[datetime], Field(description="Filter results where pulp_created is greater than value")] = None,
57
- pulp_created__gte: Annotated[Optional[datetime], Field(description="Filter results where pulp_created is greater than or equal to value")] = None,
58
- pulp_created__isnull: Annotated[Optional[StrictBool], Field(description="Filter results where pulp_created has a null value")] = None,
59
- pulp_created__lt: Annotated[Optional[datetime], Field(description="Filter results where pulp_created is less than value")] = None,
60
- pulp_created__lte: Annotated[Optional[datetime], Field(description="Filter results where pulp_created is less than or equal to value")] = None,
61
- pulp_created__range: Annotated[Optional[List[datetime]], Field(description="Filter results where pulp_created is between two comma separated values")] = None,
62
- pulp_href__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
63
- pulp_id__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
64
- pulp_type: Annotated[Optional[StrictStr], Field(description="Pulp type * `gem.gem` - gem.gem * `hugging_face.hugging-face` - hugging_face.hugging-face * `python.python` - python.python * `rpm.rpm` - rpm.rpm * `file.file` - file.file")] = None,
65
- pulp_type__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas. * `gem.gem` - gem.gem * `hugging_face.hugging-face` - hugging_face.hugging-face * `python.python` - python.python * `rpm.rpm` - rpm.rpm * `file.file` - file.file")] = None,
66
- q: Annotated[Optional[StrictStr], Field(description="Filter results by using NOT, AND and OR operations on other filters")] = None,
67
- repository: Annotated[Optional[StrictStr], Field(description="Repository referenced by HREF/PRN")] = None,
68
- repository_version: Annotated[Optional[StrictStr], Field(description="Repository Version referenced by HREF/PRN")] = None,
69
- fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
70
- exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
71
- pulp_domain: StrictStr = "default",
72
- _request_timeout: Union[
73
- None,
74
- Annotated[StrictFloat, Field(gt=0)],
75
- Tuple[
76
- Annotated[StrictFloat, Field(gt=0)],
77
- Annotated[StrictFloat, Field(gt=0)]
78
- ]
79
- ] = None,
80
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
81
- _content_type: Optional[StrictStr] = None,
82
- _headers: Optional[Dict[StrictStr, Any]] = None,
83
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
84
- ) -> PaginatedPublicationResponseList:
85
- """List publications
86
-
87
- A base class for any publication viewset.
88
-
89
- :param pulp_domain: (required)
90
- :type pulp_domain: str
91
- :param x_task_diagnostics: List of profilers to use on tasks.
92
- :type x_task_diagnostics: List[str]
93
- :param checkpoint: Filter results where checkpoint matches value
94
- :type checkpoint: bool
95
- :param content: Content Unit referenced by HREF/PRN
96
- :type content: str
97
- :param content__in: Multiple values may be separated by commas.
98
- :type content__in: List[str]
99
- :param limit: Number of results to return per page.
100
- :type limit: int
101
- :param offset: The initial index from which to return the results.
102
- :type offset: int
103
- :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) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `complete` - Complete * `-complete` - Complete (descending) * `pass_through` - Pass through * `-pass_through` - Pass through (descending) * `checkpoint` - Checkpoint * `-checkpoint` - Checkpoint (descending) * `pk` - Pk * `-pk` - Pk (descending)
104
- :type ordering: List[str]
105
- :param prn__in: Multiple values may be separated by commas.
106
- :type prn__in: List[str]
107
- :param pulp_created: Filter results where pulp_created matches value
108
- :type pulp_created: datetime
109
- :param pulp_created__gt: Filter results where pulp_created is greater than value
110
- :type pulp_created__gt: datetime
111
- :param pulp_created__gte: Filter results where pulp_created is greater than or equal to value
112
- :type pulp_created__gte: datetime
113
- :param pulp_created__isnull: Filter results where pulp_created has a null value
114
- :type pulp_created__isnull: bool
115
- :param pulp_created__lt: Filter results where pulp_created is less than value
116
- :type pulp_created__lt: datetime
117
- :param pulp_created__lte: Filter results where pulp_created is less than or equal to value
118
- :type pulp_created__lte: datetime
119
- :param pulp_created__range: Filter results where pulp_created is between two comma separated values
120
- :type pulp_created__range: List[datetime]
121
- :param pulp_href__in: Multiple values may be separated by commas.
122
- :type pulp_href__in: List[str]
123
- :param pulp_id__in: Multiple values may be separated by commas.
124
- :type pulp_id__in: List[str]
125
- :param pulp_type: Pulp type * `gem.gem` - gem.gem * `hugging_face.hugging-face` - hugging_face.hugging-face * `python.python` - python.python * `rpm.rpm` - rpm.rpm * `file.file` - file.file
126
- :type pulp_type: str
127
- :param pulp_type__in: Multiple values may be separated by commas. * `gem.gem` - gem.gem * `hugging_face.hugging-face` - hugging_face.hugging-face * `python.python` - python.python * `rpm.rpm` - rpm.rpm * `file.file` - file.file
128
- :type pulp_type__in: List[str]
129
- :param q: Filter results by using NOT, AND and OR operations on other filters
130
- :type q: str
131
- :param repository: Repository referenced by HREF/PRN
132
- :type repository: str
133
- :param repository_version: Repository Version referenced by HREF/PRN
134
- :type repository_version: str
135
- :param fields: A list of fields to include in the response.
136
- :type fields: List[str]
137
- :param exclude_fields: A list of fields to exclude from the response.
138
- :type exclude_fields: List[str]
139
- :param _request_timeout: timeout setting for this request. If one
140
- number provided, it will be total request
141
- timeout. It can also be a pair (tuple) of
142
- (connection, read) timeouts.
143
- :type _request_timeout: int, tuple(int, int), optional
144
- :param _request_auth: set to override the auth_settings for an a single
145
- request; this effectively ignores the
146
- authentication in the spec for a single request.
147
- :type _request_auth: dict, optional
148
- :param _content_type: force content-type for the request.
149
- :type _content_type: str, Optional
150
- :param _headers: set to override the headers for a single
151
- request; this effectively ignores the headers
152
- in the spec for a single request.
153
- :type _headers: dict, optional
154
- :param _host_index: set to override the host_index for a single
155
- request; this effectively ignores the host_index
156
- in the spec for a single request.
157
- :type _host_index: int, optional
158
- :return: Returns the result object.
159
- """ # noqa: E501
160
-
161
- _param = self._list_serialize(
162
- pulp_domain=pulp_domain,
163
- x_task_diagnostics=x_task_diagnostics,
164
- checkpoint=checkpoint,
165
- content=content,
166
- content__in=content__in,
167
- limit=limit,
168
- offset=offset,
169
- ordering=ordering,
170
- prn__in=prn__in,
171
- pulp_created=pulp_created,
172
- pulp_created__gt=pulp_created__gt,
173
- pulp_created__gte=pulp_created__gte,
174
- pulp_created__isnull=pulp_created__isnull,
175
- pulp_created__lt=pulp_created__lt,
176
- pulp_created__lte=pulp_created__lte,
177
- pulp_created__range=pulp_created__range,
178
- pulp_href__in=pulp_href__in,
179
- pulp_id__in=pulp_id__in,
180
- pulp_type=pulp_type,
181
- pulp_type__in=pulp_type__in,
182
- q=q,
183
- repository=repository,
184
- repository_version=repository_version,
185
- fields=fields,
186
- exclude_fields=exclude_fields,
187
- _request_auth=_request_auth,
188
- _content_type=_content_type,
189
- _headers=_headers,
190
- _host_index=_host_index
191
- )
192
-
193
- _response_types_map: Dict[str, Optional[str]] = {
194
- '200': "PaginatedPublicationResponseList",
195
- }
196
- response_data = self.api_client.call_api(
197
- *_param,
198
- _request_timeout=_request_timeout
199
- )
200
- response_data.read()
201
- return self.api_client.response_deserialize(
202
- response_data=response_data,
203
- response_types_map=_response_types_map,
204
- ).data
205
-
206
-
207
- @validate_call
208
- def list_with_http_info(
209
- self,
210
- x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
211
- checkpoint: Annotated[Optional[StrictBool], Field(description="Filter results where checkpoint matches value")] = None,
212
- content: Annotated[Optional[StrictStr], Field(description="Content Unit referenced by HREF/PRN")] = None,
213
- content__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
214
- limit: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None,
215
- offset: Annotated[Optional[StrictInt], Field(description="The initial index from which to return the results.")] = None,
216
- 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) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `complete` - Complete * `-complete` - Complete (descending) * `pass_through` - Pass through * `-pass_through` - Pass through (descending) * `checkpoint` - Checkpoint * `-checkpoint` - Checkpoint (descending) * `pk` - Pk * `-pk` - Pk (descending)")] = None,
217
- prn__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
218
- pulp_created: Annotated[Optional[datetime], Field(description="Filter results where pulp_created matches value")] = None,
219
- pulp_created__gt: Annotated[Optional[datetime], Field(description="Filter results where pulp_created is greater than value")] = None,
220
- pulp_created__gte: Annotated[Optional[datetime], Field(description="Filter results where pulp_created is greater than or equal to value")] = None,
221
- pulp_created__isnull: Annotated[Optional[StrictBool], Field(description="Filter results where pulp_created has a null value")] = None,
222
- pulp_created__lt: Annotated[Optional[datetime], Field(description="Filter results where pulp_created is less than value")] = None,
223
- pulp_created__lte: Annotated[Optional[datetime], Field(description="Filter results where pulp_created is less than or equal to value")] = None,
224
- pulp_created__range: Annotated[Optional[List[datetime]], Field(description="Filter results where pulp_created is between two comma separated values")] = None,
225
- pulp_href__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
226
- pulp_id__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
227
- pulp_type: Annotated[Optional[StrictStr], Field(description="Pulp type * `gem.gem` - gem.gem * `hugging_face.hugging-face` - hugging_face.hugging-face * `python.python` - python.python * `rpm.rpm` - rpm.rpm * `file.file` - file.file")] = None,
228
- pulp_type__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas. * `gem.gem` - gem.gem * `hugging_face.hugging-face` - hugging_face.hugging-face * `python.python` - python.python * `rpm.rpm` - rpm.rpm * `file.file` - file.file")] = None,
229
- q: Annotated[Optional[StrictStr], Field(description="Filter results by using NOT, AND and OR operations on other filters")] = None,
230
- repository: Annotated[Optional[StrictStr], Field(description="Repository referenced by HREF/PRN")] = None,
231
- repository_version: Annotated[Optional[StrictStr], Field(description="Repository Version referenced by HREF/PRN")] = None,
232
- fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
233
- exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
234
- pulp_domain: StrictStr = "default",
235
- _request_timeout: Union[
236
- None,
237
- Annotated[StrictFloat, Field(gt=0)],
238
- Tuple[
239
- Annotated[StrictFloat, Field(gt=0)],
240
- Annotated[StrictFloat, Field(gt=0)]
241
- ]
242
- ] = None,
243
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
244
- _content_type: Optional[StrictStr] = None,
245
- _headers: Optional[Dict[StrictStr, Any]] = None,
246
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
247
- ) -> ApiResponse[PaginatedPublicationResponseList]:
248
- """List publications
249
-
250
- A base class for any publication viewset.
251
-
252
- :param pulp_domain: (required)
253
- :type pulp_domain: str
254
- :param x_task_diagnostics: List of profilers to use on tasks.
255
- :type x_task_diagnostics: List[str]
256
- :param checkpoint: Filter results where checkpoint matches value
257
- :type checkpoint: bool
258
- :param content: Content Unit referenced by HREF/PRN
259
- :type content: str
260
- :param content__in: Multiple values may be separated by commas.
261
- :type content__in: List[str]
262
- :param limit: Number of results to return per page.
263
- :type limit: int
264
- :param offset: The initial index from which to return the results.
265
- :type offset: int
266
- :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) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `complete` - Complete * `-complete` - Complete (descending) * `pass_through` - Pass through * `-pass_through` - Pass through (descending) * `checkpoint` - Checkpoint * `-checkpoint` - Checkpoint (descending) * `pk` - Pk * `-pk` - Pk (descending)
267
- :type ordering: List[str]
268
- :param prn__in: Multiple values may be separated by commas.
269
- :type prn__in: List[str]
270
- :param pulp_created: Filter results where pulp_created matches value
271
- :type pulp_created: datetime
272
- :param pulp_created__gt: Filter results where pulp_created is greater than value
273
- :type pulp_created__gt: datetime
274
- :param pulp_created__gte: Filter results where pulp_created is greater than or equal to value
275
- :type pulp_created__gte: datetime
276
- :param pulp_created__isnull: Filter results where pulp_created has a null value
277
- :type pulp_created__isnull: bool
278
- :param pulp_created__lt: Filter results where pulp_created is less than value
279
- :type pulp_created__lt: datetime
280
- :param pulp_created__lte: Filter results where pulp_created is less than or equal to value
281
- :type pulp_created__lte: datetime
282
- :param pulp_created__range: Filter results where pulp_created is between two comma separated values
283
- :type pulp_created__range: List[datetime]
284
- :param pulp_href__in: Multiple values may be separated by commas.
285
- :type pulp_href__in: List[str]
286
- :param pulp_id__in: Multiple values may be separated by commas.
287
- :type pulp_id__in: List[str]
288
- :param pulp_type: Pulp type * `gem.gem` - gem.gem * `hugging_face.hugging-face` - hugging_face.hugging-face * `python.python` - python.python * `rpm.rpm` - rpm.rpm * `file.file` - file.file
289
- :type pulp_type: str
290
- :param pulp_type__in: Multiple values may be separated by commas. * `gem.gem` - gem.gem * `hugging_face.hugging-face` - hugging_face.hugging-face * `python.python` - python.python * `rpm.rpm` - rpm.rpm * `file.file` - file.file
291
- :type pulp_type__in: List[str]
292
- :param q: Filter results by using NOT, AND and OR operations on other filters
293
- :type q: str
294
- :param repository: Repository referenced by HREF/PRN
295
- :type repository: str
296
- :param repository_version: Repository Version referenced by HREF/PRN
297
- :type repository_version: str
298
- :param fields: A list of fields to include in the response.
299
- :type fields: List[str]
300
- :param exclude_fields: A list of fields to exclude from the response.
301
- :type exclude_fields: List[str]
302
- :param _request_timeout: timeout setting for this request. If one
303
- number provided, it will be total request
304
- timeout. It can also be a pair (tuple) of
305
- (connection, read) timeouts.
306
- :type _request_timeout: int, tuple(int, int), optional
307
- :param _request_auth: set to override the auth_settings for an a single
308
- request; this effectively ignores the
309
- authentication in the spec for a single request.
310
- :type _request_auth: dict, optional
311
- :param _content_type: force content-type for the request.
312
- :type _content_type: str, Optional
313
- :param _headers: set to override the headers for a single
314
- request; this effectively ignores the headers
315
- in the spec for a single request.
316
- :type _headers: dict, optional
317
- :param _host_index: set to override the host_index for a single
318
- request; this effectively ignores the host_index
319
- in the spec for a single request.
320
- :type _host_index: int, optional
321
- :return: Returns the result object.
322
- """ # noqa: E501
323
-
324
- _param = self._list_serialize(
325
- pulp_domain=pulp_domain,
326
- x_task_diagnostics=x_task_diagnostics,
327
- checkpoint=checkpoint,
328
- content=content,
329
- content__in=content__in,
330
- limit=limit,
331
- offset=offset,
332
- ordering=ordering,
333
- prn__in=prn__in,
334
- pulp_created=pulp_created,
335
- pulp_created__gt=pulp_created__gt,
336
- pulp_created__gte=pulp_created__gte,
337
- pulp_created__isnull=pulp_created__isnull,
338
- pulp_created__lt=pulp_created__lt,
339
- pulp_created__lte=pulp_created__lte,
340
- pulp_created__range=pulp_created__range,
341
- pulp_href__in=pulp_href__in,
342
- pulp_id__in=pulp_id__in,
343
- pulp_type=pulp_type,
344
- pulp_type__in=pulp_type__in,
345
- q=q,
346
- repository=repository,
347
- repository_version=repository_version,
348
- fields=fields,
349
- exclude_fields=exclude_fields,
350
- _request_auth=_request_auth,
351
- _content_type=_content_type,
352
- _headers=_headers,
353
- _host_index=_host_index
354
- )
355
-
356
- _response_types_map: Dict[str, Optional[str]] = {
357
- '200': "PaginatedPublicationResponseList",
358
- }
359
- response_data = self.api_client.call_api(
360
- *_param,
361
- _request_timeout=_request_timeout
362
- )
363
- response_data.read()
364
- return self.api_client.response_deserialize(
365
- response_data=response_data,
366
- response_types_map=_response_types_map,
367
- )
368
-
369
-
370
- @validate_call
371
- def list_without_preload_content(
372
- self,
373
- x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
374
- checkpoint: Annotated[Optional[StrictBool], Field(description="Filter results where checkpoint matches value")] = None,
375
- content: Annotated[Optional[StrictStr], Field(description="Content Unit referenced by HREF/PRN")] = None,
376
- content__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
377
- limit: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None,
378
- offset: Annotated[Optional[StrictInt], Field(description="The initial index from which to return the results.")] = None,
379
- 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) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `complete` - Complete * `-complete` - Complete (descending) * `pass_through` - Pass through * `-pass_through` - Pass through (descending) * `checkpoint` - Checkpoint * `-checkpoint` - Checkpoint (descending) * `pk` - Pk * `-pk` - Pk (descending)")] = None,
380
- prn__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
381
- pulp_created: Annotated[Optional[datetime], Field(description="Filter results where pulp_created matches value")] = None,
382
- pulp_created__gt: Annotated[Optional[datetime], Field(description="Filter results where pulp_created is greater than value")] = None,
383
- pulp_created__gte: Annotated[Optional[datetime], Field(description="Filter results where pulp_created is greater than or equal to value")] = None,
384
- pulp_created__isnull: Annotated[Optional[StrictBool], Field(description="Filter results where pulp_created has a null value")] = None,
385
- pulp_created__lt: Annotated[Optional[datetime], Field(description="Filter results where pulp_created is less than value")] = None,
386
- pulp_created__lte: Annotated[Optional[datetime], Field(description="Filter results where pulp_created is less than or equal to value")] = None,
387
- pulp_created__range: Annotated[Optional[List[datetime]], Field(description="Filter results where pulp_created is between two comma separated values")] = None,
388
- pulp_href__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
389
- pulp_id__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
390
- pulp_type: Annotated[Optional[StrictStr], Field(description="Pulp type * `gem.gem` - gem.gem * `hugging_face.hugging-face` - hugging_face.hugging-face * `python.python` - python.python * `rpm.rpm` - rpm.rpm * `file.file` - file.file")] = None,
391
- pulp_type__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas. * `gem.gem` - gem.gem * `hugging_face.hugging-face` - hugging_face.hugging-face * `python.python` - python.python * `rpm.rpm` - rpm.rpm * `file.file` - file.file")] = None,
392
- q: Annotated[Optional[StrictStr], Field(description="Filter results by using NOT, AND and OR operations on other filters")] = None,
393
- repository: Annotated[Optional[StrictStr], Field(description="Repository referenced by HREF/PRN")] = None,
394
- repository_version: Annotated[Optional[StrictStr], Field(description="Repository Version referenced by HREF/PRN")] = None,
395
- fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
396
- exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
397
- pulp_domain: StrictStr = "default",
398
- _request_timeout: Union[
399
- None,
400
- Annotated[StrictFloat, Field(gt=0)],
401
- Tuple[
402
- Annotated[StrictFloat, Field(gt=0)],
403
- Annotated[StrictFloat, Field(gt=0)]
404
- ]
405
- ] = None,
406
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
407
- _content_type: Optional[StrictStr] = None,
408
- _headers: Optional[Dict[StrictStr, Any]] = None,
409
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
410
- ) -> RESTResponseType:
411
- """List publications
412
-
413
- A base class for any publication viewset.
414
-
415
- :param pulp_domain: (required)
416
- :type pulp_domain: str
417
- :param x_task_diagnostics: List of profilers to use on tasks.
418
- :type x_task_diagnostics: List[str]
419
- :param checkpoint: Filter results where checkpoint matches value
420
- :type checkpoint: bool
421
- :param content: Content Unit referenced by HREF/PRN
422
- :type content: str
423
- :param content__in: Multiple values may be separated by commas.
424
- :type content__in: List[str]
425
- :param limit: Number of results to return per page.
426
- :type limit: int
427
- :param offset: The initial index from which to return the results.
428
- :type offset: int
429
- :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) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `complete` - Complete * `-complete` - Complete (descending) * `pass_through` - Pass through * `-pass_through` - Pass through (descending) * `checkpoint` - Checkpoint * `-checkpoint` - Checkpoint (descending) * `pk` - Pk * `-pk` - Pk (descending)
430
- :type ordering: List[str]
431
- :param prn__in: Multiple values may be separated by commas.
432
- :type prn__in: List[str]
433
- :param pulp_created: Filter results where pulp_created matches value
434
- :type pulp_created: datetime
435
- :param pulp_created__gt: Filter results where pulp_created is greater than value
436
- :type pulp_created__gt: datetime
437
- :param pulp_created__gte: Filter results where pulp_created is greater than or equal to value
438
- :type pulp_created__gte: datetime
439
- :param pulp_created__isnull: Filter results where pulp_created has a null value
440
- :type pulp_created__isnull: bool
441
- :param pulp_created__lt: Filter results where pulp_created is less than value
442
- :type pulp_created__lt: datetime
443
- :param pulp_created__lte: Filter results where pulp_created is less than or equal to value
444
- :type pulp_created__lte: datetime
445
- :param pulp_created__range: Filter results where pulp_created is between two comma separated values
446
- :type pulp_created__range: List[datetime]
447
- :param pulp_href__in: Multiple values may be separated by commas.
448
- :type pulp_href__in: List[str]
449
- :param pulp_id__in: Multiple values may be separated by commas.
450
- :type pulp_id__in: List[str]
451
- :param pulp_type: Pulp type * `gem.gem` - gem.gem * `hugging_face.hugging-face` - hugging_face.hugging-face * `python.python` - python.python * `rpm.rpm` - rpm.rpm * `file.file` - file.file
452
- :type pulp_type: str
453
- :param pulp_type__in: Multiple values may be separated by commas. * `gem.gem` - gem.gem * `hugging_face.hugging-face` - hugging_face.hugging-face * `python.python` - python.python * `rpm.rpm` - rpm.rpm * `file.file` - file.file
454
- :type pulp_type__in: List[str]
455
- :param q: Filter results by using NOT, AND and OR operations on other filters
456
- :type q: str
457
- :param repository: Repository referenced by HREF/PRN
458
- :type repository: str
459
- :param repository_version: Repository Version referenced by HREF/PRN
460
- :type repository_version: str
461
- :param fields: A list of fields to include in the response.
462
- :type fields: List[str]
463
- :param exclude_fields: A list of fields to exclude from the response.
464
- :type exclude_fields: List[str]
465
- :param _request_timeout: timeout setting for this request. If one
466
- number provided, it will be total request
467
- timeout. It can also be a pair (tuple) of
468
- (connection, read) timeouts.
469
- :type _request_timeout: int, tuple(int, int), optional
470
- :param _request_auth: set to override the auth_settings for an a single
471
- request; this effectively ignores the
472
- authentication in the spec for a single request.
473
- :type _request_auth: dict, optional
474
- :param _content_type: force content-type for the request.
475
- :type _content_type: str, Optional
476
- :param _headers: set to override the headers for a single
477
- request; this effectively ignores the headers
478
- in the spec for a single request.
479
- :type _headers: dict, optional
480
- :param _host_index: set to override the host_index for a single
481
- request; this effectively ignores the host_index
482
- in the spec for a single request.
483
- :type _host_index: int, optional
484
- :return: Returns the result object.
485
- """ # noqa: E501
486
-
487
- _param = self._list_serialize(
488
- pulp_domain=pulp_domain,
489
- x_task_diagnostics=x_task_diagnostics,
490
- checkpoint=checkpoint,
491
- content=content,
492
- content__in=content__in,
493
- limit=limit,
494
- offset=offset,
495
- ordering=ordering,
496
- prn__in=prn__in,
497
- pulp_created=pulp_created,
498
- pulp_created__gt=pulp_created__gt,
499
- pulp_created__gte=pulp_created__gte,
500
- pulp_created__isnull=pulp_created__isnull,
501
- pulp_created__lt=pulp_created__lt,
502
- pulp_created__lte=pulp_created__lte,
503
- pulp_created__range=pulp_created__range,
504
- pulp_href__in=pulp_href__in,
505
- pulp_id__in=pulp_id__in,
506
- pulp_type=pulp_type,
507
- pulp_type__in=pulp_type__in,
508
- q=q,
509
- repository=repository,
510
- repository_version=repository_version,
511
- fields=fields,
512
- exclude_fields=exclude_fields,
513
- _request_auth=_request_auth,
514
- _content_type=_content_type,
515
- _headers=_headers,
516
- _host_index=_host_index
517
- )
518
-
519
- _response_types_map: Dict[str, Optional[str]] = {
520
- '200': "PaginatedPublicationResponseList",
521
- }
522
- response_data = self.api_client.call_api(
523
- *_param,
524
- _request_timeout=_request_timeout
525
- )
526
- return response_data.response
527
-
528
-
529
- def _list_serialize(
530
- self,
531
- pulp_domain,
532
- x_task_diagnostics,
533
- checkpoint,
534
- content,
535
- content__in,
536
- limit,
537
- offset,
538
- ordering,
539
- prn__in,
540
- pulp_created,
541
- pulp_created__gt,
542
- pulp_created__gte,
543
- pulp_created__isnull,
544
- pulp_created__lt,
545
- pulp_created__lte,
546
- pulp_created__range,
547
- pulp_href__in,
548
- pulp_id__in,
549
- pulp_type,
550
- pulp_type__in,
551
- q,
552
- repository,
553
- repository_version,
554
- fields,
555
- exclude_fields,
556
- _request_auth,
557
- _content_type,
558
- _headers,
559
- _host_index,
560
- ) -> RequestSerialized:
561
-
562
- _host = None
563
-
564
- _collection_formats: Dict[str, str] = {
565
- 'X-Task-Diagnostics': 'csv',
566
- 'content__in': 'csv',
567
- 'ordering': 'csv',
568
- 'prn__in': 'csv',
569
- 'pulp_created__range': 'csv',
570
- 'pulp_href__in': 'csv',
571
- 'pulp_id__in': 'csv',
572
- 'pulp_type__in': 'csv',
573
- 'fields': 'multi',
574
- 'exclude_fields': 'multi',
575
- }
576
-
577
- _path_params: Dict[str, str] = {}
578
- _query_params: List[Tuple[str, str]] = []
579
- _header_params: Dict[str, Optional[str]] = _headers or {}
580
- _form_params: List[Tuple[str, str]] = []
581
- _files: Dict[
582
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
583
- ] = {}
584
- _body_params: Optional[bytes] = None
585
-
586
- # process the path parameters
587
- if pulp_domain is not None:
588
- _path_params['pulp_domain'] = pulp_domain
589
- # process the query parameters
590
- if checkpoint is not None:
591
-
592
- _query_params.append(('checkpoint', checkpoint))
593
-
594
- if content is not None:
595
-
596
- _query_params.append(('content', content))
597
-
598
- if content__in is not None:
599
-
600
- _query_params.append(('content__in', content__in))
601
-
602
- if limit is not None:
603
-
604
- _query_params.append(('limit', limit))
605
-
606
- if offset is not None:
607
-
608
- _query_params.append(('offset', offset))
609
-
610
- if ordering is not None:
611
-
612
- _query_params.append(('ordering', ordering))
613
-
614
- if prn__in is not None:
615
-
616
- _query_params.append(('prn__in', prn__in))
617
-
618
- if pulp_created is not None:
619
- if isinstance(pulp_created, datetime):
620
- _query_params.append(
621
- (
622
- 'pulp_created',
623
- pulp_created.strftime(
624
- self.api_client.configuration.datetime_format
625
- )
626
- )
627
- )
628
- else:
629
- _query_params.append(('pulp_created', pulp_created))
630
-
631
- if pulp_created__gt is not None:
632
- if isinstance(pulp_created__gt, datetime):
633
- _query_params.append(
634
- (
635
- 'pulp_created__gt',
636
- pulp_created__gt.strftime(
637
- self.api_client.configuration.datetime_format
638
- )
639
- )
640
- )
641
- else:
642
- _query_params.append(('pulp_created__gt', pulp_created__gt))
643
-
644
- if pulp_created__gte is not None:
645
- if isinstance(pulp_created__gte, datetime):
646
- _query_params.append(
647
- (
648
- 'pulp_created__gte',
649
- pulp_created__gte.strftime(
650
- self.api_client.configuration.datetime_format
651
- )
652
- )
653
- )
654
- else:
655
- _query_params.append(('pulp_created__gte', pulp_created__gte))
656
-
657
- if pulp_created__isnull is not None:
658
-
659
- _query_params.append(('pulp_created__isnull', pulp_created__isnull))
660
-
661
- if pulp_created__lt is not None:
662
- if isinstance(pulp_created__lt, datetime):
663
- _query_params.append(
664
- (
665
- 'pulp_created__lt',
666
- pulp_created__lt.strftime(
667
- self.api_client.configuration.datetime_format
668
- )
669
- )
670
- )
671
- else:
672
- _query_params.append(('pulp_created__lt', pulp_created__lt))
673
-
674
- if pulp_created__lte is not None:
675
- if isinstance(pulp_created__lte, datetime):
676
- _query_params.append(
677
- (
678
- 'pulp_created__lte',
679
- pulp_created__lte.strftime(
680
- self.api_client.configuration.datetime_format
681
- )
682
- )
683
- )
684
- else:
685
- _query_params.append(('pulp_created__lte', pulp_created__lte))
686
-
687
- if pulp_created__range is not None:
688
-
689
- _query_params.append(('pulp_created__range', pulp_created__range))
690
-
691
- if pulp_href__in is not None:
692
-
693
- _query_params.append(('pulp_href__in', pulp_href__in))
694
-
695
- if pulp_id__in is not None:
696
-
697
- _query_params.append(('pulp_id__in', pulp_id__in))
698
-
699
- if pulp_type is not None:
700
-
701
- _query_params.append(('pulp_type', pulp_type))
702
-
703
- if pulp_type__in is not None:
704
-
705
- _query_params.append(('pulp_type__in', pulp_type__in))
706
-
707
- if q is not None:
708
-
709
- _query_params.append(('q', q))
710
-
711
- if repository is not None:
712
-
713
- _query_params.append(('repository', repository))
714
-
715
- if repository_version is not None:
716
-
717
- _query_params.append(('repository_version', repository_version))
718
-
719
- if fields is not None:
720
-
721
- _query_params.append(('fields', fields))
722
-
723
- if exclude_fields is not None:
724
-
725
- _query_params.append(('exclude_fields', exclude_fields))
726
-
727
- # process the header parameters
728
- if x_task_diagnostics is not None:
729
- _header_params['X-Task-Diagnostics'] = x_task_diagnostics
730
- # process the form parameters
731
- # process the body parameter
732
-
733
-
734
- # set the HTTP header `Accept`
735
- if 'Accept' not in _header_params:
736
- _header_params['Accept'] = self.api_client.select_header_accept(
737
- [
738
- 'application/json'
739
- ]
740
- )
741
-
742
-
743
- # authentication setting
744
- _auth_settings: List[str] = [
745
- 'json_header_remote_authentication',
746
- 'basicAuth',
747
- 'cookieAuth'
748
- ]
749
-
750
- return self.api_client.param_serialize(
751
- method='GET',
752
- resource_path='/api/pulp/{pulp_domain}/api/v3/publications/',
753
- path_params=_path_params,
754
- query_params=_query_params,
755
- header_params=_header_params,
756
- body=_body_params,
757
- post_params=_form_params,
758
- files=_files,
759
- auth_settings=_auth_settings,
760
- collection_formats=_collection_formats,
761
- _host=_host,
762
- _request_auth=_request_auth
763
- )
764
-
765
-