Skip to content

Commit

Permalink
feat: add model for delete_asset_response
Browse files Browse the repository at this point in the history
  • Loading branch information
linuxdaemon committed May 13, 2024
1 parent 3fd2be6 commit 7794498
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/gvm_sync_targets/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,18 @@

from gvm.transforms import EtreeCheckCommandTransform

from gvm_sync_targets.models.assets_response import GetAssetsResponse
from gvm_sync_targets.models.assets_response import (
DeleteAssetResponse,
GetAssetsResponse,
)
from gvm_sync_targets.models.auth_response import AuthenticateResponse
from gvm_sync_targets.models.response import Response
from gvm_sync_targets.util import Element

_MODEL_MAP: Mapping[str, type[Response]] = {
"get_assets_response": GetAssetsResponse,
"authenticate_response": AuthenticateResponse,
"delete_asset_response": DeleteAssetResponse,
}


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 @@ -134,3 +134,7 @@ class GetAssetsResponse(Response, tag="get_assets_response"):
sort: Sort
pagination: Pagination = element("assets")
asset_count: AssetCount


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

0 comments on commit 7794498

Please sign in to comment.