Skip to content

Commit 8c44db9

Browse files
fix(types): add missing types
1 parent b9c025b commit 8c44db9

5 files changed

Lines changed: 40 additions & 5 deletions

File tree

src/cloudflare/types/radar/as112_timeseries_response.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"MetaConfidenceInfoAnnotation",
1616
"MetaDateRange",
1717
"MetaUnit",
18+
"AS112TimeseriesResponseItem",
1819
]
1920

2021

@@ -93,6 +94,12 @@ class Meta(BaseModel):
9394
"""Measurement units for the results."""
9495

9596

97+
class AS112TimeseriesResponseItem(BaseModel):
98+
timestamps: List[datetime]
99+
100+
values: List[str]
101+
102+
96103
class AS112TimeseriesResponse(BaseModel):
97104
meta: Meta
98105
"""Metadata for the results."""
@@ -101,4 +108,4 @@ class AS112TimeseriesResponse(BaseModel):
101108
# Stub to indicate that arbitrary properties are accepted.
102109
# To access properties that are not valid identifiers you can use `getattr`, e.g.
103110
# `getattr(obj, '$type')`
104-
def __getattr__(self, attr: str) -> object: ...
111+
def __getattr__(self, attr: str) -> AS112TimeseriesResponseItem: ...

src/cloudflare/types/radar/attacks/layer3_timeseries_response.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"MetaConfidenceInfoAnnotation",
1616
"MetaDateRange",
1717
"MetaUnit",
18+
"Layer3TimeseriesResponseItem",
1819
]
1920

2021

@@ -93,6 +94,12 @@ class Meta(BaseModel):
9394
"""Measurement units for the results."""
9495

9596

97+
class Layer3TimeseriesResponseItem(BaseModel):
98+
timestamps: List[datetime]
99+
100+
values: List[str]
101+
102+
96103
class Layer3TimeseriesResponse(BaseModel):
97104
meta: Meta
98105
"""Metadata for the results."""
@@ -101,4 +108,4 @@ class Layer3TimeseriesResponse(BaseModel):
101108
# Stub to indicate that arbitrary properties are accepted.
102109
# To access properties that are not valid identifiers you can use `getattr`, e.g.
103110
# `getattr(obj, '$type')`
104-
def __getattr__(self, attr: str) -> object: ...
111+
def __getattr__(self, attr: str) -> Layer3TimeseriesResponseItem: ...

src/cloudflare/types/radar/bot_timeseries_response.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"MetaConfidenceInfoAnnotation",
1616
"MetaDateRange",
1717
"MetaUnit",
18+
"BotTimeseriesResponseItem",
1819
]
1920

2021

@@ -93,6 +94,12 @@ class Meta(BaseModel):
9394
"""Measurement units for the results."""
9495

9596

97+
class BotTimeseriesResponseItem(BaseModel):
98+
timestamps: List[datetime]
99+
100+
values: List[str]
101+
102+
96103
class BotTimeseriesResponse(BaseModel):
97104
meta: Meta
98105
"""Metadata for the results."""
@@ -101,4 +108,4 @@ class BotTimeseriesResponse(BaseModel):
101108
# Stub to indicate that arbitrary properties are accepted.
102109
# To access properties that are not valid identifiers you can use `getattr`, e.g.
103110
# `getattr(obj, '$type')`
104-
def __getattr__(self, attr: str) -> object: ...
111+
def __getattr__(self, attr: str) -> BotTimeseriesResponseItem: ...

src/cloudflare/types/radar/dns_timeseries_response.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"MetaConfidenceInfoAnnotation",
1616
"MetaDateRange",
1717
"MetaUnit",
18+
"DNSTimeseriesResponseItem",
1819
]
1920

2021

@@ -93,6 +94,12 @@ class Meta(BaseModel):
9394
"""Measurement units for the results."""
9495

9596

97+
class DNSTimeseriesResponseItem(BaseModel):
98+
timestamps: List[datetime]
99+
100+
values: List[str]
101+
102+
96103
class DNSTimeseriesResponse(BaseModel):
97104
meta: Meta
98105
"""Metadata for the results."""
@@ -101,4 +108,4 @@ class DNSTimeseriesResponse(BaseModel):
101108
# Stub to indicate that arbitrary properties are accepted.
102109
# To access properties that are not valid identifiers you can use `getattr`, e.g.
103110
# `getattr(obj, '$type')`
104-
def __getattr__(self, attr: str) -> object: ...
111+
def __getattr__(self, attr: str) -> DNSTimeseriesResponseItem: ...

src/cloudflare/types/radar/http_timeseries_response.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"MetaConfidenceInfoAnnotation",
1616
"MetaDateRange",
1717
"MetaUnit",
18+
"HTTPTimeseriesResponseItem",
1819
]
1920

2021

@@ -93,6 +94,12 @@ class Meta(BaseModel):
9394
"""Measurement units for the results."""
9495

9596

97+
class HTTPTimeseriesResponseItem(BaseModel):
98+
timestamps: List[datetime]
99+
100+
values: List[str]
101+
102+
96103
class HTTPTimeseriesResponse(BaseModel):
97104
meta: Meta
98105
"""Metadata for the results."""
@@ -101,4 +108,4 @@ class HTTPTimeseriesResponse(BaseModel):
101108
# Stub to indicate that arbitrary properties are accepted.
102109
# To access properties that are not valid identifiers you can use `getattr`, e.g.
103110
# `getattr(obj, '$type')`
104-
def __getattr__(self, attr: str) -> object: ...
111+
def __getattr__(self, attr: str) -> HTTPTimeseriesResponseItem: ...

0 commit comments

Comments
 (0)