crc-pulp-service-client 20260107.2__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.
- crc_pulp_service_client-20260107.2.dist-info/METADATA +2727 -0
- crc_pulp_service_client-20260107.2.dist-info/RECORD +41 -0
- crc_pulp_service_client-20260107.2.dist-info/WHEEL +5 -0
- crc_pulp_service_client-20260107.2.dist-info/top_level.txt +1 -0
- pulpcore/__init__.py +2 -0
- pulpcore/client/__init__.py +2 -0
- pulpcore/client/pulp_service/__init__.py +59 -0
- pulpcore/client/pulp_service/api/__init__.py +13 -0
- pulpcore/client/pulp_service/api/api_create_domain_api.py +335 -0
- pulpcore/client/pulp_service/api/api_debug_auth_header_api.py +329 -0
- pulpcore/client/pulp_service/api/api_debug_database_triggers_api.py +329 -0
- pulpcore/client/pulp_service/api/api_rds_connection_tests_api.py +591 -0
- pulpcore/client/pulp_service/api/api_test_random_lock_tasks_api.py +326 -0
- pulpcore/client/pulp_service/api/api_test_tasks_api.py +326 -0
- pulpcore/client/pulp_service/api/contentguards_feature_api.py +3401 -0
- pulpcore/client/pulp_service/api/tasks_api.py +1469 -0
- pulpcore/client/pulp_service/api/vuln_report_service_api.py +1301 -0
- pulpcore/client/pulp_service/api_client.py +798 -0
- pulpcore/client/pulp_service/api_response.py +21 -0
- pulpcore/client/pulp_service/configuration.py +628 -0
- pulpcore/client/pulp_service/exceptions.py +200 -0
- pulpcore/client/pulp_service/models/__init__.py +34 -0
- pulpcore/client/pulp_service/models/async_operation_response.py +88 -0
- pulpcore/client/pulp_service/models/domain.py +114 -0
- pulpcore/client/pulp_service/models/domain_response.py +131 -0
- pulpcore/client/pulp_service/models/my_permissions_response.py +88 -0
- pulpcore/client/pulp_service/models/nested_role.py +93 -0
- pulpcore/client/pulp_service/models/nested_role_response.py +92 -0
- pulpcore/client/pulp_service/models/object_roles_response.py +96 -0
- pulpcore/client/pulp_service/models/paginated_task_response_list.py +112 -0
- pulpcore/client/pulp_service/models/paginatedservice_feature_content_guard_response_list.py +112 -0
- pulpcore/client/pulp_service/models/paginatedservice_vulnerability_report_response_list.py +112 -0
- pulpcore/client/pulp_service/models/patchedservice_feature_content_guard.py +107 -0
- pulpcore/client/pulp_service/models/progress_report_response.py +115 -0
- pulpcore/client/pulp_service/models/service_feature_content_guard.py +107 -0
- pulpcore/client/pulp_service/models/service_feature_content_guard_response.py +123 -0
- pulpcore/client/pulp_service/models/service_vulnerability_report_response.py +110 -0
- pulpcore/client/pulp_service/models/storage_class_enum.py +40 -0
- pulpcore/client/pulp_service/models/task_response.py +186 -0
- pulpcore/client/pulp_service/py.typed +0 -0
- pulpcore/client/pulp_service/rest.py +258 -0
|
@@ -0,0 +1,591 @@
|
|
|
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 pulpcore.client.pulp_service.models.async_operation_response import AsyncOperationResponse
|
|
24
|
+
|
|
25
|
+
from pulpcore.client.pulp_service.api_client import ApiClient, RequestSerialized
|
|
26
|
+
from pulpcore.client.pulp_service.api_response import ApiResponse
|
|
27
|
+
from pulpcore.client.pulp_service.rest import RESTResponseType
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
class ApiRdsConnectionTestsApi:
|
|
31
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
32
|
+
Ref: https://openapi-generator.tech
|
|
33
|
+
|
|
34
|
+
Do not edit the class manually.
|
|
35
|
+
"""
|
|
36
|
+
|
|
37
|
+
def __init__(self, api_client=None) -> None:
|
|
38
|
+
if api_client is None:
|
|
39
|
+
api_client = ApiClient.get_default()
|
|
40
|
+
self.api_client = api_client
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
@validate_call
|
|
44
|
+
def get(
|
|
45
|
+
self,
|
|
46
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
47
|
+
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
48
|
+
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = 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
|
+
) -> None:
|
|
62
|
+
"""get
|
|
63
|
+
|
|
64
|
+
Get available tests and their descriptions. This endpoint is always accessible for documentation purposes.
|
|
65
|
+
|
|
66
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
67
|
+
:type x_task_diagnostics: List[str]
|
|
68
|
+
:param fields: A list of fields to include in the response.
|
|
69
|
+
:type fields: List[str]
|
|
70
|
+
:param exclude_fields: A list of fields to exclude from the response.
|
|
71
|
+
:type exclude_fields: List[str]
|
|
72
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
73
|
+
number provided, it will be total request
|
|
74
|
+
timeout. It can also be a pair (tuple) of
|
|
75
|
+
(connection, read) timeouts.
|
|
76
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
77
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
78
|
+
request; this effectively ignores the
|
|
79
|
+
authentication in the spec for a single request.
|
|
80
|
+
:type _request_auth: dict, optional
|
|
81
|
+
:param _content_type: force content-type for the request.
|
|
82
|
+
:type _content_type: str, Optional
|
|
83
|
+
:param _headers: set to override the headers for a single
|
|
84
|
+
request; this effectively ignores the headers
|
|
85
|
+
in the spec for a single request.
|
|
86
|
+
:type _headers: dict, optional
|
|
87
|
+
:param _host_index: set to override the host_index for a single
|
|
88
|
+
request; this effectively ignores the host_index
|
|
89
|
+
in the spec for a single request.
|
|
90
|
+
:type _host_index: int, optional
|
|
91
|
+
:return: Returns the result object.
|
|
92
|
+
""" # noqa: E501
|
|
93
|
+
|
|
94
|
+
_param = self._get_serialize(
|
|
95
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
96
|
+
fields=fields,
|
|
97
|
+
exclude_fields=exclude_fields,
|
|
98
|
+
_request_auth=_request_auth,
|
|
99
|
+
_content_type=_content_type,
|
|
100
|
+
_headers=_headers,
|
|
101
|
+
_host_index=_host_index
|
|
102
|
+
)
|
|
103
|
+
|
|
104
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
105
|
+
'200': None,
|
|
106
|
+
}
|
|
107
|
+
response_data = self.api_client.call_api(
|
|
108
|
+
*_param,
|
|
109
|
+
_request_timeout=_request_timeout
|
|
110
|
+
)
|
|
111
|
+
response_data.read()
|
|
112
|
+
return self.api_client.response_deserialize(
|
|
113
|
+
response_data=response_data,
|
|
114
|
+
response_types_map=_response_types_map,
|
|
115
|
+
).data
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
@validate_call
|
|
119
|
+
def get_with_http_info(
|
|
120
|
+
self,
|
|
121
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
122
|
+
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
123
|
+
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
124
|
+
_request_timeout: Union[
|
|
125
|
+
None,
|
|
126
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
127
|
+
Tuple[
|
|
128
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
129
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
130
|
+
]
|
|
131
|
+
] = None,
|
|
132
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
133
|
+
_content_type: Optional[StrictStr] = None,
|
|
134
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
135
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
136
|
+
) -> ApiResponse[None]:
|
|
137
|
+
"""get
|
|
138
|
+
|
|
139
|
+
Get available tests and their descriptions. This endpoint is always accessible for documentation purposes.
|
|
140
|
+
|
|
141
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
142
|
+
:type x_task_diagnostics: List[str]
|
|
143
|
+
:param fields: A list of fields to include in the response.
|
|
144
|
+
:type fields: List[str]
|
|
145
|
+
:param exclude_fields: A list of fields to exclude from the response.
|
|
146
|
+
:type exclude_fields: List[str]
|
|
147
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
148
|
+
number provided, it will be total request
|
|
149
|
+
timeout. It can also be a pair (tuple) of
|
|
150
|
+
(connection, read) timeouts.
|
|
151
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
152
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
153
|
+
request; this effectively ignores the
|
|
154
|
+
authentication in the spec for a single request.
|
|
155
|
+
:type _request_auth: dict, optional
|
|
156
|
+
:param _content_type: force content-type for the request.
|
|
157
|
+
:type _content_type: str, Optional
|
|
158
|
+
:param _headers: set to override the headers for a single
|
|
159
|
+
request; this effectively ignores the headers
|
|
160
|
+
in the spec for a single request.
|
|
161
|
+
:type _headers: dict, optional
|
|
162
|
+
:param _host_index: set to override the host_index for a single
|
|
163
|
+
request; this effectively ignores the host_index
|
|
164
|
+
in the spec for a single request.
|
|
165
|
+
:type _host_index: int, optional
|
|
166
|
+
:return: Returns the result object.
|
|
167
|
+
""" # noqa: E501
|
|
168
|
+
|
|
169
|
+
_param = self._get_serialize(
|
|
170
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
171
|
+
fields=fields,
|
|
172
|
+
exclude_fields=exclude_fields,
|
|
173
|
+
_request_auth=_request_auth,
|
|
174
|
+
_content_type=_content_type,
|
|
175
|
+
_headers=_headers,
|
|
176
|
+
_host_index=_host_index
|
|
177
|
+
)
|
|
178
|
+
|
|
179
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
180
|
+
'200': None,
|
|
181
|
+
}
|
|
182
|
+
response_data = self.api_client.call_api(
|
|
183
|
+
*_param,
|
|
184
|
+
_request_timeout=_request_timeout
|
|
185
|
+
)
|
|
186
|
+
response_data.read()
|
|
187
|
+
return self.api_client.response_deserialize(
|
|
188
|
+
response_data=response_data,
|
|
189
|
+
response_types_map=_response_types_map,
|
|
190
|
+
)
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
@validate_call
|
|
194
|
+
def get_without_preload_content(
|
|
195
|
+
self,
|
|
196
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
197
|
+
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
198
|
+
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
199
|
+
_request_timeout: Union[
|
|
200
|
+
None,
|
|
201
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
202
|
+
Tuple[
|
|
203
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
204
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
205
|
+
]
|
|
206
|
+
] = None,
|
|
207
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
208
|
+
_content_type: Optional[StrictStr] = None,
|
|
209
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
210
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
211
|
+
) -> RESTResponseType:
|
|
212
|
+
"""get
|
|
213
|
+
|
|
214
|
+
Get available tests and their descriptions. This endpoint is always accessible for documentation purposes.
|
|
215
|
+
|
|
216
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
217
|
+
:type x_task_diagnostics: List[str]
|
|
218
|
+
:param fields: A list of fields to include in the response.
|
|
219
|
+
:type fields: List[str]
|
|
220
|
+
:param exclude_fields: A list of fields to exclude from the response.
|
|
221
|
+
:type exclude_fields: List[str]
|
|
222
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
223
|
+
number provided, it will be total request
|
|
224
|
+
timeout. It can also be a pair (tuple) of
|
|
225
|
+
(connection, read) timeouts.
|
|
226
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
227
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
228
|
+
request; this effectively ignores the
|
|
229
|
+
authentication in the spec for a single request.
|
|
230
|
+
:type _request_auth: dict, optional
|
|
231
|
+
:param _content_type: force content-type for the request.
|
|
232
|
+
:type _content_type: str, Optional
|
|
233
|
+
:param _headers: set to override the headers for a single
|
|
234
|
+
request; this effectively ignores the headers
|
|
235
|
+
in the spec for a single request.
|
|
236
|
+
:type _headers: dict, optional
|
|
237
|
+
:param _host_index: set to override the host_index for a single
|
|
238
|
+
request; this effectively ignores the host_index
|
|
239
|
+
in the spec for a single request.
|
|
240
|
+
:type _host_index: int, optional
|
|
241
|
+
:return: Returns the result object.
|
|
242
|
+
""" # noqa: E501
|
|
243
|
+
|
|
244
|
+
_param = self._get_serialize(
|
|
245
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
246
|
+
fields=fields,
|
|
247
|
+
exclude_fields=exclude_fields,
|
|
248
|
+
_request_auth=_request_auth,
|
|
249
|
+
_content_type=_content_type,
|
|
250
|
+
_headers=_headers,
|
|
251
|
+
_host_index=_host_index
|
|
252
|
+
)
|
|
253
|
+
|
|
254
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
255
|
+
'200': None,
|
|
256
|
+
}
|
|
257
|
+
response_data = self.api_client.call_api(
|
|
258
|
+
*_param,
|
|
259
|
+
_request_timeout=_request_timeout
|
|
260
|
+
)
|
|
261
|
+
return response_data.response
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
def _get_serialize(
|
|
265
|
+
self,
|
|
266
|
+
x_task_diagnostics,
|
|
267
|
+
fields,
|
|
268
|
+
exclude_fields,
|
|
269
|
+
_request_auth,
|
|
270
|
+
_content_type,
|
|
271
|
+
_headers,
|
|
272
|
+
_host_index,
|
|
273
|
+
) -> RequestSerialized:
|
|
274
|
+
|
|
275
|
+
_host = None
|
|
276
|
+
|
|
277
|
+
_collection_formats: Dict[str, str] = {
|
|
278
|
+
'X-Task-Diagnostics': 'csv',
|
|
279
|
+
'fields': 'multi',
|
|
280
|
+
'exclude_fields': 'multi',
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
_path_params: Dict[str, str] = {}
|
|
284
|
+
_query_params: List[Tuple[str, str]] = []
|
|
285
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
286
|
+
_form_params: List[Tuple[str, str]] = []
|
|
287
|
+
_files: Dict[
|
|
288
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
289
|
+
] = {}
|
|
290
|
+
_body_params: Optional[bytes] = None
|
|
291
|
+
|
|
292
|
+
# process the path parameters
|
|
293
|
+
# process the query parameters
|
|
294
|
+
if fields is not None:
|
|
295
|
+
|
|
296
|
+
_query_params.append(('fields', fields))
|
|
297
|
+
|
|
298
|
+
if exclude_fields is not None:
|
|
299
|
+
|
|
300
|
+
_query_params.append(('exclude_fields', exclude_fields))
|
|
301
|
+
|
|
302
|
+
# process the header parameters
|
|
303
|
+
if x_task_diagnostics is not None:
|
|
304
|
+
_header_params['X-Task-Diagnostics'] = x_task_diagnostics
|
|
305
|
+
# process the form parameters
|
|
306
|
+
# process the body parameter
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
# authentication setting
|
|
312
|
+
_auth_settings: List[str] = [
|
|
313
|
+
]
|
|
314
|
+
|
|
315
|
+
return self.api_client.param_serialize(
|
|
316
|
+
method='GET',
|
|
317
|
+
resource_path='/api/pulp/rds-connection-tests/',
|
|
318
|
+
path_params=_path_params,
|
|
319
|
+
query_params=_query_params,
|
|
320
|
+
header_params=_header_params,
|
|
321
|
+
body=_body_params,
|
|
322
|
+
post_params=_form_params,
|
|
323
|
+
files=_files,
|
|
324
|
+
auth_settings=_auth_settings,
|
|
325
|
+
collection_formats=_collection_formats,
|
|
326
|
+
_host=_host,
|
|
327
|
+
_request_auth=_request_auth
|
|
328
|
+
)
|
|
329
|
+
|
|
330
|
+
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
@validate_call
|
|
334
|
+
def post(
|
|
335
|
+
self,
|
|
336
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
337
|
+
_request_timeout: Union[
|
|
338
|
+
None,
|
|
339
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
340
|
+
Tuple[
|
|
341
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
342
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
343
|
+
]
|
|
344
|
+
] = None,
|
|
345
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
346
|
+
_content_type: Optional[StrictStr] = None,
|
|
347
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
348
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
349
|
+
) -> AsyncOperationResponse:
|
|
350
|
+
"""Dispatch RDS connection tests
|
|
351
|
+
|
|
352
|
+
Dispatch RDS Proxy connection timeout tests
|
|
353
|
+
|
|
354
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
355
|
+
:type x_task_diagnostics: List[str]
|
|
356
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
357
|
+
number provided, it will be total request
|
|
358
|
+
timeout. It can also be a pair (tuple) of
|
|
359
|
+
(connection, read) timeouts.
|
|
360
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
361
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
362
|
+
request; this effectively ignores the
|
|
363
|
+
authentication in the spec for a single request.
|
|
364
|
+
:type _request_auth: dict, optional
|
|
365
|
+
:param _content_type: force content-type for the request.
|
|
366
|
+
:type _content_type: str, Optional
|
|
367
|
+
:param _headers: set to override the headers for a single
|
|
368
|
+
request; this effectively ignores the headers
|
|
369
|
+
in the spec for a single request.
|
|
370
|
+
:type _headers: dict, optional
|
|
371
|
+
:param _host_index: set to override the host_index for a single
|
|
372
|
+
request; this effectively ignores the host_index
|
|
373
|
+
in the spec for a single request.
|
|
374
|
+
:type _host_index: int, optional
|
|
375
|
+
:return: Returns the result object.
|
|
376
|
+
""" # noqa: E501
|
|
377
|
+
|
|
378
|
+
_param = self._post_serialize(
|
|
379
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
380
|
+
_request_auth=_request_auth,
|
|
381
|
+
_content_type=_content_type,
|
|
382
|
+
_headers=_headers,
|
|
383
|
+
_host_index=_host_index
|
|
384
|
+
)
|
|
385
|
+
|
|
386
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
387
|
+
'202': "AsyncOperationResponse",
|
|
388
|
+
}
|
|
389
|
+
response_data = self.api_client.call_api(
|
|
390
|
+
*_param,
|
|
391
|
+
_request_timeout=_request_timeout
|
|
392
|
+
)
|
|
393
|
+
response_data.read()
|
|
394
|
+
return self.api_client.response_deserialize(
|
|
395
|
+
response_data=response_data,
|
|
396
|
+
response_types_map=_response_types_map,
|
|
397
|
+
).data
|
|
398
|
+
|
|
399
|
+
|
|
400
|
+
@validate_call
|
|
401
|
+
def post_with_http_info(
|
|
402
|
+
self,
|
|
403
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
404
|
+
_request_timeout: Union[
|
|
405
|
+
None,
|
|
406
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
407
|
+
Tuple[
|
|
408
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
409
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
410
|
+
]
|
|
411
|
+
] = None,
|
|
412
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
413
|
+
_content_type: Optional[StrictStr] = None,
|
|
414
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
415
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
416
|
+
) -> ApiResponse[AsyncOperationResponse]:
|
|
417
|
+
"""Dispatch RDS connection tests
|
|
418
|
+
|
|
419
|
+
Dispatch RDS Proxy connection timeout tests
|
|
420
|
+
|
|
421
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
422
|
+
:type x_task_diagnostics: List[str]
|
|
423
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
424
|
+
number provided, it will be total request
|
|
425
|
+
timeout. It can also be a pair (tuple) of
|
|
426
|
+
(connection, read) timeouts.
|
|
427
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
428
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
429
|
+
request; this effectively ignores the
|
|
430
|
+
authentication in the spec for a single request.
|
|
431
|
+
:type _request_auth: dict, optional
|
|
432
|
+
:param _content_type: force content-type for the request.
|
|
433
|
+
:type _content_type: str, Optional
|
|
434
|
+
:param _headers: set to override the headers for a single
|
|
435
|
+
request; this effectively ignores the headers
|
|
436
|
+
in the spec for a single request.
|
|
437
|
+
:type _headers: dict, optional
|
|
438
|
+
:param _host_index: set to override the host_index for a single
|
|
439
|
+
request; this effectively ignores the host_index
|
|
440
|
+
in the spec for a single request.
|
|
441
|
+
:type _host_index: int, optional
|
|
442
|
+
:return: Returns the result object.
|
|
443
|
+
""" # noqa: E501
|
|
444
|
+
|
|
445
|
+
_param = self._post_serialize(
|
|
446
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
447
|
+
_request_auth=_request_auth,
|
|
448
|
+
_content_type=_content_type,
|
|
449
|
+
_headers=_headers,
|
|
450
|
+
_host_index=_host_index
|
|
451
|
+
)
|
|
452
|
+
|
|
453
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
454
|
+
'202': "AsyncOperationResponse",
|
|
455
|
+
}
|
|
456
|
+
response_data = self.api_client.call_api(
|
|
457
|
+
*_param,
|
|
458
|
+
_request_timeout=_request_timeout
|
|
459
|
+
)
|
|
460
|
+
response_data.read()
|
|
461
|
+
return self.api_client.response_deserialize(
|
|
462
|
+
response_data=response_data,
|
|
463
|
+
response_types_map=_response_types_map,
|
|
464
|
+
)
|
|
465
|
+
|
|
466
|
+
|
|
467
|
+
@validate_call
|
|
468
|
+
def post_without_preload_content(
|
|
469
|
+
self,
|
|
470
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
471
|
+
_request_timeout: Union[
|
|
472
|
+
None,
|
|
473
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
474
|
+
Tuple[
|
|
475
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
476
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
477
|
+
]
|
|
478
|
+
] = None,
|
|
479
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
480
|
+
_content_type: Optional[StrictStr] = None,
|
|
481
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
482
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
483
|
+
) -> RESTResponseType:
|
|
484
|
+
"""Dispatch RDS connection tests
|
|
485
|
+
|
|
486
|
+
Dispatch RDS Proxy connection timeout tests
|
|
487
|
+
|
|
488
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
489
|
+
:type x_task_diagnostics: List[str]
|
|
490
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
491
|
+
number provided, it will be total request
|
|
492
|
+
timeout. It can also be a pair (tuple) of
|
|
493
|
+
(connection, read) timeouts.
|
|
494
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
495
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
496
|
+
request; this effectively ignores the
|
|
497
|
+
authentication in the spec for a single request.
|
|
498
|
+
:type _request_auth: dict, optional
|
|
499
|
+
:param _content_type: force content-type for the request.
|
|
500
|
+
:type _content_type: str, Optional
|
|
501
|
+
:param _headers: set to override the headers for a single
|
|
502
|
+
request; this effectively ignores the headers
|
|
503
|
+
in the spec for a single request.
|
|
504
|
+
:type _headers: dict, optional
|
|
505
|
+
:param _host_index: set to override the host_index for a single
|
|
506
|
+
request; this effectively ignores the host_index
|
|
507
|
+
in the spec for a single request.
|
|
508
|
+
:type _host_index: int, optional
|
|
509
|
+
:return: Returns the result object.
|
|
510
|
+
""" # noqa: E501
|
|
511
|
+
|
|
512
|
+
_param = self._post_serialize(
|
|
513
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
514
|
+
_request_auth=_request_auth,
|
|
515
|
+
_content_type=_content_type,
|
|
516
|
+
_headers=_headers,
|
|
517
|
+
_host_index=_host_index
|
|
518
|
+
)
|
|
519
|
+
|
|
520
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
521
|
+
'202': "AsyncOperationResponse",
|
|
522
|
+
}
|
|
523
|
+
response_data = self.api_client.call_api(
|
|
524
|
+
*_param,
|
|
525
|
+
_request_timeout=_request_timeout
|
|
526
|
+
)
|
|
527
|
+
return response_data.response
|
|
528
|
+
|
|
529
|
+
|
|
530
|
+
def _post_serialize(
|
|
531
|
+
self,
|
|
532
|
+
x_task_diagnostics,
|
|
533
|
+
_request_auth,
|
|
534
|
+
_content_type,
|
|
535
|
+
_headers,
|
|
536
|
+
_host_index,
|
|
537
|
+
) -> RequestSerialized:
|
|
538
|
+
|
|
539
|
+
_host = None
|
|
540
|
+
|
|
541
|
+
_collection_formats: Dict[str, str] = {
|
|
542
|
+
'X-Task-Diagnostics': 'csv',
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
_path_params: Dict[str, str] = {}
|
|
546
|
+
_query_params: List[Tuple[str, str]] = []
|
|
547
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
548
|
+
_form_params: List[Tuple[str, str]] = []
|
|
549
|
+
_files: Dict[
|
|
550
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
551
|
+
] = {}
|
|
552
|
+
_body_params: Optional[bytes] = None
|
|
553
|
+
|
|
554
|
+
# process the path parameters
|
|
555
|
+
# process the query parameters
|
|
556
|
+
# process the header parameters
|
|
557
|
+
if x_task_diagnostics is not None:
|
|
558
|
+
_header_params['X-Task-Diagnostics'] = x_task_diagnostics
|
|
559
|
+
# process the form parameters
|
|
560
|
+
# process the body parameter
|
|
561
|
+
|
|
562
|
+
|
|
563
|
+
# set the HTTP header `Accept`
|
|
564
|
+
if 'Accept' not in _header_params:
|
|
565
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
566
|
+
[
|
|
567
|
+
'application/json'
|
|
568
|
+
]
|
|
569
|
+
)
|
|
570
|
+
|
|
571
|
+
|
|
572
|
+
# authentication setting
|
|
573
|
+
_auth_settings: List[str] = [
|
|
574
|
+
]
|
|
575
|
+
|
|
576
|
+
return self.api_client.param_serialize(
|
|
577
|
+
method='POST',
|
|
578
|
+
resource_path='/api/pulp/rds-connection-tests/',
|
|
579
|
+
path_params=_path_params,
|
|
580
|
+
query_params=_query_params,
|
|
581
|
+
header_params=_header_params,
|
|
582
|
+
body=_body_params,
|
|
583
|
+
post_params=_form_params,
|
|
584
|
+
files=_files,
|
|
585
|
+
auth_settings=_auth_settings,
|
|
586
|
+
collection_formats=_collection_formats,
|
|
587
|
+
_host=_host,
|
|
588
|
+
_request_auth=_request_auth
|
|
589
|
+
)
|
|
590
|
+
|
|
591
|
+
|