Skip to content

Commit 355d9e6

Browse files
Update Python SDK (#100)
[bot](2025-12-03 20:23:10) Sync SDK with OpenAPI spec Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent bff5585 commit 355d9e6

19 files changed

+1253
-8
lines changed

.openapi-generator/FILES

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@ docs/AdvisoryFortinetAdvisory.md
261261
docs/AdvisoryFortinetIPS.md
262262
docs/AdvisoryFoxit.md
263263
docs/AdvisoryFoxitAffected.md
264+
docs/AdvisoryFresenius.md
264265
docs/AdvisoryGCP.md
265266
docs/AdvisoryGEGas.md
266267
docs/AdvisoryGEHealthcareAdvisory.md
@@ -1014,6 +1015,7 @@ docs/RenderResponseWithMetadataArrayAdvisoryForgeRockPaginatePagination.md
10141015
docs/RenderResponseWithMetadataArrayAdvisoryFortinetAdvisoryPaginatePagination.md
10151016
docs/RenderResponseWithMetadataArrayAdvisoryFortinetIPSPaginatePagination.md
10161017
docs/RenderResponseWithMetadataArrayAdvisoryFoxitPaginatePagination.md
1018+
docs/RenderResponseWithMetadataArrayAdvisoryFreseniusPaginatePagination.md
10171019
docs/RenderResponseWithMetadataArrayAdvisoryGCPPaginatePagination.md
10181020
docs/RenderResponseWithMetadataArrayAdvisoryGEGasPaginatePagination.md
10191021
docs/RenderResponseWithMetadataArrayAdvisoryGEHealthcareAdvisoryPaginatePagination.md
@@ -1582,6 +1584,7 @@ test/test_advisory_fortinet_advisory.py
15821584
test/test_advisory_fortinet_ips.py
15831585
test/test_advisory_foxit.py
15841586
test/test_advisory_foxit_affected.py
1587+
test/test_advisory_fresenius.py
15851588
test/test_advisory_gallagher.py
15861589
test/test_advisory_gcp.py
15871590
test/test_advisory_ge_gas.py
@@ -2335,6 +2338,7 @@ test/test_render_response_with_metadata_array_advisory_forge_rock_paginate_pagin
23352338
test/test_render_response_with_metadata_array_advisory_fortinet_advisory_paginate_pagination.py
23362339
test/test_render_response_with_metadata_array_advisory_fortinet_ips_paginate_pagination.py
23372340
test/test_render_response_with_metadata_array_advisory_foxit_paginate_pagination.py
2341+
test/test_render_response_with_metadata_array_advisory_fresenius_paginate_pagination.py
23382342
test/test_render_response_with_metadata_array_advisory_gallagher_paginate_pagination.py
23392343
test/test_render_response_with_metadata_array_advisory_gcp_paginate_pagination.py
23402344
test/test_render_response_with_metadata_array_advisory_ge_gas_paginate_pagination.py
@@ -2906,6 +2910,7 @@ vulncheck_sdk/models/advisory_fortinet_advisory.py
29062910
vulncheck_sdk/models/advisory_fortinet_ips.py
29072911
vulncheck_sdk/models/advisory_foxit.py
29082912
vulncheck_sdk/models/advisory_foxit_affected.py
2913+
vulncheck_sdk/models/advisory_fresenius.py
29092914
vulncheck_sdk/models/advisory_gallagher.py
29102915
vulncheck_sdk/models/advisory_gcp.py
29112916
vulncheck_sdk/models/advisory_ge_gas.py
@@ -3657,6 +3662,7 @@ vulncheck_sdk/models/render_response_with_metadata_array_advisory_forge_rock_pag
36573662
vulncheck_sdk/models/render_response_with_metadata_array_advisory_fortinet_advisory_paginate_pagination.py
36583663
vulncheck_sdk/models/render_response_with_metadata_array_advisory_fortinet_ips_paginate_pagination.py
36593664
vulncheck_sdk/models/render_response_with_metadata_array_advisory_foxit_paginate_pagination.py
3665+
vulncheck_sdk/models/render_response_with_metadata_array_advisory_fresenius_paginate_pagination.py
36603666
vulncheck_sdk/models/render_response_with_metadata_array_advisory_gallagher_paginate_pagination.py
36613667
vulncheck_sdk/models/render_response_with_metadata_array_advisory_gcp_paginate_pagination.py
36623668
vulncheck_sdk/models/render_response_with_metadata_array_advisory_ge_gas_paginate_pagination.py

docs/AdvisoryFresenius.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# AdvisoryFresenius
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**cve** | **List[str]** | | [optional]
9+
**date_added** | **str** | | [optional]
10+
**description** | **str** | | [optional]
11+
**mitigation** | **str** | | [optional]
12+
**references** | **List[str]** | | [optional]
13+
**summary** | **str** | | [optional]
14+
**title** | **str** | | [optional]
15+
**updated_at** | **str** | | [optional]
16+
**url** | **str** | | [optional]
17+
18+
## Example
19+
20+
```python
21+
from vulncheck_sdk.models.advisory_fresenius import AdvisoryFresenius
22+
23+
# TODO update the JSON string below
24+
json = "{}"
25+
# create an instance of AdvisoryFresenius from a JSON string
26+
advisory_fresenius_instance = AdvisoryFresenius.from_json(json)
27+
# print the JSON string representation of the object
28+
print(AdvisoryFresenius.to_json())
29+
30+
# convert the object into a dict
31+
advisory_fresenius_dict = advisory_fresenius_instance.to_dict()
32+
# create an instance of AdvisoryFresenius from a dict
33+
advisory_fresenius_from_dict = AdvisoryFresenius.from_dict(advisory_fresenius_dict)
34+
```
35+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
36+
37+

docs/IndicesApi.md

Lines changed: 137 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ Method | HTTP request | Description
182182
[**index_fortinet_ips_get**](IndicesApi.md#index_fortinet_ips_get) | **GET** /index/fortinet-ips | Return vulnerability data stored in index \&quot;fortinet-ips\&quot;
183183
[**index_foxit_get**](IndicesApi.md#index_foxit_get) | **GET** /index/foxit | Return vulnerability data stored in index \&quot;foxit\&quot;
184184
[**index_freebsd_get**](IndicesApi.md#index_freebsd_get) | **GET** /index/freebsd | Return vulnerability data stored in index \&quot;freebsd\&quot;
185+
[**index_fresenius_get**](IndicesApi.md#index_fresenius_get) | **GET** /index/fresenius | Return vulnerability data stored in index \&quot;fresenius\&quot;
185186
[**index_gallagher_get**](IndicesApi.md#index_gallagher_get) | **GET** /index/gallagher | Return vulnerability data stored in index \&quot;gallagher\&quot;
186187
[**index_gcp_get**](IndicesApi.md#index_gcp_get) | **GET** /index/gcp | Return vulnerability data stored in index \&quot;gcp\&quot;
187188
[**index_ge_gas_get**](IndicesApi.md#index_ge_gas_get) | **GET** /index/ge-gas | Return vulnerability data stored in index \&quot;ge-gas\&quot;
@@ -24696,6 +24697,142 @@ Name | Type | Description | Notes
2469624697

2469724698
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
2469824699

24700+
# **index_fresenius_get**
24701+
> RenderResponseWithMetadataArrayAdvisoryFreseniusPaginatePagination index_fresenius_get(page=page, limit=limit, cursor=cursor, start_cursor=start_cursor, cve=cve, alias=alias, iava=iava, jvndb=jvndb, ilvn=ilvn, threat_actor=threat_actor, mitre_id=mitre_id, misp_id=misp_id, ransomware=ransomware, botnet=botnet, published=published, var_date=var_date, var_date2=var_date2, updated_at_start_date=updated_at_start_date, updated_at_end_date=updated_at_end_date, last_mod_start_date=last_mod_start_date, last_mod_end_date=last_mod_end_date, pub_start_date=pub_start_date, pub_end_date=pub_end_date)
24702+
24703+
Return vulnerability data stored in index \"fresenius\"
24704+
24705+
### Overview
24706+
This endpoint allows you to retrieve a paginated list of all documents from the fresenius index. \
24707+
By default, a maximum of 100 documents are shown per page.
24708+
24709+
**Index Description:** Fresenius Security Advisories
24710+
24711+
### Paging Over Large Data (cursor)
24712+
In order to allow users to iterate over large index datasets, this endpoint provides a server-side
24713+
"cursor" mechanism. To use the cursor, first call `GET /index/fresenius?start_cursor`, the response will
24714+
have a `next_cursor` id that clients will need to pass as a query parameter to the next request like
24715+
`GET /index/fresenius?cursor=<next_cursor_id>`
24716+
24717+
24718+
### Example
24719+
24720+
* Api Key Authentication (Bearer):
24721+
24722+
```python
24723+
import vulncheck_sdk
24724+
from vulncheck_sdk.models.render_response_with_metadata_array_advisory_fresenius_paginate_pagination import RenderResponseWithMetadataArrayAdvisoryFreseniusPaginatePagination
24725+
from vulncheck_sdk.rest import ApiException
24726+
from pprint import pprint
24727+
24728+
# Defining the host is optional and defaults to /v3
24729+
# See configuration.py for a list of all supported configuration parameters.
24730+
configuration = vulncheck_sdk.Configuration(
24731+
host = "/v3"
24732+
)
24733+
24734+
# The client must configure the authentication and authorization parameters
24735+
# in accordance with the API server security policy.
24736+
# Examples for each auth method are provided below, use the example that
24737+
# satisfies your auth use case.
24738+
24739+
# Configure API key authorization: Bearer
24740+
configuration.api_key['Bearer'] = os.environ["API_KEY"]
24741+
24742+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
24743+
# configuration.api_key_prefix['Bearer'] = 'Bearer'
24744+
24745+
# Enter a context with an instance of the API client
24746+
with vulncheck_sdk.ApiClient(configuration) as api_client:
24747+
# Create an instance of the API class
24748+
api_instance = vulncheck_sdk.IndicesApi(api_client)
24749+
page = 56 # int | set the page number of the response (optional)
24750+
limit = 56 # int | limit the number of findings in the response (optional)
24751+
cursor = 'cursor_example' # str | continue server-side paging using a cursor id (optional)
24752+
start_cursor = 'start_cursor_example' # str | request server-side paging (optional)
24753+
cve = 'cve_example' # str | Specify a CVE ID to search with. (optional)
24754+
alias = 'alias_example' # str | Specify a vulnerability alias to search with. (optional)
24755+
iava = 'iava_example' # str | Specify an IAVA ID to search with. (optional)
24756+
jvndb = 'jvndb_example' # str | Specify a JVNDB ID to search with. (optional)
24757+
ilvn = 'ilvn_example' # str | Specify an ILVN ID to search with. (optional)
24758+
threat_actor = 'threat_actor_example' # str | Specify a threat actor name to search with. (optional)
24759+
mitre_id = 'mitre_id_example' # str | Specify a MITRE ID to search with. (optional)
24760+
misp_id = 'misp_id_example' # str | Specify a MISP ID to search with. (optional)
24761+
ransomware = 'ransomware_example' # str | Specify a ransomeware family name to search with. (optional)
24762+
botnet = 'botnet_example' # str | Specify a botnet name to search with. (optional)
24763+
published = 'published_example' # str | Specify a published date (optional)
24764+
var_date = 'var_date_example' # str | Specify a starting published date to filter with. (optional)
24765+
var_date2 = 'var_date_example' # str | Specify an ending published date to filter with. (optional)
24766+
updated_at_start_date = 'updated_at_start_date_example' # str | Specify a starting 'updated-at' date to filter with. (optional)
24767+
updated_at_end_date = 'updated_at_end_date_example' # str | Specify an ending 'updated-at' date to filter with. (optional)
24768+
last_mod_start_date = 'last_mod_start_date_example' # str | Specify a starting last modified date to filter with. (optional)
24769+
last_mod_end_date = 'last_mod_end_date_example' # str | Specify an ending last modified date to filter with. (optional)
24770+
pub_start_date = 'pub_start_date_example' # str | Specify a starting published date to filter with. (optional)
24771+
pub_end_date = 'pub_end_date_example' # str | Specify an ending published date to filter with. (optional)
24772+
24773+
try:
24774+
# Return vulnerability data stored in index \"fresenius\"
24775+
api_response = api_instance.index_fresenius_get(page=page, limit=limit, cursor=cursor, start_cursor=start_cursor, cve=cve, alias=alias, iava=iava, jvndb=jvndb, ilvn=ilvn, threat_actor=threat_actor, mitre_id=mitre_id, misp_id=misp_id, ransomware=ransomware, botnet=botnet, published=published, var_date=var_date, var_date2=var_date2, updated_at_start_date=updated_at_start_date, updated_at_end_date=updated_at_end_date, last_mod_start_date=last_mod_start_date, last_mod_end_date=last_mod_end_date, pub_start_date=pub_start_date, pub_end_date=pub_end_date)
24776+
print("The response of IndicesApi->index_fresenius_get:\n")
24777+
pprint(api_response)
24778+
except Exception as e:
24779+
print("Exception when calling IndicesApi->index_fresenius_get: %s\n" % e)
24780+
```
24781+
24782+
24783+
24784+
### Parameters
24785+
24786+
24787+
Name | Type | Description | Notes
24788+
------------- | ------------- | ------------- | -------------
24789+
**page** | **int**| set the page number of the response | [optional]
24790+
**limit** | **int**| limit the number of findings in the response | [optional]
24791+
**cursor** | **str**| continue server-side paging using a cursor id | [optional]
24792+
**start_cursor** | **str**| request server-side paging | [optional]
24793+
**cve** | **str**| Specify a CVE ID to search with. | [optional]
24794+
**alias** | **str**| Specify a vulnerability alias to search with. | [optional]
24795+
**iava** | **str**| Specify an IAVA ID to search with. | [optional]
24796+
**jvndb** | **str**| Specify a JVNDB ID to search with. | [optional]
24797+
**ilvn** | **str**| Specify an ILVN ID to search with. | [optional]
24798+
**threat_actor** | **str**| Specify a threat actor name to search with. | [optional]
24799+
**mitre_id** | **str**| Specify a MITRE ID to search with. | [optional]
24800+
**misp_id** | **str**| Specify a MISP ID to search with. | [optional]
24801+
**ransomware** | **str**| Specify a ransomeware family name to search with. | [optional]
24802+
**botnet** | **str**| Specify a botnet name to search with. | [optional]
24803+
**published** | **str**| Specify a published date | [optional]
24804+
**var_date** | **str**| Specify a starting published date to filter with. | [optional]
24805+
**var_date2** | **str**| Specify an ending published date to filter with. | [optional]
24806+
**updated_at_start_date** | **str**| Specify a starting &#39;updated-at&#39; date to filter with. | [optional]
24807+
**updated_at_end_date** | **str**| Specify an ending &#39;updated-at&#39; date to filter with. | [optional]
24808+
**last_mod_start_date** | **str**| Specify a starting last modified date to filter with. | [optional]
24809+
**last_mod_end_date** | **str**| Specify an ending last modified date to filter with. | [optional]
24810+
**pub_start_date** | **str**| Specify a starting published date to filter with. | [optional]
24811+
**pub_end_date** | **str**| Specify an ending published date to filter with. | [optional]
24812+
24813+
### Return type
24814+
24815+
[**RenderResponseWithMetadataArrayAdvisoryFreseniusPaginatePagination**](RenderResponseWithMetadataArrayAdvisoryFreseniusPaginatePagination.md)
24816+
24817+
### Authorization
24818+
24819+
[Bearer](../README.md#Bearer)
24820+
24821+
### HTTP request headers
24822+
24823+
- **Content-Type**: Not defined
24824+
- **Accept**: application/json
24825+
24826+
### HTTP response details
24827+
24828+
| Status code | Description | Response headers |
24829+
|-------------|-------------|------------------|
24830+
**200** | OK | - |
24831+
**404** | Not Found | - |
24832+
**500** | Internal Server Error | - |
24833+
24834+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
24835+
2469924836
# **index_gallagher_get**
2470024837
> RenderResponseWithMetadataArrayAdvisoryGallagherPaginatePagination index_gallagher_get(page=page, limit=limit, cursor=cursor, start_cursor=start_cursor, cve=cve, alias=alias, iava=iava, jvndb=jvndb, ilvn=ilvn, threat_actor=threat_actor, mitre_id=mitre_id, misp_id=misp_id, ransomware=ransomware, botnet=botnet, published=published, var_date=var_date, var_date2=var_date2, updated_at_start_date=updated_at_start_date, updated_at_end_date=updated_at_end_date, last_mod_start_date=last_mod_start_date, last_mod_end_date=last_mod_end_date, pub_start_date=pub_start_date, pub_end_date=pub_end_date)
2470124838

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# RenderResponseWithMetadataArrayAdvisoryFreseniusPaginatePagination
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**benchmark** | **float** | | [optional]
9+
**meta** | [**PaginatePagination**](PaginatePagination.md) | | [optional]
10+
**data** | [**List[AdvisoryFresenius]**](AdvisoryFresenius.md) | | [optional]
11+
12+
## Example
13+
14+
```python
15+
from vulncheck_sdk.models.render_response_with_metadata_array_advisory_fresenius_paginate_pagination import RenderResponseWithMetadataArrayAdvisoryFreseniusPaginatePagination
16+
17+
# TODO update the JSON string below
18+
json = "{}"
19+
# create an instance of RenderResponseWithMetadataArrayAdvisoryFreseniusPaginatePagination from a JSON string
20+
render_response_with_metadata_array_advisory_fresenius_paginate_pagination_instance = RenderResponseWithMetadataArrayAdvisoryFreseniusPaginatePagination.from_json(json)
21+
# print the JSON string representation of the object
22+
print(RenderResponseWithMetadataArrayAdvisoryFreseniusPaginatePagination.to_json())
23+
24+
# convert the object into a dict
25+
render_response_with_metadata_array_advisory_fresenius_paginate_pagination_dict = render_response_with_metadata_array_advisory_fresenius_paginate_pagination_instance.to_dict()
26+
# create an instance of RenderResponseWithMetadataArrayAdvisoryFreseniusPaginatePagination from a dict
27+
render_response_with_metadata_array_advisory_fresenius_paginate_pagination_from_dict = RenderResponseWithMetadataArrayAdvisoryFreseniusPaginatePagination.from_dict(render_response_with_metadata_array_advisory_fresenius_paginate_pagination_dict)
28+
```
29+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
30+
31+

openapi.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "vulncheck_sdk"
3-
version = "0.0.33"
3+
version = "0.0.34"
44
description = "VulnCheck API"
55
authors = [
66
{name = "VulnCheck API Support",email = "support@vulncheck.com"},

python-generator-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ additionalProperties:
22
projectName: "vulncheck-sdk"
33
packageName: "vulncheck_sdk"
44
packageUrl: "https://github.com/vulncheck-oss/sdk-python/tree/main"
5-
packageVersion: "0.0.33"
5+
packageVersion: "0.0.34"

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
# prerequisite: setuptools
2323
# http://pypi.python.org/pypi/setuptools
2424
NAME = "vulncheck-sdk"
25-
VERSION = "0.0.33"
25+
VERSION = "0.0.34"
2626
PYTHON_REQUIRES = ">= 3.9"
2727
REQUIRES = [
2828
"urllib3 >= 2.1.0, < 3.0.0",

test/test_advisory_fresenius.py

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# coding: utf-8
2+
3+
"""
4+
VulnCheck API
5+
6+
Version 3 of the VulnCheck API
7+
8+
The version of the OpenAPI document: 3.0
9+
Contact: support@vulncheck.com
10+
Generated by OpenAPI Generator (https://openapi-generator.tech)
11+
12+
Do not edit the class manually.
13+
""" # noqa: E501
14+
15+
16+
import unittest
17+
18+
from vulncheck_sdk.models.advisory_fresenius import AdvisoryFresenius
19+
20+
class TestAdvisoryFresenius(unittest.TestCase):
21+
"""AdvisoryFresenius unit test stubs"""
22+
23+
def setUp(self):
24+
pass
25+
26+
def tearDown(self):
27+
pass
28+
29+
def make_instance(self, include_optional) -> AdvisoryFresenius:
30+
"""Test AdvisoryFresenius
31+
include_optional is a boolean, when False only required
32+
params are included, when True both required and
33+
optional params are included """
34+
# uncomment below to create an instance of `AdvisoryFresenius`
35+
"""
36+
model = AdvisoryFresenius()
37+
if include_optional:
38+
return AdvisoryFresenius(
39+
cve = [
40+
''
41+
],
42+
date_added = '',
43+
description = '',
44+
mitigation = '',
45+
references = [
46+
''
47+
],
48+
summary = '',
49+
title = '',
50+
updated_at = '',
51+
url = ''
52+
)
53+
else:
54+
return AdvisoryFresenius(
55+
)
56+
"""
57+
58+
def testAdvisoryFresenius(self):
59+
"""Test AdvisoryFresenius"""
60+
# inst_req_only = self.make_instance(include_optional=False)
61+
# inst_req_and_optional = self.make_instance(include_optional=True)
62+
63+
if __name__ == '__main__':
64+
unittest.main()

test/test_indices_api.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1273,6 +1273,13 @@ def test_index_freebsd_get(self) -> None:
12731273
"""
12741274
pass
12751275

1276+
def test_index_fresenius_get(self) -> None:
1277+
"""Test case for index_fresenius_get
1278+
1279+
Return vulnerability data stored in index \"fresenius\"
1280+
"""
1281+
pass
1282+
12761283
def test_index_gallagher_get(self) -> None:
12771284
"""Test case for index_gallagher_get
12781285

0 commit comments

Comments
 (0)