Skip to content

Commit 4c49e97

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): OpenAPI spec update via Stainless API (#431)
1 parent b40922a commit 4c49e97

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

.stats.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 1267
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a7c20b28582aadd124a5e37be4a2f961781bf7fb19cbe48de45020601d8228de.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-48863e9e0b885e8402a025dcb412e3cc2cafc43c14de76072c5635c82a6fde9a.yml

src/cloudflare/types/dns/record_create_params.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -892,7 +892,7 @@ class URIRecord(TypedDict, total=False):
892892

893893

894894
class URIRecordData(TypedDict, total=False):
895-
content: str
895+
target: str
896896
"""The record content."""
897897

898898
weight: float

src/cloudflare/types/dns/record_edit_params.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -892,7 +892,7 @@ class URIRecord(TypedDict, total=False):
892892

893893

894894
class URIRecordData(TypedDict, total=False):
895-
content: str
895+
target: str
896896
"""The record content."""
897897

898898
weight: float

src/cloudflare/types/dns/record_update_params.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -892,7 +892,7 @@ class URIRecord(TypedDict, total=False):
892892

893893

894894
class URIRecordData(TypedDict, total=False):
895-
content: str
895+
target: str
896896
"""The record content."""
897897

898898
weight: float

src/cloudflare/types/dns/uri_record.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414

1515
class Data(BaseModel):
16-
content: Optional[str] = None
16+
target: Optional[str] = None
1717
"""The record content."""
1818

1919
weight: Optional[float] = None

tests/api_resources/dns/test_records.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -1410,7 +1410,7 @@ def test_method_create_with_all_params_overload_20(self, client: Cloudflare) ->
14101410
record = client.dns.records.create(
14111411
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
14121412
data={
1413-
"content": "http://example.com/example.html",
1413+
"target": "http://example.com/example.html",
14141414
"weight": 20,
14151415
},
14161416
name="example.com",
@@ -3124,7 +3124,7 @@ def test_method_update_with_all_params_overload_20(self, client: Cloudflare) ->
31243124
"023e105f4ecef8ad9ca31a8372d0c353",
31253125
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
31263126
data={
3127-
"content": "http://example.com/example.html",
3127+
"target": "http://example.com/example.html",
31283128
"weight": 20,
31293129
},
31303130
name="example.com",
@@ -4971,7 +4971,7 @@ def test_method_edit_with_all_params_overload_20(self, client: Cloudflare) -> No
49714971
"023e105f4ecef8ad9ca31a8372d0c353",
49724972
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
49734973
data={
4974-
"content": "http://example.com/example.html",
4974+
"target": "http://example.com/example.html",
49754975
"weight": 20,
49764976
},
49774977
name="example.com",
@@ -6617,7 +6617,7 @@ async def test_method_create_with_all_params_overload_20(self, async_client: Asy
66176617
record = await async_client.dns.records.create(
66186618
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
66196619
data={
6620-
"content": "http://example.com/example.html",
6620+
"target": "http://example.com/example.html",
66216621
"weight": 20,
66226622
},
66236623
name="example.com",
@@ -8331,7 +8331,7 @@ async def test_method_update_with_all_params_overload_20(self, async_client: Asy
83318331
"023e105f4ecef8ad9ca31a8372d0c353",
83328332
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
83338333
data={
8334-
"content": "http://example.com/example.html",
8334+
"target": "http://example.com/example.html",
83358335
"weight": 20,
83368336
},
83378337
name="example.com",
@@ -10178,7 +10178,7 @@ async def test_method_edit_with_all_params_overload_20(self, async_client: Async
1017810178
"023e105f4ecef8ad9ca31a8372d0c353",
1017910179
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
1018010180
data={
10181-
"content": "http://example.com/example.html",
10181+
"target": "http://example.com/example.html",
1018210182
"weight": 20,
1018310183
},
1018410184
name="example.com",

0 commit comments

Comments
 (0)