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

Remove derp section from ClientConnectivity model #428

Merged
merged 6 commits into from
Nov 4, 2023
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions src/tailscale/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,8 @@
"""Object holding Tailscale device information."""

endpoints: list[str] = Field(default_factory=list)
derp: str
mapping_varies_by_dest_ip: bool | None = Field(
None,
alias="mappingVariesByDestIP",
None, alias="mappingVariesByDestIP"
frenck marked this conversation as resolved.
Show resolved Hide resolved
)
latency: Any
client_supports: ClientSupports = Field(..., alias="clientSupports")
Expand All @@ -46,7 +44,7 @@
os: str
created: datetime | None
last_seen: datetime | None = Field(..., alias="lastSeen")
tags: list[str] | None
tags: List[str] | None = Field(default=[])

Check failure on line 47 in src/tailscale/models.py

View workflow job for this annotation

GitHub Actions / Ruff

Ruff (F821)

src/tailscale/models.py:47:11: F821 Undefined name `List`
frenck marked this conversation as resolved.
Show resolved Hide resolved
key_expiry_disabled: bool = Field(..., alias="keyExpiryDisabled")
expires: datetime | None
authorized: bool
Expand Down
Loading