legit-api-client 1.1.4568__py3-none-any.whl → 1.1.4584__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.
- legit_api_client/__init__.py +7 -1
- legit_api_client/api/__init__.py +1 -0
- legit_api_client/api/models_api.py +335 -0
- legit_api_client/api_client.py +1 -1
- legit_api_client/configuration.py +1 -1
- legit_api_client/models/__init__.py +2 -0
- legit_api_client/models/ai_model_reputation_dto.py +102 -0
- legit_api_client/models/model_reputation.py +39 -0
- legit_api_client/models/product_connection_type.py +2 -0
- {legit_api_client-1.1.4568.dist-info → legit_api_client-1.1.4584.dist-info}/METADATA +5 -2
- {legit_api_client-1.1.4568.dist-info → legit_api_client-1.1.4584.dist-info}/RECORD +13 -10
- {legit_api_client-1.1.4568.dist-info → legit_api_client-1.1.4584.dist-info}/WHEEL +0 -0
- {legit_api_client-1.1.4568.dist-info → legit_api_client-1.1.4584.dist-info}/top_level.txt +0 -0
legit_api_client/__init__.py
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
""" # noqa: E501
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
__version__ = "1.1.
|
|
17
|
+
__version__ = "1.1.4584"
|
|
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",
|
|
@@ -246,6 +249,7 @@ from legit_api_client.api.dependencies_v2_api import DependenciesV2Api as Depend
|
|
|
246
249
|
from legit_api_client.api.integrations_api import IntegrationsApi as IntegrationsApi
|
|
247
250
|
from legit_api_client.api.issues_api import IssuesApi as IssuesApi
|
|
248
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
|
|
249
253
|
from legit_api_client.api.policies_api import PoliciesApi as PoliciesApi
|
|
250
254
|
from legit_api_client.api.product_units_api import ProductUnitsApi as ProductUnitsApi
|
|
251
255
|
from legit_api_client.api.repositories_api import RepositoriesApi as RepositoriesApi
|
|
@@ -268,6 +272,7 @@ from legit_api_client.exceptions import ApiException as ApiException
|
|
|
268
272
|
|
|
269
273
|
# import models into sdk package
|
|
270
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
|
|
271
276
|
from legit_api_client.models.ai_secret_validation_result import AiSecretValidationResult as AiSecretValidationResult
|
|
272
277
|
from legit_api_client.models.amazon_ecr_key_integration_create_dto import AmazonEcrKeyIntegrationCreateDto as AmazonEcrKeyIntegrationCreateDto
|
|
273
278
|
from legit_api_client.models.amazon_ecr_key_integration_edit_dto import AmazonEcrKeyIntegrationEditDto as AmazonEcrKeyIntegrationEditDto
|
|
@@ -389,6 +394,7 @@ from legit_api_client.models.legit_score_requirement_group_type import LegitScor
|
|
|
389
394
|
from legit_api_client.models.legit_score_requirement_type import LegitScoreRequirementType as LegitScoreRequirementType
|
|
390
395
|
from legit_api_client.models.list_sort_direction import ListSortDirection as ListSortDirection
|
|
391
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
|
|
392
398
|
from legit_api_client.models.origin_type import OriginType as OriginType
|
|
393
399
|
from legit_api_client.models.package_source import PackageSource as PackageSource
|
|
394
400
|
from legit_api_client.models.package_type import PackageType as PackageType
|
legit_api_client/api/__init__.py
CHANGED
|
@@ -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,335 @@
|
|
|
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_get(
|
|
44
|
+
self,
|
|
45
|
+
page_number: Optional[Annotated[int, Field(le=2147483647, strict=True, ge=1)]] = None,
|
|
46
|
+
page_size: Optional[Annotated[int, Field(le=100, strict=True, ge=1)]] = None,
|
|
47
|
+
search: Optional[StrictStr] = None,
|
|
48
|
+
_request_timeout: Union[
|
|
49
|
+
None,
|
|
50
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
51
|
+
Tuple[
|
|
52
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
53
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
54
|
+
]
|
|
55
|
+
] = None,
|
|
56
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
57
|
+
_content_type: Optional[StrictStr] = None,
|
|
58
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
59
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
60
|
+
) -> List[AiModelReputationDto]:
|
|
61
|
+
"""Get model by name
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
:param page_number:
|
|
65
|
+
:type page_number: int
|
|
66
|
+
:param page_size:
|
|
67
|
+
:type page_size: int
|
|
68
|
+
:param search:
|
|
69
|
+
:type search: str
|
|
70
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
71
|
+
number provided, it will be total request
|
|
72
|
+
timeout. It can also be a pair (tuple) of
|
|
73
|
+
(connection, read) timeouts.
|
|
74
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
75
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
76
|
+
request; this effectively ignores the
|
|
77
|
+
authentication in the spec for a single request.
|
|
78
|
+
:type _request_auth: dict, optional
|
|
79
|
+
:param _content_type: force content-type for the request.
|
|
80
|
+
:type _content_type: str, Optional
|
|
81
|
+
:param _headers: set to override the headers for a single
|
|
82
|
+
request; this effectively ignores the headers
|
|
83
|
+
in the spec for a single request.
|
|
84
|
+
:type _headers: dict, optional
|
|
85
|
+
:param _host_index: set to override the host_index for a single
|
|
86
|
+
request; this effectively ignores the host_index
|
|
87
|
+
in the spec for a single request.
|
|
88
|
+
:type _host_index: int, optional
|
|
89
|
+
:return: Returns the result object.
|
|
90
|
+
""" # noqa: E501
|
|
91
|
+
|
|
92
|
+
_param = self._api_v20_ai_models_get_serialize(
|
|
93
|
+
page_number=page_number,
|
|
94
|
+
page_size=page_size,
|
|
95
|
+
search=search,
|
|
96
|
+
_request_auth=_request_auth,
|
|
97
|
+
_content_type=_content_type,
|
|
98
|
+
_headers=_headers,
|
|
99
|
+
_host_index=_host_index
|
|
100
|
+
)
|
|
101
|
+
|
|
102
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
103
|
+
'200': "List[AiModelReputationDto]",
|
|
104
|
+
}
|
|
105
|
+
response_data = self.api_client.call_api(
|
|
106
|
+
*_param,
|
|
107
|
+
_request_timeout=_request_timeout
|
|
108
|
+
)
|
|
109
|
+
response_data.read()
|
|
110
|
+
return self.api_client.response_deserialize(
|
|
111
|
+
response_data=response_data,
|
|
112
|
+
response_types_map=_response_types_map,
|
|
113
|
+
).data
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
@validate_call
|
|
117
|
+
def api_v20_ai_models_get_with_http_info(
|
|
118
|
+
self,
|
|
119
|
+
page_number: Optional[Annotated[int, Field(le=2147483647, strict=True, ge=1)]] = None,
|
|
120
|
+
page_size: Optional[Annotated[int, Field(le=100, strict=True, ge=1)]] = None,
|
|
121
|
+
search: Optional[StrictStr] = None,
|
|
122
|
+
_request_timeout: Union[
|
|
123
|
+
None,
|
|
124
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
125
|
+
Tuple[
|
|
126
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
127
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
128
|
+
]
|
|
129
|
+
] = None,
|
|
130
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
131
|
+
_content_type: Optional[StrictStr] = None,
|
|
132
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
133
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
134
|
+
) -> ApiResponse[List[AiModelReputationDto]]:
|
|
135
|
+
"""Get model by name
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
:param page_number:
|
|
139
|
+
:type page_number: int
|
|
140
|
+
:param page_size:
|
|
141
|
+
:type page_size: int
|
|
142
|
+
:param search:
|
|
143
|
+
:type search: str
|
|
144
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
145
|
+
number provided, it will be total request
|
|
146
|
+
timeout. It can also be a pair (tuple) of
|
|
147
|
+
(connection, read) timeouts.
|
|
148
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
149
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
150
|
+
request; this effectively ignores the
|
|
151
|
+
authentication in the spec for a single request.
|
|
152
|
+
:type _request_auth: dict, optional
|
|
153
|
+
:param _content_type: force content-type for the request.
|
|
154
|
+
:type _content_type: str, Optional
|
|
155
|
+
:param _headers: set to override the headers for a single
|
|
156
|
+
request; this effectively ignores the headers
|
|
157
|
+
in the spec for a single request.
|
|
158
|
+
:type _headers: dict, optional
|
|
159
|
+
:param _host_index: set to override the host_index for a single
|
|
160
|
+
request; this effectively ignores the host_index
|
|
161
|
+
in the spec for a single request.
|
|
162
|
+
:type _host_index: int, optional
|
|
163
|
+
:return: Returns the result object.
|
|
164
|
+
""" # noqa: E501
|
|
165
|
+
|
|
166
|
+
_param = self._api_v20_ai_models_get_serialize(
|
|
167
|
+
page_number=page_number,
|
|
168
|
+
page_size=page_size,
|
|
169
|
+
search=search,
|
|
170
|
+
_request_auth=_request_auth,
|
|
171
|
+
_content_type=_content_type,
|
|
172
|
+
_headers=_headers,
|
|
173
|
+
_host_index=_host_index
|
|
174
|
+
)
|
|
175
|
+
|
|
176
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
177
|
+
'200': "List[AiModelReputationDto]",
|
|
178
|
+
}
|
|
179
|
+
response_data = self.api_client.call_api(
|
|
180
|
+
*_param,
|
|
181
|
+
_request_timeout=_request_timeout
|
|
182
|
+
)
|
|
183
|
+
response_data.read()
|
|
184
|
+
return self.api_client.response_deserialize(
|
|
185
|
+
response_data=response_data,
|
|
186
|
+
response_types_map=_response_types_map,
|
|
187
|
+
)
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
@validate_call
|
|
191
|
+
def api_v20_ai_models_get_without_preload_content(
|
|
192
|
+
self,
|
|
193
|
+
page_number: Optional[Annotated[int, Field(le=2147483647, strict=True, ge=1)]] = None,
|
|
194
|
+
page_size: Optional[Annotated[int, Field(le=100, strict=True, ge=1)]] = None,
|
|
195
|
+
search: Optional[StrictStr] = None,
|
|
196
|
+
_request_timeout: Union[
|
|
197
|
+
None,
|
|
198
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
199
|
+
Tuple[
|
|
200
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
201
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
202
|
+
]
|
|
203
|
+
] = None,
|
|
204
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
205
|
+
_content_type: Optional[StrictStr] = None,
|
|
206
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
207
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
208
|
+
) -> RESTResponseType:
|
|
209
|
+
"""Get model by name
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
:param page_number:
|
|
213
|
+
:type page_number: int
|
|
214
|
+
:param page_size:
|
|
215
|
+
:type page_size: int
|
|
216
|
+
:param search:
|
|
217
|
+
:type search: str
|
|
218
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
219
|
+
number provided, it will be total request
|
|
220
|
+
timeout. It can also be a pair (tuple) of
|
|
221
|
+
(connection, read) timeouts.
|
|
222
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
223
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
224
|
+
request; this effectively ignores the
|
|
225
|
+
authentication in the spec for a single request.
|
|
226
|
+
:type _request_auth: dict, optional
|
|
227
|
+
:param _content_type: force content-type for the request.
|
|
228
|
+
:type _content_type: str, Optional
|
|
229
|
+
:param _headers: set to override the headers for a single
|
|
230
|
+
request; this effectively ignores the headers
|
|
231
|
+
in the spec for a single request.
|
|
232
|
+
:type _headers: dict, optional
|
|
233
|
+
:param _host_index: set to override the host_index for a single
|
|
234
|
+
request; this effectively ignores the host_index
|
|
235
|
+
in the spec for a single request.
|
|
236
|
+
:type _host_index: int, optional
|
|
237
|
+
:return: Returns the result object.
|
|
238
|
+
""" # noqa: E501
|
|
239
|
+
|
|
240
|
+
_param = self._api_v20_ai_models_get_serialize(
|
|
241
|
+
page_number=page_number,
|
|
242
|
+
page_size=page_size,
|
|
243
|
+
search=search,
|
|
244
|
+
_request_auth=_request_auth,
|
|
245
|
+
_content_type=_content_type,
|
|
246
|
+
_headers=_headers,
|
|
247
|
+
_host_index=_host_index
|
|
248
|
+
)
|
|
249
|
+
|
|
250
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
251
|
+
'200': "List[AiModelReputationDto]",
|
|
252
|
+
}
|
|
253
|
+
response_data = self.api_client.call_api(
|
|
254
|
+
*_param,
|
|
255
|
+
_request_timeout=_request_timeout
|
|
256
|
+
)
|
|
257
|
+
return response_data.response
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
def _api_v20_ai_models_get_serialize(
|
|
261
|
+
self,
|
|
262
|
+
page_number,
|
|
263
|
+
page_size,
|
|
264
|
+
search,
|
|
265
|
+
_request_auth,
|
|
266
|
+
_content_type,
|
|
267
|
+
_headers,
|
|
268
|
+
_host_index,
|
|
269
|
+
) -> RequestSerialized:
|
|
270
|
+
|
|
271
|
+
_host = None
|
|
272
|
+
|
|
273
|
+
_collection_formats: Dict[str, str] = {
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
_path_params: Dict[str, str] = {}
|
|
277
|
+
_query_params: List[Tuple[str, str]] = []
|
|
278
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
279
|
+
_form_params: List[Tuple[str, str]] = []
|
|
280
|
+
_files: Dict[
|
|
281
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
282
|
+
] = {}
|
|
283
|
+
_body_params: Optional[bytes] = None
|
|
284
|
+
|
|
285
|
+
# process the path parameters
|
|
286
|
+
# process the query parameters
|
|
287
|
+
if page_number is not None:
|
|
288
|
+
|
|
289
|
+
_query_params.append(('pageNumber', page_number))
|
|
290
|
+
|
|
291
|
+
if page_size is not None:
|
|
292
|
+
|
|
293
|
+
_query_params.append(('pageSize', page_size))
|
|
294
|
+
|
|
295
|
+
if search is not None:
|
|
296
|
+
|
|
297
|
+
_query_params.append(('search', search))
|
|
298
|
+
|
|
299
|
+
# process the header parameters
|
|
300
|
+
# process the form parameters
|
|
301
|
+
# process the body parameter
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
# set the HTTP header `Accept`
|
|
305
|
+
if 'Accept' not in _header_params:
|
|
306
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
307
|
+
[
|
|
308
|
+
'text/plain',
|
|
309
|
+
'application/json',
|
|
310
|
+
'text/json'
|
|
311
|
+
]
|
|
312
|
+
)
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
# authentication setting
|
|
316
|
+
_auth_settings: List[str] = [
|
|
317
|
+
'BearerAuth'
|
|
318
|
+
]
|
|
319
|
+
|
|
320
|
+
return self.api_client.param_serialize(
|
|
321
|
+
method='GET',
|
|
322
|
+
resource_path='/api/v2.0/ai-models',
|
|
323
|
+
path_params=_path_params,
|
|
324
|
+
query_params=_query_params,
|
|
325
|
+
header_params=_header_params,
|
|
326
|
+
body=_body_params,
|
|
327
|
+
post_params=_form_params,
|
|
328
|
+
files=_files,
|
|
329
|
+
auth_settings=_auth_settings,
|
|
330
|
+
collection_formats=_collection_formats,
|
|
331
|
+
_host=_host,
|
|
332
|
+
_request_auth=_request_auth
|
|
333
|
+
)
|
|
334
|
+
|
|
335
|
+
|
legit_api_client/api_client.py
CHANGED
|
@@ -91,7 +91,7 @@ class ApiClient:
|
|
|
91
91
|
self.default_headers[header_name] = header_value
|
|
92
92
|
self.cookie = cookie
|
|
93
93
|
# Set default User-Agent.
|
|
94
|
-
self.user_agent = 'OpenAPI-Generator/1.1.
|
|
94
|
+
self.user_agent = 'OpenAPI-Generator/1.1.4584/python'
|
|
95
95
|
self.client_side_validation = configuration.client_side_validation
|
|
96
96
|
|
|
97
97
|
def __enter__(self):
|
|
@@ -516,7 +516,7 @@ class Configuration:
|
|
|
516
516
|
"OS: {env}\n"\
|
|
517
517
|
"Python Version: {pyversion}\n"\
|
|
518
518
|
"Version of the API: 1.0\n"\
|
|
519
|
-
"SDK Package Version: 1.1.
|
|
519
|
+
"SDK Package Version: 1.1.4584".\
|
|
520
520
|
format(env=sys.platform, pyversion=sys.version)
|
|
521
521
|
|
|
522
522
|
def get_host_settings(self) -> List[HostSetting]:
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
# import models into model package
|
|
16
16
|
from legit_api_client.models.add_issue_comment_dto import AddIssueCommentDto
|
|
17
|
+
from legit_api_client.models.ai_model_reputation_dto import AiModelReputationDto
|
|
17
18
|
from legit_api_client.models.ai_secret_validation_result import AiSecretValidationResult
|
|
18
19
|
from legit_api_client.models.amazon_ecr_key_integration_create_dto import AmazonEcrKeyIntegrationCreateDto
|
|
19
20
|
from legit_api_client.models.amazon_ecr_key_integration_edit_dto import AmazonEcrKeyIntegrationEditDto
|
|
@@ -135,6 +136,7 @@ from legit_api_client.models.legit_score_requirement_group_type import LegitScor
|
|
|
135
136
|
from legit_api_client.models.legit_score_requirement_type import LegitScoreRequirementType
|
|
136
137
|
from legit_api_client.models.list_sort_direction import ListSortDirection
|
|
137
138
|
from legit_api_client.models.manual_check_dto import ManualCheckDto
|
|
139
|
+
from legit_api_client.models.model_reputation import ModelReputation
|
|
138
140
|
from legit_api_client.models.origin_type import OriginType
|
|
139
141
|
from legit_api_client.models.package_source import PackageSource
|
|
140
142
|
from legit_api_client.models.package_type import PackageType
|
|
@@ -0,0 +1,102 @@
|
|
|
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
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
21
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
+
from legit_api_client.models.model_reputation import ModelReputation
|
|
23
|
+
from typing import Optional, Set
|
|
24
|
+
from typing_extensions import Self
|
|
25
|
+
|
|
26
|
+
class AiModelReputationDto(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
AiModelReputationDto
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
model_reputation: Optional[ModelReputation] = Field(default=None, alias="modelReputation")
|
|
31
|
+
reputation_breakdown: Optional[StrictStr] = Field(default=None, alias="reputationBreakdown")
|
|
32
|
+
name: Optional[StrictStr] = None
|
|
33
|
+
__properties: ClassVar[List[str]] = ["modelReputation", "reputationBreakdown", "name"]
|
|
34
|
+
|
|
35
|
+
model_config = ConfigDict(
|
|
36
|
+
populate_by_name=True,
|
|
37
|
+
validate_assignment=True,
|
|
38
|
+
protected_namespaces=(),
|
|
39
|
+
)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
def to_str(self) -> str:
|
|
43
|
+
"""Returns the string representation of the model using alias"""
|
|
44
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
45
|
+
|
|
46
|
+
def to_json(self) -> str:
|
|
47
|
+
"""Returns the JSON representation of the model using alias"""
|
|
48
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
49
|
+
return json.dumps(self.to_dict())
|
|
50
|
+
|
|
51
|
+
@classmethod
|
|
52
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
53
|
+
"""Create an instance of AiModelReputationDto from a JSON string"""
|
|
54
|
+
return cls.from_dict(json.loads(json_str))
|
|
55
|
+
|
|
56
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
57
|
+
"""Return the dictionary representation of the model using alias.
|
|
58
|
+
|
|
59
|
+
This has the following differences from calling pydantic's
|
|
60
|
+
`self.model_dump(by_alias=True)`:
|
|
61
|
+
|
|
62
|
+
* `None` is only added to the output dict for nullable fields that
|
|
63
|
+
were set at model initialization. Other fields with value `None`
|
|
64
|
+
are ignored.
|
|
65
|
+
"""
|
|
66
|
+
excluded_fields: Set[str] = set([
|
|
67
|
+
])
|
|
68
|
+
|
|
69
|
+
_dict = self.model_dump(
|
|
70
|
+
by_alias=True,
|
|
71
|
+
exclude=excluded_fields,
|
|
72
|
+
exclude_none=True,
|
|
73
|
+
)
|
|
74
|
+
# set to None if reputation_breakdown (nullable) is None
|
|
75
|
+
# and model_fields_set contains the field
|
|
76
|
+
if self.reputation_breakdown is None and "reputation_breakdown" in self.model_fields_set:
|
|
77
|
+
_dict['reputationBreakdown'] = None
|
|
78
|
+
|
|
79
|
+
# set to None if name (nullable) is None
|
|
80
|
+
# and model_fields_set contains the field
|
|
81
|
+
if self.name is None and "name" in self.model_fields_set:
|
|
82
|
+
_dict['name'] = None
|
|
83
|
+
|
|
84
|
+
return _dict
|
|
85
|
+
|
|
86
|
+
@classmethod
|
|
87
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
88
|
+
"""Create an instance of AiModelReputationDto from a dict"""
|
|
89
|
+
if obj is None:
|
|
90
|
+
return None
|
|
91
|
+
|
|
92
|
+
if not isinstance(obj, dict):
|
|
93
|
+
return cls.model_validate(obj)
|
|
94
|
+
|
|
95
|
+
_obj = cls.model_validate({
|
|
96
|
+
"modelReputation": obj.get("modelReputation"),
|
|
97
|
+
"reputationBreakdown": obj.get("reputationBreakdown"),
|
|
98
|
+
"name": obj.get("name")
|
|
99
|
+
})
|
|
100
|
+
return _obj
|
|
101
|
+
|
|
102
|
+
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import json
|
|
17
|
+
from enum import Enum
|
|
18
|
+
from typing_extensions import Self
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class ModelReputation(str, Enum):
|
|
22
|
+
"""
|
|
23
|
+
ModelReputation
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
"""
|
|
27
|
+
allowed enum values
|
|
28
|
+
"""
|
|
29
|
+
NONE = 'None'
|
|
30
|
+
LOW = 'Low'
|
|
31
|
+
MEDIUM = 'Medium'
|
|
32
|
+
HIGH = 'High'
|
|
33
|
+
|
|
34
|
+
@classmethod
|
|
35
|
+
def from_json(cls, json_str: str) -> Self:
|
|
36
|
+
"""Create an instance of ModelReputation from a JSON string"""
|
|
37
|
+
return cls(json.loads(json_str))
|
|
38
|
+
|
|
39
|
+
|
|
@@ -46,6 +46,8 @@ class ProductConnectionType(str, Enum):
|
|
|
46
46
|
AGGREGATEDHOST = 'AggregatedHost'
|
|
47
47
|
CLOUDCOMPUTERESOURCEQUERY = 'CloudComputeResourceQuery'
|
|
48
48
|
CLOUDCOMPUTERESOURCE = 'CloudComputeResource'
|
|
49
|
+
CIWORKFLOWS = 'CiWorkflows'
|
|
50
|
+
CIWORKFLOWSQUERY = 'CiWorkflowsQuery'
|
|
49
51
|
NESTEDPRODUCTREPOSITORY = 'NestedProductRepository'
|
|
50
52
|
|
|
51
53
|
@classmethod
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: legit_api_client
|
|
3
|
-
Version: 1.1.
|
|
3
|
+
Version: 1.1.4584
|
|
4
4
|
Summary: Inventory
|
|
5
5
|
Home-page:
|
|
6
6
|
Author: OpenAPI Generator community
|
|
@@ -22,7 +22,7 @@ No description provided (generated by Openapi Generator https://github.com/opena
|
|
|
22
22
|
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
23
23
|
|
|
24
24
|
- API version: 1.0
|
|
25
|
-
- Package version: 1.1.
|
|
25
|
+
- Package version: 1.1.4584
|
|
26
26
|
- Generator version: 7.18.0
|
|
27
27
|
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
|
|
28
28
|
|
|
@@ -175,6 +175,7 @@ Class | Method | HTTP request | Description
|
|
|
175
175
|
*IssuesV2Api* | [**get_issues_count**](docs/IssuesV2Api.md#get_issues_count) | **GET** /api/v2.0/issues/count | Get the issues count
|
|
176
176
|
*IssuesV2Api* | [**get_issues_v2**](docs/IssuesV2Api.md#get_issues_v2) | **GET** /api/v2.0/issues | Get issues
|
|
177
177
|
*IssuesV2Api* | [**get_issues_vulnerabilities**](docs/IssuesV2Api.md#get_issues_vulnerabilities) | **GET** /api/v2.0/issues/vulnerabilities | Get the vulnerabilities of the given issues
|
|
178
|
+
*ModelsApi* | [**api_v20_ai_models_get**](docs/ModelsApi.md#api_v20_ai_models_get) | **GET** /api/v2.0/ai-models | Get model by name
|
|
178
179
|
*PoliciesApi* | [**api_v10_policies_get**](docs/PoliciesApi.md#api_v10_policies_get) | **GET** /api/v1.0/policies | Get Policies
|
|
179
180
|
*PoliciesApi* | [**get_policy_by_id**](docs/PoliciesApi.md#get_policy_by_id) | **GET** /api/v1.0/policies/{id} | Get Policy by id
|
|
180
181
|
*PoliciesApi* | [**get_policy_by_name**](docs/PoliciesApi.md#get_policy_by_name) | **GET** /api/v1.0/policies/by-name/{name} | Get by Policy name
|
|
@@ -218,6 +219,7 @@ Class | Method | HTTP request | Description
|
|
|
218
219
|
## Documentation For Models
|
|
219
220
|
|
|
220
221
|
- [AddIssueCommentDto](docs/AddIssueCommentDto.md)
|
|
222
|
+
- [AiModelReputationDto](docs/AiModelReputationDto.md)
|
|
221
223
|
- [AiSecretValidationResult](docs/AiSecretValidationResult.md)
|
|
222
224
|
- [AmazonEcrKeyIntegrationCreateDto](docs/AmazonEcrKeyIntegrationCreateDto.md)
|
|
223
225
|
- [AmazonEcrKeyIntegrationEditDto](docs/AmazonEcrKeyIntegrationEditDto.md)
|
|
@@ -339,6 +341,7 @@ Class | Method | HTTP request | Description
|
|
|
339
341
|
- [LegitScoreRequirementType](docs/LegitScoreRequirementType.md)
|
|
340
342
|
- [ListSortDirection](docs/ListSortDirection.md)
|
|
341
343
|
- [ManualCheckDto](docs/ManualCheckDto.md)
|
|
344
|
+
- [ModelReputation](docs/ModelReputation.md)
|
|
342
345
|
- [OriginType](docs/OriginType.md)
|
|
343
346
|
- [PackageSource](docs/PackageSource.md)
|
|
344
347
|
- [PackageType](docs/PackageType.md)
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
legit_api_client/__init__.py,sha256=
|
|
2
|
-
legit_api_client/api_client.py,sha256
|
|
1
|
+
legit_api_client/__init__.py,sha256=DQyQvIlnUwN489WxfD3gdwzzXtTW3BJIUXJwY-POJCc,29409
|
|
2
|
+
legit_api_client/api_client.py,sha256=-H3gtyxa9lvprCAHIFVjZcAUlrYy111pIUKNmNxkMjQ,27804
|
|
3
3
|
legit_api_client/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
|
|
4
|
-
legit_api_client/configuration.py,sha256=
|
|
4
|
+
legit_api_client/configuration.py,sha256=AHyInftnV-6Y5HYnYoiEzAM3V6qi15cnCponRGvVi1A,18537
|
|
5
5
|
legit_api_client/exceptions.py,sha256=FQhdQym8Gv0T7Q5dppOeb-yBbB_jgov4wNAmRaz1EM0,6538
|
|
6
6
|
legit_api_client/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
7
|
legit_api_client/rest.py,sha256=4g4Zi4xX1187Af75nEgTesIYeIJmdpV0pWws4VM2iD0,9657
|
|
8
|
-
legit_api_client/api/__init__.py,sha256=
|
|
8
|
+
legit_api_client/api/__init__.py,sha256=9toQGpkG-SNVQhXEOPTYYlZYvEZt4Up7qbg8jVe5jcg,1441
|
|
9
9
|
legit_api_client/api/amazon_ecr_key_integration_api.py,sha256=MiQ4bzBxPHeaHv-YWHFXNemQK5Q19NBPR_YrhST8bqU,10476
|
|
10
10
|
legit_api_client/api/amazon_ecr_role_integration_api.py,sha256=M4I_SpnGVUHXu-6i47mxbR0Dye62uM7nVOXnpc0opxk,10488
|
|
11
11
|
legit_api_client/api/brokers_api.py,sha256=VcU8AmomvtMO3A0evv6MwwOJAkGLcYitvYSz1KV5V2U,12302
|
|
@@ -18,6 +18,7 @@ legit_api_client/api/dependencies_v2_api.py,sha256=r0Bfunn2AVH214xsW6zddBBf4rvqy
|
|
|
18
18
|
legit_api_client/api/integrations_api.py,sha256=IhQaqexoT_0RBNXKz-_Mw-tDzJeuY2PPRE5IoscWZO8,191902
|
|
19
19
|
legit_api_client/api/issues_api.py,sha256=c9SHDtdM3NEY5bKYlX9_bU2_S4-iUTEttuimiEd3zUM,171765
|
|
20
20
|
legit_api_client/api/issues_v2_api.py,sha256=pSWx4yhGO_zP0z9OOTuFJv7NIz70eVkdR8Aro-17uZU,244070
|
|
21
|
+
legit_api_client/api/models_api.py,sha256=2iB62B0kMUdKP57gXlHnL1p-Kpy46pj6_7KdvyYIIj8,12402
|
|
21
22
|
legit_api_client/api/policies_api.py,sha256=2oJ4T8IUpKD8YXxiPg1FqIaJ699nBc9XvqavUTuyEwE,39158
|
|
22
23
|
legit_api_client/api/product_units_api.py,sha256=FYY4ZS_SysiJ_fHqoPNQV9OEyKjcoWeMHcQ2SiwDbFE,106296
|
|
23
24
|
legit_api_client/api/repositories_api.py,sha256=txLundrKkEVhb54o3E6LfGJswZXHquMHHd6kPMViqB4,109468
|
|
@@ -26,8 +27,9 @@ legit_api_client/api/saved_queries_api.py,sha256=fSrPQjxbno6q8nDInlugohVoBE9BedR
|
|
|
26
27
|
legit_api_client/api/sdlc_assets_api.py,sha256=AkWc7Vr3HhLiEw21SYnIEoBWpUiBaQYM6snqshNoUhE,39773
|
|
27
28
|
legit_api_client/api/tags_api.py,sha256=Rs5-RyIDxQKrDgAFl-RazKhbgbv_q0Q-3wBYeXhSUjE,32570
|
|
28
29
|
legit_api_client/api/workspaces_api.py,sha256=Eb_BTJkE-zt5fnGEY6wnHH6OHp_nboh9TEsOGyxI-eg,85370
|
|
29
|
-
legit_api_client/models/__init__.py,sha256=
|
|
30
|
+
legit_api_client/models/__init__.py,sha256=X-2KNPF1HQS22OGfrVZDTLPN8QHK-CDtGdoHo9nkvyU,15958
|
|
30
31
|
legit_api_client/models/add_issue_comment_dto.py,sha256=yXcBOfZzi0UcojpCcFqpO_umOpZZp53qCX3GY4x2DaQ,2575
|
|
32
|
+
legit_api_client/models/ai_model_reputation_dto.py,sha256=uKH-Gf8zx8F6dsku0IQR6YlC5bQyHx9ro9lknwey6jU,3420
|
|
31
33
|
legit_api_client/models/ai_secret_validation_result.py,sha256=Qniyaz_12c-6iexAtQFVaHfJ_MFCImjckv4e_xxFToc,877
|
|
32
34
|
legit_api_client/models/amazon_ecr_key_integration_create_dto.py,sha256=Inj8_WcHKM26G26o730PYiuPsD2wMP0RLOnjnf-Pw2E,4616
|
|
33
35
|
legit_api_client/models/amazon_ecr_key_integration_edit_dto.py,sha256=y-G8TXc3AkUieV9SKtp6OB5R5fSmnbjmAeD5jfFeqzs,4608
|
|
@@ -149,6 +151,7 @@ legit_api_client/models/legit_score_requirement_group_type.py,sha256=Lny3a8XYF27
|
|
|
149
151
|
legit_api_client/models/legit_score_requirement_type.py,sha256=waaqlFv6-7DCLJ4R7-W18M2lM_qp5vyBG3nISty6HSg,2384
|
|
150
152
|
legit_api_client/models/list_sort_direction.py,sha256=36agl-rizKtrDMjHf47wzSMiyVeVsWHyjwhpKR90280,778
|
|
151
153
|
legit_api_client/models/manual_check_dto.py,sha256=5zsSJ2lPOAYIcnLvHJPV4HtcQKI-sRC1j0vdLvN4CyM,2963
|
|
154
|
+
legit_api_client/models/model_reputation.py,sha256=Xli2-J8w2mQVGFLRQluSgFiDLb4BrYHyrBliQS4uq0I,788
|
|
152
155
|
legit_api_client/models/origin_type.py,sha256=LliudkvdHkuJyUwg4qpeDCkrM-QwfahL0ekAc6cF1PE,1371
|
|
153
156
|
legit_api_client/models/package_source.py,sha256=IOhl-jV3PgQXrDv2vMDcjutyjEVJMVi7CTyZ9G7n3_w,758
|
|
154
157
|
legit_api_client/models/package_type.py,sha256=9fg2RmWbgWhLCvforzmnU2e-9G7BOLpn6kJxh-Oddl0,1170
|
|
@@ -165,7 +168,7 @@ legit_api_client/models/patch_security_champion_id_dto.py,sha256=Lr65QeEat1Jzv5O
|
|
|
165
168
|
legit_api_client/models/permission_meta_type.py,sha256=64PoK7YbaLAU7hJZF7qGGjwMBcxklC1ZUEvmZ2MyWiM,805
|
|
166
169
|
legit_api_client/models/policy_dto.py,sha256=-MhBgOyTHyVJMXabtebh_wh1XErIlweA4gRwEkgIv9g,7064
|
|
167
170
|
legit_api_client/models/problem_details.py,sha256=i3GtidBVbXMCpVAUcn1SYWZTVzi0utXCLqMkwrLtROg,4500
|
|
168
|
-
legit_api_client/models/product_connection_type.py,sha256=
|
|
171
|
+
legit_api_client/models/product_connection_type.py,sha256=Jdo92SQnjk_9D_rN142KMGbLRSdyQf1kQzQJlkqO8NU,1734
|
|
169
172
|
legit_api_client/models/product_tree_node_dto.py,sha256=dp5Kq22iVXYjZfX7SFwbOZtUBaIAmEkTeHkcgSJmnuI,3986
|
|
170
173
|
legit_api_client/models/product_unit_asset_dto.py,sha256=n7yjcpUwH7fG-0dHA6hfpeH4NfygHH_AfXL0k-6cemI,3734
|
|
171
174
|
legit_api_client/models/product_unit_dto.py,sha256=8iIN_f9LcF69L7Ohc7UPO-qRZ-fdng2Fun96obqRBmY,9445
|
|
@@ -211,7 +214,7 @@ legit_api_client/models/workspace_group_tree_node_dto.py,sha256=zV5vmSc0bjqkH7hS
|
|
|
211
214
|
legit_api_client/models/workspace_hierarchy_dto.py,sha256=qU9eTOHNh3d-XeOM6CbrkTLEwSX0cdjJkbVb03GHS_Y,4522
|
|
212
215
|
legit_api_client/models/workspace_tree_node_dto.py,sha256=TlM1PPVbuGDQKlgl3Ht_EEj8lJLMqTdVE3_k8QFJldE,3527
|
|
213
216
|
legit_api_client/models/workspace_type.py,sha256=d-Dy1JkWLAZgZgTHMTaF01QT2Cv1Eexg6HqcKqPEOjs,756
|
|
214
|
-
legit_api_client-1.1.
|
|
215
|
-
legit_api_client-1.1.
|
|
216
|
-
legit_api_client-1.1.
|
|
217
|
-
legit_api_client-1.1.
|
|
217
|
+
legit_api_client-1.1.4584.dist-info/METADATA,sha256=Bl7JEiBNQr1etvsT70cwL1G94XYgz3sNxcdkpOf2wJw,33203
|
|
218
|
+
legit_api_client-1.1.4584.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
219
|
+
legit_api_client-1.1.4584.dist-info/top_level.txt,sha256=3k94tIhdKXTBXkGPCBDQSOnARVo5IwVYlyIfQ18xaDM,17
|
|
220
|
+
legit_api_client-1.1.4584.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|