legit-api-client 1.1.4586__py3-none-any.whl → 1.1.4617__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 +1 -1
- legit_api_client/api/models_api.py +256 -3
- legit_api_client/api/sdlc_assets_api.py +21 -3
- legit_api_client/api_client.py +1 -1
- legit_api_client/configuration.py +1 -1
- legit_api_client/models/product_connection_type.py +2 -0
- legit_api_client/models/user_role.py +1 -0
- {legit_api_client-1.1.4586.dist-info → legit_api_client-1.1.4617.dist-info}/METADATA +4 -3
- {legit_api_client-1.1.4586.dist-info → legit_api_client-1.1.4617.dist-info}/RECORD +11 -11
- {legit_api_client-1.1.4586.dist-info → legit_api_client-1.1.4617.dist-info}/WHEEL +0 -0
- {legit_api_client-1.1.4586.dist-info → legit_api_client-1.1.4617.dist-info}/top_level.txt +0 -0
legit_api_client/__init__.py
CHANGED
|
@@ -39,6 +39,259 @@ class ModelsApi:
|
|
|
39
39
|
self.api_client = api_client
|
|
40
40
|
|
|
41
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
|
+
|
|
42
295
|
@validate_call
|
|
43
296
|
def api_v20_ai_models_get(
|
|
44
297
|
self,
|
|
@@ -58,7 +311,7 @@ class ModelsApi:
|
|
|
58
311
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
59
312
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
60
313
|
) -> List[AiModelReputationDto]:
|
|
61
|
-
"""Get model by name
|
|
314
|
+
"""Get model reputation by name
|
|
62
315
|
|
|
63
316
|
|
|
64
317
|
:param page_number:
|
|
@@ -132,7 +385,7 @@ class ModelsApi:
|
|
|
132
385
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
133
386
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
134
387
|
) -> ApiResponse[List[AiModelReputationDto]]:
|
|
135
|
-
"""Get model by name
|
|
388
|
+
"""Get model reputation by name
|
|
136
389
|
|
|
137
390
|
|
|
138
391
|
:param page_number:
|
|
@@ -206,7 +459,7 @@ class ModelsApi:
|
|
|
206
459
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
207
460
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
208
461
|
) -> RESTResponseType:
|
|
209
|
-
"""Get model by name
|
|
462
|
+
"""Get model reputation by name
|
|
210
463
|
|
|
211
464
|
|
|
212
465
|
:param page_number:
|
|
@@ -659,6 +659,7 @@ class SDLCAssetsApi:
|
|
|
659
659
|
self,
|
|
660
660
|
show_only_integrated: Optional[StrictBool] = None,
|
|
661
661
|
product_ids: Optional[List[StrictStr]] = None,
|
|
662
|
+
integration_ids: Optional[List[StrictStr]] = None,
|
|
662
663
|
_request_timeout: Union[
|
|
663
664
|
None,
|
|
664
665
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -674,12 +675,14 @@ class SDLCAssetsApi:
|
|
|
674
675
|
) -> SdlcAssetGraphDto:
|
|
675
676
|
"""Get SDLC asset graph
|
|
676
677
|
|
|
677
|
-
Each node in the graph is returned as an object in the `Assets` array. It is uniquely identified by the attributes `Id` and `Type`. The edges are represented by the `Links` array. The source of each link is `SourceId` and `SourceType`. The target of each link is `TargetId` and `TargetType`. The `IntegrationId` is not enough to identify a node, because it may apply to several nodes on the graph is some cases. For example is GitHub is used both as SCM and CI (GitHub Actions). To view the SDLC graph in the context of a Product Unit, use the `ProductIds` filter. The response will include only integrations associated with those Product Units - determined by the products’ assets (e.g., repositories, containers) - and will return the induced subgraphs for those integrations. This reveals the full SDLC graph a Product Unit is exposed to, including nodes not directly owned by its assets but connected through other assets within the same integration. The Graph returned by this endpoint is more detailed than the Discovery Graph on the Legit Platform. When viewing the graph on the Legit Platform some nodes are aggregated into a single node (for example - all Amazon ECRs are displayed as a single node on the Legit Platform).
|
|
678
|
+
Each node in the graph is returned as an object in the `Assets` array. It is uniquely identified by the attributes `Id` and `Type`. The edges are represented by the `Links` array. The source of each link is `SourceId` and `SourceType`. The target of each link is `TargetId` and `TargetType`. The `IntegrationId` is not enough to identify a node, because it may apply to several nodes on the graph is some cases. For example is GitHub is used both as SCM and CI (GitHub Actions). To view the SDLC graph in the context of a Product Unit, use the `ProductIds` filter. The response will include only integrations associated with those Product Units - determined by the products’ assets (e.g., repositories, containers) - and will return the induced subgraphs for those integrations. This reveals the full SDLC graph a Product Unit is exposed to, including nodes not directly owned by its assets but connected through other assets within the same integration. To view the SDLC graph in the context of specific integrations, use the `IntegrationIds` filter. The response will include only those specified integrations and their associated nodes and edges. The Graph returned by this endpoint is more detailed than the Discovery Graph on the Legit Platform. When viewing the graph on the Legit Platform some nodes are aggregated into a single node (for example - all Amazon ECRs are displayed as a single node on the Legit Platform).
|
|
678
679
|
|
|
679
680
|
:param show_only_integrated:
|
|
680
681
|
:type show_only_integrated: bool
|
|
681
682
|
:param product_ids:
|
|
682
683
|
:type product_ids: List[str]
|
|
684
|
+
:param integration_ids:
|
|
685
|
+
:type integration_ids: List[str]
|
|
683
686
|
:param _request_timeout: timeout setting for this request. If one
|
|
684
687
|
number provided, it will be total request
|
|
685
688
|
timeout. It can also be a pair (tuple) of
|
|
@@ -705,6 +708,7 @@ class SDLCAssetsApi:
|
|
|
705
708
|
_param = self._api_v10_sdlc_assets_graph_get_serialize(
|
|
706
709
|
show_only_integrated=show_only_integrated,
|
|
707
710
|
product_ids=product_ids,
|
|
711
|
+
integration_ids=integration_ids,
|
|
708
712
|
_request_auth=_request_auth,
|
|
709
713
|
_content_type=_content_type,
|
|
710
714
|
_headers=_headers,
|
|
@@ -731,6 +735,7 @@ class SDLCAssetsApi:
|
|
|
731
735
|
self,
|
|
732
736
|
show_only_integrated: Optional[StrictBool] = None,
|
|
733
737
|
product_ids: Optional[List[StrictStr]] = None,
|
|
738
|
+
integration_ids: Optional[List[StrictStr]] = None,
|
|
734
739
|
_request_timeout: Union[
|
|
735
740
|
None,
|
|
736
741
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -746,12 +751,14 @@ class SDLCAssetsApi:
|
|
|
746
751
|
) -> ApiResponse[SdlcAssetGraphDto]:
|
|
747
752
|
"""Get SDLC asset graph
|
|
748
753
|
|
|
749
|
-
Each node in the graph is returned as an object in the `Assets` array. It is uniquely identified by the attributes `Id` and `Type`. The edges are represented by the `Links` array. The source of each link is `SourceId` and `SourceType`. The target of each link is `TargetId` and `TargetType`. The `IntegrationId` is not enough to identify a node, because it may apply to several nodes on the graph is some cases. For example is GitHub is used both as SCM and CI (GitHub Actions). To view the SDLC graph in the context of a Product Unit, use the `ProductIds` filter. The response will include only integrations associated with those Product Units - determined by the products’ assets (e.g., repositories, containers) - and will return the induced subgraphs for those integrations. This reveals the full SDLC graph a Product Unit is exposed to, including nodes not directly owned by its assets but connected through other assets within the same integration. The Graph returned by this endpoint is more detailed than the Discovery Graph on the Legit Platform. When viewing the graph on the Legit Platform some nodes are aggregated into a single node (for example - all Amazon ECRs are displayed as a single node on the Legit Platform).
|
|
754
|
+
Each node in the graph is returned as an object in the `Assets` array. It is uniquely identified by the attributes `Id` and `Type`. The edges are represented by the `Links` array. The source of each link is `SourceId` and `SourceType`. The target of each link is `TargetId` and `TargetType`. The `IntegrationId` is not enough to identify a node, because it may apply to several nodes on the graph is some cases. For example is GitHub is used both as SCM and CI (GitHub Actions). To view the SDLC graph in the context of a Product Unit, use the `ProductIds` filter. The response will include only integrations associated with those Product Units - determined by the products’ assets (e.g., repositories, containers) - and will return the induced subgraphs for those integrations. This reveals the full SDLC graph a Product Unit is exposed to, including nodes not directly owned by its assets but connected through other assets within the same integration. To view the SDLC graph in the context of specific integrations, use the `IntegrationIds` filter. The response will include only those specified integrations and their associated nodes and edges. The Graph returned by this endpoint is more detailed than the Discovery Graph on the Legit Platform. When viewing the graph on the Legit Platform some nodes are aggregated into a single node (for example - all Amazon ECRs are displayed as a single node on the Legit Platform).
|
|
750
755
|
|
|
751
756
|
:param show_only_integrated:
|
|
752
757
|
:type show_only_integrated: bool
|
|
753
758
|
:param product_ids:
|
|
754
759
|
:type product_ids: List[str]
|
|
760
|
+
:param integration_ids:
|
|
761
|
+
:type integration_ids: List[str]
|
|
755
762
|
:param _request_timeout: timeout setting for this request. If one
|
|
756
763
|
number provided, it will be total request
|
|
757
764
|
timeout. It can also be a pair (tuple) of
|
|
@@ -777,6 +784,7 @@ class SDLCAssetsApi:
|
|
|
777
784
|
_param = self._api_v10_sdlc_assets_graph_get_serialize(
|
|
778
785
|
show_only_integrated=show_only_integrated,
|
|
779
786
|
product_ids=product_ids,
|
|
787
|
+
integration_ids=integration_ids,
|
|
780
788
|
_request_auth=_request_auth,
|
|
781
789
|
_content_type=_content_type,
|
|
782
790
|
_headers=_headers,
|
|
@@ -803,6 +811,7 @@ class SDLCAssetsApi:
|
|
|
803
811
|
self,
|
|
804
812
|
show_only_integrated: Optional[StrictBool] = None,
|
|
805
813
|
product_ids: Optional[List[StrictStr]] = None,
|
|
814
|
+
integration_ids: Optional[List[StrictStr]] = None,
|
|
806
815
|
_request_timeout: Union[
|
|
807
816
|
None,
|
|
808
817
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -818,12 +827,14 @@ class SDLCAssetsApi:
|
|
|
818
827
|
) -> RESTResponseType:
|
|
819
828
|
"""Get SDLC asset graph
|
|
820
829
|
|
|
821
|
-
Each node in the graph is returned as an object in the `Assets` array. It is uniquely identified by the attributes `Id` and `Type`. The edges are represented by the `Links` array. The source of each link is `SourceId` and `SourceType`. The target of each link is `TargetId` and `TargetType`. The `IntegrationId` is not enough to identify a node, because it may apply to several nodes on the graph is some cases. For example is GitHub is used both as SCM and CI (GitHub Actions). To view the SDLC graph in the context of a Product Unit, use the `ProductIds` filter. The response will include only integrations associated with those Product Units - determined by the products’ assets (e.g., repositories, containers) - and will return the induced subgraphs for those integrations. This reveals the full SDLC graph a Product Unit is exposed to, including nodes not directly owned by its assets but connected through other assets within the same integration. The Graph returned by this endpoint is more detailed than the Discovery Graph on the Legit Platform. When viewing the graph on the Legit Platform some nodes are aggregated into a single node (for example - all Amazon ECRs are displayed as a single node on the Legit Platform).
|
|
830
|
+
Each node in the graph is returned as an object in the `Assets` array. It is uniquely identified by the attributes `Id` and `Type`. The edges are represented by the `Links` array. The source of each link is `SourceId` and `SourceType`. The target of each link is `TargetId` and `TargetType`. The `IntegrationId` is not enough to identify a node, because it may apply to several nodes on the graph is some cases. For example is GitHub is used both as SCM and CI (GitHub Actions). To view the SDLC graph in the context of a Product Unit, use the `ProductIds` filter. The response will include only integrations associated with those Product Units - determined by the products’ assets (e.g., repositories, containers) - and will return the induced subgraphs for those integrations. This reveals the full SDLC graph a Product Unit is exposed to, including nodes not directly owned by its assets but connected through other assets within the same integration. To view the SDLC graph in the context of specific integrations, use the `IntegrationIds` filter. The response will include only those specified integrations and their associated nodes and edges. The Graph returned by this endpoint is more detailed than the Discovery Graph on the Legit Platform. When viewing the graph on the Legit Platform some nodes are aggregated into a single node (for example - all Amazon ECRs are displayed as a single node on the Legit Platform).
|
|
822
831
|
|
|
823
832
|
:param show_only_integrated:
|
|
824
833
|
:type show_only_integrated: bool
|
|
825
834
|
:param product_ids:
|
|
826
835
|
:type product_ids: List[str]
|
|
836
|
+
:param integration_ids:
|
|
837
|
+
:type integration_ids: List[str]
|
|
827
838
|
:param _request_timeout: timeout setting for this request. If one
|
|
828
839
|
number provided, it will be total request
|
|
829
840
|
timeout. It can also be a pair (tuple) of
|
|
@@ -849,6 +860,7 @@ class SDLCAssetsApi:
|
|
|
849
860
|
_param = self._api_v10_sdlc_assets_graph_get_serialize(
|
|
850
861
|
show_only_integrated=show_only_integrated,
|
|
851
862
|
product_ids=product_ids,
|
|
863
|
+
integration_ids=integration_ids,
|
|
852
864
|
_request_auth=_request_auth,
|
|
853
865
|
_content_type=_content_type,
|
|
854
866
|
_headers=_headers,
|
|
@@ -870,6 +882,7 @@ class SDLCAssetsApi:
|
|
|
870
882
|
self,
|
|
871
883
|
show_only_integrated,
|
|
872
884
|
product_ids,
|
|
885
|
+
integration_ids,
|
|
873
886
|
_request_auth,
|
|
874
887
|
_content_type,
|
|
875
888
|
_headers,
|
|
@@ -880,6 +893,7 @@ class SDLCAssetsApi:
|
|
|
880
893
|
|
|
881
894
|
_collection_formats: Dict[str, str] = {
|
|
882
895
|
'productIds': 'multi',
|
|
896
|
+
'integrationIds': 'multi',
|
|
883
897
|
}
|
|
884
898
|
|
|
885
899
|
_path_params: Dict[str, str] = {}
|
|
@@ -901,6 +915,10 @@ class SDLCAssetsApi:
|
|
|
901
915
|
|
|
902
916
|
_query_params.append(('productIds', product_ids))
|
|
903
917
|
|
|
918
|
+
if integration_ids is not None:
|
|
919
|
+
|
|
920
|
+
_query_params.append(('integrationIds', integration_ids))
|
|
921
|
+
|
|
904
922
|
# process the header parameters
|
|
905
923
|
# process the form parameters
|
|
906
924
|
# process the body parameter
|
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.4617/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.4617".\
|
|
520
520
|
format(env=sys.platform, pyversion=sys.version)
|
|
521
521
|
|
|
522
522
|
def get_host_settings(self) -> List[HostSetting]:
|
|
@@ -48,6 +48,8 @@ class ProductConnectionType(str, Enum):
|
|
|
48
48
|
CLOUDCOMPUTERESOURCE = 'CloudComputeResource'
|
|
49
49
|
CIWORKFLOWS = 'CiWorkflows'
|
|
50
50
|
CIWORKFLOWSQUERY = 'CiWorkflowsQuery'
|
|
51
|
+
CONTAINERIMAGE = 'ContainerImage'
|
|
52
|
+
HOST = 'Host'
|
|
51
53
|
NESTEDPRODUCTREPOSITORY = 'NestedProductRepository'
|
|
52
54
|
|
|
53
55
|
@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.4617
|
|
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.4617
|
|
26
26
|
- Generator version: 7.18.0
|
|
27
27
|
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
|
|
28
28
|
|
|
@@ -175,7 +175,8 @@ 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* | [**
|
|
178
|
+
*ModelsApi* | [**api_v20_ai_models_by_url_get**](docs/ModelsApi.md#api_v20_ai_models_by_url_get) | **GET** /api/v2.0/ai-models/by-url | Get model reputation by hugging face url
|
|
179
|
+
*ModelsApi* | [**api_v20_ai_models_get**](docs/ModelsApi.md#api_v20_ai_models_get) | **GET** /api/v2.0/ai-models | Get model reputation by name
|
|
179
180
|
*PoliciesApi* | [**api_v10_policies_get**](docs/PoliciesApi.md#api_v10_policies_get) | **GET** /api/v1.0/policies | Get Policies
|
|
180
181
|
*PoliciesApi* | [**get_policy_by_id**](docs/PoliciesApi.md#get_policy_by_id) | **GET** /api/v1.0/policies/{id} | Get Policy by id
|
|
181
182
|
*PoliciesApi* | [**get_policy_by_name**](docs/PoliciesApi.md#get_policy_by_name) | **GET** /api/v1.0/policies/by-name/{name} | Get by Policy name
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
legit_api_client/__init__.py,sha256=
|
|
2
|
-
legit_api_client/api_client.py,sha256=
|
|
1
|
+
legit_api_client/__init__.py,sha256=Pt8APPMZyHXbr9jF0YAnO6t1hqj3bUoP3UZj0T5P7JY,29409
|
|
2
|
+
legit_api_client/api_client.py,sha256=Al9Iip-bCU9PkbAnsXqX_pQH4Ns0LmMq3TTJAwrx7LM,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=4GoLHOiDPXEwMMI3513ZZxjhaxcptj3a_BSmBfop6Kw,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
|
|
@@ -18,13 +18,13 @@ 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=
|
|
21
|
+
legit_api_client/api/models_api.py,sha256=70GFC7t1DiXpz0miUsirrcmB6G-08EE2D1dQemJC5Do,21996
|
|
22
22
|
legit_api_client/api/policies_api.py,sha256=2oJ4T8IUpKD8YXxiPg1FqIaJ699nBc9XvqavUTuyEwE,39158
|
|
23
23
|
legit_api_client/api/product_units_api.py,sha256=FYY4ZS_SysiJ_fHqoPNQV9OEyKjcoWeMHcQ2SiwDbFE,106296
|
|
24
24
|
legit_api_client/api/repositories_api.py,sha256=txLundrKkEVhb54o3E6LfGJswZXHquMHHd6kPMViqB4,109468
|
|
25
25
|
legit_api_client/api/repository_groups_api.py,sha256=3rb8CALc8uHTsC9umG--kC2UazGNMADmFBQ4MAuqA9o,23725
|
|
26
26
|
legit_api_client/api/saved_queries_api.py,sha256=fSrPQjxbno6q8nDInlugohVoBE9BedRGTa3DwjZXXCQ,12718
|
|
27
|
-
legit_api_client/api/sdlc_assets_api.py,sha256=
|
|
27
|
+
legit_api_client/api/sdlc_assets_api.py,sha256=Sewl5OWGuAjFbubg7DYzYtGz-B85ynJqFdzTeAIVilQ,41092
|
|
28
28
|
legit_api_client/api/tags_api.py,sha256=Rs5-RyIDxQKrDgAFl-RazKhbgbv_q0Q-3wBYeXhSUjE,32570
|
|
29
29
|
legit_api_client/api/workspaces_api.py,sha256=Eb_BTJkE-zt5fnGEY6wnHH6OHp_nboh9TEsOGyxI-eg,85370
|
|
30
30
|
legit_api_client/models/__init__.py,sha256=X-2KNPF1HQS22OGfrVZDTLPN8QHK-CDtGdoHo9nkvyU,15958
|
|
@@ -168,7 +168,7 @@ legit_api_client/models/patch_security_champion_id_dto.py,sha256=Lr65QeEat1Jzv5O
|
|
|
168
168
|
legit_api_client/models/permission_meta_type.py,sha256=64PoK7YbaLAU7hJZF7qGGjwMBcxklC1ZUEvmZ2MyWiM,805
|
|
169
169
|
legit_api_client/models/policy_dto.py,sha256=-MhBgOyTHyVJMXabtebh_wh1XErIlweA4gRwEkgIv9g,7064
|
|
170
170
|
legit_api_client/models/problem_details.py,sha256=i3GtidBVbXMCpVAUcn1SYWZTVzi0utXCLqMkwrLtROg,4500
|
|
171
|
-
legit_api_client/models/product_connection_type.py,sha256=
|
|
171
|
+
legit_api_client/models/product_connection_type.py,sha256=GSx-BPVyEiQmZPicOA5ddNEuVsHDT5YQo7jhApcDAoM,1790
|
|
172
172
|
legit_api_client/models/product_tree_node_dto.py,sha256=dp5Kq22iVXYjZfX7SFwbOZtUBaIAmEkTeHkcgSJmnuI,3986
|
|
173
173
|
legit_api_client/models/product_unit_asset_dto.py,sha256=n7yjcpUwH7fG-0dHA6hfpeH4NfygHH_AfXL0k-6cemI,3734
|
|
174
174
|
legit_api_client/models/product_unit_dto.py,sha256=8iIN_f9LcF69L7Ohc7UPO-qRZ-fdng2Fun96obqRBmY,9445
|
|
@@ -205,7 +205,7 @@ legit_api_client/models/tag_dto.py,sha256=kO8NnKidM70CYpXo-RfXfB897_M-zQy1asYGF_
|
|
|
205
205
|
legit_api_client/models/tag_source.py,sha256=F0dCMjnGf6L5hjA3eDrh205HAnekN1MDmRaHMna7dF0,892
|
|
206
206
|
legit_api_client/models/user_dto.py,sha256=enWoDluaap-pjbRuZosGLXhxw_XqmRApVRf4Cqt0sLI,3972
|
|
207
207
|
legit_api_client/models/user_permission.py,sha256=RZgHByS_Qsa8SJT995yEynCCdQEv8yp214KoxjtxlRw,2892
|
|
208
|
-
legit_api_client/models/user_role.py,sha256=
|
|
208
|
+
legit_api_client/models/user_role.py,sha256=r1ziX3aSsUcJn2fxiMJu5DNtaf058pExuounGajq2aY,867
|
|
209
209
|
legit_api_client/models/vulnerability_type.py,sha256=RvRt7cmbis9Q15PycRUg8l_D-Z77nB4N1yLLvvJgCvM,736
|
|
210
210
|
legit_api_client/models/workspace_created_dto.py,sha256=2o09n7ntVPBH051xWRRaoxP7EqwyQ6FDVUnLPOb6PfI,2702
|
|
211
211
|
legit_api_client/models/workspace_dto.py,sha256=jDyuwX6BKew2_D161uOtSBWM89R8khJwfQ50zbBlO50,2955
|
|
@@ -214,7 +214,7 @@ legit_api_client/models/workspace_group_tree_node_dto.py,sha256=zV5vmSc0bjqkH7hS
|
|
|
214
214
|
legit_api_client/models/workspace_hierarchy_dto.py,sha256=qU9eTOHNh3d-XeOM6CbrkTLEwSX0cdjJkbVb03GHS_Y,4522
|
|
215
215
|
legit_api_client/models/workspace_tree_node_dto.py,sha256=TlM1PPVbuGDQKlgl3Ht_EEj8lJLMqTdVE3_k8QFJldE,3527
|
|
216
216
|
legit_api_client/models/workspace_type.py,sha256=d-Dy1JkWLAZgZgTHMTaF01QT2Cv1Eexg6HqcKqPEOjs,756
|
|
217
|
-
legit_api_client-1.1.
|
|
218
|
-
legit_api_client-1.1.
|
|
219
|
-
legit_api_client-1.1.
|
|
220
|
-
legit_api_client-1.1.
|
|
217
|
+
legit_api_client-1.1.4617.dist-info/METADATA,sha256=XWsyxr-3rnpTGJzsh8K05RsyOsutrrL8jHjWeqqyjD4,33391
|
|
218
|
+
legit_api_client-1.1.4617.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
219
|
+
legit_api_client-1.1.4617.dist-info/top_level.txt,sha256=3k94tIhdKXTBXkGPCBDQSOnARVo5IwVYlyIfQ18xaDM,17
|
|
220
|
+
legit_api_client-1.1.4617.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|