22
33from __future__ import annotations
44
5- from typing import List , Type , Iterable , cast
6- from typing_extensions import Literal
5+ from typing import Type , Iterable , cast
76
87import httpx
98
10- from ..._types import Body , Omit , Query , Headers , NotGiven , omit , not_given
9+ from ..._types import Body , Query , Headers , NotGiven , not_given
1110from ..._utils import maybe_transform , async_maybe_transform
1211from ..._compat import cached_property
1312from ..._resource import SyncAPIResource , AsyncAPIResource
1918)
2019from ..._wrappers import ResultWrapper
2120from ..._base_client import make_request_options
22- from ...types .api_gateway import configuration_get_params , configuration_update_params
21+ from ...types .api_gateway import configuration_update_params
2322from ...types .api_gateway .configuration import Configuration
24- from ...types .api_gateway .configuration_update_response import ConfigurationUpdateResponse
2523
2624__all__ = ["ConfigurationsResource" , "AsyncConfigurationsResource" ]
2725
@@ -57,9 +55,9 @@ def update(
5755 extra_query : Query | None = None ,
5856 extra_body : Body | None = None ,
5957 timeout : float | httpx .Timeout | None | NotGiven = not_given ,
60- ) -> ConfigurationUpdateResponse :
58+ ) -> Configuration :
6159 """
62- Set configuration properties
60+ Update configuration properties
6361
6462 Args:
6563 zone_id: Identifier.
@@ -81,16 +79,19 @@ def update(
8179 configuration_update_params .ConfigurationUpdateParams ,
8280 ),
8381 options = make_request_options (
84- extra_headers = extra_headers , extra_query = extra_query , extra_body = extra_body , timeout = timeout
82+ extra_headers = extra_headers ,
83+ extra_query = extra_query ,
84+ extra_body = extra_body ,
85+ timeout = timeout ,
86+ post_parser = ResultWrapper [Configuration ]._unwrapper ,
8587 ),
86- cast_to = ConfigurationUpdateResponse ,
88+ cast_to = cast ( Type [ Configuration ], ResultWrapper [ Configuration ]) ,
8789 )
8890
8991 def get (
9092 self ,
9193 * ,
9294 zone_id : str ,
93- properties : List [Literal ["auth_id_characteristics" ]] | Omit = omit ,
9495 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
9596 # The extra values given here take precedence over values defined on the client or passed to this method.
9697 extra_headers : Headers | None = None ,
@@ -104,8 +105,6 @@ def get(
104105 Args:
105106 zone_id: Identifier.
106107
107- properties: Requests information about certain properties.
108-
109108 extra_headers: Send extra headers
110109
111110 extra_query: Add additional query parameters to the request
@@ -123,7 +122,6 @@ def get(
123122 extra_query = extra_query ,
124123 extra_body = extra_body ,
125124 timeout = timeout ,
126- query = maybe_transform ({"properties" : properties }, configuration_get_params .ConfigurationGetParams ),
127125 post_parser = ResultWrapper [Configuration ]._unwrapper ,
128126 ),
129127 cast_to = cast (Type [Configuration ], ResultWrapper [Configuration ]),
@@ -161,9 +159,9 @@ async def update(
161159 extra_query : Query | None = None ,
162160 extra_body : Body | None = None ,
163161 timeout : float | httpx .Timeout | None | NotGiven = not_given ,
164- ) -> ConfigurationUpdateResponse :
162+ ) -> Configuration :
165163 """
166- Set configuration properties
164+ Update configuration properties
167165
168166 Args:
169167 zone_id: Identifier.
@@ -185,16 +183,19 @@ async def update(
185183 configuration_update_params .ConfigurationUpdateParams ,
186184 ),
187185 options = make_request_options (
188- extra_headers = extra_headers , extra_query = extra_query , extra_body = extra_body , timeout = timeout
186+ extra_headers = extra_headers ,
187+ extra_query = extra_query ,
188+ extra_body = extra_body ,
189+ timeout = timeout ,
190+ post_parser = ResultWrapper [Configuration ]._unwrapper ,
189191 ),
190- cast_to = ConfigurationUpdateResponse ,
192+ cast_to = cast ( Type [ Configuration ], ResultWrapper [ Configuration ]) ,
191193 )
192194
193195 async def get (
194196 self ,
195197 * ,
196198 zone_id : str ,
197- properties : List [Literal ["auth_id_characteristics" ]] | Omit = omit ,
198199 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
199200 # The extra values given here take precedence over values defined on the client or passed to this method.
200201 extra_headers : Headers | None = None ,
@@ -208,8 +209,6 @@ async def get(
208209 Args:
209210 zone_id: Identifier.
210211
211- properties: Requests information about certain properties.
212-
213212 extra_headers: Send extra headers
214213
215214 extra_query: Add additional query parameters to the request
@@ -227,9 +226,6 @@ async def get(
227226 extra_query = extra_query ,
228227 extra_body = extra_body ,
229228 timeout = timeout ,
230- query = await async_maybe_transform (
231- {"properties" : properties }, configuration_get_params .ConfigurationGetParams
232- ),
233229 post_parser = ResultWrapper [Configuration ]._unwrapper ,
234230 ),
235231 cast_to = cast (Type [Configuration ], ResultWrapper [Configuration ]),
0 commit comments