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 3 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
14 changes: 6 additions & 8 deletions src/tailscale/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,9 @@
class ClientConnectivity(BaseModel):
"""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",
endpoints: List[str] = Field(default_factory=list)

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

View workflow job for this annotation

GitHub Actions / Ruff

Ruff (F821)

src/tailscale/models.py:26:16: F821 Undefined name `List`
frenck marked this conversation as resolved.
Show resolved Hide resolved
mapping_varies_by_dest_ip: Optional[bool] = Field(

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

View workflow job for this annotation

GitHub Actions / Ruff

Ruff (F821)

src/tailscale/models.py:27:32: F821 Undefined name `Optional`
frenck marked this conversation as resolved.
Show resolved Hide resolved
None, alias="mappingVariesByDestIP"
frenck marked this conversation as resolved.
Show resolved Hide resolved
)
latency: Any
client_supports: ClientSupports = Field(..., alias="clientSupports")
Expand All @@ -44,9 +42,9 @@
client_version: str = Field(..., alias="clientVersion")
update_available: bool = Field(..., alias="updateAvailable")
os: str
created: datetime | None
last_seen: datetime | None = Field(..., alias="lastSeen")
tags: list[str] | None
created: Optional[datetime]

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

View workflow job for this annotation

GitHub Actions / Ruff

Ruff (F821)

src/tailscale/models.py:45:14: F821 Undefined name `Optional`
last_seen: Optional[datetime] = Field(..., alias="lastSeen")

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

View workflow job for this annotation

GitHub Actions / Ruff

Ruff (F821)

src/tailscale/models.py:46:16: F821 Undefined name `Optional`
frenck marked this conversation as resolved.
Show resolved Hide resolved
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