Skip to content

Commit 5b6114b

Browse files
chore(api): update composite API spec
1 parent 8f69d18 commit 5b6114b

11 files changed

Lines changed: 98 additions & 71 deletions

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 2095
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-b784065de21ac045cccf93b0fb55acb9ba68e43e03e35a79caef773cbd2d21b3.yml
3-
openapi_spec_hash: ff8c77483420b4ae5ecabb897a7e9cec
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-8725f1cac7e5f2c6c87267f6585e437befb229b208b7ccce706a65647125dab7.yml
3+
openapi_spec_hash: 9fe48c1170b206d37948f22c9a8c6dcb
44
config_hash: 3197a7cbacf324269e77cfb812a38f53

src/cloudflare/resources/dns/records.py

Lines changed: 36 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -309,8 +309,9 @@ def create(
309309
310310
content: A valid mail server hostname.
311311
312-
priority: Required for MX, SRV and URI records; unused by other record types. Records with
313-
lower priorities are preferred.
312+
priority: Required for MX and URI records; ignored for other record types (but may still
313+
be returned by the API). Records with lower priorities are preferred. This field
314+
is to be deprecated in favor of the priority field within the data map.
314315
315316
proxied: Whether the record is receiving the performance and security benefits of
316317
Cloudflare.
@@ -1389,8 +1390,9 @@ def create(
13891390
13901391
data: Components of a URI record.
13911392
1392-
priority: Required for MX, SRV and URI records; unused by other record types. Records with
1393-
lower priorities are preferred.
1393+
priority: Required for MX and URI records; ignored for other record types (but may still
1394+
be returned by the API). Records with lower priorities are preferred. This field
1395+
is to be deprecated in favor of the priority field within the data map.
13941396
13951397
proxied: Whether the record is receiving the performance and security benefits of
13961398
Cloudflare.
@@ -1775,8 +1777,9 @@ def update(
17751777
17761778
content: A valid mail server hostname.
17771779
1778-
priority: Required for MX, SRV and URI records; unused by other record types. Records with
1779-
lower priorities are preferred.
1780+
priority: Required for MX and URI records; ignored for other record types (but may still
1781+
be returned by the API). Records with lower priorities are preferred. This field
1782+
is to be deprecated in favor of the priority field within the data map.
17801783
17811784
proxied: Whether the record is receiving the performance and security benefits of
17821785
Cloudflare.
@@ -2906,8 +2909,9 @@ def update(
29062909
29072910
data: Components of a URI record.
29082911
2909-
priority: Required for MX, SRV and URI records; unused by other record types. Records with
2910-
lower priorities are preferred.
2912+
priority: Required for MX and URI records; ignored for other record types (but may still
2913+
be returned by the API). Records with lower priorities are preferred. This field
2914+
is to be deprecated in favor of the priority field within the data map.
29112915
29122916
proxied: Whether the record is receiving the performance and security benefits of
29132917
Cloudflare.
@@ -3529,8 +3533,9 @@ def edit(
35293533
35303534
content: A valid mail server hostname.
35313535
3532-
priority: Required for MX, SRV and URI records; unused by other record types. Records with
3533-
lower priorities are preferred.
3536+
priority: Required for MX and URI records; ignored for other record types (but may still
3537+
be returned by the API). Records with lower priorities are preferred. This field
3538+
is to be deprecated in favor of the priority field within the data map.
35343539
35353540
proxied: Whether the record is receiving the performance and security benefits of
35363541
Cloudflare.
@@ -4660,8 +4665,9 @@ def edit(
46604665
46614666
data: Components of a URI record.
46624667
4663-
priority: Required for MX, SRV and URI records; unused by other record types. Records with
4664-
lower priorities are preferred.
4668+
priority: Required for MX and URI records; ignored for other record types (but may still
4669+
be returned by the API). Records with lower priorities are preferred. This field
4670+
is to be deprecated in favor of the priority field within the data map.
46654671
46664672
proxied: Whether the record is receiving the performance and security benefits of
46674673
Cloudflare.
@@ -5392,8 +5398,9 @@ async def create(
53925398
53935399
content: A valid mail server hostname.
53945400
5395-
priority: Required for MX, SRV and URI records; unused by other record types. Records with
5396-
lower priorities are preferred.
5401+
priority: Required for MX and URI records; ignored for other record types (but may still
5402+
be returned by the API). Records with lower priorities are preferred. This field
5403+
is to be deprecated in favor of the priority field within the data map.
53975404
53985405
proxied: Whether the record is receiving the performance and security benefits of
53995406
Cloudflare.
@@ -6472,8 +6479,9 @@ async def create(
64726479
64736480
data: Components of a URI record.
64746481
6475-
priority: Required for MX, SRV and URI records; unused by other record types. Records with
6476-
lower priorities are preferred.
6482+
priority: Required for MX and URI records; ignored for other record types (but may still
6483+
be returned by the API). Records with lower priorities are preferred. This field
6484+
is to be deprecated in favor of the priority field within the data map.
64776485
64786486
proxied: Whether the record is receiving the performance and security benefits of
64796487
Cloudflare.
@@ -6858,8 +6866,9 @@ async def update(
68586866
68596867
content: A valid mail server hostname.
68606868
6861-
priority: Required for MX, SRV and URI records; unused by other record types. Records with
6862-
lower priorities are preferred.
6869+
priority: Required for MX and URI records; ignored for other record types (but may still
6870+
be returned by the API). Records with lower priorities are preferred. This field
6871+
is to be deprecated in favor of the priority field within the data map.
68636872
68646873
proxied: Whether the record is receiving the performance and security benefits of
68656874
Cloudflare.
@@ -7989,8 +7998,9 @@ async def update(
79897998
79907999
data: Components of a URI record.
79918000
7992-
priority: Required for MX, SRV and URI records; unused by other record types. Records with
7993-
lower priorities are preferred.
8001+
priority: Required for MX and URI records; ignored for other record types (but may still
8002+
be returned by the API). Records with lower priorities are preferred. This field
8003+
is to be deprecated in favor of the priority field within the data map.
79948004
79958005
proxied: Whether the record is receiving the performance and security benefits of
79968006
Cloudflare.
@@ -8612,8 +8622,9 @@ async def edit(
86128622
86138623
content: A valid mail server hostname.
86148624
8615-
priority: Required for MX, SRV and URI records; unused by other record types. Records with
8616-
lower priorities are preferred.
8625+
priority: Required for MX and URI records; ignored for other record types (but may still
8626+
be returned by the API). Records with lower priorities are preferred. This field
8627+
is to be deprecated in favor of the priority field within the data map.
86178628
86188629
proxied: Whether the record is receiving the performance and security benefits of
86198630
Cloudflare.
@@ -9743,8 +9754,9 @@ async def edit(
97439754
97449755
data: Components of a URI record.
97459756
9746-
priority: Required for MX, SRV and URI records; unused by other record types. Records with
9747-
lower priorities are preferred.
9757+
priority: Required for MX and URI records; ignored for other record types (but may still
9758+
be returned by the API). Records with lower priorities are preferred. This field
9759+
is to be deprecated in favor of the priority field within the data map.
97489760
97499761
proxied: Whether the record is receiving the performance and security benefits of
97509762
Cloudflare.

src/cloudflare/types/dns/mx_record.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,10 @@ class MXRecord(BaseModel):
5454
"""A valid mail server hostname."""
5555

5656
priority: Optional[float] = None
57-
"""Required for MX, SRV and URI records; unused by other record types.
58-
59-
Records with lower priorities are preferred.
57+
"""
58+
Required for MX and URI records; ignored for other record types (but may still
59+
be returned by the API). Records with lower priorities are preferred. This field
60+
is to be deprecated in favor of the priority field within the data map.
6061
"""
6162

6263
proxied: Optional[bool] = None

src/cloudflare/types/dns/mx_record_param.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,10 @@ class MXRecordParam(TypedDict, total=False):
5555
"""A valid mail server hostname."""
5656

5757
priority: float
58-
"""Required for MX, SRV and URI records; unused by other record types.
59-
60-
Records with lower priorities are preferred.
58+
"""
59+
Required for MX and URI records; ignored for other record types (but may still
60+
be returned by the API). Records with lower priorities are preferred. This field
61+
is to be deprecated in favor of the priority field within the data map.
6162
"""
6263

6364
proxied: bool

src/cloudflare/types/dns/record_create_params.py

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -287,9 +287,10 @@ class MXRecord(TypedDict, total=False):
287287
"""A valid mail server hostname."""
288288

289289
priority: float
290-
"""Required for MX, SRV and URI records; unused by other record types.
291-
292-
Records with lower priorities are preferred.
290+
"""
291+
Required for MX and URI records; ignored for other record types (but may still
292+
be returned by the API). Records with lower priorities are preferred. This field
293+
is to be deprecated in favor of the priority field within the data map.
293294
"""
294295

295296
proxied: bool
@@ -1239,9 +1240,10 @@ class SRVRecordData(TypedDict, total=False):
12391240
"""The port of the service."""
12401241

12411242
priority: float
1242-
"""Required for MX, SRV and URI records; unused by other record types.
1243-
1244-
Records with lower priorities are preferred.
1243+
"""
1244+
Required for MX and URI records; ignored for other record types (but may still
1245+
be returned by the API). Records with lower priorities are preferred. This field
1246+
is to be deprecated in favor of the priority field within the data map.
12451247
"""
12461248

12471249
target: str
@@ -1517,9 +1519,10 @@ class URIRecord(TypedDict, total=False):
15171519
"""Components of a URI record."""
15181520

15191521
priority: float
1520-
"""Required for MX, SRV and URI records; unused by other record types.
1521-
1522-
Records with lower priorities are preferred.
1522+
"""
1523+
Required for MX and URI records; ignored for other record types (but may still
1524+
be returned by the API). Records with lower priorities are preferred. This field
1525+
is to be deprecated in favor of the priority field within the data map.
15231526
"""
15241527

15251528
proxied: bool

src/cloudflare/types/dns/record_edit_params.py

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -287,9 +287,10 @@ class MXRecord(TypedDict, total=False):
287287
"""A valid mail server hostname."""
288288

289289
priority: float
290-
"""Required for MX, SRV and URI records; unused by other record types.
291-
292-
Records with lower priorities are preferred.
290+
"""
291+
Required for MX and URI records; ignored for other record types (but may still
292+
be returned by the API). Records with lower priorities are preferred. This field
293+
is to be deprecated in favor of the priority field within the data map.
293294
"""
294295

295296
proxied: bool
@@ -1239,9 +1240,10 @@ class SRVRecordData(TypedDict, total=False):
12391240
"""The port of the service."""
12401241

12411242
priority: float
1242-
"""Required for MX, SRV and URI records; unused by other record types.
1243-
1244-
Records with lower priorities are preferred.
1243+
"""
1244+
Required for MX and URI records; ignored for other record types (but may still
1245+
be returned by the API). Records with lower priorities are preferred. This field
1246+
is to be deprecated in favor of the priority field within the data map.
12451247
"""
12461248

12471249
target: str
@@ -1517,9 +1519,10 @@ class URIRecord(TypedDict, total=False):
15171519
"""Components of a URI record."""
15181520

15191521
priority: float
1520-
"""Required for MX, SRV and URI records; unused by other record types.
1521-
1522-
Records with lower priorities are preferred.
1522+
"""
1523+
Required for MX and URI records; ignored for other record types (but may still
1524+
be returned by the API). Records with lower priorities are preferred. This field
1525+
is to be deprecated in favor of the priority field within the data map.
15231526
"""
15241527

15251528
proxied: bool

src/cloudflare/types/dns/record_update_params.py

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -287,9 +287,10 @@ class MXRecord(TypedDict, total=False):
287287
"""A valid mail server hostname."""
288288

289289
priority: float
290-
"""Required for MX, SRV and URI records; unused by other record types.
291-
292-
Records with lower priorities are preferred.
290+
"""
291+
Required for MX and URI records; ignored for other record types (but may still
292+
be returned by the API). Records with lower priorities are preferred. This field
293+
is to be deprecated in favor of the priority field within the data map.
293294
"""
294295

295296
proxied: bool
@@ -1239,9 +1240,10 @@ class SRVRecordData(TypedDict, total=False):
12391240
"""The port of the service."""
12401241

12411242
priority: float
1242-
"""Required for MX, SRV and URI records; unused by other record types.
1243-
1244-
Records with lower priorities are preferred.
1243+
"""
1244+
Required for MX and URI records; ignored for other record types (but may still
1245+
be returned by the API). Records with lower priorities are preferred. This field
1246+
is to be deprecated in favor of the priority field within the data map.
12451247
"""
12461248

12471249
target: str
@@ -1517,9 +1519,10 @@ class URIRecord(TypedDict, total=False):
15171519
"""Components of a URI record."""
15181520

15191521
priority: float
1520-
"""Required for MX, SRV and URI records; unused by other record types.
1521-
1522-
Records with lower priorities are preferred.
1522+
"""
1523+
Required for MX and URI records; ignored for other record types (but may still
1524+
be returned by the API). Records with lower priorities are preferred. This field
1525+
is to be deprecated in favor of the priority field within the data map.
15231526
"""
15241527

15251528
proxied: bool

src/cloudflare/types/dns/srv_record.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@ class Data(BaseModel):
1717
"""The port of the service."""
1818

1919
priority: Optional[float] = None
20-
"""Required for MX, SRV and URI records; unused by other record types.
21-
22-
Records with lower priorities are preferred.
20+
"""
21+
Required for MX and URI records; ignored for other record types (but may still
22+
be returned by the API). Records with lower priorities are preferred. This field
23+
is to be deprecated in favor of the priority field within the data map.
2324
"""
2425

2526
target: Optional[str] = None

src/cloudflare/types/dns/srv_record_param.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,10 @@ class Data(TypedDict, total=False):
1818
"""The port of the service."""
1919

2020
priority: float
21-
"""Required for MX, SRV and URI records; unused by other record types.
22-
23-
Records with lower priorities are preferred.
21+
"""
22+
Required for MX and URI records; ignored for other record types (but may still
23+
be returned by the API). Records with lower priorities are preferred. This field
24+
is to be deprecated in favor of the priority field within the data map.
2425
"""
2526

2627
target: str

src/cloudflare/types/dns/uri_record.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,10 @@ class URIRecord(BaseModel):
6767
"""Components of a URI record."""
6868

6969
priority: Optional[float] = None
70-
"""Required for MX, SRV and URI records; unused by other record types.
71-
72-
Records with lower priorities are preferred.
70+
"""
71+
Required for MX and URI records; ignored for other record types (but may still
72+
be returned by the API). Records with lower priorities are preferred. This field
73+
is to be deprecated in favor of the priority field within the data map.
7374
"""
7475

7576
proxied: Optional[bool] = None

0 commit comments

Comments
 (0)