Skip to content

Commit

Permalink
feat(api): OpenAPI spec update via Stainless API (#431)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed May 7, 2024
1 parent b40922a commit 4c49e97
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion src/cloudflare/types/dns/record_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -892,7 +892,7 @@ class URIRecord(TypedDict, total=False):


class URIRecordData(TypedDict, total=False):
content: str
target: str
"""The record content."""

weight: float
Expand Down
2 changes: 1 addition & 1 deletion src/cloudflare/types/dns/record_edit_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -892,7 +892,7 @@ class URIRecord(TypedDict, total=False):


class URIRecordData(TypedDict, total=False):
content: str
target: str
"""The record content."""

weight: float
Expand Down
2 changes: 1 addition & 1 deletion src/cloudflare/types/dns/record_update_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -892,7 +892,7 @@ class URIRecord(TypedDict, total=False):


class URIRecordData(TypedDict, total=False):
content: str
target: str
"""The record content."""

weight: float
Expand Down
2 changes: 1 addition & 1 deletion src/cloudflare/types/dns/uri_record.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@


class Data(BaseModel):
content: Optional[str] = None
target: Optional[str] = None
"""The record content."""

weight: Optional[float] = None
Expand Down
12 changes: 6 additions & 6 deletions tests/api_resources/dns/test_records.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 4c49e97

Please sign in to comment.