Add Site model and dcim_site/dcim_sites/dcim_all_sites client methods#75
Merged
azryve merged 1 commit intoJun 2, 2026
Merged
Conversation
Adds a Site dataclass and three client methods (dcim_site, dcim_sites,
dcim_all_sites) to v37, v41, and v42, sync + async. The current client
has no way to fetch a site by id; anything beyond the inline
{id, name, slug} stub on Device.site means dropping out of the typed
layer.
Sync clients regenerated via transform_to_sync.py.
Integration tests added: definitions.yaml entries for dcim_site and
dcim_sites across all three versions, with recorded cassettes,
expected.yaml, and updated lock.yaml hashes.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Tishka17
approved these changes
Jun 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Sitedataclass +dcim_site,dcim_sites,dcim_all_sitesto v37, v41, v42 (sync + async).{id, name, slug}Site stub onDevice.site.transform_to_sync.py.Test plan
pytest tests/integration/(definitions + cassettes + lock.yaml hashes fordcim_site_01anddcim_sites_01across v37/v41/v42)transform_to_sync.pyoutputruff check .— no new findings from this change