66
77import httpx
88
9- from ..._types import Body , Query , Headers , NotGiven , not_given
9+ from ..._types import Body , Omit , Query , Headers , NotGiven , omit , not_given
1010from ..._utils import maybe_transform , async_maybe_transform
1111from ..._compat import cached_property
1212from ..._resource import SyncAPIResource , AsyncAPIResource
1818)
1919from ..._wrappers import ResultWrapper
2020from ..._base_client import make_request_options
21- from ...types .api_gateway import configuration_update_params
21+ from ...types .api_gateway import configuration_get_params , configuration_update_params
2222from ...types .api_gateway .configuration import Configuration
2323
2424__all__ = ["ConfigurationsResource" , "AsyncConfigurationsResource" ]
@@ -49,6 +49,7 @@ def update(
4949 * ,
5050 zone_id : str ,
5151 auth_id_characteristics : Iterable [configuration_update_params .AuthIDCharacteristic ],
52+ normalize : bool | Omit = omit ,
5253 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
5354 # The extra values given here take precedence over values defined on the client or passed to this method.
5455 extra_headers : Headers | None = None ,
@@ -62,6 +63,8 @@ def update(
6263 Args:
6364 zone_id: Identifier.
6465
66+ normalize: Ensures that the configuration is written or retrieved in normalized fashion
67+
6568 extra_headers: Send extra headers
6669
6770 extra_query: Add additional query parameters to the request
@@ -83,6 +86,7 @@ def update(
8386 extra_query = extra_query ,
8487 extra_body = extra_body ,
8588 timeout = timeout ,
89+ query = maybe_transform ({"normalize" : normalize }, configuration_update_params .ConfigurationUpdateParams ),
8690 post_parser = ResultWrapper [Configuration ]._unwrapper ,
8791 ),
8892 cast_to = cast (Type [Configuration ], ResultWrapper [Configuration ]),
@@ -92,6 +96,7 @@ def get(
9296 self ,
9397 * ,
9498 zone_id : str ,
99+ normalize : bool | Omit = omit ,
95100 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
96101 # The extra values given here take precedence over values defined on the client or passed to this method.
97102 extra_headers : Headers | None = None ,
@@ -105,6 +110,8 @@ def get(
105110 Args:
106111 zone_id: Identifier.
107112
113+ normalize: Ensures that the configuration is written or retrieved in normalized fashion
114+
108115 extra_headers: Send extra headers
109116
110117 extra_query: Add additional query parameters to the request
@@ -122,6 +129,7 @@ def get(
122129 extra_query = extra_query ,
123130 extra_body = extra_body ,
124131 timeout = timeout ,
132+ query = maybe_transform ({"normalize" : normalize }, configuration_get_params .ConfigurationGetParams ),
125133 post_parser = ResultWrapper [Configuration ]._unwrapper ,
126134 ),
127135 cast_to = cast (Type [Configuration ], ResultWrapper [Configuration ]),
@@ -153,6 +161,7 @@ async def update(
153161 * ,
154162 zone_id : str ,
155163 auth_id_characteristics : Iterable [configuration_update_params .AuthIDCharacteristic ],
164+ normalize : bool | Omit = omit ,
156165 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
157166 # The extra values given here take precedence over values defined on the client or passed to this method.
158167 extra_headers : Headers | None = None ,
@@ -166,6 +175,8 @@ async def update(
166175 Args:
167176 zone_id: Identifier.
168177
178+ normalize: Ensures that the configuration is written or retrieved in normalized fashion
179+
169180 extra_headers: Send extra headers
170181
171182 extra_query: Add additional query parameters to the request
@@ -187,6 +198,9 @@ async def update(
187198 extra_query = extra_query ,
188199 extra_body = extra_body ,
189200 timeout = timeout ,
201+ query = await async_maybe_transform (
202+ {"normalize" : normalize }, configuration_update_params .ConfigurationUpdateParams
203+ ),
190204 post_parser = ResultWrapper [Configuration ]._unwrapper ,
191205 ),
192206 cast_to = cast (Type [Configuration ], ResultWrapper [Configuration ]),
@@ -196,6 +210,7 @@ async def get(
196210 self ,
197211 * ,
198212 zone_id : str ,
213+ normalize : bool | Omit = omit ,
199214 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
200215 # The extra values given here take precedence over values defined on the client or passed to this method.
201216 extra_headers : Headers | None = None ,
@@ -209,6 +224,8 @@ async def get(
209224 Args:
210225 zone_id: Identifier.
211226
227+ normalize: Ensures that the configuration is written or retrieved in normalized fashion
228+
212229 extra_headers: Send extra headers
213230
214231 extra_query: Add additional query parameters to the request
@@ -226,6 +243,9 @@ async def get(
226243 extra_query = extra_query ,
227244 extra_body = extra_body ,
228245 timeout = timeout ,
246+ query = await async_maybe_transform (
247+ {"normalize" : normalize }, configuration_get_params .ConfigurationGetParams
248+ ),
229249 post_parser = ResultWrapper [Configuration ]._unwrapper ,
230250 ),
231251 cast_to = cast (Type [Configuration ], ResultWrapper [Configuration ]),
0 commit comments