Skip to content

Commit

Permalink
feat: handle create_task_response
Browse files Browse the repository at this point in the history
  • Loading branch information
linuxdaemon committed May 14, 2024
1 parent b2c47fd commit a0c29c6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gvm_sync_targets/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from gvm.transforms import EtreeCheckCommandTransform

from gvm_sync_targets.models.assets_response import (
CreateAssetResponse,
DeleteAssetResponse,
GetAssetsResponse,
)
Expand All @@ -19,6 +20,7 @@
"get_assets_response": GetAssetsResponse,
"authenticate_response": AuthenticateResponse,
"delete_asset_response": DeleteAssetResponse,
"create_asset_response": CreateAssetResponse,
}


Expand Down
4 changes: 4 additions & 0 deletions src/gvm_sync_targets/models/assets_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,3 +138,7 @@ class GetAssetsResponse(Response, tag="get_assets_response"):

class DeleteAssetResponse(Response, tag="delete_asset_response"):
pass


class CreateAssetResponse(Response, tag="create_asset_response"):
uuid: str = attr("id")

0 comments on commit a0c29c6

Please sign in to comment.