Skip to content

Commit

Permalink
Bump to 2.14.0a6
Browse files Browse the repository at this point in the history
  • Loading branch information
Skyman2413 committed Sep 26, 2024
1 parent 5e61c19 commit 33678bf
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 8 deletions.
5 changes: 5 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Release History
===============

2.14.0a6
---------------------
- Add Threat landscapes API Section
- Add `ThreatLandscapes` to `ResourceNames`

2.14.0a5
---------------------
- Add CustomLists API Section
Expand Down
2 changes: 1 addition & 1 deletion cybsi/__version__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "2.14.0a5"
__version__ = "2.14.0a6"
__title__ = "cybsi-python-sdk"
__description__ = "Cybersecurity threat intelligence development kit"
__license__ = "Apache License 2.0"
Expand Down
2 changes: 1 addition & 1 deletion cybsi/api/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
from .report import ReportsAPI, ReportsAsyncAPI
from .search import SearchAPI
from .search.api import SearchAsyncAPI
from .ual import AccessLogsAPI
from .threat_landscapes import ThreatLandscapesAPI, ThreatLandscapesAsyncAPI
from .ual import AccessLogsAPI
from .user import UsersAPI


Expand Down
2 changes: 1 addition & 1 deletion cybsi/api/threat_landscapes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
ThreatLandscapeView,
ThreatLanscapeForm,
ThreatLandscapesCustomListView,
)
)
8 changes: 5 additions & 3 deletions cybsi/api/threat_landscapes/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
from typing import Any, Dict, Optional

from cybsi.api import RefView, Tag
from cybsi.api.custom_lists import CustomListCommonView
from cybsi.api.internal import BaseAPI, JsonObjectForm, BaseAsyncAPI
from cybsi.api.pagination import Cursor, Page, AsyncPage
from cybsi.api.custom_list import CustomListCommonView
from cybsi.api.internal import BaseAPI, BaseAsyncAPI, JsonObjectForm
from cybsi.api.pagination import AsyncPage, Cursor, Page
from cybsi.api.view import _TaggedRefView

_PATH = "threat-landscapes"
Expand Down Expand Up @@ -276,6 +276,7 @@ def build_query(
resp = self._connector.do_post(path=path, json=params)
return resp.json().get("query")


class ThreatLandscapesAsyncAPI(BaseAsyncAPI):
"""
async API to operate Threat Landscapes.
Expand Down Expand Up @@ -542,6 +543,7 @@ async def build_query(
resp = await self._connector.do_post(path=path, json=params)
return resp.json().get("query")


class ThreatLanscapeForm(JsonObjectForm):
"""
Threat Landscape Form. Use to add Threat Landscapes.
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "cybsi-sdk"
version = "2.14.0a5"
version = "2.14.0a6"
description = "Cybsi development kit"
authors = ["Cybsi SDK developers"]
license = "Apache License 2.0"
Expand Down Expand Up @@ -42,7 +42,7 @@ extend_skip = ["__init__.py"]
[tool.tbump]

[tool.tbump.version]
current = "2.14.0a5"
current = "2.14.0a6"

regex = '''
^
Expand Down

0 comments on commit 33678bf

Please sign in to comment.