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:
parent
8a7df41a5c
commit
e5da8a36db
11 changed files with 407 additions and 5 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue