@@ -169,8 +169,8 @@ def update(
169169 project_id : str ,
170170 * ,
171171 name : str ,
172- retention : int ,
173172 metadata : typing .Optional [typing .Dict [str , typing .Any ]] = OMIT ,
173+ retention : typing .Optional [int ] = OMIT ,
174174 request_options : typing .Optional [RequestOptions ] = None ,
175175 ) -> Project :
176176 """
@@ -182,12 +182,15 @@ def update(
182182
183183 name : str
184184
185- retention : int
186- Number of days to retain data. Must be 0 or at least 3 days. Requires data-retention entitlement for non-zero values. Optional.
187-
188185 metadata : typing.Optional[typing.Dict[str, typing.Any]]
189186 Optional metadata for the project
190187
188+ retention : typing.Optional[int]
189+ Number of days to retain data.
190+ Must be 0 or at least 3 days.
191+ Requires data-retention entitlement for non-zero values.
192+ Optional. Will retain existing retention setting if omitted.
193+
191194 request_options : typing.Optional[RequestOptions]
192195 Request-specific configuration.
193196
@@ -210,7 +213,6 @@ def update(
210213 client.projects.update(
211214 project_id="projectId",
212215 name="name",
213- retention=1,
214216 )
215217 """
216218 _response = self ._client_wrapper .httpx_client .request (
@@ -698,8 +700,8 @@ async def update(
698700 project_id : str ,
699701 * ,
700702 name : str ,
701- retention : int ,
702703 metadata : typing .Optional [typing .Dict [str , typing .Any ]] = OMIT ,
704+ retention : typing .Optional [int ] = OMIT ,
703705 request_options : typing .Optional [RequestOptions ] = None ,
704706 ) -> Project :
705707 """
@@ -711,12 +713,15 @@ async def update(
711713
712714 name : str
713715
714- retention : int
715- Number of days to retain data. Must be 0 or at least 3 days. Requires data-retention entitlement for non-zero values. Optional.
716-
717716 metadata : typing.Optional[typing.Dict[str, typing.Any]]
718717 Optional metadata for the project
719718
719+ retention : typing.Optional[int]
720+ Number of days to retain data.
721+ Must be 0 or at least 3 days.
722+ Requires data-retention entitlement for non-zero values.
723+ Optional. Will retain existing retention setting if omitted.
724+
720725 request_options : typing.Optional[RequestOptions]
721726 Request-specific configuration.
722727
@@ -744,7 +749,6 @@ async def main() -> None:
744749 await client.projects.update(
745750 project_id="projectId",
746751 name="name",
747- retention=1,
748752 )
749753
750754
0 commit comments