1
0
Fork 0
mirror of https://github.com/ansible-collections/hetzner.hcloud.git synced 2026-02-06 00:42:10 +00:00

feat: storage box snapshot info

This commit is contained in:
jo 2025-12-09 10:10:55 +01:00
parent 8a7df41a5c
commit e5da8a36db
No known key found for this signature in database
GPG key ID: B2FEC9B22722B984
11 changed files with 407 additions and 5 deletions

View file

@ -7,7 +7,13 @@ from ..module_utils.vendor.hcloud.storage_boxes import (
)
def get(client: StorageBoxesClient, param: str | int):
def get(client: StorageBoxesClient, param: str | int) -> BoundStorageBox:
"""
Get a Bound Storage Box either by ID or name.
If the given parameter is an ID, return a partial Bound Storage Box to reduce the amount
of API requests.
"""
try:
return BoundStorageBox(
client,