22
33from __future__ import annotations
44
5- from typing import Any , cast
5+ from typing import Any , Union , cast
6+ from datetime import datetime
67from typing_extensions import Literal , overload
78
89import httpx
@@ -87,6 +88,7 @@ def create(
8788 time_limit : float ,
8889 type : Literal ["simple" , "full" ],
8990 filter_v1 : PCAPFilterParam | NotGiven = NOT_GIVEN ,
91+ offset_time : Union [str , datetime ] | NotGiven = NOT_GIVEN ,
9092 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
9193 # The extra values given here take precedence over values defined on the client or passed to this method.
9294 extra_headers : Headers | None = None ,
@@ -111,6 +113,9 @@ def create(
111113
112114 filter_v1: The packet capture filter. When this field is empty, all packets are captured.
113115
116+ offset_time: The RFC 3339 offset timestamp from which to query backwards for packets. Must be
117+ within the last 24h. When this field is empty, defaults to time of request.
118+
114119 extra_headers: Send extra headers
115120
116121 extra_query: Add additional query parameters to the request
@@ -190,6 +195,7 @@ def create(
190195 time_limit : float ,
191196 type : Literal ["simple" , "full" ],
192197 filter_v1 : PCAPFilterParam | NotGiven = NOT_GIVEN ,
198+ offset_time : Union [str , datetime ] | NotGiven = NOT_GIVEN ,
193199 colo_name : str | NotGiven = NOT_GIVEN ,
194200 destination_conf : str | NotGiven = NOT_GIVEN ,
195201 byte_limit : float | NotGiven = NOT_GIVEN ,
@@ -213,6 +219,7 @@ def create(
213219 "time_limit" : time_limit ,
214220 "type" : type ,
215221 "filter_v1" : filter_v1 ,
222+ "offset_time" : offset_time ,
216223 "colo_name" : colo_name ,
217224 "destination_conf" : destination_conf ,
218225 "byte_limit" : byte_limit ,
@@ -356,6 +363,7 @@ async def create(
356363 time_limit : float ,
357364 type : Literal ["simple" , "full" ],
358365 filter_v1 : PCAPFilterParam | NotGiven = NOT_GIVEN ,
366+ offset_time : Union [str , datetime ] | NotGiven = NOT_GIVEN ,
359367 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
360368 # The extra values given here take precedence over values defined on the client or passed to this method.
361369 extra_headers : Headers | None = None ,
@@ -380,6 +388,9 @@ async def create(
380388
381389 filter_v1: The packet capture filter. When this field is empty, all packets are captured.
382390
391+ offset_time: The RFC 3339 offset timestamp from which to query backwards for packets. Must be
392+ within the last 24h. When this field is empty, defaults to time of request.
393+
383394 extra_headers: Send extra headers
384395
385396 extra_query: Add additional query parameters to the request
@@ -459,6 +470,7 @@ async def create(
459470 time_limit : float ,
460471 type : Literal ["simple" , "full" ],
461472 filter_v1 : PCAPFilterParam | NotGiven = NOT_GIVEN ,
473+ offset_time : Union [str , datetime ] | NotGiven = NOT_GIVEN ,
462474 colo_name : str | NotGiven = NOT_GIVEN ,
463475 destination_conf : str | NotGiven = NOT_GIVEN ,
464476 byte_limit : float | NotGiven = NOT_GIVEN ,
@@ -482,6 +494,7 @@ async def create(
482494 "time_limit" : time_limit ,
483495 "type" : type ,
484496 "filter_v1" : filter_v1 ,
497+ "offset_time" : offset_time ,
485498 "colo_name" : colo_name ,
486499 "destination_conf" : destination_conf ,
487500 "byte_limit" : byte_limit ,
0 commit comments