Skip to content

Commit 6acef20

Browse files
chore(api): update composite API spec
1 parent 109d3e8 commit 6acef20

3 files changed

Lines changed: 22 additions & 6 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 2412
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare/cloudflare-860e0e21c46ccb06bc3d07c600d9f192572d700fbfda45f01c1df3c5da0bc828.yml
3-
openapi_spec_hash: ef2c85d912a4dc2a8f5cfa8a30293698
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare/cloudflare-12062ca747c6e0de56212973f1428209cd185869f1312b19e57168fc5b1e9b40.yml
3+
openapi_spec_hash: 0c2df0b38c6ec58b4fae1e4cf1fe04e7
44
config_hash: 2f529580a17438fc62cd0b47db41b6f1

zero_trust/devicedeploymentgroup_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func TestDeviceDeploymentGroupNewWithOptionalParams(t *testing.T) {
3434
Name: cloudflare.F("Engineering Ring 0"),
3535
VersionConfig: cloudflare.F([]zero_trust.DeviceDeploymentGroupNewParamsVersionConfig{{
3636
TargetEnvironment: cloudflare.F("windows"),
37-
Version: cloudflare.F("2026.5.234.0"),
37+
Version: cloudflare.F("2026.6.234.0"),
3838
}}),
3939
PolicyIDs: cloudflare.F([]string{"string"}),
4040
})
@@ -131,7 +131,7 @@ func TestDeviceDeploymentGroupEditWithOptionalParams(t *testing.T) {
131131
PolicyIDs: cloudflare.F([]string{"string"}),
132132
VersionConfig: cloudflare.F([]zero_trust.DeviceDeploymentGroupEditParamsVersionConfig{{
133133
TargetEnvironment: cloudflare.F("windows"),
134-
Version: cloudflare.F("2026.5.234.0"),
134+
Version: cloudflare.F("2026.6.234.0"),
135135
}}),
136136
},
137137
)

zero_trust/deviceregistration.go

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)