legit-api-client 1.1.4547__py3-none-any.whl → 1.1.4626__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 legit-api-client might be problematic. Click here for more details.

@@ -14,7 +14,7 @@
14
14
  """ # noqa: E501
15
15
 
16
16
 
17
- __version__ = "1.1.4547"
17
+ __version__ = "1.1.4626"
18
18
 
19
19
  # Define package exports
20
20
  __all__ = [
@@ -30,6 +30,7 @@ __all__ = [
30
30
  "IntegrationsApi",
31
31
  "IssuesApi",
32
32
  "IssuesV2Api",
33
+ "ModelsApi",
33
34
  "PoliciesApi",
34
35
  "ProductUnitsApi",
35
36
  "RepositoriesApi",
@@ -48,6 +49,7 @@ __all__ = [
48
49
  "ApiAttributeError",
49
50
  "ApiException",
50
51
  "AddIssueCommentDto",
52
+ "AiModelReputationDto",
51
53
  "AiSecretValidationResult",
52
54
  "AmazonEcrKeyIntegrationCreateDto",
53
55
  "AmazonEcrKeyIntegrationEditDto",
@@ -169,6 +171,7 @@ __all__ = [
169
171
  "LegitScoreRequirementType",
170
172
  "ListSortDirection",
171
173
  "ManualCheckDto",
174
+ "ModelReputation",
172
175
  "OriginType",
173
176
  "PackageSource",
174
177
  "PackageType",
@@ -196,6 +199,8 @@ __all__ = [
196
199
  "ProductUnitType",
197
200
  "ProgrammingLanguage",
198
201
  "RepositoriesToContainersOperationDto",
202
+ "RepositoryAutomaticBusinessImpactFactor",
203
+ "RepositoryContextFieldDto",
199
204
  "RepositoryControlDto",
200
205
  "RepositoryDirectory",
201
206
  "RepositoryDto",
@@ -244,6 +249,7 @@ from legit_api_client.api.dependencies_v2_api import DependenciesV2Api as Depend
244
249
  from legit_api_client.api.integrations_api import IntegrationsApi as IntegrationsApi
245
250
  from legit_api_client.api.issues_api import IssuesApi as IssuesApi
246
251
  from legit_api_client.api.issues_v2_api import IssuesV2Api as IssuesV2Api
252
+ from legit_api_client.api.models_api import ModelsApi as ModelsApi
247
253
  from legit_api_client.api.policies_api import PoliciesApi as PoliciesApi
248
254
  from legit_api_client.api.product_units_api import ProductUnitsApi as ProductUnitsApi
249
255
  from legit_api_client.api.repositories_api import RepositoriesApi as RepositoriesApi
@@ -266,6 +272,7 @@ from legit_api_client.exceptions import ApiException as ApiException
266
272
 
267
273
  # import models into sdk package
268
274
  from legit_api_client.models.add_issue_comment_dto import AddIssueCommentDto as AddIssueCommentDto
275
+ from legit_api_client.models.ai_model_reputation_dto import AiModelReputationDto as AiModelReputationDto
269
276
  from legit_api_client.models.ai_secret_validation_result import AiSecretValidationResult as AiSecretValidationResult
270
277
  from legit_api_client.models.amazon_ecr_key_integration_create_dto import AmazonEcrKeyIntegrationCreateDto as AmazonEcrKeyIntegrationCreateDto
271
278
  from legit_api_client.models.amazon_ecr_key_integration_edit_dto import AmazonEcrKeyIntegrationEditDto as AmazonEcrKeyIntegrationEditDto
@@ -387,6 +394,7 @@ from legit_api_client.models.legit_score_requirement_group_type import LegitScor
387
394
  from legit_api_client.models.legit_score_requirement_type import LegitScoreRequirementType as LegitScoreRequirementType
388
395
  from legit_api_client.models.list_sort_direction import ListSortDirection as ListSortDirection
389
396
  from legit_api_client.models.manual_check_dto import ManualCheckDto as ManualCheckDto
397
+ from legit_api_client.models.model_reputation import ModelReputation as ModelReputation
390
398
  from legit_api_client.models.origin_type import OriginType as OriginType
391
399
  from legit_api_client.models.package_source import PackageSource as PackageSource
392
400
  from legit_api_client.models.package_type import PackageType as PackageType
@@ -414,6 +422,8 @@ from legit_api_client.models.product_unit_name_dto import ProductUnitNameDto as
414
422
  from legit_api_client.models.product_unit_type import ProductUnitType as ProductUnitType
415
423
  from legit_api_client.models.programming_language import ProgrammingLanguage as ProgrammingLanguage
416
424
  from legit_api_client.models.repositories_to_containers_operation_dto import RepositoriesToContainersOperationDto as RepositoriesToContainersOperationDto
425
+ from legit_api_client.models.repository_automatic_business_impact_factor import RepositoryAutomaticBusinessImpactFactor as RepositoryAutomaticBusinessImpactFactor
426
+ from legit_api_client.models.repository_context_field_dto import RepositoryContextFieldDto as RepositoryContextFieldDto
417
427
  from legit_api_client.models.repository_control_dto import RepositoryControlDto as RepositoryControlDto
418
428
  from legit_api_client.models.repository_directory import RepositoryDirectory as RepositoryDirectory
419
429
  from legit_api_client.models.repository_dto import RepositoryDto as RepositoryDto
@@ -13,6 +13,7 @@ from legit_api_client.api.dependencies_v2_api import DependenciesV2Api
13
13
  from legit_api_client.api.integrations_api import IntegrationsApi
14
14
  from legit_api_client.api.issues_api import IssuesApi
15
15
  from legit_api_client.api.issues_v2_api import IssuesV2Api
16
+ from legit_api_client.api.models_api import ModelsApi
16
17
  from legit_api_client.api.policies_api import PoliciesApi
17
18
  from legit_api_client.api.product_units_api import ProductUnitsApi
18
19
  from legit_api_client.api.repositories_api import RepositoriesApi
@@ -0,0 +1,588 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Inventory
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+
8
+ The version of the OpenAPI document: 1.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+ import warnings
15
+ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
16
+ from typing import Any, Dict, List, Optional, Tuple, Union
17
+ from typing_extensions import Annotated
18
+
19
+ from pydantic import Field, StrictStr
20
+ from typing import List, Optional
21
+ from typing_extensions import Annotated
22
+ from legit_api_client.models.ai_model_reputation_dto import AiModelReputationDto
23
+
24
+ from legit_api_client.api_client import ApiClient, RequestSerialized
25
+ from legit_api_client.api_response import ApiResponse
26
+ from legit_api_client.rest import RESTResponseType
27
+
28
+
29
+ class ModelsApi:
30
+ """NOTE: This class is auto generated by OpenAPI Generator
31
+ Ref: https://openapi-generator.tech
32
+
33
+ Do not edit the class manually.
34
+ """
35
+
36
+ def __init__(self, api_client=None) -> None:
37
+ if api_client is None:
38
+ api_client = ApiClient.get_default()
39
+ self.api_client = api_client
40
+
41
+
42
+ @validate_call
43
+ def api_v20_ai_models_by_url_get(
44
+ self,
45
+ model_url: Optional[StrictStr] = None,
46
+ _request_timeout: Union[
47
+ None,
48
+ Annotated[StrictFloat, Field(gt=0)],
49
+ Tuple[
50
+ Annotated[StrictFloat, Field(gt=0)],
51
+ Annotated[StrictFloat, Field(gt=0)]
52
+ ]
53
+ ] = None,
54
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
55
+ _content_type: Optional[StrictStr] = None,
56
+ _headers: Optional[Dict[StrictStr, Any]] = None,
57
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
58
+ ) -> None:
59
+ """Get model reputation by hugging face url
60
+
61
+
62
+ :param model_url:
63
+ :type model_url: str
64
+ :param _request_timeout: timeout setting for this request. If one
65
+ number provided, it will be total request
66
+ timeout. It can also be a pair (tuple) of
67
+ (connection, read) timeouts.
68
+ :type _request_timeout: int, tuple(int, int), optional
69
+ :param _request_auth: set to override the auth_settings for an a single
70
+ request; this effectively ignores the
71
+ authentication in the spec for a single request.
72
+ :type _request_auth: dict, optional
73
+ :param _content_type: force content-type for the request.
74
+ :type _content_type: str, Optional
75
+ :param _headers: set to override the headers for a single
76
+ request; this effectively ignores the headers
77
+ in the spec for a single request.
78
+ :type _headers: dict, optional
79
+ :param _host_index: set to override the host_index for a single
80
+ request; this effectively ignores the host_index
81
+ in the spec for a single request.
82
+ :type _host_index: int, optional
83
+ :return: Returns the result object.
84
+ """ # noqa: E501
85
+
86
+ _param = self._api_v20_ai_models_by_url_get_serialize(
87
+ model_url=model_url,
88
+ _request_auth=_request_auth,
89
+ _content_type=_content_type,
90
+ _headers=_headers,
91
+ _host_index=_host_index
92
+ )
93
+
94
+ _response_types_map: Dict[str, Optional[str]] = {
95
+ '200': None,
96
+ }
97
+ response_data = self.api_client.call_api(
98
+ *_param,
99
+ _request_timeout=_request_timeout
100
+ )
101
+ response_data.read()
102
+ return self.api_client.response_deserialize(
103
+ response_data=response_data,
104
+ response_types_map=_response_types_map,
105
+ ).data
106
+
107
+
108
+ @validate_call
109
+ def api_v20_ai_models_by_url_get_with_http_info(
110
+ self,
111
+ model_url: Optional[StrictStr] = None,
112
+ _request_timeout: Union[
113
+ None,
114
+ Annotated[StrictFloat, Field(gt=0)],
115
+ Tuple[
116
+ Annotated[StrictFloat, Field(gt=0)],
117
+ Annotated[StrictFloat, Field(gt=0)]
118
+ ]
119
+ ] = None,
120
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
121
+ _content_type: Optional[StrictStr] = None,
122
+ _headers: Optional[Dict[StrictStr, Any]] = None,
123
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
124
+ ) -> ApiResponse[None]:
125
+ """Get model reputation by hugging face url
126
+
127
+
128
+ :param model_url:
129
+ :type model_url: str
130
+ :param _request_timeout: timeout setting for this request. If one
131
+ number provided, it will be total request
132
+ timeout. It can also be a pair (tuple) of
133
+ (connection, read) timeouts.
134
+ :type _request_timeout: int, tuple(int, int), optional
135
+ :param _request_auth: set to override the auth_settings for an a single
136
+ request; this effectively ignores the
137
+ authentication in the spec for a single request.
138
+ :type _request_auth: dict, optional
139
+ :param _content_type: force content-type for the request.
140
+ :type _content_type: str, Optional
141
+ :param _headers: set to override the headers for a single
142
+ request; this effectively ignores the headers
143
+ in the spec for a single request.
144
+ :type _headers: dict, optional
145
+ :param _host_index: set to override the host_index for a single
146
+ request; this effectively ignores the host_index
147
+ in the spec for a single request.
148
+ :type _host_index: int, optional
149
+ :return: Returns the result object.
150
+ """ # noqa: E501
151
+
152
+ _param = self._api_v20_ai_models_by_url_get_serialize(
153
+ model_url=model_url,
154
+ _request_auth=_request_auth,
155
+ _content_type=_content_type,
156
+ _headers=_headers,
157
+ _host_index=_host_index
158
+ )
159
+
160
+ _response_types_map: Dict[str, Optional[str]] = {
161
+ '200': None,
162
+ }
163
+ response_data = self.api_client.call_api(
164
+ *_param,
165
+ _request_timeout=_request_timeout
166
+ )
167
+ response_data.read()
168
+ return self.api_client.response_deserialize(
169
+ response_data=response_data,
170
+ response_types_map=_response_types_map,
171
+ )
172
+
173
+
174
+ @validate_call
175
+ def api_v20_ai_models_by_url_get_without_preload_content(
176
+ self,
177
+ model_url: Optional[StrictStr] = None,
178
+ _request_timeout: Union[
179
+ None,
180
+ Annotated[StrictFloat, Field(gt=0)],
181
+ Tuple[
182
+ Annotated[StrictFloat, Field(gt=0)],
183
+ Annotated[StrictFloat, Field(gt=0)]
184
+ ]
185
+ ] = None,
186
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
187
+ _content_type: Optional[StrictStr] = None,
188
+ _headers: Optional[Dict[StrictStr, Any]] = None,
189
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
190
+ ) -> RESTResponseType:
191
+ """Get model reputation by hugging face url
192
+
193
+
194
+ :param model_url:
195
+ :type model_url: str
196
+ :param _request_timeout: timeout setting for this request. If one
197
+ number provided, it will be total request
198
+ timeout. It can also be a pair (tuple) of
199
+ (connection, read) timeouts.
200
+ :type _request_timeout: int, tuple(int, int), optional
201
+ :param _request_auth: set to override the auth_settings for an a single
202
+ request; this effectively ignores the
203
+ authentication in the spec for a single request.
204
+ :type _request_auth: dict, optional
205
+ :param _content_type: force content-type for the request.
206
+ :type _content_type: str, Optional
207
+ :param _headers: set to override the headers for a single
208
+ request; this effectively ignores the headers
209
+ in the spec for a single request.
210
+ :type _headers: dict, optional
211
+ :param _host_index: set to override the host_index for a single
212
+ request; this effectively ignores the host_index
213
+ in the spec for a single request.
214
+ :type _host_index: int, optional
215
+ :return: Returns the result object.
216
+ """ # noqa: E501
217
+
218
+ _param = self._api_v20_ai_models_by_url_get_serialize(
219
+ model_url=model_url,
220
+ _request_auth=_request_auth,
221
+ _content_type=_content_type,
222
+ _headers=_headers,
223
+ _host_index=_host_index
224
+ )
225
+
226
+ _response_types_map: Dict[str, Optional[str]] = {
227
+ '200': None,
228
+ }
229
+ response_data = self.api_client.call_api(
230
+ *_param,
231
+ _request_timeout=_request_timeout
232
+ )
233
+ return response_data.response
234
+
235
+
236
+ def _api_v20_ai_models_by_url_get_serialize(
237
+ self,
238
+ model_url,
239
+ _request_auth,
240
+ _content_type,
241
+ _headers,
242
+ _host_index,
243
+ ) -> RequestSerialized:
244
+
245
+ _host = None
246
+
247
+ _collection_formats: Dict[str, str] = {
248
+ }
249
+
250
+ _path_params: Dict[str, str] = {}
251
+ _query_params: List[Tuple[str, str]] = []
252
+ _header_params: Dict[str, Optional[str]] = _headers or {}
253
+ _form_params: List[Tuple[str, str]] = []
254
+ _files: Dict[
255
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
256
+ ] = {}
257
+ _body_params: Optional[bytes] = None
258
+
259
+ # process the path parameters
260
+ # process the query parameters
261
+ if model_url is not None:
262
+
263
+ _query_params.append(('modelUrl', model_url))
264
+
265
+ # process the header parameters
266
+ # process the form parameters
267
+ # process the body parameter
268
+
269
+
270
+
271
+
272
+ # authentication setting
273
+ _auth_settings: List[str] = [
274
+ 'BearerAuth'
275
+ ]
276
+
277
+ return self.api_client.param_serialize(
278
+ method='GET',
279
+ resource_path='/api/v2.0/ai-models/by-url',
280
+ path_params=_path_params,
281
+ query_params=_query_params,
282
+ header_params=_header_params,
283
+ body=_body_params,
284
+ post_params=_form_params,
285
+ files=_files,
286
+ auth_settings=_auth_settings,
287
+ collection_formats=_collection_formats,
288
+ _host=_host,
289
+ _request_auth=_request_auth
290
+ )
291
+
292
+
293
+
294
+
295
+ @validate_call
296
+ def api_v20_ai_models_get(
297
+ self,
298
+ page_number: Optional[Annotated[int, Field(le=2147483647, strict=True, ge=1)]] = None,
299
+ page_size: Optional[Annotated[int, Field(le=100, strict=True, ge=1)]] = None,
300
+ search: Optional[StrictStr] = None,
301
+ _request_timeout: Union[
302
+ None,
303
+ Annotated[StrictFloat, Field(gt=0)],
304
+ Tuple[
305
+ Annotated[StrictFloat, Field(gt=0)],
306
+ Annotated[StrictFloat, Field(gt=0)]
307
+ ]
308
+ ] = None,
309
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
310
+ _content_type: Optional[StrictStr] = None,
311
+ _headers: Optional[Dict[StrictStr, Any]] = None,
312
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
313
+ ) -> List[AiModelReputationDto]:
314
+ """Get model reputation by name
315
+
316
+
317
+ :param page_number:
318
+ :type page_number: int
319
+ :param page_size:
320
+ :type page_size: int
321
+ :param search:
322
+ :type search: str
323
+ :param _request_timeout: timeout setting for this request. If one
324
+ number provided, it will be total request
325
+ timeout. It can also be a pair (tuple) of
326
+ (connection, read) timeouts.
327
+ :type _request_timeout: int, tuple(int, int), optional
328
+ :param _request_auth: set to override the auth_settings for an a single
329
+ request; this effectively ignores the
330
+ authentication in the spec for a single request.
331
+ :type _request_auth: dict, optional
332
+ :param _content_type: force content-type for the request.
333
+ :type _content_type: str, Optional
334
+ :param _headers: set to override the headers for a single
335
+ request; this effectively ignores the headers
336
+ in the spec for a single request.
337
+ :type _headers: dict, optional
338
+ :param _host_index: set to override the host_index for a single
339
+ request; this effectively ignores the host_index
340
+ in the spec for a single request.
341
+ :type _host_index: int, optional
342
+ :return: Returns the result object.
343
+ """ # noqa: E501
344
+
345
+ _param = self._api_v20_ai_models_get_serialize(
346
+ page_number=page_number,
347
+ page_size=page_size,
348
+ search=search,
349
+ _request_auth=_request_auth,
350
+ _content_type=_content_type,
351
+ _headers=_headers,
352
+ _host_index=_host_index
353
+ )
354
+
355
+ _response_types_map: Dict[str, Optional[str]] = {
356
+ '200': "List[AiModelReputationDto]",
357
+ }
358
+ response_data = self.api_client.call_api(
359
+ *_param,
360
+ _request_timeout=_request_timeout
361
+ )
362
+ response_data.read()
363
+ return self.api_client.response_deserialize(
364
+ response_data=response_data,
365
+ response_types_map=_response_types_map,
366
+ ).data
367
+
368
+
369
+ @validate_call
370
+ def api_v20_ai_models_get_with_http_info(
371
+ self,
372
+ page_number: Optional[Annotated[int, Field(le=2147483647, strict=True, ge=1)]] = None,
373
+ page_size: Optional[Annotated[int, Field(le=100, strict=True, ge=1)]] = None,
374
+ search: Optional[StrictStr] = None,
375
+ _request_timeout: Union[
376
+ None,
377
+ Annotated[StrictFloat, Field(gt=0)],
378
+ Tuple[
379
+ Annotated[StrictFloat, Field(gt=0)],
380
+ Annotated[StrictFloat, Field(gt=0)]
381
+ ]
382
+ ] = None,
383
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
384
+ _content_type: Optional[StrictStr] = None,
385
+ _headers: Optional[Dict[StrictStr, Any]] = None,
386
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
387
+ ) -> ApiResponse[List[AiModelReputationDto]]:
388
+ """Get model reputation by name
389
+
390
+
391
+ :param page_number:
392
+ :type page_number: int
393
+ :param page_size:
394
+ :type page_size: int
395
+ :param search:
396
+ :type search: str
397
+ :param _request_timeout: timeout setting for this request. If one
398
+ number provided, it will be total request
399
+ timeout. It can also be a pair (tuple) of
400
+ (connection, read) timeouts.
401
+ :type _request_timeout: int, tuple(int, int), optional
402
+ :param _request_auth: set to override the auth_settings for an a single
403
+ request; this effectively ignores the
404
+ authentication in the spec for a single request.
405
+ :type _request_auth: dict, optional
406
+ :param _content_type: force content-type for the request.
407
+ :type _content_type: str, Optional
408
+ :param _headers: set to override the headers for a single
409
+ request; this effectively ignores the headers
410
+ in the spec for a single request.
411
+ :type _headers: dict, optional
412
+ :param _host_index: set to override the host_index for a single
413
+ request; this effectively ignores the host_index
414
+ in the spec for a single request.
415
+ :type _host_index: int, optional
416
+ :return: Returns the result object.
417
+ """ # noqa: E501
418
+
419
+ _param = self._api_v20_ai_models_get_serialize(
420
+ page_number=page_number,
421
+ page_size=page_size,
422
+ search=search,
423
+ _request_auth=_request_auth,
424
+ _content_type=_content_type,
425
+ _headers=_headers,
426
+ _host_index=_host_index
427
+ )
428
+
429
+ _response_types_map: Dict[str, Optional[str]] = {
430
+ '200': "List[AiModelReputationDto]",
431
+ }
432
+ response_data = self.api_client.call_api(
433
+ *_param,
434
+ _request_timeout=_request_timeout
435
+ )
436
+ response_data.read()
437
+ return self.api_client.response_deserialize(
438
+ response_data=response_data,
439
+ response_types_map=_response_types_map,
440
+ )
441
+
442
+
443
+ @validate_call
444
+ def api_v20_ai_models_get_without_preload_content(
445
+ self,
446
+ page_number: Optional[Annotated[int, Field(le=2147483647, strict=True, ge=1)]] = None,
447
+ page_size: Optional[Annotated[int, Field(le=100, strict=True, ge=1)]] = None,
448
+ search: Optional[StrictStr] = None,
449
+ _request_timeout: Union[
450
+ None,
451
+ Annotated[StrictFloat, Field(gt=0)],
452
+ Tuple[
453
+ Annotated[StrictFloat, Field(gt=0)],
454
+ Annotated[StrictFloat, Field(gt=0)]
455
+ ]
456
+ ] = None,
457
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
458
+ _content_type: Optional[StrictStr] = None,
459
+ _headers: Optional[Dict[StrictStr, Any]] = None,
460
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
461
+ ) -> RESTResponseType:
462
+ """Get model reputation by name
463
+
464
+
465
+ :param page_number:
466
+ :type page_number: int
467
+ :param page_size:
468
+ :type page_size: int
469
+ :param search:
470
+ :type search: str
471
+ :param _request_timeout: timeout setting for this request. If one
472
+ number provided, it will be total request
473
+ timeout. It can also be a pair (tuple) of
474
+ (connection, read) timeouts.
475
+ :type _request_timeout: int, tuple(int, int), optional
476
+ :param _request_auth: set to override the auth_settings for an a single
477
+ request; this effectively ignores the
478
+ authentication in the spec for a single request.
479
+ :type _request_auth: dict, optional
480
+ :param _content_type: force content-type for the request.
481
+ :type _content_type: str, Optional
482
+ :param _headers: set to override the headers for a single
483
+ request; this effectively ignores the headers
484
+ in the spec for a single request.
485
+ :type _headers: dict, optional
486
+ :param _host_index: set to override the host_index for a single
487
+ request; this effectively ignores the host_index
488
+ in the spec for a single request.
489
+ :type _host_index: int, optional
490
+ :return: Returns the result object.
491
+ """ # noqa: E501
492
+
493
+ _param = self._api_v20_ai_models_get_serialize(
494
+ page_number=page_number,
495
+ page_size=page_size,
496
+ search=search,
497
+ _request_auth=_request_auth,
498
+ _content_type=_content_type,
499
+ _headers=_headers,
500
+ _host_index=_host_index
501
+ )
502
+
503
+ _response_types_map: Dict[str, Optional[str]] = {
504
+ '200': "List[AiModelReputationDto]",
505
+ }
506
+ response_data = self.api_client.call_api(
507
+ *_param,
508
+ _request_timeout=_request_timeout
509
+ )
510
+ return response_data.response
511
+
512
+
513
+ def _api_v20_ai_models_get_serialize(
514
+ self,
515
+ page_number,
516
+ page_size,
517
+ search,
518
+ _request_auth,
519
+ _content_type,
520
+ _headers,
521
+ _host_index,
522
+ ) -> RequestSerialized:
523
+
524
+ _host = None
525
+
526
+ _collection_formats: Dict[str, str] = {
527
+ }
528
+
529
+ _path_params: Dict[str, str] = {}
530
+ _query_params: List[Tuple[str, str]] = []
531
+ _header_params: Dict[str, Optional[str]] = _headers or {}
532
+ _form_params: List[Tuple[str, str]] = []
533
+ _files: Dict[
534
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
535
+ ] = {}
536
+ _body_params: Optional[bytes] = None
537
+
538
+ # process the path parameters
539
+ # process the query parameters
540
+ if page_number is not None:
541
+
542
+ _query_params.append(('pageNumber', page_number))
543
+
544
+ if page_size is not None:
545
+
546
+ _query_params.append(('pageSize', page_size))
547
+
548
+ if search is not None:
549
+
550
+ _query_params.append(('search', search))
551
+
552
+ # process the header parameters
553
+ # process the form parameters
554
+ # process the body parameter
555
+
556
+
557
+ # set the HTTP header `Accept`
558
+ if 'Accept' not in _header_params:
559
+ _header_params['Accept'] = self.api_client.select_header_accept(
560
+ [
561
+ 'text/plain',
562
+ 'application/json',
563
+ 'text/json'
564
+ ]
565
+ )
566
+
567
+
568
+ # authentication setting
569
+ _auth_settings: List[str] = [
570
+ 'BearerAuth'
571
+ ]
572
+
573
+ return self.api_client.param_serialize(
574
+ method='GET',
575
+ resource_path='/api/v2.0/ai-models',
576
+ path_params=_path_params,
577
+ query_params=_query_params,
578
+ header_params=_header_params,
579
+ body=_body_params,
580
+ post_params=_form_params,
581
+ files=_files,
582
+ auth_settings=_auth_settings,
583
+ collection_formats=_collection_formats,
584
+ _host=_host,
585
+ _request_auth=_request_auth
586
+ )
587
+
588
+