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,2157 +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, StrictInt, StrictStr, field_validator
21
- from typing import List, Optional
22
- from typing_extensions import Annotated
23
- from services-pulpcore-client.models.async_operation_response import AsyncOperationResponse
24
- from services-pulpcore-client.models.filesystem_exporter import FilesystemExporter
25
- from services-pulpcore-client.models.filesystem_exporter_response import FilesystemExporterResponse
26
- from services-pulpcore-client.models.paginated_filesystem_exporter_response_list import PaginatedFilesystemExporterResponseList
27
- from services-pulpcore-client.models.patched_filesystem_exporter import PatchedFilesystemExporter
28
-
29
- from services-pulpcore-client.api_client import ApiClient, RequestSerialized
30
- from services-pulpcore-client.api_response import ApiResponse
31
- from services-pulpcore-client.rest import RESTResponseType
32
-
33
-
34
- class ExportersFilesystemApi:
35
- """NOTE: This class is auto generated by OpenAPI Generator
36
- Ref: https://openapi-generator.tech
37
-
38
- Do not edit the class manually.
39
- """
40
-
41
- def __init__(self, api_client=None) -> None:
42
- if api_client is None:
43
- api_client = ApiClient.get_default()
44
- self.api_client = api_client
45
-
46
-
47
- @validate_call
48
- def create(
49
- self,
50
- filesystem_exporter: FilesystemExporter,
51
- x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
52
- pulp_domain: StrictStr = "default",
53
- _request_timeout: Union[
54
- None,
55
- Annotated[StrictFloat, Field(gt=0)],
56
- Tuple[
57
- Annotated[StrictFloat, Field(gt=0)],
58
- Annotated[StrictFloat, Field(gt=0)]
59
- ]
60
- ] = None,
61
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
62
- _content_type: Optional[StrictStr] = None,
63
- _headers: Optional[Dict[StrictStr, Any]] = None,
64
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
65
- ) -> FilesystemExporterResponse:
66
- """Create a filesystem exporter
67
-
68
- Endpoint for managing FilesystemExporters.
69
-
70
- :param pulp_domain: (required)
71
- :type pulp_domain: str
72
- :param filesystem_exporter: (required)
73
- :type filesystem_exporter: FilesystemExporter
74
- :param x_task_diagnostics: List of profilers to use on tasks.
75
- :type x_task_diagnostics: List[str]
76
- :param _request_timeout: timeout setting for this request. If one
77
- number provided, it will be total request
78
- timeout. It can also be a pair (tuple) of
79
- (connection, read) timeouts.
80
- :type _request_timeout: int, tuple(int, int), optional
81
- :param _request_auth: set to override the auth_settings for an a single
82
- request; this effectively ignores the
83
- authentication in the spec for a single request.
84
- :type _request_auth: dict, optional
85
- :param _content_type: force content-type for the request.
86
- :type _content_type: str, Optional
87
- :param _headers: set to override the headers for a single
88
- request; this effectively ignores the headers
89
- in the spec for a single request.
90
- :type _headers: dict, optional
91
- :param _host_index: set to override the host_index for a single
92
- request; this effectively ignores the host_index
93
- in the spec for a single request.
94
- :type _host_index: int, optional
95
- :return: Returns the result object.
96
- """ # noqa: E501
97
-
98
- _param = self._create_serialize(
99
- pulp_domain=pulp_domain,
100
- filesystem_exporter=filesystem_exporter,
101
- x_task_diagnostics=x_task_diagnostics,
102
- _request_auth=_request_auth,
103
- _content_type=_content_type,
104
- _headers=_headers,
105
- _host_index=_host_index
106
- )
107
-
108
- _response_types_map: Dict[str, Optional[str]] = {
109
- '201': "FilesystemExporterResponse",
110
- }
111
- response_data = self.api_client.call_api(
112
- *_param,
113
- _request_timeout=_request_timeout
114
- )
115
- response_data.read()
116
- return self.api_client.response_deserialize(
117
- response_data=response_data,
118
- response_types_map=_response_types_map,
119
- ).data
120
-
121
-
122
- @validate_call
123
- def create_with_http_info(
124
- self,
125
- filesystem_exporter: FilesystemExporter,
126
- x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
127
- pulp_domain: StrictStr = "default",
128
- _request_timeout: Union[
129
- None,
130
- Annotated[StrictFloat, Field(gt=0)],
131
- Tuple[
132
- Annotated[StrictFloat, Field(gt=0)],
133
- Annotated[StrictFloat, Field(gt=0)]
134
- ]
135
- ] = None,
136
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
137
- _content_type: Optional[StrictStr] = None,
138
- _headers: Optional[Dict[StrictStr, Any]] = None,
139
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
140
- ) -> ApiResponse[FilesystemExporterResponse]:
141
- """Create a filesystem exporter
142
-
143
- Endpoint for managing FilesystemExporters.
144
-
145
- :param pulp_domain: (required)
146
- :type pulp_domain: str
147
- :param filesystem_exporter: (required)
148
- :type filesystem_exporter: FilesystemExporter
149
- :param x_task_diagnostics: List of profilers to use on tasks.
150
- :type x_task_diagnostics: List[str]
151
- :param _request_timeout: timeout setting for this request. If one
152
- number provided, it will be total request
153
- timeout. It can also be a pair (tuple) of
154
- (connection, read) timeouts.
155
- :type _request_timeout: int, tuple(int, int), optional
156
- :param _request_auth: set to override the auth_settings for an a single
157
- request; this effectively ignores the
158
- authentication in the spec for a single request.
159
- :type _request_auth: dict, optional
160
- :param _content_type: force content-type for the request.
161
- :type _content_type: str, Optional
162
- :param _headers: set to override the headers for a single
163
- request; this effectively ignores the headers
164
- in the spec for a single request.
165
- :type _headers: dict, optional
166
- :param _host_index: set to override the host_index for a single
167
- request; this effectively ignores the host_index
168
- in the spec for a single request.
169
- :type _host_index: int, optional
170
- :return: Returns the result object.
171
- """ # noqa: E501
172
-
173
- _param = self._create_serialize(
174
- pulp_domain=pulp_domain,
175
- filesystem_exporter=filesystem_exporter,
176
- x_task_diagnostics=x_task_diagnostics,
177
- _request_auth=_request_auth,
178
- _content_type=_content_type,
179
- _headers=_headers,
180
- _host_index=_host_index
181
- )
182
-
183
- _response_types_map: Dict[str, Optional[str]] = {
184
- '201': "FilesystemExporterResponse",
185
- }
186
- response_data = self.api_client.call_api(
187
- *_param,
188
- _request_timeout=_request_timeout
189
- )
190
- response_data.read()
191
- return self.api_client.response_deserialize(
192
- response_data=response_data,
193
- response_types_map=_response_types_map,
194
- )
195
-
196
-
197
- @validate_call
198
- def create_without_preload_content(
199
- self,
200
- filesystem_exporter: FilesystemExporter,
201
- x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
202
- pulp_domain: StrictStr = "default",
203
- _request_timeout: Union[
204
- None,
205
- Annotated[StrictFloat, Field(gt=0)],
206
- Tuple[
207
- Annotated[StrictFloat, Field(gt=0)],
208
- Annotated[StrictFloat, Field(gt=0)]
209
- ]
210
- ] = None,
211
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
212
- _content_type: Optional[StrictStr] = None,
213
- _headers: Optional[Dict[StrictStr, Any]] = None,
214
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
215
- ) -> RESTResponseType:
216
- """Create a filesystem exporter
217
-
218
- Endpoint for managing FilesystemExporters.
219
-
220
- :param pulp_domain: (required)
221
- :type pulp_domain: str
222
- :param filesystem_exporter: (required)
223
- :type filesystem_exporter: FilesystemExporter
224
- :param x_task_diagnostics: List of profilers to use on tasks.
225
- :type x_task_diagnostics: List[str]
226
- :param _request_timeout: timeout setting for this request. If one
227
- number provided, it will be total request
228
- timeout. It can also be a pair (tuple) of
229
- (connection, read) timeouts.
230
- :type _request_timeout: int, tuple(int, int), optional
231
- :param _request_auth: set to override the auth_settings for an a single
232
- request; this effectively ignores the
233
- authentication in the spec for a single request.
234
- :type _request_auth: dict, optional
235
- :param _content_type: force content-type for the request.
236
- :type _content_type: str, Optional
237
- :param _headers: set to override the headers for a single
238
- request; this effectively ignores the headers
239
- in the spec for a single request.
240
- :type _headers: dict, optional
241
- :param _host_index: set to override the host_index for a single
242
- request; this effectively ignores the host_index
243
- in the spec for a single request.
244
- :type _host_index: int, optional
245
- :return: Returns the result object.
246
- """ # noqa: E501
247
-
248
- _param = self._create_serialize(
249
- pulp_domain=pulp_domain,
250
- filesystem_exporter=filesystem_exporter,
251
- x_task_diagnostics=x_task_diagnostics,
252
- _request_auth=_request_auth,
253
- _content_type=_content_type,
254
- _headers=_headers,
255
- _host_index=_host_index
256
- )
257
-
258
- _response_types_map: Dict[str, Optional[str]] = {
259
- '201': "FilesystemExporterResponse",
260
- }
261
- response_data = self.api_client.call_api(
262
- *_param,
263
- _request_timeout=_request_timeout
264
- )
265
- return response_data.response
266
-
267
-
268
- def _create_serialize(
269
- self,
270
- pulp_domain,
271
- filesystem_exporter,
272
- x_task_diagnostics,
273
- _request_auth,
274
- _content_type,
275
- _headers,
276
- _host_index,
277
- ) -> RequestSerialized:
278
-
279
- _host = None
280
-
281
- _collection_formats: Dict[str, str] = {
282
- 'X-Task-Diagnostics': 'csv',
283
- }
284
-
285
- _path_params: Dict[str, str] = {}
286
- _query_params: List[Tuple[str, str]] = []
287
- _header_params: Dict[str, Optional[str]] = _headers or {}
288
- _form_params: List[Tuple[str, str]] = []
289
- _files: Dict[
290
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
291
- ] = {}
292
- _body_params: Optional[bytes] = None
293
-
294
- # process the path parameters
295
- if pulp_domain is not None:
296
- _path_params['pulp_domain'] = pulp_domain
297
- # process the query parameters
298
- # process the header parameters
299
- if x_task_diagnostics is not None:
300
- _header_params['X-Task-Diagnostics'] = x_task_diagnostics
301
- # process the form parameters
302
- # process the body parameter
303
- if filesystem_exporter is not None:
304
- _body_params = filesystem_exporter
305
-
306
-
307
- # set the HTTP header `Accept`
308
- if 'Accept' not in _header_params:
309
- _header_params['Accept'] = self.api_client.select_header_accept(
310
- [
311
- 'application/json'
312
- ]
313
- )
314
-
315
- # set the HTTP header `Content-Type`
316
- if _content_type:
317
- _header_params['Content-Type'] = _content_type
318
- else:
319
- _default_content_type = (
320
- self.api_client.select_header_content_type(
321
- [
322
- 'application/json',
323
- 'application/x-www-form-urlencoded',
324
- 'multipart/form-data'
325
- ]
326
- )
327
- )
328
- if _default_content_type is not None:
329
- _header_params['Content-Type'] = _default_content_type
330
-
331
- # authentication setting
332
- _auth_settings: List[str] = [
333
- 'json_header_remote_authentication',
334
- 'basicAuth',
335
- 'cookieAuth'
336
- ]
337
-
338
- return self.api_client.param_serialize(
339
- method='POST',
340
- resource_path='/api/pulp/{pulp_domain}/api/v3/exporters/core/filesystem/',
341
- path_params=_path_params,
342
- query_params=_query_params,
343
- header_params=_header_params,
344
- body=_body_params,
345
- post_params=_form_params,
346
- files=_files,
347
- auth_settings=_auth_settings,
348
- collection_formats=_collection_formats,
349
- _host=_host,
350
- _request_auth=_request_auth
351
- )
352
-
353
-
354
-
355
-
356
- @validate_call
357
- def delete(
358
- self,
359
- filesystem_exporter_href: StrictStr,
360
- x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
361
- _request_timeout: Union[
362
- None,
363
- Annotated[StrictFloat, Field(gt=0)],
364
- Tuple[
365
- Annotated[StrictFloat, Field(gt=0)],
366
- Annotated[StrictFloat, Field(gt=0)]
367
- ]
368
- ] = None,
369
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
370
- _content_type: Optional[StrictStr] = None,
371
- _headers: Optional[Dict[StrictStr, Any]] = None,
372
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
373
- ) -> AsyncOperationResponse:
374
- """Delete a filesystem exporter
375
-
376
- Trigger an asynchronous delete task
377
-
378
- :param filesystem_exporter_href: (required)
379
- :type filesystem_exporter_href: str
380
- :param x_task_diagnostics: List of profilers to use on tasks.
381
- :type x_task_diagnostics: List[str]
382
- :param _request_timeout: timeout setting for this request. If one
383
- number provided, it will be total request
384
- timeout. It can also be a pair (tuple) of
385
- (connection, read) timeouts.
386
- :type _request_timeout: int, tuple(int, int), optional
387
- :param _request_auth: set to override the auth_settings for an a single
388
- request; this effectively ignores the
389
- authentication in the spec for a single request.
390
- :type _request_auth: dict, optional
391
- :param _content_type: force content-type for the request.
392
- :type _content_type: str, Optional
393
- :param _headers: set to override the headers for a single
394
- request; this effectively ignores the headers
395
- in the spec for a single request.
396
- :type _headers: dict, optional
397
- :param _host_index: set to override the host_index for a single
398
- request; this effectively ignores the host_index
399
- in the spec for a single request.
400
- :type _host_index: int, optional
401
- :return: Returns the result object.
402
- """ # noqa: E501
403
-
404
- _param = self._delete_serialize(
405
- filesystem_exporter_href=filesystem_exporter_href,
406
- x_task_diagnostics=x_task_diagnostics,
407
- _request_auth=_request_auth,
408
- _content_type=_content_type,
409
- _headers=_headers,
410
- _host_index=_host_index
411
- )
412
-
413
- _response_types_map: Dict[str, Optional[str]] = {
414
- '202': "AsyncOperationResponse",
415
- }
416
- response_data = self.api_client.call_api(
417
- *_param,
418
- _request_timeout=_request_timeout
419
- )
420
- response_data.read()
421
- return self.api_client.response_deserialize(
422
- response_data=response_data,
423
- response_types_map=_response_types_map,
424
- ).data
425
-
426
-
427
- @validate_call
428
- def delete_with_http_info(
429
- self,
430
- filesystem_exporter_href: StrictStr,
431
- x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
432
- _request_timeout: Union[
433
- None,
434
- Annotated[StrictFloat, Field(gt=0)],
435
- Tuple[
436
- Annotated[StrictFloat, Field(gt=0)],
437
- Annotated[StrictFloat, Field(gt=0)]
438
- ]
439
- ] = None,
440
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
441
- _content_type: Optional[StrictStr] = None,
442
- _headers: Optional[Dict[StrictStr, Any]] = None,
443
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
444
- ) -> ApiResponse[AsyncOperationResponse]:
445
- """Delete a filesystem exporter
446
-
447
- Trigger an asynchronous delete task
448
-
449
- :param filesystem_exporter_href: (required)
450
- :type filesystem_exporter_href: str
451
- :param x_task_diagnostics: List of profilers to use on tasks.
452
- :type x_task_diagnostics: List[str]
453
- :param _request_timeout: timeout setting for this request. If one
454
- number provided, it will be total request
455
- timeout. It can also be a pair (tuple) of
456
- (connection, read) timeouts.
457
- :type _request_timeout: int, tuple(int, int), optional
458
- :param _request_auth: set to override the auth_settings for an a single
459
- request; this effectively ignores the
460
- authentication in the spec for a single request.
461
- :type _request_auth: dict, optional
462
- :param _content_type: force content-type for the request.
463
- :type _content_type: str, Optional
464
- :param _headers: set to override the headers for a single
465
- request; this effectively ignores the headers
466
- in the spec for a single request.
467
- :type _headers: dict, optional
468
- :param _host_index: set to override the host_index for a single
469
- request; this effectively ignores the host_index
470
- in the spec for a single request.
471
- :type _host_index: int, optional
472
- :return: Returns the result object.
473
- """ # noqa: E501
474
-
475
- _param = self._delete_serialize(
476
- filesystem_exporter_href=filesystem_exporter_href,
477
- x_task_diagnostics=x_task_diagnostics,
478
- _request_auth=_request_auth,
479
- _content_type=_content_type,
480
- _headers=_headers,
481
- _host_index=_host_index
482
- )
483
-
484
- _response_types_map: Dict[str, Optional[str]] = {
485
- '202': "AsyncOperationResponse",
486
- }
487
- response_data = self.api_client.call_api(
488
- *_param,
489
- _request_timeout=_request_timeout
490
- )
491
- response_data.read()
492
- return self.api_client.response_deserialize(
493
- response_data=response_data,
494
- response_types_map=_response_types_map,
495
- )
496
-
497
-
498
- @validate_call
499
- def delete_without_preload_content(
500
- self,
501
- filesystem_exporter_href: StrictStr,
502
- x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
503
- _request_timeout: Union[
504
- None,
505
- Annotated[StrictFloat, Field(gt=0)],
506
- Tuple[
507
- Annotated[StrictFloat, Field(gt=0)],
508
- Annotated[StrictFloat, Field(gt=0)]
509
- ]
510
- ] = None,
511
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
512
- _content_type: Optional[StrictStr] = None,
513
- _headers: Optional[Dict[StrictStr, Any]] = None,
514
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
515
- ) -> RESTResponseType:
516
- """Delete a filesystem exporter
517
-
518
- Trigger an asynchronous delete task
519
-
520
- :param filesystem_exporter_href: (required)
521
- :type filesystem_exporter_href: str
522
- :param x_task_diagnostics: List of profilers to use on tasks.
523
- :type x_task_diagnostics: List[str]
524
- :param _request_timeout: timeout setting for this request. If one
525
- number provided, it will be total request
526
- timeout. It can also be a pair (tuple) of
527
- (connection, read) timeouts.
528
- :type _request_timeout: int, tuple(int, int), optional
529
- :param _request_auth: set to override the auth_settings for an a single
530
- request; this effectively ignores the
531
- authentication in the spec for a single request.
532
- :type _request_auth: dict, optional
533
- :param _content_type: force content-type for the request.
534
- :type _content_type: str, Optional
535
- :param _headers: set to override the headers for a single
536
- request; this effectively ignores the headers
537
- in the spec for a single request.
538
- :type _headers: dict, optional
539
- :param _host_index: set to override the host_index for a single
540
- request; this effectively ignores the host_index
541
- in the spec for a single request.
542
- :type _host_index: int, optional
543
- :return: Returns the result object.
544
- """ # noqa: E501
545
-
546
- _param = self._delete_serialize(
547
- filesystem_exporter_href=filesystem_exporter_href,
548
- x_task_diagnostics=x_task_diagnostics,
549
- _request_auth=_request_auth,
550
- _content_type=_content_type,
551
- _headers=_headers,
552
- _host_index=_host_index
553
- )
554
-
555
- _response_types_map: Dict[str, Optional[str]] = {
556
- '202': "AsyncOperationResponse",
557
- }
558
- response_data = self.api_client.call_api(
559
- *_param,
560
- _request_timeout=_request_timeout
561
- )
562
- return response_data.response
563
-
564
-
565
- def _delete_serialize(
566
- self,
567
- filesystem_exporter_href,
568
- x_task_diagnostics,
569
- _request_auth,
570
- _content_type,
571
- _headers,
572
- _host_index,
573
- ) -> RequestSerialized:
574
-
575
- _host = None
576
-
577
- _collection_formats: Dict[str, str] = {
578
- 'X-Task-Diagnostics': 'csv',
579
- }
580
-
581
- _path_params: Dict[str, str] = {}
582
- _query_params: List[Tuple[str, str]] = []
583
- _header_params: Dict[str, Optional[str]] = _headers or {}
584
- _form_params: List[Tuple[str, str]] = []
585
- _files: Dict[
586
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
587
- ] = {}
588
- _body_params: Optional[bytes] = None
589
-
590
- # process the path parameters
591
- if filesystem_exporter_href is not None:
592
- _path_params['filesystem_exporter_href'] = filesystem_exporter_href
593
- # process the query parameters
594
- # process the header parameters
595
- if x_task_diagnostics is not None:
596
- _header_params['X-Task-Diagnostics'] = x_task_diagnostics
597
- # process the form parameters
598
- # process the body parameter
599
-
600
-
601
- # set the HTTP header `Accept`
602
- if 'Accept' not in _header_params:
603
- _header_params['Accept'] = self.api_client.select_header_accept(
604
- [
605
- 'application/json'
606
- ]
607
- )
608
-
609
-
610
- # authentication setting
611
- _auth_settings: List[str] = [
612
- 'json_header_remote_authentication',
613
- 'basicAuth',
614
- 'cookieAuth'
615
- ]
616
-
617
- return self.api_client.param_serialize(
618
- method='DELETE',
619
- resource_path='{filesystem_exporter_href}',
620
- path_params=_path_params,
621
- query_params=_query_params,
622
- header_params=_header_params,
623
- body=_body_params,
624
- post_params=_form_params,
625
- files=_files,
626
- auth_settings=_auth_settings,
627
- collection_formats=_collection_formats,
628
- _host=_host,
629
- _request_auth=_request_auth
630
- )
631
-
632
-
633
-
634
-
635
- @validate_call
636
- def list(
637
- self,
638
- x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
639
- limit: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None,
640
- name: Annotated[Optional[StrictStr], Field(description="Filter results where name matches value")] = None,
641
- name__contains: Annotated[Optional[StrictStr], Field(description="Filter results where name contains value")] = None,
642
- name__icontains: Annotated[Optional[StrictStr], Field(description="Filter results where name contains value")] = None,
643
- name__iexact: Annotated[Optional[StrictStr], Field(description="Filter results where name matches value")] = None,
644
- name__in: Annotated[Optional[List[StrictStr]], Field(description="Filter results where name is in a comma-separated list of values")] = None,
645
- name__iregex: Annotated[Optional[StrictStr], Field(description="Filter results where name matches regex value")] = None,
646
- name__istartswith: Annotated[Optional[StrictStr], Field(description="Filter results where name starts with value")] = None,
647
- name__regex: Annotated[Optional[StrictStr], Field(description="Filter results where name matches regex value")] = None,
648
- name__startswith: Annotated[Optional[StrictStr], Field(description="Filter results where name starts with value")] = None,
649
- offset: Annotated[Optional[StrictInt], Field(description="The initial index from which to return the results.")] = None,
650
- 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) * `name` - Name * `-name` - Name (descending) * `path` - Path * `-path` - Path (descending) * `method` - Method * `-method` - Method (descending) * `pk` - Pk * `-pk` - Pk (descending)")] = None,
651
- prn__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
652
- pulp_href__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
653
- pulp_id__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
654
- q: Annotated[Optional[StrictStr], Field(description="Filter results by using NOT, AND and OR operations on other filters")] = None,
655
- fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
656
- exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
657
- pulp_domain: StrictStr = "default",
658
- _request_timeout: Union[
659
- None,
660
- Annotated[StrictFloat, Field(gt=0)],
661
- Tuple[
662
- Annotated[StrictFloat, Field(gt=0)],
663
- Annotated[StrictFloat, Field(gt=0)]
664
- ]
665
- ] = None,
666
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
667
- _content_type: Optional[StrictStr] = None,
668
- _headers: Optional[Dict[StrictStr, Any]] = None,
669
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
670
- ) -> PaginatedFilesystemExporterResponseList:
671
- """List filesystem exporters
672
-
673
- Endpoint for managing FilesystemExporters.
674
-
675
- :param pulp_domain: (required)
676
- :type pulp_domain: str
677
- :param x_task_diagnostics: List of profilers to use on tasks.
678
- :type x_task_diagnostics: List[str]
679
- :param limit: Number of results to return per page.
680
- :type limit: int
681
- :param name: Filter results where name matches value
682
- :type name: str
683
- :param name__contains: Filter results where name contains value
684
- :type name__contains: str
685
- :param name__icontains: Filter results where name contains value
686
- :type name__icontains: str
687
- :param name__iexact: Filter results where name matches value
688
- :type name__iexact: str
689
- :param name__in: Filter results where name is in a comma-separated list of values
690
- :type name__in: List[str]
691
- :param name__iregex: Filter results where name matches regex value
692
- :type name__iregex: str
693
- :param name__istartswith: Filter results where name starts with value
694
- :type name__istartswith: str
695
- :param name__regex: Filter results where name matches regex value
696
- :type name__regex: str
697
- :param name__startswith: Filter results where name starts with value
698
- :type name__startswith: str
699
- :param offset: The initial index from which to return the results.
700
- :type offset: int
701
- :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) * `name` - Name * `-name` - Name (descending) * `path` - Path * `-path` - Path (descending) * `method` - Method * `-method` - Method (descending) * `pk` - Pk * `-pk` - Pk (descending)
702
- :type ordering: List[str]
703
- :param prn__in: Multiple values may be separated by commas.
704
- :type prn__in: List[str]
705
- :param pulp_href__in: Multiple values may be separated by commas.
706
- :type pulp_href__in: List[str]
707
- :param pulp_id__in: Multiple values may be separated by commas.
708
- :type pulp_id__in: List[str]
709
- :param q: Filter results by using NOT, AND and OR operations on other filters
710
- :type q: str
711
- :param fields: A list of fields to include in the response.
712
- :type fields: List[str]
713
- :param exclude_fields: A list of fields to exclude from the response.
714
- :type exclude_fields: List[str]
715
- :param _request_timeout: timeout setting for this request. If one
716
- number provided, it will be total request
717
- timeout. It can also be a pair (tuple) of
718
- (connection, read) timeouts.
719
- :type _request_timeout: int, tuple(int, int), optional
720
- :param _request_auth: set to override the auth_settings for an a single
721
- request; this effectively ignores the
722
- authentication in the spec for a single request.
723
- :type _request_auth: dict, optional
724
- :param _content_type: force content-type for the request.
725
- :type _content_type: str, Optional
726
- :param _headers: set to override the headers for a single
727
- request; this effectively ignores the headers
728
- in the spec for a single request.
729
- :type _headers: dict, optional
730
- :param _host_index: set to override the host_index for a single
731
- request; this effectively ignores the host_index
732
- in the spec for a single request.
733
- :type _host_index: int, optional
734
- :return: Returns the result object.
735
- """ # noqa: E501
736
-
737
- _param = self._list_serialize(
738
- pulp_domain=pulp_domain,
739
- x_task_diagnostics=x_task_diagnostics,
740
- limit=limit,
741
- name=name,
742
- name__contains=name__contains,
743
- name__icontains=name__icontains,
744
- name__iexact=name__iexact,
745
- name__in=name__in,
746
- name__iregex=name__iregex,
747
- name__istartswith=name__istartswith,
748
- name__regex=name__regex,
749
- name__startswith=name__startswith,
750
- offset=offset,
751
- ordering=ordering,
752
- prn__in=prn__in,
753
- pulp_href__in=pulp_href__in,
754
- pulp_id__in=pulp_id__in,
755
- q=q,
756
- fields=fields,
757
- exclude_fields=exclude_fields,
758
- _request_auth=_request_auth,
759
- _content_type=_content_type,
760
- _headers=_headers,
761
- _host_index=_host_index
762
- )
763
-
764
- _response_types_map: Dict[str, Optional[str]] = {
765
- '200': "PaginatedFilesystemExporterResponseList",
766
- }
767
- response_data = self.api_client.call_api(
768
- *_param,
769
- _request_timeout=_request_timeout
770
- )
771
- response_data.read()
772
- return self.api_client.response_deserialize(
773
- response_data=response_data,
774
- response_types_map=_response_types_map,
775
- ).data
776
-
777
-
778
- @validate_call
779
- def list_with_http_info(
780
- self,
781
- x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
782
- limit: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None,
783
- name: Annotated[Optional[StrictStr], Field(description="Filter results where name matches value")] = None,
784
- name__contains: Annotated[Optional[StrictStr], Field(description="Filter results where name contains value")] = None,
785
- name__icontains: Annotated[Optional[StrictStr], Field(description="Filter results where name contains value")] = None,
786
- name__iexact: Annotated[Optional[StrictStr], Field(description="Filter results where name matches value")] = None,
787
- name__in: Annotated[Optional[List[StrictStr]], Field(description="Filter results where name is in a comma-separated list of values")] = None,
788
- name__iregex: Annotated[Optional[StrictStr], Field(description="Filter results where name matches regex value")] = None,
789
- name__istartswith: Annotated[Optional[StrictStr], Field(description="Filter results where name starts with value")] = None,
790
- name__regex: Annotated[Optional[StrictStr], Field(description="Filter results where name matches regex value")] = None,
791
- name__startswith: Annotated[Optional[StrictStr], Field(description="Filter results where name starts with value")] = None,
792
- offset: Annotated[Optional[StrictInt], Field(description="The initial index from which to return the results.")] = None,
793
- 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) * `name` - Name * `-name` - Name (descending) * `path` - Path * `-path` - Path (descending) * `method` - Method * `-method` - Method (descending) * `pk` - Pk * `-pk` - Pk (descending)")] = None,
794
- prn__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
795
- pulp_href__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
796
- pulp_id__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
797
- q: Annotated[Optional[StrictStr], Field(description="Filter results by using NOT, AND and OR operations on other filters")] = None,
798
- fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
799
- exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
800
- pulp_domain: StrictStr = "default",
801
- _request_timeout: Union[
802
- None,
803
- Annotated[StrictFloat, Field(gt=0)],
804
- Tuple[
805
- Annotated[StrictFloat, Field(gt=0)],
806
- Annotated[StrictFloat, Field(gt=0)]
807
- ]
808
- ] = None,
809
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
810
- _content_type: Optional[StrictStr] = None,
811
- _headers: Optional[Dict[StrictStr, Any]] = None,
812
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
813
- ) -> ApiResponse[PaginatedFilesystemExporterResponseList]:
814
- """List filesystem exporters
815
-
816
- Endpoint for managing FilesystemExporters.
817
-
818
- :param pulp_domain: (required)
819
- :type pulp_domain: str
820
- :param x_task_diagnostics: List of profilers to use on tasks.
821
- :type x_task_diagnostics: List[str]
822
- :param limit: Number of results to return per page.
823
- :type limit: int
824
- :param name: Filter results where name matches value
825
- :type name: str
826
- :param name__contains: Filter results where name contains value
827
- :type name__contains: str
828
- :param name__icontains: Filter results where name contains value
829
- :type name__icontains: str
830
- :param name__iexact: Filter results where name matches value
831
- :type name__iexact: str
832
- :param name__in: Filter results where name is in a comma-separated list of values
833
- :type name__in: List[str]
834
- :param name__iregex: Filter results where name matches regex value
835
- :type name__iregex: str
836
- :param name__istartswith: Filter results where name starts with value
837
- :type name__istartswith: str
838
- :param name__regex: Filter results where name matches regex value
839
- :type name__regex: str
840
- :param name__startswith: Filter results where name starts with value
841
- :type name__startswith: str
842
- :param offset: The initial index from which to return the results.
843
- :type offset: int
844
- :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) * `name` - Name * `-name` - Name (descending) * `path` - Path * `-path` - Path (descending) * `method` - Method * `-method` - Method (descending) * `pk` - Pk * `-pk` - Pk (descending)
845
- :type ordering: List[str]
846
- :param prn__in: Multiple values may be separated by commas.
847
- :type prn__in: List[str]
848
- :param pulp_href__in: Multiple values may be separated by commas.
849
- :type pulp_href__in: List[str]
850
- :param pulp_id__in: Multiple values may be separated by commas.
851
- :type pulp_id__in: List[str]
852
- :param q: Filter results by using NOT, AND and OR operations on other filters
853
- :type q: str
854
- :param fields: A list of fields to include in the response.
855
- :type fields: List[str]
856
- :param exclude_fields: A list of fields to exclude from the response.
857
- :type exclude_fields: List[str]
858
- :param _request_timeout: timeout setting for this request. If one
859
- number provided, it will be total request
860
- timeout. It can also be a pair (tuple) of
861
- (connection, read) timeouts.
862
- :type _request_timeout: int, tuple(int, int), optional
863
- :param _request_auth: set to override the auth_settings for an a single
864
- request; this effectively ignores the
865
- authentication in the spec for a single request.
866
- :type _request_auth: dict, optional
867
- :param _content_type: force content-type for the request.
868
- :type _content_type: str, Optional
869
- :param _headers: set to override the headers for a single
870
- request; this effectively ignores the headers
871
- in the spec for a single request.
872
- :type _headers: dict, optional
873
- :param _host_index: set to override the host_index for a single
874
- request; this effectively ignores the host_index
875
- in the spec for a single request.
876
- :type _host_index: int, optional
877
- :return: Returns the result object.
878
- """ # noqa: E501
879
-
880
- _param = self._list_serialize(
881
- pulp_domain=pulp_domain,
882
- x_task_diagnostics=x_task_diagnostics,
883
- limit=limit,
884
- name=name,
885
- name__contains=name__contains,
886
- name__icontains=name__icontains,
887
- name__iexact=name__iexact,
888
- name__in=name__in,
889
- name__iregex=name__iregex,
890
- name__istartswith=name__istartswith,
891
- name__regex=name__regex,
892
- name__startswith=name__startswith,
893
- offset=offset,
894
- ordering=ordering,
895
- prn__in=prn__in,
896
- pulp_href__in=pulp_href__in,
897
- pulp_id__in=pulp_id__in,
898
- q=q,
899
- fields=fields,
900
- exclude_fields=exclude_fields,
901
- _request_auth=_request_auth,
902
- _content_type=_content_type,
903
- _headers=_headers,
904
- _host_index=_host_index
905
- )
906
-
907
- _response_types_map: Dict[str, Optional[str]] = {
908
- '200': "PaginatedFilesystemExporterResponseList",
909
- }
910
- response_data = self.api_client.call_api(
911
- *_param,
912
- _request_timeout=_request_timeout
913
- )
914
- response_data.read()
915
- return self.api_client.response_deserialize(
916
- response_data=response_data,
917
- response_types_map=_response_types_map,
918
- )
919
-
920
-
921
- @validate_call
922
- def list_without_preload_content(
923
- self,
924
- x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
925
- limit: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None,
926
- name: Annotated[Optional[StrictStr], Field(description="Filter results where name matches value")] = None,
927
- name__contains: Annotated[Optional[StrictStr], Field(description="Filter results where name contains value")] = None,
928
- name__icontains: Annotated[Optional[StrictStr], Field(description="Filter results where name contains value")] = None,
929
- name__iexact: Annotated[Optional[StrictStr], Field(description="Filter results where name matches value")] = None,
930
- name__in: Annotated[Optional[List[StrictStr]], Field(description="Filter results where name is in a comma-separated list of values")] = None,
931
- name__iregex: Annotated[Optional[StrictStr], Field(description="Filter results where name matches regex value")] = None,
932
- name__istartswith: Annotated[Optional[StrictStr], Field(description="Filter results where name starts with value")] = None,
933
- name__regex: Annotated[Optional[StrictStr], Field(description="Filter results where name matches regex value")] = None,
934
- name__startswith: Annotated[Optional[StrictStr], Field(description="Filter results where name starts with value")] = None,
935
- offset: Annotated[Optional[StrictInt], Field(description="The initial index from which to return the results.")] = None,
936
- 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) * `name` - Name * `-name` - Name (descending) * `path` - Path * `-path` - Path (descending) * `method` - Method * `-method` - Method (descending) * `pk` - Pk * `-pk` - Pk (descending)")] = None,
937
- prn__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
938
- pulp_href__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
939
- pulp_id__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
940
- q: Annotated[Optional[StrictStr], Field(description="Filter results by using NOT, AND and OR operations on other filters")] = None,
941
- fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
942
- exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
943
- pulp_domain: StrictStr = "default",
944
- _request_timeout: Union[
945
- None,
946
- Annotated[StrictFloat, Field(gt=0)],
947
- Tuple[
948
- Annotated[StrictFloat, Field(gt=0)],
949
- Annotated[StrictFloat, Field(gt=0)]
950
- ]
951
- ] = None,
952
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
953
- _content_type: Optional[StrictStr] = None,
954
- _headers: Optional[Dict[StrictStr, Any]] = None,
955
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
956
- ) -> RESTResponseType:
957
- """List filesystem exporters
958
-
959
- Endpoint for managing FilesystemExporters.
960
-
961
- :param pulp_domain: (required)
962
- :type pulp_domain: str
963
- :param x_task_diagnostics: List of profilers to use on tasks.
964
- :type x_task_diagnostics: List[str]
965
- :param limit: Number of results to return per page.
966
- :type limit: int
967
- :param name: Filter results where name matches value
968
- :type name: str
969
- :param name__contains: Filter results where name contains value
970
- :type name__contains: str
971
- :param name__icontains: Filter results where name contains value
972
- :type name__icontains: str
973
- :param name__iexact: Filter results where name matches value
974
- :type name__iexact: str
975
- :param name__in: Filter results where name is in a comma-separated list of values
976
- :type name__in: List[str]
977
- :param name__iregex: Filter results where name matches regex value
978
- :type name__iregex: str
979
- :param name__istartswith: Filter results where name starts with value
980
- :type name__istartswith: str
981
- :param name__regex: Filter results where name matches regex value
982
- :type name__regex: str
983
- :param name__startswith: Filter results where name starts with value
984
- :type name__startswith: str
985
- :param offset: The initial index from which to return the results.
986
- :type offset: int
987
- :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) * `name` - Name * `-name` - Name (descending) * `path` - Path * `-path` - Path (descending) * `method` - Method * `-method` - Method (descending) * `pk` - Pk * `-pk` - Pk (descending)
988
- :type ordering: List[str]
989
- :param prn__in: Multiple values may be separated by commas.
990
- :type prn__in: List[str]
991
- :param pulp_href__in: Multiple values may be separated by commas.
992
- :type pulp_href__in: List[str]
993
- :param pulp_id__in: Multiple values may be separated by commas.
994
- :type pulp_id__in: List[str]
995
- :param q: Filter results by using NOT, AND and OR operations on other filters
996
- :type q: str
997
- :param fields: A list of fields to include in the response.
998
- :type fields: List[str]
999
- :param exclude_fields: A list of fields to exclude from the response.
1000
- :type exclude_fields: List[str]
1001
- :param _request_timeout: timeout setting for this request. If one
1002
- number provided, it will be total request
1003
- timeout. It can also be a pair (tuple) of
1004
- (connection, read) timeouts.
1005
- :type _request_timeout: int, tuple(int, int), optional
1006
- :param _request_auth: set to override the auth_settings for an a single
1007
- request; this effectively ignores the
1008
- authentication in the spec for a single request.
1009
- :type _request_auth: dict, optional
1010
- :param _content_type: force content-type for the request.
1011
- :type _content_type: str, Optional
1012
- :param _headers: set to override the headers for a single
1013
- request; this effectively ignores the headers
1014
- in the spec for a single request.
1015
- :type _headers: dict, optional
1016
- :param _host_index: set to override the host_index for a single
1017
- request; this effectively ignores the host_index
1018
- in the spec for a single request.
1019
- :type _host_index: int, optional
1020
- :return: Returns the result object.
1021
- """ # noqa: E501
1022
-
1023
- _param = self._list_serialize(
1024
- pulp_domain=pulp_domain,
1025
- x_task_diagnostics=x_task_diagnostics,
1026
- limit=limit,
1027
- name=name,
1028
- name__contains=name__contains,
1029
- name__icontains=name__icontains,
1030
- name__iexact=name__iexact,
1031
- name__in=name__in,
1032
- name__iregex=name__iregex,
1033
- name__istartswith=name__istartswith,
1034
- name__regex=name__regex,
1035
- name__startswith=name__startswith,
1036
- offset=offset,
1037
- ordering=ordering,
1038
- prn__in=prn__in,
1039
- pulp_href__in=pulp_href__in,
1040
- pulp_id__in=pulp_id__in,
1041
- q=q,
1042
- fields=fields,
1043
- exclude_fields=exclude_fields,
1044
- _request_auth=_request_auth,
1045
- _content_type=_content_type,
1046
- _headers=_headers,
1047
- _host_index=_host_index
1048
- )
1049
-
1050
- _response_types_map: Dict[str, Optional[str]] = {
1051
- '200': "PaginatedFilesystemExporterResponseList",
1052
- }
1053
- response_data = self.api_client.call_api(
1054
- *_param,
1055
- _request_timeout=_request_timeout
1056
- )
1057
- return response_data.response
1058
-
1059
-
1060
- def _list_serialize(
1061
- self,
1062
- pulp_domain,
1063
- x_task_diagnostics,
1064
- limit,
1065
- name,
1066
- name__contains,
1067
- name__icontains,
1068
- name__iexact,
1069
- name__in,
1070
- name__iregex,
1071
- name__istartswith,
1072
- name__regex,
1073
- name__startswith,
1074
- offset,
1075
- ordering,
1076
- prn__in,
1077
- pulp_href__in,
1078
- pulp_id__in,
1079
- q,
1080
- fields,
1081
- exclude_fields,
1082
- _request_auth,
1083
- _content_type,
1084
- _headers,
1085
- _host_index,
1086
- ) -> RequestSerialized:
1087
-
1088
- _host = None
1089
-
1090
- _collection_formats: Dict[str, str] = {
1091
- 'X-Task-Diagnostics': 'csv',
1092
- 'name__in': 'csv',
1093
- 'ordering': 'csv',
1094
- 'prn__in': 'csv',
1095
- 'pulp_href__in': 'csv',
1096
- 'pulp_id__in': 'csv',
1097
- 'fields': 'multi',
1098
- 'exclude_fields': 'multi',
1099
- }
1100
-
1101
- _path_params: Dict[str, str] = {}
1102
- _query_params: List[Tuple[str, str]] = []
1103
- _header_params: Dict[str, Optional[str]] = _headers or {}
1104
- _form_params: List[Tuple[str, str]] = []
1105
- _files: Dict[
1106
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1107
- ] = {}
1108
- _body_params: Optional[bytes] = None
1109
-
1110
- # process the path parameters
1111
- if pulp_domain is not None:
1112
- _path_params['pulp_domain'] = pulp_domain
1113
- # process the query parameters
1114
- if limit is not None:
1115
-
1116
- _query_params.append(('limit', limit))
1117
-
1118
- if name is not None:
1119
-
1120
- _query_params.append(('name', name))
1121
-
1122
- if name__contains is not None:
1123
-
1124
- _query_params.append(('name__contains', name__contains))
1125
-
1126
- if name__icontains is not None:
1127
-
1128
- _query_params.append(('name__icontains', name__icontains))
1129
-
1130
- if name__iexact is not None:
1131
-
1132
- _query_params.append(('name__iexact', name__iexact))
1133
-
1134
- if name__in is not None:
1135
-
1136
- _query_params.append(('name__in', name__in))
1137
-
1138
- if name__iregex is not None:
1139
-
1140
- _query_params.append(('name__iregex', name__iregex))
1141
-
1142
- if name__istartswith is not None:
1143
-
1144
- _query_params.append(('name__istartswith', name__istartswith))
1145
-
1146
- if name__regex is not None:
1147
-
1148
- _query_params.append(('name__regex', name__regex))
1149
-
1150
- if name__startswith is not None:
1151
-
1152
- _query_params.append(('name__startswith', name__startswith))
1153
-
1154
- if offset is not None:
1155
-
1156
- _query_params.append(('offset', offset))
1157
-
1158
- if ordering is not None:
1159
-
1160
- _query_params.append(('ordering', ordering))
1161
-
1162
- if prn__in is not None:
1163
-
1164
- _query_params.append(('prn__in', prn__in))
1165
-
1166
- if pulp_href__in is not None:
1167
-
1168
- _query_params.append(('pulp_href__in', pulp_href__in))
1169
-
1170
- if pulp_id__in is not None:
1171
-
1172
- _query_params.append(('pulp_id__in', pulp_id__in))
1173
-
1174
- if q is not None:
1175
-
1176
- _query_params.append(('q', q))
1177
-
1178
- if fields is not None:
1179
-
1180
- _query_params.append(('fields', fields))
1181
-
1182
- if exclude_fields is not None:
1183
-
1184
- _query_params.append(('exclude_fields', exclude_fields))
1185
-
1186
- # process the header parameters
1187
- if x_task_diagnostics is not None:
1188
- _header_params['X-Task-Diagnostics'] = x_task_diagnostics
1189
- # process the form parameters
1190
- # process the body parameter
1191
-
1192
-
1193
- # set the HTTP header `Accept`
1194
- if 'Accept' not in _header_params:
1195
- _header_params['Accept'] = self.api_client.select_header_accept(
1196
- [
1197
- 'application/json'
1198
- ]
1199
- )
1200
-
1201
-
1202
- # authentication setting
1203
- _auth_settings: List[str] = [
1204
- 'json_header_remote_authentication',
1205
- 'basicAuth',
1206
- 'cookieAuth'
1207
- ]
1208
-
1209
- return self.api_client.param_serialize(
1210
- method='GET',
1211
- resource_path='/api/pulp/{pulp_domain}/api/v3/exporters/core/filesystem/',
1212
- path_params=_path_params,
1213
- query_params=_query_params,
1214
- header_params=_header_params,
1215
- body=_body_params,
1216
- post_params=_form_params,
1217
- files=_files,
1218
- auth_settings=_auth_settings,
1219
- collection_formats=_collection_formats,
1220
- _host=_host,
1221
- _request_auth=_request_auth
1222
- )
1223
-
1224
-
1225
-
1226
-
1227
- @validate_call
1228
- def partial_update(
1229
- self,
1230
- filesystem_exporter_href: StrictStr,
1231
- patched_filesystem_exporter: PatchedFilesystemExporter,
1232
- x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
1233
- _request_timeout: Union[
1234
- None,
1235
- Annotated[StrictFloat, Field(gt=0)],
1236
- Tuple[
1237
- Annotated[StrictFloat, Field(gt=0)],
1238
- Annotated[StrictFloat, Field(gt=0)]
1239
- ]
1240
- ] = None,
1241
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
1242
- _content_type: Optional[StrictStr] = None,
1243
- _headers: Optional[Dict[StrictStr, Any]] = None,
1244
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1245
- ) -> AsyncOperationResponse:
1246
- """Update a filesystem exporter
1247
-
1248
- Trigger an asynchronous partial update task
1249
-
1250
- :param filesystem_exporter_href: (required)
1251
- :type filesystem_exporter_href: str
1252
- :param patched_filesystem_exporter: (required)
1253
- :type patched_filesystem_exporter: PatchedFilesystemExporter
1254
- :param x_task_diagnostics: List of profilers to use on tasks.
1255
- :type x_task_diagnostics: List[str]
1256
- :param _request_timeout: timeout setting for this request. If one
1257
- number provided, it will be total request
1258
- timeout. It can also be a pair (tuple) of
1259
- (connection, read) timeouts.
1260
- :type _request_timeout: int, tuple(int, int), optional
1261
- :param _request_auth: set to override the auth_settings for an a single
1262
- request; this effectively ignores the
1263
- authentication in the spec for a single request.
1264
- :type _request_auth: dict, optional
1265
- :param _content_type: force content-type for the request.
1266
- :type _content_type: str, Optional
1267
- :param _headers: set to override the headers for a single
1268
- request; this effectively ignores the headers
1269
- in the spec for a single request.
1270
- :type _headers: dict, optional
1271
- :param _host_index: set to override the host_index for a single
1272
- request; this effectively ignores the host_index
1273
- in the spec for a single request.
1274
- :type _host_index: int, optional
1275
- :return: Returns the result object.
1276
- """ # noqa: E501
1277
-
1278
- _param = self._partial_update_serialize(
1279
- filesystem_exporter_href=filesystem_exporter_href,
1280
- patched_filesystem_exporter=patched_filesystem_exporter,
1281
- x_task_diagnostics=x_task_diagnostics,
1282
- _request_auth=_request_auth,
1283
- _content_type=_content_type,
1284
- _headers=_headers,
1285
- _host_index=_host_index
1286
- )
1287
-
1288
- _response_types_map: Dict[str, Optional[str]] = {
1289
- '202': "AsyncOperationResponse",
1290
- }
1291
- response_data = self.api_client.call_api(
1292
- *_param,
1293
- _request_timeout=_request_timeout
1294
- )
1295
- response_data.read()
1296
- return self.api_client.response_deserialize(
1297
- response_data=response_data,
1298
- response_types_map=_response_types_map,
1299
- ).data
1300
-
1301
-
1302
- @validate_call
1303
- def partial_update_with_http_info(
1304
- self,
1305
- filesystem_exporter_href: StrictStr,
1306
- patched_filesystem_exporter: PatchedFilesystemExporter,
1307
- x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
1308
- _request_timeout: Union[
1309
- None,
1310
- Annotated[StrictFloat, Field(gt=0)],
1311
- Tuple[
1312
- Annotated[StrictFloat, Field(gt=0)],
1313
- Annotated[StrictFloat, Field(gt=0)]
1314
- ]
1315
- ] = None,
1316
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
1317
- _content_type: Optional[StrictStr] = None,
1318
- _headers: Optional[Dict[StrictStr, Any]] = None,
1319
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1320
- ) -> ApiResponse[AsyncOperationResponse]:
1321
- """Update a filesystem exporter
1322
-
1323
- Trigger an asynchronous partial update task
1324
-
1325
- :param filesystem_exporter_href: (required)
1326
- :type filesystem_exporter_href: str
1327
- :param patched_filesystem_exporter: (required)
1328
- :type patched_filesystem_exporter: PatchedFilesystemExporter
1329
- :param x_task_diagnostics: List of profilers to use on tasks.
1330
- :type x_task_diagnostics: List[str]
1331
- :param _request_timeout: timeout setting for this request. If one
1332
- number provided, it will be total request
1333
- timeout. It can also be a pair (tuple) of
1334
- (connection, read) timeouts.
1335
- :type _request_timeout: int, tuple(int, int), optional
1336
- :param _request_auth: set to override the auth_settings for an a single
1337
- request; this effectively ignores the
1338
- authentication in the spec for a single request.
1339
- :type _request_auth: dict, optional
1340
- :param _content_type: force content-type for the request.
1341
- :type _content_type: str, Optional
1342
- :param _headers: set to override the headers for a single
1343
- request; this effectively ignores the headers
1344
- in the spec for a single request.
1345
- :type _headers: dict, optional
1346
- :param _host_index: set to override the host_index for a single
1347
- request; this effectively ignores the host_index
1348
- in the spec for a single request.
1349
- :type _host_index: int, optional
1350
- :return: Returns the result object.
1351
- """ # noqa: E501
1352
-
1353
- _param = self._partial_update_serialize(
1354
- filesystem_exporter_href=filesystem_exporter_href,
1355
- patched_filesystem_exporter=patched_filesystem_exporter,
1356
- x_task_diagnostics=x_task_diagnostics,
1357
- _request_auth=_request_auth,
1358
- _content_type=_content_type,
1359
- _headers=_headers,
1360
- _host_index=_host_index
1361
- )
1362
-
1363
- _response_types_map: Dict[str, Optional[str]] = {
1364
- '202': "AsyncOperationResponse",
1365
- }
1366
- response_data = self.api_client.call_api(
1367
- *_param,
1368
- _request_timeout=_request_timeout
1369
- )
1370
- response_data.read()
1371
- return self.api_client.response_deserialize(
1372
- response_data=response_data,
1373
- response_types_map=_response_types_map,
1374
- )
1375
-
1376
-
1377
- @validate_call
1378
- def partial_update_without_preload_content(
1379
- self,
1380
- filesystem_exporter_href: StrictStr,
1381
- patched_filesystem_exporter: PatchedFilesystemExporter,
1382
- x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
1383
- _request_timeout: Union[
1384
- None,
1385
- Annotated[StrictFloat, Field(gt=0)],
1386
- Tuple[
1387
- Annotated[StrictFloat, Field(gt=0)],
1388
- Annotated[StrictFloat, Field(gt=0)]
1389
- ]
1390
- ] = None,
1391
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
1392
- _content_type: Optional[StrictStr] = None,
1393
- _headers: Optional[Dict[StrictStr, Any]] = None,
1394
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1395
- ) -> RESTResponseType:
1396
- """Update a filesystem exporter
1397
-
1398
- Trigger an asynchronous partial update task
1399
-
1400
- :param filesystem_exporter_href: (required)
1401
- :type filesystem_exporter_href: str
1402
- :param patched_filesystem_exporter: (required)
1403
- :type patched_filesystem_exporter: PatchedFilesystemExporter
1404
- :param x_task_diagnostics: List of profilers to use on tasks.
1405
- :type x_task_diagnostics: List[str]
1406
- :param _request_timeout: timeout setting for this request. If one
1407
- number provided, it will be total request
1408
- timeout. It can also be a pair (tuple) of
1409
- (connection, read) timeouts.
1410
- :type _request_timeout: int, tuple(int, int), optional
1411
- :param _request_auth: set to override the auth_settings for an a single
1412
- request; this effectively ignores the
1413
- authentication in the spec for a single request.
1414
- :type _request_auth: dict, optional
1415
- :param _content_type: force content-type for the request.
1416
- :type _content_type: str, Optional
1417
- :param _headers: set to override the headers for a single
1418
- request; this effectively ignores the headers
1419
- in the spec for a single request.
1420
- :type _headers: dict, optional
1421
- :param _host_index: set to override the host_index for a single
1422
- request; this effectively ignores the host_index
1423
- in the spec for a single request.
1424
- :type _host_index: int, optional
1425
- :return: Returns the result object.
1426
- """ # noqa: E501
1427
-
1428
- _param = self._partial_update_serialize(
1429
- filesystem_exporter_href=filesystem_exporter_href,
1430
- patched_filesystem_exporter=patched_filesystem_exporter,
1431
- x_task_diagnostics=x_task_diagnostics,
1432
- _request_auth=_request_auth,
1433
- _content_type=_content_type,
1434
- _headers=_headers,
1435
- _host_index=_host_index
1436
- )
1437
-
1438
- _response_types_map: Dict[str, Optional[str]] = {
1439
- '202': "AsyncOperationResponse",
1440
- }
1441
- response_data = self.api_client.call_api(
1442
- *_param,
1443
- _request_timeout=_request_timeout
1444
- )
1445
- return response_data.response
1446
-
1447
-
1448
- def _partial_update_serialize(
1449
- self,
1450
- filesystem_exporter_href,
1451
- patched_filesystem_exporter,
1452
- x_task_diagnostics,
1453
- _request_auth,
1454
- _content_type,
1455
- _headers,
1456
- _host_index,
1457
- ) -> RequestSerialized:
1458
-
1459
- _host = None
1460
-
1461
- _collection_formats: Dict[str, str] = {
1462
- 'X-Task-Diagnostics': 'csv',
1463
- }
1464
-
1465
- _path_params: Dict[str, str] = {}
1466
- _query_params: List[Tuple[str, str]] = []
1467
- _header_params: Dict[str, Optional[str]] = _headers or {}
1468
- _form_params: List[Tuple[str, str]] = []
1469
- _files: Dict[
1470
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1471
- ] = {}
1472
- _body_params: Optional[bytes] = None
1473
-
1474
- # process the path parameters
1475
- if filesystem_exporter_href is not None:
1476
- _path_params['filesystem_exporter_href'] = filesystem_exporter_href
1477
- # process the query parameters
1478
- # process the header parameters
1479
- if x_task_diagnostics is not None:
1480
- _header_params['X-Task-Diagnostics'] = x_task_diagnostics
1481
- # process the form parameters
1482
- # process the body parameter
1483
- if patched_filesystem_exporter is not None:
1484
- _body_params = patched_filesystem_exporter
1485
-
1486
-
1487
- # set the HTTP header `Accept`
1488
- if 'Accept' not in _header_params:
1489
- _header_params['Accept'] = self.api_client.select_header_accept(
1490
- [
1491
- 'application/json'
1492
- ]
1493
- )
1494
-
1495
- # set the HTTP header `Content-Type`
1496
- if _content_type:
1497
- _header_params['Content-Type'] = _content_type
1498
- else:
1499
- _default_content_type = (
1500
- self.api_client.select_header_content_type(
1501
- [
1502
- 'application/json',
1503
- 'application/x-www-form-urlencoded',
1504
- 'multipart/form-data'
1505
- ]
1506
- )
1507
- )
1508
- if _default_content_type is not None:
1509
- _header_params['Content-Type'] = _default_content_type
1510
-
1511
- # authentication setting
1512
- _auth_settings: List[str] = [
1513
- 'json_header_remote_authentication',
1514
- 'basicAuth',
1515
- 'cookieAuth'
1516
- ]
1517
-
1518
- return self.api_client.param_serialize(
1519
- method='PATCH',
1520
- resource_path='{filesystem_exporter_href}',
1521
- path_params=_path_params,
1522
- query_params=_query_params,
1523
- header_params=_header_params,
1524
- body=_body_params,
1525
- post_params=_form_params,
1526
- files=_files,
1527
- auth_settings=_auth_settings,
1528
- collection_formats=_collection_formats,
1529
- _host=_host,
1530
- _request_auth=_request_auth
1531
- )
1532
-
1533
-
1534
-
1535
-
1536
- @validate_call
1537
- def read(
1538
- self,
1539
- filesystem_exporter_href: StrictStr,
1540
- x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
1541
- fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
1542
- exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
1543
- _request_timeout: Union[
1544
- None,
1545
- Annotated[StrictFloat, Field(gt=0)],
1546
- Tuple[
1547
- Annotated[StrictFloat, Field(gt=0)],
1548
- Annotated[StrictFloat, Field(gt=0)]
1549
- ]
1550
- ] = None,
1551
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
1552
- _content_type: Optional[StrictStr] = None,
1553
- _headers: Optional[Dict[StrictStr, Any]] = None,
1554
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1555
- ) -> FilesystemExporterResponse:
1556
- """Inspect a filesystem exporter
1557
-
1558
- Endpoint for managing FilesystemExporters.
1559
-
1560
- :param filesystem_exporter_href: (required)
1561
- :type filesystem_exporter_href: str
1562
- :param x_task_diagnostics: List of profilers to use on tasks.
1563
- :type x_task_diagnostics: List[str]
1564
- :param fields: A list of fields to include in the response.
1565
- :type fields: List[str]
1566
- :param exclude_fields: A list of fields to exclude from the response.
1567
- :type exclude_fields: List[str]
1568
- :param _request_timeout: timeout setting for this request. If one
1569
- number provided, it will be total request
1570
- timeout. It can also be a pair (tuple) of
1571
- (connection, read) timeouts.
1572
- :type _request_timeout: int, tuple(int, int), optional
1573
- :param _request_auth: set to override the auth_settings for an a single
1574
- request; this effectively ignores the
1575
- authentication in the spec for a single request.
1576
- :type _request_auth: dict, optional
1577
- :param _content_type: force content-type for the request.
1578
- :type _content_type: str, Optional
1579
- :param _headers: set to override the headers for a single
1580
- request; this effectively ignores the headers
1581
- in the spec for a single request.
1582
- :type _headers: dict, optional
1583
- :param _host_index: set to override the host_index for a single
1584
- request; this effectively ignores the host_index
1585
- in the spec for a single request.
1586
- :type _host_index: int, optional
1587
- :return: Returns the result object.
1588
- """ # noqa: E501
1589
-
1590
- _param = self._read_serialize(
1591
- filesystem_exporter_href=filesystem_exporter_href,
1592
- x_task_diagnostics=x_task_diagnostics,
1593
- fields=fields,
1594
- exclude_fields=exclude_fields,
1595
- _request_auth=_request_auth,
1596
- _content_type=_content_type,
1597
- _headers=_headers,
1598
- _host_index=_host_index
1599
- )
1600
-
1601
- _response_types_map: Dict[str, Optional[str]] = {
1602
- '200': "FilesystemExporterResponse",
1603
- }
1604
- response_data = self.api_client.call_api(
1605
- *_param,
1606
- _request_timeout=_request_timeout
1607
- )
1608
- response_data.read()
1609
- return self.api_client.response_deserialize(
1610
- response_data=response_data,
1611
- response_types_map=_response_types_map,
1612
- ).data
1613
-
1614
-
1615
- @validate_call
1616
- def read_with_http_info(
1617
- self,
1618
- filesystem_exporter_href: StrictStr,
1619
- x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
1620
- fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
1621
- exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
1622
- _request_timeout: Union[
1623
- None,
1624
- Annotated[StrictFloat, Field(gt=0)],
1625
- Tuple[
1626
- Annotated[StrictFloat, Field(gt=0)],
1627
- Annotated[StrictFloat, Field(gt=0)]
1628
- ]
1629
- ] = None,
1630
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
1631
- _content_type: Optional[StrictStr] = None,
1632
- _headers: Optional[Dict[StrictStr, Any]] = None,
1633
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1634
- ) -> ApiResponse[FilesystemExporterResponse]:
1635
- """Inspect a filesystem exporter
1636
-
1637
- Endpoint for managing FilesystemExporters.
1638
-
1639
- :param filesystem_exporter_href: (required)
1640
- :type filesystem_exporter_href: str
1641
- :param x_task_diagnostics: List of profilers to use on tasks.
1642
- :type x_task_diagnostics: List[str]
1643
- :param fields: A list of fields to include in the response.
1644
- :type fields: List[str]
1645
- :param exclude_fields: A list of fields to exclude from the response.
1646
- :type exclude_fields: List[str]
1647
- :param _request_timeout: timeout setting for this request. If one
1648
- number provided, it will be total request
1649
- timeout. It can also be a pair (tuple) of
1650
- (connection, read) timeouts.
1651
- :type _request_timeout: int, tuple(int, int), optional
1652
- :param _request_auth: set to override the auth_settings for an a single
1653
- request; this effectively ignores the
1654
- authentication in the spec for a single request.
1655
- :type _request_auth: dict, optional
1656
- :param _content_type: force content-type for the request.
1657
- :type _content_type: str, Optional
1658
- :param _headers: set to override the headers for a single
1659
- request; this effectively ignores the headers
1660
- in the spec for a single request.
1661
- :type _headers: dict, optional
1662
- :param _host_index: set to override the host_index for a single
1663
- request; this effectively ignores the host_index
1664
- in the spec for a single request.
1665
- :type _host_index: int, optional
1666
- :return: Returns the result object.
1667
- """ # noqa: E501
1668
-
1669
- _param = self._read_serialize(
1670
- filesystem_exporter_href=filesystem_exporter_href,
1671
- x_task_diagnostics=x_task_diagnostics,
1672
- fields=fields,
1673
- exclude_fields=exclude_fields,
1674
- _request_auth=_request_auth,
1675
- _content_type=_content_type,
1676
- _headers=_headers,
1677
- _host_index=_host_index
1678
- )
1679
-
1680
- _response_types_map: Dict[str, Optional[str]] = {
1681
- '200': "FilesystemExporterResponse",
1682
- }
1683
- response_data = self.api_client.call_api(
1684
- *_param,
1685
- _request_timeout=_request_timeout
1686
- )
1687
- response_data.read()
1688
- return self.api_client.response_deserialize(
1689
- response_data=response_data,
1690
- response_types_map=_response_types_map,
1691
- )
1692
-
1693
-
1694
- @validate_call
1695
- def read_without_preload_content(
1696
- self,
1697
- filesystem_exporter_href: StrictStr,
1698
- x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
1699
- fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
1700
- exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
1701
- _request_timeout: Union[
1702
- None,
1703
- Annotated[StrictFloat, Field(gt=0)],
1704
- Tuple[
1705
- Annotated[StrictFloat, Field(gt=0)],
1706
- Annotated[StrictFloat, Field(gt=0)]
1707
- ]
1708
- ] = None,
1709
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
1710
- _content_type: Optional[StrictStr] = None,
1711
- _headers: Optional[Dict[StrictStr, Any]] = None,
1712
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1713
- ) -> RESTResponseType:
1714
- """Inspect a filesystem exporter
1715
-
1716
- Endpoint for managing FilesystemExporters.
1717
-
1718
- :param filesystem_exporter_href: (required)
1719
- :type filesystem_exporter_href: str
1720
- :param x_task_diagnostics: List of profilers to use on tasks.
1721
- :type x_task_diagnostics: List[str]
1722
- :param fields: A list of fields to include in the response.
1723
- :type fields: List[str]
1724
- :param exclude_fields: A list of fields to exclude from the response.
1725
- :type exclude_fields: List[str]
1726
- :param _request_timeout: timeout setting for this request. If one
1727
- number provided, it will be total request
1728
- timeout. It can also be a pair (tuple) of
1729
- (connection, read) timeouts.
1730
- :type _request_timeout: int, tuple(int, int), optional
1731
- :param _request_auth: set to override the auth_settings for an a single
1732
- request; this effectively ignores the
1733
- authentication in the spec for a single request.
1734
- :type _request_auth: dict, optional
1735
- :param _content_type: force content-type for the request.
1736
- :type _content_type: str, Optional
1737
- :param _headers: set to override the headers for a single
1738
- request; this effectively ignores the headers
1739
- in the spec for a single request.
1740
- :type _headers: dict, optional
1741
- :param _host_index: set to override the host_index for a single
1742
- request; this effectively ignores the host_index
1743
- in the spec for a single request.
1744
- :type _host_index: int, optional
1745
- :return: Returns the result object.
1746
- """ # noqa: E501
1747
-
1748
- _param = self._read_serialize(
1749
- filesystem_exporter_href=filesystem_exporter_href,
1750
- x_task_diagnostics=x_task_diagnostics,
1751
- fields=fields,
1752
- exclude_fields=exclude_fields,
1753
- _request_auth=_request_auth,
1754
- _content_type=_content_type,
1755
- _headers=_headers,
1756
- _host_index=_host_index
1757
- )
1758
-
1759
- _response_types_map: Dict[str, Optional[str]] = {
1760
- '200': "FilesystemExporterResponse",
1761
- }
1762
- response_data = self.api_client.call_api(
1763
- *_param,
1764
- _request_timeout=_request_timeout
1765
- )
1766
- return response_data.response
1767
-
1768
-
1769
- def _read_serialize(
1770
- self,
1771
- filesystem_exporter_href,
1772
- x_task_diagnostics,
1773
- fields,
1774
- exclude_fields,
1775
- _request_auth,
1776
- _content_type,
1777
- _headers,
1778
- _host_index,
1779
- ) -> RequestSerialized:
1780
-
1781
- _host = None
1782
-
1783
- _collection_formats: Dict[str, str] = {
1784
- 'X-Task-Diagnostics': 'csv',
1785
- 'fields': 'multi',
1786
- 'exclude_fields': 'multi',
1787
- }
1788
-
1789
- _path_params: Dict[str, str] = {}
1790
- _query_params: List[Tuple[str, str]] = []
1791
- _header_params: Dict[str, Optional[str]] = _headers or {}
1792
- _form_params: List[Tuple[str, str]] = []
1793
- _files: Dict[
1794
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1795
- ] = {}
1796
- _body_params: Optional[bytes] = None
1797
-
1798
- # process the path parameters
1799
- if filesystem_exporter_href is not None:
1800
- _path_params['filesystem_exporter_href'] = filesystem_exporter_href
1801
- # process the query parameters
1802
- if fields is not None:
1803
-
1804
- _query_params.append(('fields', fields))
1805
-
1806
- if exclude_fields is not None:
1807
-
1808
- _query_params.append(('exclude_fields', exclude_fields))
1809
-
1810
- # process the header parameters
1811
- if x_task_diagnostics is not None:
1812
- _header_params['X-Task-Diagnostics'] = x_task_diagnostics
1813
- # process the form parameters
1814
- # process the body parameter
1815
-
1816
-
1817
- # set the HTTP header `Accept`
1818
- if 'Accept' not in _header_params:
1819
- _header_params['Accept'] = self.api_client.select_header_accept(
1820
- [
1821
- 'application/json'
1822
- ]
1823
- )
1824
-
1825
-
1826
- # authentication setting
1827
- _auth_settings: List[str] = [
1828
- 'json_header_remote_authentication',
1829
- 'basicAuth',
1830
- 'cookieAuth'
1831
- ]
1832
-
1833
- return self.api_client.param_serialize(
1834
- method='GET',
1835
- resource_path='{filesystem_exporter_href}',
1836
- path_params=_path_params,
1837
- query_params=_query_params,
1838
- header_params=_header_params,
1839
- body=_body_params,
1840
- post_params=_form_params,
1841
- files=_files,
1842
- auth_settings=_auth_settings,
1843
- collection_formats=_collection_formats,
1844
- _host=_host,
1845
- _request_auth=_request_auth
1846
- )
1847
-
1848
-
1849
-
1850
-
1851
- @validate_call
1852
- def update(
1853
- self,
1854
- filesystem_exporter_href: StrictStr,
1855
- filesystem_exporter: FilesystemExporter,
1856
- x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
1857
- _request_timeout: Union[
1858
- None,
1859
- Annotated[StrictFloat, Field(gt=0)],
1860
- Tuple[
1861
- Annotated[StrictFloat, Field(gt=0)],
1862
- Annotated[StrictFloat, Field(gt=0)]
1863
- ]
1864
- ] = None,
1865
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
1866
- _content_type: Optional[StrictStr] = None,
1867
- _headers: Optional[Dict[StrictStr, Any]] = None,
1868
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1869
- ) -> AsyncOperationResponse:
1870
- """Update a filesystem exporter
1871
-
1872
- Trigger an asynchronous update task
1873
-
1874
- :param filesystem_exporter_href: (required)
1875
- :type filesystem_exporter_href: str
1876
- :param filesystem_exporter: (required)
1877
- :type filesystem_exporter: FilesystemExporter
1878
- :param x_task_diagnostics: List of profilers to use on tasks.
1879
- :type x_task_diagnostics: List[str]
1880
- :param _request_timeout: timeout setting for this request. If one
1881
- number provided, it will be total request
1882
- timeout. It can also be a pair (tuple) of
1883
- (connection, read) timeouts.
1884
- :type _request_timeout: int, tuple(int, int), optional
1885
- :param _request_auth: set to override the auth_settings for an a single
1886
- request; this effectively ignores the
1887
- authentication in the spec for a single request.
1888
- :type _request_auth: dict, optional
1889
- :param _content_type: force content-type for the request.
1890
- :type _content_type: str, Optional
1891
- :param _headers: set to override the headers for a single
1892
- request; this effectively ignores the headers
1893
- in the spec for a single request.
1894
- :type _headers: dict, optional
1895
- :param _host_index: set to override the host_index for a single
1896
- request; this effectively ignores the host_index
1897
- in the spec for a single request.
1898
- :type _host_index: int, optional
1899
- :return: Returns the result object.
1900
- """ # noqa: E501
1901
-
1902
- _param = self._update_serialize(
1903
- filesystem_exporter_href=filesystem_exporter_href,
1904
- filesystem_exporter=filesystem_exporter,
1905
- x_task_diagnostics=x_task_diagnostics,
1906
- _request_auth=_request_auth,
1907
- _content_type=_content_type,
1908
- _headers=_headers,
1909
- _host_index=_host_index
1910
- )
1911
-
1912
- _response_types_map: Dict[str, Optional[str]] = {
1913
- '202': "AsyncOperationResponse",
1914
- }
1915
- response_data = self.api_client.call_api(
1916
- *_param,
1917
- _request_timeout=_request_timeout
1918
- )
1919
- response_data.read()
1920
- return self.api_client.response_deserialize(
1921
- response_data=response_data,
1922
- response_types_map=_response_types_map,
1923
- ).data
1924
-
1925
-
1926
- @validate_call
1927
- def update_with_http_info(
1928
- self,
1929
- filesystem_exporter_href: StrictStr,
1930
- filesystem_exporter: FilesystemExporter,
1931
- x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
1932
- _request_timeout: Union[
1933
- None,
1934
- Annotated[StrictFloat, Field(gt=0)],
1935
- Tuple[
1936
- Annotated[StrictFloat, Field(gt=0)],
1937
- Annotated[StrictFloat, Field(gt=0)]
1938
- ]
1939
- ] = None,
1940
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
1941
- _content_type: Optional[StrictStr] = None,
1942
- _headers: Optional[Dict[StrictStr, Any]] = None,
1943
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1944
- ) -> ApiResponse[AsyncOperationResponse]:
1945
- """Update a filesystem exporter
1946
-
1947
- Trigger an asynchronous update task
1948
-
1949
- :param filesystem_exporter_href: (required)
1950
- :type filesystem_exporter_href: str
1951
- :param filesystem_exporter: (required)
1952
- :type filesystem_exporter: FilesystemExporter
1953
- :param x_task_diagnostics: List of profilers to use on tasks.
1954
- :type x_task_diagnostics: List[str]
1955
- :param _request_timeout: timeout setting for this request. If one
1956
- number provided, it will be total request
1957
- timeout. It can also be a pair (tuple) of
1958
- (connection, read) timeouts.
1959
- :type _request_timeout: int, tuple(int, int), optional
1960
- :param _request_auth: set to override the auth_settings for an a single
1961
- request; this effectively ignores the
1962
- authentication in the spec for a single request.
1963
- :type _request_auth: dict, optional
1964
- :param _content_type: force content-type for the request.
1965
- :type _content_type: str, Optional
1966
- :param _headers: set to override the headers for a single
1967
- request; this effectively ignores the headers
1968
- in the spec for a single request.
1969
- :type _headers: dict, optional
1970
- :param _host_index: set to override the host_index for a single
1971
- request; this effectively ignores the host_index
1972
- in the spec for a single request.
1973
- :type _host_index: int, optional
1974
- :return: Returns the result object.
1975
- """ # noqa: E501
1976
-
1977
- _param = self._update_serialize(
1978
- filesystem_exporter_href=filesystem_exporter_href,
1979
- filesystem_exporter=filesystem_exporter,
1980
- x_task_diagnostics=x_task_diagnostics,
1981
- _request_auth=_request_auth,
1982
- _content_type=_content_type,
1983
- _headers=_headers,
1984
- _host_index=_host_index
1985
- )
1986
-
1987
- _response_types_map: Dict[str, Optional[str]] = {
1988
- '202': "AsyncOperationResponse",
1989
- }
1990
- response_data = self.api_client.call_api(
1991
- *_param,
1992
- _request_timeout=_request_timeout
1993
- )
1994
- response_data.read()
1995
- return self.api_client.response_deserialize(
1996
- response_data=response_data,
1997
- response_types_map=_response_types_map,
1998
- )
1999
-
2000
-
2001
- @validate_call
2002
- def update_without_preload_content(
2003
- self,
2004
- filesystem_exporter_href: StrictStr,
2005
- filesystem_exporter: FilesystemExporter,
2006
- x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
2007
- _request_timeout: Union[
2008
- None,
2009
- Annotated[StrictFloat, Field(gt=0)],
2010
- Tuple[
2011
- Annotated[StrictFloat, Field(gt=0)],
2012
- Annotated[StrictFloat, Field(gt=0)]
2013
- ]
2014
- ] = None,
2015
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
2016
- _content_type: Optional[StrictStr] = None,
2017
- _headers: Optional[Dict[StrictStr, Any]] = None,
2018
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2019
- ) -> RESTResponseType:
2020
- """Update a filesystem exporter
2021
-
2022
- Trigger an asynchronous update task
2023
-
2024
- :param filesystem_exporter_href: (required)
2025
- :type filesystem_exporter_href: str
2026
- :param filesystem_exporter: (required)
2027
- :type filesystem_exporter: FilesystemExporter
2028
- :param x_task_diagnostics: List of profilers to use on tasks.
2029
- :type x_task_diagnostics: List[str]
2030
- :param _request_timeout: timeout setting for this request. If one
2031
- number provided, it will be total request
2032
- timeout. It can also be a pair (tuple) of
2033
- (connection, read) timeouts.
2034
- :type _request_timeout: int, tuple(int, int), optional
2035
- :param _request_auth: set to override the auth_settings for an a single
2036
- request; this effectively ignores the
2037
- authentication in the spec for a single request.
2038
- :type _request_auth: dict, optional
2039
- :param _content_type: force content-type for the request.
2040
- :type _content_type: str, Optional
2041
- :param _headers: set to override the headers for a single
2042
- request; this effectively ignores the headers
2043
- in the spec for a single request.
2044
- :type _headers: dict, optional
2045
- :param _host_index: set to override the host_index for a single
2046
- request; this effectively ignores the host_index
2047
- in the spec for a single request.
2048
- :type _host_index: int, optional
2049
- :return: Returns the result object.
2050
- """ # noqa: E501
2051
-
2052
- _param = self._update_serialize(
2053
- filesystem_exporter_href=filesystem_exporter_href,
2054
- filesystem_exporter=filesystem_exporter,
2055
- x_task_diagnostics=x_task_diagnostics,
2056
- _request_auth=_request_auth,
2057
- _content_type=_content_type,
2058
- _headers=_headers,
2059
- _host_index=_host_index
2060
- )
2061
-
2062
- _response_types_map: Dict[str, Optional[str]] = {
2063
- '202': "AsyncOperationResponse",
2064
- }
2065
- response_data = self.api_client.call_api(
2066
- *_param,
2067
- _request_timeout=_request_timeout
2068
- )
2069
- return response_data.response
2070
-
2071
-
2072
- def _update_serialize(
2073
- self,
2074
- filesystem_exporter_href,
2075
- filesystem_exporter,
2076
- x_task_diagnostics,
2077
- _request_auth,
2078
- _content_type,
2079
- _headers,
2080
- _host_index,
2081
- ) -> RequestSerialized:
2082
-
2083
- _host = None
2084
-
2085
- _collection_formats: Dict[str, str] = {
2086
- 'X-Task-Diagnostics': 'csv',
2087
- }
2088
-
2089
- _path_params: Dict[str, str] = {}
2090
- _query_params: List[Tuple[str, str]] = []
2091
- _header_params: Dict[str, Optional[str]] = _headers or {}
2092
- _form_params: List[Tuple[str, str]] = []
2093
- _files: Dict[
2094
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2095
- ] = {}
2096
- _body_params: Optional[bytes] = None
2097
-
2098
- # process the path parameters
2099
- if filesystem_exporter_href is not None:
2100
- _path_params['filesystem_exporter_href'] = filesystem_exporter_href
2101
- # process the query parameters
2102
- # process the header parameters
2103
- if x_task_diagnostics is not None:
2104
- _header_params['X-Task-Diagnostics'] = x_task_diagnostics
2105
- # process the form parameters
2106
- # process the body parameter
2107
- if filesystem_exporter is not None:
2108
- _body_params = filesystem_exporter
2109
-
2110
-
2111
- # set the HTTP header `Accept`
2112
- if 'Accept' not in _header_params:
2113
- _header_params['Accept'] = self.api_client.select_header_accept(
2114
- [
2115
- 'application/json'
2116
- ]
2117
- )
2118
-
2119
- # set the HTTP header `Content-Type`
2120
- if _content_type:
2121
- _header_params['Content-Type'] = _content_type
2122
- else:
2123
- _default_content_type = (
2124
- self.api_client.select_header_content_type(
2125
- [
2126
- 'application/json',
2127
- 'application/x-www-form-urlencoded',
2128
- 'multipart/form-data'
2129
- ]
2130
- )
2131
- )
2132
- if _default_content_type is not None:
2133
- _header_params['Content-Type'] = _default_content_type
2134
-
2135
- # authentication setting
2136
- _auth_settings: List[str] = [
2137
- 'json_header_remote_authentication',
2138
- 'basicAuth',
2139
- 'cookieAuth'
2140
- ]
2141
-
2142
- return self.api_client.param_serialize(
2143
- method='PUT',
2144
- resource_path='{filesystem_exporter_href}',
2145
- path_params=_path_params,
2146
- query_params=_query_params,
2147
- header_params=_header_params,
2148
- body=_body_params,
2149
- post_params=_form_params,
2150
- files=_files,
2151
- auth_settings=_auth_settings,
2152
- collection_formats=_collection_formats,
2153
- _host=_host,
2154
- _request_auth=_request_auth
2155
- )
2156
-
2157
-