Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged

Conversation

mfiedorowicz
Copy link
Member

@mfiedorowicz mfiedorowicz commented May 20, 2024

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

  • unit tests
  • usage examples in README

… classes

Signed-off-by: Michal Fiedorowicz <mfiedorowicz@netboxlabs.com>
… classes

Signed-off-by: Michal Fiedorowicz <mfiedorowicz@netboxlabs.com>
@mfiedorowicz mfiedorowicz self-assigned this May 20, 2024
@mfiedorowicz mfiedorowicz requested a review from natm as a code owner May 20, 2024 22:53
Copy link

linear bot commented May 20, 2024

OBS-439 diode-sdk-python: simplify/flatten ingestion input

I.e. instead of

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",
)

Signed-off-by: Michal Fiedorowicz <mfiedorowicz@netboxlabs.com>
@mfiedorowicz mfiedorowicz changed the title feat: OBS-439 - diode-sdk-python: ingestion wrappers feat: OBS-439 - diode-sdk-python: ingester wrappers May 21, 2024
Signed-off-by: Michal Fiedorowicz <mfiedorowicz@netboxlabs.com>
…ted entity type to ingest

Signed-off-by: Michal Fiedorowicz <mfiedorowicz@netboxlabs.com>
@mfiedorowicz mfiedorowicz merged commit 1d800b6 into develop May 21, 2024
9 checks passed
@mfiedorowicz mfiedorowicz deleted the feat/OBS-439-diode-sdk-python-flatten-ingestion-messages branch May 21, 2024 09:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants