77
88import httpx
99
10- from ..types import deployment_create_params
10+ from ..types import deployment_create_params , deployment_follow_params
1111from .._types import NOT_GIVEN , Body , Query , Headers , NotGiven , FileTypes
1212from .._utils import extract_files , maybe_transform , deepcopy_minimal , async_maybe_transform
1313from .._compat import cached_property
@@ -150,6 +150,7 @@ def follow(
150150 self ,
151151 id : str ,
152152 * ,
153+ since : str | NotGiven = NOT_GIVEN ,
153154 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
154155 # The extra values given here take precedence over values defined on the client or passed to this method.
155156 extra_headers : Headers | None = None ,
@@ -163,6 +164,8 @@ def follow(
163164 deployment reaches a terminal state.
164165
165166 Args:
167+ since: Show logs since the given time (RFC timestamps or durations like 5m).
168+
166169 extra_headers: Send extra headers
167170
168171 extra_query: Add additional query parameters to the request
@@ -177,7 +180,11 @@ def follow(
177180 return self ._get (
178181 f"/deployments/{ id } /events" ,
179182 options = make_request_options (
180- extra_headers = extra_headers , extra_query = extra_query , extra_body = extra_body , timeout = timeout
183+ extra_headers = extra_headers ,
184+ extra_query = extra_query ,
185+ extra_body = extra_body ,
186+ timeout = timeout ,
187+ query = maybe_transform ({"since" : since }, deployment_follow_params .DeploymentFollowParams ),
181188 ),
182189 cast_to = cast (
183190 Any , DeploymentFollowResponse
@@ -310,6 +317,7 @@ async def follow(
310317 self ,
311318 id : str ,
312319 * ,
320+ since : str | NotGiven = NOT_GIVEN ,
313321 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
314322 # The extra values given here take precedence over values defined on the client or passed to this method.
315323 extra_headers : Headers | None = None ,
@@ -323,6 +331,8 @@ async def follow(
323331 deployment reaches a terminal state.
324332
325333 Args:
334+ since: Show logs since the given time (RFC timestamps or durations like 5m).
335+
326336 extra_headers: Send extra headers
327337
328338 extra_query: Add additional query parameters to the request
@@ -337,7 +347,11 @@ async def follow(
337347 return await self ._get (
338348 f"/deployments/{ id } /events" ,
339349 options = make_request_options (
340- extra_headers = extra_headers , extra_query = extra_query , extra_body = extra_body , timeout = timeout
350+ extra_headers = extra_headers ,
351+ extra_query = extra_query ,
352+ extra_body = extra_body ,
353+ timeout = timeout ,
354+ query = await async_maybe_transform ({"since" : since }, deployment_follow_params .DeploymentFollowParams ),
341355 ),
342356 cast_to = cast (
343357 Any , DeploymentFollowResponse
0 commit comments