Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(api): update via SDK Studio #250

Merged
merged 1 commit into from
Apr 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.