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
3 changes: 3 additions & 0 deletions docs/ApiVulnCheckCanary.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ Name | Type | Description | Notes
**severity** | **int** | | [optional]
**signature** | **str** | | [optional]
**signature_id** | **int** | | [optional]
**src_as_domain** | **str** | | [optional]
**src_as_name** | **str** | | [optional]
**src_asn** | **str** | | [optional]
**src_country** | **str** | | [optional]
**src_ip** | **str** | | [optional]
**src_port** | **int** | | [optional]
Expand Down
308 changes: 298 additions & 10 deletions docs/IndicesApi.md

Large diffs are not rendered by default.

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.45"
version = "0.0.46"
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.45"
packageVersion: "0.0.46"
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.45"
VERSION = "0.0.46"
PYTHON_REQUIRES = ">= 3.9"
REQUIRES = [
"aiohttp_retry >= 2.8.3",
Expand Down
3 changes: 3 additions & 0 deletions test/aio/test_api_vuln_check_canary.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ def make_instance(self, include_optional) -> ApiVulnCheckCanary:
severity = 56,
signature = '',
signature_id = 56,
src_as_domain = '',
src_as_name = '',
src_asn = '',
src_country = '',
src_ip = '',
src_port = 56,
Expand Down
14 changes: 14 additions & 0 deletions test/aio/test_indices_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1539,13 +1539,27 @@ async def test_index_honeywell_get(self) -> None:
"""
pass

async def test_index_hp_eol_get(self) -> None:
"""Test case for index_hp_eol_get

Return vulnerability data stored in index \"hp-eol\"
"""
pass

async def test_index_hp_get(self) -> None:
"""Test case for index_hp_get

Return vulnerability data stored in index \"hp\"
"""
pass

async def test_index_hpe_eol_get(self) -> None:
"""Test case for index_hpe_eol_get

Return vulnerability data stored in index \"hpe-eol\"
"""
pass

async def test_index_hpe_get(self) -> None:
"""Test case for index_hpe_get

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ def make_instance(self, include_optional) -> RenderResponseWithMetadataArrayApiV
severity = 56,
signature = '',
signature_id = 56,
src_as_domain = '',
src_as_name = '',
src_asn = '',
src_country = '',
src_ip = '',
src_port = 56,
Expand Down
3 changes: 3 additions & 0 deletions test/blocking/test_api_vuln_check_canary.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ def make_instance(self, include_optional) -> ApiVulnCheckCanary:
severity = 56,
signature = '',
signature_id = 56,
src_as_domain = '',
src_as_name = '',
src_asn = '',
src_country = '',
src_ip = '',
src_port = 56,
Expand Down
14 changes: 14 additions & 0 deletions test/blocking/test_indices_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1539,13 +1539,27 @@ def test_index_honeywell_get(self) -> None:
"""
pass

def test_index_hp_eol_get(self) -> None:
"""Test case for index_hp_eol_get

Return vulnerability data stored in index \"hp-eol\"
"""
pass

def test_index_hp_get(self) -> None:
"""Test case for index_hp_get

Return vulnerability data stored in index \"hp\"
"""
pass

def test_index_hpe_eol_get(self) -> None:
"""Test case for index_hpe_eol_get

Return vulnerability data stored in index \"hpe-eol\"
"""
pass

def test_index_hpe_get(self) -> None:
"""Test case for index_hpe_get

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ def make_instance(self, include_optional) -> RenderResponseWithMetadataArrayApiV
severity = 56,
signature = '',
signature_id = 56,
src_as_domain = '',
src_as_name = '',
src_asn = '',
src_country = '',
src_ip = '',
src_port = 56,
Expand Down
2 changes: 1 addition & 1 deletion vulncheck_sdk/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
""" # noqa: E501


__version__ = "0.0.45"
__version__ = "0.0.46"

# Define package exports
__all__ = [
Expand Down
2 changes: 1 addition & 1 deletion vulncheck_sdk/aio/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
""" # noqa: E501


__version__ = "0.0.45"
__version__ = "0.0.46"

# Define package exports
__all__ = [
Expand Down
12,403 changes: 6,907 additions & 5,496 deletions vulncheck_sdk/aio/api/indices_api.py

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion vulncheck_sdk/aio/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def __init__(
self.default_headers[header_name] = header_value
self.cookie = cookie
# Set default User-Agent.
self.user_agent = 'OpenAPI-Generator/0.0.45/python'
self.user_agent = 'OpenAPI-Generator/0.0.46/python'
self.client_side_validation = configuration.client_side_validation

async def __aenter__(self):
Expand Down
2 changes: 1 addition & 1 deletion vulncheck_sdk/aio/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ def to_debug_report(self) -> str:
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
"Version of the API: latest\n"\
"SDK Package Version: 0.0.45".\
"SDK Package Version: 0.0.46".\
format(env=sys.platform, pyversion=sys.version)

def get_host_settings(self) -> List[HostSetting]:
Expand Down
8 changes: 7 additions & 1 deletion vulncheck_sdk/aio/models/api_vuln_check_canary.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,14 @@ class ApiVulnCheckCanary(BaseModel):
severity: Optional[StrictInt] = None
signature: Optional[StrictStr] = None
signature_id: Optional[StrictInt] = None
src_as_domain: Optional[StrictStr] = None
src_as_name: Optional[StrictStr] = None
src_asn: Optional[StrictStr] = None
src_country: Optional[StrictStr] = None
src_ip: Optional[StrictStr] = None
src_port: Optional[StrictInt] = None
timestamp: Optional[StrictStr] = None
__properties: ClassVar[List[str]] = ["category", "client_fingerprints", "cve", "dst_country", "http", "payload", "severity", "signature", "signature_id", "src_country", "src_ip", "src_port", "timestamp"]
__properties: ClassVar[List[str]] = ["category", "client_fingerprints", "cve", "dst_country", "http", "payload", "severity", "signature", "signature_id", "src_as_domain", "src_as_name", "src_asn", "src_country", "src_ip", "src_port", "timestamp"]

model_config = ConfigDict(
populate_by_name=True,
Expand Down Expand Up @@ -110,6 +113,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
"severity": obj.get("severity"),
"signature": obj.get("signature"),
"signature_id": obj.get("signature_id"),
"src_as_domain": obj.get("src_as_domain"),
"src_as_name": obj.get("src_as_name"),
"src_asn": obj.get("src_asn"),
"src_country": obj.get("src_country"),
"src_ip": obj.get("src_ip"),
"src_port": obj.get("src_port"),
Expand Down
Loading