-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f2cdcdc
commit 17db44d
Showing
5 changed files
with
109 additions
and
44 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
configured_endpoints: 1480 | ||
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-64d4fa2d88511612fbb26659965c2b7b2d016b10e3a96a786e93066817865e4f.yml | ||
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-405af13ac696c25ab9d54a26786eab9bf02e2c2ff817a7ec01a454056dda053c.yml |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,83 @@ | ||
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
|
||
from typing import Union, Optional | ||
from typing_extensions import TypeAlias | ||
from typing import Optional | ||
from datetime import datetime | ||
|
||
__all__ = ["DeviceGetResponse"] | ||
from ..._models import BaseModel | ||
|
||
DeviceGetResponse: TypeAlias = Union[Optional[str], Optional[object]] | ||
__all__ = ["DeviceGetResponse", "Account", "User"] | ||
|
||
|
||
class Account(BaseModel): | ||
id: Optional[str] = None | ||
|
||
account_type: Optional[str] = None | ||
|
||
name: Optional[str] = None | ||
"""The name of the enrolled account.""" | ||
|
||
|
||
class User(BaseModel): | ||
id: Optional[str] = None | ||
"""UUID""" | ||
|
||
email: Optional[str] = None | ||
"""The contact email address of the user.""" | ||
|
||
name: Optional[str] = None | ||
"""The enrolled device user's name.""" | ||
|
||
|
||
class DeviceGetResponse(BaseModel): | ||
id: Optional[str] = None | ||
"""Device ID.""" | ||
|
||
account: Optional[Account] = None | ||
|
||
created: Optional[datetime] = None | ||
"""When the device was created.""" | ||
|
||
deleted: Optional[bool] = None | ||
"""True if the device was deleted.""" | ||
|
||
device_type: Optional[str] = None | ||
|
||
gateway_device_id: Optional[str] = None | ||
|
||
ip: Optional[str] = None | ||
"""IPv4 or IPv6 address.""" | ||
|
||
key: Optional[str] = None | ||
"""The device's public key.""" | ||
|
||
key_type: Optional[str] = None | ||
"""Type of the key.""" | ||
|
||
last_seen: Optional[datetime] = None | ||
"""When the device last connected to Cloudflare services.""" | ||
|
||
mac_address: Optional[str] = None | ||
"""The device mac address.""" | ||
|
||
model: Optional[str] = None | ||
"""The device model name.""" | ||
|
||
name: Optional[str] = None | ||
"""The device name.""" | ||
|
||
os_version: Optional[str] = None | ||
"""The operating system version.""" | ||
|
||
serial_number: Optional[str] = None | ||
"""The device serial number.""" | ||
|
||
tunnel_type: Optional[str] = None | ||
"""Type of the tunnel connection used.""" | ||
|
||
updated: Optional[datetime] = None | ||
"""When the device was updated.""" | ||
|
||
user: Optional[User] = None | ||
|
||
version: Optional[str] = None | ||
"""The WARP client version.""" |
This file contains 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