Skip to content

Commit

Permalink
feat: handle asset tags
Browse files Browse the repository at this point in the history
  • Loading branch information
linuxdaemon committed May 17, 2024
1 parent ee6220b commit 228b2d4
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/gvm_sync_targets/models/assets_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit 228b2d4

Please sign in to comment.