1
1
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
3
- from typing import Optional
3
+ from typing import List , Optional
4
4
5
5
from pydantic import Field as FieldInfo
6
6
7
7
from ....._models import BaseModel
8
8
9
- __all__ = ["DeviceListResponse" ]
9
+ __all__ = [
10
+ "DeviceListResponse" ,
11
+ "CPUPctByApp" ,
12
+ "DeviceIPV4" ,
13
+ "DeviceIPV4Location" ,
14
+ "DeviceIPV6" ,
15
+ "DeviceIPV6Location" ,
16
+ "GatewayIPV4" ,
17
+ "GatewayIPV4Location" ,
18
+ "GatewayIPV6" ,
19
+ "GatewayIPV6Location" ,
20
+ "ISPIPV4" ,
21
+ "ISPIPV4Location" ,
22
+ "ISPIPV6" ,
23
+ "ISPIPV6Location" ,
24
+ "RamUsedPctByApp" ,
25
+ ]
26
+
27
+
28
+ class CPUPctByApp (BaseModel ):
29
+ cpu_pct : Optional [float ] = None
30
+
31
+ name : Optional [str ] = None
32
+
33
+
34
+ class DeviceIPV4Location (BaseModel ):
35
+ city : Optional [str ] = None
36
+
37
+ country_iso : Optional [str ] = None
38
+
39
+ state_iso : Optional [str ] = None
40
+
41
+ zip : Optional [str ] = None
42
+
43
+
44
+ class DeviceIPV4 (BaseModel ):
45
+ address : Optional [str ] = None
46
+
47
+ asn : Optional [int ] = None
48
+
49
+ aso : Optional [str ] = None
50
+
51
+ location : Optional [DeviceIPV4Location ] = None
52
+
53
+ netmask : Optional [str ] = None
54
+
55
+ version : Optional [str ] = None
56
+
57
+
58
+ class DeviceIPV6Location (BaseModel ):
59
+ city : Optional [str ] = None
60
+
61
+ country_iso : Optional [str ] = None
62
+
63
+ state_iso : Optional [str ] = None
64
+
65
+ zip : Optional [str ] = None
66
+
67
+
68
+ class DeviceIPV6 (BaseModel ):
69
+ address : Optional [str ] = None
70
+
71
+ asn : Optional [int ] = None
72
+
73
+ aso : Optional [str ] = None
74
+
75
+ location : Optional [DeviceIPV6Location ] = None
76
+
77
+ netmask : Optional [str ] = None
78
+
79
+ version : Optional [str ] = None
80
+
81
+
82
+ class GatewayIPV4Location (BaseModel ):
83
+ city : Optional [str ] = None
84
+
85
+ country_iso : Optional [str ] = None
86
+
87
+ state_iso : Optional [str ] = None
88
+
89
+ zip : Optional [str ] = None
90
+
91
+
92
+ class GatewayIPV4 (BaseModel ):
93
+ address : Optional [str ] = None
94
+
95
+ asn : Optional [int ] = None
96
+
97
+ aso : Optional [str ] = None
98
+
99
+ location : Optional [GatewayIPV4Location ] = None
100
+
101
+ netmask : Optional [str ] = None
102
+
103
+ version : Optional [str ] = None
104
+
105
+
106
+ class GatewayIPV6Location (BaseModel ):
107
+ city : Optional [str ] = None
108
+
109
+ country_iso : Optional [str ] = None
110
+
111
+ state_iso : Optional [str ] = None
112
+
113
+ zip : Optional [str ] = None
114
+
115
+
116
+ class GatewayIPV6 (BaseModel ):
117
+ address : Optional [str ] = None
118
+
119
+ asn : Optional [int ] = None
120
+
121
+ aso : Optional [str ] = None
122
+
123
+ location : Optional [GatewayIPV6Location ] = None
124
+
125
+ netmask : Optional [str ] = None
126
+
127
+ version : Optional [str ] = None
128
+
129
+
130
+ class ISPIPV4Location (BaseModel ):
131
+ city : Optional [str ] = None
132
+
133
+ country_iso : Optional [str ] = None
134
+
135
+ state_iso : Optional [str ] = None
136
+
137
+ zip : Optional [str ] = None
138
+
139
+
140
+ class ISPIPV4 (BaseModel ):
141
+ address : Optional [str ] = None
142
+
143
+ asn : Optional [int ] = None
144
+
145
+ aso : Optional [str ] = None
146
+
147
+ location : Optional [ISPIPV4Location ] = None
148
+
149
+ netmask : Optional [str ] = None
150
+
151
+ version : Optional [str ] = None
152
+
153
+
154
+ class ISPIPV6Location (BaseModel ):
155
+ city : Optional [str ] = None
156
+
157
+ country_iso : Optional [str ] = None
158
+
159
+ state_iso : Optional [str ] = None
160
+
161
+ zip : Optional [str ] = None
162
+
163
+
164
+ class ISPIPV6 (BaseModel ):
165
+ address : Optional [str ] = None
166
+
167
+ asn : Optional [int ] = None
168
+
169
+ aso : Optional [str ] = None
170
+
171
+ location : Optional [ISPIPV6Location ] = None
172
+
173
+ netmask : Optional [str ] = None
174
+
175
+ version : Optional [str ] = None
176
+
177
+
178
+ class RamUsedPctByApp (BaseModel ):
179
+ name : Optional [str ] = None
180
+
181
+ ram_used_pct : Optional [float ] = None
10
182
11
183
12
184
class DeviceListResponse (BaseModel ):
@@ -16,17 +188,81 @@ class DeviceListResponse(BaseModel):
16
188
device_id : str = FieldInfo (alias = "deviceId" )
17
189
"""Device identifier (UUID v4)"""
18
190
191
+ mode : str
192
+ """The mode under which the WARP client is run"""
193
+
19
194
platform : str
20
195
"""Operating system"""
21
196
22
197
status : str
23
198
"""Network status"""
24
199
200
+ timestamp : str
201
+ """Timestamp in ISO format"""
202
+
25
203
version : str
26
204
"""WARP client version"""
27
205
206
+ always_on : Optional [bool ] = FieldInfo (alias = "alwaysOn" , default = None )
207
+
208
+ battery_charging : Optional [bool ] = FieldInfo (alias = "batteryCharging" , default = None )
209
+
210
+ battery_cycles : Optional [int ] = FieldInfo (alias = "batteryCycles" , default = None )
211
+
212
+ battery_pct : Optional [float ] = FieldInfo (alias = "batteryPct" , default = None )
213
+
214
+ connection_type : Optional [str ] = FieldInfo (alias = "connectionType" , default = None )
215
+
216
+ cpu_pct : Optional [float ] = FieldInfo (alias = "cpuPct" , default = None )
217
+
218
+ cpu_pct_by_app : Optional [List [List [CPUPctByApp ]]] = FieldInfo (alias = "cpuPctByApp" , default = None )
219
+
220
+ device_ipv4 : Optional [DeviceIPV4 ] = FieldInfo (alias = "deviceIpv4" , default = None )
221
+
222
+ device_ipv6 : Optional [DeviceIPV6 ] = FieldInfo (alias = "deviceIpv6" , default = None )
223
+
28
224
device_name : Optional [str ] = FieldInfo (alias = "deviceName" , default = None )
29
225
"""Device identifier (human readable)"""
30
226
227
+ disk_read_bps : Optional [int ] = FieldInfo (alias = "diskReadBps" , default = None )
228
+
229
+ disk_usage_pct : Optional [float ] = FieldInfo (alias = "diskUsagePct" , default = None )
230
+
231
+ disk_write_bps : Optional [int ] = FieldInfo (alias = "diskWriteBps" , default = None )
232
+
233
+ doh_subdomain : Optional [str ] = FieldInfo (alias = "dohSubdomain" , default = None )
234
+
235
+ estimated_loss_pct : Optional [float ] = FieldInfo (alias = "estimatedLossPct" , default = None )
236
+
237
+ firewall_enabled : Optional [bool ] = FieldInfo (alias = "firewallEnabled" , default = None )
238
+
239
+ gateway_ipv4 : Optional [GatewayIPV4 ] = FieldInfo (alias = "gatewayIpv4" , default = None )
240
+
241
+ gateway_ipv6 : Optional [GatewayIPV6 ] = FieldInfo (alias = "gatewayIpv6" , default = None )
242
+
243
+ handshake_latency_ms : Optional [float ] = FieldInfo (alias = "handshakeLatencyMs" , default = None )
244
+
245
+ isp_ipv4 : Optional [ISPIPV4 ] = FieldInfo (alias = "ispIpv4" , default = None )
246
+
247
+ isp_ipv6 : Optional [ISPIPV6 ] = FieldInfo (alias = "ispIpv6" , default = None )
248
+
249
+ metal : Optional [str ] = None
250
+
251
+ network_rcvd_bps : Optional [int ] = FieldInfo (alias = "networkRcvdBps" , default = None )
252
+
253
+ network_sent_bps : Optional [int ] = FieldInfo (alias = "networkSentBps" , default = None )
254
+
255
+ network_ssid : Optional [str ] = FieldInfo (alias = "networkSsid" , default = None )
256
+
31
257
person_email : Optional [str ] = FieldInfo (alias = "personEmail" , default = None )
32
258
"""User contact email address"""
259
+
260
+ ram_available_kb : Optional [int ] = FieldInfo (alias = "ramAvailableKb" , default = None )
261
+
262
+ ram_used_pct : Optional [float ] = FieldInfo (alias = "ramUsedPct" , default = None )
263
+
264
+ ram_used_pct_by_app : Optional [List [List [RamUsedPctByApp ]]] = FieldInfo (alias = "ramUsedPctByApp" , default = None )
265
+
266
+ switch_locked : Optional [bool ] = FieldInfo (alias = "switchLocked" , default = None )
267
+
268
+ wifi_strength_dbm : Optional [int ] = FieldInfo (alias = "wifiStrengthDbm" , default = None )
0 commit comments