crc-pulp-service-client 20250819.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-pulp-service-client might be problematic. Click here for more details.

Files changed (82) hide show
  1. crc-pulp_service-client/__init__.py +2 -0
  2. crc-pulp_service-client/api/__init__.py +11 -0
  3. crc-pulp_service-client/api/api_create_domain_api.py +335 -0
  4. crc-pulp_service-client/api/api_debug_auth_header_api.py +329 -0
  5. crc-pulp_service-client/api/api_test_tasks_api.py +326 -0
  6. crc-pulp_service-client/api/content_rpmpackages_api.py +1899 -0
  7. crc-pulp_service-client/api/contentguards_feature_api.py +3401 -0
  8. crc-pulp_service-client/api/tasks_api.py +1504 -0
  9. crc-pulp_service-client/api/vuln_report_api.py +1301 -0
  10. crc-pulp_service-client/api_client.py +798 -0
  11. crc-pulp_service-client/api_response.py +21 -0
  12. crc-pulp_service-client/configuration.py +628 -0
  13. crc-pulp_service-client/exceptions.py +200 -0
  14. crc-pulp_service-client/models/__init__.py +40 -0
  15. crc-pulp_service-client/models/async_operation_response.py +88 -0
  16. crc-pulp_service-client/models/domain.py +114 -0
  17. crc-pulp_service-client/models/domain_response.py +131 -0
  18. crc-pulp_service-client/models/my_permissions_response.py +88 -0
  19. crc-pulp_service-client/models/nested_role.py +93 -0
  20. crc-pulp_service-client/models/nested_role_response.py +92 -0
  21. crc-pulp_service-client/models/object_roles_response.py +96 -0
  22. crc-pulp_service-client/models/paginated_task_response_list.py +112 -0
  23. crc-pulp_service-client/models/paginatedrpm_package_response_list.py +112 -0
  24. crc-pulp_service-client/models/paginatedservice_feature_content_guard_response_list.py +112 -0
  25. crc-pulp_service-client/models/paginatedservice_vulnerability_report_response_list.py +112 -0
  26. crc-pulp_service-client/models/patchedservice_feature_content_guard.py +107 -0
  27. crc-pulp_service-client/models/progress_report_response.py +115 -0
  28. crc-pulp_service-client/models/rpm_package_response.py +325 -0
  29. crc-pulp_service-client/models/service_feature_content_guard.py +107 -0
  30. crc-pulp_service-client/models/service_feature_content_guard_response.py +123 -0
  31. crc-pulp_service-client/models/service_vulnerability_report_response.py +110 -0
  32. crc-pulp_service-client/models/set_label.py +103 -0
  33. crc-pulp_service-client/models/set_label_response.py +103 -0
  34. crc-pulp_service-client/models/storage_class_enum.py +40 -0
  35. crc-pulp_service-client/models/task_response.py +167 -0
  36. crc-pulp_service-client/models/unset_label.py +96 -0
  37. crc-pulp_service-client/models/unset_label_response.py +100 -0
  38. crc-pulp_service-client/py.typed +0 -0
  39. crc-pulp_service-client/rest.py +258 -0
  40. crc_pulp_service_client-20250819.1.dist-info/METADATA +25 -0
  41. crc_pulp_service_client-20250819.1.dist-info/RECORD +82 -0
  42. crc_pulp_service_client-20250819.1.dist-info/WHEEL +5 -0
  43. crc_pulp_service_client-20250819.1.dist-info/top_level.txt +2 -0
  44. services-pulp_service-client/__init__.py +2 -0
  45. services-pulp_service-client/api/__init__.py +11 -0
  46. services-pulp_service-client/api/api_create_domain_api.py +335 -0
  47. services-pulp_service-client/api/api_debug_auth_header_api.py +329 -0
  48. services-pulp_service-client/api/api_test_tasks_api.py +326 -0
  49. services-pulp_service-client/api/content_rpmpackages_api.py +1899 -0
  50. services-pulp_service-client/api/contentguards_feature_api.py +3401 -0
  51. services-pulp_service-client/api/tasks_api.py +1504 -0
  52. services-pulp_service-client/api/vuln_report_api.py +1301 -0
  53. services-pulp_service-client/api_client.py +798 -0
  54. services-pulp_service-client/api_response.py +21 -0
  55. services-pulp_service-client/configuration.py +628 -0
  56. services-pulp_service-client/exceptions.py +200 -0
  57. services-pulp_service-client/models/__init__.py +40 -0
  58. services-pulp_service-client/models/async_operation_response.py +88 -0
  59. services-pulp_service-client/models/domain.py +114 -0
  60. services-pulp_service-client/models/domain_response.py +131 -0
  61. services-pulp_service-client/models/my_permissions_response.py +88 -0
  62. services-pulp_service-client/models/nested_role.py +93 -0
  63. services-pulp_service-client/models/nested_role_response.py +92 -0
  64. services-pulp_service-client/models/object_roles_response.py +96 -0
  65. services-pulp_service-client/models/paginated_task_response_list.py +112 -0
  66. services-pulp_service-client/models/paginatedrpm_package_response_list.py +112 -0
  67. services-pulp_service-client/models/paginatedservice_feature_content_guard_response_list.py +112 -0
  68. services-pulp_service-client/models/paginatedservice_vulnerability_report_response_list.py +112 -0
  69. services-pulp_service-client/models/patchedservice_feature_content_guard.py +107 -0
  70. services-pulp_service-client/models/progress_report_response.py +115 -0
  71. services-pulp_service-client/models/rpm_package_response.py +325 -0
  72. services-pulp_service-client/models/service_feature_content_guard.py +107 -0
  73. services-pulp_service-client/models/service_feature_content_guard_response.py +123 -0
  74. services-pulp_service-client/models/service_vulnerability_report_response.py +110 -0
  75. services-pulp_service-client/models/set_label.py +103 -0
  76. services-pulp_service-client/models/set_label_response.py +103 -0
  77. services-pulp_service-client/models/storage_class_enum.py +40 -0
  78. services-pulp_service-client/models/task_response.py +167 -0
  79. services-pulp_service-client/models/unset_label.py +96 -0
  80. services-pulp_service-client/models/unset_label_response.py +100 -0
  81. services-pulp_service-client/py.typed +0 -0
  82. services-pulp_service-client/rest.py +258 -0
@@ -0,0 +1,2 @@
1
+ from pkgutil import extend_path
2
+ __path__ = extend_path(__path__, __name__)
@@ -0,0 +1,11 @@
1
+ # flake8: noqa
2
+
3
+ # import apis into api package
4
+ from crc-pulp_service-client.api.api_create_domain_api import ApiCreateDomainApi
5
+ from crc-pulp_service-client.api.api_debug_auth_header_api import ApiDebugAuthHeaderApi
6
+ from crc-pulp_service-client.api.api_test_tasks_api import ApiTestTasksApi
7
+ from crc-pulp_service-client.api.content_rpmpackages_api import ContentRpmpackagesApi
8
+ from crc-pulp_service-client.api.contentguards_feature_api import ContentguardsFeatureApi
9
+ from crc-pulp_service-client.api.tasks_api import TasksApi
10
+ from crc-pulp_service-client.api.vuln_report_api import VulnReportApi
11
+
@@ -0,0 +1,335 @@
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, StrictStr
21
+ from typing import List, Optional
22
+ from typing_extensions import Annotated
23
+ from crc-pulp_service-client.models.domain import Domain
24
+ from crc-pulp_service-client.models.domain_response import DomainResponse
25
+
26
+ from crc-pulp_service-client.api_client import ApiClient, RequestSerialized
27
+ from crc-pulp_service-client.api_response import ApiResponse
28
+ from crc-pulp_service-client.rest import RESTResponseType
29
+
30
+
31
+ class ApiCreateDomainApi:
32
+ """NOTE: This class is auto generated by OpenAPI Generator
33
+ Ref: https://openapi-generator.tech
34
+
35
+ Do not edit the class manually.
36
+ """
37
+
38
+ def __init__(self, api_client=None) -> None:
39
+ if api_client is None:
40
+ api_client = ApiClient.get_default()
41
+ self.api_client = api_client
42
+
43
+
44
+ @validate_call
45
+ def post(
46
+ self,
47
+ domain: Domain,
48
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
49
+ _request_timeout: Union[
50
+ None,
51
+ Annotated[StrictFloat, Field(gt=0)],
52
+ Tuple[
53
+ Annotated[StrictFloat, Field(gt=0)],
54
+ Annotated[StrictFloat, Field(gt=0)]
55
+ ]
56
+ ] = None,
57
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
58
+ _content_type: Optional[StrictStr] = None,
59
+ _headers: Optional[Dict[StrictStr, Any]] = None,
60
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
61
+ ) -> DomainResponse:
62
+ """Create domain
63
+
64
+ Create a new domain for from S3 template domain, self-service path
65
+
66
+ :param domain: (required)
67
+ :type domain: Domain
68
+ :param x_task_diagnostics: List of profilers to use on tasks.
69
+ :type x_task_diagnostics: List[str]
70
+ :param _request_timeout: timeout setting for this request. If one
71
+ number provided, it will be total request
72
+ timeout. It can also be a pair (tuple) of
73
+ (connection, read) timeouts.
74
+ :type _request_timeout: int, tuple(int, int), optional
75
+ :param _request_auth: set to override the auth_settings for an a single
76
+ request; this effectively ignores the
77
+ authentication in the spec for a single request.
78
+ :type _request_auth: dict, optional
79
+ :param _content_type: force content-type for the request.
80
+ :type _content_type: str, Optional
81
+ :param _headers: set to override the headers for a single
82
+ request; this effectively ignores the headers
83
+ in the spec for a single request.
84
+ :type _headers: dict, optional
85
+ :param _host_index: set to override the host_index for a single
86
+ request; this effectively ignores the host_index
87
+ in the spec for a single request.
88
+ :type _host_index: int, optional
89
+ :return: Returns the result object.
90
+ """ # noqa: E501
91
+
92
+ _param = self._post_serialize(
93
+ domain=domain,
94
+ x_task_diagnostics=x_task_diagnostics,
95
+ _request_auth=_request_auth,
96
+ _content_type=_content_type,
97
+ _headers=_headers,
98
+ _host_index=_host_index
99
+ )
100
+
101
+ _response_types_map: Dict[str, Optional[str]] = {
102
+ '201': "DomainResponse",
103
+ }
104
+ response_data = self.api_client.call_api(
105
+ *_param,
106
+ _request_timeout=_request_timeout
107
+ )
108
+ response_data.read()
109
+ return self.api_client.response_deserialize(
110
+ response_data=response_data,
111
+ response_types_map=_response_types_map,
112
+ ).data
113
+
114
+
115
+ @validate_call
116
+ def post_with_http_info(
117
+ self,
118
+ domain: Domain,
119
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
120
+ _request_timeout: Union[
121
+ None,
122
+ Annotated[StrictFloat, Field(gt=0)],
123
+ Tuple[
124
+ Annotated[StrictFloat, Field(gt=0)],
125
+ Annotated[StrictFloat, Field(gt=0)]
126
+ ]
127
+ ] = None,
128
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
129
+ _content_type: Optional[StrictStr] = None,
130
+ _headers: Optional[Dict[StrictStr, Any]] = None,
131
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
132
+ ) -> ApiResponse[DomainResponse]:
133
+ """Create domain
134
+
135
+ Create a new domain for from S3 template domain, self-service path
136
+
137
+ :param domain: (required)
138
+ :type domain: Domain
139
+ :param x_task_diagnostics: List of profilers to use on tasks.
140
+ :type x_task_diagnostics: List[str]
141
+ :param _request_timeout: timeout setting for this request. If one
142
+ number provided, it will be total request
143
+ timeout. It can also be a pair (tuple) of
144
+ (connection, read) timeouts.
145
+ :type _request_timeout: int, tuple(int, int), optional
146
+ :param _request_auth: set to override the auth_settings for an a single
147
+ request; this effectively ignores the
148
+ authentication in the spec for a single request.
149
+ :type _request_auth: dict, optional
150
+ :param _content_type: force content-type for the request.
151
+ :type _content_type: str, Optional
152
+ :param _headers: set to override the headers for a single
153
+ request; this effectively ignores the headers
154
+ in the spec for a single request.
155
+ :type _headers: dict, optional
156
+ :param _host_index: set to override the host_index for a single
157
+ request; this effectively ignores the host_index
158
+ in the spec for a single request.
159
+ :type _host_index: int, optional
160
+ :return: Returns the result object.
161
+ """ # noqa: E501
162
+
163
+ _param = self._post_serialize(
164
+ domain=domain,
165
+ x_task_diagnostics=x_task_diagnostics,
166
+ _request_auth=_request_auth,
167
+ _content_type=_content_type,
168
+ _headers=_headers,
169
+ _host_index=_host_index
170
+ )
171
+
172
+ _response_types_map: Dict[str, Optional[str]] = {
173
+ '201': "DomainResponse",
174
+ }
175
+ response_data = self.api_client.call_api(
176
+ *_param,
177
+ _request_timeout=_request_timeout
178
+ )
179
+ response_data.read()
180
+ return self.api_client.response_deserialize(
181
+ response_data=response_data,
182
+ response_types_map=_response_types_map,
183
+ )
184
+
185
+
186
+ @validate_call
187
+ def post_without_preload_content(
188
+ self,
189
+ domain: Domain,
190
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
191
+ _request_timeout: Union[
192
+ None,
193
+ Annotated[StrictFloat, Field(gt=0)],
194
+ Tuple[
195
+ Annotated[StrictFloat, Field(gt=0)],
196
+ Annotated[StrictFloat, Field(gt=0)]
197
+ ]
198
+ ] = None,
199
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
200
+ _content_type: Optional[StrictStr] = None,
201
+ _headers: Optional[Dict[StrictStr, Any]] = None,
202
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
203
+ ) -> RESTResponseType:
204
+ """Create domain
205
+
206
+ Create a new domain for from S3 template domain, self-service path
207
+
208
+ :param domain: (required)
209
+ :type domain: Domain
210
+ :param x_task_diagnostics: List of profilers to use on tasks.
211
+ :type x_task_diagnostics: List[str]
212
+ :param _request_timeout: timeout setting for this request. If one
213
+ number provided, it will be total request
214
+ timeout. It can also be a pair (tuple) of
215
+ (connection, read) timeouts.
216
+ :type _request_timeout: int, tuple(int, int), optional
217
+ :param _request_auth: set to override the auth_settings for an a single
218
+ request; this effectively ignores the
219
+ authentication in the spec for a single request.
220
+ :type _request_auth: dict, optional
221
+ :param _content_type: force content-type for the request.
222
+ :type _content_type: str, Optional
223
+ :param _headers: set to override the headers for a single
224
+ request; this effectively ignores the headers
225
+ in the spec for a single request.
226
+ :type _headers: dict, optional
227
+ :param _host_index: set to override the host_index for a single
228
+ request; this effectively ignores the host_index
229
+ in the spec for a single request.
230
+ :type _host_index: int, optional
231
+ :return: Returns the result object.
232
+ """ # noqa: E501
233
+
234
+ _param = self._post_serialize(
235
+ domain=domain,
236
+ x_task_diagnostics=x_task_diagnostics,
237
+ _request_auth=_request_auth,
238
+ _content_type=_content_type,
239
+ _headers=_headers,
240
+ _host_index=_host_index
241
+ )
242
+
243
+ _response_types_map: Dict[str, Optional[str]] = {
244
+ '201': "DomainResponse",
245
+ }
246
+ response_data = self.api_client.call_api(
247
+ *_param,
248
+ _request_timeout=_request_timeout
249
+ )
250
+ return response_data.response
251
+
252
+
253
+ def _post_serialize(
254
+ self,
255
+ domain,
256
+ x_task_diagnostics,
257
+ _request_auth,
258
+ _content_type,
259
+ _headers,
260
+ _host_index,
261
+ ) -> RequestSerialized:
262
+
263
+ _host = None
264
+
265
+ _collection_formats: Dict[str, str] = {
266
+ 'X-Task-Diagnostics': 'csv',
267
+ }
268
+
269
+ _path_params: Dict[str, str] = {}
270
+ _query_params: List[Tuple[str, str]] = []
271
+ _header_params: Dict[str, Optional[str]] = _headers or {}
272
+ _form_params: List[Tuple[str, str]] = []
273
+ _files: Dict[
274
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
275
+ ] = {}
276
+ _body_params: Optional[bytes] = None
277
+
278
+ # process the path parameters
279
+ # process the query parameters
280
+ # process the header parameters
281
+ if x_task_diagnostics is not None:
282
+ _header_params['X-Task-Diagnostics'] = x_task_diagnostics
283
+ # process the form parameters
284
+ # process the body parameter
285
+ if domain is not None:
286
+ _body_params = domain
287
+
288
+
289
+ # set the HTTP header `Accept`
290
+ if 'Accept' not in _header_params:
291
+ _header_params['Accept'] = self.api_client.select_header_accept(
292
+ [
293
+ 'application/json'
294
+ ]
295
+ )
296
+
297
+ # set the HTTP header `Content-Type`
298
+ if _content_type:
299
+ _header_params['Content-Type'] = _content_type
300
+ else:
301
+ _default_content_type = (
302
+ self.api_client.select_header_content_type(
303
+ [
304
+ 'application/json',
305
+ 'application/x-www-form-urlencoded',
306
+ 'multipart/form-data'
307
+ ]
308
+ )
309
+ )
310
+ if _default_content_type is not None:
311
+ _header_params['Content-Type'] = _default_content_type
312
+
313
+ # authentication setting
314
+ _auth_settings: List[str] = [
315
+ 'json_header_remote_authentication',
316
+ 'basicAuth',
317
+ 'cookieAuth'
318
+ ]
319
+
320
+ return self.api_client.param_serialize(
321
+ method='POST',
322
+ resource_path='/api/pulp/create-domain/',
323
+ path_params=_path_params,
324
+ query_params=_query_params,
325
+ header_params=_header_params,
326
+ body=_body_params,
327
+ post_params=_form_params,
328
+ files=_files,
329
+ auth_settings=_auth_settings,
330
+ collection_formats=_collection_formats,
331
+ _host=_host,
332
+ _request_auth=_request_auth
333
+ )
334
+
335
+
@@ -0,0 +1,329 @@
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, StrictStr
21
+ from typing import List, Optional
22
+ from typing_extensions import Annotated
23
+
24
+ from crc-pulp_service-client.api_client import ApiClient, RequestSerialized
25
+ from crc-pulp_service-client.api_response import ApiResponse
26
+ from crc-pulp_service-client.rest import RESTResponseType
27
+
28
+
29
+ class ApiDebugAuthHeaderApi:
30
+ """NOTE: This class is auto generated by OpenAPI Generator
31
+ Ref: https://openapi-generator.tech
32
+
33
+ Do not edit the class manually.
34
+ """
35
+
36
+ def __init__(self, api_client=None) -> None:
37
+ if api_client is None:
38
+ api_client = ApiClient.get_default()
39
+ self.api_client = api_client
40
+
41
+
42
+ @validate_call
43
+ def get(
44
+ self,
45
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
46
+ fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
47
+ exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
48
+ _request_timeout: Union[
49
+ None,
50
+ Annotated[StrictFloat, Field(gt=0)],
51
+ Tuple[
52
+ Annotated[StrictFloat, Field(gt=0)],
53
+ Annotated[StrictFloat, Field(gt=0)]
54
+ ]
55
+ ] = None,
56
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
57
+ _content_type: Optional[StrictStr] = None,
58
+ _headers: Optional[Dict[StrictStr, Any]] = None,
59
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
60
+ ) -> None:
61
+ """get
62
+
63
+ Returns the content of the authentication headers.
64
+
65
+ :param x_task_diagnostics: List of profilers to use on tasks.
66
+ :type x_task_diagnostics: List[str]
67
+ :param fields: A list of fields to include in the response.
68
+ :type fields: List[str]
69
+ :param exclude_fields: A list of fields to exclude from the response.
70
+ :type exclude_fields: List[str]
71
+ :param _request_timeout: timeout setting for this request. If one
72
+ number provided, it will be total request
73
+ timeout. It can also be a pair (tuple) of
74
+ (connection, read) timeouts.
75
+ :type _request_timeout: int, tuple(int, int), optional
76
+ :param _request_auth: set to override the auth_settings for an a single
77
+ request; this effectively ignores the
78
+ authentication in the spec for a single request.
79
+ :type _request_auth: dict, optional
80
+ :param _content_type: force content-type for the request.
81
+ :type _content_type: str, Optional
82
+ :param _headers: set to override the headers for a single
83
+ request; this effectively ignores the headers
84
+ in the spec for a single request.
85
+ :type _headers: dict, optional
86
+ :param _host_index: set to override the host_index for a single
87
+ request; this effectively ignores the host_index
88
+ in the spec for a single request.
89
+ :type _host_index: int, optional
90
+ :return: Returns the result object.
91
+ """ # noqa: E501
92
+
93
+ _param = self._get_serialize(
94
+ x_task_diagnostics=x_task_diagnostics,
95
+ fields=fields,
96
+ exclude_fields=exclude_fields,
97
+ _request_auth=_request_auth,
98
+ _content_type=_content_type,
99
+ _headers=_headers,
100
+ _host_index=_host_index
101
+ )
102
+
103
+ _response_types_map: Dict[str, Optional[str]] = {
104
+ '200': None,
105
+ }
106
+ response_data = self.api_client.call_api(
107
+ *_param,
108
+ _request_timeout=_request_timeout
109
+ )
110
+ response_data.read()
111
+ return self.api_client.response_deserialize(
112
+ response_data=response_data,
113
+ response_types_map=_response_types_map,
114
+ ).data
115
+
116
+
117
+ @validate_call
118
+ def get_with_http_info(
119
+ self,
120
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
121
+ fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
122
+ exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
123
+ _request_timeout: Union[
124
+ None,
125
+ Annotated[StrictFloat, Field(gt=0)],
126
+ Tuple[
127
+ Annotated[StrictFloat, Field(gt=0)],
128
+ Annotated[StrictFloat, Field(gt=0)]
129
+ ]
130
+ ] = None,
131
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
132
+ _content_type: Optional[StrictStr] = None,
133
+ _headers: Optional[Dict[StrictStr, Any]] = None,
134
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
135
+ ) -> ApiResponse[None]:
136
+ """get
137
+
138
+ Returns the content of the authentication headers.
139
+
140
+ :param x_task_diagnostics: List of profilers to use on tasks.
141
+ :type x_task_diagnostics: List[str]
142
+ :param fields: A list of fields to include in the response.
143
+ :type fields: List[str]
144
+ :param exclude_fields: A list of fields to exclude from the response.
145
+ :type exclude_fields: List[str]
146
+ :param _request_timeout: timeout setting for this request. If one
147
+ number provided, it will be total request
148
+ timeout. It can also be a pair (tuple) of
149
+ (connection, read) timeouts.
150
+ :type _request_timeout: int, tuple(int, int), optional
151
+ :param _request_auth: set to override the auth_settings for an a single
152
+ request; this effectively ignores the
153
+ authentication in the spec for a single request.
154
+ :type _request_auth: dict, optional
155
+ :param _content_type: force content-type for the request.
156
+ :type _content_type: str, Optional
157
+ :param _headers: set to override the headers for a single
158
+ request; this effectively ignores the headers
159
+ in the spec for a single request.
160
+ :type _headers: dict, optional
161
+ :param _host_index: set to override the host_index for a single
162
+ request; this effectively ignores the host_index
163
+ in the spec for a single request.
164
+ :type _host_index: int, optional
165
+ :return: Returns the result object.
166
+ """ # noqa: E501
167
+
168
+ _param = self._get_serialize(
169
+ x_task_diagnostics=x_task_diagnostics,
170
+ fields=fields,
171
+ exclude_fields=exclude_fields,
172
+ _request_auth=_request_auth,
173
+ _content_type=_content_type,
174
+ _headers=_headers,
175
+ _host_index=_host_index
176
+ )
177
+
178
+ _response_types_map: Dict[str, Optional[str]] = {
179
+ '200': None,
180
+ }
181
+ response_data = self.api_client.call_api(
182
+ *_param,
183
+ _request_timeout=_request_timeout
184
+ )
185
+ response_data.read()
186
+ return self.api_client.response_deserialize(
187
+ response_data=response_data,
188
+ response_types_map=_response_types_map,
189
+ )
190
+
191
+
192
+ @validate_call
193
+ def get_without_preload_content(
194
+ self,
195
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
196
+ fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
197
+ exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
198
+ _request_timeout: Union[
199
+ None,
200
+ Annotated[StrictFloat, Field(gt=0)],
201
+ Tuple[
202
+ Annotated[StrictFloat, Field(gt=0)],
203
+ Annotated[StrictFloat, Field(gt=0)]
204
+ ]
205
+ ] = None,
206
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
207
+ _content_type: Optional[StrictStr] = None,
208
+ _headers: Optional[Dict[StrictStr, Any]] = None,
209
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
210
+ ) -> RESTResponseType:
211
+ """get
212
+
213
+ Returns the content of the authentication headers.
214
+
215
+ :param x_task_diagnostics: List of profilers to use on tasks.
216
+ :type x_task_diagnostics: List[str]
217
+ :param fields: A list of fields to include in the response.
218
+ :type fields: List[str]
219
+ :param exclude_fields: A list of fields to exclude from the response.
220
+ :type exclude_fields: List[str]
221
+ :param _request_timeout: timeout setting for this request. If one
222
+ number provided, it will be total request
223
+ timeout. It can also be a pair (tuple) of
224
+ (connection, read) timeouts.
225
+ :type _request_timeout: int, tuple(int, int), optional
226
+ :param _request_auth: set to override the auth_settings for an a single
227
+ request; this effectively ignores the
228
+ authentication in the spec for a single request.
229
+ :type _request_auth: dict, optional
230
+ :param _content_type: force content-type for the request.
231
+ :type _content_type: str, Optional
232
+ :param _headers: set to override the headers for a single
233
+ request; this effectively ignores the headers
234
+ in the spec for a single request.
235
+ :type _headers: dict, optional
236
+ :param _host_index: set to override the host_index for a single
237
+ request; this effectively ignores the host_index
238
+ in the spec for a single request.
239
+ :type _host_index: int, optional
240
+ :return: Returns the result object.
241
+ """ # noqa: E501
242
+
243
+ _param = self._get_serialize(
244
+ x_task_diagnostics=x_task_diagnostics,
245
+ fields=fields,
246
+ exclude_fields=exclude_fields,
247
+ _request_auth=_request_auth,
248
+ _content_type=_content_type,
249
+ _headers=_headers,
250
+ _host_index=_host_index
251
+ )
252
+
253
+ _response_types_map: Dict[str, Optional[str]] = {
254
+ '200': None,
255
+ }
256
+ response_data = self.api_client.call_api(
257
+ *_param,
258
+ _request_timeout=_request_timeout
259
+ )
260
+ return response_data.response
261
+
262
+
263
+ def _get_serialize(
264
+ self,
265
+ x_task_diagnostics,
266
+ fields,
267
+ exclude_fields,
268
+ _request_auth,
269
+ _content_type,
270
+ _headers,
271
+ _host_index,
272
+ ) -> RequestSerialized:
273
+
274
+ _host = None
275
+
276
+ _collection_formats: Dict[str, str] = {
277
+ 'X-Task-Diagnostics': 'csv',
278
+ 'fields': 'multi',
279
+ 'exclude_fields': 'multi',
280
+ }
281
+
282
+ _path_params: Dict[str, str] = {}
283
+ _query_params: List[Tuple[str, str]] = []
284
+ _header_params: Dict[str, Optional[str]] = _headers or {}
285
+ _form_params: List[Tuple[str, str]] = []
286
+ _files: Dict[
287
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
288
+ ] = {}
289
+ _body_params: Optional[bytes] = None
290
+
291
+ # process the path parameters
292
+ # process the query parameters
293
+ if fields is not None:
294
+
295
+ _query_params.append(('fields', fields))
296
+
297
+ if exclude_fields is not None:
298
+
299
+ _query_params.append(('exclude_fields', exclude_fields))
300
+
301
+ # process the header parameters
302
+ if x_task_diagnostics is not None:
303
+ _header_params['X-Task-Diagnostics'] = x_task_diagnostics
304
+ # process the form parameters
305
+ # process the body parameter
306
+
307
+
308
+
309
+
310
+ # authentication setting
311
+ _auth_settings: List[str] = [
312
+ ]
313
+
314
+ return self.api_client.param_serialize(
315
+ method='GET',
316
+ resource_path='/api/pulp/debug_auth_header/',
317
+ path_params=_path_params,
318
+ query_params=_query_params,
319
+ header_params=_header_params,
320
+ body=_body_params,
321
+ post_params=_form_params,
322
+ files=_files,
323
+ auth_settings=_auth_settings,
324
+ collection_formats=_collection_formats,
325
+ _host=_host,
326
+ _request_auth=_request_auth
327
+ )
328
+
329
+