Skip to content

Commit b4fbc33

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): update via SDK Studio (#250)
1 parent 7ad459c commit b4fbc33

File tree

5 files changed

+32
-35
lines changed

5 files changed

+32
-35
lines changed

api.md

+1-5
Original file line numberDiff line numberDiff line change
@@ -3472,11 +3472,7 @@ Methods:
34723472
Types:
34733473

34743474
```python
3475-
from cloudflare.types.intel import (
3476-
DNS,
3477-
UnnamedSchemaRefB5e16cee4f32382c294201aedb9fc050,
3478-
DNSListResponse,
3479-
)
3475+
from cloudflare.types.intel import DNS, DNSListResponse
34803476
```
34813477

34823478
Methods:

src/cloudflare/types/intel/__init__.py

-3
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,3 @@
2929
from .indicator_feed_update_response import IndicatorFeedUpdateResponse as IndicatorFeedUpdateResponse
3030
from .miscategorization_create_params import MiscategorizationCreateParams as MiscategorizationCreateParams
3131
from .miscategorization_create_response import MiscategorizationCreateResponse as MiscategorizationCreateResponse
32-
from .unnamed_schema_ref_b5e16cee4f32382c294201aedb9fc050 import (
33-
UnnamedSchemaRefB5e16cee4f32382c294201aedb9fc050 as UnnamedSchemaRefB5e16cee4f32382c294201aedb9fc050,
34-
)

src/cloudflare/types/intel/dns.py

+14-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,22 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
from typing import List, Optional
4+
from datetime import date
45

56
from ..._models import BaseModel
6-
from .unnamed_schema_ref_b5e16cee4f32382c294201aedb9fc050 import UnnamedSchemaRefB5e16cee4f32382c294201aedb9fc050
77

8-
__all__ = ["DNS"]
8+
__all__ = ["DNS", "ReverseRecord"]
9+
10+
11+
class ReverseRecord(BaseModel):
12+
first_seen: Optional[date] = None
13+
"""First seen date of the DNS record during the time period."""
14+
15+
hostname: Optional[object] = None
16+
"""Hostname that the IP was observed resolving to."""
17+
18+
last_seen: Optional[date] = None
19+
"""Last seen date of the DNS record during the time period."""
920

1021

1122
class DNS(BaseModel):
@@ -18,5 +29,5 @@ class DNS(BaseModel):
1829
per_page: Optional[float] = None
1930
"""Number of results per page of results."""
2031

21-
reverse_records: Optional[List[UnnamedSchemaRefB5e16cee4f32382c294201aedb9fc050]] = None
32+
reverse_records: Optional[List[ReverseRecord]] = None
2233
"""Reverse DNS look-ups observed during the time period."""

src/cloudflare/types/intel/dns_param.py

+17-5
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,24 @@
22

33
from __future__ import annotations
44

5-
from typing import Iterable
6-
from typing_extensions import TypedDict
5+
from typing import Union, Iterable
6+
from datetime import date
7+
from typing_extensions import Annotated, TypedDict
78

8-
from .unnamed_schema_ref_b5e16cee4f32382c294201aedb9fc050 import UnnamedSchemaRefB5e16cee4f32382c294201aedb9fc050
9+
from ..._utils import PropertyInfo
910

10-
__all__ = ["DNSParam"]
11+
__all__ = ["DNSParam", "ReverseRecord"]
12+
13+
14+
class ReverseRecord(TypedDict, total=False):
15+
first_seen: Annotated[Union[str, date], PropertyInfo(format="iso8601")]
16+
"""First seen date of the DNS record during the time period."""
17+
18+
hostname: object
19+
"""Hostname that the IP was observed resolving to."""
20+
21+
last_seen: Annotated[Union[str, date], PropertyInfo(format="iso8601")]
22+
"""Last seen date of the DNS record during the time period."""
1123

1224

1325
class DNSParam(TypedDict, total=False):
@@ -20,5 +32,5 @@ class DNSParam(TypedDict, total=False):
2032
per_page: float
2133
"""Number of results per page of results."""
2234

23-
reverse_records: Iterable[UnnamedSchemaRefB5e16cee4f32382c294201aedb9fc050]
35+
reverse_records: Iterable[ReverseRecord]
2436
"""Reverse DNS look-ups observed during the time period."""

src/cloudflare/types/intel/unnamed_schema_ref_b5e16cee4f32382c294201aedb9fc050.py

-19
This file was deleted.

0 commit comments

Comments
 (0)