From 07b95910fe155922e0404686836d239acfb735f4 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 2 Apr 2024 18:02:45 +0000 Subject: [PATCH] feat(api): OpenAPI spec update via Stainless API (#198) --- ...ital_experience_monitoring_http_details.py | 60 ------------------- .../digital_experience_monitoring_tests.py | 18 ------ ...xperience_monitoring_traceroute_details.py | 14 ----- 3 files changed, 92 deletions(-) diff --git a/src/cloudflare/types/zero_trust/dex/digital_experience_monitoring_http_details.py b/src/cloudflare/types/zero_trust/dex/digital_experience_monitoring_http_details.py index 5f9e2c36f125..dd2855704786 100644 --- a/src/cloudflare/types/zero_trust/dex/digital_experience_monitoring_http_details.py +++ b/src/cloudflare/types/zero_trust/dex/digital_experience_monitoring_http_details.py @@ -10,8 +10,6 @@ __all__ = [ "DigitalExperienceMonitoringHTTPDetails", "HTTPStats", - "HTTPStatsAvailabilityPct", - "HTTPStatsAvailabilityPctSlot", "HTTPStatsDNSResponseTimeMs", "HTTPStatsDNSResponseTimeMsSlot", "HTTPStatsHTTPStatusCode", @@ -20,8 +18,6 @@ "HTTPStatsServerResponseTimeMs", "HTTPStatsServerResponseTimeMsSlot", "HTTPStatsByColo", - "HTTPStatsByColoAvailabilityPct", - "HTTPStatsByColoAvailabilityPctSlot", "HTTPStatsByColoDNSResponseTimeMs", "HTTPStatsByColoDNSResponseTimeMsSlot", "HTTPStatsByColoHTTPStatusCode", @@ -29,29 +25,9 @@ "HTTPStatsByColoResourceFetchTimeMsSlot", "HTTPStatsByColoServerResponseTimeMs", "HTTPStatsByColoServerResponseTimeMsSlot", - "TargetPolicy", ] -class HTTPStatsAvailabilityPctSlot(BaseModel): - timestamp: str - - value: float - - -class HTTPStatsAvailabilityPct(BaseModel): - slots: List[HTTPStatsAvailabilityPctSlot] - - avg: Optional[float] = None - """average observed in the time period""" - - max: Optional[float] = None - """highest observed in the time period""" - - min: Optional[float] = None - """lowest observed in the time period""" - - class HTTPStatsDNSResponseTimeMsSlot(BaseModel): timestamp: str @@ -122,8 +98,6 @@ class HTTPStatsServerResponseTimeMs(BaseModel): class HTTPStats(BaseModel): - availability_pct: HTTPStatsAvailabilityPct = FieldInfo(alias="availabilityPct") - dns_response_time_ms: HTTPStatsDNSResponseTimeMs = FieldInfo(alias="dnsResponseTimeMs") http_status_code: List[HTTPStatsHTTPStatusCode] = FieldInfo(alias="httpStatusCode") @@ -136,25 +110,6 @@ class HTTPStats(BaseModel): """Count of unique devices that have run this test in the given time period""" -class HTTPStatsByColoAvailabilityPctSlot(BaseModel): - timestamp: str - - value: float - - -class HTTPStatsByColoAvailabilityPct(BaseModel): - slots: List[HTTPStatsByColoAvailabilityPctSlot] - - avg: Optional[float] = None - """average observed in the time period""" - - max: Optional[float] = None - """highest observed in the time period""" - - min: Optional[float] = None - """lowest observed in the time period""" - - class HTTPStatsByColoDNSResponseTimeMsSlot(BaseModel): timestamp: str @@ -225,8 +180,6 @@ class HTTPStatsByColoServerResponseTimeMs(BaseModel): class HTTPStatsByColo(BaseModel): - availability_pct: HTTPStatsByColoAvailabilityPct = FieldInfo(alias="availabilityPct") - colo: str dns_response_time_ms: HTTPStatsByColoDNSResponseTimeMs = FieldInfo(alias="dnsResponseTimeMs") @@ -241,15 +194,6 @@ class HTTPStatsByColo(BaseModel): """Count of unique devices that have run this test in the given time period""" -class TargetPolicy(BaseModel): - id: str - - default: bool - """Whether the policy is the default for the account""" - - name: str - - class DigitalExperienceMonitoringHTTPDetails(BaseModel): host: Optional[str] = None """The url of the HTTP synthetic application test""" @@ -268,7 +212,3 @@ class DigitalExperienceMonitoringHTTPDetails(BaseModel): name: Optional[str] = None """The name of the HTTP synthetic application test""" - - target_policies: Optional[List[TargetPolicy]] = None - - targeted: Optional[bool] = None diff --git a/src/cloudflare/types/zero_trust/dex/digital_experience_monitoring_tests.py b/src/cloudflare/types/zero_trust/dex/digital_experience_monitoring_tests.py index c30e7c659def..21272b79796a 100644 --- a/src/cloudflare/types/zero_trust/dex/digital_experience_monitoring_tests.py +++ b/src/cloudflare/types/zero_trust/dex/digital_experience_monitoring_tests.py @@ -25,7 +25,6 @@ "TestHTTPResultsByColoResourceFetchTimeOverTime", "TestHTTPResultsByColoResourceFetchTimeOverTimeTimePeriod", "TestHTTPResultsByColoResourceFetchTimeOverTimeValue", - "TestTargetPolicy", "TestTracerouteResults", "TestTracerouteResultsRoundTripTime", "TestTracerouteResultsRoundTripTimeHistory", @@ -47,9 +46,6 @@ class OverviewMetrics(BaseModel): tests_total: int = FieldInfo(alias="testsTotal") """number of tests.""" - avg_http_availability_pct: Optional[float] = FieldInfo(alias="avgHttpAvailabilityPct", default=None) - """percentage availability for all HTTP test results in response""" - avg_traceroute_availability_pct: Optional[float] = FieldInfo(alias="avgTracerouteAvailabilityPct", default=None) """percentage availability for all traceroutes results in response""" @@ -159,16 +155,6 @@ class TestHTTPResultsByColo(BaseModel): resource_fetch_time: TestHTTPResultsByColoResourceFetchTime = FieldInfo(alias="resourceFetchTime") -class TestTargetPolicy(BaseModel): - __test__ = False - id: str - - default: bool - """Whether the policy is the default for the account""" - - name: str - - class TestTracerouteResultsRoundTripTimeHistoryTimePeriod(BaseModel): __test__ = False units: Literal["hours", "days", "testRuns"] @@ -311,10 +297,6 @@ class Test(BaseModel): method: Optional[str] = None """for HTTP, the method to use when running the test""" - target_policies: Optional[List[TestTargetPolicy]] = None - - targeted: Optional[bool] = None - traceroute_results: Optional[TestTracerouteResults] = FieldInfo(alias="tracerouteResults", default=None) traceroute_results_by_colo: Optional[List[TestTracerouteResultsByColo]] = FieldInfo( diff --git a/src/cloudflare/types/zero_trust/dex/digital_experience_monitoring_traceroute_details.py b/src/cloudflare/types/zero_trust/dex/digital_experience_monitoring_traceroute_details.py index f6332be171a2..3c95b785c6fd 100644 --- a/src/cloudflare/types/zero_trust/dex/digital_experience_monitoring_traceroute_details.py +++ b/src/cloudflare/types/zero_trust/dex/digital_experience_monitoring_traceroute_details.py @@ -9,7 +9,6 @@ __all__ = [ "DigitalExperienceMonitoringTracerouteDetails", - "TargetPolicy", "TracerouteStats", "TracerouteStatsAvailabilityPct", "TracerouteStatsAvailabilityPctSlot", @@ -31,15 +30,6 @@ ] -class TargetPolicy(BaseModel): - id: str - - default: bool - """Whether the policy is the default for the account""" - - name: str - - class TracerouteStatsAvailabilityPctSlot(BaseModel): timestamp: str @@ -232,10 +222,6 @@ class DigitalExperienceMonitoringTracerouteDetails(BaseModel): name: str """The name of the Traceroute synthetic application test""" - target_policies: Optional[List[TargetPolicy]] = None - - targeted: Optional[bool] = None - traceroute_stats: Optional[TracerouteStats] = FieldInfo(alias="tracerouteStats", default=None) traceroute_stats_by_colo: Optional[List[TracerouteStatsByColo]] = FieldInfo(