Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 8cf644c

Browse files
committedMar 13, 2025
feat(api): api update (#3985)
1 parent eaf757d commit 8cf644c

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed
 

‎.stats.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 1565
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-3b5a1ea1dce9d3296fb22dddcbaab546b46a66b7ebd012b1d0c7cbd791975c4d.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-27941e10b3625856a9a697f78b5a2c01e8d653d642cf5fa35a1ba8cac52974fa.yml

‎zero_trust/networkrouteip.go

+5
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@ func (r *NetworkRouteIPService) Get(ctx context.Context, ip string, params Netwo
6060
type NetworkRouteIPGetParams struct {
6161
// Cloudflare account ID
6262
AccountID param.Field[string] `path:"account_id,required"`
63+
// When the virtual_network_id parameter is not provided the request filter will
64+
// default search routes that are in the default virtual network for the account.
65+
// If this parameter is set to false, the search will include routes that do not
66+
// have a virtual network.
67+
DefaultVirtualNetworkFallback param.Field[bool] `query:"default_virtual_network_fallback"`
6368
// UUID of the virtual network.
6469
VirtualNetworkID param.Field[string] `query:"virtual_network_id" format:"uuid"`
6570
}

‎zero_trust/networkrouteip_test.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,9 @@ func TestNetworkRouteIPGetWithOptionalParams(t *testing.T) {
3131
context.TODO(),
3232
"10.1.0.137",
3333
zero_trust.NetworkRouteIPGetParams{
34-
AccountID: cloudflare.F("699d98642c564d2e855e9661899b7252"),
35-
VirtualNetworkID: cloudflare.F("f70ff985-a4ef-4643-bbbc-4a0ed4fc8415"),
34+
AccountID: cloudflare.F("699d98642c564d2e855e9661899b7252"),
35+
DefaultVirtualNetworkFallback: cloudflare.F(true),
36+
VirtualNetworkID: cloudflare.F("f70ff985-a4ef-4643-bbbc-4a0ed4fc8415"),
3637
},
3738
)
3839
if err != nil {

0 commit comments

Comments
 (0)
Please sign in to comment.