From 4c49e97f611f07749397306899b7a06969fbbec8 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 2 May 2024 15:41:08 +0000 Subject: [PATCH] feat(api): OpenAPI spec update via Stainless API (#431) --- .stats.yml | 2 +- src/cloudflare/types/dns/record_create_params.py | 2 +- src/cloudflare/types/dns/record_edit_params.py | 2 +- src/cloudflare/types/dns/record_update_params.py | 2 +- src/cloudflare/types/dns/uri_record.py | 2 +- tests/api_resources/dns/test_records.py | 12 ++++++------ 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.stats.yml b/.stats.yml index 503bdb15f0f..02aba39c948 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1267 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a7c20b28582aadd124a5e37be4a2f961781bf7fb19cbe48de45020601d8228de.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-48863e9e0b885e8402a025dcb412e3cc2cafc43c14de76072c5635c82a6fde9a.yml diff --git a/src/cloudflare/types/dns/record_create_params.py b/src/cloudflare/types/dns/record_create_params.py index f348ac97659..50b85946681 100644 --- a/src/cloudflare/types/dns/record_create_params.py +++ b/src/cloudflare/types/dns/record_create_params.py @@ -892,7 +892,7 @@ class URIRecord(TypedDict, total=False): class URIRecordData(TypedDict, total=False): - content: str + target: str """The record content.""" weight: float diff --git a/src/cloudflare/types/dns/record_edit_params.py b/src/cloudflare/types/dns/record_edit_params.py index 709779e9ce1..e5604e9762c 100644 --- a/src/cloudflare/types/dns/record_edit_params.py +++ b/src/cloudflare/types/dns/record_edit_params.py @@ -892,7 +892,7 @@ class URIRecord(TypedDict, total=False): class URIRecordData(TypedDict, total=False): - content: str + target: str """The record content.""" weight: float diff --git a/src/cloudflare/types/dns/record_update_params.py b/src/cloudflare/types/dns/record_update_params.py index 9cb23c89af2..881f62f1c71 100644 --- a/src/cloudflare/types/dns/record_update_params.py +++ b/src/cloudflare/types/dns/record_update_params.py @@ -892,7 +892,7 @@ class URIRecord(TypedDict, total=False): class URIRecordData(TypedDict, total=False): - content: str + target: str """The record content.""" weight: float diff --git a/src/cloudflare/types/dns/uri_record.py b/src/cloudflare/types/dns/uri_record.py index 508c3941b5f..15534dd560a 100644 --- a/src/cloudflare/types/dns/uri_record.py +++ b/src/cloudflare/types/dns/uri_record.py @@ -13,7 +13,7 @@ class Data(BaseModel): - content: Optional[str] = None + target: Optional[str] = None """The record content.""" weight: Optional[float] = None diff --git a/tests/api_resources/dns/test_records.py b/tests/api_resources/dns/test_records.py index 3f7a9f15183..afb7b9304be 100644 --- a/tests/api_resources/dns/test_records.py +++ b/tests/api_resources/dns/test_records.py @@ -1410,7 +1410,7 @@ def test_method_create_with_all_params_overload_20(self, client: Cloudflare) -> record = client.dns.records.create( zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ - "content": "http://example.com/example.html", + "target": "http://example.com/example.html", "weight": 20, }, name="example.com", @@ -3124,7 +3124,7 @@ def test_method_update_with_all_params_overload_20(self, client: Cloudflare) -> "023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ - "content": "http://example.com/example.html", + "target": "http://example.com/example.html", "weight": 20, }, name="example.com", @@ -4971,7 +4971,7 @@ def test_method_edit_with_all_params_overload_20(self, client: Cloudflare) -> No "023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ - "content": "http://example.com/example.html", + "target": "http://example.com/example.html", "weight": 20, }, name="example.com", @@ -6617,7 +6617,7 @@ async def test_method_create_with_all_params_overload_20(self, async_client: Asy record = await async_client.dns.records.create( zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ - "content": "http://example.com/example.html", + "target": "http://example.com/example.html", "weight": 20, }, name="example.com", @@ -8331,7 +8331,7 @@ async def test_method_update_with_all_params_overload_20(self, async_client: Asy "023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ - "content": "http://example.com/example.html", + "target": "http://example.com/example.html", "weight": 20, }, name="example.com", @@ -10178,7 +10178,7 @@ async def test_method_edit_with_all_params_overload_20(self, async_client: Async "023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ - "content": "http://example.com/example.html", + "target": "http://example.com/example.html", "weight": 20, }, name="example.com",