@@ -52,6 +52,7 @@ def get(
5252 ip : str ,
5353 * ,
5454 account_id : str ,
55+ default_virtual_network_fallback : bool | NotGiven = NOT_GIVEN ,
5556 virtual_network_id : str | NotGiven = NOT_GIVEN ,
5657 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
5758 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -66,6 +67,11 @@ def get(
6667 Args:
6768 account_id: Cloudflare account ID
6869
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+
6975 virtual_network_id: UUID of the virtual network.
7076
7177 extra_headers: Send extra headers
@@ -87,7 +93,13 @@ def get(
8793 extra_query = extra_query ,
8894 extra_body = extra_body ,
8995 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+ ),
91103 post_parser = ResultWrapper [Teamnet ]._unwrapper ,
92104 ),
93105 cast_to = cast (Type [Teamnet ], ResultWrapper [Teamnet ]),
@@ -119,6 +131,7 @@ async def get(
119131 ip : str ,
120132 * ,
121133 account_id : str ,
134+ default_virtual_network_fallback : bool | NotGiven = NOT_GIVEN ,
122135 virtual_network_id : str | NotGiven = NOT_GIVEN ,
123136 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
124137 # 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(
133146 Args:
134147 account_id: Cloudflare account ID
135148
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+
136154 virtual_network_id: UUID of the virtual network.
137155
138156 extra_headers: Send extra headers
@@ -155,7 +173,11 @@ async def get(
155173 extra_body = extra_body ,
156174 timeout = timeout ,
157175 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 ,
159181 ),
160182 post_parser = ResultWrapper [Teamnet ]._unwrapper ,
161183 ),
0 commit comments