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(devices): add missing devices fields #121

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ndisidore
Copy link

A number of the fields on the devices model are not present in the corresponding go struct resulting in those fields being unreachable from the client. This updates said struct to match the current spec.

@@ -42,7 +42,39 @@
"nodeKey": "nodekey:30dc3c061ac8b33fdc6d88a4a67b053b01b56930d78cae0cf7a164411d424c0d",
"os": "linux",
"updateAvailable": false,
"user": "[email protected]"
"user": "[email protected]",
"enabledRoutes": [
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yoinked from the examples in the openapi spec
https://tailscale.com/api#tag/devices/GET/tailnet/{tailnet}/devices

A number of the fields on the [devices model](https://tailscale.com/api#model/device) are not present
in the corresponding go struct resulting in those fields being unreachable from the client.
This updates said struct to match the current spec.

Signed-off-by: Nathan Disidore <[email protected]>
@ndisidore ndisidore force-pushed the feat/add-missing-devices-fields branch from 3ce4d06 to 6fc3067 Compare November 1, 2024 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant