Skip to content

Commit

Permalink
feat(api): update via SDK Studio (#250)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Apr 22, 2024
1 parent 395d47f commit 2e4eb74
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 35 deletions.
6 changes: 1 addition & 5 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -3472,11 +3472,7 @@ Methods:
Types:

```python
from cloudflare.types.intel import (
DNS,
UnnamedSchemaRefB5e16cee4f32382c294201aedb9fc050,
DNSListResponse,
)
from cloudflare.types.intel import DNS, DNSListResponse
```

Methods:
Expand Down
3 changes: 0 additions & 3 deletions src/cloudflare/types/intel/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,3 @@
from .indicator_feed_update_response import IndicatorFeedUpdateResponse as IndicatorFeedUpdateResponse
from .miscategorization_create_params import MiscategorizationCreateParams as MiscategorizationCreateParams
from .miscategorization_create_response import MiscategorizationCreateResponse as MiscategorizationCreateResponse
from .unnamed_schema_ref_b5e16cee4f32382c294201aedb9fc050 import (
UnnamedSchemaRefB5e16cee4f32382c294201aedb9fc050 as UnnamedSchemaRefB5e16cee4f32382c294201aedb9fc050,
)
17 changes: 14 additions & 3 deletions src/cloudflare/types/intel/dns.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,22 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from typing import List, Optional
from datetime import date

from ..._models import BaseModel
from .unnamed_schema_ref_b5e16cee4f32382c294201aedb9fc050 import UnnamedSchemaRefB5e16cee4f32382c294201aedb9fc050

__all__ = ["DNS"]
__all__ = ["DNS", "ReverseRecord"]


class ReverseRecord(BaseModel):
first_seen: Optional[date] = None
"""First seen date of the DNS record during the time period."""

hostname: Optional[object] = None
"""Hostname that the IP was observed resolving to."""

last_seen: Optional[date] = None
"""Last seen date of the DNS record during the time period."""


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

reverse_records: Optional[List[UnnamedSchemaRefB5e16cee4f32382c294201aedb9fc050]] = None
reverse_records: Optional[List[ReverseRecord]] = None
"""Reverse DNS look-ups observed during the time period."""
22 changes: 17 additions & 5 deletions src/cloudflare/types/intel/dns_param.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,24 @@

from __future__ import annotations

from typing import Iterable
from typing_extensions import TypedDict
from typing import Union, Iterable
from datetime import date
from typing_extensions import Annotated, TypedDict

from .unnamed_schema_ref_b5e16cee4f32382c294201aedb9fc050 import UnnamedSchemaRefB5e16cee4f32382c294201aedb9fc050
from ..._utils import PropertyInfo

__all__ = ["DNSParam"]
__all__ = ["DNSParam", "ReverseRecord"]


class ReverseRecord(TypedDict, total=False):
first_seen: Annotated[Union[str, date], PropertyInfo(format="iso8601")]
"""First seen date of the DNS record during the time period."""

hostname: object
"""Hostname that the IP was observed resolving to."""

last_seen: Annotated[Union[str, date], PropertyInfo(format="iso8601")]
"""Last seen date of the DNS record during the time period."""


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

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

This file was deleted.

0 comments on commit 2e4eb74

Please sign in to comment.