From 6887c565e76c4a2f646086e340afb9718a3f161f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 10 Apr 2024 10:50:15 +0000 Subject: [PATCH] feat(api): update via SDK Studio (#271) --- api.md | 23 +-------- src/cloudflare/types/__init__.py | 30 ----------- src/cloudflare/types/radar/__init__.py | 8 +-- .../radar/annotations/outage_get_response.py | 26 ++++++++-- .../annotations/outage_locations_response.py | 15 ++++-- .../radar/as112/summary_dnssec_response.py | 40 +++++++++++++-- .../radar/as112/summary_edns_response.py | 40 +++++++++++++-- .../as112/summary_ip_version_response.py | 49 +++++++++++++++--- .../radar/as112/summary_protocol_response.py | 40 +++++++++++++-- .../as112/summary_query_type_response.py | 40 +++++++++++++-- .../as112/summary_response_codes_response.py | 40 +++++++++++++-- .../types/radar/as112/top_dnssec_response.py | 44 +++++++++++++--- .../types/radar/as112/top_edns_response.py | 44 +++++++++++++--- .../radar/as112/top_ip_version_response.py | 51 ++++++++++++++++--- .../radar/as112/top_locations_response.py | 51 ++++++++++++++++--- .../types/radar/as112_timeseries_response.py | 48 ++++++++++++++--- .../layer3/summary_bitrate_response.py | 40 +++++++++++++-- .../layer3/summary_duration_response.py | 40 +++++++++++++-- .../attacks/layer3/summary_get_response.py | 40 +++++++++++++-- .../layer3/summary_ip_version_response.py | 49 +++++++++++++++--- .../layer3/summary_protocol_response.py | 40 +++++++++++++-- .../attacks/layer3/summary_vector_response.py | 33 ++++++++++-- .../layer3/timeseries_group_get_response.py | 39 ++++++++++++-- .../timeseries_group_industry_response.py | 18 +++++-- .../timeseries_group_ip_version_response.py | 15 ++++-- .../timeseries_group_vector_response.py | 18 +++++-- .../timeseries_group_vertical_response.py | 18 +++++-- .../layer3/top/location_origin_response.py | 40 +++++++++++++-- .../layer3/top/location_target_response.py | 40 +++++++++++++-- .../attacks/layer3/top_attacks_response.py | 33 ++++++++++-- .../attacks/layer3/top_industry_response.py | 33 ++++++++++-- .../attacks/layer3/top_vertical_response.py | 33 ++++++++++-- .../attacks/layer3_timeseries_response.py | 14 +++-- .../attacks/layer7/summary_get_response.py | 40 +++++++++++++-- .../layer7/summary_http_method_response.py | 40 +++++++++++++-- .../layer7/summary_http_version_response.py | 40 +++++++++++++-- .../layer7/summary_ip_version_response.py | 49 +++++++++++++++--- .../layer7/summary_managed_rules_response.py | 40 +++++++++++++-- .../summary_mitigation_product_response.py | 40 +++++++++++++-- .../layer7/timeseries_group_get_response.py | 39 ++++++++++++-- .../timeseries_group_industry_response.py | 18 +++++-- .../timeseries_group_ip_version_response.py | 15 ++++-- .../timeseries_group_vertical_response.py | 18 +++++-- .../attacks/layer7/top/ase_origin_response.py | 33 ++++++++++-- .../layer7/top/location_origin_response.py | 40 +++++++++++++-- .../layer7/top/location_target_response.py | 40 +++++++++++++-- .../attacks/layer7/top_attacks_response.py | 33 ++++++++++-- .../attacks/layer7/top_industry_response.py | 33 ++++++++++-- .../attacks/layer7/top_vertical_response.py | 33 ++++++++++-- .../attacks/layer7_timeseries_response.py | 48 ++++++++++++++--- .../types/radar/bgp/route_moas_response.py | 13 +++-- .../types/radar/bgp/route_pfx2as_response.py | 13 +++-- .../types/radar/bgp/route_stats_response.py | 13 +++-- .../radar/bgp/route_timeseries_response.py | 13 +++-- .../types/radar/bgp/top/ase_get_response.py | 14 +++-- .../radar/bgp/top/ase_prefixes_response.py | 13 +++-- .../types/radar/bgp/top_prefixes_response.py | 14 +++-- .../types/radar/bgp_timeseries_response.py | 48 ++++++++++++++--- .../connection_tampering_summary_response.py | 40 +++++++++++++-- ...on_tampering_timeseries_groups_response.py | 39 ++++++++++++-- .../types/radar/dns/top_ases_response.py | 44 +++++++++++++--- .../types/radar/dns/top_locations_response.py | 51 ++++++++++++++++--- .../email/routing/summary_arc_response.py | 37 +++++++++++--- .../email/routing/summary_dkim_response.py | 37 +++++++++++--- .../email/routing/summary_dmarc_response.py | 37 +++++++++++--- .../routing/summary_encrypted_response.py | 40 +++++++++++++-- .../routing/summary_ip_version_response.py | 49 +++++++++++++++--- .../email/routing/summary_spf_response.py | 37 +++++++++++--- .../routing/timeseries_group_arc_response.py | 4 +- .../routing/timeseries_group_dkim_response.py | 4 +- .../timeseries_group_dmarc_response.py | 4 +- .../routing/timeseries_group_spf_response.py | 4 +- .../email/security/summary_arc_response.py | 37 +++++++++++--- .../email/security/summary_dkim_response.py | 37 +++++++++++--- .../email/security/summary_dmarc_response.py | 37 +++++++++++--- .../security/summary_malicious_response.py | 40 +++++++++++++-- .../email/security/summary_spam_response.py | 40 +++++++++++++-- .../email/security/summary_spf_response.py | 37 +++++++++++--- .../email/security/summary_spoof_response.py | 40 +++++++++++++-- .../summary_threat_category_response.py | 40 +++++++++++++-- .../security/summary_tls_version_response.py | 40 +++++++++++++-- .../security/timeseries_group_arc_response.py | 4 +- .../timeseries_group_dkim_response.py | 4 +- .../timeseries_group_dmarc_response.py | 4 +- .../security/timeseries_group_spf_response.py | 4 +- .../email/security/top/tld_get_response.py | 33 ++++++++++-- .../top/tlds/malicious_get_response.py | 33 ++++++++++-- .../security/top/tlds/spam_get_response.py | 33 ++++++++++-- .../security/top/tlds/spoof_get_response.py | 33 ++++++++++-- .../types/radar/entities/asn_rel_response.py | 13 +++-- .../types/radar/http/ase_get_response.py | 44 +++++++++++++--- .../radar/http/ases/bot_class_get_response.py | 44 +++++++++++++--- .../http/ases/device_type_get_response.py | 51 ++++++++++++++++--- .../http/ases/http_method_get_response.py | 51 ++++++++++++++++--- .../http/ases/http_protocol_get_response.py | 51 ++++++++++++++++--- .../http/ases/ip_version_get_response.py | 51 ++++++++++++++++--- .../types/radar/http/ases/os_get_response.py | 44 +++++++++++++--- .../http/ases/tls_version_get_response.py | 51 ++++++++++++++++--- .../types/radar/http/location_get_response.py | 44 +++++++++++++--- .../http/locations/bot_class_get_response.py | 44 +++++++++++++--- .../locations/device_type_get_response.py | 51 ++++++++++++++++--- .../locations/http_method_get_response.py | 51 ++++++++++++++++--- .../locations/http_protocol_get_response.py | 51 ++++++++++++++++--- .../http/locations/ip_version_get_response.py | 51 ++++++++++++++++--- .../radar/http/locations/os_get_response.py | 44 +++++++++++++--- .../locations/tls_version_get_response.py | 51 ++++++++++++++++--- .../radar/http/summary_bot_class_response.py | 40 +++++++++++++-- .../http/summary_device_type_response.py | 40 +++++++++++++-- .../http/summary_http_protocol_response.py | 40 +++++++++++++-- .../http/summary_http_version_response.py | 40 +++++++++++++-- .../radar/http/summary_ip_version_response.py | 49 +++++++++++++++--- .../types/radar/http/summary_os_response.py | 40 +++++++++++++-- .../http/summary_tls_version_response.py | 40 +++++++++++++-- ...imeseries_group_browser_family_response.py | 18 +++++-- .../http/timeseries_group_browser_response.py | 18 +++++-- .../timeseries_group_ip_version_response.py | 15 ++++-- .../http/timeseries_group_os_response.py | 18 +++++-- .../http/top_browser_families_response.py | 33 ++++++++++-- .../types/radar/http/top_browsers_response.py | 33 ++++++++++-- .../radar/netflow_timeseries_response.py | 48 ++++++++++++++--- .../radar/quality/iqi_summary_response.py | 40 +++++++++++++-- .../radar/quality/speed/top_ases_response.py | 33 ++++++++++-- .../quality/speed/top_locations_response.py | 40 +++++++++++++-- .../radar/quality/speed_summary_response.py | 40 +++++++++++++-- ...9f71b1822e88c.py => radar_email_series.py} | 4 +- ...5be614e0343f.py => radar_email_summary.py} | 4 +- .../ranking_timeseries_groups_response.py | 14 +++-- .../location_get_response.py | 13 +++-- .../radar/traffic_anomaly_get_response.py | 27 +++++++--- .../radar/verified_bots/top_bots_response.py | 33 ++++++++++-- .../verified_bots/top_categories_response.py | 40 +++++++++++++-- ...ma_ref_16e559c45a31db5480e21fbe904b2e42.py | 11 ---- ...ma_ref_4124a22436f90127c7fa2c4543219752.py | 15 ------ ...ma_ref_75bae70cf28e6bcef364b9840db3bdeb.py | 14 ----- ...ma_ref_7826220e105d84352ba1108d9ed88e55.py | 18 ------- ...ma_ref_83a14d589e799bc901b9ccc870251d09.py | 15 ------ ...ma_ref_8b383e904d9fb02521257ef9cc77d297.py | 13 ----- ...ma_ref_9002274ed7cb7f3dc567421e31529a3a.py | 17 ------- ...ma_ref_b5f3bd1840490bc487ffef84567807b1.py | 26 ---------- ...ma_ref_baac9d7da12de53e99142f8ecd3982e5.py | 17 ------- ...ma_ref_c5858f1f916a921846e0b6159af470a7.py | 13 ----- 141 files changed, 3632 insertions(+), 869 deletions(-) rename src/cloudflare/types/radar/{unnamed_schema_ref_67c73d4742566cab0909f71b1822e88c.py => radar_email_series.py} (71%) rename src/cloudflare/types/radar/{unnamed_schema_ref_853c157ad369010995e35be614e0343f.py => radar_email_summary.py} (68%) delete mode 100644 src/cloudflare/types/unnamed_schema_ref_16e559c45a31db5480e21fbe904b2e42.py delete mode 100644 src/cloudflare/types/unnamed_schema_ref_4124a22436f90127c7fa2c4543219752.py delete mode 100644 src/cloudflare/types/unnamed_schema_ref_75bae70cf28e6bcef364b9840db3bdeb.py delete mode 100644 src/cloudflare/types/unnamed_schema_ref_7826220e105d84352ba1108d9ed88e55.py delete mode 100644 src/cloudflare/types/unnamed_schema_ref_83a14d589e799bc901b9ccc870251d09.py delete mode 100644 src/cloudflare/types/unnamed_schema_ref_8b383e904d9fb02521257ef9cc77d297.py delete mode 100644 src/cloudflare/types/unnamed_schema_ref_9002274ed7cb7f3dc567421e31529a3a.py delete mode 100644 src/cloudflare/types/unnamed_schema_ref_b5f3bd1840490bc487ffef84567807b1.py delete mode 100644 src/cloudflare/types/unnamed_schema_ref_baac9d7da12de53e99142f8ecd3982e5.py delete mode 100644 src/cloudflare/types/unnamed_schema_ref_c5858f1f916a921846e0b6159af470a7.py diff --git a/api.md b/api.md index 1fabebe550fd..73a847727922 100644 --- a/api.md +++ b/api.md @@ -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 @@ -6285,10 +6267,7 @@ Methods: Types: ```python -from cloudflare.types.radar import ( - UnnamedSchemaRef67c73d4742566cab0909f71b1822e88c, - UnnamedSchemaRef853c157ad369010995e35be614e0343f, -) +from cloudflare.types.radar import RadarEmailSeries, RadarEmailSummary ``` ### Routing diff --git a/src/cloudflare/types/__init__.py b/src/cloudflare/types/__init__.py index 44cd1d31a3d7..85ef8bae5951 100644 --- a/src/cloudflare/types/__init__.py +++ b/src/cloudflare/types/__init__.py @@ -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, -) diff --git a/src/cloudflare/types/radar/__init__.py b/src/cloudflare/types/radar/__init__.py index 85d81453c53c..cacf1e11ece4 100644 --- a/src/cloudflare/types/radar/__init__.py +++ b/src/cloudflare/types/radar/__init__.py @@ -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 @@ -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, -) diff --git a/src/cloudflare/types/radar/annotations/outage_get_response.py b/src/cloudflare/types/radar/annotations/outage_get_response.py index c1fc2ad3b058..a849b72fd211 100644 --- a/src/cloudflare/types/radar/annotations/outage_get_response.py +++ b/src/cloudflare/types/radar/annotations/outage_get_response.py @@ -5,9 +5,21 @@ 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): @@ -15,7 +27,13 @@ class AnnotationASNsDetail(BaseModel): name: str - locations: Optional[UnnamedSchemaRef16e559c45a31db5480e21fbe904b2e42] = None + locations: Optional[AnnotationASNsDetailLocations] = None + + +class AnnotationLocationsDetail(BaseModel): + code: str + + name: str class AnnotationOutage(BaseModel): @@ -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 diff --git a/src/cloudflare/types/radar/annotations/outage_locations_response.py b/src/cloudflare/types/radar/annotations/outage_locations_response.py index 337c1b3a1d86..b175087e1509 100644 --- a/src/cloudflare/types/radar/annotations/outage_locations_response.py +++ b/src/cloudflare/types/radar/annotations/outage_locations_response.py @@ -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] diff --git a/src/cloudflare/types/radar/as112/summary_dnssec_response.py b/src/cloudflare/types/radar/as112/summary_dnssec_response.py index 4628a6b9405c..1dea9f500ff3 100644 --- a/src/cloudflare/types/radar/as112/summary_dnssec_response.py +++ b/src/cloudflare/types/radar/as112/summary_dnssec_response.py @@ -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") diff --git a/src/cloudflare/types/radar/as112/summary_edns_response.py b/src/cloudflare/types/radar/as112/summary_edns_response.py index c6a7e65e1fe8..da899d3649d3 100644 --- a/src/cloudflare/types/radar/as112/summary_edns_response.py +++ b/src/cloudflare/types/radar/as112/summary_edns_response.py @@ -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") diff --git a/src/cloudflare/types/radar/as112/summary_ip_version_response.py b/src/cloudflare/types/radar/as112/summary_ip_version_response.py index 41cc958f2098..e8515c06e801 100644 --- a/src/cloudflare/types/radar/as112/summary_ip_version_response.py +++ b/src/cloudflare/types/radar/as112/summary_ip_version_response.py @@ -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") @@ -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 diff --git a/src/cloudflare/types/radar/as112/summary_protocol_response.py b/src/cloudflare/types/radar/as112/summary_protocol_response.py index c1a0b6088834..3af1df357811 100644 --- a/src/cloudflare/types/radar/as112/summary_protocol_response.py +++ b/src/cloudflare/types/radar/as112/summary_protocol_response.py @@ -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__ = ["SummaryProtocolResponse", "Meta", "MetaConfidenceInfo", "Summary0"] +__all__ = [ + "SummaryProtocolResponse", + "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") diff --git a/src/cloudflare/types/radar/as112/summary_query_type_response.py b/src/cloudflare/types/radar/as112/summary_query_type_response.py index 31c5d2d83b05..d302fae87435 100644 --- a/src/cloudflare/types/radar/as112/summary_query_type_response.py +++ b/src/cloudflare/types/radar/as112/summary_query_type_response.py @@ -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__ = ["SummaryQueryTypeResponse", "Meta", "MetaConfidenceInfo", "Summary0"] +__all__ = [ + "SummaryQueryTypeResponse", + "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") diff --git a/src/cloudflare/types/radar/as112/summary_response_codes_response.py b/src/cloudflare/types/radar/as112/summary_response_codes_response.py index 221e6ab4111c..9ee9b90e7d09 100644 --- a/src/cloudflare/types/radar/as112/summary_response_codes_response.py +++ b/src/cloudflare/types/radar/as112/summary_response_codes_response.py @@ -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__ = ["SummaryResponseCodesResponse", "Meta", "MetaConfidenceInfo", "Summary0"] +__all__ = [ + "SummaryResponseCodesResponse", + "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") diff --git a/src/cloudflare/types/radar/as112/top_dnssec_response.py b/src/cloudflare/types/radar/as112/top_dnssec_response.py index e23797d35abc..6896a1eb5160 100644 --- a/src/cloudflare/types/radar/as112/top_dnssec_response.py +++ b/src/cloudflare/types/radar/as112/top_dnssec_response.py @@ -1,32 +1,62 @@ # 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_83a14d589e799bc901b9ccc870251d09 import UnnamedSchemaRef83a14d589e799bc901b9ccc870251d09 -from ...unnamed_schema_ref_b5f3bd1840490bc487ffef84567807b1 import UnnamedSchemaRefB5f3bd1840490bc487ffef84567807b1 -from ...unnamed_schema_ref_baac9d7da12de53e99142f8ecd3982e5 import UnnamedSchemaRefBaac9d7da12de53e99142f8ecd3982e5 -__all__ = ["TopDNSSECResponse", "Meta", "MetaConfidenceInfo"] +__all__ = ["TopDNSSECResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation", "Top0"] + + +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") confidence_info: Optional[MetaConfidenceInfo] = FieldInfo(alias="confidenceInfo", default=None) +class Top0(BaseModel): + client_country_alpha2: str = FieldInfo(alias="clientCountryAlpha2") + + client_country_name: str = FieldInfo(alias="clientCountryName") + + value: str + + class TopDNSSECResponse(BaseModel): meta: Meta - top_0: List[UnnamedSchemaRef83a14d589e799bc901b9ccc870251d09] + top_0: List[Top0] diff --git a/src/cloudflare/types/radar/as112/top_edns_response.py b/src/cloudflare/types/radar/as112/top_edns_response.py index ac4b6cdd76b3..88dd69c33503 100644 --- a/src/cloudflare/types/radar/as112/top_edns_response.py +++ b/src/cloudflare/types/radar/as112/top_edns_response.py @@ -1,32 +1,62 @@ # 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_83a14d589e799bc901b9ccc870251d09 import UnnamedSchemaRef83a14d589e799bc901b9ccc870251d09 -from ...unnamed_schema_ref_b5f3bd1840490bc487ffef84567807b1 import UnnamedSchemaRefB5f3bd1840490bc487ffef84567807b1 -from ...unnamed_schema_ref_baac9d7da12de53e99142f8ecd3982e5 import UnnamedSchemaRefBaac9d7da12de53e99142f8ecd3982e5 -__all__ = ["TopEdnsResponse", "Meta", "MetaConfidenceInfo"] +__all__ = ["TopEdnsResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation", "Top0"] + + +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") confidence_info: Optional[MetaConfidenceInfo] = FieldInfo(alias="confidenceInfo", default=None) +class Top0(BaseModel): + client_country_alpha2: str = FieldInfo(alias="clientCountryAlpha2") + + client_country_name: str = FieldInfo(alias="clientCountryName") + + value: str + + class TopEdnsResponse(BaseModel): meta: Meta - top_0: List[UnnamedSchemaRef83a14d589e799bc901b9ccc870251d09] + top_0: List[Top0] diff --git a/src/cloudflare/types/radar/as112/top_ip_version_response.py b/src/cloudflare/types/radar/as112/top_ip_version_response.py index 21553950ab3b..3ca896998819 100644 --- a/src/cloudflare/types/radar/as112/top_ip_version_response.py +++ b/src/cloudflare/types/radar/as112/top_ip_version_response.py @@ -1,32 +1,69 @@ # 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_83a14d589e799bc901b9ccc870251d09 import UnnamedSchemaRef83a14d589e799bc901b9ccc870251d09 -from ...unnamed_schema_ref_b5f3bd1840490bc487ffef84567807b1 import UnnamedSchemaRefB5f3bd1840490bc487ffef84567807b1 -from ...unnamed_schema_ref_baac9d7da12de53e99142f8ecd3982e5 import UnnamedSchemaRefBaac9d7da12de53e99142f8ecd3982e5 -__all__ = ["TopIPVersionResponse", "Meta", "MetaConfidenceInfo"] +__all__ = [ + "TopIPVersionResponse", + "Meta", + "MetaDateRange", + "MetaConfidenceInfo", + "MetaConfidenceInfoAnnotation", + "Top0", +] + + +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") confidence_info: Optional[MetaConfidenceInfo] = FieldInfo(alias="confidenceInfo", default=None) +class Top0(BaseModel): + client_country_alpha2: str = FieldInfo(alias="clientCountryAlpha2") + + client_country_name: str = FieldInfo(alias="clientCountryName") + + value: str + + class TopIPVersionResponse(BaseModel): meta: Meta - top_0: List[UnnamedSchemaRef83a14d589e799bc901b9ccc870251d09] + top_0: List[Top0] diff --git a/src/cloudflare/types/radar/as112/top_locations_response.py b/src/cloudflare/types/radar/as112/top_locations_response.py index 66bdf7ef2483..ccfeff383974 100644 --- a/src/cloudflare/types/radar/as112/top_locations_response.py +++ b/src/cloudflare/types/radar/as112/top_locations_response.py @@ -1,32 +1,69 @@ # 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_83a14d589e799bc901b9ccc870251d09 import UnnamedSchemaRef83a14d589e799bc901b9ccc870251d09 -from ...unnamed_schema_ref_b5f3bd1840490bc487ffef84567807b1 import UnnamedSchemaRefB5f3bd1840490bc487ffef84567807b1 -from ...unnamed_schema_ref_baac9d7da12de53e99142f8ecd3982e5 import UnnamedSchemaRefBaac9d7da12de53e99142f8ecd3982e5 -__all__ = ["TopLocationsResponse", "Meta", "MetaConfidenceInfo"] +__all__ = [ + "TopLocationsResponse", + "Meta", + "MetaDateRange", + "MetaConfidenceInfo", + "MetaConfidenceInfoAnnotation", + "Top0", +] + + +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") confidence_info: Optional[MetaConfidenceInfo] = FieldInfo(alias="confidenceInfo", default=None) +class Top0(BaseModel): + client_country_alpha2: str = FieldInfo(alias="clientCountryAlpha2") + + client_country_name: str = FieldInfo(alias="clientCountryName") + + value: str + + class TopLocationsResponse(BaseModel): meta: Meta - top_0: List[UnnamedSchemaRef83a14d589e799bc901b9ccc870251d09] + top_0: List[Top0] diff --git a/src/cloudflare/types/radar/as112_timeseries_response.py b/src/cloudflare/types/radar/as112_timeseries_response.py index 920fbe418305..169b4dc66113 100644 --- a/src/cloudflare/types/radar/as112_timeseries_response.py +++ b/src/cloudflare/types/radar/as112_timeseries_response.py @@ -6,15 +6,43 @@ from pydantic import Field as FieldInfo from ..._models import BaseModel -from ..unnamed_schema_ref_75bae70cf28e6bcef364b9840db3bdeb import UnnamedSchemaRef75bae70cf28e6bcef364b9840db3bdeb -from ..unnamed_schema_ref_b5f3bd1840490bc487ffef84567807b1 import UnnamedSchemaRefB5f3bd1840490bc487ffef84567807b1 -from ..unnamed_schema_ref_baac9d7da12de53e99142f8ecd3982e5 import UnnamedSchemaRefBaac9d7da12de53e99142f8ecd3982e5 -__all__ = ["AS112TimeseriesResponse", "Meta", "MetaConfidenceInfo"] +__all__ = [ + "AS112TimeseriesResponse", + "Meta", + "MetaDateRange", + "MetaConfidenceInfo", + "MetaConfidenceInfoAnnotation", + "Serie0", +] + + +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 @@ -22,14 +50,20 @@ class MetaConfidenceInfo(BaseModel): class Meta(BaseModel): agg_interval: str = FieldInfo(alias="aggInterval") - date_range: List[UnnamedSchemaRefBaac9d7da12de53e99142f8ecd3982e5] = FieldInfo(alias="dateRange") + date_range: List[MetaDateRange] = FieldInfo(alias="dateRange") last_updated: datetime = FieldInfo(alias="lastUpdated") confidence_info: Optional[MetaConfidenceInfo] = FieldInfo(alias="confidenceInfo", default=None) +class Serie0(BaseModel): + timestamps: List[datetime] + + values: List[str] + + class AS112TimeseriesResponse(BaseModel): meta: Meta - serie_0: UnnamedSchemaRef75bae70cf28e6bcef364b9840db3bdeb + serie_0: Serie0 diff --git a/src/cloudflare/types/radar/attacks/layer3/summary_bitrate_response.py b/src/cloudflare/types/radar/attacks/layer3/summary_bitrate_response.py index bfe395d28eeb..8669564cff67 100644 --- a/src/cloudflare/types/radar/attacks/layer3/summary_bitrate_response.py +++ b/src/cloudflare/types/radar/attacks/layer3/summary_bitrate_response.py @@ -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__ = ["SummaryBitrateResponse", "Meta", "MetaConfidenceInfo", "Summary0"] +__all__ = [ + "SummaryBitrateResponse", + "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") diff --git a/src/cloudflare/types/radar/attacks/layer3/summary_duration_response.py b/src/cloudflare/types/radar/attacks/layer3/summary_duration_response.py index da304fd93913..648f29c90305 100644 --- a/src/cloudflare/types/radar/attacks/layer3/summary_duration_response.py +++ b/src/cloudflare/types/radar/attacks/layer3/summary_duration_response.py @@ -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__ = ["SummaryDurationResponse", "Meta", "MetaConfidenceInfo", "Summary0"] +__all__ = [ + "SummaryDurationResponse", + "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") diff --git a/src/cloudflare/types/radar/attacks/layer3/summary_get_response.py b/src/cloudflare/types/radar/attacks/layer3/summary_get_response.py index baabda38abc8..1465bcb67d69 100644 --- a/src/cloudflare/types/radar/attacks/layer3/summary_get_response.py +++ b/src/cloudflare/types/radar/attacks/layer3/summary_get_response.py @@ -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__ = ["SummaryGetResponse", "Meta", "MetaConfidenceInfo", "Summary0"] +__all__ = [ + "SummaryGetResponse", + "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") confidence_info: Optional[MetaConfidenceInfo] = FieldInfo(alias="confidenceInfo", default=None) diff --git a/src/cloudflare/types/radar/attacks/layer3/summary_ip_version_response.py b/src/cloudflare/types/radar/attacks/layer3/summary_ip_version_response.py index 445615e9fe32..b4f96b8667ee 100644 --- a/src/cloudflare/types/radar/attacks/layer3/summary_ip_version_response.py +++ b/src/cloudflare/types/radar/attacks/layer3/summary_ip_version_response.py @@ -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") @@ -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 diff --git a/src/cloudflare/types/radar/attacks/layer3/summary_protocol_response.py b/src/cloudflare/types/radar/attacks/layer3/summary_protocol_response.py index 78b85462da7c..1cf176e0a5e8 100644 --- a/src/cloudflare/types/radar/attacks/layer3/summary_protocol_response.py +++ b/src/cloudflare/types/radar/attacks/layer3/summary_protocol_response.py @@ -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__ = ["SummaryProtocolResponse", "Meta", "MetaConfidenceInfo", "Summary0"] +__all__ = [ + "SummaryProtocolResponse", + "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") diff --git a/src/cloudflare/types/radar/attacks/layer3/summary_vector_response.py b/src/cloudflare/types/radar/attacks/layer3/summary_vector_response.py index 2038e5bfd0f1..47fb5fed0c09 100644 --- a/src/cloudflare/types/radar/attacks/layer3/summary_vector_response.py +++ b/src/cloudflare/types/radar/attacks/layer3/summary_vector_response.py @@ -1,24 +1,47 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing import Dict, 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__ = ["SummaryVectorResponse", "Meta", "MetaConfidenceInfo"] +__all__ = ["SummaryVectorResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation"] + + +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") diff --git a/src/cloudflare/types/radar/attacks/layer3/timeseries_group_get_response.py b/src/cloudflare/types/radar/attacks/layer3/timeseries_group_get_response.py index 2e0ddc156d12..e7bf91ff7a17 100644 --- a/src/cloudflare/types/radar/attacks/layer3/timeseries_group_get_response.py +++ b/src/cloudflare/types/radar/attacks/layer3/timeseries_group_get_response.py @@ -6,14 +6,43 @@ 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__ = ["TimeseriesGroupGetResponse", "Meta", "MetaConfidenceInfo", "Serie0"] +__all__ = [ + "TimeseriesGroupGetResponse", + "Meta", + "MetaDateRange", + "MetaConfidenceInfo", + "MetaConfidenceInfoAnnotation", + "Serie0", +] + + +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 @@ -21,7 +50,7 @@ class MetaConfidenceInfo(BaseModel): class Meta(BaseModel): agg_interval: str = FieldInfo(alias="aggInterval") - date_range: List[UnnamedSchemaRefBaac9d7da12de53e99142f8ecd3982e5] = FieldInfo(alias="dateRange") + date_range: List[MetaDateRange] = FieldInfo(alias="dateRange") last_updated: datetime = FieldInfo(alias="lastUpdated") diff --git a/src/cloudflare/types/radar/attacks/layer3/timeseries_group_industry_response.py b/src/cloudflare/types/radar/attacks/layer3/timeseries_group_industry_response.py index eeccd218dbe6..eee79e8794fe 100644 --- a/src/cloudflare/types/radar/attacks/layer3/timeseries_group_industry_response.py +++ b/src/cloudflare/types/radar/attacks/layer3/timeseries_group_industry_response.py @@ -1,14 +1,24 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - +from typing import TYPE_CHECKING, List from ....._models import BaseModel -from ....unnamed_schema_ref_7826220e105d84352ba1108d9ed88e55 import UnnamedSchemaRef7826220e105d84352ba1108d9ed88e55 -__all__ = ["TimeseriesGroupIndustryResponse"] +__all__ = ["TimeseriesGroupIndustryResponse", "Serie0"] + + +class Serie0(BaseModel): + timestamps: List[str] + + if TYPE_CHECKING: + # Stub to indicate that arbitrary properties are accepted. + # To access properties that are not valid identifiers you can use `getattr`, e.g. + # `getattr(obj, '$type')` + def __getattr__(self, attr: str) -> List[str]: + ... class TimeseriesGroupIndustryResponse(BaseModel): meta: object - serie_0: UnnamedSchemaRef7826220e105d84352ba1108d9ed88e55 + serie_0: Serie0 diff --git a/src/cloudflare/types/radar/attacks/layer3/timeseries_group_ip_version_response.py b/src/cloudflare/types/radar/attacks/layer3/timeseries_group_ip_version_response.py index 35daaa00f469..136fc4da3632 100644 --- a/src/cloudflare/types/radar/attacks/layer3/timeseries_group_ip_version_response.py +++ b/src/cloudflare/types/radar/attacks/layer3/timeseries_group_ip_version_response.py @@ -1,14 +1,23 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List +from pydantic import Field as FieldInfo from ....._models import BaseModel -from ....unnamed_schema_ref_9002274ed7cb7f3dc567421e31529a3a import UnnamedSchemaRef9002274ed7cb7f3dc567421e31529a3a -__all__ = ["TimeseriesGroupIPVersionResponse"] +__all__ = ["TimeseriesGroupIPVersionResponse", "Serie0"] + + +class Serie0(BaseModel): + i_pv4: List[str] = FieldInfo(alias="IPv4") + + i_pv6: List[str] = FieldInfo(alias="IPv6") + + timestamps: List[str] class TimeseriesGroupIPVersionResponse(BaseModel): meta: object - serie_0: UnnamedSchemaRef9002274ed7cb7f3dc567421e31529a3a + serie_0: Serie0 diff --git a/src/cloudflare/types/radar/attacks/layer3/timeseries_group_vector_response.py b/src/cloudflare/types/radar/attacks/layer3/timeseries_group_vector_response.py index feeedbd1898c..0806dc76c9f1 100644 --- a/src/cloudflare/types/radar/attacks/layer3/timeseries_group_vector_response.py +++ b/src/cloudflare/types/radar/attacks/layer3/timeseries_group_vector_response.py @@ -1,14 +1,24 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - +from typing import TYPE_CHECKING, List from ....._models import BaseModel -from ....unnamed_schema_ref_7826220e105d84352ba1108d9ed88e55 import UnnamedSchemaRef7826220e105d84352ba1108d9ed88e55 -__all__ = ["TimeseriesGroupVectorResponse"] +__all__ = ["TimeseriesGroupVectorResponse", "Serie0"] + + +class Serie0(BaseModel): + timestamps: List[str] + + if TYPE_CHECKING: + # Stub to indicate that arbitrary properties are accepted. + # To access properties that are not valid identifiers you can use `getattr`, e.g. + # `getattr(obj, '$type')` + def __getattr__(self, attr: str) -> List[str]: + ... class TimeseriesGroupVectorResponse(BaseModel): meta: object - serie_0: UnnamedSchemaRef7826220e105d84352ba1108d9ed88e55 + serie_0: Serie0 diff --git a/src/cloudflare/types/radar/attacks/layer3/timeseries_group_vertical_response.py b/src/cloudflare/types/radar/attacks/layer3/timeseries_group_vertical_response.py index c89269cb4c1b..5f3bb1a0608a 100644 --- a/src/cloudflare/types/radar/attacks/layer3/timeseries_group_vertical_response.py +++ b/src/cloudflare/types/radar/attacks/layer3/timeseries_group_vertical_response.py @@ -1,14 +1,24 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - +from typing import TYPE_CHECKING, List from ....._models import BaseModel -from ....unnamed_schema_ref_7826220e105d84352ba1108d9ed88e55 import UnnamedSchemaRef7826220e105d84352ba1108d9ed88e55 -__all__ = ["TimeseriesGroupVerticalResponse"] +__all__ = ["TimeseriesGroupVerticalResponse", "Serie0"] + + +class Serie0(BaseModel): + timestamps: List[str] + + if TYPE_CHECKING: + # Stub to indicate that arbitrary properties are accepted. + # To access properties that are not valid identifiers you can use `getattr`, e.g. + # `getattr(obj, '$type')` + def __getattr__(self, attr: str) -> List[str]: + ... class TimeseriesGroupVerticalResponse(BaseModel): meta: object - serie_0: UnnamedSchemaRef7826220e105d84352ba1108d9ed88e55 + serie_0: Serie0 diff --git a/src/cloudflare/types/radar/attacks/layer3/top/location_origin_response.py b/src/cloudflare/types/radar/attacks/layer3/top/location_origin_response.py index 97189b456a4f..486e59f89c0b 100644 --- a/src/cloudflare/types/radar/attacks/layer3/top/location_origin_response.py +++ b/src/cloudflare/types/radar/attacks/layer3/top/location_origin_response.py @@ -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__ = ["LocationOriginResponse", "Meta", "MetaConfidenceInfo", "Top0"] +__all__ = [ + "LocationOriginResponse", + "Meta", + "MetaDateRange", + "MetaConfidenceInfo", + "MetaConfidenceInfoAnnotation", + "Top0", +] + + +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") diff --git a/src/cloudflare/types/radar/attacks/layer3/top/location_target_response.py b/src/cloudflare/types/radar/attacks/layer3/top/location_target_response.py index 6b18481f6d4a..781bdd4f4f4f 100644 --- a/src/cloudflare/types/radar/attacks/layer3/top/location_target_response.py +++ b/src/cloudflare/types/radar/attacks/layer3/top/location_target_response.py @@ -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__ = ["LocationTargetResponse", "Meta", "MetaConfidenceInfo", "Top0"] +__all__ = [ + "LocationTargetResponse", + "Meta", + "MetaDateRange", + "MetaConfidenceInfo", + "MetaConfidenceInfoAnnotation", + "Top0", +] + + +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") diff --git a/src/cloudflare/types/radar/attacks/layer3/top_attacks_response.py b/src/cloudflare/types/radar/attacks/layer3/top_attacks_response.py index 2b23f662d4ae..96160d6f724c 100644 --- a/src/cloudflare/types/radar/attacks/layer3/top_attacks_response.py +++ b/src/cloudflare/types/radar/attacks/layer3/top_attacks_response.py @@ -1,24 +1,47 @@ # 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__ = ["TopAttacksResponse", "Meta", "MetaConfidenceInfo", "Top0"] +__all__ = ["TopAttacksResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation", "Top0"] + + +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") diff --git a/src/cloudflare/types/radar/attacks/layer3/top_industry_response.py b/src/cloudflare/types/radar/attacks/layer3/top_industry_response.py index 6d18c1b2dffb..e7d27568e0b5 100644 --- a/src/cloudflare/types/radar/attacks/layer3/top_industry_response.py +++ b/src/cloudflare/types/radar/attacks/layer3/top_industry_response.py @@ -1,25 +1,48 @@ # 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 ...http import Browser from ....._models import BaseModel -from ....unnamed_schema_ref_b5f3bd1840490bc487ffef84567807b1 import UnnamedSchemaRefB5f3bd1840490bc487ffef84567807b1 -from ....unnamed_schema_ref_baac9d7da12de53e99142f8ecd3982e5 import UnnamedSchemaRefBaac9d7da12de53e99142f8ecd3982e5 -__all__ = ["TopIndustryResponse", "Meta", "MetaConfidenceInfo"] +__all__ = ["TopIndustryResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation"] + + +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") diff --git a/src/cloudflare/types/radar/attacks/layer3/top_vertical_response.py b/src/cloudflare/types/radar/attacks/layer3/top_vertical_response.py index 417fae770857..8cd52c15e73c 100644 --- a/src/cloudflare/types/radar/attacks/layer3/top_vertical_response.py +++ b/src/cloudflare/types/radar/attacks/layer3/top_vertical_response.py @@ -1,25 +1,48 @@ # 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 ...http import Browser from ....._models import BaseModel -from ....unnamed_schema_ref_b5f3bd1840490bc487ffef84567807b1 import UnnamedSchemaRefB5f3bd1840490bc487ffef84567807b1 -from ....unnamed_schema_ref_baac9d7da12de53e99142f8ecd3982e5 import UnnamedSchemaRefBaac9d7da12de53e99142f8ecd3982e5 -__all__ = ["TopVerticalResponse", "Meta", "MetaConfidenceInfo"] +__all__ = ["TopVerticalResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation"] + + +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") diff --git a/src/cloudflare/types/radar/attacks/layer3_timeseries_response.py b/src/cloudflare/types/radar/attacks/layer3_timeseries_response.py index 297d97caa5d7..c83a6af95782 100644 --- a/src/cloudflare/types/radar/attacks/layer3_timeseries_response.py +++ b/src/cloudflare/types/radar/attacks/layer3_timeseries_response.py @@ -1,14 +1,20 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - +from typing import List +from datetime import datetime from ...._models import BaseModel -from ...unnamed_schema_ref_75bae70cf28e6bcef364b9840db3bdeb import UnnamedSchemaRef75bae70cf28e6bcef364b9840db3bdeb -__all__ = ["Layer3TimeseriesResponse"] +__all__ = ["Layer3TimeseriesResponse", "Serie0"] + + +class Serie0(BaseModel): + timestamps: List[datetime] + + values: List[str] class Layer3TimeseriesResponse(BaseModel): meta: object - serie_0: UnnamedSchemaRef75bae70cf28e6bcef364b9840db3bdeb + serie_0: Serie0 diff --git a/src/cloudflare/types/radar/attacks/layer7/summary_get_response.py b/src/cloudflare/types/radar/attacks/layer7/summary_get_response.py index cedf6087c1cd..8b65b6328df5 100644 --- a/src/cloudflare/types/radar/attacks/layer7/summary_get_response.py +++ b/src/cloudflare/types/radar/attacks/layer7/summary_get_response.py @@ -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__ = ["SummaryGetResponse", "Meta", "MetaConfidenceInfo", "Summary0"] +__all__ = [ + "SummaryGetResponse", + "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") confidence_info: Optional[MetaConfidenceInfo] = FieldInfo(alias="confidenceInfo", default=None) diff --git a/src/cloudflare/types/radar/attacks/layer7/summary_http_method_response.py b/src/cloudflare/types/radar/attacks/layer7/summary_http_method_response.py index d0bfd20f4a3c..40b3d9de8d0e 100644 --- a/src/cloudflare/types/radar/attacks/layer7/summary_http_method_response.py +++ b/src/cloudflare/types/radar/attacks/layer7/summary_http_method_response.py @@ -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__ = ["SummaryHTTPMethodResponse", "Meta", "MetaConfidenceInfo", "Summary0"] +__all__ = [ + "SummaryHTTPMethodResponse", + "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") diff --git a/src/cloudflare/types/radar/attacks/layer7/summary_http_version_response.py b/src/cloudflare/types/radar/attacks/layer7/summary_http_version_response.py index 3eea8da72ffd..6fc2906c2306 100644 --- a/src/cloudflare/types/radar/attacks/layer7/summary_http_version_response.py +++ b/src/cloudflare/types/radar/attacks/layer7/summary_http_version_response.py @@ -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__ = ["SummaryHTTPVersionResponse", "Meta", "MetaConfidenceInfo", "Summary0"] +__all__ = [ + "SummaryHTTPVersionResponse", + "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") diff --git a/src/cloudflare/types/radar/attacks/layer7/summary_ip_version_response.py b/src/cloudflare/types/radar/attacks/layer7/summary_ip_version_response.py index 445615e9fe32..b4f96b8667ee 100644 --- a/src/cloudflare/types/radar/attacks/layer7/summary_ip_version_response.py +++ b/src/cloudflare/types/radar/attacks/layer7/summary_ip_version_response.py @@ -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") @@ -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 diff --git a/src/cloudflare/types/radar/attacks/layer7/summary_managed_rules_response.py b/src/cloudflare/types/radar/attacks/layer7/summary_managed_rules_response.py index 59c3b2d52d94..98285c0015cd 100644 --- a/src/cloudflare/types/radar/attacks/layer7/summary_managed_rules_response.py +++ b/src/cloudflare/types/radar/attacks/layer7/summary_managed_rules_response.py @@ -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__ = ["SummaryManagedRulesResponse", "Meta", "MetaConfidenceInfo", "Summary0"] +__all__ = [ + "SummaryManagedRulesResponse", + "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") diff --git a/src/cloudflare/types/radar/attacks/layer7/summary_mitigation_product_response.py b/src/cloudflare/types/radar/attacks/layer7/summary_mitigation_product_response.py index 6a8870f8fa35..2e1ac27eb100 100644 --- a/src/cloudflare/types/radar/attacks/layer7/summary_mitigation_product_response.py +++ b/src/cloudflare/types/radar/attacks/layer7/summary_mitigation_product_response.py @@ -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__ = ["SummaryMitigationProductResponse", "Meta", "MetaConfidenceInfo", "Summary0"] +__all__ = [ + "SummaryMitigationProductResponse", + "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") diff --git a/src/cloudflare/types/radar/attacks/layer7/timeseries_group_get_response.py b/src/cloudflare/types/radar/attacks/layer7/timeseries_group_get_response.py index b390f2782284..422b256d9cba 100644 --- a/src/cloudflare/types/radar/attacks/layer7/timeseries_group_get_response.py +++ b/src/cloudflare/types/radar/attacks/layer7/timeseries_group_get_response.py @@ -6,14 +6,43 @@ 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__ = ["TimeseriesGroupGetResponse", "Meta", "MetaConfidenceInfo", "Serie0"] +__all__ = [ + "TimeseriesGroupGetResponse", + "Meta", + "MetaDateRange", + "MetaConfidenceInfo", + "MetaConfidenceInfoAnnotation", + "Serie0", +] + + +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 @@ -21,7 +50,7 @@ class MetaConfidenceInfo(BaseModel): class Meta(BaseModel): agg_interval: str = FieldInfo(alias="aggInterval") - date_range: List[UnnamedSchemaRefBaac9d7da12de53e99142f8ecd3982e5] = FieldInfo(alias="dateRange") + date_range: List[MetaDateRange] = FieldInfo(alias="dateRange") last_updated: datetime = FieldInfo(alias="lastUpdated") diff --git a/src/cloudflare/types/radar/attacks/layer7/timeseries_group_industry_response.py b/src/cloudflare/types/radar/attacks/layer7/timeseries_group_industry_response.py index eeccd218dbe6..eee79e8794fe 100644 --- a/src/cloudflare/types/radar/attacks/layer7/timeseries_group_industry_response.py +++ b/src/cloudflare/types/radar/attacks/layer7/timeseries_group_industry_response.py @@ -1,14 +1,24 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - +from typing import TYPE_CHECKING, List from ....._models import BaseModel -from ....unnamed_schema_ref_7826220e105d84352ba1108d9ed88e55 import UnnamedSchemaRef7826220e105d84352ba1108d9ed88e55 -__all__ = ["TimeseriesGroupIndustryResponse"] +__all__ = ["TimeseriesGroupIndustryResponse", "Serie0"] + + +class Serie0(BaseModel): + timestamps: List[str] + + if TYPE_CHECKING: + # Stub to indicate that arbitrary properties are accepted. + # To access properties that are not valid identifiers you can use `getattr`, e.g. + # `getattr(obj, '$type')` + def __getattr__(self, attr: str) -> List[str]: + ... class TimeseriesGroupIndustryResponse(BaseModel): meta: object - serie_0: UnnamedSchemaRef7826220e105d84352ba1108d9ed88e55 + serie_0: Serie0 diff --git a/src/cloudflare/types/radar/attacks/layer7/timeseries_group_ip_version_response.py b/src/cloudflare/types/radar/attacks/layer7/timeseries_group_ip_version_response.py index 35daaa00f469..136fc4da3632 100644 --- a/src/cloudflare/types/radar/attacks/layer7/timeseries_group_ip_version_response.py +++ b/src/cloudflare/types/radar/attacks/layer7/timeseries_group_ip_version_response.py @@ -1,14 +1,23 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List +from pydantic import Field as FieldInfo from ....._models import BaseModel -from ....unnamed_schema_ref_9002274ed7cb7f3dc567421e31529a3a import UnnamedSchemaRef9002274ed7cb7f3dc567421e31529a3a -__all__ = ["TimeseriesGroupIPVersionResponse"] +__all__ = ["TimeseriesGroupIPVersionResponse", "Serie0"] + + +class Serie0(BaseModel): + i_pv4: List[str] = FieldInfo(alias="IPv4") + + i_pv6: List[str] = FieldInfo(alias="IPv6") + + timestamps: List[str] class TimeseriesGroupIPVersionResponse(BaseModel): meta: object - serie_0: UnnamedSchemaRef9002274ed7cb7f3dc567421e31529a3a + serie_0: Serie0 diff --git a/src/cloudflare/types/radar/attacks/layer7/timeseries_group_vertical_response.py b/src/cloudflare/types/radar/attacks/layer7/timeseries_group_vertical_response.py index c89269cb4c1b..5f3bb1a0608a 100644 --- a/src/cloudflare/types/radar/attacks/layer7/timeseries_group_vertical_response.py +++ b/src/cloudflare/types/radar/attacks/layer7/timeseries_group_vertical_response.py @@ -1,14 +1,24 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - +from typing import TYPE_CHECKING, List from ....._models import BaseModel -from ....unnamed_schema_ref_7826220e105d84352ba1108d9ed88e55 import UnnamedSchemaRef7826220e105d84352ba1108d9ed88e55 -__all__ = ["TimeseriesGroupVerticalResponse"] +__all__ = ["TimeseriesGroupVerticalResponse", "Serie0"] + + +class Serie0(BaseModel): + timestamps: List[str] + + if TYPE_CHECKING: + # Stub to indicate that arbitrary properties are accepted. + # To access properties that are not valid identifiers you can use `getattr`, e.g. + # `getattr(obj, '$type')` + def __getattr__(self, attr: str) -> List[str]: + ... class TimeseriesGroupVerticalResponse(BaseModel): meta: object - serie_0: UnnamedSchemaRef7826220e105d84352ba1108d9ed88e55 + serie_0: Serie0 diff --git a/src/cloudflare/types/radar/attacks/layer7/top/ase_origin_response.py b/src/cloudflare/types/radar/attacks/layer7/top/ase_origin_response.py index d28564e70e9f..10a3c3a53073 100644 --- a/src/cloudflare/types/radar/attacks/layer7/top/ase_origin_response.py +++ b/src/cloudflare/types/radar/attacks/layer7/top/ase_origin_response.py @@ -1,24 +1,47 @@ # 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__ = ["AseOriginResponse", "Meta", "MetaConfidenceInfo", "Top0"] +__all__ = ["AseOriginResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation", "Top0"] + + +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") diff --git a/src/cloudflare/types/radar/attacks/layer7/top/location_origin_response.py b/src/cloudflare/types/radar/attacks/layer7/top/location_origin_response.py index 97189b456a4f..486e59f89c0b 100644 --- a/src/cloudflare/types/radar/attacks/layer7/top/location_origin_response.py +++ b/src/cloudflare/types/radar/attacks/layer7/top/location_origin_response.py @@ -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__ = ["LocationOriginResponse", "Meta", "MetaConfidenceInfo", "Top0"] +__all__ = [ + "LocationOriginResponse", + "Meta", + "MetaDateRange", + "MetaConfidenceInfo", + "MetaConfidenceInfoAnnotation", + "Top0", +] + + +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") diff --git a/src/cloudflare/types/radar/attacks/layer7/top/location_target_response.py b/src/cloudflare/types/radar/attacks/layer7/top/location_target_response.py index 6b18481f6d4a..781bdd4f4f4f 100644 --- a/src/cloudflare/types/radar/attacks/layer7/top/location_target_response.py +++ b/src/cloudflare/types/radar/attacks/layer7/top/location_target_response.py @@ -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__ = ["LocationTargetResponse", "Meta", "MetaConfidenceInfo", "Top0"] +__all__ = [ + "LocationTargetResponse", + "Meta", + "MetaDateRange", + "MetaConfidenceInfo", + "MetaConfidenceInfoAnnotation", + "Top0", +] + + +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") diff --git a/src/cloudflare/types/radar/attacks/layer7/top_attacks_response.py b/src/cloudflare/types/radar/attacks/layer7/top_attacks_response.py index 24b42205295c..f9824a7d0b8f 100644 --- a/src/cloudflare/types/radar/attacks/layer7/top_attacks_response.py +++ b/src/cloudflare/types/radar/attacks/layer7/top_attacks_response.py @@ -1,24 +1,47 @@ # 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__ = ["TopAttacksResponse", "Meta", "MetaConfidenceInfo", "Top0"] +__all__ = ["TopAttacksResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation", "Top0"] + + +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") diff --git a/src/cloudflare/types/radar/attacks/layer7/top_industry_response.py b/src/cloudflare/types/radar/attacks/layer7/top_industry_response.py index 6d18c1b2dffb..e7d27568e0b5 100644 --- a/src/cloudflare/types/radar/attacks/layer7/top_industry_response.py +++ b/src/cloudflare/types/radar/attacks/layer7/top_industry_response.py @@ -1,25 +1,48 @@ # 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 ...http import Browser from ....._models import BaseModel -from ....unnamed_schema_ref_b5f3bd1840490bc487ffef84567807b1 import UnnamedSchemaRefB5f3bd1840490bc487ffef84567807b1 -from ....unnamed_schema_ref_baac9d7da12de53e99142f8ecd3982e5 import UnnamedSchemaRefBaac9d7da12de53e99142f8ecd3982e5 -__all__ = ["TopIndustryResponse", "Meta", "MetaConfidenceInfo"] +__all__ = ["TopIndustryResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation"] + + +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") diff --git a/src/cloudflare/types/radar/attacks/layer7/top_vertical_response.py b/src/cloudflare/types/radar/attacks/layer7/top_vertical_response.py index 417fae770857..8cd52c15e73c 100644 --- a/src/cloudflare/types/radar/attacks/layer7/top_vertical_response.py +++ b/src/cloudflare/types/radar/attacks/layer7/top_vertical_response.py @@ -1,25 +1,48 @@ # 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 ...http import Browser from ....._models import BaseModel -from ....unnamed_schema_ref_b5f3bd1840490bc487ffef84567807b1 import UnnamedSchemaRefB5f3bd1840490bc487ffef84567807b1 -from ....unnamed_schema_ref_baac9d7da12de53e99142f8ecd3982e5 import UnnamedSchemaRefBaac9d7da12de53e99142f8ecd3982e5 -__all__ = ["TopVerticalResponse", "Meta", "MetaConfidenceInfo"] +__all__ = ["TopVerticalResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation"] + + +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") diff --git a/src/cloudflare/types/radar/attacks/layer7_timeseries_response.py b/src/cloudflare/types/radar/attacks/layer7_timeseries_response.py index 3f432b1776a3..6cc4c9b2636d 100644 --- a/src/cloudflare/types/radar/attacks/layer7_timeseries_response.py +++ b/src/cloudflare/types/radar/attacks/layer7_timeseries_response.py @@ -6,15 +6,43 @@ from pydantic import Field as FieldInfo from ...._models import BaseModel -from ...unnamed_schema_ref_75bae70cf28e6bcef364b9840db3bdeb import UnnamedSchemaRef75bae70cf28e6bcef364b9840db3bdeb -from ...unnamed_schema_ref_b5f3bd1840490bc487ffef84567807b1 import UnnamedSchemaRefB5f3bd1840490bc487ffef84567807b1 -from ...unnamed_schema_ref_baac9d7da12de53e99142f8ecd3982e5 import UnnamedSchemaRefBaac9d7da12de53e99142f8ecd3982e5 -__all__ = ["Layer7TimeseriesResponse", "Meta", "MetaConfidenceInfo"] +__all__ = [ + "Layer7TimeseriesResponse", + "Meta", + "MetaDateRange", + "MetaConfidenceInfo", + "MetaConfidenceInfoAnnotation", + "Serie0", +] + + +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 @@ -22,14 +50,20 @@ class MetaConfidenceInfo(BaseModel): class Meta(BaseModel): agg_interval: str = FieldInfo(alias="aggInterval") - date_range: List[UnnamedSchemaRefBaac9d7da12de53e99142f8ecd3982e5] = FieldInfo(alias="dateRange") + date_range: List[MetaDateRange] = FieldInfo(alias="dateRange") last_updated: datetime = FieldInfo(alias="lastUpdated") confidence_info: Optional[MetaConfidenceInfo] = FieldInfo(alias="confidenceInfo", default=None) +class Serie0(BaseModel): + timestamps: List[datetime] + + values: List[str] + + class Layer7TimeseriesResponse(BaseModel): meta: Meta - serie_0: UnnamedSchemaRef75bae70cf28e6bcef364b9840db3bdeb + serie_0: Serie0 diff --git a/src/cloudflare/types/radar/bgp/route_moas_response.py b/src/cloudflare/types/radar/bgp/route_moas_response.py index d6198d2cab0d..13918ba1f335 100644 --- a/src/cloudflare/types/radar/bgp/route_moas_response.py +++ b/src/cloudflare/types/radar/bgp/route_moas_response.py @@ -3,9 +3,16 @@ from typing import List from ...._models import BaseModel -from ...unnamed_schema_ref_c5858f1f916a921846e0b6159af470a7 import UnnamedSchemaRefC5858f1f916a921846e0b6159af470a7 -__all__ = ["RouteMoasResponse", "Moa", "MoaOrigin"] +__all__ = ["RouteMoasResponse", "Meta", "Moa", "MoaOrigin"] + + +class Meta(BaseModel): + data_time: str + + query_time: str + + total_peers: int class MoaOrigin(BaseModel): @@ -23,6 +30,6 @@ class Moa(BaseModel): class RouteMoasResponse(BaseModel): - meta: UnnamedSchemaRefC5858f1f916a921846e0b6159af470a7 + meta: Meta moas: List[Moa] diff --git a/src/cloudflare/types/radar/bgp/route_pfx2as_response.py b/src/cloudflare/types/radar/bgp/route_pfx2as_response.py index 1cb103bfd84f..2bcf9de4eb03 100644 --- a/src/cloudflare/types/radar/bgp/route_pfx2as_response.py +++ b/src/cloudflare/types/radar/bgp/route_pfx2as_response.py @@ -3,9 +3,16 @@ from typing import List from ...._models import BaseModel -from ...unnamed_schema_ref_c5858f1f916a921846e0b6159af470a7 import UnnamedSchemaRefC5858f1f916a921846e0b6159af470a7 -__all__ = ["RoutePfx2asResponse", "PrefixOrigin"] +__all__ = ["RoutePfx2asResponse", "Meta", "PrefixOrigin"] + + +class Meta(BaseModel): + data_time: str + + query_time: str + + total_peers: int class PrefixOrigin(BaseModel): @@ -19,6 +26,6 @@ class PrefixOrigin(BaseModel): class RoutePfx2asResponse(BaseModel): - meta: UnnamedSchemaRefC5858f1f916a921846e0b6159af470a7 + meta: Meta prefix_origins: List[PrefixOrigin] diff --git a/src/cloudflare/types/radar/bgp/route_stats_response.py b/src/cloudflare/types/radar/bgp/route_stats_response.py index af4a2cf05abf..7ccf3b286a20 100644 --- a/src/cloudflare/types/radar/bgp/route_stats_response.py +++ b/src/cloudflare/types/radar/bgp/route_stats_response.py @@ -1,11 +1,16 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from ...._models import BaseModel +__all__ = ["RouteStatsResponse", "Meta", "Stats"] -from ...._models import BaseModel -from ...unnamed_schema_ref_c5858f1f916a921846e0b6159af470a7 import UnnamedSchemaRefC5858f1f916a921846e0b6159af470a7 -__all__ = ["RouteStatsResponse", "Stats"] +class Meta(BaseModel): + data_time: str + + query_time: str + + total_peers: int class Stats(BaseModel): @@ -47,6 +52,6 @@ class Stats(BaseModel): class RouteStatsResponse(BaseModel): - meta: UnnamedSchemaRefC5858f1f916a921846e0b6159af470a7 + meta: Meta stats: Stats diff --git a/src/cloudflare/types/radar/bgp/route_timeseries_response.py b/src/cloudflare/types/radar/bgp/route_timeseries_response.py index 3fb88afc7e3e..fa7506de2c52 100644 --- a/src/cloudflare/types/radar/bgp/route_timeseries_response.py +++ b/src/cloudflare/types/radar/bgp/route_timeseries_response.py @@ -6,13 +6,20 @@ from pydantic import Field as FieldInfo from ...._models import BaseModel -from ...unnamed_schema_ref_baac9d7da12de53e99142f8ecd3982e5 import UnnamedSchemaRefBaac9d7da12de53e99142f8ecd3982e5 -__all__ = ["RouteTimeseriesResponse", "Meta", "SerieIPV4_24s", "SerieIPV6_48s"] +__all__ = ["RouteTimeseriesResponse", "Meta", "MetaDateRange", "SerieIPV4_24s", "SerieIPV6_48s"] + + +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 Meta(BaseModel): - date_range: List[UnnamedSchemaRefBaac9d7da12de53e99142f8ecd3982e5] = FieldInfo(alias="dateRange") + date_range: List[MetaDateRange] = FieldInfo(alias="dateRange") class SerieIPV4_24s(BaseModel): diff --git a/src/cloudflare/types/radar/bgp/top/ase_get_response.py b/src/cloudflare/types/radar/bgp/top/ase_get_response.py index 440857b864b3..e891e99cefa3 100644 --- a/src/cloudflare/types/radar/bgp/top/ase_get_response.py +++ b/src/cloudflare/types/radar/bgp/top/ase_get_response.py @@ -1,17 +1,25 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing import List +from datetime import datetime from pydantic import Field as FieldInfo from ....._models import BaseModel -from ....unnamed_schema_ref_baac9d7da12de53e99142f8ecd3982e5 import UnnamedSchemaRefBaac9d7da12de53e99142f8ecd3982e5 -__all__ = ["AseGetResponse", "Meta", "Top0"] +__all__ = ["AseGetResponse", "Meta", "MetaDateRange", "Top0"] + + +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 Meta(BaseModel): - date_range: List[UnnamedSchemaRefBaac9d7da12de53e99142f8ecd3982e5] = FieldInfo(alias="dateRange") + date_range: List[MetaDateRange] = FieldInfo(alias="dateRange") class Top0(BaseModel): diff --git a/src/cloudflare/types/radar/bgp/top/ase_prefixes_response.py b/src/cloudflare/types/radar/bgp/top/ase_prefixes_response.py index 30dc155968d3..e0a853b09a67 100644 --- a/src/cloudflare/types/radar/bgp/top/ase_prefixes_response.py +++ b/src/cloudflare/types/radar/bgp/top/ase_prefixes_response.py @@ -3,9 +3,8 @@ from typing import List from ....._models import BaseModel -from ....unnamed_schema_ref_c5858f1f916a921846e0b6159af470a7 import UnnamedSchemaRefC5858f1f916a921846e0b6159af470a7 -__all__ = ["AsePrefixesResponse", "ASN"] +__all__ = ["AsePrefixesResponse", "ASN", "Meta"] class ASN(BaseModel): @@ -18,7 +17,15 @@ class ASN(BaseModel): pfxs_count: int +class Meta(BaseModel): + data_time: str + + query_time: str + + total_peers: int + + class AsePrefixesResponse(BaseModel): asns: List[ASN] - meta: UnnamedSchemaRefC5858f1f916a921846e0b6159af470a7 + meta: Meta diff --git a/src/cloudflare/types/radar/bgp/top_prefixes_response.py b/src/cloudflare/types/radar/bgp/top_prefixes_response.py index 714936b9de6d..9f5e92716b73 100644 --- a/src/cloudflare/types/radar/bgp/top_prefixes_response.py +++ b/src/cloudflare/types/radar/bgp/top_prefixes_response.py @@ -1,17 +1,25 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing import List +from datetime import datetime from pydantic import Field as FieldInfo from ...._models import BaseModel -from ...unnamed_schema_ref_baac9d7da12de53e99142f8ecd3982e5 import UnnamedSchemaRefBaac9d7da12de53e99142f8ecd3982e5 -__all__ = ["TopPrefixesResponse", "Meta", "Top0"] +__all__ = ["TopPrefixesResponse", "Meta", "MetaDateRange", "Top0"] + + +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 Meta(BaseModel): - date_range: List[UnnamedSchemaRefBaac9d7da12de53e99142f8ecd3982e5] = FieldInfo(alias="dateRange") + date_range: List[MetaDateRange] = FieldInfo(alias="dateRange") class Top0(BaseModel): diff --git a/src/cloudflare/types/radar/bgp_timeseries_response.py b/src/cloudflare/types/radar/bgp_timeseries_response.py index a421fd235d13..0d3f009785a5 100644 --- a/src/cloudflare/types/radar/bgp_timeseries_response.py +++ b/src/cloudflare/types/radar/bgp_timeseries_response.py @@ -6,15 +6,43 @@ from pydantic import Field as FieldInfo from ..._models import BaseModel -from ..unnamed_schema_ref_75bae70cf28e6bcef364b9840db3bdeb import UnnamedSchemaRef75bae70cf28e6bcef364b9840db3bdeb -from ..unnamed_schema_ref_b5f3bd1840490bc487ffef84567807b1 import UnnamedSchemaRefB5f3bd1840490bc487ffef84567807b1 -from ..unnamed_schema_ref_baac9d7da12de53e99142f8ecd3982e5 import UnnamedSchemaRefBaac9d7da12de53e99142f8ecd3982e5 -__all__ = ["BGPTimeseriesResponse", "Meta", "MetaConfidenceInfo"] +__all__ = [ + "BGPTimeseriesResponse", + "Meta", + "MetaDateRange", + "MetaConfidenceInfo", + "MetaConfidenceInfoAnnotation", + "Serie0", +] + + +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 @@ -22,14 +50,20 @@ class MetaConfidenceInfo(BaseModel): class Meta(BaseModel): agg_interval: str = FieldInfo(alias="aggInterval") - date_range: List[UnnamedSchemaRefBaac9d7da12de53e99142f8ecd3982e5] = FieldInfo(alias="dateRange") + date_range: List[MetaDateRange] = FieldInfo(alias="dateRange") last_updated: datetime = FieldInfo(alias="lastUpdated") confidence_info: Optional[MetaConfidenceInfo] = FieldInfo(alias="confidenceInfo", default=None) +class Serie0(BaseModel): + timestamps: List[datetime] + + values: List[str] + + class BGPTimeseriesResponse(BaseModel): meta: Meta - serie_0: UnnamedSchemaRef75bae70cf28e6bcef364b9840db3bdeb + serie_0: Serie0 diff --git a/src/cloudflare/types/radar/connection_tampering_summary_response.py b/src/cloudflare/types/radar/connection_tampering_summary_response.py index cd6ce738bb23..c2685cd05575 100644 --- a/src/cloudflare/types/radar/connection_tampering_summary_response.py +++ b/src/cloudflare/types/radar/connection_tampering_summary_response.py @@ -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__ = ["ConnectionTamperingSummaryResponse", "Meta", "MetaConfidenceInfo", "Summary0"] +__all__ = [ + "ConnectionTamperingSummaryResponse", + "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") confidence_info: Optional[MetaConfidenceInfo] = FieldInfo(alias="confidenceInfo", default=None) diff --git a/src/cloudflare/types/radar/connection_tampering_timeseries_groups_response.py b/src/cloudflare/types/radar/connection_tampering_timeseries_groups_response.py index 6198cb927858..32bef3b657f8 100644 --- a/src/cloudflare/types/radar/connection_tampering_timeseries_groups_response.py +++ b/src/cloudflare/types/radar/connection_tampering_timeseries_groups_response.py @@ -6,14 +6,43 @@ 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__ = ["ConnectionTamperingTimeseriesGroupsResponse", "Meta", "MetaConfidenceInfo", "Serie0"] +__all__ = [ + "ConnectionTamperingTimeseriesGroupsResponse", + "Meta", + "MetaDateRange", + "MetaConfidenceInfo", + "MetaConfidenceInfoAnnotation", + "Serie0", +] + + +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 @@ -21,7 +50,7 @@ class MetaConfidenceInfo(BaseModel): class Meta(BaseModel): agg_interval: str = FieldInfo(alias="aggInterval") - date_range: List[UnnamedSchemaRefBaac9d7da12de53e99142f8ecd3982e5] = FieldInfo(alias="dateRange") + date_range: List[MetaDateRange] = FieldInfo(alias="dateRange") last_updated: datetime = FieldInfo(alias="lastUpdated") diff --git a/src/cloudflare/types/radar/dns/top_ases_response.py b/src/cloudflare/types/radar/dns/top_ases_response.py index 4c33c0968d71..e1094d9a13ec 100644 --- a/src/cloudflare/types/radar/dns/top_ases_response.py +++ b/src/cloudflare/types/radar/dns/top_ases_response.py @@ -1,30 +1,60 @@ # 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_4124a22436f90127c7fa2c4543219752 import UnnamedSchemaRef4124a22436f90127c7fa2c4543219752 -from ...unnamed_schema_ref_b5f3bd1840490bc487ffef84567807b1 import UnnamedSchemaRefB5f3bd1840490bc487ffef84567807b1 -from ...unnamed_schema_ref_baac9d7da12de53e99142f8ecd3982e5 import UnnamedSchemaRefBaac9d7da12de53e99142f8ecd3982e5 -__all__ = ["TopAsesResponse", "Meta", "MetaConfidenceInfo"] +__all__ = ["TopAsesResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation", "Top0"] + + +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") confidence_info: Optional[MetaConfidenceInfo] = FieldInfo(alias="confidenceInfo", default=None) +class Top0(BaseModel): + client_asn: int = FieldInfo(alias="clientASN") + + client_as_name: str = FieldInfo(alias="clientASName") + + value: str + + class TopAsesResponse(BaseModel): meta: Meta - top_0: List[UnnamedSchemaRef4124a22436f90127c7fa2c4543219752] + top_0: List[Top0] diff --git a/src/cloudflare/types/radar/dns/top_locations_response.py b/src/cloudflare/types/radar/dns/top_locations_response.py index 3b5ec63c95c1..e87ae114cf40 100644 --- a/src/cloudflare/types/radar/dns/top_locations_response.py +++ b/src/cloudflare/types/radar/dns/top_locations_response.py @@ -1,30 +1,67 @@ # 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_83a14d589e799bc901b9ccc870251d09 import UnnamedSchemaRef83a14d589e799bc901b9ccc870251d09 -from ...unnamed_schema_ref_b5f3bd1840490bc487ffef84567807b1 import UnnamedSchemaRefB5f3bd1840490bc487ffef84567807b1 -from ...unnamed_schema_ref_baac9d7da12de53e99142f8ecd3982e5 import UnnamedSchemaRefBaac9d7da12de53e99142f8ecd3982e5 -__all__ = ["TopLocationsResponse", "Meta", "MetaConfidenceInfo"] +__all__ = [ + "TopLocationsResponse", + "Meta", + "MetaDateRange", + "MetaConfidenceInfo", + "MetaConfidenceInfoAnnotation", + "Top0", +] + + +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") confidence_info: Optional[MetaConfidenceInfo] = FieldInfo(alias="confidenceInfo", default=None) +class Top0(BaseModel): + client_country_alpha2: str = FieldInfo(alias="clientCountryAlpha2") + + client_country_name: str = FieldInfo(alias="clientCountryName") + + value: str + + class TopLocationsResponse(BaseModel): meta: Meta - top_0: List[UnnamedSchemaRef83a14d589e799bc901b9ccc870251d09] + top_0: List[Top0] diff --git a/src/cloudflare/types/radar/email/routing/summary_arc_response.py b/src/cloudflare/types/radar/email/routing/summary_arc_response.py index 2091a260afb4..7b709e6be09d 100644 --- a/src/cloudflare/types/radar/email/routing/summary_arc_response.py +++ b/src/cloudflare/types/radar/email/routing/summary_arc_response.py @@ -1,25 +1,48 @@ # 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_853c157ad369010995e35be614e0343f import UnnamedSchemaRef853c157ad369010995e35be614e0343f -from ....unnamed_schema_ref_b5f3bd1840490bc487ffef84567807b1 import UnnamedSchemaRefB5f3bd1840490bc487ffef84567807b1 -from ....unnamed_schema_ref_baac9d7da12de53e99142f8ecd3982e5 import UnnamedSchemaRefBaac9d7da12de53e99142f8ecd3982e5 +from ...radar_email_summary import RadarEmailSummary -__all__ = ["SummaryARCResponse", "Meta", "MetaConfidenceInfo"] +__all__ = ["SummaryARCResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation"] + + +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") @@ -31,4 +54,4 @@ class Meta(BaseModel): class SummaryARCResponse(BaseModel): meta: Meta - summary_0: UnnamedSchemaRef853c157ad369010995e35be614e0343f + summary_0: RadarEmailSummary diff --git a/src/cloudflare/types/radar/email/routing/summary_dkim_response.py b/src/cloudflare/types/radar/email/routing/summary_dkim_response.py index 1f5a9ca961f6..3baed82617a2 100644 --- a/src/cloudflare/types/radar/email/routing/summary_dkim_response.py +++ b/src/cloudflare/types/radar/email/routing/summary_dkim_response.py @@ -1,25 +1,48 @@ # 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_853c157ad369010995e35be614e0343f import UnnamedSchemaRef853c157ad369010995e35be614e0343f -from ....unnamed_schema_ref_b5f3bd1840490bc487ffef84567807b1 import UnnamedSchemaRefB5f3bd1840490bc487ffef84567807b1 -from ....unnamed_schema_ref_baac9d7da12de53e99142f8ecd3982e5 import UnnamedSchemaRefBaac9d7da12de53e99142f8ecd3982e5 +from ...radar_email_summary import RadarEmailSummary -__all__ = ["SummaryDKIMResponse", "Meta", "MetaConfidenceInfo"] +__all__ = ["SummaryDKIMResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation"] + + +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") @@ -31,4 +54,4 @@ class Meta(BaseModel): class SummaryDKIMResponse(BaseModel): meta: Meta - summary_0: UnnamedSchemaRef853c157ad369010995e35be614e0343f + summary_0: RadarEmailSummary diff --git a/src/cloudflare/types/radar/email/routing/summary_dmarc_response.py b/src/cloudflare/types/radar/email/routing/summary_dmarc_response.py index 3baae7d8e1c9..311673b6b74e 100644 --- a/src/cloudflare/types/radar/email/routing/summary_dmarc_response.py +++ b/src/cloudflare/types/radar/email/routing/summary_dmarc_response.py @@ -1,25 +1,48 @@ # 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_853c157ad369010995e35be614e0343f import UnnamedSchemaRef853c157ad369010995e35be614e0343f -from ....unnamed_schema_ref_b5f3bd1840490bc487ffef84567807b1 import UnnamedSchemaRefB5f3bd1840490bc487ffef84567807b1 -from ....unnamed_schema_ref_baac9d7da12de53e99142f8ecd3982e5 import UnnamedSchemaRefBaac9d7da12de53e99142f8ecd3982e5 +from ...radar_email_summary import RadarEmailSummary -__all__ = ["SummaryDMARCResponse", "Meta", "MetaConfidenceInfo"] +__all__ = ["SummaryDMARCResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation"] + + +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") @@ -31,4 +54,4 @@ class Meta(BaseModel): class SummaryDMARCResponse(BaseModel): meta: Meta - summary_0: UnnamedSchemaRef853c157ad369010995e35be614e0343f + summary_0: RadarEmailSummary diff --git a/src/cloudflare/types/radar/email/routing/summary_encrypted_response.py b/src/cloudflare/types/radar/email/routing/summary_encrypted_response.py index 9a7a9574e14b..61c4957355f9 100644 --- a/src/cloudflare/types/radar/email/routing/summary_encrypted_response.py +++ b/src/cloudflare/types/radar/email/routing/summary_encrypted_response.py @@ -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__ = ["SummaryEncryptedResponse", "Meta", "MetaConfidenceInfo", "Summary0"] +__all__ = [ + "SummaryEncryptedResponse", + "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") diff --git a/src/cloudflare/types/radar/email/routing/summary_ip_version_response.py b/src/cloudflare/types/radar/email/routing/summary_ip_version_response.py index 445615e9fe32..b4f96b8667ee 100644 --- a/src/cloudflare/types/radar/email/routing/summary_ip_version_response.py +++ b/src/cloudflare/types/radar/email/routing/summary_ip_version_response.py @@ -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") @@ -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 diff --git a/src/cloudflare/types/radar/email/routing/summary_spf_response.py b/src/cloudflare/types/radar/email/routing/summary_spf_response.py index 672941a7b6ee..0c62ac60f1f1 100644 --- a/src/cloudflare/types/radar/email/routing/summary_spf_response.py +++ b/src/cloudflare/types/radar/email/routing/summary_spf_response.py @@ -1,25 +1,48 @@ # 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_853c157ad369010995e35be614e0343f import UnnamedSchemaRef853c157ad369010995e35be614e0343f -from ....unnamed_schema_ref_b5f3bd1840490bc487ffef84567807b1 import UnnamedSchemaRefB5f3bd1840490bc487ffef84567807b1 -from ....unnamed_schema_ref_baac9d7da12de53e99142f8ecd3982e5 import UnnamedSchemaRefBaac9d7da12de53e99142f8ecd3982e5 +from ...radar_email_summary import RadarEmailSummary -__all__ = ["SummarySPFResponse", "Meta", "MetaConfidenceInfo"] +__all__ = ["SummarySPFResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation"] + + +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") @@ -31,4 +54,4 @@ class Meta(BaseModel): class SummarySPFResponse(BaseModel): meta: Meta - summary_0: UnnamedSchemaRef853c157ad369010995e35be614e0343f + summary_0: RadarEmailSummary diff --git a/src/cloudflare/types/radar/email/routing/timeseries_group_arc_response.py b/src/cloudflare/types/radar/email/routing/timeseries_group_arc_response.py index 679eaec5a615..68e15b2ca03c 100644 --- a/src/cloudflare/types/radar/email/routing/timeseries_group_arc_response.py +++ b/src/cloudflare/types/radar/email/routing/timeseries_group_arc_response.py @@ -3,7 +3,7 @@ from ....._models import BaseModel -from ...unnamed_schema_ref_67c73d4742566cab0909f71b1822e88c import UnnamedSchemaRef67c73d4742566cab0909f71b1822e88c +from ...radar_email_series import RadarEmailSeries __all__ = ["TimeseriesGroupARCResponse"] @@ -11,4 +11,4 @@ class TimeseriesGroupARCResponse(BaseModel): meta: object - serie_0: UnnamedSchemaRef67c73d4742566cab0909f71b1822e88c + serie_0: RadarEmailSeries diff --git a/src/cloudflare/types/radar/email/routing/timeseries_group_dkim_response.py b/src/cloudflare/types/radar/email/routing/timeseries_group_dkim_response.py index 46f5edf858b5..0495c34b2319 100644 --- a/src/cloudflare/types/radar/email/routing/timeseries_group_dkim_response.py +++ b/src/cloudflare/types/radar/email/routing/timeseries_group_dkim_response.py @@ -3,7 +3,7 @@ from ....._models import BaseModel -from ...unnamed_schema_ref_67c73d4742566cab0909f71b1822e88c import UnnamedSchemaRef67c73d4742566cab0909f71b1822e88c +from ...radar_email_series import RadarEmailSeries __all__ = ["TimeseriesGroupDKIMResponse"] @@ -11,4 +11,4 @@ class TimeseriesGroupDKIMResponse(BaseModel): meta: object - serie_0: UnnamedSchemaRef67c73d4742566cab0909f71b1822e88c + serie_0: RadarEmailSeries diff --git a/src/cloudflare/types/radar/email/routing/timeseries_group_dmarc_response.py b/src/cloudflare/types/radar/email/routing/timeseries_group_dmarc_response.py index 1a54f76e8787..2221b842e794 100644 --- a/src/cloudflare/types/radar/email/routing/timeseries_group_dmarc_response.py +++ b/src/cloudflare/types/radar/email/routing/timeseries_group_dmarc_response.py @@ -3,7 +3,7 @@ from ....._models import BaseModel -from ...unnamed_schema_ref_67c73d4742566cab0909f71b1822e88c import UnnamedSchemaRef67c73d4742566cab0909f71b1822e88c +from ...radar_email_series import RadarEmailSeries __all__ = ["TimeseriesGroupDMARCResponse"] @@ -11,4 +11,4 @@ class TimeseriesGroupDMARCResponse(BaseModel): meta: object - serie_0: UnnamedSchemaRef67c73d4742566cab0909f71b1822e88c + serie_0: RadarEmailSeries diff --git a/src/cloudflare/types/radar/email/routing/timeseries_group_spf_response.py b/src/cloudflare/types/radar/email/routing/timeseries_group_spf_response.py index abda4ae300a4..fbca7a77baff 100644 --- a/src/cloudflare/types/radar/email/routing/timeseries_group_spf_response.py +++ b/src/cloudflare/types/radar/email/routing/timeseries_group_spf_response.py @@ -3,7 +3,7 @@ from ....._models import BaseModel -from ...unnamed_schema_ref_67c73d4742566cab0909f71b1822e88c import UnnamedSchemaRef67c73d4742566cab0909f71b1822e88c +from ...radar_email_series import RadarEmailSeries __all__ = ["TimeseriesGroupSPFResponse"] @@ -11,4 +11,4 @@ class TimeseriesGroupSPFResponse(BaseModel): meta: object - serie_0: UnnamedSchemaRef67c73d4742566cab0909f71b1822e88c + serie_0: RadarEmailSeries diff --git a/src/cloudflare/types/radar/email/security/summary_arc_response.py b/src/cloudflare/types/radar/email/security/summary_arc_response.py index 2091a260afb4..7b709e6be09d 100644 --- a/src/cloudflare/types/radar/email/security/summary_arc_response.py +++ b/src/cloudflare/types/radar/email/security/summary_arc_response.py @@ -1,25 +1,48 @@ # 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_853c157ad369010995e35be614e0343f import UnnamedSchemaRef853c157ad369010995e35be614e0343f -from ....unnamed_schema_ref_b5f3bd1840490bc487ffef84567807b1 import UnnamedSchemaRefB5f3bd1840490bc487ffef84567807b1 -from ....unnamed_schema_ref_baac9d7da12de53e99142f8ecd3982e5 import UnnamedSchemaRefBaac9d7da12de53e99142f8ecd3982e5 +from ...radar_email_summary import RadarEmailSummary -__all__ = ["SummaryARCResponse", "Meta", "MetaConfidenceInfo"] +__all__ = ["SummaryARCResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation"] + + +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") @@ -31,4 +54,4 @@ class Meta(BaseModel): class SummaryARCResponse(BaseModel): meta: Meta - summary_0: UnnamedSchemaRef853c157ad369010995e35be614e0343f + summary_0: RadarEmailSummary diff --git a/src/cloudflare/types/radar/email/security/summary_dkim_response.py b/src/cloudflare/types/radar/email/security/summary_dkim_response.py index 1f5a9ca961f6..3baed82617a2 100644 --- a/src/cloudflare/types/radar/email/security/summary_dkim_response.py +++ b/src/cloudflare/types/radar/email/security/summary_dkim_response.py @@ -1,25 +1,48 @@ # 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_853c157ad369010995e35be614e0343f import UnnamedSchemaRef853c157ad369010995e35be614e0343f -from ....unnamed_schema_ref_b5f3bd1840490bc487ffef84567807b1 import UnnamedSchemaRefB5f3bd1840490bc487ffef84567807b1 -from ....unnamed_schema_ref_baac9d7da12de53e99142f8ecd3982e5 import UnnamedSchemaRefBaac9d7da12de53e99142f8ecd3982e5 +from ...radar_email_summary import RadarEmailSummary -__all__ = ["SummaryDKIMResponse", "Meta", "MetaConfidenceInfo"] +__all__ = ["SummaryDKIMResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation"] + + +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") @@ -31,4 +54,4 @@ class Meta(BaseModel): class SummaryDKIMResponse(BaseModel): meta: Meta - summary_0: UnnamedSchemaRef853c157ad369010995e35be614e0343f + summary_0: RadarEmailSummary diff --git a/src/cloudflare/types/radar/email/security/summary_dmarc_response.py b/src/cloudflare/types/radar/email/security/summary_dmarc_response.py index 3baae7d8e1c9..311673b6b74e 100644 --- a/src/cloudflare/types/radar/email/security/summary_dmarc_response.py +++ b/src/cloudflare/types/radar/email/security/summary_dmarc_response.py @@ -1,25 +1,48 @@ # 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_853c157ad369010995e35be614e0343f import UnnamedSchemaRef853c157ad369010995e35be614e0343f -from ....unnamed_schema_ref_b5f3bd1840490bc487ffef84567807b1 import UnnamedSchemaRefB5f3bd1840490bc487ffef84567807b1 -from ....unnamed_schema_ref_baac9d7da12de53e99142f8ecd3982e5 import UnnamedSchemaRefBaac9d7da12de53e99142f8ecd3982e5 +from ...radar_email_summary import RadarEmailSummary -__all__ = ["SummaryDMARCResponse", "Meta", "MetaConfidenceInfo"] +__all__ = ["SummaryDMARCResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation"] + + +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") @@ -31,4 +54,4 @@ class Meta(BaseModel): class SummaryDMARCResponse(BaseModel): meta: Meta - summary_0: UnnamedSchemaRef853c157ad369010995e35be614e0343f + summary_0: RadarEmailSummary diff --git a/src/cloudflare/types/radar/email/security/summary_malicious_response.py b/src/cloudflare/types/radar/email/security/summary_malicious_response.py index 68c05dacdb50..011e9d8e9a30 100644 --- a/src/cloudflare/types/radar/email/security/summary_malicious_response.py +++ b/src/cloudflare/types/radar/email/security/summary_malicious_response.py @@ -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__ = ["SummaryMaliciousResponse", "Meta", "MetaConfidenceInfo", "Summary0"] +__all__ = [ + "SummaryMaliciousResponse", + "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") diff --git a/src/cloudflare/types/radar/email/security/summary_spam_response.py b/src/cloudflare/types/radar/email/security/summary_spam_response.py index 89e0abf966de..cf8250de214c 100644 --- a/src/cloudflare/types/radar/email/security/summary_spam_response.py +++ b/src/cloudflare/types/radar/email/security/summary_spam_response.py @@ -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__ = ["SummarySpamResponse", "Meta", "MetaConfidenceInfo", "Summary0"] +__all__ = [ + "SummarySpamResponse", + "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") diff --git a/src/cloudflare/types/radar/email/security/summary_spf_response.py b/src/cloudflare/types/radar/email/security/summary_spf_response.py index 672941a7b6ee..0c62ac60f1f1 100644 --- a/src/cloudflare/types/radar/email/security/summary_spf_response.py +++ b/src/cloudflare/types/radar/email/security/summary_spf_response.py @@ -1,25 +1,48 @@ # 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_853c157ad369010995e35be614e0343f import UnnamedSchemaRef853c157ad369010995e35be614e0343f -from ....unnamed_schema_ref_b5f3bd1840490bc487ffef84567807b1 import UnnamedSchemaRefB5f3bd1840490bc487ffef84567807b1 -from ....unnamed_schema_ref_baac9d7da12de53e99142f8ecd3982e5 import UnnamedSchemaRefBaac9d7da12de53e99142f8ecd3982e5 +from ...radar_email_summary import RadarEmailSummary -__all__ = ["SummarySPFResponse", "Meta", "MetaConfidenceInfo"] +__all__ = ["SummarySPFResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation"] + + +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") @@ -31,4 +54,4 @@ class Meta(BaseModel): class SummarySPFResponse(BaseModel): meta: Meta - summary_0: UnnamedSchemaRef853c157ad369010995e35be614e0343f + summary_0: RadarEmailSummary diff --git a/src/cloudflare/types/radar/email/security/summary_spoof_response.py b/src/cloudflare/types/radar/email/security/summary_spoof_response.py index 557a55f1a36a..cd55371280b6 100644 --- a/src/cloudflare/types/radar/email/security/summary_spoof_response.py +++ b/src/cloudflare/types/radar/email/security/summary_spoof_response.py @@ -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__ = ["SummarySpoofResponse", "Meta", "MetaConfidenceInfo", "Summary0"] +__all__ = [ + "SummarySpoofResponse", + "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") diff --git a/src/cloudflare/types/radar/email/security/summary_threat_category_response.py b/src/cloudflare/types/radar/email/security/summary_threat_category_response.py index 2660e88ad410..0ed00cba9cc1 100644 --- a/src/cloudflare/types/radar/email/security/summary_threat_category_response.py +++ b/src/cloudflare/types/radar/email/security/summary_threat_category_response.py @@ -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__ = ["SummaryThreatCategoryResponse", "Meta", "MetaConfidenceInfo", "Summary0"] +__all__ = [ + "SummaryThreatCategoryResponse", + "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") diff --git a/src/cloudflare/types/radar/email/security/summary_tls_version_response.py b/src/cloudflare/types/radar/email/security/summary_tls_version_response.py index a594b634bd93..ad9e0d522458 100644 --- a/src/cloudflare/types/radar/email/security/summary_tls_version_response.py +++ b/src/cloudflare/types/radar/email/security/summary_tls_version_response.py @@ -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__ = ["SummaryTLSVersionResponse", "Meta", "MetaConfidenceInfo", "Summary0"] +__all__ = [ + "SummaryTLSVersionResponse", + "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") diff --git a/src/cloudflare/types/radar/email/security/timeseries_group_arc_response.py b/src/cloudflare/types/radar/email/security/timeseries_group_arc_response.py index 679eaec5a615..68e15b2ca03c 100644 --- a/src/cloudflare/types/radar/email/security/timeseries_group_arc_response.py +++ b/src/cloudflare/types/radar/email/security/timeseries_group_arc_response.py @@ -3,7 +3,7 @@ from ....._models import BaseModel -from ...unnamed_schema_ref_67c73d4742566cab0909f71b1822e88c import UnnamedSchemaRef67c73d4742566cab0909f71b1822e88c +from ...radar_email_series import RadarEmailSeries __all__ = ["TimeseriesGroupARCResponse"] @@ -11,4 +11,4 @@ class TimeseriesGroupARCResponse(BaseModel): meta: object - serie_0: UnnamedSchemaRef67c73d4742566cab0909f71b1822e88c + serie_0: RadarEmailSeries diff --git a/src/cloudflare/types/radar/email/security/timeseries_group_dkim_response.py b/src/cloudflare/types/radar/email/security/timeseries_group_dkim_response.py index 46f5edf858b5..0495c34b2319 100644 --- a/src/cloudflare/types/radar/email/security/timeseries_group_dkim_response.py +++ b/src/cloudflare/types/radar/email/security/timeseries_group_dkim_response.py @@ -3,7 +3,7 @@ from ....._models import BaseModel -from ...unnamed_schema_ref_67c73d4742566cab0909f71b1822e88c import UnnamedSchemaRef67c73d4742566cab0909f71b1822e88c +from ...radar_email_series import RadarEmailSeries __all__ = ["TimeseriesGroupDKIMResponse"] @@ -11,4 +11,4 @@ class TimeseriesGroupDKIMResponse(BaseModel): meta: object - serie_0: UnnamedSchemaRef67c73d4742566cab0909f71b1822e88c + serie_0: RadarEmailSeries diff --git a/src/cloudflare/types/radar/email/security/timeseries_group_dmarc_response.py b/src/cloudflare/types/radar/email/security/timeseries_group_dmarc_response.py index 1a54f76e8787..2221b842e794 100644 --- a/src/cloudflare/types/radar/email/security/timeseries_group_dmarc_response.py +++ b/src/cloudflare/types/radar/email/security/timeseries_group_dmarc_response.py @@ -3,7 +3,7 @@ from ....._models import BaseModel -from ...unnamed_schema_ref_67c73d4742566cab0909f71b1822e88c import UnnamedSchemaRef67c73d4742566cab0909f71b1822e88c +from ...radar_email_series import RadarEmailSeries __all__ = ["TimeseriesGroupDMARCResponse"] @@ -11,4 +11,4 @@ class TimeseriesGroupDMARCResponse(BaseModel): meta: object - serie_0: UnnamedSchemaRef67c73d4742566cab0909f71b1822e88c + serie_0: RadarEmailSeries diff --git a/src/cloudflare/types/radar/email/security/timeseries_group_spf_response.py b/src/cloudflare/types/radar/email/security/timeseries_group_spf_response.py index abda4ae300a4..fbca7a77baff 100644 --- a/src/cloudflare/types/radar/email/security/timeseries_group_spf_response.py +++ b/src/cloudflare/types/radar/email/security/timeseries_group_spf_response.py @@ -3,7 +3,7 @@ from ....._models import BaseModel -from ...unnamed_schema_ref_67c73d4742566cab0909f71b1822e88c import UnnamedSchemaRef67c73d4742566cab0909f71b1822e88c +from ...radar_email_series import RadarEmailSeries __all__ = ["TimeseriesGroupSPFResponse"] @@ -11,4 +11,4 @@ class TimeseriesGroupSPFResponse(BaseModel): meta: object - serie_0: UnnamedSchemaRef67c73d4742566cab0909f71b1822e88c + serie_0: RadarEmailSeries diff --git a/src/cloudflare/types/radar/email/security/top/tld_get_response.py b/src/cloudflare/types/radar/email/security/top/tld_get_response.py index 0017f5c65170..60ef8acaa05f 100644 --- a/src/cloudflare/types/radar/email/security/top/tld_get_response.py +++ b/src/cloudflare/types/radar/email/security/top/tld_get_response.py @@ -1,25 +1,48 @@ # 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 ....http import Browser from ......_models import BaseModel -from .....unnamed_schema_ref_b5f3bd1840490bc487ffef84567807b1 import UnnamedSchemaRefB5f3bd1840490bc487ffef84567807b1 -from .....unnamed_schema_ref_baac9d7da12de53e99142f8ecd3982e5 import UnnamedSchemaRefBaac9d7da12de53e99142f8ecd3982e5 -__all__ = ["TldGetResponse", "Meta", "MetaConfidenceInfo"] +__all__ = ["TldGetResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation"] + + +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") diff --git a/src/cloudflare/types/radar/email/security/top/tlds/malicious_get_response.py b/src/cloudflare/types/radar/email/security/top/tlds/malicious_get_response.py index 514b54f2fe09..60f2ba0a23e5 100644 --- a/src/cloudflare/types/radar/email/security/top/tlds/malicious_get_response.py +++ b/src/cloudflare/types/radar/email/security/top/tlds/malicious_get_response.py @@ -1,25 +1,48 @@ # 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 .....http import Browser from ......._models import BaseModel -from ......unnamed_schema_ref_b5f3bd1840490bc487ffef84567807b1 import UnnamedSchemaRefB5f3bd1840490bc487ffef84567807b1 -from ......unnamed_schema_ref_baac9d7da12de53e99142f8ecd3982e5 import UnnamedSchemaRefBaac9d7da12de53e99142f8ecd3982e5 -__all__ = ["MaliciousGetResponse", "Meta", "MetaConfidenceInfo"] +__all__ = ["MaliciousGetResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation"] + + +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") diff --git a/src/cloudflare/types/radar/email/security/top/tlds/spam_get_response.py b/src/cloudflare/types/radar/email/security/top/tlds/spam_get_response.py index f6b6a0d279d0..6d7d644ef82a 100644 --- a/src/cloudflare/types/radar/email/security/top/tlds/spam_get_response.py +++ b/src/cloudflare/types/radar/email/security/top/tlds/spam_get_response.py @@ -1,25 +1,48 @@ # 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 .....http import Browser from ......._models import BaseModel -from ......unnamed_schema_ref_b5f3bd1840490bc487ffef84567807b1 import UnnamedSchemaRefB5f3bd1840490bc487ffef84567807b1 -from ......unnamed_schema_ref_baac9d7da12de53e99142f8ecd3982e5 import UnnamedSchemaRefBaac9d7da12de53e99142f8ecd3982e5 -__all__ = ["SpamGetResponse", "Meta", "MetaConfidenceInfo"] +__all__ = ["SpamGetResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation"] + + +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") diff --git a/src/cloudflare/types/radar/email/security/top/tlds/spoof_get_response.py b/src/cloudflare/types/radar/email/security/top/tlds/spoof_get_response.py index ac328832094a..4f2e60fef6c3 100644 --- a/src/cloudflare/types/radar/email/security/top/tlds/spoof_get_response.py +++ b/src/cloudflare/types/radar/email/security/top/tlds/spoof_get_response.py @@ -1,25 +1,48 @@ # 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 .....http import Browser from ......._models import BaseModel -from ......unnamed_schema_ref_b5f3bd1840490bc487ffef84567807b1 import UnnamedSchemaRefB5f3bd1840490bc487ffef84567807b1 -from ......unnamed_schema_ref_baac9d7da12de53e99142f8ecd3982e5 import UnnamedSchemaRefBaac9d7da12de53e99142f8ecd3982e5 -__all__ = ["SpoofGetResponse", "Meta", "MetaConfidenceInfo"] +__all__ = ["SpoofGetResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation"] + + +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") diff --git a/src/cloudflare/types/radar/entities/asn_rel_response.py b/src/cloudflare/types/radar/entities/asn_rel_response.py index 294e270df139..f6c855e34389 100644 --- a/src/cloudflare/types/radar/entities/asn_rel_response.py +++ b/src/cloudflare/types/radar/entities/asn_rel_response.py @@ -3,9 +3,16 @@ from typing import List from ...._models import BaseModel -from ...unnamed_schema_ref_c5858f1f916a921846e0b6159af470a7 import UnnamedSchemaRefC5858f1f916a921846e0b6159af470a7 -__all__ = ["ASNRelResponse", "Rel"] +__all__ = ["ASNRelResponse", "Meta", "Rel"] + + +class Meta(BaseModel): + data_time: str + + query_time: str + + total_peers: int class Rel(BaseModel): @@ -25,6 +32,6 @@ class Rel(BaseModel): class ASNRelResponse(BaseModel): - meta: UnnamedSchemaRefC5858f1f916a921846e0b6159af470a7 + meta: Meta rels: List[Rel] diff --git a/src/cloudflare/types/radar/http/ase_get_response.py b/src/cloudflare/types/radar/http/ase_get_response.py index 32d7b397e00b..8daef5948972 100644 --- a/src/cloudflare/types/radar/http/ase_get_response.py +++ b/src/cloudflare/types/radar/http/ase_get_response.py @@ -1,32 +1,62 @@ # 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_4124a22436f90127c7fa2c4543219752 import UnnamedSchemaRef4124a22436f90127c7fa2c4543219752 -from ...unnamed_schema_ref_b5f3bd1840490bc487ffef84567807b1 import UnnamedSchemaRefB5f3bd1840490bc487ffef84567807b1 -from ...unnamed_schema_ref_baac9d7da12de53e99142f8ecd3982e5 import UnnamedSchemaRefBaac9d7da12de53e99142f8ecd3982e5 -__all__ = ["AseGetResponse", "Meta", "MetaConfidenceInfo"] +__all__ = ["AseGetResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation", "Top0"] + + +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") confidence_info: Optional[MetaConfidenceInfo] = FieldInfo(alias="confidenceInfo", default=None) +class Top0(BaseModel): + client_asn: int = FieldInfo(alias="clientASN") + + client_as_name: str = FieldInfo(alias="clientASName") + + value: str + + class AseGetResponse(BaseModel): meta: Meta - top_0: List[UnnamedSchemaRef4124a22436f90127c7fa2c4543219752] + top_0: List[Top0] diff --git a/src/cloudflare/types/radar/http/ases/bot_class_get_response.py b/src/cloudflare/types/radar/http/ases/bot_class_get_response.py index 41e76082e87d..f31bfef2e867 100644 --- a/src/cloudflare/types/radar/http/ases/bot_class_get_response.py +++ b/src/cloudflare/types/radar/http/ases/bot_class_get_response.py @@ -1,32 +1,62 @@ # 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_4124a22436f90127c7fa2c4543219752 import UnnamedSchemaRef4124a22436f90127c7fa2c4543219752 -from ....unnamed_schema_ref_b5f3bd1840490bc487ffef84567807b1 import UnnamedSchemaRefB5f3bd1840490bc487ffef84567807b1 -from ....unnamed_schema_ref_baac9d7da12de53e99142f8ecd3982e5 import UnnamedSchemaRefBaac9d7da12de53e99142f8ecd3982e5 -__all__ = ["BotClassGetResponse", "Meta", "MetaConfidenceInfo"] +__all__ = ["BotClassGetResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation", "Top0"] + + +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") confidence_info: Optional[MetaConfidenceInfo] = FieldInfo(alias="confidenceInfo", default=None) +class Top0(BaseModel): + client_asn: int = FieldInfo(alias="clientASN") + + client_as_name: str = FieldInfo(alias="clientASName") + + value: str + + class BotClassGetResponse(BaseModel): meta: Meta - top_0: List[UnnamedSchemaRef4124a22436f90127c7fa2c4543219752] + top_0: List[Top0] diff --git a/src/cloudflare/types/radar/http/ases/device_type_get_response.py b/src/cloudflare/types/radar/http/ases/device_type_get_response.py index aaf6bcc2d84c..f6392b8020cd 100644 --- a/src/cloudflare/types/radar/http/ases/device_type_get_response.py +++ b/src/cloudflare/types/radar/http/ases/device_type_get_response.py @@ -1,32 +1,69 @@ # 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_4124a22436f90127c7fa2c4543219752 import UnnamedSchemaRef4124a22436f90127c7fa2c4543219752 -from ....unnamed_schema_ref_b5f3bd1840490bc487ffef84567807b1 import UnnamedSchemaRefB5f3bd1840490bc487ffef84567807b1 -from ....unnamed_schema_ref_baac9d7da12de53e99142f8ecd3982e5 import UnnamedSchemaRefBaac9d7da12de53e99142f8ecd3982e5 -__all__ = ["DeviceTypeGetResponse", "Meta", "MetaConfidenceInfo"] +__all__ = [ + "DeviceTypeGetResponse", + "Meta", + "MetaDateRange", + "MetaConfidenceInfo", + "MetaConfidenceInfoAnnotation", + "Top0", +] + + +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") confidence_info: Optional[MetaConfidenceInfo] = FieldInfo(alias="confidenceInfo", default=None) +class Top0(BaseModel): + client_asn: int = FieldInfo(alias="clientASN") + + client_as_name: str = FieldInfo(alias="clientASName") + + value: str + + class DeviceTypeGetResponse(BaseModel): meta: Meta - top_0: List[UnnamedSchemaRef4124a22436f90127c7fa2c4543219752] + top_0: List[Top0] diff --git a/src/cloudflare/types/radar/http/ases/http_method_get_response.py b/src/cloudflare/types/radar/http/ases/http_method_get_response.py index 7aaece320138..ea15fbf1f95f 100644 --- a/src/cloudflare/types/radar/http/ases/http_method_get_response.py +++ b/src/cloudflare/types/radar/http/ases/http_method_get_response.py @@ -1,32 +1,69 @@ # 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_4124a22436f90127c7fa2c4543219752 import UnnamedSchemaRef4124a22436f90127c7fa2c4543219752 -from ....unnamed_schema_ref_b5f3bd1840490bc487ffef84567807b1 import UnnamedSchemaRefB5f3bd1840490bc487ffef84567807b1 -from ....unnamed_schema_ref_baac9d7da12de53e99142f8ecd3982e5 import UnnamedSchemaRefBaac9d7da12de53e99142f8ecd3982e5 -__all__ = ["HTTPMethodGetResponse", "Meta", "MetaConfidenceInfo"] +__all__ = [ + "HTTPMethodGetResponse", + "Meta", + "MetaDateRange", + "MetaConfidenceInfo", + "MetaConfidenceInfoAnnotation", + "Top0", +] + + +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") confidence_info: Optional[MetaConfidenceInfo] = FieldInfo(alias="confidenceInfo", default=None) +class Top0(BaseModel): + client_asn: int = FieldInfo(alias="clientASN") + + client_as_name: str = FieldInfo(alias="clientASName") + + value: str + + class HTTPMethodGetResponse(BaseModel): meta: Meta - top_0: List[UnnamedSchemaRef4124a22436f90127c7fa2c4543219752] + top_0: List[Top0] diff --git a/src/cloudflare/types/radar/http/ases/http_protocol_get_response.py b/src/cloudflare/types/radar/http/ases/http_protocol_get_response.py index 10c3a5fe44be..14a1768cd087 100644 --- a/src/cloudflare/types/radar/http/ases/http_protocol_get_response.py +++ b/src/cloudflare/types/radar/http/ases/http_protocol_get_response.py @@ -1,32 +1,69 @@ # 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_4124a22436f90127c7fa2c4543219752 import UnnamedSchemaRef4124a22436f90127c7fa2c4543219752 -from ....unnamed_schema_ref_b5f3bd1840490bc487ffef84567807b1 import UnnamedSchemaRefB5f3bd1840490bc487ffef84567807b1 -from ....unnamed_schema_ref_baac9d7da12de53e99142f8ecd3982e5 import UnnamedSchemaRefBaac9d7da12de53e99142f8ecd3982e5 -__all__ = ["HTTPProtocolGetResponse", "Meta", "MetaConfidenceInfo"] +__all__ = [ + "HTTPProtocolGetResponse", + "Meta", + "MetaDateRange", + "MetaConfidenceInfo", + "MetaConfidenceInfoAnnotation", + "Top0", +] + + +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") confidence_info: Optional[MetaConfidenceInfo] = FieldInfo(alias="confidenceInfo", default=None) +class Top0(BaseModel): + client_asn: int = FieldInfo(alias="clientASN") + + client_as_name: str = FieldInfo(alias="clientASName") + + value: str + + class HTTPProtocolGetResponse(BaseModel): meta: Meta - top_0: List[UnnamedSchemaRef4124a22436f90127c7fa2c4543219752] + top_0: List[Top0] diff --git a/src/cloudflare/types/radar/http/ases/ip_version_get_response.py b/src/cloudflare/types/radar/http/ases/ip_version_get_response.py index 098799701572..f2af7dd18a20 100644 --- a/src/cloudflare/types/radar/http/ases/ip_version_get_response.py +++ b/src/cloudflare/types/radar/http/ases/ip_version_get_response.py @@ -1,32 +1,69 @@ # 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_4124a22436f90127c7fa2c4543219752 import UnnamedSchemaRef4124a22436f90127c7fa2c4543219752 -from ....unnamed_schema_ref_b5f3bd1840490bc487ffef84567807b1 import UnnamedSchemaRefB5f3bd1840490bc487ffef84567807b1 -from ....unnamed_schema_ref_baac9d7da12de53e99142f8ecd3982e5 import UnnamedSchemaRefBaac9d7da12de53e99142f8ecd3982e5 -__all__ = ["IPVersionGetResponse", "Meta", "MetaConfidenceInfo"] +__all__ = [ + "IPVersionGetResponse", + "Meta", + "MetaDateRange", + "MetaConfidenceInfo", + "MetaConfidenceInfoAnnotation", + "Top0", +] + + +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") confidence_info: Optional[MetaConfidenceInfo] = FieldInfo(alias="confidenceInfo", default=None) +class Top0(BaseModel): + client_asn: int = FieldInfo(alias="clientASN") + + client_as_name: str = FieldInfo(alias="clientASName") + + value: str + + class IPVersionGetResponse(BaseModel): meta: Meta - top_0: List[UnnamedSchemaRef4124a22436f90127c7fa2c4543219752] + top_0: List[Top0] diff --git a/src/cloudflare/types/radar/http/ases/os_get_response.py b/src/cloudflare/types/radar/http/ases/os_get_response.py index ea444f2c317a..1bbbd47f7581 100644 --- a/src/cloudflare/types/radar/http/ases/os_get_response.py +++ b/src/cloudflare/types/radar/http/ases/os_get_response.py @@ -1,32 +1,62 @@ # 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_4124a22436f90127c7fa2c4543219752 import UnnamedSchemaRef4124a22436f90127c7fa2c4543219752 -from ....unnamed_schema_ref_b5f3bd1840490bc487ffef84567807b1 import UnnamedSchemaRefB5f3bd1840490bc487ffef84567807b1 -from ....unnamed_schema_ref_baac9d7da12de53e99142f8ecd3982e5 import UnnamedSchemaRefBaac9d7da12de53e99142f8ecd3982e5 -__all__ = ["OSGetResponse", "Meta", "MetaConfidenceInfo"] +__all__ = ["OSGetResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation", "Top0"] + + +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") confidence_info: Optional[MetaConfidenceInfo] = FieldInfo(alias="confidenceInfo", default=None) +class Top0(BaseModel): + client_asn: int = FieldInfo(alias="clientASN") + + client_as_name: str = FieldInfo(alias="clientASName") + + value: str + + class OSGetResponse(BaseModel): meta: Meta - top_0: List[UnnamedSchemaRef4124a22436f90127c7fa2c4543219752] + top_0: List[Top0] diff --git a/src/cloudflare/types/radar/http/ases/tls_version_get_response.py b/src/cloudflare/types/radar/http/ases/tls_version_get_response.py index 974f63510f00..132880a8088f 100644 --- a/src/cloudflare/types/radar/http/ases/tls_version_get_response.py +++ b/src/cloudflare/types/radar/http/ases/tls_version_get_response.py @@ -1,32 +1,69 @@ # 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_4124a22436f90127c7fa2c4543219752 import UnnamedSchemaRef4124a22436f90127c7fa2c4543219752 -from ....unnamed_schema_ref_b5f3bd1840490bc487ffef84567807b1 import UnnamedSchemaRefB5f3bd1840490bc487ffef84567807b1 -from ....unnamed_schema_ref_baac9d7da12de53e99142f8ecd3982e5 import UnnamedSchemaRefBaac9d7da12de53e99142f8ecd3982e5 -__all__ = ["TLSVersionGetResponse", "Meta", "MetaConfidenceInfo"] +__all__ = [ + "TLSVersionGetResponse", + "Meta", + "MetaDateRange", + "MetaConfidenceInfo", + "MetaConfidenceInfoAnnotation", + "Top0", +] + + +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") confidence_info: Optional[MetaConfidenceInfo] = FieldInfo(alias="confidenceInfo", default=None) +class Top0(BaseModel): + client_asn: int = FieldInfo(alias="clientASN") + + client_as_name: str = FieldInfo(alias="clientASName") + + value: str + + class TLSVersionGetResponse(BaseModel): meta: Meta - top_0: List[UnnamedSchemaRef4124a22436f90127c7fa2c4543219752] + top_0: List[Top0] diff --git a/src/cloudflare/types/radar/http/location_get_response.py b/src/cloudflare/types/radar/http/location_get_response.py index c036caf59532..fbed118e87da 100644 --- a/src/cloudflare/types/radar/http/location_get_response.py +++ b/src/cloudflare/types/radar/http/location_get_response.py @@ -1,32 +1,62 @@ # 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_83a14d589e799bc901b9ccc870251d09 import UnnamedSchemaRef83a14d589e799bc901b9ccc870251d09 -from ...unnamed_schema_ref_b5f3bd1840490bc487ffef84567807b1 import UnnamedSchemaRefB5f3bd1840490bc487ffef84567807b1 -from ...unnamed_schema_ref_baac9d7da12de53e99142f8ecd3982e5 import UnnamedSchemaRefBaac9d7da12de53e99142f8ecd3982e5 -__all__ = ["LocationGetResponse", "Meta", "MetaConfidenceInfo"] +__all__ = ["LocationGetResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation", "Top0"] + + +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") confidence_info: Optional[MetaConfidenceInfo] = FieldInfo(alias="confidenceInfo", default=None) +class Top0(BaseModel): + client_country_alpha2: str = FieldInfo(alias="clientCountryAlpha2") + + client_country_name: str = FieldInfo(alias="clientCountryName") + + value: str + + class LocationGetResponse(BaseModel): meta: Meta - top_0: List[UnnamedSchemaRef83a14d589e799bc901b9ccc870251d09] + top_0: List[Top0] diff --git a/src/cloudflare/types/radar/http/locations/bot_class_get_response.py b/src/cloudflare/types/radar/http/locations/bot_class_get_response.py index 0b292313f0f8..929152ac6d23 100644 --- a/src/cloudflare/types/radar/http/locations/bot_class_get_response.py +++ b/src/cloudflare/types/radar/http/locations/bot_class_get_response.py @@ -1,32 +1,62 @@ # 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_83a14d589e799bc901b9ccc870251d09 import UnnamedSchemaRef83a14d589e799bc901b9ccc870251d09 -from ....unnamed_schema_ref_b5f3bd1840490bc487ffef84567807b1 import UnnamedSchemaRefB5f3bd1840490bc487ffef84567807b1 -from ....unnamed_schema_ref_baac9d7da12de53e99142f8ecd3982e5 import UnnamedSchemaRefBaac9d7da12de53e99142f8ecd3982e5 -__all__ = ["BotClassGetResponse", "Meta", "MetaConfidenceInfo"] +__all__ = ["BotClassGetResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation", "Top0"] + + +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") confidence_info: Optional[MetaConfidenceInfo] = FieldInfo(alias="confidenceInfo", default=None) +class Top0(BaseModel): + client_country_alpha2: str = FieldInfo(alias="clientCountryAlpha2") + + client_country_name: str = FieldInfo(alias="clientCountryName") + + value: str + + class BotClassGetResponse(BaseModel): meta: Meta - top_0: List[UnnamedSchemaRef83a14d589e799bc901b9ccc870251d09] + top_0: List[Top0] diff --git a/src/cloudflare/types/radar/http/locations/device_type_get_response.py b/src/cloudflare/types/radar/http/locations/device_type_get_response.py index 8b98a364f059..fe44c5066f67 100644 --- a/src/cloudflare/types/radar/http/locations/device_type_get_response.py +++ b/src/cloudflare/types/radar/http/locations/device_type_get_response.py @@ -1,32 +1,69 @@ # 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_83a14d589e799bc901b9ccc870251d09 import UnnamedSchemaRef83a14d589e799bc901b9ccc870251d09 -from ....unnamed_schema_ref_b5f3bd1840490bc487ffef84567807b1 import UnnamedSchemaRefB5f3bd1840490bc487ffef84567807b1 -from ....unnamed_schema_ref_baac9d7da12de53e99142f8ecd3982e5 import UnnamedSchemaRefBaac9d7da12de53e99142f8ecd3982e5 -__all__ = ["DeviceTypeGetResponse", "Meta", "MetaConfidenceInfo"] +__all__ = [ + "DeviceTypeGetResponse", + "Meta", + "MetaDateRange", + "MetaConfidenceInfo", + "MetaConfidenceInfoAnnotation", + "Top0", +] + + +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") confidence_info: Optional[MetaConfidenceInfo] = FieldInfo(alias="confidenceInfo", default=None) +class Top0(BaseModel): + client_country_alpha2: str = FieldInfo(alias="clientCountryAlpha2") + + client_country_name: str = FieldInfo(alias="clientCountryName") + + value: str + + class DeviceTypeGetResponse(BaseModel): meta: Meta - top_0: List[UnnamedSchemaRef83a14d589e799bc901b9ccc870251d09] + top_0: List[Top0] diff --git a/src/cloudflare/types/radar/http/locations/http_method_get_response.py b/src/cloudflare/types/radar/http/locations/http_method_get_response.py index 0f1112dfcf05..cc7fa8f30967 100644 --- a/src/cloudflare/types/radar/http/locations/http_method_get_response.py +++ b/src/cloudflare/types/radar/http/locations/http_method_get_response.py @@ -1,32 +1,69 @@ # 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_83a14d589e799bc901b9ccc870251d09 import UnnamedSchemaRef83a14d589e799bc901b9ccc870251d09 -from ....unnamed_schema_ref_b5f3bd1840490bc487ffef84567807b1 import UnnamedSchemaRefB5f3bd1840490bc487ffef84567807b1 -from ....unnamed_schema_ref_baac9d7da12de53e99142f8ecd3982e5 import UnnamedSchemaRefBaac9d7da12de53e99142f8ecd3982e5 -__all__ = ["HTTPMethodGetResponse", "Meta", "MetaConfidenceInfo"] +__all__ = [ + "HTTPMethodGetResponse", + "Meta", + "MetaDateRange", + "MetaConfidenceInfo", + "MetaConfidenceInfoAnnotation", + "Top0", +] + + +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") confidence_info: Optional[MetaConfidenceInfo] = FieldInfo(alias="confidenceInfo", default=None) +class Top0(BaseModel): + client_country_alpha2: str = FieldInfo(alias="clientCountryAlpha2") + + client_country_name: str = FieldInfo(alias="clientCountryName") + + value: str + + class HTTPMethodGetResponse(BaseModel): meta: Meta - top_0: List[UnnamedSchemaRef83a14d589e799bc901b9ccc870251d09] + top_0: List[Top0] diff --git a/src/cloudflare/types/radar/http/locations/http_protocol_get_response.py b/src/cloudflare/types/radar/http/locations/http_protocol_get_response.py index 45caf371bd9b..487174e2c48e 100644 --- a/src/cloudflare/types/radar/http/locations/http_protocol_get_response.py +++ b/src/cloudflare/types/radar/http/locations/http_protocol_get_response.py @@ -1,32 +1,69 @@ # 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_83a14d589e799bc901b9ccc870251d09 import UnnamedSchemaRef83a14d589e799bc901b9ccc870251d09 -from ....unnamed_schema_ref_b5f3bd1840490bc487ffef84567807b1 import UnnamedSchemaRefB5f3bd1840490bc487ffef84567807b1 -from ....unnamed_schema_ref_baac9d7da12de53e99142f8ecd3982e5 import UnnamedSchemaRefBaac9d7da12de53e99142f8ecd3982e5 -__all__ = ["HTTPProtocolGetResponse", "Meta", "MetaConfidenceInfo"] +__all__ = [ + "HTTPProtocolGetResponse", + "Meta", + "MetaDateRange", + "MetaConfidenceInfo", + "MetaConfidenceInfoAnnotation", + "Top0", +] + + +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") confidence_info: Optional[MetaConfidenceInfo] = FieldInfo(alias="confidenceInfo", default=None) +class Top0(BaseModel): + client_country_alpha2: str = FieldInfo(alias="clientCountryAlpha2") + + client_country_name: str = FieldInfo(alias="clientCountryName") + + value: str + + class HTTPProtocolGetResponse(BaseModel): meta: Meta - top_0: List[UnnamedSchemaRef83a14d589e799bc901b9ccc870251d09] + top_0: List[Top0] diff --git a/src/cloudflare/types/radar/http/locations/ip_version_get_response.py b/src/cloudflare/types/radar/http/locations/ip_version_get_response.py index dfdb4200eafd..148244ac334f 100644 --- a/src/cloudflare/types/radar/http/locations/ip_version_get_response.py +++ b/src/cloudflare/types/radar/http/locations/ip_version_get_response.py @@ -1,32 +1,69 @@ # 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_83a14d589e799bc901b9ccc870251d09 import UnnamedSchemaRef83a14d589e799bc901b9ccc870251d09 -from ....unnamed_schema_ref_b5f3bd1840490bc487ffef84567807b1 import UnnamedSchemaRefB5f3bd1840490bc487ffef84567807b1 -from ....unnamed_schema_ref_baac9d7da12de53e99142f8ecd3982e5 import UnnamedSchemaRefBaac9d7da12de53e99142f8ecd3982e5 -__all__ = ["IPVersionGetResponse", "Meta", "MetaConfidenceInfo"] +__all__ = [ + "IPVersionGetResponse", + "Meta", + "MetaDateRange", + "MetaConfidenceInfo", + "MetaConfidenceInfoAnnotation", + "Top0", +] + + +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") confidence_info: Optional[MetaConfidenceInfo] = FieldInfo(alias="confidenceInfo", default=None) +class Top0(BaseModel): + client_country_alpha2: str = FieldInfo(alias="clientCountryAlpha2") + + client_country_name: str = FieldInfo(alias="clientCountryName") + + value: str + + class IPVersionGetResponse(BaseModel): meta: Meta - top_0: List[UnnamedSchemaRef83a14d589e799bc901b9ccc870251d09] + top_0: List[Top0] diff --git a/src/cloudflare/types/radar/http/locations/os_get_response.py b/src/cloudflare/types/radar/http/locations/os_get_response.py index 3a119e14240b..0696ba3b1666 100644 --- a/src/cloudflare/types/radar/http/locations/os_get_response.py +++ b/src/cloudflare/types/radar/http/locations/os_get_response.py @@ -1,32 +1,62 @@ # 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_83a14d589e799bc901b9ccc870251d09 import UnnamedSchemaRef83a14d589e799bc901b9ccc870251d09 -from ....unnamed_schema_ref_b5f3bd1840490bc487ffef84567807b1 import UnnamedSchemaRefB5f3bd1840490bc487ffef84567807b1 -from ....unnamed_schema_ref_baac9d7da12de53e99142f8ecd3982e5 import UnnamedSchemaRefBaac9d7da12de53e99142f8ecd3982e5 -__all__ = ["OSGetResponse", "Meta", "MetaConfidenceInfo"] +__all__ = ["OSGetResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation", "Top0"] + + +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") confidence_info: Optional[MetaConfidenceInfo] = FieldInfo(alias="confidenceInfo", default=None) +class Top0(BaseModel): + client_country_alpha2: str = FieldInfo(alias="clientCountryAlpha2") + + client_country_name: str = FieldInfo(alias="clientCountryName") + + value: str + + class OSGetResponse(BaseModel): meta: Meta - top_0: List[UnnamedSchemaRef83a14d589e799bc901b9ccc870251d09] + top_0: List[Top0] diff --git a/src/cloudflare/types/radar/http/locations/tls_version_get_response.py b/src/cloudflare/types/radar/http/locations/tls_version_get_response.py index 80c9da13a9d1..158ddcdffaf3 100644 --- a/src/cloudflare/types/radar/http/locations/tls_version_get_response.py +++ b/src/cloudflare/types/radar/http/locations/tls_version_get_response.py @@ -1,32 +1,69 @@ # 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_83a14d589e799bc901b9ccc870251d09 import UnnamedSchemaRef83a14d589e799bc901b9ccc870251d09 -from ....unnamed_schema_ref_b5f3bd1840490bc487ffef84567807b1 import UnnamedSchemaRefB5f3bd1840490bc487ffef84567807b1 -from ....unnamed_schema_ref_baac9d7da12de53e99142f8ecd3982e5 import UnnamedSchemaRefBaac9d7da12de53e99142f8ecd3982e5 -__all__ = ["TLSVersionGetResponse", "Meta", "MetaConfidenceInfo"] +__all__ = [ + "TLSVersionGetResponse", + "Meta", + "MetaDateRange", + "MetaConfidenceInfo", + "MetaConfidenceInfoAnnotation", + "Top0", +] + + +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") confidence_info: Optional[MetaConfidenceInfo] = FieldInfo(alias="confidenceInfo", default=None) +class Top0(BaseModel): + client_country_alpha2: str = FieldInfo(alias="clientCountryAlpha2") + + client_country_name: str = FieldInfo(alias="clientCountryName") + + value: str + + class TLSVersionGetResponse(BaseModel): meta: Meta - top_0: List[UnnamedSchemaRef83a14d589e799bc901b9ccc870251d09] + top_0: List[Top0] diff --git a/src/cloudflare/types/radar/http/summary_bot_class_response.py b/src/cloudflare/types/radar/http/summary_bot_class_response.py index 24529ffe49c8..133e6e9b1602 100644 --- a/src/cloudflare/types/radar/http/summary_bot_class_response.py +++ b/src/cloudflare/types/radar/http/summary_bot_class_response.py @@ -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__ = ["SummaryBotClassResponse", "Meta", "MetaConfidenceInfo", "Summary0"] +__all__ = [ + "SummaryBotClassResponse", + "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") diff --git a/src/cloudflare/types/radar/http/summary_device_type_response.py b/src/cloudflare/types/radar/http/summary_device_type_response.py index 977d84541462..b59e448a726c 100644 --- a/src/cloudflare/types/radar/http/summary_device_type_response.py +++ b/src/cloudflare/types/radar/http/summary_device_type_response.py @@ -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__ = ["SummaryDeviceTypeResponse", "Meta", "MetaConfidenceInfo", "Summary0"] +__all__ = [ + "SummaryDeviceTypeResponse", + "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") diff --git a/src/cloudflare/types/radar/http/summary_http_protocol_response.py b/src/cloudflare/types/radar/http/summary_http_protocol_response.py index e402b3460dc5..5777d29f25de 100644 --- a/src/cloudflare/types/radar/http/summary_http_protocol_response.py +++ b/src/cloudflare/types/radar/http/summary_http_protocol_response.py @@ -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__ = ["SummaryHTTPProtocolResponse", "Meta", "MetaConfidenceInfo", "Summary0"] +__all__ = [ + "SummaryHTTPProtocolResponse", + "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") diff --git a/src/cloudflare/types/radar/http/summary_http_version_response.py b/src/cloudflare/types/radar/http/summary_http_version_response.py index 7c63759f9ac8..f8c1e4f3f9e4 100644 --- a/src/cloudflare/types/radar/http/summary_http_version_response.py +++ b/src/cloudflare/types/radar/http/summary_http_version_response.py @@ -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__ = ["SummaryHTTPVersionResponse", "Meta", "MetaConfidenceInfo", "Summary0"] +__all__ = [ + "SummaryHTTPVersionResponse", + "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") diff --git a/src/cloudflare/types/radar/http/summary_ip_version_response.py b/src/cloudflare/types/radar/http/summary_ip_version_response.py index 41cc958f2098..e8515c06e801 100644 --- a/src/cloudflare/types/radar/http/summary_ip_version_response.py +++ b/src/cloudflare/types/radar/http/summary_ip_version_response.py @@ -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") @@ -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 diff --git a/src/cloudflare/types/radar/http/summary_os_response.py b/src/cloudflare/types/radar/http/summary_os_response.py index 5252f6cb46bb..eba9ffc96212 100644 --- a/src/cloudflare/types/radar/http/summary_os_response.py +++ b/src/cloudflare/types/radar/http/summary_os_response.py @@ -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__ = ["SummaryOSResponse", "Meta", "MetaConfidenceInfo", "Summary0"] +__all__ = [ + "SummaryOSResponse", + "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") diff --git a/src/cloudflare/types/radar/http/summary_tls_version_response.py b/src/cloudflare/types/radar/http/summary_tls_version_response.py index 444d0a1665f3..67c780830504 100644 --- a/src/cloudflare/types/radar/http/summary_tls_version_response.py +++ b/src/cloudflare/types/radar/http/summary_tls_version_response.py @@ -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__ = ["SummaryTLSVersionResponse", "Meta", "MetaConfidenceInfo", "Summary0"] +__all__ = [ + "SummaryTLSVersionResponse", + "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") diff --git a/src/cloudflare/types/radar/http/timeseries_group_browser_family_response.py b/src/cloudflare/types/radar/http/timeseries_group_browser_family_response.py index 504eb29f9b6d..57758e6ca146 100644 --- a/src/cloudflare/types/radar/http/timeseries_group_browser_family_response.py +++ b/src/cloudflare/types/radar/http/timeseries_group_browser_family_response.py @@ -1,14 +1,24 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - +from typing import TYPE_CHECKING, List from ...._models import BaseModel -from ...unnamed_schema_ref_7826220e105d84352ba1108d9ed88e55 import UnnamedSchemaRef7826220e105d84352ba1108d9ed88e55 -__all__ = ["TimeseriesGroupBrowserFamilyResponse"] +__all__ = ["TimeseriesGroupBrowserFamilyResponse", "Serie0"] + + +class Serie0(BaseModel): + timestamps: List[str] + + if TYPE_CHECKING: + # Stub to indicate that arbitrary properties are accepted. + # To access properties that are not valid identifiers you can use `getattr`, e.g. + # `getattr(obj, '$type')` + def __getattr__(self, attr: str) -> List[str]: + ... class TimeseriesGroupBrowserFamilyResponse(BaseModel): meta: object - serie_0: UnnamedSchemaRef7826220e105d84352ba1108d9ed88e55 + serie_0: Serie0 diff --git a/src/cloudflare/types/radar/http/timeseries_group_browser_response.py b/src/cloudflare/types/radar/http/timeseries_group_browser_response.py index 571b75ec9c49..fd39b292fe39 100644 --- a/src/cloudflare/types/radar/http/timeseries_group_browser_response.py +++ b/src/cloudflare/types/radar/http/timeseries_group_browser_response.py @@ -1,14 +1,24 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - +from typing import TYPE_CHECKING, List from ...._models import BaseModel -from ...unnamed_schema_ref_7826220e105d84352ba1108d9ed88e55 import UnnamedSchemaRef7826220e105d84352ba1108d9ed88e55 -__all__ = ["TimeseriesGroupBrowserResponse"] +__all__ = ["TimeseriesGroupBrowserResponse", "Serie0"] + + +class Serie0(BaseModel): + timestamps: List[str] + + if TYPE_CHECKING: + # Stub to indicate that arbitrary properties are accepted. + # To access properties that are not valid identifiers you can use `getattr`, e.g. + # `getattr(obj, '$type')` + def __getattr__(self, attr: str) -> List[str]: + ... class TimeseriesGroupBrowserResponse(BaseModel): meta: object - serie_0: UnnamedSchemaRef7826220e105d84352ba1108d9ed88e55 + serie_0: Serie0 diff --git a/src/cloudflare/types/radar/http/timeseries_group_ip_version_response.py b/src/cloudflare/types/radar/http/timeseries_group_ip_version_response.py index 567e0a53096d..560271c2fd8c 100644 --- a/src/cloudflare/types/radar/http/timeseries_group_ip_version_response.py +++ b/src/cloudflare/types/radar/http/timeseries_group_ip_version_response.py @@ -1,14 +1,23 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List +from pydantic import Field as FieldInfo from ...._models import BaseModel -from ...unnamed_schema_ref_9002274ed7cb7f3dc567421e31529a3a import UnnamedSchemaRef9002274ed7cb7f3dc567421e31529a3a -__all__ = ["TimeseriesGroupIPVersionResponse"] +__all__ = ["TimeseriesGroupIPVersionResponse", "Serie0"] + + +class Serie0(BaseModel): + i_pv4: List[str] = FieldInfo(alias="IPv4") + + i_pv6: List[str] = FieldInfo(alias="IPv6") + + timestamps: List[str] class TimeseriesGroupIPVersionResponse(BaseModel): meta: object - serie_0: UnnamedSchemaRef9002274ed7cb7f3dc567421e31529a3a + serie_0: Serie0 diff --git a/src/cloudflare/types/radar/http/timeseries_group_os_response.py b/src/cloudflare/types/radar/http/timeseries_group_os_response.py index ca7b67d8132c..502c0a8a249a 100644 --- a/src/cloudflare/types/radar/http/timeseries_group_os_response.py +++ b/src/cloudflare/types/radar/http/timeseries_group_os_response.py @@ -1,14 +1,24 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - +from typing import TYPE_CHECKING, List from ...._models import BaseModel -from ...unnamed_schema_ref_7826220e105d84352ba1108d9ed88e55 import UnnamedSchemaRef7826220e105d84352ba1108d9ed88e55 -__all__ = ["TimeseriesGroupOSResponse"] +__all__ = ["TimeseriesGroupOSResponse", "Serie0"] + + +class Serie0(BaseModel): + timestamps: List[str] + + if TYPE_CHECKING: + # Stub to indicate that arbitrary properties are accepted. + # To access properties that are not valid identifiers you can use `getattr`, e.g. + # `getattr(obj, '$type')` + def __getattr__(self, attr: str) -> List[str]: + ... class TimeseriesGroupOSResponse(BaseModel): meta: object - serie_0: UnnamedSchemaRef7826220e105d84352ba1108d9ed88e55 + serie_0: Serie0 diff --git a/src/cloudflare/types/radar/http/top_browser_families_response.py b/src/cloudflare/types/radar/http/top_browser_families_response.py index ee909f99589c..ca364af9b0a9 100644 --- a/src/cloudflare/types/radar/http/top_browser_families_response.py +++ b/src/cloudflare/types/radar/http/top_browser_families_response.py @@ -1,25 +1,48 @@ # 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 .browser import Browser from ...._models import BaseModel -from ...unnamed_schema_ref_b5f3bd1840490bc487ffef84567807b1 import UnnamedSchemaRefB5f3bd1840490bc487ffef84567807b1 -from ...unnamed_schema_ref_baac9d7da12de53e99142f8ecd3982e5 import UnnamedSchemaRefBaac9d7da12de53e99142f8ecd3982e5 -__all__ = ["TopBrowserFamiliesResponse", "Meta", "MetaConfidenceInfo"] +__all__ = ["TopBrowserFamiliesResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation"] + + +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") diff --git a/src/cloudflare/types/radar/http/top_browsers_response.py b/src/cloudflare/types/radar/http/top_browsers_response.py index 052b93a13211..587df8db78fd 100644 --- a/src/cloudflare/types/radar/http/top_browsers_response.py +++ b/src/cloudflare/types/radar/http/top_browsers_response.py @@ -1,25 +1,48 @@ # 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 .browser import Browser from ...._models import BaseModel -from ...unnamed_schema_ref_b5f3bd1840490bc487ffef84567807b1 import UnnamedSchemaRefB5f3bd1840490bc487ffef84567807b1 -from ...unnamed_schema_ref_baac9d7da12de53e99142f8ecd3982e5 import UnnamedSchemaRefBaac9d7da12de53e99142f8ecd3982e5 -__all__ = ["TopBrowsersResponse", "Meta", "MetaConfidenceInfo"] +__all__ = ["TopBrowsersResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation"] + + +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") diff --git a/src/cloudflare/types/radar/netflow_timeseries_response.py b/src/cloudflare/types/radar/netflow_timeseries_response.py index 70af018f7394..d58a81a73602 100644 --- a/src/cloudflare/types/radar/netflow_timeseries_response.py +++ b/src/cloudflare/types/radar/netflow_timeseries_response.py @@ -6,15 +6,43 @@ from pydantic import Field as FieldInfo from ..._models import BaseModel -from ..unnamed_schema_ref_75bae70cf28e6bcef364b9840db3bdeb import UnnamedSchemaRef75bae70cf28e6bcef364b9840db3bdeb -from ..unnamed_schema_ref_b5f3bd1840490bc487ffef84567807b1 import UnnamedSchemaRefB5f3bd1840490bc487ffef84567807b1 -from ..unnamed_schema_ref_baac9d7da12de53e99142f8ecd3982e5 import UnnamedSchemaRefBaac9d7da12de53e99142f8ecd3982e5 -__all__ = ["NetflowTimeseriesResponse", "Meta", "MetaConfidenceInfo"] +__all__ = [ + "NetflowTimeseriesResponse", + "Meta", + "MetaDateRange", + "MetaConfidenceInfo", + "MetaConfidenceInfoAnnotation", + "Serie0", +] + + +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 @@ -22,14 +50,20 @@ class MetaConfidenceInfo(BaseModel): class Meta(BaseModel): agg_interval: str = FieldInfo(alias="aggInterval") - date_range: List[UnnamedSchemaRefBaac9d7da12de53e99142f8ecd3982e5] = FieldInfo(alias="dateRange") + date_range: List[MetaDateRange] = FieldInfo(alias="dateRange") last_updated: datetime = FieldInfo(alias="lastUpdated") confidence_info: Optional[MetaConfidenceInfo] = FieldInfo(alias="confidenceInfo", default=None) +class Serie0(BaseModel): + timestamps: List[datetime] + + values: List[str] + + class NetflowTimeseriesResponse(BaseModel): meta: Meta - serie_0: UnnamedSchemaRef75bae70cf28e6bcef364b9840db3bdeb + serie_0: Serie0 diff --git a/src/cloudflare/types/radar/quality/iqi_summary_response.py b/src/cloudflare/types/radar/quality/iqi_summary_response.py index d737fc2d82e0..9b9c2a25df76 100644 --- a/src/cloudflare/types/radar/quality/iqi_summary_response.py +++ b/src/cloudflare/types/radar/quality/iqi_summary_response.py @@ -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__ = ["IQISummaryResponse", "Meta", "MetaConfidenceInfo", "Summary0"] +__all__ = [ + "IQISummaryResponse", + "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") diff --git a/src/cloudflare/types/radar/quality/speed/top_ases_response.py b/src/cloudflare/types/radar/quality/speed/top_ases_response.py index b32e830e6179..1f6fdf10cac0 100644 --- a/src/cloudflare/types/radar/quality/speed/top_ases_response.py +++ b/src/cloudflare/types/radar/quality/speed/top_ases_response.py @@ -1,24 +1,47 @@ # 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__ = ["TopAsesResponse", "Meta", "MetaConfidenceInfo", "Top0"] +__all__ = ["TopAsesResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation", "Top0"] + + +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") diff --git a/src/cloudflare/types/radar/quality/speed/top_locations_response.py b/src/cloudflare/types/radar/quality/speed/top_locations_response.py index 5fa833097f01..588ddd56f4da 100644 --- a/src/cloudflare/types/radar/quality/speed/top_locations_response.py +++ b/src/cloudflare/types/radar/quality/speed/top_locations_response.py @@ -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__ = ["TopLocationsResponse", "Meta", "MetaConfidenceInfo", "Top0"] +__all__ = [ + "TopLocationsResponse", + "Meta", + "MetaDateRange", + "MetaConfidenceInfo", + "MetaConfidenceInfoAnnotation", + "Top0", +] + + +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") diff --git a/src/cloudflare/types/radar/quality/speed_summary_response.py b/src/cloudflare/types/radar/quality/speed_summary_response.py index 824ba1634b40..a549509d36df 100644 --- a/src/cloudflare/types/radar/quality/speed_summary_response.py +++ b/src/cloudflare/types/radar/quality/speed_summary_response.py @@ -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__ = ["SpeedSummaryResponse", "Meta", "MetaConfidenceInfo", "Summary0"] +__all__ = [ + "SpeedSummaryResponse", + "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") diff --git a/src/cloudflare/types/radar/unnamed_schema_ref_67c73d4742566cab0909f71b1822e88c.py b/src/cloudflare/types/radar/radar_email_series.py similarity index 71% rename from src/cloudflare/types/radar/unnamed_schema_ref_67c73d4742566cab0909f71b1822e88c.py rename to src/cloudflare/types/radar/radar_email_series.py index 944d4739370f..dbe15ff3c542 100644 --- a/src/cloudflare/types/radar/unnamed_schema_ref_67c73d4742566cab0909f71b1822e88c.py +++ b/src/cloudflare/types/radar/radar_email_series.py @@ -6,10 +6,10 @@ from ..._models import BaseModel -__all__ = ["UnnamedSchemaRef67c73d4742566cab0909f71b1822e88c"] +__all__ = ["RadarEmailSeries"] -class UnnamedSchemaRef67c73d4742566cab0909f71b1822e88c(BaseModel): +class RadarEmailSeries(BaseModel): fail: List[str] = FieldInfo(alias="FAIL") none: List[str] = FieldInfo(alias="NONE") diff --git a/src/cloudflare/types/radar/unnamed_schema_ref_853c157ad369010995e35be614e0343f.py b/src/cloudflare/types/radar/radar_email_summary.py similarity index 68% rename from src/cloudflare/types/radar/unnamed_schema_ref_853c157ad369010995e35be614e0343f.py rename to src/cloudflare/types/radar/radar_email_summary.py index 83d84f3c3ffc..19a29a852e28 100644 --- a/src/cloudflare/types/radar/unnamed_schema_ref_853c157ad369010995e35be614e0343f.py +++ b/src/cloudflare/types/radar/radar_email_summary.py @@ -4,10 +4,10 @@ from ..._models import BaseModel -__all__ = ["UnnamedSchemaRef853c157ad369010995e35be614e0343f"] +__all__ = ["RadarEmailSummary"] -class UnnamedSchemaRef853c157ad369010995e35be614e0343f(BaseModel): +class RadarEmailSummary(BaseModel): fail: str = FieldInfo(alias="FAIL") none: str = FieldInfo(alias="NONE") diff --git a/src/cloudflare/types/radar/ranking_timeseries_groups_response.py b/src/cloudflare/types/radar/ranking_timeseries_groups_response.py index c1a8b0e48b9a..7b5aeecff773 100644 --- a/src/cloudflare/types/radar/ranking_timeseries_groups_response.py +++ b/src/cloudflare/types/radar/ranking_timeseries_groups_response.py @@ -1,17 +1,25 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing import TYPE_CHECKING, List, Union +from datetime import datetime from pydantic import Field as FieldInfo from ..._models import BaseModel -from ..unnamed_schema_ref_baac9d7da12de53e99142f8ecd3982e5 import UnnamedSchemaRefBaac9d7da12de53e99142f8ecd3982e5 -__all__ = ["RankingTimeseriesGroupsResponse", "Meta", "Serie0"] +__all__ = ["RankingTimeseriesGroupsResponse", "Meta", "MetaDateRange", "Serie0"] + + +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 Meta(BaseModel): - date_range: List[UnnamedSchemaRefBaac9d7da12de53e99142f8ecd3982e5] = FieldInfo(alias="dateRange") + date_range: List[MetaDateRange] = FieldInfo(alias="dateRange") class Serie0(BaseModel): diff --git a/src/cloudflare/types/radar/traffic_anomalies/location_get_response.py b/src/cloudflare/types/radar/traffic_anomalies/location_get_response.py index 2cc2d1711cc0..3cf6ca01da70 100644 --- a/src/cloudflare/types/radar/traffic_anomalies/location_get_response.py +++ b/src/cloudflare/types/radar/traffic_anomalies/location_get_response.py @@ -5,10 +5,17 @@ from pydantic import Field as FieldInfo from ...._models import BaseModel -from ...unnamed_schema_ref_83a14d589e799bc901b9ccc870251d09 import UnnamedSchemaRef83a14d589e799bc901b9ccc870251d09 -__all__ = ["LocationGetResponse"] +__all__ = ["LocationGetResponse", "TrafficAnomaly"] + + +class TrafficAnomaly(BaseModel): + client_country_alpha2: str = FieldInfo(alias="clientCountryAlpha2") + + client_country_name: str = FieldInfo(alias="clientCountryName") + + value: str class LocationGetResponse(BaseModel): - traffic_anomalies: List[UnnamedSchemaRef83a14d589e799bc901b9ccc870251d09] = FieldInfo(alias="trafficAnomalies") + traffic_anomalies: List[TrafficAnomaly] = FieldInfo(alias="trafficAnomalies") diff --git a/src/cloudflare/types/radar/traffic_anomaly_get_response.py b/src/cloudflare/types/radar/traffic_anomaly_get_response.py index 6d2138b5a691..ba231bfa22c6 100644 --- a/src/cloudflare/types/radar/traffic_anomaly_get_response.py +++ b/src/cloudflare/types/radar/traffic_anomaly_get_response.py @@ -5,9 +5,20 @@ from pydantic import Field as FieldInfo from ..._models import BaseModel -from ..unnamed_schema_ref_16e559c45a31db5480e21fbe904b2e42 import UnnamedSchemaRef16e559c45a31db5480e21fbe904b2e42 -__all__ = ["TrafficAnomalyGetResponse", "TrafficAnomaly", "TrafficAnomalyASNDetails"] +__all__ = [ + "TrafficAnomalyGetResponse", + "TrafficAnomaly", + "TrafficAnomalyASNDetails", + "TrafficAnomalyASNDetailsLocations", + "TrafficAnomalyLocationDetails", +] + + +class TrafficAnomalyASNDetailsLocations(BaseModel): + code: str + + name: str class TrafficAnomalyASNDetails(BaseModel): @@ -15,7 +26,13 @@ class TrafficAnomalyASNDetails(BaseModel): name: str - locations: Optional[UnnamedSchemaRef16e559c45a31db5480e21fbe904b2e42] = None + locations: Optional[TrafficAnomalyASNDetailsLocations] = None + + +class TrafficAnomalyLocationDetails(BaseModel): + code: str + + name: str class TrafficAnomaly(BaseModel): @@ -31,9 +48,7 @@ class TrafficAnomaly(BaseModel): end_date: Optional[str] = FieldInfo(alias="endDate", default=None) - location_details: Optional[UnnamedSchemaRef16e559c45a31db5480e21fbe904b2e42] = FieldInfo( - alias="locationDetails", default=None - ) + location_details: Optional[TrafficAnomalyLocationDetails] = FieldInfo(alias="locationDetails", default=None) visible_in_data_sources: Optional[List[str]] = FieldInfo(alias="visibleInDataSources", default=None) diff --git a/src/cloudflare/types/radar/verified_bots/top_bots_response.py b/src/cloudflare/types/radar/verified_bots/top_bots_response.py index 3235433d317b..b75b4174bc9a 100644 --- a/src/cloudflare/types/radar/verified_bots/top_bots_response.py +++ b/src/cloudflare/types/radar/verified_bots/top_bots_response.py @@ -1,24 +1,47 @@ # 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__ = ["TopBotsResponse", "Meta", "MetaConfidenceInfo", "Top0"] +__all__ = ["TopBotsResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation", "Top0"] + + +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") confidence_info: Optional[MetaConfidenceInfo] = FieldInfo(alias="confidenceInfo", default=None) diff --git a/src/cloudflare/types/radar/verified_bots/top_categories_response.py b/src/cloudflare/types/radar/verified_bots/top_categories_response.py index d8292fcbc8fa..ddc083c00ac3 100644 --- a/src/cloudflare/types/radar/verified_bots/top_categories_response.py +++ b/src/cloudflare/types/radar/verified_bots/top_categories_response.py @@ -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__ = ["TopCategoriesResponse", "Meta", "MetaConfidenceInfo", "Top0"] +__all__ = [ + "TopCategoriesResponse", + "Meta", + "MetaDateRange", + "MetaConfidenceInfo", + "MetaConfidenceInfoAnnotation", + "Top0", +] + + +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") confidence_info: Optional[MetaConfidenceInfo] = FieldInfo(alias="confidenceInfo", default=None) diff --git a/src/cloudflare/types/unnamed_schema_ref_16e559c45a31db5480e21fbe904b2e42.py b/src/cloudflare/types/unnamed_schema_ref_16e559c45a31db5480e21fbe904b2e42.py deleted file mode 100644 index a097debe6b83..000000000000 --- a/src/cloudflare/types/unnamed_schema_ref_16e559c45a31db5480e21fbe904b2e42.py +++ /dev/null @@ -1,11 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from .._models import BaseModel - -__all__ = ["UnnamedSchemaRef16e559c45a31db5480e21fbe904b2e42"] - - -class UnnamedSchemaRef16e559c45a31db5480e21fbe904b2e42(BaseModel): - code: str - - name: str diff --git a/src/cloudflare/types/unnamed_schema_ref_4124a22436f90127c7fa2c4543219752.py b/src/cloudflare/types/unnamed_schema_ref_4124a22436f90127c7fa2c4543219752.py deleted file mode 100644 index 61eafcbccc9b..000000000000 --- a/src/cloudflare/types/unnamed_schema_ref_4124a22436f90127c7fa2c4543219752.py +++ /dev/null @@ -1,15 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from pydantic import Field as FieldInfo - -from .._models import BaseModel - -__all__ = ["UnnamedSchemaRef4124a22436f90127c7fa2c4543219752"] - - -class UnnamedSchemaRef4124a22436f90127c7fa2c4543219752(BaseModel): - client_asn: int = FieldInfo(alias="clientASN") - - client_as_name: str = FieldInfo(alias="clientASName") - - value: str diff --git a/src/cloudflare/types/unnamed_schema_ref_75bae70cf28e6bcef364b9840db3bdeb.py b/src/cloudflare/types/unnamed_schema_ref_75bae70cf28e6bcef364b9840db3bdeb.py deleted file mode 100644 index 5fba65cc2167..000000000000 --- a/src/cloudflare/types/unnamed_schema_ref_75bae70cf28e6bcef364b9840db3bdeb.py +++ /dev/null @@ -1,14 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from typing import List -from datetime import datetime - -from .._models import BaseModel - -__all__ = ["UnnamedSchemaRef75bae70cf28e6bcef364b9840db3bdeb"] - - -class UnnamedSchemaRef75bae70cf28e6bcef364b9840db3bdeb(BaseModel): - timestamps: List[datetime] - - values: List[str] diff --git a/src/cloudflare/types/unnamed_schema_ref_7826220e105d84352ba1108d9ed88e55.py b/src/cloudflare/types/unnamed_schema_ref_7826220e105d84352ba1108d9ed88e55.py deleted file mode 100644 index 0c9716982879..000000000000 --- a/src/cloudflare/types/unnamed_schema_ref_7826220e105d84352ba1108d9ed88e55.py +++ /dev/null @@ -1,18 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from typing import TYPE_CHECKING, List - -from .._models import BaseModel - -__all__ = ["UnnamedSchemaRef7826220e105d84352ba1108d9ed88e55"] - - -class UnnamedSchemaRef7826220e105d84352ba1108d9ed88e55(BaseModel): - timestamps: List[str] - - if TYPE_CHECKING: - # Stub to indicate that arbitrary properties are accepted. - # To access properties that are not valid identifiers you can use `getattr`, e.g. - # `getattr(obj, '$type')` - def __getattr__(self, attr: str) -> List[str]: - ... diff --git a/src/cloudflare/types/unnamed_schema_ref_83a14d589e799bc901b9ccc870251d09.py b/src/cloudflare/types/unnamed_schema_ref_83a14d589e799bc901b9ccc870251d09.py deleted file mode 100644 index aac451244dc0..000000000000 --- a/src/cloudflare/types/unnamed_schema_ref_83a14d589e799bc901b9ccc870251d09.py +++ /dev/null @@ -1,15 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from pydantic import Field as FieldInfo - -from .._models import BaseModel - -__all__ = ["UnnamedSchemaRef83a14d589e799bc901b9ccc870251d09"] - - -class UnnamedSchemaRef83a14d589e799bc901b9ccc870251d09(BaseModel): - client_country_alpha2: str = FieldInfo(alias="clientCountryAlpha2") - - client_country_name: str = FieldInfo(alias="clientCountryName") - - value: str diff --git a/src/cloudflare/types/unnamed_schema_ref_8b383e904d9fb02521257ef9cc77d297.py b/src/cloudflare/types/unnamed_schema_ref_8b383e904d9fb02521257ef9cc77d297.py deleted file mode 100644 index 22641d9d660d..000000000000 --- a/src/cloudflare/types/unnamed_schema_ref_8b383e904d9fb02521257ef9cc77d297.py +++ /dev/null @@ -1,13 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from pydantic import Field as FieldInfo - -from .._models import BaseModel - -__all__ = ["UnnamedSchemaRef8b383e904d9fb02521257ef9cc77d297"] - - -class UnnamedSchemaRef8b383e904d9fb02521257ef9cc77d297(BaseModel): - i_pv4: str = FieldInfo(alias="IPv4") - - i_pv6: str = FieldInfo(alias="IPv6") diff --git a/src/cloudflare/types/unnamed_schema_ref_9002274ed7cb7f3dc567421e31529a3a.py b/src/cloudflare/types/unnamed_schema_ref_9002274ed7cb7f3dc567421e31529a3a.py deleted file mode 100644 index 5fbb46c7cc87..000000000000 --- a/src/cloudflare/types/unnamed_schema_ref_9002274ed7cb7f3dc567421e31529a3a.py +++ /dev/null @@ -1,17 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from typing import List - -from pydantic import Field as FieldInfo - -from .._models import BaseModel - -__all__ = ["UnnamedSchemaRef9002274ed7cb7f3dc567421e31529a3a"] - - -class UnnamedSchemaRef9002274ed7cb7f3dc567421e31529a3a(BaseModel): - i_pv4: List[str] = FieldInfo(alias="IPv4") - - i_pv6: List[str] = FieldInfo(alias="IPv6") - - timestamps: List[str] diff --git a/src/cloudflare/types/unnamed_schema_ref_b5f3bd1840490bc487ffef84567807b1.py b/src/cloudflare/types/unnamed_schema_ref_b5f3bd1840490bc487ffef84567807b1.py deleted file mode 100644 index d16ac339e3b2..000000000000 --- a/src/cloudflare/types/unnamed_schema_ref_b5f3bd1840490bc487ffef84567807b1.py +++ /dev/null @@ -1,26 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from typing import Optional -from datetime import datetime - -from pydantic import Field as FieldInfo - -from .._models import BaseModel - -__all__ = ["UnnamedSchemaRefB5f3bd1840490bc487ffef84567807b1"] - - -class UnnamedSchemaRefB5f3bd1840490bc487ffef84567807b1(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) diff --git a/src/cloudflare/types/unnamed_schema_ref_baac9d7da12de53e99142f8ecd3982e5.py b/src/cloudflare/types/unnamed_schema_ref_baac9d7da12de53e99142f8ecd3982e5.py deleted file mode 100644 index c5f10c11f7ad..000000000000 --- a/src/cloudflare/types/unnamed_schema_ref_baac9d7da12de53e99142f8ecd3982e5.py +++ /dev/null @@ -1,17 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from datetime import datetime - -from pydantic import Field as FieldInfo - -from .._models import BaseModel - -__all__ = ["UnnamedSchemaRefBaac9d7da12de53e99142f8ecd3982e5"] - - -class UnnamedSchemaRefBaac9d7da12de53e99142f8ecd3982e5(BaseModel): - end_time: datetime = FieldInfo(alias="endTime") - """Adjusted end of date range.""" - - start_time: datetime = FieldInfo(alias="startTime") - """Adjusted start of date range.""" diff --git a/src/cloudflare/types/unnamed_schema_ref_c5858f1f916a921846e0b6159af470a7.py b/src/cloudflare/types/unnamed_schema_ref_c5858f1f916a921846e0b6159af470a7.py deleted file mode 100644 index f9721155fe01..000000000000 --- a/src/cloudflare/types/unnamed_schema_ref_c5858f1f916a921846e0b6159af470a7.py +++ /dev/null @@ -1,13 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from .._models import BaseModel - -__all__ = ["UnnamedSchemaRefC5858f1f916a921846e0b6159af470a7"] - - -class UnnamedSchemaRefC5858f1f916a921846e0b6159af470a7(BaseModel): - data_time: str - - query_time: str - - total_peers: int