@@ -52,6 +52,7 @@ def get(
52
52
ip : str ,
53
53
* ,
54
54
account_id : str ,
55
+ default_virtual_network_fallback : bool | NotGiven = NOT_GIVEN ,
55
56
virtual_network_id : str | NotGiven = NOT_GIVEN ,
56
57
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
57
58
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -66,6 +67,11 @@ def get(
66
67
Args:
67
68
account_id: Cloudflare account ID
68
69
70
+ default_virtual_network_fallback: When the virtual_network_id parameter is not provided the request filter will
71
+ default search routes that are in the default virtual network for the account.
72
+ If this parameter is set to false, the search will include routes that do not
73
+ have a virtual network.
74
+
69
75
virtual_network_id: UUID of the virtual network.
70
76
71
77
extra_headers: Send extra headers
@@ -87,7 +93,13 @@ def get(
87
93
extra_query = extra_query ,
88
94
extra_body = extra_body ,
89
95
timeout = timeout ,
90
- query = maybe_transform ({"virtual_network_id" : virtual_network_id }, ip_get_params .IPGetParams ),
96
+ query = maybe_transform (
97
+ {
98
+ "default_virtual_network_fallback" : default_virtual_network_fallback ,
99
+ "virtual_network_id" : virtual_network_id ,
100
+ },
101
+ ip_get_params .IPGetParams ,
102
+ ),
91
103
post_parser = ResultWrapper [Teamnet ]._unwrapper ,
92
104
),
93
105
cast_to = cast (Type [Teamnet ], ResultWrapper [Teamnet ]),
@@ -119,6 +131,7 @@ async def get(
119
131
ip : str ,
120
132
* ,
121
133
account_id : str ,
134
+ default_virtual_network_fallback : bool | NotGiven = NOT_GIVEN ,
122
135
virtual_network_id : str | NotGiven = NOT_GIVEN ,
123
136
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
124
137
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -133,6 +146,11 @@ async def get(
133
146
Args:
134
147
account_id: Cloudflare account ID
135
148
149
+ default_virtual_network_fallback: When the virtual_network_id parameter is not provided the request filter will
150
+ default search routes that are in the default virtual network for the account.
151
+ If this parameter is set to false, the search will include routes that do not
152
+ have a virtual network.
153
+
136
154
virtual_network_id: UUID of the virtual network.
137
155
138
156
extra_headers: Send extra headers
@@ -155,7 +173,11 @@ async def get(
155
173
extra_body = extra_body ,
156
174
timeout = timeout ,
157
175
query = await async_maybe_transform (
158
- {"virtual_network_id" : virtual_network_id }, ip_get_params .IPGetParams
176
+ {
177
+ "default_virtual_network_fallback" : default_virtual_network_fallback ,
178
+ "virtual_network_id" : virtual_network_id ,
179
+ },
180
+ ip_get_params .IPGetParams ,
159
181
),
160
182
post_parser = ResultWrapper [Teamnet ]._unwrapper ,
161
183
),
0 commit comments