crc-pulpcore-client 20250819.1__py3-none-any.whl → 20250820.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of crc-pulpcore-client might be problematic. Click here for more details.

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 +17 -17
  4. {crc_pulpcore_client-20250819.1.dist-info → crc_pulpcore_client-20250820.1.dist-info}/METADATA +1 -1
  5. crc_pulpcore_client-20250820.1.dist-info/RECORD +234 -0
  6. crc_pulpcore_client-20250820.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-20250820.1.dist-info}/WHEEL +0 -0
@@ -1,1518 +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 pydantic import Field, StrictFloat, StrictInt, StrictStr, field_validator
21
- from typing import List, Optional, Union
22
- from typing_extensions import Annotated
23
- from services-pulpcore-client.models.open_pgp_user_attribute_response import OpenPGPUserAttributeResponse
24
- from services-pulpcore-client.models.paginated_open_pgp_user_attribute_response_list import PaginatedOpenPGPUserAttributeResponseList
25
- from services-pulpcore-client.models.set_label import SetLabel
26
- from services-pulpcore-client.models.set_label_response import SetLabelResponse
27
- from services-pulpcore-client.models.unset_label import UnsetLabel
28
- from services-pulpcore-client.models.unset_label_response import UnsetLabelResponse
29
-
30
- from services-pulpcore-client.api_client import ApiClient, RequestSerialized
31
- from services-pulpcore-client.api_response import ApiResponse
32
- from services-pulpcore-client.rest import RESTResponseType
33
-
34
-
35
- class ContentOpenpgpUserattributeApi:
36
- """NOTE: This class is auto generated by OpenAPI Generator
37
- Ref: https://openapi-generator.tech
38
-
39
- Do not edit the class manually.
40
- """
41
-
42
- def __init__(self, api_client=None) -> None:
43
- if api_client is None:
44
- api_client = ApiClient.get_default()
45
- self.api_client = api_client
46
-
47
-
48
- @validate_call
49
- def list(
50
- self,
51
- x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
52
- limit: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None,
53
- offset: Annotated[Optional[StrictInt], Field(description="The initial index from which to return the results.")] = None,
54
- 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) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `raw_data` - Raw data * `-raw_data` - Raw data (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `pk` - Pk * `-pk` - Pk (descending)")] = None,
55
- orphaned_for: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.")] = None,
56
- prn__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
57
- pulp_href__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
58
- pulp_id__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
59
- pulp_label_select: Annotated[Optional[StrictStr], Field(description="Filter labels by search string")] = None,
60
- q: Annotated[Optional[StrictStr], Field(description="Filter results by using NOT, AND and OR operations on other filters")] = None,
61
- repository_version: Annotated[Optional[StrictStr], Field(description="Repository Version referenced by HREF/PRN")] = None,
62
- repository_version_added: Annotated[Optional[StrictStr], Field(description="Repository Version referenced by HREF/PRN")] = None,
63
- repository_version_removed: Annotated[Optional[StrictStr], Field(description="Repository Version referenced by HREF/PRN")] = None,
64
- sha256: Annotated[Optional[StrictStr], Field(description="Filter results where sha256 matches value")] = None,
65
- fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
66
- exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
67
- pulp_domain: StrictStr = "default",
68
- _request_timeout: Union[
69
- None,
70
- Annotated[StrictFloat, Field(gt=0)],
71
- Tuple[
72
- Annotated[StrictFloat, Field(gt=0)],
73
- Annotated[StrictFloat, Field(gt=0)]
74
- ]
75
- ] = None,
76
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
77
- _content_type: Optional[StrictStr] = None,
78
- _headers: Optional[Dict[StrictStr, Any]] = None,
79
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
80
- ) -> PaginatedOpenPGPUserAttributeResponseList:
81
- """List open pgp user attributes
82
-
83
- Content viewset that supports only GET by default.
84
-
85
- :param pulp_domain: (required)
86
- :type pulp_domain: str
87
- :param x_task_diagnostics: List of profilers to use on tasks.
88
- :type x_task_diagnostics: List[str]
89
- :param limit: Number of results to return per page.
90
- :type limit: int
91
- :param offset: The initial index from which to return the results.
92
- :type offset: int
93
- :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) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `raw_data` - Raw data * `-raw_data` - Raw data (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `pk` - Pk * `-pk` - Pk (descending)
94
- :type ordering: List[str]
95
- :param orphaned_for: Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
96
- :type orphaned_for: float
97
- :param prn__in: Multiple values may be separated by commas.
98
- :type prn__in: List[str]
99
- :param pulp_href__in: Multiple values may be separated by commas.
100
- :type pulp_href__in: List[str]
101
- :param pulp_id__in: Multiple values may be separated by commas.
102
- :type pulp_id__in: List[str]
103
- :param pulp_label_select: Filter labels by search string
104
- :type pulp_label_select: str
105
- :param q: Filter results by using NOT, AND and OR operations on other filters
106
- :type q: str
107
- :param repository_version: Repository Version referenced by HREF/PRN
108
- :type repository_version: str
109
- :param repository_version_added: Repository Version referenced by HREF/PRN
110
- :type repository_version_added: str
111
- :param repository_version_removed: Repository Version referenced by HREF/PRN
112
- :type repository_version_removed: str
113
- :param sha256: Filter results where sha256 matches value
114
- :type sha256: str
115
- :param fields: A list of fields to include in the response.
116
- :type fields: List[str]
117
- :param exclude_fields: A list of fields to exclude from the response.
118
- :type exclude_fields: List[str]
119
- :param _request_timeout: timeout setting for this request. If one
120
- number provided, it will be total request
121
- timeout. It can also be a pair (tuple) of
122
- (connection, read) timeouts.
123
- :type _request_timeout: int, tuple(int, int), optional
124
- :param _request_auth: set to override the auth_settings for an a single
125
- request; this effectively ignores the
126
- authentication in the spec for a single request.
127
- :type _request_auth: dict, optional
128
- :param _content_type: force content-type for the request.
129
- :type _content_type: str, Optional
130
- :param _headers: set to override the headers for a single
131
- request; this effectively ignores the headers
132
- in the spec for a single request.
133
- :type _headers: dict, optional
134
- :param _host_index: set to override the host_index for a single
135
- request; this effectively ignores the host_index
136
- in the spec for a single request.
137
- :type _host_index: int, optional
138
- :return: Returns the result object.
139
- """ # noqa: E501
140
-
141
- _param = self._list_serialize(
142
- pulp_domain=pulp_domain,
143
- x_task_diagnostics=x_task_diagnostics,
144
- limit=limit,
145
- offset=offset,
146
- ordering=ordering,
147
- orphaned_for=orphaned_for,
148
- prn__in=prn__in,
149
- pulp_href__in=pulp_href__in,
150
- pulp_id__in=pulp_id__in,
151
- pulp_label_select=pulp_label_select,
152
- q=q,
153
- repository_version=repository_version,
154
- repository_version_added=repository_version_added,
155
- repository_version_removed=repository_version_removed,
156
- sha256=sha256,
157
- fields=fields,
158
- exclude_fields=exclude_fields,
159
- _request_auth=_request_auth,
160
- _content_type=_content_type,
161
- _headers=_headers,
162
- _host_index=_host_index
163
- )
164
-
165
- _response_types_map: Dict[str, Optional[str]] = {
166
- '200': "PaginatedOpenPGPUserAttributeResponseList",
167
- }
168
- response_data = self.api_client.call_api(
169
- *_param,
170
- _request_timeout=_request_timeout
171
- )
172
- response_data.read()
173
- return self.api_client.response_deserialize(
174
- response_data=response_data,
175
- response_types_map=_response_types_map,
176
- ).data
177
-
178
-
179
- @validate_call
180
- def list_with_http_info(
181
- self,
182
- x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
183
- limit: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None,
184
- offset: Annotated[Optional[StrictInt], Field(description="The initial index from which to return the results.")] = None,
185
- 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) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `raw_data` - Raw data * `-raw_data` - Raw data (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `pk` - Pk * `-pk` - Pk (descending)")] = None,
186
- orphaned_for: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.")] = None,
187
- prn__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
188
- pulp_href__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
189
- pulp_id__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
190
- pulp_label_select: Annotated[Optional[StrictStr], Field(description="Filter labels by search string")] = None,
191
- q: Annotated[Optional[StrictStr], Field(description="Filter results by using NOT, AND and OR operations on other filters")] = None,
192
- repository_version: Annotated[Optional[StrictStr], Field(description="Repository Version referenced by HREF/PRN")] = None,
193
- repository_version_added: Annotated[Optional[StrictStr], Field(description="Repository Version referenced by HREF/PRN")] = None,
194
- repository_version_removed: Annotated[Optional[StrictStr], Field(description="Repository Version referenced by HREF/PRN")] = None,
195
- sha256: Annotated[Optional[StrictStr], Field(description="Filter results where sha256 matches value")] = None,
196
- fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
197
- exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
198
- pulp_domain: StrictStr = "default",
199
- _request_timeout: Union[
200
- None,
201
- Annotated[StrictFloat, Field(gt=0)],
202
- Tuple[
203
- Annotated[StrictFloat, Field(gt=0)],
204
- Annotated[StrictFloat, Field(gt=0)]
205
- ]
206
- ] = None,
207
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
208
- _content_type: Optional[StrictStr] = None,
209
- _headers: Optional[Dict[StrictStr, Any]] = None,
210
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
211
- ) -> ApiResponse[PaginatedOpenPGPUserAttributeResponseList]:
212
- """List open pgp user attributes
213
-
214
- Content viewset that supports only GET by default.
215
-
216
- :param pulp_domain: (required)
217
- :type pulp_domain: str
218
- :param x_task_diagnostics: List of profilers to use on tasks.
219
- :type x_task_diagnostics: List[str]
220
- :param limit: Number of results to return per page.
221
- :type limit: int
222
- :param offset: The initial index from which to return the results.
223
- :type offset: int
224
- :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) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `raw_data` - Raw data * `-raw_data` - Raw data (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `pk` - Pk * `-pk` - Pk (descending)
225
- :type ordering: List[str]
226
- :param orphaned_for: Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
227
- :type orphaned_for: float
228
- :param prn__in: Multiple values may be separated by commas.
229
- :type prn__in: List[str]
230
- :param pulp_href__in: Multiple values may be separated by commas.
231
- :type pulp_href__in: List[str]
232
- :param pulp_id__in: Multiple values may be separated by commas.
233
- :type pulp_id__in: List[str]
234
- :param pulp_label_select: Filter labels by search string
235
- :type pulp_label_select: str
236
- :param q: Filter results by using NOT, AND and OR operations on other filters
237
- :type q: str
238
- :param repository_version: Repository Version referenced by HREF/PRN
239
- :type repository_version: str
240
- :param repository_version_added: Repository Version referenced by HREF/PRN
241
- :type repository_version_added: str
242
- :param repository_version_removed: Repository Version referenced by HREF/PRN
243
- :type repository_version_removed: str
244
- :param sha256: Filter results where sha256 matches value
245
- :type sha256: str
246
- :param fields: A list of fields to include in the response.
247
- :type fields: List[str]
248
- :param exclude_fields: A list of fields to exclude from the response.
249
- :type exclude_fields: List[str]
250
- :param _request_timeout: timeout setting for this request. If one
251
- number provided, it will be total request
252
- timeout. It can also be a pair (tuple) of
253
- (connection, read) timeouts.
254
- :type _request_timeout: int, tuple(int, int), optional
255
- :param _request_auth: set to override the auth_settings for an a single
256
- request; this effectively ignores the
257
- authentication in the spec for a single request.
258
- :type _request_auth: dict, optional
259
- :param _content_type: force content-type for the request.
260
- :type _content_type: str, Optional
261
- :param _headers: set to override the headers for a single
262
- request; this effectively ignores the headers
263
- in the spec for a single request.
264
- :type _headers: dict, optional
265
- :param _host_index: set to override the host_index for a single
266
- request; this effectively ignores the host_index
267
- in the spec for a single request.
268
- :type _host_index: int, optional
269
- :return: Returns the result object.
270
- """ # noqa: E501
271
-
272
- _param = self._list_serialize(
273
- pulp_domain=pulp_domain,
274
- x_task_diagnostics=x_task_diagnostics,
275
- limit=limit,
276
- offset=offset,
277
- ordering=ordering,
278
- orphaned_for=orphaned_for,
279
- prn__in=prn__in,
280
- pulp_href__in=pulp_href__in,
281
- pulp_id__in=pulp_id__in,
282
- pulp_label_select=pulp_label_select,
283
- q=q,
284
- repository_version=repository_version,
285
- repository_version_added=repository_version_added,
286
- repository_version_removed=repository_version_removed,
287
- sha256=sha256,
288
- fields=fields,
289
- exclude_fields=exclude_fields,
290
- _request_auth=_request_auth,
291
- _content_type=_content_type,
292
- _headers=_headers,
293
- _host_index=_host_index
294
- )
295
-
296
- _response_types_map: Dict[str, Optional[str]] = {
297
- '200': "PaginatedOpenPGPUserAttributeResponseList",
298
- }
299
- response_data = self.api_client.call_api(
300
- *_param,
301
- _request_timeout=_request_timeout
302
- )
303
- response_data.read()
304
- return self.api_client.response_deserialize(
305
- response_data=response_data,
306
- response_types_map=_response_types_map,
307
- )
308
-
309
-
310
- @validate_call
311
- def list_without_preload_content(
312
- self,
313
- x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
314
- limit: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None,
315
- offset: Annotated[Optional[StrictInt], Field(description="The initial index from which to return the results.")] = None,
316
- 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) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `raw_data` - Raw data * `-raw_data` - Raw data (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `pk` - Pk * `-pk` - Pk (descending)")] = None,
317
- orphaned_for: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.")] = None,
318
- prn__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
319
- pulp_href__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
320
- pulp_id__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
321
- pulp_label_select: Annotated[Optional[StrictStr], Field(description="Filter labels by search string")] = None,
322
- q: Annotated[Optional[StrictStr], Field(description="Filter results by using NOT, AND and OR operations on other filters")] = None,
323
- repository_version: Annotated[Optional[StrictStr], Field(description="Repository Version referenced by HREF/PRN")] = None,
324
- repository_version_added: Annotated[Optional[StrictStr], Field(description="Repository Version referenced by HREF/PRN")] = None,
325
- repository_version_removed: Annotated[Optional[StrictStr], Field(description="Repository Version referenced by HREF/PRN")] = None,
326
- sha256: Annotated[Optional[StrictStr], Field(description="Filter results where sha256 matches value")] = None,
327
- fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
328
- exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
329
- pulp_domain: StrictStr = "default",
330
- _request_timeout: Union[
331
- None,
332
- Annotated[StrictFloat, Field(gt=0)],
333
- Tuple[
334
- Annotated[StrictFloat, Field(gt=0)],
335
- Annotated[StrictFloat, Field(gt=0)]
336
- ]
337
- ] = None,
338
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
339
- _content_type: Optional[StrictStr] = None,
340
- _headers: Optional[Dict[StrictStr, Any]] = None,
341
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
342
- ) -> RESTResponseType:
343
- """List open pgp user attributes
344
-
345
- Content viewset that supports only GET by default.
346
-
347
- :param pulp_domain: (required)
348
- :type pulp_domain: str
349
- :param x_task_diagnostics: List of profilers to use on tasks.
350
- :type x_task_diagnostics: List[str]
351
- :param limit: Number of results to return per page.
352
- :type limit: int
353
- :param offset: The initial index from which to return the results.
354
- :type offset: int
355
- :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) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `raw_data` - Raw data * `-raw_data` - Raw data (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `pk` - Pk * `-pk` - Pk (descending)
356
- :type ordering: List[str]
357
- :param orphaned_for: Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
358
- :type orphaned_for: float
359
- :param prn__in: Multiple values may be separated by commas.
360
- :type prn__in: List[str]
361
- :param pulp_href__in: Multiple values may be separated by commas.
362
- :type pulp_href__in: List[str]
363
- :param pulp_id__in: Multiple values may be separated by commas.
364
- :type pulp_id__in: List[str]
365
- :param pulp_label_select: Filter labels by search string
366
- :type pulp_label_select: str
367
- :param q: Filter results by using NOT, AND and OR operations on other filters
368
- :type q: str
369
- :param repository_version: Repository Version referenced by HREF/PRN
370
- :type repository_version: str
371
- :param repository_version_added: Repository Version referenced by HREF/PRN
372
- :type repository_version_added: str
373
- :param repository_version_removed: Repository Version referenced by HREF/PRN
374
- :type repository_version_removed: str
375
- :param sha256: Filter results where sha256 matches value
376
- :type sha256: str
377
- :param fields: A list of fields to include in the response.
378
- :type fields: List[str]
379
- :param exclude_fields: A list of fields to exclude from the response.
380
- :type exclude_fields: List[str]
381
- :param _request_timeout: timeout setting for this request. If one
382
- number provided, it will be total request
383
- timeout. It can also be a pair (tuple) of
384
- (connection, read) timeouts.
385
- :type _request_timeout: int, tuple(int, int), optional
386
- :param _request_auth: set to override the auth_settings for an a single
387
- request; this effectively ignores the
388
- authentication in the spec for a single request.
389
- :type _request_auth: dict, optional
390
- :param _content_type: force content-type for the request.
391
- :type _content_type: str, Optional
392
- :param _headers: set to override the headers for a single
393
- request; this effectively ignores the headers
394
- in the spec for a single request.
395
- :type _headers: dict, optional
396
- :param _host_index: set to override the host_index for a single
397
- request; this effectively ignores the host_index
398
- in the spec for a single request.
399
- :type _host_index: int, optional
400
- :return: Returns the result object.
401
- """ # noqa: E501
402
-
403
- _param = self._list_serialize(
404
- pulp_domain=pulp_domain,
405
- x_task_diagnostics=x_task_diagnostics,
406
- limit=limit,
407
- offset=offset,
408
- ordering=ordering,
409
- orphaned_for=orphaned_for,
410
- prn__in=prn__in,
411
- pulp_href__in=pulp_href__in,
412
- pulp_id__in=pulp_id__in,
413
- pulp_label_select=pulp_label_select,
414
- q=q,
415
- repository_version=repository_version,
416
- repository_version_added=repository_version_added,
417
- repository_version_removed=repository_version_removed,
418
- sha256=sha256,
419
- fields=fields,
420
- exclude_fields=exclude_fields,
421
- _request_auth=_request_auth,
422
- _content_type=_content_type,
423
- _headers=_headers,
424
- _host_index=_host_index
425
- )
426
-
427
- _response_types_map: Dict[str, Optional[str]] = {
428
- '200': "PaginatedOpenPGPUserAttributeResponseList",
429
- }
430
- response_data = self.api_client.call_api(
431
- *_param,
432
- _request_timeout=_request_timeout
433
- )
434
- return response_data.response
435
-
436
-
437
- def _list_serialize(
438
- self,
439
- pulp_domain,
440
- x_task_diagnostics,
441
- limit,
442
- offset,
443
- ordering,
444
- orphaned_for,
445
- prn__in,
446
- pulp_href__in,
447
- pulp_id__in,
448
- pulp_label_select,
449
- q,
450
- repository_version,
451
- repository_version_added,
452
- repository_version_removed,
453
- sha256,
454
- fields,
455
- exclude_fields,
456
- _request_auth,
457
- _content_type,
458
- _headers,
459
- _host_index,
460
- ) -> RequestSerialized:
461
-
462
- _host = None
463
-
464
- _collection_formats: Dict[str, str] = {
465
- 'X-Task-Diagnostics': 'csv',
466
- 'ordering': 'csv',
467
- 'prn__in': 'csv',
468
- 'pulp_href__in': 'csv',
469
- 'pulp_id__in': 'csv',
470
- 'fields': 'multi',
471
- 'exclude_fields': 'multi',
472
- }
473
-
474
- _path_params: Dict[str, str] = {}
475
- _query_params: List[Tuple[str, str]] = []
476
- _header_params: Dict[str, Optional[str]] = _headers or {}
477
- _form_params: List[Tuple[str, str]] = []
478
- _files: Dict[
479
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
480
- ] = {}
481
- _body_params: Optional[bytes] = None
482
-
483
- # process the path parameters
484
- if pulp_domain is not None:
485
- _path_params['pulp_domain'] = pulp_domain
486
- # process the query parameters
487
- if limit is not None:
488
-
489
- _query_params.append(('limit', limit))
490
-
491
- if offset is not None:
492
-
493
- _query_params.append(('offset', offset))
494
-
495
- if ordering is not None:
496
-
497
- _query_params.append(('ordering', ordering))
498
-
499
- if orphaned_for is not None:
500
-
501
- _query_params.append(('orphaned_for', orphaned_for))
502
-
503
- if prn__in is not None:
504
-
505
- _query_params.append(('prn__in', prn__in))
506
-
507
- if pulp_href__in is not None:
508
-
509
- _query_params.append(('pulp_href__in', pulp_href__in))
510
-
511
- if pulp_id__in is not None:
512
-
513
- _query_params.append(('pulp_id__in', pulp_id__in))
514
-
515
- if pulp_label_select is not None:
516
-
517
- _query_params.append(('pulp_label_select', pulp_label_select))
518
-
519
- if q is not None:
520
-
521
- _query_params.append(('q', q))
522
-
523
- if repository_version is not None:
524
-
525
- _query_params.append(('repository_version', repository_version))
526
-
527
- if repository_version_added is not None:
528
-
529
- _query_params.append(('repository_version_added', repository_version_added))
530
-
531
- if repository_version_removed is not None:
532
-
533
- _query_params.append(('repository_version_removed', repository_version_removed))
534
-
535
- if sha256 is not None:
536
-
537
- _query_params.append(('sha256', sha256))
538
-
539
- if fields is not None:
540
-
541
- _query_params.append(('fields', fields))
542
-
543
- if exclude_fields is not None:
544
-
545
- _query_params.append(('exclude_fields', exclude_fields))
546
-
547
- # process the header parameters
548
- if x_task_diagnostics is not None:
549
- _header_params['X-Task-Diagnostics'] = x_task_diagnostics
550
- # process the form parameters
551
- # process the body parameter
552
-
553
-
554
- # set the HTTP header `Accept`
555
- if 'Accept' not in _header_params:
556
- _header_params['Accept'] = self.api_client.select_header_accept(
557
- [
558
- 'application/json'
559
- ]
560
- )
561
-
562
-
563
- # authentication setting
564
- _auth_settings: List[str] = [
565
- 'json_header_remote_authentication',
566
- 'basicAuth',
567
- 'cookieAuth'
568
- ]
569
-
570
- return self.api_client.param_serialize(
571
- method='GET',
572
- resource_path='/api/pulp/{pulp_domain}/api/v3/content/core/openpgp_userattribute/',
573
- path_params=_path_params,
574
- query_params=_query_params,
575
- header_params=_header_params,
576
- body=_body_params,
577
- post_params=_form_params,
578
- files=_files,
579
- auth_settings=_auth_settings,
580
- collection_formats=_collection_formats,
581
- _host=_host,
582
- _request_auth=_request_auth
583
- )
584
-
585
-
586
-
587
-
588
- @validate_call
589
- def read(
590
- self,
591
- open_p_g_p_user_attribute_href: StrictStr,
592
- x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
593
- fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
594
- exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
595
- _request_timeout: Union[
596
- None,
597
- Annotated[StrictFloat, Field(gt=0)],
598
- Tuple[
599
- Annotated[StrictFloat, Field(gt=0)],
600
- Annotated[StrictFloat, Field(gt=0)]
601
- ]
602
- ] = None,
603
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
604
- _content_type: Optional[StrictStr] = None,
605
- _headers: Optional[Dict[StrictStr, Any]] = None,
606
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
607
- ) -> OpenPGPUserAttributeResponse:
608
- """Inspect an open pgp user attribute
609
-
610
- Content viewset that supports only GET by default.
611
-
612
- :param open_p_g_p_user_attribute_href: (required)
613
- :type open_p_g_p_user_attribute_href: str
614
- :param x_task_diagnostics: List of profilers to use on tasks.
615
- :type x_task_diagnostics: List[str]
616
- :param fields: A list of fields to include in the response.
617
- :type fields: List[str]
618
- :param exclude_fields: A list of fields to exclude from the response.
619
- :type exclude_fields: List[str]
620
- :param _request_timeout: timeout setting for this request. If one
621
- number provided, it will be total request
622
- timeout. It can also be a pair (tuple) of
623
- (connection, read) timeouts.
624
- :type _request_timeout: int, tuple(int, int), optional
625
- :param _request_auth: set to override the auth_settings for an a single
626
- request; this effectively ignores the
627
- authentication in the spec for a single request.
628
- :type _request_auth: dict, optional
629
- :param _content_type: force content-type for the request.
630
- :type _content_type: str, Optional
631
- :param _headers: set to override the headers for a single
632
- request; this effectively ignores the headers
633
- in the spec for a single request.
634
- :type _headers: dict, optional
635
- :param _host_index: set to override the host_index for a single
636
- request; this effectively ignores the host_index
637
- in the spec for a single request.
638
- :type _host_index: int, optional
639
- :return: Returns the result object.
640
- """ # noqa: E501
641
-
642
- _param = self._read_serialize(
643
- open_p_g_p_user_attribute_href=open_p_g_p_user_attribute_href,
644
- x_task_diagnostics=x_task_diagnostics,
645
- fields=fields,
646
- exclude_fields=exclude_fields,
647
- _request_auth=_request_auth,
648
- _content_type=_content_type,
649
- _headers=_headers,
650
- _host_index=_host_index
651
- )
652
-
653
- _response_types_map: Dict[str, Optional[str]] = {
654
- '200': "OpenPGPUserAttributeResponse",
655
- }
656
- response_data = self.api_client.call_api(
657
- *_param,
658
- _request_timeout=_request_timeout
659
- )
660
- response_data.read()
661
- return self.api_client.response_deserialize(
662
- response_data=response_data,
663
- response_types_map=_response_types_map,
664
- ).data
665
-
666
-
667
- @validate_call
668
- def read_with_http_info(
669
- self,
670
- open_p_g_p_user_attribute_href: StrictStr,
671
- x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
672
- fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
673
- exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
674
- _request_timeout: Union[
675
- None,
676
- Annotated[StrictFloat, Field(gt=0)],
677
- Tuple[
678
- Annotated[StrictFloat, Field(gt=0)],
679
- Annotated[StrictFloat, Field(gt=0)]
680
- ]
681
- ] = None,
682
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
683
- _content_type: Optional[StrictStr] = None,
684
- _headers: Optional[Dict[StrictStr, Any]] = None,
685
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
686
- ) -> ApiResponse[OpenPGPUserAttributeResponse]:
687
- """Inspect an open pgp user attribute
688
-
689
- Content viewset that supports only GET by default.
690
-
691
- :param open_p_g_p_user_attribute_href: (required)
692
- :type open_p_g_p_user_attribute_href: str
693
- :param x_task_diagnostics: List of profilers to use on tasks.
694
- :type x_task_diagnostics: List[str]
695
- :param fields: A list of fields to include in the response.
696
- :type fields: List[str]
697
- :param exclude_fields: A list of fields to exclude from the response.
698
- :type exclude_fields: List[str]
699
- :param _request_timeout: timeout setting for this request. If one
700
- number provided, it will be total request
701
- timeout. It can also be a pair (tuple) of
702
- (connection, read) timeouts.
703
- :type _request_timeout: int, tuple(int, int), optional
704
- :param _request_auth: set to override the auth_settings for an a single
705
- request; this effectively ignores the
706
- authentication in the spec for a single request.
707
- :type _request_auth: dict, optional
708
- :param _content_type: force content-type for the request.
709
- :type _content_type: str, Optional
710
- :param _headers: set to override the headers for a single
711
- request; this effectively ignores the headers
712
- in the spec for a single request.
713
- :type _headers: dict, optional
714
- :param _host_index: set to override the host_index for a single
715
- request; this effectively ignores the host_index
716
- in the spec for a single request.
717
- :type _host_index: int, optional
718
- :return: Returns the result object.
719
- """ # noqa: E501
720
-
721
- _param = self._read_serialize(
722
- open_p_g_p_user_attribute_href=open_p_g_p_user_attribute_href,
723
- x_task_diagnostics=x_task_diagnostics,
724
- fields=fields,
725
- exclude_fields=exclude_fields,
726
- _request_auth=_request_auth,
727
- _content_type=_content_type,
728
- _headers=_headers,
729
- _host_index=_host_index
730
- )
731
-
732
- _response_types_map: Dict[str, Optional[str]] = {
733
- '200': "OpenPGPUserAttributeResponse",
734
- }
735
- response_data = self.api_client.call_api(
736
- *_param,
737
- _request_timeout=_request_timeout
738
- )
739
- response_data.read()
740
- return self.api_client.response_deserialize(
741
- response_data=response_data,
742
- response_types_map=_response_types_map,
743
- )
744
-
745
-
746
- @validate_call
747
- def read_without_preload_content(
748
- self,
749
- open_p_g_p_user_attribute_href: StrictStr,
750
- x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
751
- fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
752
- exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
753
- _request_timeout: Union[
754
- None,
755
- Annotated[StrictFloat, Field(gt=0)],
756
- Tuple[
757
- Annotated[StrictFloat, Field(gt=0)],
758
- Annotated[StrictFloat, Field(gt=0)]
759
- ]
760
- ] = None,
761
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
762
- _content_type: Optional[StrictStr] = None,
763
- _headers: Optional[Dict[StrictStr, Any]] = None,
764
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
765
- ) -> RESTResponseType:
766
- """Inspect an open pgp user attribute
767
-
768
- Content viewset that supports only GET by default.
769
-
770
- :param open_p_g_p_user_attribute_href: (required)
771
- :type open_p_g_p_user_attribute_href: str
772
- :param x_task_diagnostics: List of profilers to use on tasks.
773
- :type x_task_diagnostics: List[str]
774
- :param fields: A list of fields to include in the response.
775
- :type fields: List[str]
776
- :param exclude_fields: A list of fields to exclude from the response.
777
- :type exclude_fields: List[str]
778
- :param _request_timeout: timeout setting for this request. If one
779
- number provided, it will be total request
780
- timeout. It can also be a pair (tuple) of
781
- (connection, read) timeouts.
782
- :type _request_timeout: int, tuple(int, int), optional
783
- :param _request_auth: set to override the auth_settings for an a single
784
- request; this effectively ignores the
785
- authentication in the spec for a single request.
786
- :type _request_auth: dict, optional
787
- :param _content_type: force content-type for the request.
788
- :type _content_type: str, Optional
789
- :param _headers: set to override the headers for a single
790
- request; this effectively ignores the headers
791
- in the spec for a single request.
792
- :type _headers: dict, optional
793
- :param _host_index: set to override the host_index for a single
794
- request; this effectively ignores the host_index
795
- in the spec for a single request.
796
- :type _host_index: int, optional
797
- :return: Returns the result object.
798
- """ # noqa: E501
799
-
800
- _param = self._read_serialize(
801
- open_p_g_p_user_attribute_href=open_p_g_p_user_attribute_href,
802
- x_task_diagnostics=x_task_diagnostics,
803
- fields=fields,
804
- exclude_fields=exclude_fields,
805
- _request_auth=_request_auth,
806
- _content_type=_content_type,
807
- _headers=_headers,
808
- _host_index=_host_index
809
- )
810
-
811
- _response_types_map: Dict[str, Optional[str]] = {
812
- '200': "OpenPGPUserAttributeResponse",
813
- }
814
- response_data = self.api_client.call_api(
815
- *_param,
816
- _request_timeout=_request_timeout
817
- )
818
- return response_data.response
819
-
820
-
821
- def _read_serialize(
822
- self,
823
- open_p_g_p_user_attribute_href,
824
- x_task_diagnostics,
825
- fields,
826
- exclude_fields,
827
- _request_auth,
828
- _content_type,
829
- _headers,
830
- _host_index,
831
- ) -> RequestSerialized:
832
-
833
- _host = None
834
-
835
- _collection_formats: Dict[str, str] = {
836
- 'X-Task-Diagnostics': 'csv',
837
- 'fields': 'multi',
838
- 'exclude_fields': 'multi',
839
- }
840
-
841
- _path_params: Dict[str, str] = {}
842
- _query_params: List[Tuple[str, str]] = []
843
- _header_params: Dict[str, Optional[str]] = _headers or {}
844
- _form_params: List[Tuple[str, str]] = []
845
- _files: Dict[
846
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
847
- ] = {}
848
- _body_params: Optional[bytes] = None
849
-
850
- # process the path parameters
851
- if open_p_g_p_user_attribute_href is not None:
852
- _path_params['open_p_g_p_user_attribute_href'] = open_p_g_p_user_attribute_href
853
- # process the query parameters
854
- if fields is not None:
855
-
856
- _query_params.append(('fields', fields))
857
-
858
- if exclude_fields is not None:
859
-
860
- _query_params.append(('exclude_fields', exclude_fields))
861
-
862
- # process the header parameters
863
- if x_task_diagnostics is not None:
864
- _header_params['X-Task-Diagnostics'] = x_task_diagnostics
865
- # process the form parameters
866
- # process the body parameter
867
-
868
-
869
- # set the HTTP header `Accept`
870
- if 'Accept' not in _header_params:
871
- _header_params['Accept'] = self.api_client.select_header_accept(
872
- [
873
- 'application/json'
874
- ]
875
- )
876
-
877
-
878
- # authentication setting
879
- _auth_settings: List[str] = [
880
- 'json_header_remote_authentication',
881
- 'basicAuth',
882
- 'cookieAuth'
883
- ]
884
-
885
- return self.api_client.param_serialize(
886
- method='GET',
887
- resource_path='{open_p_g_p_user_attribute_href}',
888
- path_params=_path_params,
889
- query_params=_query_params,
890
- header_params=_header_params,
891
- body=_body_params,
892
- post_params=_form_params,
893
- files=_files,
894
- auth_settings=_auth_settings,
895
- collection_formats=_collection_formats,
896
- _host=_host,
897
- _request_auth=_request_auth
898
- )
899
-
900
-
901
-
902
-
903
- @validate_call
904
- def set_label(
905
- self,
906
- open_p_g_p_user_attribute_href: StrictStr,
907
- set_label: SetLabel,
908
- x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
909
- _request_timeout: Union[
910
- None,
911
- Annotated[StrictFloat, Field(gt=0)],
912
- Tuple[
913
- Annotated[StrictFloat, Field(gt=0)],
914
- Annotated[StrictFloat, Field(gt=0)]
915
- ]
916
- ] = None,
917
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
918
- _content_type: Optional[StrictStr] = None,
919
- _headers: Optional[Dict[StrictStr, Any]] = None,
920
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
921
- ) -> SetLabelResponse:
922
- """Set a label
923
-
924
- Set a single pulp_label on the object to a specific value or null.
925
-
926
- :param open_p_g_p_user_attribute_href: (required)
927
- :type open_p_g_p_user_attribute_href: str
928
- :param set_label: (required)
929
- :type set_label: SetLabel
930
- :param x_task_diagnostics: List of profilers to use on tasks.
931
- :type x_task_diagnostics: List[str]
932
- :param _request_timeout: timeout setting for this request. If one
933
- number provided, it will be total request
934
- timeout. It can also be a pair (tuple) of
935
- (connection, read) timeouts.
936
- :type _request_timeout: int, tuple(int, int), optional
937
- :param _request_auth: set to override the auth_settings for an a single
938
- request; this effectively ignores the
939
- authentication in the spec for a single request.
940
- :type _request_auth: dict, optional
941
- :param _content_type: force content-type for the request.
942
- :type _content_type: str, Optional
943
- :param _headers: set to override the headers for a single
944
- request; this effectively ignores the headers
945
- in the spec for a single request.
946
- :type _headers: dict, optional
947
- :param _host_index: set to override the host_index for a single
948
- request; this effectively ignores the host_index
949
- in the spec for a single request.
950
- :type _host_index: int, optional
951
- :return: Returns the result object.
952
- """ # noqa: E501
953
-
954
- _param = self._set_label_serialize(
955
- open_p_g_p_user_attribute_href=open_p_g_p_user_attribute_href,
956
- set_label=set_label,
957
- x_task_diagnostics=x_task_diagnostics,
958
- _request_auth=_request_auth,
959
- _content_type=_content_type,
960
- _headers=_headers,
961
- _host_index=_host_index
962
- )
963
-
964
- _response_types_map: Dict[str, Optional[str]] = {
965
- '200': "SetLabelResponse",
966
- }
967
- response_data = self.api_client.call_api(
968
- *_param,
969
- _request_timeout=_request_timeout
970
- )
971
- response_data.read()
972
- return self.api_client.response_deserialize(
973
- response_data=response_data,
974
- response_types_map=_response_types_map,
975
- ).data
976
-
977
-
978
- @validate_call
979
- def set_label_with_http_info(
980
- self,
981
- open_p_g_p_user_attribute_href: StrictStr,
982
- set_label: SetLabel,
983
- x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
984
- _request_timeout: Union[
985
- None,
986
- Annotated[StrictFloat, Field(gt=0)],
987
- Tuple[
988
- Annotated[StrictFloat, Field(gt=0)],
989
- Annotated[StrictFloat, Field(gt=0)]
990
- ]
991
- ] = None,
992
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
993
- _content_type: Optional[StrictStr] = None,
994
- _headers: Optional[Dict[StrictStr, Any]] = None,
995
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
996
- ) -> ApiResponse[SetLabelResponse]:
997
- """Set a label
998
-
999
- Set a single pulp_label on the object to a specific value or null.
1000
-
1001
- :param open_p_g_p_user_attribute_href: (required)
1002
- :type open_p_g_p_user_attribute_href: str
1003
- :param set_label: (required)
1004
- :type set_label: SetLabel
1005
- :param x_task_diagnostics: List of profilers to use on tasks.
1006
- :type x_task_diagnostics: List[str]
1007
- :param _request_timeout: timeout setting for this request. If one
1008
- number provided, it will be total request
1009
- timeout. It can also be a pair (tuple) of
1010
- (connection, read) timeouts.
1011
- :type _request_timeout: int, tuple(int, int), optional
1012
- :param _request_auth: set to override the auth_settings for an a single
1013
- request; this effectively ignores the
1014
- authentication in the spec for a single request.
1015
- :type _request_auth: dict, optional
1016
- :param _content_type: force content-type for the request.
1017
- :type _content_type: str, Optional
1018
- :param _headers: set to override the headers for a single
1019
- request; this effectively ignores the headers
1020
- in the spec for a single request.
1021
- :type _headers: dict, optional
1022
- :param _host_index: set to override the host_index for a single
1023
- request; this effectively ignores the host_index
1024
- in the spec for a single request.
1025
- :type _host_index: int, optional
1026
- :return: Returns the result object.
1027
- """ # noqa: E501
1028
-
1029
- _param = self._set_label_serialize(
1030
- open_p_g_p_user_attribute_href=open_p_g_p_user_attribute_href,
1031
- set_label=set_label,
1032
- x_task_diagnostics=x_task_diagnostics,
1033
- _request_auth=_request_auth,
1034
- _content_type=_content_type,
1035
- _headers=_headers,
1036
- _host_index=_host_index
1037
- )
1038
-
1039
- _response_types_map: Dict[str, Optional[str]] = {
1040
- '200': "SetLabelResponse",
1041
- }
1042
- response_data = self.api_client.call_api(
1043
- *_param,
1044
- _request_timeout=_request_timeout
1045
- )
1046
- response_data.read()
1047
- return self.api_client.response_deserialize(
1048
- response_data=response_data,
1049
- response_types_map=_response_types_map,
1050
- )
1051
-
1052
-
1053
- @validate_call
1054
- def set_label_without_preload_content(
1055
- self,
1056
- open_p_g_p_user_attribute_href: StrictStr,
1057
- set_label: SetLabel,
1058
- x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
1059
- _request_timeout: Union[
1060
- None,
1061
- Annotated[StrictFloat, Field(gt=0)],
1062
- Tuple[
1063
- Annotated[StrictFloat, Field(gt=0)],
1064
- Annotated[StrictFloat, Field(gt=0)]
1065
- ]
1066
- ] = None,
1067
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
1068
- _content_type: Optional[StrictStr] = None,
1069
- _headers: Optional[Dict[StrictStr, Any]] = None,
1070
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1071
- ) -> RESTResponseType:
1072
- """Set a label
1073
-
1074
- Set a single pulp_label on the object to a specific value or null.
1075
-
1076
- :param open_p_g_p_user_attribute_href: (required)
1077
- :type open_p_g_p_user_attribute_href: str
1078
- :param set_label: (required)
1079
- :type set_label: SetLabel
1080
- :param x_task_diagnostics: List of profilers to use on tasks.
1081
- :type x_task_diagnostics: List[str]
1082
- :param _request_timeout: timeout setting for this request. If one
1083
- number provided, it will be total request
1084
- timeout. It can also be a pair (tuple) of
1085
- (connection, read) timeouts.
1086
- :type _request_timeout: int, tuple(int, int), optional
1087
- :param _request_auth: set to override the auth_settings for an a single
1088
- request; this effectively ignores the
1089
- authentication in the spec for a single request.
1090
- :type _request_auth: dict, optional
1091
- :param _content_type: force content-type for the request.
1092
- :type _content_type: str, Optional
1093
- :param _headers: set to override the headers for a single
1094
- request; this effectively ignores the headers
1095
- in the spec for a single request.
1096
- :type _headers: dict, optional
1097
- :param _host_index: set to override the host_index for a single
1098
- request; this effectively ignores the host_index
1099
- in the spec for a single request.
1100
- :type _host_index: int, optional
1101
- :return: Returns the result object.
1102
- """ # noqa: E501
1103
-
1104
- _param = self._set_label_serialize(
1105
- open_p_g_p_user_attribute_href=open_p_g_p_user_attribute_href,
1106
- set_label=set_label,
1107
- x_task_diagnostics=x_task_diagnostics,
1108
- _request_auth=_request_auth,
1109
- _content_type=_content_type,
1110
- _headers=_headers,
1111
- _host_index=_host_index
1112
- )
1113
-
1114
- _response_types_map: Dict[str, Optional[str]] = {
1115
- '200': "SetLabelResponse",
1116
- }
1117
- response_data = self.api_client.call_api(
1118
- *_param,
1119
- _request_timeout=_request_timeout
1120
- )
1121
- return response_data.response
1122
-
1123
-
1124
- def _set_label_serialize(
1125
- self,
1126
- open_p_g_p_user_attribute_href,
1127
- set_label,
1128
- x_task_diagnostics,
1129
- _request_auth,
1130
- _content_type,
1131
- _headers,
1132
- _host_index,
1133
- ) -> RequestSerialized:
1134
-
1135
- _host = None
1136
-
1137
- _collection_formats: Dict[str, str] = {
1138
- 'X-Task-Diagnostics': 'csv',
1139
- }
1140
-
1141
- _path_params: Dict[str, str] = {}
1142
- _query_params: List[Tuple[str, str]] = []
1143
- _header_params: Dict[str, Optional[str]] = _headers or {}
1144
- _form_params: List[Tuple[str, str]] = []
1145
- _files: Dict[
1146
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1147
- ] = {}
1148
- _body_params: Optional[bytes] = None
1149
-
1150
- # process the path parameters
1151
- if open_p_g_p_user_attribute_href is not None:
1152
- _path_params['open_p_g_p_user_attribute_href'] = open_p_g_p_user_attribute_href
1153
- # process the query parameters
1154
- # process the header parameters
1155
- if x_task_diagnostics is not None:
1156
- _header_params['X-Task-Diagnostics'] = x_task_diagnostics
1157
- # process the form parameters
1158
- # process the body parameter
1159
- if set_label is not None:
1160
- _body_params = set_label
1161
-
1162
-
1163
- # set the HTTP header `Accept`
1164
- if 'Accept' not in _header_params:
1165
- _header_params['Accept'] = self.api_client.select_header_accept(
1166
- [
1167
- 'application/json'
1168
- ]
1169
- )
1170
-
1171
- # set the HTTP header `Content-Type`
1172
- if _content_type:
1173
- _header_params['Content-Type'] = _content_type
1174
- else:
1175
- _default_content_type = (
1176
- self.api_client.select_header_content_type(
1177
- [
1178
- 'application/json',
1179
- 'application/x-www-form-urlencoded',
1180
- 'multipart/form-data'
1181
- ]
1182
- )
1183
- )
1184
- if _default_content_type is not None:
1185
- _header_params['Content-Type'] = _default_content_type
1186
-
1187
- # authentication setting
1188
- _auth_settings: List[str] = [
1189
- 'json_header_remote_authentication',
1190
- 'basicAuth',
1191
- 'cookieAuth'
1192
- ]
1193
-
1194
- return self.api_client.param_serialize(
1195
- method='POST',
1196
- resource_path='{open_p_g_p_user_attribute_href}set_label/',
1197
- path_params=_path_params,
1198
- query_params=_query_params,
1199
- header_params=_header_params,
1200
- body=_body_params,
1201
- post_params=_form_params,
1202
- files=_files,
1203
- auth_settings=_auth_settings,
1204
- collection_formats=_collection_formats,
1205
- _host=_host,
1206
- _request_auth=_request_auth
1207
- )
1208
-
1209
-
1210
-
1211
-
1212
- @validate_call
1213
- def unset_label(
1214
- self,
1215
- open_p_g_p_user_attribute_href: StrictStr,
1216
- unset_label: UnsetLabel,
1217
- x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
1218
- _request_timeout: Union[
1219
- None,
1220
- Annotated[StrictFloat, Field(gt=0)],
1221
- Tuple[
1222
- Annotated[StrictFloat, Field(gt=0)],
1223
- Annotated[StrictFloat, Field(gt=0)]
1224
- ]
1225
- ] = None,
1226
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
1227
- _content_type: Optional[StrictStr] = None,
1228
- _headers: Optional[Dict[StrictStr, Any]] = None,
1229
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1230
- ) -> UnsetLabelResponse:
1231
- """Unset a label
1232
-
1233
- Unset a single pulp_label on the object.
1234
-
1235
- :param open_p_g_p_user_attribute_href: (required)
1236
- :type open_p_g_p_user_attribute_href: str
1237
- :param unset_label: (required)
1238
- :type unset_label: UnsetLabel
1239
- :param x_task_diagnostics: List of profilers to use on tasks.
1240
- :type x_task_diagnostics: List[str]
1241
- :param _request_timeout: timeout setting for this request. If one
1242
- number provided, it will be total request
1243
- timeout. It can also be a pair (tuple) of
1244
- (connection, read) timeouts.
1245
- :type _request_timeout: int, tuple(int, int), optional
1246
- :param _request_auth: set to override the auth_settings for an a single
1247
- request; this effectively ignores the
1248
- authentication in the spec for a single request.
1249
- :type _request_auth: dict, optional
1250
- :param _content_type: force content-type for the request.
1251
- :type _content_type: str, Optional
1252
- :param _headers: set to override the headers for a single
1253
- request; this effectively ignores the headers
1254
- in the spec for a single request.
1255
- :type _headers: dict, optional
1256
- :param _host_index: set to override the host_index for a single
1257
- request; this effectively ignores the host_index
1258
- in the spec for a single request.
1259
- :type _host_index: int, optional
1260
- :return: Returns the result object.
1261
- """ # noqa: E501
1262
-
1263
- _param = self._unset_label_serialize(
1264
- open_p_g_p_user_attribute_href=open_p_g_p_user_attribute_href,
1265
- unset_label=unset_label,
1266
- x_task_diagnostics=x_task_diagnostics,
1267
- _request_auth=_request_auth,
1268
- _content_type=_content_type,
1269
- _headers=_headers,
1270
- _host_index=_host_index
1271
- )
1272
-
1273
- _response_types_map: Dict[str, Optional[str]] = {
1274
- '200': "UnsetLabelResponse",
1275
- }
1276
- response_data = self.api_client.call_api(
1277
- *_param,
1278
- _request_timeout=_request_timeout
1279
- )
1280
- response_data.read()
1281
- return self.api_client.response_deserialize(
1282
- response_data=response_data,
1283
- response_types_map=_response_types_map,
1284
- ).data
1285
-
1286
-
1287
- @validate_call
1288
- def unset_label_with_http_info(
1289
- self,
1290
- open_p_g_p_user_attribute_href: StrictStr,
1291
- unset_label: UnsetLabel,
1292
- x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
1293
- _request_timeout: Union[
1294
- None,
1295
- Annotated[StrictFloat, Field(gt=0)],
1296
- Tuple[
1297
- Annotated[StrictFloat, Field(gt=0)],
1298
- Annotated[StrictFloat, Field(gt=0)]
1299
- ]
1300
- ] = None,
1301
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
1302
- _content_type: Optional[StrictStr] = None,
1303
- _headers: Optional[Dict[StrictStr, Any]] = None,
1304
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1305
- ) -> ApiResponse[UnsetLabelResponse]:
1306
- """Unset a label
1307
-
1308
- Unset a single pulp_label on the object.
1309
-
1310
- :param open_p_g_p_user_attribute_href: (required)
1311
- :type open_p_g_p_user_attribute_href: str
1312
- :param unset_label: (required)
1313
- :type unset_label: UnsetLabel
1314
- :param x_task_diagnostics: List of profilers to use on tasks.
1315
- :type x_task_diagnostics: List[str]
1316
- :param _request_timeout: timeout setting for this request. If one
1317
- number provided, it will be total request
1318
- timeout. It can also be a pair (tuple) of
1319
- (connection, read) timeouts.
1320
- :type _request_timeout: int, tuple(int, int), optional
1321
- :param _request_auth: set to override the auth_settings for an a single
1322
- request; this effectively ignores the
1323
- authentication in the spec for a single request.
1324
- :type _request_auth: dict, optional
1325
- :param _content_type: force content-type for the request.
1326
- :type _content_type: str, Optional
1327
- :param _headers: set to override the headers for a single
1328
- request; this effectively ignores the headers
1329
- in the spec for a single request.
1330
- :type _headers: dict, optional
1331
- :param _host_index: set to override the host_index for a single
1332
- request; this effectively ignores the host_index
1333
- in the spec for a single request.
1334
- :type _host_index: int, optional
1335
- :return: Returns the result object.
1336
- """ # noqa: E501
1337
-
1338
- _param = self._unset_label_serialize(
1339
- open_p_g_p_user_attribute_href=open_p_g_p_user_attribute_href,
1340
- unset_label=unset_label,
1341
- x_task_diagnostics=x_task_diagnostics,
1342
- _request_auth=_request_auth,
1343
- _content_type=_content_type,
1344
- _headers=_headers,
1345
- _host_index=_host_index
1346
- )
1347
-
1348
- _response_types_map: Dict[str, Optional[str]] = {
1349
- '200': "UnsetLabelResponse",
1350
- }
1351
- response_data = self.api_client.call_api(
1352
- *_param,
1353
- _request_timeout=_request_timeout
1354
- )
1355
- response_data.read()
1356
- return self.api_client.response_deserialize(
1357
- response_data=response_data,
1358
- response_types_map=_response_types_map,
1359
- )
1360
-
1361
-
1362
- @validate_call
1363
- def unset_label_without_preload_content(
1364
- self,
1365
- open_p_g_p_user_attribute_href: StrictStr,
1366
- unset_label: UnsetLabel,
1367
- x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
1368
- _request_timeout: Union[
1369
- None,
1370
- Annotated[StrictFloat, Field(gt=0)],
1371
- Tuple[
1372
- Annotated[StrictFloat, Field(gt=0)],
1373
- Annotated[StrictFloat, Field(gt=0)]
1374
- ]
1375
- ] = None,
1376
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
1377
- _content_type: Optional[StrictStr] = None,
1378
- _headers: Optional[Dict[StrictStr, Any]] = None,
1379
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1380
- ) -> RESTResponseType:
1381
- """Unset a label
1382
-
1383
- Unset a single pulp_label on the object.
1384
-
1385
- :param open_p_g_p_user_attribute_href: (required)
1386
- :type open_p_g_p_user_attribute_href: str
1387
- :param unset_label: (required)
1388
- :type unset_label: UnsetLabel
1389
- :param x_task_diagnostics: List of profilers to use on tasks.
1390
- :type x_task_diagnostics: List[str]
1391
- :param _request_timeout: timeout setting for this request. If one
1392
- number provided, it will be total request
1393
- timeout. It can also be a pair (tuple) of
1394
- (connection, read) timeouts.
1395
- :type _request_timeout: int, tuple(int, int), optional
1396
- :param _request_auth: set to override the auth_settings for an a single
1397
- request; this effectively ignores the
1398
- authentication in the spec for a single request.
1399
- :type _request_auth: dict, optional
1400
- :param _content_type: force content-type for the request.
1401
- :type _content_type: str, Optional
1402
- :param _headers: set to override the headers for a single
1403
- request; this effectively ignores the headers
1404
- in the spec for a single request.
1405
- :type _headers: dict, optional
1406
- :param _host_index: set to override the host_index for a single
1407
- request; this effectively ignores the host_index
1408
- in the spec for a single request.
1409
- :type _host_index: int, optional
1410
- :return: Returns the result object.
1411
- """ # noqa: E501
1412
-
1413
- _param = self._unset_label_serialize(
1414
- open_p_g_p_user_attribute_href=open_p_g_p_user_attribute_href,
1415
- unset_label=unset_label,
1416
- x_task_diagnostics=x_task_diagnostics,
1417
- _request_auth=_request_auth,
1418
- _content_type=_content_type,
1419
- _headers=_headers,
1420
- _host_index=_host_index
1421
- )
1422
-
1423
- _response_types_map: Dict[str, Optional[str]] = {
1424
- '200': "UnsetLabelResponse",
1425
- }
1426
- response_data = self.api_client.call_api(
1427
- *_param,
1428
- _request_timeout=_request_timeout
1429
- )
1430
- return response_data.response
1431
-
1432
-
1433
- def _unset_label_serialize(
1434
- self,
1435
- open_p_g_p_user_attribute_href,
1436
- unset_label,
1437
- x_task_diagnostics,
1438
- _request_auth,
1439
- _content_type,
1440
- _headers,
1441
- _host_index,
1442
- ) -> RequestSerialized:
1443
-
1444
- _host = None
1445
-
1446
- _collection_formats: Dict[str, str] = {
1447
- 'X-Task-Diagnostics': 'csv',
1448
- }
1449
-
1450
- _path_params: Dict[str, str] = {}
1451
- _query_params: List[Tuple[str, str]] = []
1452
- _header_params: Dict[str, Optional[str]] = _headers or {}
1453
- _form_params: List[Tuple[str, str]] = []
1454
- _files: Dict[
1455
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1456
- ] = {}
1457
- _body_params: Optional[bytes] = None
1458
-
1459
- # process the path parameters
1460
- if open_p_g_p_user_attribute_href is not None:
1461
- _path_params['open_p_g_p_user_attribute_href'] = open_p_g_p_user_attribute_href
1462
- # process the query parameters
1463
- # process the header parameters
1464
- if x_task_diagnostics is not None:
1465
- _header_params['X-Task-Diagnostics'] = x_task_diagnostics
1466
- # process the form parameters
1467
- # process the body parameter
1468
- if unset_label is not None:
1469
- _body_params = unset_label
1470
-
1471
-
1472
- # set the HTTP header `Accept`
1473
- if 'Accept' not in _header_params:
1474
- _header_params['Accept'] = self.api_client.select_header_accept(
1475
- [
1476
- 'application/json'
1477
- ]
1478
- )
1479
-
1480
- # set the HTTP header `Content-Type`
1481
- if _content_type:
1482
- _header_params['Content-Type'] = _content_type
1483
- else:
1484
- _default_content_type = (
1485
- self.api_client.select_header_content_type(
1486
- [
1487
- 'application/json',
1488
- 'application/x-www-form-urlencoded',
1489
- 'multipart/form-data'
1490
- ]
1491
- )
1492
- )
1493
- if _default_content_type is not None:
1494
- _header_params['Content-Type'] = _default_content_type
1495
-
1496
- # authentication setting
1497
- _auth_settings: List[str] = [
1498
- 'json_header_remote_authentication',
1499
- 'basicAuth',
1500
- 'cookieAuth'
1501
- ]
1502
-
1503
- return self.api_client.param_serialize(
1504
- method='POST',
1505
- resource_path='{open_p_g_p_user_attribute_href}unset_label/',
1506
- path_params=_path_params,
1507
- query_params=_query_params,
1508
- header_params=_header_params,
1509
- body=_body_params,
1510
- post_params=_form_params,
1511
- files=_files,
1512
- auth_settings=_auth_settings,
1513
- collection_formats=_collection_formats,
1514
- _host=_host,
1515
- _request_auth=_request_auth
1516
- )
1517
-
1518
-