Skip to content

Commit

Permalink
feat(api): update via SDK Studio (#271)
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 794ddc0 commit 11d4f1d
Show file tree
Hide file tree
Showing 141 changed files with 3,632 additions and 869 deletions.
23 changes: 1 addition & 22 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -5985,24 +5985,6 @@ Methods:

# Radar

Types:

```python
from cloudflare.types import (
UnnamedSchemaRef16e559c45a31db5480e21fbe904b2e42,
UnnamedSchemaRef4124a22436f90127c7fa2c4543219752,
UnnamedSchemaRef73de8b634bb48667e28a6c6c56080c51,
UnnamedSchemaRef75bae70cf28e6bcef364b9840db3bdeb,
UnnamedSchemaRef7826220e105d84352ba1108d9ed88e55,
UnnamedSchemaRef83a14d589e799bc901b9ccc870251d09,
UnnamedSchemaRef8b383e904d9fb02521257ef9cc77d297,
UnnamedSchemaRef9002274ed7cb7f3dc567421e31529a3a,
UnnamedSchemaRefB5f3bd1840490bc487ffef84567807b1,
UnnamedSchemaRefBaac9d7da12de53e99142f8ecd3982e5,
UnnamedSchemaRefC5858f1f916a921846e0b6159af470a7,
)
```

## Annotations

### Outages
Expand Down Expand Up @@ -6285,10 +6267,7 @@ Methods:
Types:

```python
from cloudflare.types.radar import (
UnnamedSchemaRef67c73d4742566cab0909f71b1822e88c,
UnnamedSchemaRef853c157ad369010995e35be614e0343f,
)
from cloudflare.types.radar import RadarEmailSeries, RadarEmailSummary
```

### Routing
Expand Down
30 changes: 0 additions & 30 deletions src/cloudflare/types/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,33 +327,3 @@
from .origin_post_quantum_encryption_update_response import (
OriginPostQuantumEncryptionUpdateResponse as OriginPostQuantumEncryptionUpdateResponse,
)
from .unnamed_schema_ref_8b383e904d9fb02521257ef9cc77d297 import (
UnnamedSchemaRef8b383e904d9fb02521257ef9cc77d297 as UnnamedSchemaRef8b383e904d9fb02521257ef9cc77d297,
)
from .unnamed_schema_ref_16e559c45a31db5480e21fbe904b2e42 import (
UnnamedSchemaRef16e559c45a31db5480e21fbe904b2e42 as UnnamedSchemaRef16e559c45a31db5480e21fbe904b2e42,
)
from .unnamed_schema_ref_75bae70cf28e6bcef364b9840db3bdeb import (
UnnamedSchemaRef75bae70cf28e6bcef364b9840db3bdeb as UnnamedSchemaRef75bae70cf28e6bcef364b9840db3bdeb,
)
from .unnamed_schema_ref_83a14d589e799bc901b9ccc870251d09 import (
UnnamedSchemaRef83a14d589e799bc901b9ccc870251d09 as UnnamedSchemaRef83a14d589e799bc901b9ccc870251d09,
)
from .unnamed_schema_ref_4124a22436f90127c7fa2c4543219752 import (
UnnamedSchemaRef4124a22436f90127c7fa2c4543219752 as UnnamedSchemaRef4124a22436f90127c7fa2c4543219752,
)
from .unnamed_schema_ref_7826220e105d84352ba1108d9ed88e55 import (
UnnamedSchemaRef7826220e105d84352ba1108d9ed88e55 as UnnamedSchemaRef7826220e105d84352ba1108d9ed88e55,
)
from .unnamed_schema_ref_9002274ed7cb7f3dc567421e31529a3a import (
UnnamedSchemaRef9002274ed7cb7f3dc567421e31529a3a as UnnamedSchemaRef9002274ed7cb7f3dc567421e31529a3a,
)
from .unnamed_schema_ref_b5f3bd1840490bc487ffef84567807b1 import (
UnnamedSchemaRefB5f3bd1840490bc487ffef84567807b1 as UnnamedSchemaRefB5f3bd1840490bc487ffef84567807b1,
)
from .unnamed_schema_ref_baac9d7da12de53e99142f8ecd3982e5 import (
UnnamedSchemaRefBaac9d7da12de53e99142f8ecd3982e5 as UnnamedSchemaRefBaac9d7da12de53e99142f8ecd3982e5,
)
from .unnamed_schema_ref_c5858f1f916a921846e0b6159af470a7 import (
UnnamedSchemaRefC5858f1f916a921846e0b6159af470a7 as UnnamedSchemaRefC5858f1f916a921846e0b6159af470a7,
)
8 changes: 2 additions & 6 deletions src/cloudflare/types/radar/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@

from .entity_get_params import EntityGetParams as EntityGetParams
from .dataset_get_params import DatasetGetParams as DatasetGetParams
from .radar_email_series import RadarEmailSeries as RadarEmailSeries
from .ranking_top_params import RankingTopParams as RankingTopParams
from .dataset_list_params import DatasetListParams as DatasetListParams
from .entity_get_response import EntityGetResponse as EntityGetResponse
from .radar_email_summary import RadarEmailSummary as RadarEmailSummary
from .dataset_get_response import DatasetGetResponse as DatasetGetResponse
from .ranking_top_response import RankingTopResponse as RankingTopResponse
from .search_global_params import SearchGlobalParams as SearchGlobalParams
Expand Down Expand Up @@ -34,9 +36,3 @@
from .connection_tampering_timeseries_groups_response import (
ConnectionTamperingTimeseriesGroupsResponse as ConnectionTamperingTimeseriesGroupsResponse,
)
from .unnamed_schema_ref_67c73d4742566cab0909f71b1822e88c import (
UnnamedSchemaRef67c73d4742566cab0909f71b1822e88c as UnnamedSchemaRef67c73d4742566cab0909f71b1822e88c,
)
from .unnamed_schema_ref_853c157ad369010995e35be614e0343f import (
UnnamedSchemaRef853c157ad369010995e35be614e0343f as UnnamedSchemaRef853c157ad369010995e35be614e0343f,
)
26 changes: 22 additions & 4 deletions src/cloudflare/types/radar/annotations/outage_get_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,35 @@
from pydantic import Field as FieldInfo

from ...._models import BaseModel
from ...unnamed_schema_ref_16e559c45a31db5480e21fbe904b2e42 import UnnamedSchemaRef16e559c45a31db5480e21fbe904b2e42

__all__ = ["OutageGetResponse", "Annotation", "AnnotationASNsDetail", "AnnotationOutage"]
__all__ = [
"OutageGetResponse",
"Annotation",
"AnnotationASNsDetail",
"AnnotationASNsDetailLocations",
"AnnotationLocationsDetail",
"AnnotationOutage",
]


class AnnotationASNsDetailLocations(BaseModel):
code: str

name: str


class AnnotationASNsDetail(BaseModel):
asn: str

name: str

locations: Optional[UnnamedSchemaRef16e559c45a31db5480e21fbe904b2e42] = None
locations: Optional[AnnotationASNsDetailLocations] = None


class AnnotationLocationsDetail(BaseModel):
code: str

name: str


class AnnotationOutage(BaseModel):
Expand All @@ -37,7 +55,7 @@ class Annotation(BaseModel):

locations: List[str]

locations_details: List[UnnamedSchemaRef16e559c45a31db5480e21fbe904b2e42] = FieldInfo(alias="locationsDetails")
locations_details: List[AnnotationLocationsDetail] = FieldInfo(alias="locationsDetails")

outage: AnnotationOutage

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,20 @@

from typing import List

from pydantic import Field as FieldInfo

from ...._models import BaseModel
from ...unnamed_schema_ref_83a14d589e799bc901b9ccc870251d09 import UnnamedSchemaRef83a14d589e799bc901b9ccc870251d09

__all__ = ["OutageLocationsResponse"]
__all__ = ["OutageLocationsResponse", "Annotation"]


class Annotation(BaseModel):
client_country_alpha2: str = FieldInfo(alias="clientCountryAlpha2")

client_country_name: str = FieldInfo(alias="clientCountryName")

value: str


class OutageLocationsResponse(BaseModel):
annotations: List[UnnamedSchemaRef83a14d589e799bc901b9ccc870251d09]
annotations: List[Annotation]
40 changes: 35 additions & 5 deletions src/cloudflare/types/radar/as112/summary_dnssec_response.py
Original file line number Diff line number Diff line change
@@ -1,24 +1,54 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from typing import List, Optional
from datetime import datetime

from pydantic import Field as FieldInfo

from ...._models import BaseModel
from ...unnamed_schema_ref_b5f3bd1840490bc487ffef84567807b1 import UnnamedSchemaRefB5f3bd1840490bc487ffef84567807b1
from ...unnamed_schema_ref_baac9d7da12de53e99142f8ecd3982e5 import UnnamedSchemaRefBaac9d7da12de53e99142f8ecd3982e5

__all__ = ["SummaryDNSSECResponse", "Meta", "MetaConfidenceInfo", "Summary0"]
__all__ = [
"SummaryDNSSECResponse",
"Meta",
"MetaDateRange",
"MetaConfidenceInfo",
"MetaConfidenceInfoAnnotation",
"Summary0",
]


class MetaDateRange(BaseModel):
end_time: datetime = FieldInfo(alias="endTime")
"""Adjusted end of date range."""

start_time: datetime = FieldInfo(alias="startTime")
"""Adjusted start of date range."""


class MetaConfidenceInfoAnnotation(BaseModel):
data_source: str = FieldInfo(alias="dataSource")

description: str

event_type: str = FieldInfo(alias="eventType")

is_instantaneous: object = FieldInfo(alias="isInstantaneous")

end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)

linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)

start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)


class MetaConfidenceInfo(BaseModel):
annotations: Optional[List[UnnamedSchemaRefB5f3bd1840490bc487ffef84567807b1]] = None
annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None

level: Optional[int] = None


class Meta(BaseModel):
date_range: List[UnnamedSchemaRefBaac9d7da12de53e99142f8ecd3982e5] = FieldInfo(alias="dateRange")
date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")

last_updated: str = FieldInfo(alias="lastUpdated")

Expand Down
40 changes: 35 additions & 5 deletions src/cloudflare/types/radar/as112/summary_edns_response.py
Original file line number Diff line number Diff line change
@@ -1,24 +1,54 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from typing import List, Optional
from datetime import datetime

from pydantic import Field as FieldInfo

from ...._models import BaseModel
from ...unnamed_schema_ref_b5f3bd1840490bc487ffef84567807b1 import UnnamedSchemaRefB5f3bd1840490bc487ffef84567807b1
from ...unnamed_schema_ref_baac9d7da12de53e99142f8ecd3982e5 import UnnamedSchemaRefBaac9d7da12de53e99142f8ecd3982e5

__all__ = ["SummaryEdnsResponse", "Meta", "MetaConfidenceInfo", "Summary0"]
__all__ = [
"SummaryEdnsResponse",
"Meta",
"MetaDateRange",
"MetaConfidenceInfo",
"MetaConfidenceInfoAnnotation",
"Summary0",
]


class MetaDateRange(BaseModel):
end_time: datetime = FieldInfo(alias="endTime")
"""Adjusted end of date range."""

start_time: datetime = FieldInfo(alias="startTime")
"""Adjusted start of date range."""


class MetaConfidenceInfoAnnotation(BaseModel):
data_source: str = FieldInfo(alias="dataSource")

description: str

event_type: str = FieldInfo(alias="eventType")

is_instantaneous: object = FieldInfo(alias="isInstantaneous")

end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)

linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)

start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)


class MetaConfidenceInfo(BaseModel):
annotations: Optional[List[UnnamedSchemaRefB5f3bd1840490bc487ffef84567807b1]] = None
annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None

level: Optional[int] = None


class Meta(BaseModel):
date_range: List[UnnamedSchemaRefBaac9d7da12de53e99142f8ecd3982e5] = FieldInfo(alias="dateRange")
date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")

last_updated: str = FieldInfo(alias="lastUpdated")

Expand Down
49 changes: 42 additions & 7 deletions src/cloudflare/types/radar/as112/summary_ip_version_response.py
Original file line number Diff line number Diff line change
@@ -1,25 +1,54 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from typing import List, Optional
from datetime import datetime

from pydantic import Field as FieldInfo

from ...._models import BaseModel
from ...unnamed_schema_ref_8b383e904d9fb02521257ef9cc77d297 import UnnamedSchemaRef8b383e904d9fb02521257ef9cc77d297
from ...unnamed_schema_ref_b5f3bd1840490bc487ffef84567807b1 import UnnamedSchemaRefB5f3bd1840490bc487ffef84567807b1
from ...unnamed_schema_ref_baac9d7da12de53e99142f8ecd3982e5 import UnnamedSchemaRefBaac9d7da12de53e99142f8ecd3982e5

__all__ = ["SummaryIPVersionResponse", "Meta", "MetaConfidenceInfo"]
__all__ = [
"SummaryIPVersionResponse",
"Meta",
"MetaDateRange",
"MetaConfidenceInfo",
"MetaConfidenceInfoAnnotation",
"Summary0",
]


class MetaDateRange(BaseModel):
end_time: datetime = FieldInfo(alias="endTime")
"""Adjusted end of date range."""

start_time: datetime = FieldInfo(alias="startTime")
"""Adjusted start of date range."""


class MetaConfidenceInfoAnnotation(BaseModel):
data_source: str = FieldInfo(alias="dataSource")

description: str

event_type: str = FieldInfo(alias="eventType")

is_instantaneous: object = FieldInfo(alias="isInstantaneous")

end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)

linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)

start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)


class MetaConfidenceInfo(BaseModel):
annotations: Optional[List[UnnamedSchemaRefB5f3bd1840490bc487ffef84567807b1]] = None
annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None

level: Optional[int] = None


class Meta(BaseModel):
date_range: List[UnnamedSchemaRefBaac9d7da12de53e99142f8ecd3982e5] = FieldInfo(alias="dateRange")
date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")

last_updated: str = FieldInfo(alias="lastUpdated")

Expand All @@ -28,7 +57,13 @@ class Meta(BaseModel):
confidence_info: Optional[MetaConfidenceInfo] = FieldInfo(alias="confidenceInfo", default=None)


class Summary0(BaseModel):
i_pv4: str = FieldInfo(alias="IPv4")

i_pv6: str = FieldInfo(alias="IPv6")


class SummaryIPVersionResponse(BaseModel):
meta: Meta

summary_0: UnnamedSchemaRef8b383e904d9fb02521257ef9cc77d297
summary_0: Summary0
Loading

0 comments on commit 11d4f1d

Please sign in to comment.