4
4
5
5
from typing import Type , Union , Optional , cast
6
6
from datetime import datetime
7
- from typing_extensions import Literal
8
7
9
8
import httpx
10
9
25
24
from ......_base_client import (
26
25
make_request_options ,
27
26
)
27
+ from ......types .dns .firewall import Delta
28
+ from ......types .dns .firewall .delta import Delta
28
29
from ......types .dns .analytics .reports .by_time import ByTime
29
30
from ......types .dns .firewall .analytics .reports import bytime_get_params
30
31
@@ -51,8 +52,7 @@ def get(
51
52
metrics : str | NotGiven = NOT_GIVEN ,
52
53
since : Union [str , datetime ] | NotGiven = NOT_GIVEN ,
53
54
sort : str | NotGiven = NOT_GIVEN ,
54
- time_delta : Literal ["all" , "auto" , "year" , "quarter" , "month" , "week" , "day" , "hour" , "dekaminute" , "minute" ]
55
- | NotGiven = NOT_GIVEN ,
55
+ time_delta : Delta | NotGiven = NOT_GIVEN ,
56
56
until : Union [str , datetime ] | NotGiven = NOT_GIVEN ,
57
57
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
58
58
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -148,8 +148,7 @@ async def get(
148
148
metrics : str | NotGiven = NOT_GIVEN ,
149
149
since : Union [str , datetime ] | NotGiven = NOT_GIVEN ,
150
150
sort : str | NotGiven = NOT_GIVEN ,
151
- time_delta : Literal ["all" , "auto" , "year" , "quarter" , "month" , "week" , "day" , "hour" , "dekaminute" , "minute" ]
152
- | NotGiven = NOT_GIVEN ,
151
+ time_delta : Delta | NotGiven = NOT_GIVEN ,
153
152
until : Union [str , datetime ] | NotGiven = NOT_GIVEN ,
154
153
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
155
154
# The extra values given here take precedence over values defined on the client or passed to this method.
0 commit comments