From 228b2d4c88c234ea423a65c4d73d23009f6f14dd Mon Sep 17 00:00:00 2001 From: linuxdaemon Date: Fri, 17 May 2024 02:17:51 -0400 Subject: [PATCH] feat: handle asset tags --- src/gvm_sync_targets/models/assets_response.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/gvm_sync_targets/models/assets_response.py b/src/gvm_sync_targets/models/assets_response.py index 65e5132..3222a28 100644 --- a/src/gvm_sync_targets/models/assets_response.py +++ b/src/gvm_sync_targets/models/assets_response.py @@ -52,6 +52,18 @@ class Permissions(Model, tag="permissions"): permissions: list[Permission] = element() +class Tag(Model, tag="tag"): + uuid: str = attr("id") + + name: str = element() + value: str = element() + + +class UserTags(Model, tag="user_tags"): + count: int = element() + tags: list[Tag] = element() + + class OS(Model, tag="os"): uuid: str = attr("id") @@ -86,6 +98,7 @@ class Asset(Model, tag="asset"): in_use: IntBoolean = element() permissions: Permissions = element() + user_tags: Optional[UserTags] = element(default=None) identifiers: Identifiers = element() type: str = element() host: Host = element("host")