@@ -184,7 +184,13 @@ type DeviceRegistrationListResponse struct {
184184 // Type of the tunnel - wireguard or masque.
185185 TunnelType string `json:"tunnel_type" api:"nullable"`
186186 User DeviceRegistrationListResponseUser `json:"user"`
187- JSON deviceRegistrationListResponseJSON `json:"-"`
187+ // The virtual IPv4 address assigned to the network interface of the tunnel for
188+ // this registration.
189+ VirtualIPV4 string `json:"virtual_ipv4" api:"nullable"`
190+ // The virtual IPv6 address assigned to the network interface of the tunnel for
191+ // this registration.
192+ VirtualIPV6 string `json:"virtual_ipv6" api:"nullable"`
193+ JSON deviceRegistrationListResponseJSON `json:"-"`
188194}
189195
190196// deviceRegistrationListResponseJSON contains the JSON metadata for the struct
@@ -202,6 +208,8 @@ type deviceRegistrationListResponseJSON struct {
202208 RevokedAt apijson.Field
203209 TunnelType apijson.Field
204210 User apijson.Field
211+ VirtualIPV4 apijson.Field
212+ VirtualIPV6 apijson.Field
205213 raw string
206214 ExtraFields map [string ]apijson.Field
207215}
@@ -338,7 +346,13 @@ type DeviceRegistrationGetResponse struct {
338346 // Type of the tunnel - wireguard or masque.
339347 TunnelType string `json:"tunnel_type" api:"nullable"`
340348 User DeviceRegistrationGetResponseUser `json:"user"`
341- JSON deviceRegistrationGetResponseJSON `json:"-"`
349+ // The virtual IPv4 address assigned to the network interface of the tunnel for
350+ // this registration.
351+ VirtualIPV4 string `json:"virtual_ipv4" api:"nullable"`
352+ // The virtual IPv6 address assigned to the network interface of the tunnel for
353+ // this registration.
354+ VirtualIPV6 string `json:"virtual_ipv6" api:"nullable"`
355+ JSON deviceRegistrationGetResponseJSON `json:"-"`
342356}
343357
344358// deviceRegistrationGetResponseJSON contains the JSON metadata for the struct
@@ -356,6 +370,8 @@ type deviceRegistrationGetResponseJSON struct {
356370 RevokedAt apijson.Field
357371 TunnelType apijson.Field
358372 User apijson.Field
373+ VirtualIPV4 apijson.Field
374+ VirtualIPV6 apijson.Field
359375 raw string
360376 ExtraFields map [string ]apijson.Field
361377}
0 commit comments