Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/ApiTargetIntel.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Name | Type | Description | Notes
**fingerprints** | [**List[ApiFingerprint]**](ApiFingerprint.md) | | [optional]
**hostname** | **str** | | [optional]
**ip** | **str** | | [optional]
**metadata** | **List[int]** | | [optional]
**metadata** | **object** | | [optional]
**port** | **int** | | [optional]
**product** | **List[str]** | | [optional]
**protocol** | **str** | | [optional]
Expand Down
6 changes: 3 additions & 3 deletions docs/EndpointsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,7 @@ Name | Type | Description | Notes
[[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)

# **search_cpe_get**
> RenderResponseWithMetadataSearchResponsesSearchResponseMetadata search_cpe_get(part=part, vendor=vendor, product=product, version=version, is_vulnerable=is_vulnerable)
> RenderResponseWithMetadataSearchResponsesPaginatePagination search_cpe_get(part=part, vendor=vendor, product=product, version=version, is_vulnerable=is_vulnerable)

Return CPEs and associated CPEs by searching CPE fields

Expand All @@ -824,7 +824,7 @@ Based on the specified CPE (Common Platform Enumeration) fields, this endpoint w

```python
import vulncheck_sdk
from vulncheck_sdk.models.render_response_with_metadata_search_responses_search_response_metadata import RenderResponseWithMetadataSearchResponsesSearchResponseMetadata
from vulncheck_sdk.models.render_response_with_metadata_search_responses_paginate_pagination import RenderResponseWithMetadataSearchResponsesPaginatePagination
from vulncheck_sdk.rest import ApiException
from pprint import pprint

Expand Down Expand Up @@ -879,7 +879,7 @@ Name | Type | Description | Notes

### Return type

[**RenderResponseWithMetadataSearchResponsesSearchResponseMetadata**](RenderResponseWithMetadataSearchResponsesSearchResponseMetadata.md)
[**RenderResponseWithMetadataSearchResponsesPaginatePagination**](RenderResponseWithMetadataSearchResponsesPaginatePagination.md)

### Authorization

Expand Down
6 changes: 4 additions & 2 deletions docs/IndicesApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -19007,7 +19007,7 @@ Name | Type | Description | Notes
[[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)

# **index_cves_identity_mappings_get**
> RenderResponseWithMetadataArrayAdvisoryCVEIdentityMappingsPaginatePagination index_cves_identity_mappings_get(page=page, limit=limit, cursor=cursor, start_cursor=start_cursor, order=order, sort=sort, 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, 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)
> RenderResponseWithMetadataArrayAdvisoryCVEIdentityMappingsPaginatePagination index_cves_identity_mappings_get(page=page, limit=limit, cursor=cursor, start_cursor=start_cursor, order=order, sort=sort, 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, xref_id=xref_id, var_date=var_date, 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)

Return vulnerability data stored in index \"cves_identity_mappings\"

Expand Down Expand Up @@ -19072,6 +19072,7 @@ with vulncheck_sdk.ApiClient(configuration) as api_client:
ransomware = 'ransomware_example' # str | Specify a ransomeware family name to search with. (optional)
botnet = 'botnet_example' # str | Specify a botnet name to search with. (optional)
published = 'published_example' # str | Specify a published date (optional)
xref_id = 'xref_id_example' # str | Specify a cross-reference ID (GHSA, JVNDB, EUVD, …) to reverse-look-up its CVE. (optional)
var_date = 'var_date_example' # str | Specify an exact published date to filter with. (optional)
updated_at_start_date = 'updated_at_start_date_example' # str | Specify a starting 'updated-at' date to filter with. (optional)
updated_at_end_date = 'updated_at_end_date_example' # str | Specify an ending 'updated-at' date to filter with. (optional)
Expand All @@ -19082,7 +19083,7 @@ with vulncheck_sdk.ApiClient(configuration) as api_client:

try:
# Return vulnerability data stored in index \"cves_identity_mappings\"
api_response = api_instance.index_cves_identity_mappings_get(page=page, limit=limit, cursor=cursor, start_cursor=start_cursor, order=order, sort=sort, 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, 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)
api_response = api_instance.index_cves_identity_mappings_get(page=page, limit=limit, cursor=cursor, start_cursor=start_cursor, order=order, sort=sort, 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, xref_id=xref_id, var_date=var_date, 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)
print("The response of IndicesApi->index_cves_identity_mappings_get:\n")
pprint(api_response)
except Exception as e:
Expand Down Expand Up @@ -19113,6 +19114,7 @@ Name | Type | Description | Notes
**ransomware** | **str**| Specify a ransomeware family name to search with. | [optional]
**botnet** | **str**| Specify a botnet name to search with. | [optional]
**published** | **str**| Specify a published date | [optional]
**xref_id** | **str**| Specify a cross-reference ID (GHSA, JVNDB, EUVD, …) to reverse-look-up its CVE. | [optional]
**var_date** | **str**| Specify an exact published date to filter with. | [optional]
**updated_at_start_date** | **str**| Specify a starting 'updated-at' date to filter with. | [optional]
**updated_at_end_date** | **str**| Specify an ending 'updated-at' date to filter with. | [optional]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# RenderResponseWithMetadataSearchResponsesPaginatePagination

render.ResponseWithMetadata-search_Responses-paginate_Pagination

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**benchmark** | **float** | Benchmark is the server-side processing time for the request in seconds. Example: 0.122322 = approximately 122 milliseconds | [optional]
**meta** | [**PaginatePagination**](PaginatePagination.md) | | [optional]
**data** | [**List[SearchResponseDataOut]**](SearchResponseDataOut.md) | Data is the data returned by the endpoint | [optional]

## Example

```python
from vulncheck_sdk.models.render_response_with_metadata_search_responses_paginate_pagination import RenderResponseWithMetadataSearchResponsesPaginatePagination

# TODO update the JSON string below
json = "{}"
# create an instance of RenderResponseWithMetadataSearchResponsesPaginatePagination from a JSON string
render_response_with_metadata_search_responses_paginate_pagination_instance = RenderResponseWithMetadataSearchResponsesPaginatePagination.from_json(json)
# print the JSON string representation of the object
print(RenderResponseWithMetadataSearchResponsesPaginatePagination.to_json())

# convert the object into a dict
render_response_with_metadata_search_responses_paginate_pagination_dict = render_response_with_metadata_search_responses_paginate_pagination_instance.to_dict()
# create an instance of RenderResponseWithMetadataSearchResponsesPaginatePagination from a dict
render_response_with_metadata_search_responses_paginate_pagination_from_dict = RenderResponseWithMetadataSearchResponsesPaginatePagination.from_dict(render_response_with_metadata_search_responses_paginate_pagination_dict)
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


This file was deleted.

31 changes: 0 additions & 31 deletions docs/SearchResponseMetadata.md

This file was deleted.

2 changes: 1 addition & 1 deletion openapi.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "vulncheck_sdk"
version = "0.0.54"
version = "0.0.55"
description = "VulnCheck API"
authors = [
{name = "VulnCheck API Support",email = "support@vulncheck.com"},
Expand Down
2 changes: 1 addition & 1 deletion python-generator-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ additionalProperties:
projectName: "vulncheck-sdk"
packageName: "vulncheck_sdk"
packageUrl: "https://github.com/vulncheck-oss/sdk-python/tree/main"
packageVersion: "0.0.54"
packageVersion: "0.0.55"
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
NAME = "vulncheck-sdk"
VERSION = "0.0.54"
VERSION = "0.0.55"
PYTHON_REQUIRES = ">= 3.11"
REQUIRES = [
"aiohttp_retry >= 2.8.3",
Expand Down
4 changes: 1 addition & 3 deletions test/aio/test_api_target_intel.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,7 @@ def make_instance(self, include_optional) -> ApiTargetIntel:
],
hostname = '',
ip = '',
metadata = [
56
],
metadata = None,
port = 56,
product = [
''
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,7 @@ def make_instance(self, include_optional) -> RenderResponseWithMetadataArrayApiT
],
hostname = '',
ip = '',
metadata = [
56
],
metadata = vulncheck_sdk.aio.models.metadata.metadata(),
port = 56,
product = [
''
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
# coding: utf-8

"""
VulnCheck API

VulnCheck API (v3 + v4)

The version of the OpenAPI document: latest
Contact: support@vulncheck.com
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
""" # noqa: E501


import unittest

from vulncheck_sdk.aio.models.render_response_with_metadata_search_responses_paginate_pagination import RenderResponseWithMetadataSearchResponsesPaginatePagination

class TestRenderResponseWithMetadataSearchResponsesPaginatePagination(unittest.TestCase):
"""RenderResponseWithMetadataSearchResponsesPaginatePagination unit test stubs"""

def setUp(self):
pass

def tearDown(self):
pass

def make_instance(self, include_optional) -> RenderResponseWithMetadataSearchResponsesPaginatePagination:
"""Test RenderResponseWithMetadataSearchResponsesPaginatePagination
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `RenderResponseWithMetadataSearchResponsesPaginatePagination`
"""
model = RenderResponseWithMetadataSearchResponsesPaginatePagination()
if include_optional:
return RenderResponseWithMetadataSearchResponsesPaginatePagination(
benchmark = 1.337,
meta = vulncheck_sdk.aio.models.paginate/pagination.paginate.Pagination(
cursor = '',
first_item = 56,
index = '',
last_item = 56,
limit = 56,
matches = [
vulncheck_sdk.aio.models.paginate/match.paginate.Match(
field = '',
value = '', )
],
max_pages = 56,
next_cursor = '',
opensearch_query = vulncheck_sdk.aio.models.opensearch_query.opensearch_query(),
order = '',
page = 56,
pages = [
''
],
parameters = [
vulncheck_sdk.aio.models.paginate/param.paginate.Param(
filtering = '',
format = '',
name = '', )
],
show_pages = True,
show_query = True,
sort = '',
timestamp = '',
total_documents = 56,
total_pages = 56,
warnings = [
''
], ),
data = [
vulncheck_sdk.aio.models.search/response_data_out.search.ResponseDataOut(
cpe = '',
cpe_struct = vulncheck_sdk.aio.models.api/cpe.api.CPE(
edition = '',
language = '',
other = '',
part = '',
product = '',
sw_edition = '',
target_hw = '',
target_sw = '',
update = '',
vendor = '',
version = '', ),
cves = [
''
], )
]
)
else:
return RenderResponseWithMetadataSearchResponsesPaginatePagination(
)
"""

def testRenderResponseWithMetadataSearchResponsesPaginatePagination(self):
"""Test RenderResponseWithMetadataSearchResponsesPaginatePagination"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)

if __name__ == '__main__':
unittest.main()
Loading