netboxlabs / diode

Diode data ingestion for NetBox, from NetBox Labs
https://netboxlabs.com
Other
37 stars 1 forks source link

feat: OBS-439 - diode-sdk-python: ingester wrappers #78

Closed mfiedorowicz closed 5 months ago

mfiedorowicz commented 5 months ago

Add wrappers for ingester entity classes generated from protobuf with a main goal to flatten nested types for users convenience.

linear[bot] commented 5 months ago
OBS-439 diode-sdk-python: simplify/flatten ingestion input

I.e. instead of ```python Device( name="Router 1", device_type=DeviceType( model="ISR4321", manufacturer=Manufacturer(name="Cisco"), ), site=Site(name="Site 1"), ) ``` We could have ``` Device( name="Router 1", device_type="ISR4321", manufacturer="Cisco", site="Site 1", ) ```