legit-api-client 1.1.4598__py3-none-any.whl → 1.1.4600__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.
@@ -14,7 +14,7 @@
14
14
  """ # noqa: E501
15
15
 
16
16
 
17
- __version__ = "1.1.4598"
17
+ __version__ = "1.1.4600"
18
18
 
19
19
  # Define package exports
20
20
  __all__ = [
@@ -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:
@@ -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.4598/python'
94
+ self.user_agent = 'OpenAPI-Generator/1.1.4600/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.4598".\
519
+ "SDK Package Version: 1.1.4600".\
520
520
  format(env=sys.platform, pyversion=sys.version)
521
521
 
522
522
  def get_host_settings(self) -> List[HostSetting]:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: legit_api_client
3
- Version: 1.1.4598
3
+ Version: 1.1.4600
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.4598
25
+ - Package version: 1.1.4600
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* | [**api_v20_ai_models_get**](docs/ModelsApi.md#api_v20_ai_models_get) | **GET** /api/v2.0/ai-models | Get model by name
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=YFrZk7Yd6s1egtR08CLaok4ukv3i5PPTLzt0yNhTxx8,29409
2
- legit_api_client/api_client.py,sha256=Yi7hNnXcGT0IXDWJisvFMfdCfw2DfVklJM1EVuXbys8,27804
1
+ legit_api_client/__init__.py,sha256=NLtW4xpi_59xulwLpNivtN_yFGpaKvGGDwPE4_Gu4Y0,29409
2
+ legit_api_client/api_client.py,sha256=1WWz-KSNhTYkXA2ZEvAtYiPho7k-6DyMKEqz2gxCEGQ,27804
3
3
  legit_api_client/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
4
- legit_api_client/configuration.py,sha256=KZSwb3Uk8uWdOn_P5DCjn9ECsErtNjB97r8RzOF8AuU,18537
4
+ legit_api_client/configuration.py,sha256=1II9n0hh9JozqXevp6GoIAtxYAY0ThkCUDm4EoY5NV4,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,7 +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
+ 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
@@ -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.4598.dist-info/METADATA,sha256=f_CaLli45wHPqoS_KeXek2jKrTRW3CtgPp0cbyQe3qA,33203
218
- legit_api_client-1.1.4598.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
219
- legit_api_client-1.1.4598.dist-info/top_level.txt,sha256=3k94tIhdKXTBXkGPCBDQSOnARVo5IwVYlyIfQ18xaDM,17
220
- legit_api_client-1.1.4598.dist-info/RECORD,,
217
+ legit_api_client-1.1.4600.dist-info/METADATA,sha256=_VJcLdxSUGVefbo74acm3lt62ApZ7ozZjIY0A5JZvbc,33391
218
+ legit_api_client-1.1.4600.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
219
+ legit_api_client-1.1.4600.dist-info/top_level.txt,sha256=3k94tIhdKXTBXkGPCBDQSOnARVo5IwVYlyIfQ18xaDM,17
220
+ legit_api_client-1.1.4600.dist-info/RECORD,,