api: refactor nested URL methods into subclasses with deprecated aliases

parent a57b6974
......@@ -8,7 +8,7 @@ async def main():
client = ALTRepo()
await client.init()
images = await client.api.image.iso_all_images()
images = await client.api.image.iso.all_images()
print(f"Всего ISO-образов: {len(images.images)}")
for img in images.images[:5]:
print(f" {img.name} ({img.branch}, {img.date})")
......
......@@ -8,7 +8,7 @@ async def main():
client = ALTRepo()
await client.init()
fixes = await client.api.vuln.cve_fixes("CVE-2024-6387")
fixes = await client.api.vuln.cve.fixes("CVE-2024-6387")
print(f"CVE-2024-6387 — исправлено в {len(fixes.packages)} пакетах:")
for pkg in fixes.packages[:5]:
print(f" {pkg.name} {pkg.version}-{pkg.release} ({pkg.branch})")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment