@@ -58,9 +58,7 @@ def create(
58
58
self ,
59
59
* ,
60
60
zone_id : str ,
61
- data : record_create_params .Data ,
62
61
name : str ,
63
- priority : float ,
64
62
type : Literal [
65
63
"URI" ,
66
64
"TXT" ,
@@ -84,7 +82,10 @@ def create(
84
82
"A" ,
85
83
],
86
84
comment : str | NotGiven = NOT_GIVEN ,
85
+ content : object | NotGiven = NOT_GIVEN ,
86
+ data : record_create_params .Data | NotGiven = NOT_GIVEN ,
87
87
meta : record_create_params .Meta | NotGiven = NOT_GIVEN ,
88
+ priority : float | NotGiven = NOT_GIVEN ,
88
89
proxied : bool | NotGiven = NOT_GIVEN ,
89
90
tags : List [str ] | NotGiven = NOT_GIVEN ,
90
91
ttl : Union [float , Literal [1 ]] | NotGiven = NOT_GIVEN ,
@@ -110,14 +111,16 @@ def create(
110
111
111
112
name: DNS record name (or @ for the zone apex) in Punycode.
112
113
113
- priority: Required for MX, SRV and URI records; unused by other record types. Records with
114
- lower priorities are preferred.
115
-
116
114
type: Record type.
117
115
118
116
comment: Comments or notes about the DNS record. This field has no effect on DNS
119
117
responses.
120
118
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
+
121
124
proxied: Whether the record is receiving the performance and security benefits of
122
125
Cloudflare.
123
126
@@ -143,12 +146,13 @@ def create(
143
146
f"/zones/{ zone_id } /dns_records" ,
144
147
body = maybe_transform (
145
148
{
146
- "data" : data ,
147
149
"name" : name ,
148
- "priority" : priority ,
149
150
"type" : type ,
150
151
"comment" : comment ,
152
+ "content" : content ,
153
+ "data" : data ,
151
154
"meta" : meta ,
155
+ "priority" : priority ,
152
156
"proxied" : proxied ,
153
157
"tags" : tags ,
154
158
"ttl" : ttl ,
@@ -173,9 +177,7 @@ def update(
173
177
dns_record_id : str ,
174
178
* ,
175
179
zone_id : str ,
176
- data : record_update_params .Data ,
177
180
name : str ,
178
- priority : float ,
179
181
type : Literal [
180
182
"URI" ,
181
183
"TXT" ,
@@ -199,7 +201,10 @@ def update(
199
201
"A" ,
200
202
],
201
203
comment : str | NotGiven = NOT_GIVEN ,
204
+ content : object | NotGiven = NOT_GIVEN ,
205
+ data : record_update_params .Data | NotGiven = NOT_GIVEN ,
202
206
meta : record_update_params .Meta | NotGiven = NOT_GIVEN ,
207
+ priority : float | NotGiven = NOT_GIVEN ,
203
208
proxied : bool | NotGiven = NOT_GIVEN ,
204
209
tags : List [str ] | NotGiven = NOT_GIVEN ,
205
210
ttl : Union [float , Literal [1 ]] | NotGiven = NOT_GIVEN ,
@@ -226,14 +231,16 @@ def update(
226
231
227
232
name: DNS record name (or @ for the zone apex) in Punycode.
228
233
229
- priority: Required for MX, SRV and URI records; unused by other record types. Records with
230
- lower priorities are preferred.
231
-
232
234
type: Record type.
233
235
234
236
comment: Comments or notes about the DNS record. This field has no effect on DNS
235
237
responses.
236
238
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
+
237
244
proxied: Whether the record is receiving the performance and security benefits of
238
245
Cloudflare.
239
246
@@ -261,12 +268,13 @@ def update(
261
268
f"/zones/{ zone_id } /dns_records/{ dns_record_id } " ,
262
269
body = maybe_transform (
263
270
{
264
- "data" : data ,
265
271
"name" : name ,
266
- "priority" : priority ,
267
272
"type" : type ,
268
273
"comment" : comment ,
274
+ "content" : content ,
275
+ "data" : data ,
269
276
"meta" : meta ,
277
+ "priority" : priority ,
270
278
"proxied" : proxied ,
271
279
"tags" : tags ,
272
280
"ttl" : ttl ,
@@ -460,9 +468,7 @@ def edit(
460
468
dns_record_id : str ,
461
469
* ,
462
470
zone_id : str ,
463
- data : record_edit_params .Data ,
464
471
name : str ,
465
- priority : float ,
466
472
type : Literal [
467
473
"URI" ,
468
474
"TXT" ,
@@ -486,7 +492,10 @@ def edit(
486
492
"A" ,
487
493
],
488
494
comment : str | NotGiven = NOT_GIVEN ,
495
+ content : object | NotGiven = NOT_GIVEN ,
496
+ data : record_edit_params .Data | NotGiven = NOT_GIVEN ,
489
497
meta : record_edit_params .Meta | NotGiven = NOT_GIVEN ,
498
+ priority : float | NotGiven = NOT_GIVEN ,
490
499
proxied : bool | NotGiven = NOT_GIVEN ,
491
500
tags : List [str ] | NotGiven = NOT_GIVEN ,
492
501
ttl : Union [float , Literal [1 ]] | NotGiven = NOT_GIVEN ,
@@ -513,14 +522,16 @@ def edit(
513
522
514
523
name: DNS record name (or @ for the zone apex) in Punycode.
515
524
516
- priority: Required for MX, SRV and URI records; unused by other record types. Records with
517
- lower priorities are preferred.
518
-
519
525
type: Record type.
520
526
521
527
comment: Comments or notes about the DNS record. This field has no effect on DNS
522
528
responses.
523
529
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
+
524
535
proxied: Whether the record is receiving the performance and security benefits of
525
536
Cloudflare.
526
537
@@ -548,12 +559,13 @@ def edit(
548
559
f"/zones/{ zone_id } /dns_records/{ dns_record_id } " ,
549
560
body = maybe_transform (
550
561
{
551
- "data" : data ,
552
562
"name" : name ,
553
- "priority" : priority ,
554
563
"type" : type ,
555
564
"comment" : comment ,
565
+ "content" : content ,
566
+ "data" : data ,
556
567
"meta" : meta ,
568
+ "priority" : priority ,
557
569
"proxied" : proxied ,
558
570
"tags" : tags ,
559
571
"ttl" : ttl ,
@@ -783,9 +795,7 @@ async def create(
783
795
self ,
784
796
* ,
785
797
zone_id : str ,
786
- data : record_create_params .Data ,
787
798
name : str ,
788
- priority : float ,
789
799
type : Literal [
790
800
"URI" ,
791
801
"TXT" ,
@@ -809,7 +819,10 @@ async def create(
809
819
"A" ,
810
820
],
811
821
comment : str | NotGiven = NOT_GIVEN ,
822
+ content : object | NotGiven = NOT_GIVEN ,
823
+ data : record_create_params .Data | NotGiven = NOT_GIVEN ,
812
824
meta : record_create_params .Meta | NotGiven = NOT_GIVEN ,
825
+ priority : float | NotGiven = NOT_GIVEN ,
813
826
proxied : bool | NotGiven = NOT_GIVEN ,
814
827
tags : List [str ] | NotGiven = NOT_GIVEN ,
815
828
ttl : Union [float , Literal [1 ]] | NotGiven = NOT_GIVEN ,
@@ -835,14 +848,16 @@ async def create(
835
848
836
849
name: DNS record name (or @ for the zone apex) in Punycode.
837
850
838
- priority: Required for MX, SRV and URI records; unused by other record types. Records with
839
- lower priorities are preferred.
840
-
841
851
type: Record type.
842
852
843
853
comment: Comments or notes about the DNS record. This field has no effect on DNS
844
854
responses.
845
855
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
+
846
861
proxied: Whether the record is receiving the performance and security benefits of
847
862
Cloudflare.
848
863
@@ -868,12 +883,13 @@ async def create(
868
883
f"/zones/{ zone_id } /dns_records" ,
869
884
body = await async_maybe_transform (
870
885
{
871
- "data" : data ,
872
886
"name" : name ,
873
- "priority" : priority ,
874
887
"type" : type ,
875
888
"comment" : comment ,
889
+ "content" : content ,
890
+ "data" : data ,
876
891
"meta" : meta ,
892
+ "priority" : priority ,
877
893
"proxied" : proxied ,
878
894
"tags" : tags ,
879
895
"ttl" : ttl ,
@@ -898,9 +914,7 @@ async def update(
898
914
dns_record_id : str ,
899
915
* ,
900
916
zone_id : str ,
901
- data : record_update_params .Data ,
902
917
name : str ,
903
- priority : float ,
904
918
type : Literal [
905
919
"URI" ,
906
920
"TXT" ,
@@ -924,7 +938,10 @@ async def update(
924
938
"A" ,
925
939
],
926
940
comment : str | NotGiven = NOT_GIVEN ,
941
+ content : object | NotGiven = NOT_GIVEN ,
942
+ data : record_update_params .Data | NotGiven = NOT_GIVEN ,
927
943
meta : record_update_params .Meta | NotGiven = NOT_GIVEN ,
944
+ priority : float | NotGiven = NOT_GIVEN ,
928
945
proxied : bool | NotGiven = NOT_GIVEN ,
929
946
tags : List [str ] | NotGiven = NOT_GIVEN ,
930
947
ttl : Union [float , Literal [1 ]] | NotGiven = NOT_GIVEN ,
@@ -951,14 +968,16 @@ async def update(
951
968
952
969
name: DNS record name (or @ for the zone apex) in Punycode.
953
970
954
- priority: Required for MX, SRV and URI records; unused by other record types. Records with
955
- lower priorities are preferred.
956
-
957
971
type: Record type.
958
972
959
973
comment: Comments or notes about the DNS record. This field has no effect on DNS
960
974
responses.
961
975
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
+
962
981
proxied: Whether the record is receiving the performance and security benefits of
963
982
Cloudflare.
964
983
@@ -986,12 +1005,13 @@ async def update(
986
1005
f"/zones/{ zone_id } /dns_records/{ dns_record_id } " ,
987
1006
body = await async_maybe_transform (
988
1007
{
989
- "data" : data ,
990
1008
"name" : name ,
991
- "priority" : priority ,
992
1009
"type" : type ,
993
1010
"comment" : comment ,
1011
+ "content" : content ,
1012
+ "data" : data ,
994
1013
"meta" : meta ,
1014
+ "priority" : priority ,
995
1015
"proxied" : proxied ,
996
1016
"tags" : tags ,
997
1017
"ttl" : ttl ,
@@ -1185,9 +1205,7 @@ async def edit(
1185
1205
dns_record_id : str ,
1186
1206
* ,
1187
1207
zone_id : str ,
1188
- data : record_edit_params .Data ,
1189
1208
name : str ,
1190
- priority : float ,
1191
1209
type : Literal [
1192
1210
"URI" ,
1193
1211
"TXT" ,
@@ -1211,7 +1229,10 @@ async def edit(
1211
1229
"A" ,
1212
1230
],
1213
1231
comment : str | NotGiven = NOT_GIVEN ,
1232
+ content : object | NotGiven = NOT_GIVEN ,
1233
+ data : record_edit_params .Data | NotGiven = NOT_GIVEN ,
1214
1234
meta : record_edit_params .Meta | NotGiven = NOT_GIVEN ,
1235
+ priority : float | NotGiven = NOT_GIVEN ,
1215
1236
proxied : bool | NotGiven = NOT_GIVEN ,
1216
1237
tags : List [str ] | NotGiven = NOT_GIVEN ,
1217
1238
ttl : Union [float , Literal [1 ]] | NotGiven = NOT_GIVEN ,
@@ -1238,14 +1259,16 @@ async def edit(
1238
1259
1239
1260
name: DNS record name (or @ for the zone apex) in Punycode.
1240
1261
1241
- priority: Required for MX, SRV and URI records; unused by other record types. Records with
1242
- lower priorities are preferred.
1243
-
1244
1262
type: Record type.
1245
1263
1246
1264
comment: Comments or notes about the DNS record. This field has no effect on DNS
1247
1265
responses.
1248
1266
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
+
1249
1272
proxied: Whether the record is receiving the performance and security benefits of
1250
1273
Cloudflare.
1251
1274
@@ -1273,12 +1296,13 @@ async def edit(
1273
1296
f"/zones/{ zone_id } /dns_records/{ dns_record_id } " ,
1274
1297
body = await async_maybe_transform (
1275
1298
{
1276
- "data" : data ,
1277
1299
"name" : name ,
1278
- "priority" : priority ,
1279
1300
"type" : type ,
1280
1301
"comment" : comment ,
1302
+ "content" : content ,
1303
+ "data" : data ,
1281
1304
"meta" : meta ,
1305
+ "priority" : priority ,
1282
1306
"proxied" : proxied ,
1283
1307
"tags" : tags ,
1284
1308
"ttl" : ttl ,
0 commit comments