@@ -58,9 +58,7 @@ def create(
5858 self ,
5959 * ,
6060 zone_id : str ,
61- data : record_create_params .Data ,
6261 name : str ,
63- priority : float ,
6462 type : Literal [
6563 "URI" ,
6664 "TXT" ,
@@ -84,7 +82,10 @@ def create(
8482 "A" ,
8583 ],
8684 comment : str | NotGiven = NOT_GIVEN ,
85+ content : object | NotGiven = NOT_GIVEN ,
86+ data : record_create_params .Data | NotGiven = NOT_GIVEN ,
8787 meta : record_create_params .Meta | NotGiven = NOT_GIVEN ,
88+ priority : float | NotGiven = NOT_GIVEN ,
8889 proxied : bool | NotGiven = NOT_GIVEN ,
8990 tags : List [str ] | NotGiven = NOT_GIVEN ,
9091 ttl : Union [float , Literal [1 ]] | NotGiven = NOT_GIVEN ,
@@ -110,14 +111,16 @@ def create(
110111
111112 name: DNS record name (or @ for the zone apex) in Punycode.
112113
113- priority: Required for MX, SRV and URI records; unused by other record types. Records with
114- lower priorities are preferred.
115-
116114 type: Record type.
117115
118116 comment: Comments or notes about the DNS record. This field has no effect on DNS
119117 responses.
120118
119+ content: Formatted URI content. See 'data' to set URI properties.
120+
121+ priority: Required for MX, SRV and URI records; unused by other record types. Records with
122+ lower priorities are preferred.
123+
121124 proxied: Whether the record is receiving the performance and security benefits of
122125 Cloudflare.
123126
@@ -143,12 +146,13 @@ def create(
143146 f"/zones/{ zone_id } /dns_records" ,
144147 body = maybe_transform (
145148 {
146- "data" : data ,
147149 "name" : name ,
148- "priority" : priority ,
149150 "type" : type ,
150151 "comment" : comment ,
152+ "content" : content ,
153+ "data" : data ,
151154 "meta" : meta ,
155+ "priority" : priority ,
152156 "proxied" : proxied ,
153157 "tags" : tags ,
154158 "ttl" : ttl ,
@@ -173,9 +177,7 @@ def update(
173177 dns_record_id : str ,
174178 * ,
175179 zone_id : str ,
176- data : record_update_params .Data ,
177180 name : str ,
178- priority : float ,
179181 type : Literal [
180182 "URI" ,
181183 "TXT" ,
@@ -199,7 +201,10 @@ def update(
199201 "A" ,
200202 ],
201203 comment : str | NotGiven = NOT_GIVEN ,
204+ content : object | NotGiven = NOT_GIVEN ,
205+ data : record_update_params .Data | NotGiven = NOT_GIVEN ,
202206 meta : record_update_params .Meta | NotGiven = NOT_GIVEN ,
207+ priority : float | NotGiven = NOT_GIVEN ,
203208 proxied : bool | NotGiven = NOT_GIVEN ,
204209 tags : List [str ] | NotGiven = NOT_GIVEN ,
205210 ttl : Union [float , Literal [1 ]] | NotGiven = NOT_GIVEN ,
@@ -226,14 +231,16 @@ def update(
226231
227232 name: DNS record name (or @ for the zone apex) in Punycode.
228233
229- priority: Required for MX, SRV and URI records; unused by other record types. Records with
230- lower priorities are preferred.
231-
232234 type: Record type.
233235
234236 comment: Comments or notes about the DNS record. This field has no effect on DNS
235237 responses.
236238
239+ content: Formatted URI content. See 'data' to set URI properties.
240+
241+ priority: Required for MX, SRV and URI records; unused by other record types. Records with
242+ lower priorities are preferred.
243+
237244 proxied: Whether the record is receiving the performance and security benefits of
238245 Cloudflare.
239246
@@ -261,12 +268,13 @@ def update(
261268 f"/zones/{ zone_id } /dns_records/{ dns_record_id } " ,
262269 body = maybe_transform (
263270 {
264- "data" : data ,
265271 "name" : name ,
266- "priority" : priority ,
267272 "type" : type ,
268273 "comment" : comment ,
274+ "content" : content ,
275+ "data" : data ,
269276 "meta" : meta ,
277+ "priority" : priority ,
270278 "proxied" : proxied ,
271279 "tags" : tags ,
272280 "ttl" : ttl ,
@@ -460,9 +468,7 @@ def edit(
460468 dns_record_id : str ,
461469 * ,
462470 zone_id : str ,
463- data : record_edit_params .Data ,
464471 name : str ,
465- priority : float ,
466472 type : Literal [
467473 "URI" ,
468474 "TXT" ,
@@ -486,7 +492,10 @@ def edit(
486492 "A" ,
487493 ],
488494 comment : str | NotGiven = NOT_GIVEN ,
495+ content : object | NotGiven = NOT_GIVEN ,
496+ data : record_edit_params .Data | NotGiven = NOT_GIVEN ,
489497 meta : record_edit_params .Meta | NotGiven = NOT_GIVEN ,
498+ priority : float | NotGiven = NOT_GIVEN ,
490499 proxied : bool | NotGiven = NOT_GIVEN ,
491500 tags : List [str ] | NotGiven = NOT_GIVEN ,
492501 ttl : Union [float , Literal [1 ]] | NotGiven = NOT_GIVEN ,
@@ -513,14 +522,16 @@ def edit(
513522
514523 name: DNS record name (or @ for the zone apex) in Punycode.
515524
516- priority: Required for MX, SRV and URI records; unused by other record types. Records with
517- lower priorities are preferred.
518-
519525 type: Record type.
520526
521527 comment: Comments or notes about the DNS record. This field has no effect on DNS
522528 responses.
523529
530+ content: Formatted URI content. See 'data' to set URI properties.
531+
532+ priority: Required for MX, SRV and URI records; unused by other record types. Records with
533+ lower priorities are preferred.
534+
524535 proxied: Whether the record is receiving the performance and security benefits of
525536 Cloudflare.
526537
@@ -548,12 +559,13 @@ def edit(
548559 f"/zones/{ zone_id } /dns_records/{ dns_record_id } " ,
549560 body = maybe_transform (
550561 {
551- "data" : data ,
552562 "name" : name ,
553- "priority" : priority ,
554563 "type" : type ,
555564 "comment" : comment ,
565+ "content" : content ,
566+ "data" : data ,
556567 "meta" : meta ,
568+ "priority" : priority ,
557569 "proxied" : proxied ,
558570 "tags" : tags ,
559571 "ttl" : ttl ,
@@ -783,9 +795,7 @@ async def create(
783795 self ,
784796 * ,
785797 zone_id : str ,
786- data : record_create_params .Data ,
787798 name : str ,
788- priority : float ,
789799 type : Literal [
790800 "URI" ,
791801 "TXT" ,
@@ -809,7 +819,10 @@ async def create(
809819 "A" ,
810820 ],
811821 comment : str | NotGiven = NOT_GIVEN ,
822+ content : object | NotGiven = NOT_GIVEN ,
823+ data : record_create_params .Data | NotGiven = NOT_GIVEN ,
812824 meta : record_create_params .Meta | NotGiven = NOT_GIVEN ,
825+ priority : float | NotGiven = NOT_GIVEN ,
813826 proxied : bool | NotGiven = NOT_GIVEN ,
814827 tags : List [str ] | NotGiven = NOT_GIVEN ,
815828 ttl : Union [float , Literal [1 ]] | NotGiven = NOT_GIVEN ,
@@ -835,14 +848,16 @@ async def create(
835848
836849 name: DNS record name (or @ for the zone apex) in Punycode.
837850
838- priority: Required for MX, SRV and URI records; unused by other record types. Records with
839- lower priorities are preferred.
840-
841851 type: Record type.
842852
843853 comment: Comments or notes about the DNS record. This field has no effect on DNS
844854 responses.
845855
856+ content: Formatted URI content. See 'data' to set URI properties.
857+
858+ priority: Required for MX, SRV and URI records; unused by other record types. Records with
859+ lower priorities are preferred.
860+
846861 proxied: Whether the record is receiving the performance and security benefits of
847862 Cloudflare.
848863
@@ -868,12 +883,13 @@ async def create(
868883 f"/zones/{ zone_id } /dns_records" ,
869884 body = await async_maybe_transform (
870885 {
871- "data" : data ,
872886 "name" : name ,
873- "priority" : priority ,
874887 "type" : type ,
875888 "comment" : comment ,
889+ "content" : content ,
890+ "data" : data ,
876891 "meta" : meta ,
892+ "priority" : priority ,
877893 "proxied" : proxied ,
878894 "tags" : tags ,
879895 "ttl" : ttl ,
@@ -898,9 +914,7 @@ async def update(
898914 dns_record_id : str ,
899915 * ,
900916 zone_id : str ,
901- data : record_update_params .Data ,
902917 name : str ,
903- priority : float ,
904918 type : Literal [
905919 "URI" ,
906920 "TXT" ,
@@ -924,7 +938,10 @@ async def update(
924938 "A" ,
925939 ],
926940 comment : str | NotGiven = NOT_GIVEN ,
941+ content : object | NotGiven = NOT_GIVEN ,
942+ data : record_update_params .Data | NotGiven = NOT_GIVEN ,
927943 meta : record_update_params .Meta | NotGiven = NOT_GIVEN ,
944+ priority : float | NotGiven = NOT_GIVEN ,
928945 proxied : bool | NotGiven = NOT_GIVEN ,
929946 tags : List [str ] | NotGiven = NOT_GIVEN ,
930947 ttl : Union [float , Literal [1 ]] | NotGiven = NOT_GIVEN ,
@@ -951,14 +968,16 @@ async def update(
951968
952969 name: DNS record name (or @ for the zone apex) in Punycode.
953970
954- priority: Required for MX, SRV and URI records; unused by other record types. Records with
955- lower priorities are preferred.
956-
957971 type: Record type.
958972
959973 comment: Comments or notes about the DNS record. This field has no effect on DNS
960974 responses.
961975
976+ content: Formatted URI content. See 'data' to set URI properties.
977+
978+ priority: Required for MX, SRV and URI records; unused by other record types. Records with
979+ lower priorities are preferred.
980+
962981 proxied: Whether the record is receiving the performance and security benefits of
963982 Cloudflare.
964983
@@ -986,12 +1005,13 @@ async def update(
9861005 f"/zones/{ zone_id } /dns_records/{ dns_record_id } " ,
9871006 body = await async_maybe_transform (
9881007 {
989- "data" : data ,
9901008 "name" : name ,
991- "priority" : priority ,
9921009 "type" : type ,
9931010 "comment" : comment ,
1011+ "content" : content ,
1012+ "data" : data ,
9941013 "meta" : meta ,
1014+ "priority" : priority ,
9951015 "proxied" : proxied ,
9961016 "tags" : tags ,
9971017 "ttl" : ttl ,
@@ -1185,9 +1205,7 @@ async def edit(
11851205 dns_record_id : str ,
11861206 * ,
11871207 zone_id : str ,
1188- data : record_edit_params .Data ,
11891208 name : str ,
1190- priority : float ,
11911209 type : Literal [
11921210 "URI" ,
11931211 "TXT" ,
@@ -1211,7 +1229,10 @@ async def edit(
12111229 "A" ,
12121230 ],
12131231 comment : str | NotGiven = NOT_GIVEN ,
1232+ content : object | NotGiven = NOT_GIVEN ,
1233+ data : record_edit_params .Data | NotGiven = NOT_GIVEN ,
12141234 meta : record_edit_params .Meta | NotGiven = NOT_GIVEN ,
1235+ priority : float | NotGiven = NOT_GIVEN ,
12151236 proxied : bool | NotGiven = NOT_GIVEN ,
12161237 tags : List [str ] | NotGiven = NOT_GIVEN ,
12171238 ttl : Union [float , Literal [1 ]] | NotGiven = NOT_GIVEN ,
@@ -1238,14 +1259,16 @@ async def edit(
12381259
12391260 name: DNS record name (or @ for the zone apex) in Punycode.
12401261
1241- priority: Required for MX, SRV and URI records; unused by other record types. Records with
1242- lower priorities are preferred.
1243-
12441262 type: Record type.
12451263
12461264 comment: Comments or notes about the DNS record. This field has no effect on DNS
12471265 responses.
12481266
1267+ content: Formatted URI content. See 'data' to set URI properties.
1268+
1269+ priority: Required for MX, SRV and URI records; unused by other record types. Records with
1270+ lower priorities are preferred.
1271+
12491272 proxied: Whether the record is receiving the performance and security benefits of
12501273 Cloudflare.
12511274
@@ -1273,12 +1296,13 @@ async def edit(
12731296 f"/zones/{ zone_id } /dns_records/{ dns_record_id } " ,
12741297 body = await async_maybe_transform (
12751298 {
1276- "data" : data ,
12771299 "name" : name ,
1278- "priority" : priority ,
12791300 "type" : type ,
12801301 "comment" : comment ,
1302+ "content" : content ,
1303+ "data" : data ,
12811304 "meta" : meta ,
1305+ "priority" : priority ,
12821306 "proxied" : proxied ,
12831307 "tags" : tags ,
12841308 "ttl" : ttl ,
0 commit comments