Skip to content

Commit b7a3bc5

Browse files
committed
http: api: drop get device manifest
1 parent bee5b76 commit b7a3bc5

3 files changed

Lines changed: 0 additions & 30 deletions

File tree

src/enapter/cli/http/api/device_command.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
DeviceGenerateCommunicationConfigCommand,
1010
)
1111
from .device_get_command import DeviceGetCommand
12-
from .device_get_manifest_command import DeviceGetManifestCommand
1312
from .device_list_command import DeviceListCommand
1413
from .device_update_command import DeviceUpdateCommand
1514

@@ -30,7 +29,6 @@ def register(parent: cli.Subparsers) -> None:
3029
DeviceDeleteCommand,
3130
DeviceGenerateCommunicationConfigCommand,
3231
DeviceGetCommand,
33-
DeviceGetManifestCommand,
3432
DeviceListCommand,
3533
DeviceUpdateCommand,
3634
]:
@@ -49,8 +47,6 @@ async def run(args: argparse.Namespace) -> None:
4947
await DeviceGenerateCommunicationConfigCommand.run(args)
5048
case "get":
5149
await DeviceGetCommand.run(args)
52-
case "get-manifest":
53-
await DeviceGetManifestCommand.run(args)
5450
case "list":
5551
await DeviceListCommand.run(args)
5652
case "update":

src/enapter/cli/http/api/device_get_manifest_command.py

Lines changed: 0 additions & 20 deletions
This file was deleted.

src/enapter/http/api/devices/client.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,6 @@ async def get(self, device_id: str, expand_manifest: bool = False) -> Device:
2929
api.check_error(response)
3030
return Device.from_dto(response.json()["device"])
3131

32-
async def get_manifest(self, device_id: str) -> dict[str, Any]:
33-
url = f"v3/devices/{device_id}/manifest"
34-
response = await self._client.get(url)
35-
api.check_error(response)
36-
return response.json()["manifest"]
37-
3832
@async_.generator
3933
async def list(self) -> AsyncGenerator[Device, None]:
4034
url = "v3/devices"

0 commit comments

Comments
 (0)