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,1301 @@
|
|
|
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, StrictBytes, StrictInt, StrictStr
|
|
21
|
+
from typing import List, Optional, Tuple, Union
|
|
22
|
+
from typing_extensions import Annotated
|
|
23
|
+
from pulpcore.client.pulp_service.models.async_operation_response import AsyncOperationResponse
|
|
24
|
+
from pulpcore.client.pulp_service.models.paginatedservice_vulnerability_report_response_list import PaginatedserviceVulnerabilityReportResponseList
|
|
25
|
+
from pulpcore.client.pulp_service.models.service_vulnerability_report_response import ServiceVulnerabilityReportResponse
|
|
26
|
+
|
|
27
|
+
from pulpcore.client.pulp_service.api_client import ApiClient, RequestSerialized
|
|
28
|
+
from pulpcore.client.pulp_service.api_response import ApiResponse
|
|
29
|
+
from pulpcore.client.pulp_service.rest import RESTResponseType
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
class VulnReportServiceApi:
|
|
33
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
34
|
+
Ref: https://openapi-generator.tech
|
|
35
|
+
|
|
36
|
+
Do not edit the class manually.
|
|
37
|
+
"""
|
|
38
|
+
|
|
39
|
+
def __init__(self, api_client=None) -> None:
|
|
40
|
+
if api_client is None:
|
|
41
|
+
api_client = ApiClient.get_default()
|
|
42
|
+
self.api_client = api_client
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
@validate_call
|
|
46
|
+
def create(
|
|
47
|
+
self,
|
|
48
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
49
|
+
repo_version: Annotated[Optional[StrictStr], Field(description="RepositoryVersion HREF with the packages to be checked.")] = None,
|
|
50
|
+
package_json: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="package-lock.json file with the definition of dependencies to be checked.")] = None,
|
|
51
|
+
pulp_domain: StrictStr = "default",
|
|
52
|
+
_request_timeout: Union[
|
|
53
|
+
None,
|
|
54
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
55
|
+
Tuple[
|
|
56
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
57
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
58
|
+
]
|
|
59
|
+
] = None,
|
|
60
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
61
|
+
_content_type: Optional[StrictStr] = None,
|
|
62
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
63
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
64
|
+
) -> AsyncOperationResponse:
|
|
65
|
+
"""Generate vulnerability report
|
|
66
|
+
|
|
67
|
+
Trigger a task to generate the package vulnerability report
|
|
68
|
+
|
|
69
|
+
:param pulp_domain: (required)
|
|
70
|
+
:type pulp_domain: str
|
|
71
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
72
|
+
:type x_task_diagnostics: List[str]
|
|
73
|
+
:param repo_version: RepositoryVersion HREF with the packages to be checked.
|
|
74
|
+
:type repo_version: str
|
|
75
|
+
:param package_json: package-lock.json file with the definition of dependencies to be checked.
|
|
76
|
+
:type package_json: bytearray
|
|
77
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
78
|
+
number provided, it will be total request
|
|
79
|
+
timeout. It can also be a pair (tuple) of
|
|
80
|
+
(connection, read) timeouts.
|
|
81
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
82
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
83
|
+
request; this effectively ignores the
|
|
84
|
+
authentication in the spec for a single request.
|
|
85
|
+
:type _request_auth: dict, optional
|
|
86
|
+
:param _content_type: force content-type for the request.
|
|
87
|
+
:type _content_type: str, Optional
|
|
88
|
+
:param _headers: set to override the headers for a single
|
|
89
|
+
request; this effectively ignores the headers
|
|
90
|
+
in the spec for a single request.
|
|
91
|
+
:type _headers: dict, optional
|
|
92
|
+
:param _host_index: set to override the host_index for a single
|
|
93
|
+
request; this effectively ignores the host_index
|
|
94
|
+
in the spec for a single request.
|
|
95
|
+
:type _host_index: int, optional
|
|
96
|
+
:return: Returns the result object.
|
|
97
|
+
""" # noqa: E501
|
|
98
|
+
|
|
99
|
+
_param = self._create_serialize(
|
|
100
|
+
pulp_domain=pulp_domain,
|
|
101
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
102
|
+
repo_version=repo_version,
|
|
103
|
+
package_json=package_json,
|
|
104
|
+
_request_auth=_request_auth,
|
|
105
|
+
_content_type=_content_type,
|
|
106
|
+
_headers=_headers,
|
|
107
|
+
_host_index=_host_index
|
|
108
|
+
)
|
|
109
|
+
|
|
110
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
111
|
+
'202': "AsyncOperationResponse",
|
|
112
|
+
}
|
|
113
|
+
response_data = self.api_client.call_api(
|
|
114
|
+
*_param,
|
|
115
|
+
_request_timeout=_request_timeout
|
|
116
|
+
)
|
|
117
|
+
response_data.read()
|
|
118
|
+
return self.api_client.response_deserialize(
|
|
119
|
+
response_data=response_data,
|
|
120
|
+
response_types_map=_response_types_map,
|
|
121
|
+
).data
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
@validate_call
|
|
125
|
+
def create_with_http_info(
|
|
126
|
+
self,
|
|
127
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
128
|
+
repo_version: Annotated[Optional[StrictStr], Field(description="RepositoryVersion HREF with the packages to be checked.")] = None,
|
|
129
|
+
package_json: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="package-lock.json file with the definition of dependencies to be checked.")] = None,
|
|
130
|
+
pulp_domain: StrictStr = "default",
|
|
131
|
+
_request_timeout: Union[
|
|
132
|
+
None,
|
|
133
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
134
|
+
Tuple[
|
|
135
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
136
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
137
|
+
]
|
|
138
|
+
] = None,
|
|
139
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
140
|
+
_content_type: Optional[StrictStr] = None,
|
|
141
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
142
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
143
|
+
) -> ApiResponse[AsyncOperationResponse]:
|
|
144
|
+
"""Generate vulnerability report
|
|
145
|
+
|
|
146
|
+
Trigger a task to generate the package vulnerability report
|
|
147
|
+
|
|
148
|
+
:param pulp_domain: (required)
|
|
149
|
+
:type pulp_domain: str
|
|
150
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
151
|
+
:type x_task_diagnostics: List[str]
|
|
152
|
+
:param repo_version: RepositoryVersion HREF with the packages to be checked.
|
|
153
|
+
:type repo_version: str
|
|
154
|
+
:param package_json: package-lock.json file with the definition of dependencies to be checked.
|
|
155
|
+
:type package_json: bytearray
|
|
156
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
157
|
+
number provided, it will be total request
|
|
158
|
+
timeout. It can also be a pair (tuple) of
|
|
159
|
+
(connection, read) timeouts.
|
|
160
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
161
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
162
|
+
request; this effectively ignores the
|
|
163
|
+
authentication in the spec for a single request.
|
|
164
|
+
:type _request_auth: dict, optional
|
|
165
|
+
:param _content_type: force content-type for the request.
|
|
166
|
+
:type _content_type: str, Optional
|
|
167
|
+
:param _headers: set to override the headers for a single
|
|
168
|
+
request; this effectively ignores the headers
|
|
169
|
+
in the spec for a single request.
|
|
170
|
+
:type _headers: dict, optional
|
|
171
|
+
:param _host_index: set to override the host_index for a single
|
|
172
|
+
request; this effectively ignores the host_index
|
|
173
|
+
in the spec for a single request.
|
|
174
|
+
:type _host_index: int, optional
|
|
175
|
+
:return: Returns the result object.
|
|
176
|
+
""" # noqa: E501
|
|
177
|
+
|
|
178
|
+
_param = self._create_serialize(
|
|
179
|
+
pulp_domain=pulp_domain,
|
|
180
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
181
|
+
repo_version=repo_version,
|
|
182
|
+
package_json=package_json,
|
|
183
|
+
_request_auth=_request_auth,
|
|
184
|
+
_content_type=_content_type,
|
|
185
|
+
_headers=_headers,
|
|
186
|
+
_host_index=_host_index
|
|
187
|
+
)
|
|
188
|
+
|
|
189
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
190
|
+
'202': "AsyncOperationResponse",
|
|
191
|
+
}
|
|
192
|
+
response_data = self.api_client.call_api(
|
|
193
|
+
*_param,
|
|
194
|
+
_request_timeout=_request_timeout
|
|
195
|
+
)
|
|
196
|
+
response_data.read()
|
|
197
|
+
return self.api_client.response_deserialize(
|
|
198
|
+
response_data=response_data,
|
|
199
|
+
response_types_map=_response_types_map,
|
|
200
|
+
)
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
@validate_call
|
|
204
|
+
def create_without_preload_content(
|
|
205
|
+
self,
|
|
206
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
207
|
+
repo_version: Annotated[Optional[StrictStr], Field(description="RepositoryVersion HREF with the packages to be checked.")] = None,
|
|
208
|
+
package_json: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="package-lock.json file with the definition of dependencies to be checked.")] = None,
|
|
209
|
+
pulp_domain: StrictStr = "default",
|
|
210
|
+
_request_timeout: Union[
|
|
211
|
+
None,
|
|
212
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
213
|
+
Tuple[
|
|
214
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
215
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
216
|
+
]
|
|
217
|
+
] = None,
|
|
218
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
219
|
+
_content_type: Optional[StrictStr] = None,
|
|
220
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
221
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
222
|
+
) -> RESTResponseType:
|
|
223
|
+
"""Generate vulnerability report
|
|
224
|
+
|
|
225
|
+
Trigger a task to generate the package vulnerability report
|
|
226
|
+
|
|
227
|
+
:param pulp_domain: (required)
|
|
228
|
+
:type pulp_domain: str
|
|
229
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
230
|
+
:type x_task_diagnostics: List[str]
|
|
231
|
+
:param repo_version: RepositoryVersion HREF with the packages to be checked.
|
|
232
|
+
:type repo_version: str
|
|
233
|
+
:param package_json: package-lock.json file with the definition of dependencies to be checked.
|
|
234
|
+
:type package_json: bytearray
|
|
235
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
236
|
+
number provided, it will be total request
|
|
237
|
+
timeout. It can also be a pair (tuple) of
|
|
238
|
+
(connection, read) timeouts.
|
|
239
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
240
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
241
|
+
request; this effectively ignores the
|
|
242
|
+
authentication in the spec for a single request.
|
|
243
|
+
:type _request_auth: dict, optional
|
|
244
|
+
:param _content_type: force content-type for the request.
|
|
245
|
+
:type _content_type: str, Optional
|
|
246
|
+
:param _headers: set to override the headers for a single
|
|
247
|
+
request; this effectively ignores the headers
|
|
248
|
+
in the spec for a single request.
|
|
249
|
+
:type _headers: dict, optional
|
|
250
|
+
:param _host_index: set to override the host_index for a single
|
|
251
|
+
request; this effectively ignores the host_index
|
|
252
|
+
in the spec for a single request.
|
|
253
|
+
:type _host_index: int, optional
|
|
254
|
+
:return: Returns the result object.
|
|
255
|
+
""" # noqa: E501
|
|
256
|
+
|
|
257
|
+
_param = self._create_serialize(
|
|
258
|
+
pulp_domain=pulp_domain,
|
|
259
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
260
|
+
repo_version=repo_version,
|
|
261
|
+
package_json=package_json,
|
|
262
|
+
_request_auth=_request_auth,
|
|
263
|
+
_content_type=_content_type,
|
|
264
|
+
_headers=_headers,
|
|
265
|
+
_host_index=_host_index
|
|
266
|
+
)
|
|
267
|
+
|
|
268
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
269
|
+
'202': "AsyncOperationResponse",
|
|
270
|
+
}
|
|
271
|
+
response_data = self.api_client.call_api(
|
|
272
|
+
*_param,
|
|
273
|
+
_request_timeout=_request_timeout
|
|
274
|
+
)
|
|
275
|
+
return response_data.response
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
def _create_serialize(
|
|
279
|
+
self,
|
|
280
|
+
pulp_domain,
|
|
281
|
+
x_task_diagnostics,
|
|
282
|
+
repo_version,
|
|
283
|
+
package_json,
|
|
284
|
+
_request_auth,
|
|
285
|
+
_content_type,
|
|
286
|
+
_headers,
|
|
287
|
+
_host_index,
|
|
288
|
+
) -> RequestSerialized:
|
|
289
|
+
|
|
290
|
+
_host = None
|
|
291
|
+
|
|
292
|
+
_collection_formats: Dict[str, str] = {
|
|
293
|
+
'X-Task-Diagnostics': 'csv',
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
_path_params: Dict[str, str] = {}
|
|
297
|
+
_query_params: List[Tuple[str, str]] = []
|
|
298
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
299
|
+
_form_params: List[Tuple[str, str]] = []
|
|
300
|
+
_files: Dict[
|
|
301
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
302
|
+
] = {}
|
|
303
|
+
_body_params: Optional[bytes] = None
|
|
304
|
+
|
|
305
|
+
# process the path parameters
|
|
306
|
+
if pulp_domain is not None:
|
|
307
|
+
_path_params['pulp_domain'] = pulp_domain
|
|
308
|
+
# process the query parameters
|
|
309
|
+
# process the header parameters
|
|
310
|
+
if x_task_diagnostics is not None:
|
|
311
|
+
_header_params['X-Task-Diagnostics'] = x_task_diagnostics
|
|
312
|
+
# process the form parameters
|
|
313
|
+
if repo_version is not None:
|
|
314
|
+
_form_params.append(('repo_version', repo_version))
|
|
315
|
+
if package_json is not None:
|
|
316
|
+
_files['package_json'] = package_json
|
|
317
|
+
# process the body parameter
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+
# set the HTTP header `Accept`
|
|
321
|
+
if 'Accept' not in _header_params:
|
|
322
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
323
|
+
[
|
|
324
|
+
'application/json'
|
|
325
|
+
]
|
|
326
|
+
)
|
|
327
|
+
|
|
328
|
+
# set the HTTP header `Content-Type`
|
|
329
|
+
if _content_type:
|
|
330
|
+
_header_params['Content-Type'] = _content_type
|
|
331
|
+
else:
|
|
332
|
+
_default_content_type = (
|
|
333
|
+
self.api_client.select_header_content_type(
|
|
334
|
+
[
|
|
335
|
+
'multipart/form-data',
|
|
336
|
+
'application/x-www-form-urlencoded'
|
|
337
|
+
]
|
|
338
|
+
)
|
|
339
|
+
)
|
|
340
|
+
if _default_content_type is not None:
|
|
341
|
+
_header_params['Content-Type'] = _default_content_type
|
|
342
|
+
|
|
343
|
+
# authentication setting
|
|
344
|
+
_auth_settings: List[str] = [
|
|
345
|
+
'json_header_remote_authentication',
|
|
346
|
+
'basicAuth',
|
|
347
|
+
'cookieAuth'
|
|
348
|
+
]
|
|
349
|
+
|
|
350
|
+
return self.api_client.param_serialize(
|
|
351
|
+
method='POST',
|
|
352
|
+
resource_path='/api/pulp/{pulp_domain}/api/v3/vuln_report_service/',
|
|
353
|
+
path_params=_path_params,
|
|
354
|
+
query_params=_query_params,
|
|
355
|
+
header_params=_header_params,
|
|
356
|
+
body=_body_params,
|
|
357
|
+
post_params=_form_params,
|
|
358
|
+
files=_files,
|
|
359
|
+
auth_settings=_auth_settings,
|
|
360
|
+
collection_formats=_collection_formats,
|
|
361
|
+
_host=_host,
|
|
362
|
+
_request_auth=_request_auth
|
|
363
|
+
)
|
|
364
|
+
|
|
365
|
+
|
|
366
|
+
|
|
367
|
+
|
|
368
|
+
@validate_call
|
|
369
|
+
def delete(
|
|
370
|
+
self,
|
|
371
|
+
service_vulnerability_report_href: StrictStr,
|
|
372
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
373
|
+
_request_timeout: Union[
|
|
374
|
+
None,
|
|
375
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
376
|
+
Tuple[
|
|
377
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
378
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
379
|
+
]
|
|
380
|
+
] = None,
|
|
381
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
382
|
+
_content_type: Optional[StrictStr] = None,
|
|
383
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
384
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
385
|
+
) -> None:
|
|
386
|
+
"""Delete a vulnerability report
|
|
387
|
+
|
|
388
|
+
A customized named ModelViewSet that knows how to register itself with the Pulp API router. This viewset is discoverable by its name. \"Normal\" Django Models and Master/Detail models are supported by the ``register_with`` method. Attributes: lookup_field (str): The name of the field by which an object should be looked up, in addition to any parent lookups if this ViewSet is nested. Defaults to 'pk' endpoint_name (str): The name of the final path segment that should identify the ViewSet's collection endpoint. nest_prefix (str): Optional prefix under which this ViewSet should be nested. This must correspond to the \"parent_prefix\" of a router with rest_framework_nested.NestedMixin. None indicates this ViewSet should not be nested. parent_lookup_kwargs (dict): Optional mapping of key names that would appear in self.kwargs to django model filter expressions that can be used with the corresponding value from self.kwargs, used only by a nested ViewSet to filter based on the parent object's identity. schema (DefaultSchema): The schema class to use by default in a viewset.
|
|
389
|
+
|
|
390
|
+
:param service_vulnerability_report_href: (required)
|
|
391
|
+
:type service_vulnerability_report_href: str
|
|
392
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
393
|
+
:type x_task_diagnostics: List[str]
|
|
394
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
395
|
+
number provided, it will be total request
|
|
396
|
+
timeout. It can also be a pair (tuple) of
|
|
397
|
+
(connection, read) timeouts.
|
|
398
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
399
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
400
|
+
request; this effectively ignores the
|
|
401
|
+
authentication in the spec for a single request.
|
|
402
|
+
:type _request_auth: dict, optional
|
|
403
|
+
:param _content_type: force content-type for the request.
|
|
404
|
+
:type _content_type: str, Optional
|
|
405
|
+
:param _headers: set to override the headers for a single
|
|
406
|
+
request; this effectively ignores the headers
|
|
407
|
+
in the spec for a single request.
|
|
408
|
+
:type _headers: dict, optional
|
|
409
|
+
:param _host_index: set to override the host_index for a single
|
|
410
|
+
request; this effectively ignores the host_index
|
|
411
|
+
in the spec for a single request.
|
|
412
|
+
:type _host_index: int, optional
|
|
413
|
+
:return: Returns the result object.
|
|
414
|
+
""" # noqa: E501
|
|
415
|
+
|
|
416
|
+
_param = self._delete_serialize(
|
|
417
|
+
service_vulnerability_report_href=service_vulnerability_report_href,
|
|
418
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
419
|
+
_request_auth=_request_auth,
|
|
420
|
+
_content_type=_content_type,
|
|
421
|
+
_headers=_headers,
|
|
422
|
+
_host_index=_host_index
|
|
423
|
+
)
|
|
424
|
+
|
|
425
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
426
|
+
'204': None,
|
|
427
|
+
}
|
|
428
|
+
response_data = self.api_client.call_api(
|
|
429
|
+
*_param,
|
|
430
|
+
_request_timeout=_request_timeout
|
|
431
|
+
)
|
|
432
|
+
response_data.read()
|
|
433
|
+
return self.api_client.response_deserialize(
|
|
434
|
+
response_data=response_data,
|
|
435
|
+
response_types_map=_response_types_map,
|
|
436
|
+
).data
|
|
437
|
+
|
|
438
|
+
|
|
439
|
+
@validate_call
|
|
440
|
+
def delete_with_http_info(
|
|
441
|
+
self,
|
|
442
|
+
service_vulnerability_report_href: StrictStr,
|
|
443
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
444
|
+
_request_timeout: Union[
|
|
445
|
+
None,
|
|
446
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
447
|
+
Tuple[
|
|
448
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
449
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
450
|
+
]
|
|
451
|
+
] = None,
|
|
452
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
453
|
+
_content_type: Optional[StrictStr] = None,
|
|
454
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
455
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
456
|
+
) -> ApiResponse[None]:
|
|
457
|
+
"""Delete a vulnerability report
|
|
458
|
+
|
|
459
|
+
A customized named ModelViewSet that knows how to register itself with the Pulp API router. This viewset is discoverable by its name. \"Normal\" Django Models and Master/Detail models are supported by the ``register_with`` method. Attributes: lookup_field (str): The name of the field by which an object should be looked up, in addition to any parent lookups if this ViewSet is nested. Defaults to 'pk' endpoint_name (str): The name of the final path segment that should identify the ViewSet's collection endpoint. nest_prefix (str): Optional prefix under which this ViewSet should be nested. This must correspond to the \"parent_prefix\" of a router with rest_framework_nested.NestedMixin. None indicates this ViewSet should not be nested. parent_lookup_kwargs (dict): Optional mapping of key names that would appear in self.kwargs to django model filter expressions that can be used with the corresponding value from self.kwargs, used only by a nested ViewSet to filter based on the parent object's identity. schema (DefaultSchema): The schema class to use by default in a viewset.
|
|
460
|
+
|
|
461
|
+
:param service_vulnerability_report_href: (required)
|
|
462
|
+
:type service_vulnerability_report_href: str
|
|
463
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
464
|
+
:type x_task_diagnostics: List[str]
|
|
465
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
466
|
+
number provided, it will be total request
|
|
467
|
+
timeout. It can also be a pair (tuple) of
|
|
468
|
+
(connection, read) timeouts.
|
|
469
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
470
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
471
|
+
request; this effectively ignores the
|
|
472
|
+
authentication in the spec for a single request.
|
|
473
|
+
:type _request_auth: dict, optional
|
|
474
|
+
:param _content_type: force content-type for the request.
|
|
475
|
+
:type _content_type: str, Optional
|
|
476
|
+
:param _headers: set to override the headers for a single
|
|
477
|
+
request; this effectively ignores the headers
|
|
478
|
+
in the spec for a single request.
|
|
479
|
+
:type _headers: dict, optional
|
|
480
|
+
:param _host_index: set to override the host_index for a single
|
|
481
|
+
request; this effectively ignores the host_index
|
|
482
|
+
in the spec for a single request.
|
|
483
|
+
:type _host_index: int, optional
|
|
484
|
+
:return: Returns the result object.
|
|
485
|
+
""" # noqa: E501
|
|
486
|
+
|
|
487
|
+
_param = self._delete_serialize(
|
|
488
|
+
service_vulnerability_report_href=service_vulnerability_report_href,
|
|
489
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
490
|
+
_request_auth=_request_auth,
|
|
491
|
+
_content_type=_content_type,
|
|
492
|
+
_headers=_headers,
|
|
493
|
+
_host_index=_host_index
|
|
494
|
+
)
|
|
495
|
+
|
|
496
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
497
|
+
'204': None,
|
|
498
|
+
}
|
|
499
|
+
response_data = self.api_client.call_api(
|
|
500
|
+
*_param,
|
|
501
|
+
_request_timeout=_request_timeout
|
|
502
|
+
)
|
|
503
|
+
response_data.read()
|
|
504
|
+
return self.api_client.response_deserialize(
|
|
505
|
+
response_data=response_data,
|
|
506
|
+
response_types_map=_response_types_map,
|
|
507
|
+
)
|
|
508
|
+
|
|
509
|
+
|
|
510
|
+
@validate_call
|
|
511
|
+
def delete_without_preload_content(
|
|
512
|
+
self,
|
|
513
|
+
service_vulnerability_report_href: StrictStr,
|
|
514
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
515
|
+
_request_timeout: Union[
|
|
516
|
+
None,
|
|
517
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
518
|
+
Tuple[
|
|
519
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
520
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
521
|
+
]
|
|
522
|
+
] = None,
|
|
523
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
524
|
+
_content_type: Optional[StrictStr] = None,
|
|
525
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
526
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
527
|
+
) -> RESTResponseType:
|
|
528
|
+
"""Delete a vulnerability report
|
|
529
|
+
|
|
530
|
+
A customized named ModelViewSet that knows how to register itself with the Pulp API router. This viewset is discoverable by its name. \"Normal\" Django Models and Master/Detail models are supported by the ``register_with`` method. Attributes: lookup_field (str): The name of the field by which an object should be looked up, in addition to any parent lookups if this ViewSet is nested. Defaults to 'pk' endpoint_name (str): The name of the final path segment that should identify the ViewSet's collection endpoint. nest_prefix (str): Optional prefix under which this ViewSet should be nested. This must correspond to the \"parent_prefix\" of a router with rest_framework_nested.NestedMixin. None indicates this ViewSet should not be nested. parent_lookup_kwargs (dict): Optional mapping of key names that would appear in self.kwargs to django model filter expressions that can be used with the corresponding value from self.kwargs, used only by a nested ViewSet to filter based on the parent object's identity. schema (DefaultSchema): The schema class to use by default in a viewset.
|
|
531
|
+
|
|
532
|
+
:param service_vulnerability_report_href: (required)
|
|
533
|
+
:type service_vulnerability_report_href: str
|
|
534
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
535
|
+
:type x_task_diagnostics: List[str]
|
|
536
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
537
|
+
number provided, it will be total request
|
|
538
|
+
timeout. It can also be a pair (tuple) of
|
|
539
|
+
(connection, read) timeouts.
|
|
540
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
541
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
542
|
+
request; this effectively ignores the
|
|
543
|
+
authentication in the spec for a single request.
|
|
544
|
+
:type _request_auth: dict, optional
|
|
545
|
+
:param _content_type: force content-type for the request.
|
|
546
|
+
:type _content_type: str, Optional
|
|
547
|
+
:param _headers: set to override the headers for a single
|
|
548
|
+
request; this effectively ignores the headers
|
|
549
|
+
in the spec for a single request.
|
|
550
|
+
:type _headers: dict, optional
|
|
551
|
+
:param _host_index: set to override the host_index for a single
|
|
552
|
+
request; this effectively ignores the host_index
|
|
553
|
+
in the spec for a single request.
|
|
554
|
+
:type _host_index: int, optional
|
|
555
|
+
:return: Returns the result object.
|
|
556
|
+
""" # noqa: E501
|
|
557
|
+
|
|
558
|
+
_param = self._delete_serialize(
|
|
559
|
+
service_vulnerability_report_href=service_vulnerability_report_href,
|
|
560
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
561
|
+
_request_auth=_request_auth,
|
|
562
|
+
_content_type=_content_type,
|
|
563
|
+
_headers=_headers,
|
|
564
|
+
_host_index=_host_index
|
|
565
|
+
)
|
|
566
|
+
|
|
567
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
568
|
+
'204': None,
|
|
569
|
+
}
|
|
570
|
+
response_data = self.api_client.call_api(
|
|
571
|
+
*_param,
|
|
572
|
+
_request_timeout=_request_timeout
|
|
573
|
+
)
|
|
574
|
+
return response_data.response
|
|
575
|
+
|
|
576
|
+
|
|
577
|
+
def _delete_serialize(
|
|
578
|
+
self,
|
|
579
|
+
service_vulnerability_report_href,
|
|
580
|
+
x_task_diagnostics,
|
|
581
|
+
_request_auth,
|
|
582
|
+
_content_type,
|
|
583
|
+
_headers,
|
|
584
|
+
_host_index,
|
|
585
|
+
) -> RequestSerialized:
|
|
586
|
+
|
|
587
|
+
_host = None
|
|
588
|
+
|
|
589
|
+
_collection_formats: Dict[str, str] = {
|
|
590
|
+
'X-Task-Diagnostics': 'csv',
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
_path_params: Dict[str, str] = {}
|
|
594
|
+
_query_params: List[Tuple[str, str]] = []
|
|
595
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
596
|
+
_form_params: List[Tuple[str, str]] = []
|
|
597
|
+
_files: Dict[
|
|
598
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
599
|
+
] = {}
|
|
600
|
+
_body_params: Optional[bytes] = None
|
|
601
|
+
|
|
602
|
+
# process the path parameters
|
|
603
|
+
if service_vulnerability_report_href is not None:
|
|
604
|
+
_path_params['service_vulnerability_report_href'] = service_vulnerability_report_href
|
|
605
|
+
# process the query parameters
|
|
606
|
+
# process the header parameters
|
|
607
|
+
if x_task_diagnostics is not None:
|
|
608
|
+
_header_params['X-Task-Diagnostics'] = x_task_diagnostics
|
|
609
|
+
# process the form parameters
|
|
610
|
+
# process the body parameter
|
|
611
|
+
|
|
612
|
+
|
|
613
|
+
|
|
614
|
+
|
|
615
|
+
# authentication setting
|
|
616
|
+
_auth_settings: List[str] = [
|
|
617
|
+
'json_header_remote_authentication',
|
|
618
|
+
'basicAuth',
|
|
619
|
+
'cookieAuth'
|
|
620
|
+
]
|
|
621
|
+
|
|
622
|
+
return self.api_client.param_serialize(
|
|
623
|
+
method='DELETE',
|
|
624
|
+
resource_path='{service_vulnerability_report_href}',
|
|
625
|
+
path_params=_path_params,
|
|
626
|
+
query_params=_query_params,
|
|
627
|
+
header_params=_header_params,
|
|
628
|
+
body=_body_params,
|
|
629
|
+
post_params=_form_params,
|
|
630
|
+
files=_files,
|
|
631
|
+
auth_settings=_auth_settings,
|
|
632
|
+
collection_formats=_collection_formats,
|
|
633
|
+
_host=_host,
|
|
634
|
+
_request_auth=_request_auth
|
|
635
|
+
)
|
|
636
|
+
|
|
637
|
+
|
|
638
|
+
|
|
639
|
+
|
|
640
|
+
@validate_call
|
|
641
|
+
def list(
|
|
642
|
+
self,
|
|
643
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
644
|
+
limit: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None,
|
|
645
|
+
offset: Annotated[Optional[StrictInt], Field(description="The initial index from which to return the results.")] = None,
|
|
646
|
+
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
647
|
+
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
648
|
+
pulp_domain: StrictStr = "default",
|
|
649
|
+
_request_timeout: Union[
|
|
650
|
+
None,
|
|
651
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
652
|
+
Tuple[
|
|
653
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
654
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
655
|
+
]
|
|
656
|
+
] = None,
|
|
657
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
658
|
+
_content_type: Optional[StrictStr] = None,
|
|
659
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
660
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
661
|
+
) -> PaginatedserviceVulnerabilityReportResponseList:
|
|
662
|
+
"""List vulnerability reports
|
|
663
|
+
|
|
664
|
+
A customized named ModelViewSet that knows how to register itself with the Pulp API router. This viewset is discoverable by its name. \"Normal\" Django Models and Master/Detail models are supported by the ``register_with`` method. Attributes: lookup_field (str): The name of the field by which an object should be looked up, in addition to any parent lookups if this ViewSet is nested. Defaults to 'pk' endpoint_name (str): The name of the final path segment that should identify the ViewSet's collection endpoint. nest_prefix (str): Optional prefix under which this ViewSet should be nested. This must correspond to the \"parent_prefix\" of a router with rest_framework_nested.NestedMixin. None indicates this ViewSet should not be nested. parent_lookup_kwargs (dict): Optional mapping of key names that would appear in self.kwargs to django model filter expressions that can be used with the corresponding value from self.kwargs, used only by a nested ViewSet to filter based on the parent object's identity. schema (DefaultSchema): The schema class to use by default in a viewset.
|
|
665
|
+
|
|
666
|
+
:param pulp_domain: (required)
|
|
667
|
+
:type pulp_domain: str
|
|
668
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
669
|
+
:type x_task_diagnostics: List[str]
|
|
670
|
+
:param limit: Number of results to return per page.
|
|
671
|
+
:type limit: int
|
|
672
|
+
:param offset: The initial index from which to return the results.
|
|
673
|
+
:type offset: int
|
|
674
|
+
:param fields: A list of fields to include in the response.
|
|
675
|
+
:type fields: List[str]
|
|
676
|
+
:param exclude_fields: A list of fields to exclude from the response.
|
|
677
|
+
:type exclude_fields: List[str]
|
|
678
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
679
|
+
number provided, it will be total request
|
|
680
|
+
timeout. It can also be a pair (tuple) of
|
|
681
|
+
(connection, read) timeouts.
|
|
682
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
683
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
684
|
+
request; this effectively ignores the
|
|
685
|
+
authentication in the spec for a single request.
|
|
686
|
+
:type _request_auth: dict, optional
|
|
687
|
+
:param _content_type: force content-type for the request.
|
|
688
|
+
:type _content_type: str, Optional
|
|
689
|
+
:param _headers: set to override the headers for a single
|
|
690
|
+
request; this effectively ignores the headers
|
|
691
|
+
in the spec for a single request.
|
|
692
|
+
:type _headers: dict, optional
|
|
693
|
+
:param _host_index: set to override the host_index for a single
|
|
694
|
+
request; this effectively ignores the host_index
|
|
695
|
+
in the spec for a single request.
|
|
696
|
+
:type _host_index: int, optional
|
|
697
|
+
:return: Returns the result object.
|
|
698
|
+
""" # noqa: E501
|
|
699
|
+
|
|
700
|
+
_param = self._list_serialize(
|
|
701
|
+
pulp_domain=pulp_domain,
|
|
702
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
703
|
+
limit=limit,
|
|
704
|
+
offset=offset,
|
|
705
|
+
fields=fields,
|
|
706
|
+
exclude_fields=exclude_fields,
|
|
707
|
+
_request_auth=_request_auth,
|
|
708
|
+
_content_type=_content_type,
|
|
709
|
+
_headers=_headers,
|
|
710
|
+
_host_index=_host_index
|
|
711
|
+
)
|
|
712
|
+
|
|
713
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
714
|
+
'200': "PaginatedserviceVulnerabilityReportResponseList",
|
|
715
|
+
}
|
|
716
|
+
response_data = self.api_client.call_api(
|
|
717
|
+
*_param,
|
|
718
|
+
_request_timeout=_request_timeout
|
|
719
|
+
)
|
|
720
|
+
response_data.read()
|
|
721
|
+
return self.api_client.response_deserialize(
|
|
722
|
+
response_data=response_data,
|
|
723
|
+
response_types_map=_response_types_map,
|
|
724
|
+
).data
|
|
725
|
+
|
|
726
|
+
|
|
727
|
+
@validate_call
|
|
728
|
+
def list_with_http_info(
|
|
729
|
+
self,
|
|
730
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
731
|
+
limit: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None,
|
|
732
|
+
offset: Annotated[Optional[StrictInt], Field(description="The initial index from which to return the results.")] = None,
|
|
733
|
+
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
734
|
+
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
735
|
+
pulp_domain: StrictStr = "default",
|
|
736
|
+
_request_timeout: Union[
|
|
737
|
+
None,
|
|
738
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
739
|
+
Tuple[
|
|
740
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
741
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
742
|
+
]
|
|
743
|
+
] = None,
|
|
744
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
745
|
+
_content_type: Optional[StrictStr] = None,
|
|
746
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
747
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
748
|
+
) -> ApiResponse[PaginatedserviceVulnerabilityReportResponseList]:
|
|
749
|
+
"""List vulnerability reports
|
|
750
|
+
|
|
751
|
+
A customized named ModelViewSet that knows how to register itself with the Pulp API router. This viewset is discoverable by its name. \"Normal\" Django Models and Master/Detail models are supported by the ``register_with`` method. Attributes: lookup_field (str): The name of the field by which an object should be looked up, in addition to any parent lookups if this ViewSet is nested. Defaults to 'pk' endpoint_name (str): The name of the final path segment that should identify the ViewSet's collection endpoint. nest_prefix (str): Optional prefix under which this ViewSet should be nested. This must correspond to the \"parent_prefix\" of a router with rest_framework_nested.NestedMixin. None indicates this ViewSet should not be nested. parent_lookup_kwargs (dict): Optional mapping of key names that would appear in self.kwargs to django model filter expressions that can be used with the corresponding value from self.kwargs, used only by a nested ViewSet to filter based on the parent object's identity. schema (DefaultSchema): The schema class to use by default in a viewset.
|
|
752
|
+
|
|
753
|
+
:param pulp_domain: (required)
|
|
754
|
+
:type pulp_domain: str
|
|
755
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
756
|
+
:type x_task_diagnostics: List[str]
|
|
757
|
+
:param limit: Number of results to return per page.
|
|
758
|
+
:type limit: int
|
|
759
|
+
:param offset: The initial index from which to return the results.
|
|
760
|
+
:type offset: int
|
|
761
|
+
:param fields: A list of fields to include in the response.
|
|
762
|
+
:type fields: List[str]
|
|
763
|
+
:param exclude_fields: A list of fields to exclude from the response.
|
|
764
|
+
:type exclude_fields: List[str]
|
|
765
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
766
|
+
number provided, it will be total request
|
|
767
|
+
timeout. It can also be a pair (tuple) of
|
|
768
|
+
(connection, read) timeouts.
|
|
769
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
770
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
771
|
+
request; this effectively ignores the
|
|
772
|
+
authentication in the spec for a single request.
|
|
773
|
+
:type _request_auth: dict, optional
|
|
774
|
+
:param _content_type: force content-type for the request.
|
|
775
|
+
:type _content_type: str, Optional
|
|
776
|
+
:param _headers: set to override the headers for a single
|
|
777
|
+
request; this effectively ignores the headers
|
|
778
|
+
in the spec for a single request.
|
|
779
|
+
:type _headers: dict, optional
|
|
780
|
+
:param _host_index: set to override the host_index for a single
|
|
781
|
+
request; this effectively ignores the host_index
|
|
782
|
+
in the spec for a single request.
|
|
783
|
+
:type _host_index: int, optional
|
|
784
|
+
:return: Returns the result object.
|
|
785
|
+
""" # noqa: E501
|
|
786
|
+
|
|
787
|
+
_param = self._list_serialize(
|
|
788
|
+
pulp_domain=pulp_domain,
|
|
789
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
790
|
+
limit=limit,
|
|
791
|
+
offset=offset,
|
|
792
|
+
fields=fields,
|
|
793
|
+
exclude_fields=exclude_fields,
|
|
794
|
+
_request_auth=_request_auth,
|
|
795
|
+
_content_type=_content_type,
|
|
796
|
+
_headers=_headers,
|
|
797
|
+
_host_index=_host_index
|
|
798
|
+
)
|
|
799
|
+
|
|
800
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
801
|
+
'200': "PaginatedserviceVulnerabilityReportResponseList",
|
|
802
|
+
}
|
|
803
|
+
response_data = self.api_client.call_api(
|
|
804
|
+
*_param,
|
|
805
|
+
_request_timeout=_request_timeout
|
|
806
|
+
)
|
|
807
|
+
response_data.read()
|
|
808
|
+
return self.api_client.response_deserialize(
|
|
809
|
+
response_data=response_data,
|
|
810
|
+
response_types_map=_response_types_map,
|
|
811
|
+
)
|
|
812
|
+
|
|
813
|
+
|
|
814
|
+
@validate_call
|
|
815
|
+
def list_without_preload_content(
|
|
816
|
+
self,
|
|
817
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
818
|
+
limit: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None,
|
|
819
|
+
offset: Annotated[Optional[StrictInt], Field(description="The initial index from which to return the results.")] = None,
|
|
820
|
+
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
821
|
+
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
822
|
+
pulp_domain: StrictStr = "default",
|
|
823
|
+
_request_timeout: Union[
|
|
824
|
+
None,
|
|
825
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
826
|
+
Tuple[
|
|
827
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
828
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
829
|
+
]
|
|
830
|
+
] = None,
|
|
831
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
832
|
+
_content_type: Optional[StrictStr] = None,
|
|
833
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
834
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
835
|
+
) -> RESTResponseType:
|
|
836
|
+
"""List vulnerability reports
|
|
837
|
+
|
|
838
|
+
A customized named ModelViewSet that knows how to register itself with the Pulp API router. This viewset is discoverable by its name. \"Normal\" Django Models and Master/Detail models are supported by the ``register_with`` method. Attributes: lookup_field (str): The name of the field by which an object should be looked up, in addition to any parent lookups if this ViewSet is nested. Defaults to 'pk' endpoint_name (str): The name of the final path segment that should identify the ViewSet's collection endpoint. nest_prefix (str): Optional prefix under which this ViewSet should be nested. This must correspond to the \"parent_prefix\" of a router with rest_framework_nested.NestedMixin. None indicates this ViewSet should not be nested. parent_lookup_kwargs (dict): Optional mapping of key names that would appear in self.kwargs to django model filter expressions that can be used with the corresponding value from self.kwargs, used only by a nested ViewSet to filter based on the parent object's identity. schema (DefaultSchema): The schema class to use by default in a viewset.
|
|
839
|
+
|
|
840
|
+
:param pulp_domain: (required)
|
|
841
|
+
:type pulp_domain: str
|
|
842
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
843
|
+
:type x_task_diagnostics: List[str]
|
|
844
|
+
:param limit: Number of results to return per page.
|
|
845
|
+
:type limit: int
|
|
846
|
+
:param offset: The initial index from which to return the results.
|
|
847
|
+
:type offset: int
|
|
848
|
+
:param fields: A list of fields to include in the response.
|
|
849
|
+
:type fields: List[str]
|
|
850
|
+
:param exclude_fields: A list of fields to exclude from the response.
|
|
851
|
+
:type exclude_fields: List[str]
|
|
852
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
853
|
+
number provided, it will be total request
|
|
854
|
+
timeout. It can also be a pair (tuple) of
|
|
855
|
+
(connection, read) timeouts.
|
|
856
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
857
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
858
|
+
request; this effectively ignores the
|
|
859
|
+
authentication in the spec for a single request.
|
|
860
|
+
:type _request_auth: dict, optional
|
|
861
|
+
:param _content_type: force content-type for the request.
|
|
862
|
+
:type _content_type: str, Optional
|
|
863
|
+
:param _headers: set to override the headers for a single
|
|
864
|
+
request; this effectively ignores the headers
|
|
865
|
+
in the spec for a single request.
|
|
866
|
+
:type _headers: dict, optional
|
|
867
|
+
:param _host_index: set to override the host_index for a single
|
|
868
|
+
request; this effectively ignores the host_index
|
|
869
|
+
in the spec for a single request.
|
|
870
|
+
:type _host_index: int, optional
|
|
871
|
+
:return: Returns the result object.
|
|
872
|
+
""" # noqa: E501
|
|
873
|
+
|
|
874
|
+
_param = self._list_serialize(
|
|
875
|
+
pulp_domain=pulp_domain,
|
|
876
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
877
|
+
limit=limit,
|
|
878
|
+
offset=offset,
|
|
879
|
+
fields=fields,
|
|
880
|
+
exclude_fields=exclude_fields,
|
|
881
|
+
_request_auth=_request_auth,
|
|
882
|
+
_content_type=_content_type,
|
|
883
|
+
_headers=_headers,
|
|
884
|
+
_host_index=_host_index
|
|
885
|
+
)
|
|
886
|
+
|
|
887
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
888
|
+
'200': "PaginatedserviceVulnerabilityReportResponseList",
|
|
889
|
+
}
|
|
890
|
+
response_data = self.api_client.call_api(
|
|
891
|
+
*_param,
|
|
892
|
+
_request_timeout=_request_timeout
|
|
893
|
+
)
|
|
894
|
+
return response_data.response
|
|
895
|
+
|
|
896
|
+
|
|
897
|
+
def _list_serialize(
|
|
898
|
+
self,
|
|
899
|
+
pulp_domain,
|
|
900
|
+
x_task_diagnostics,
|
|
901
|
+
limit,
|
|
902
|
+
offset,
|
|
903
|
+
fields,
|
|
904
|
+
exclude_fields,
|
|
905
|
+
_request_auth,
|
|
906
|
+
_content_type,
|
|
907
|
+
_headers,
|
|
908
|
+
_host_index,
|
|
909
|
+
) -> RequestSerialized:
|
|
910
|
+
|
|
911
|
+
_host = None
|
|
912
|
+
|
|
913
|
+
_collection_formats: Dict[str, str] = {
|
|
914
|
+
'X-Task-Diagnostics': 'csv',
|
|
915
|
+
'fields': 'multi',
|
|
916
|
+
'exclude_fields': 'multi',
|
|
917
|
+
}
|
|
918
|
+
|
|
919
|
+
_path_params: Dict[str, str] = {}
|
|
920
|
+
_query_params: List[Tuple[str, str]] = []
|
|
921
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
922
|
+
_form_params: List[Tuple[str, str]] = []
|
|
923
|
+
_files: Dict[
|
|
924
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
925
|
+
] = {}
|
|
926
|
+
_body_params: Optional[bytes] = None
|
|
927
|
+
|
|
928
|
+
# process the path parameters
|
|
929
|
+
if pulp_domain is not None:
|
|
930
|
+
_path_params['pulp_domain'] = pulp_domain
|
|
931
|
+
# process the query parameters
|
|
932
|
+
if limit is not None:
|
|
933
|
+
|
|
934
|
+
_query_params.append(('limit', limit))
|
|
935
|
+
|
|
936
|
+
if offset is not None:
|
|
937
|
+
|
|
938
|
+
_query_params.append(('offset', offset))
|
|
939
|
+
|
|
940
|
+
if fields is not None:
|
|
941
|
+
|
|
942
|
+
_query_params.append(('fields', fields))
|
|
943
|
+
|
|
944
|
+
if exclude_fields is not None:
|
|
945
|
+
|
|
946
|
+
_query_params.append(('exclude_fields', exclude_fields))
|
|
947
|
+
|
|
948
|
+
# process the header parameters
|
|
949
|
+
if x_task_diagnostics is not None:
|
|
950
|
+
_header_params['X-Task-Diagnostics'] = x_task_diagnostics
|
|
951
|
+
# process the form parameters
|
|
952
|
+
# process the body parameter
|
|
953
|
+
|
|
954
|
+
|
|
955
|
+
# set the HTTP header `Accept`
|
|
956
|
+
if 'Accept' not in _header_params:
|
|
957
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
958
|
+
[
|
|
959
|
+
'application/json'
|
|
960
|
+
]
|
|
961
|
+
)
|
|
962
|
+
|
|
963
|
+
|
|
964
|
+
# authentication setting
|
|
965
|
+
_auth_settings: List[str] = [
|
|
966
|
+
'json_header_remote_authentication',
|
|
967
|
+
'basicAuth',
|
|
968
|
+
'cookieAuth'
|
|
969
|
+
]
|
|
970
|
+
|
|
971
|
+
return self.api_client.param_serialize(
|
|
972
|
+
method='GET',
|
|
973
|
+
resource_path='/api/pulp/{pulp_domain}/api/v3/vuln_report_service/',
|
|
974
|
+
path_params=_path_params,
|
|
975
|
+
query_params=_query_params,
|
|
976
|
+
header_params=_header_params,
|
|
977
|
+
body=_body_params,
|
|
978
|
+
post_params=_form_params,
|
|
979
|
+
files=_files,
|
|
980
|
+
auth_settings=_auth_settings,
|
|
981
|
+
collection_formats=_collection_formats,
|
|
982
|
+
_host=_host,
|
|
983
|
+
_request_auth=_request_auth
|
|
984
|
+
)
|
|
985
|
+
|
|
986
|
+
|
|
987
|
+
|
|
988
|
+
|
|
989
|
+
@validate_call
|
|
990
|
+
def read(
|
|
991
|
+
self,
|
|
992
|
+
service_vulnerability_report_href: StrictStr,
|
|
993
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
994
|
+
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
995
|
+
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
996
|
+
_request_timeout: Union[
|
|
997
|
+
None,
|
|
998
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
999
|
+
Tuple[
|
|
1000
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1001
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1002
|
+
]
|
|
1003
|
+
] = None,
|
|
1004
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1005
|
+
_content_type: Optional[StrictStr] = None,
|
|
1006
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1007
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1008
|
+
) -> ServiceVulnerabilityReportResponse:
|
|
1009
|
+
"""Inspect a vulnerability report
|
|
1010
|
+
|
|
1011
|
+
A customized named ModelViewSet that knows how to register itself with the Pulp API router. This viewset is discoverable by its name. \"Normal\" Django Models and Master/Detail models are supported by the ``register_with`` method. Attributes: lookup_field (str): The name of the field by which an object should be looked up, in addition to any parent lookups if this ViewSet is nested. Defaults to 'pk' endpoint_name (str): The name of the final path segment that should identify the ViewSet's collection endpoint. nest_prefix (str): Optional prefix under which this ViewSet should be nested. This must correspond to the \"parent_prefix\" of a router with rest_framework_nested.NestedMixin. None indicates this ViewSet should not be nested. parent_lookup_kwargs (dict): Optional mapping of key names that would appear in self.kwargs to django model filter expressions that can be used with the corresponding value from self.kwargs, used only by a nested ViewSet to filter based on the parent object's identity. schema (DefaultSchema): The schema class to use by default in a viewset.
|
|
1012
|
+
|
|
1013
|
+
:param service_vulnerability_report_href: (required)
|
|
1014
|
+
:type service_vulnerability_report_href: str
|
|
1015
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
1016
|
+
:type x_task_diagnostics: List[str]
|
|
1017
|
+
:param fields: A list of fields to include in the response.
|
|
1018
|
+
:type fields: List[str]
|
|
1019
|
+
:param exclude_fields: A list of fields to exclude from the response.
|
|
1020
|
+
:type exclude_fields: List[str]
|
|
1021
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1022
|
+
number provided, it will be total request
|
|
1023
|
+
timeout. It can also be a pair (tuple) of
|
|
1024
|
+
(connection, read) timeouts.
|
|
1025
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1026
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1027
|
+
request; this effectively ignores the
|
|
1028
|
+
authentication in the spec for a single request.
|
|
1029
|
+
:type _request_auth: dict, optional
|
|
1030
|
+
:param _content_type: force content-type for the request.
|
|
1031
|
+
:type _content_type: str, Optional
|
|
1032
|
+
:param _headers: set to override the headers for a single
|
|
1033
|
+
request; this effectively ignores the headers
|
|
1034
|
+
in the spec for a single request.
|
|
1035
|
+
:type _headers: dict, optional
|
|
1036
|
+
:param _host_index: set to override the host_index for a single
|
|
1037
|
+
request; this effectively ignores the host_index
|
|
1038
|
+
in the spec for a single request.
|
|
1039
|
+
:type _host_index: int, optional
|
|
1040
|
+
:return: Returns the result object.
|
|
1041
|
+
""" # noqa: E501
|
|
1042
|
+
|
|
1043
|
+
_param = self._read_serialize(
|
|
1044
|
+
service_vulnerability_report_href=service_vulnerability_report_href,
|
|
1045
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
1046
|
+
fields=fields,
|
|
1047
|
+
exclude_fields=exclude_fields,
|
|
1048
|
+
_request_auth=_request_auth,
|
|
1049
|
+
_content_type=_content_type,
|
|
1050
|
+
_headers=_headers,
|
|
1051
|
+
_host_index=_host_index
|
|
1052
|
+
)
|
|
1053
|
+
|
|
1054
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1055
|
+
'200': "ServiceVulnerabilityReportResponse",
|
|
1056
|
+
}
|
|
1057
|
+
response_data = self.api_client.call_api(
|
|
1058
|
+
*_param,
|
|
1059
|
+
_request_timeout=_request_timeout
|
|
1060
|
+
)
|
|
1061
|
+
response_data.read()
|
|
1062
|
+
return self.api_client.response_deserialize(
|
|
1063
|
+
response_data=response_data,
|
|
1064
|
+
response_types_map=_response_types_map,
|
|
1065
|
+
).data
|
|
1066
|
+
|
|
1067
|
+
|
|
1068
|
+
@validate_call
|
|
1069
|
+
def read_with_http_info(
|
|
1070
|
+
self,
|
|
1071
|
+
service_vulnerability_report_href: StrictStr,
|
|
1072
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
1073
|
+
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
1074
|
+
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
1075
|
+
_request_timeout: Union[
|
|
1076
|
+
None,
|
|
1077
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1078
|
+
Tuple[
|
|
1079
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1080
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1081
|
+
]
|
|
1082
|
+
] = None,
|
|
1083
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1084
|
+
_content_type: Optional[StrictStr] = None,
|
|
1085
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1086
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1087
|
+
) -> ApiResponse[ServiceVulnerabilityReportResponse]:
|
|
1088
|
+
"""Inspect a vulnerability report
|
|
1089
|
+
|
|
1090
|
+
A customized named ModelViewSet that knows how to register itself with the Pulp API router. This viewset is discoverable by its name. \"Normal\" Django Models and Master/Detail models are supported by the ``register_with`` method. Attributes: lookup_field (str): The name of the field by which an object should be looked up, in addition to any parent lookups if this ViewSet is nested. Defaults to 'pk' endpoint_name (str): The name of the final path segment that should identify the ViewSet's collection endpoint. nest_prefix (str): Optional prefix under which this ViewSet should be nested. This must correspond to the \"parent_prefix\" of a router with rest_framework_nested.NestedMixin. None indicates this ViewSet should not be nested. parent_lookup_kwargs (dict): Optional mapping of key names that would appear in self.kwargs to django model filter expressions that can be used with the corresponding value from self.kwargs, used only by a nested ViewSet to filter based on the parent object's identity. schema (DefaultSchema): The schema class to use by default in a viewset.
|
|
1091
|
+
|
|
1092
|
+
:param service_vulnerability_report_href: (required)
|
|
1093
|
+
:type service_vulnerability_report_href: str
|
|
1094
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
1095
|
+
:type x_task_diagnostics: List[str]
|
|
1096
|
+
:param fields: A list of fields to include in the response.
|
|
1097
|
+
:type fields: List[str]
|
|
1098
|
+
:param exclude_fields: A list of fields to exclude from the response.
|
|
1099
|
+
:type exclude_fields: List[str]
|
|
1100
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1101
|
+
number provided, it will be total request
|
|
1102
|
+
timeout. It can also be a pair (tuple) of
|
|
1103
|
+
(connection, read) timeouts.
|
|
1104
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1105
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1106
|
+
request; this effectively ignores the
|
|
1107
|
+
authentication in the spec for a single request.
|
|
1108
|
+
:type _request_auth: dict, optional
|
|
1109
|
+
:param _content_type: force content-type for the request.
|
|
1110
|
+
:type _content_type: str, Optional
|
|
1111
|
+
:param _headers: set to override the headers for a single
|
|
1112
|
+
request; this effectively ignores the headers
|
|
1113
|
+
in the spec for a single request.
|
|
1114
|
+
:type _headers: dict, optional
|
|
1115
|
+
:param _host_index: set to override the host_index for a single
|
|
1116
|
+
request; this effectively ignores the host_index
|
|
1117
|
+
in the spec for a single request.
|
|
1118
|
+
:type _host_index: int, optional
|
|
1119
|
+
:return: Returns the result object.
|
|
1120
|
+
""" # noqa: E501
|
|
1121
|
+
|
|
1122
|
+
_param = self._read_serialize(
|
|
1123
|
+
service_vulnerability_report_href=service_vulnerability_report_href,
|
|
1124
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
1125
|
+
fields=fields,
|
|
1126
|
+
exclude_fields=exclude_fields,
|
|
1127
|
+
_request_auth=_request_auth,
|
|
1128
|
+
_content_type=_content_type,
|
|
1129
|
+
_headers=_headers,
|
|
1130
|
+
_host_index=_host_index
|
|
1131
|
+
)
|
|
1132
|
+
|
|
1133
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1134
|
+
'200': "ServiceVulnerabilityReportResponse",
|
|
1135
|
+
}
|
|
1136
|
+
response_data = self.api_client.call_api(
|
|
1137
|
+
*_param,
|
|
1138
|
+
_request_timeout=_request_timeout
|
|
1139
|
+
)
|
|
1140
|
+
response_data.read()
|
|
1141
|
+
return self.api_client.response_deserialize(
|
|
1142
|
+
response_data=response_data,
|
|
1143
|
+
response_types_map=_response_types_map,
|
|
1144
|
+
)
|
|
1145
|
+
|
|
1146
|
+
|
|
1147
|
+
@validate_call
|
|
1148
|
+
def read_without_preload_content(
|
|
1149
|
+
self,
|
|
1150
|
+
service_vulnerability_report_href: StrictStr,
|
|
1151
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
1152
|
+
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
1153
|
+
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
1154
|
+
_request_timeout: Union[
|
|
1155
|
+
None,
|
|
1156
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1157
|
+
Tuple[
|
|
1158
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1159
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1160
|
+
]
|
|
1161
|
+
] = None,
|
|
1162
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1163
|
+
_content_type: Optional[StrictStr] = None,
|
|
1164
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1165
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1166
|
+
) -> RESTResponseType:
|
|
1167
|
+
"""Inspect a vulnerability report
|
|
1168
|
+
|
|
1169
|
+
A customized named ModelViewSet that knows how to register itself with the Pulp API router. This viewset is discoverable by its name. \"Normal\" Django Models and Master/Detail models are supported by the ``register_with`` method. Attributes: lookup_field (str): The name of the field by which an object should be looked up, in addition to any parent lookups if this ViewSet is nested. Defaults to 'pk' endpoint_name (str): The name of the final path segment that should identify the ViewSet's collection endpoint. nest_prefix (str): Optional prefix under which this ViewSet should be nested. This must correspond to the \"parent_prefix\" of a router with rest_framework_nested.NestedMixin. None indicates this ViewSet should not be nested. parent_lookup_kwargs (dict): Optional mapping of key names that would appear in self.kwargs to django model filter expressions that can be used with the corresponding value from self.kwargs, used only by a nested ViewSet to filter based on the parent object's identity. schema (DefaultSchema): The schema class to use by default in a viewset.
|
|
1170
|
+
|
|
1171
|
+
:param service_vulnerability_report_href: (required)
|
|
1172
|
+
:type service_vulnerability_report_href: str
|
|
1173
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
1174
|
+
:type x_task_diagnostics: List[str]
|
|
1175
|
+
:param fields: A list of fields to include in the response.
|
|
1176
|
+
:type fields: List[str]
|
|
1177
|
+
:param exclude_fields: A list of fields to exclude from the response.
|
|
1178
|
+
:type exclude_fields: List[str]
|
|
1179
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1180
|
+
number provided, it will be total request
|
|
1181
|
+
timeout. It can also be a pair (tuple) of
|
|
1182
|
+
(connection, read) timeouts.
|
|
1183
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1184
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1185
|
+
request; this effectively ignores the
|
|
1186
|
+
authentication in the spec for a single request.
|
|
1187
|
+
:type _request_auth: dict, optional
|
|
1188
|
+
:param _content_type: force content-type for the request.
|
|
1189
|
+
:type _content_type: str, Optional
|
|
1190
|
+
:param _headers: set to override the headers for a single
|
|
1191
|
+
request; this effectively ignores the headers
|
|
1192
|
+
in the spec for a single request.
|
|
1193
|
+
:type _headers: dict, optional
|
|
1194
|
+
:param _host_index: set to override the host_index for a single
|
|
1195
|
+
request; this effectively ignores the host_index
|
|
1196
|
+
in the spec for a single request.
|
|
1197
|
+
:type _host_index: int, optional
|
|
1198
|
+
:return: Returns the result object.
|
|
1199
|
+
""" # noqa: E501
|
|
1200
|
+
|
|
1201
|
+
_param = self._read_serialize(
|
|
1202
|
+
service_vulnerability_report_href=service_vulnerability_report_href,
|
|
1203
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
1204
|
+
fields=fields,
|
|
1205
|
+
exclude_fields=exclude_fields,
|
|
1206
|
+
_request_auth=_request_auth,
|
|
1207
|
+
_content_type=_content_type,
|
|
1208
|
+
_headers=_headers,
|
|
1209
|
+
_host_index=_host_index
|
|
1210
|
+
)
|
|
1211
|
+
|
|
1212
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1213
|
+
'200': "ServiceVulnerabilityReportResponse",
|
|
1214
|
+
}
|
|
1215
|
+
response_data = self.api_client.call_api(
|
|
1216
|
+
*_param,
|
|
1217
|
+
_request_timeout=_request_timeout
|
|
1218
|
+
)
|
|
1219
|
+
return response_data.response
|
|
1220
|
+
|
|
1221
|
+
|
|
1222
|
+
def _read_serialize(
|
|
1223
|
+
self,
|
|
1224
|
+
service_vulnerability_report_href,
|
|
1225
|
+
x_task_diagnostics,
|
|
1226
|
+
fields,
|
|
1227
|
+
exclude_fields,
|
|
1228
|
+
_request_auth,
|
|
1229
|
+
_content_type,
|
|
1230
|
+
_headers,
|
|
1231
|
+
_host_index,
|
|
1232
|
+
) -> RequestSerialized:
|
|
1233
|
+
|
|
1234
|
+
_host = None
|
|
1235
|
+
|
|
1236
|
+
_collection_formats: Dict[str, str] = {
|
|
1237
|
+
'X-Task-Diagnostics': 'csv',
|
|
1238
|
+
'fields': 'multi',
|
|
1239
|
+
'exclude_fields': 'multi',
|
|
1240
|
+
}
|
|
1241
|
+
|
|
1242
|
+
_path_params: Dict[str, str] = {}
|
|
1243
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1244
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1245
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1246
|
+
_files: Dict[
|
|
1247
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1248
|
+
] = {}
|
|
1249
|
+
_body_params: Optional[bytes] = None
|
|
1250
|
+
|
|
1251
|
+
# process the path parameters
|
|
1252
|
+
if service_vulnerability_report_href is not None:
|
|
1253
|
+
_path_params['service_vulnerability_report_href'] = service_vulnerability_report_href
|
|
1254
|
+
# process the query parameters
|
|
1255
|
+
if fields is not None:
|
|
1256
|
+
|
|
1257
|
+
_query_params.append(('fields', fields))
|
|
1258
|
+
|
|
1259
|
+
if exclude_fields is not None:
|
|
1260
|
+
|
|
1261
|
+
_query_params.append(('exclude_fields', exclude_fields))
|
|
1262
|
+
|
|
1263
|
+
# process the header parameters
|
|
1264
|
+
if x_task_diagnostics is not None:
|
|
1265
|
+
_header_params['X-Task-Diagnostics'] = x_task_diagnostics
|
|
1266
|
+
# process the form parameters
|
|
1267
|
+
# process the body parameter
|
|
1268
|
+
|
|
1269
|
+
|
|
1270
|
+
# set the HTTP header `Accept`
|
|
1271
|
+
if 'Accept' not in _header_params:
|
|
1272
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1273
|
+
[
|
|
1274
|
+
'application/json'
|
|
1275
|
+
]
|
|
1276
|
+
)
|
|
1277
|
+
|
|
1278
|
+
|
|
1279
|
+
# authentication setting
|
|
1280
|
+
_auth_settings: List[str] = [
|
|
1281
|
+
'json_header_remote_authentication',
|
|
1282
|
+
'basicAuth',
|
|
1283
|
+
'cookieAuth'
|
|
1284
|
+
]
|
|
1285
|
+
|
|
1286
|
+
return self.api_client.param_serialize(
|
|
1287
|
+
method='GET',
|
|
1288
|
+
resource_path='{service_vulnerability_report_href}',
|
|
1289
|
+
path_params=_path_params,
|
|
1290
|
+
query_params=_query_params,
|
|
1291
|
+
header_params=_header_params,
|
|
1292
|
+
body=_body_params,
|
|
1293
|
+
post_params=_form_params,
|
|
1294
|
+
files=_files,
|
|
1295
|
+
auth_settings=_auth_settings,
|
|
1296
|
+
collection_formats=_collection_formats,
|
|
1297
|
+
_host=_host,
|
|
1298
|
+
_request_auth=_request_auth
|
|
1299
|
+
)
|
|
1300
|
+
|
|
1301
|
+
|