mirror of
https://github.com/ansible-collections/hetzner.hcloud.git
synced 2026-02-04 08:01:49 +00:00
refactor: mark module_utils modules as private (#782)
##### SUMMARY All `module_utils` are now marked as **private**. None of the modules were intended for public use. Similar to https://togithub.com/ansible-collections/community.general/issues/11312
This commit is contained in:
parent
0f23e6c58c
commit
cfa0d181f7
152 changed files with 283 additions and 239 deletions
24
plugins/module_utils/_storage_box_snapshot.py
Normal file
24
plugins/module_utils/_storage_box_snapshot.py
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
# Note that this module util is **PRIVATE** to the collection. It can have breaking changes at any time.
|
||||
# Do not use this from other collections or standalone plugins/modules!
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from ._vendor.hcloud.storage_boxes import (
|
||||
BoundStorageBoxSnapshot,
|
||||
)
|
||||
|
||||
|
||||
def prepare_result(o: BoundStorageBoxSnapshot):
|
||||
return {
|
||||
"storage_box": o.storage_box.id,
|
||||
"id": o.id,
|
||||
"name": o.name,
|
||||
"description": o.description,
|
||||
"labels": o.labels,
|
||||
"stats": {
|
||||
"size": o.stats.size,
|
||||
"size_filesystem": o.stats.size_filesystem,
|
||||
},
|
||||
"is_automatic": o.is_automatic,
|
||||
"created": o.created.isoformat(),
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue