@@ -512,6 +512,7 @@ open class Databases: Service {
512
512
/// @param String key
513
513
/// @param Bool required
514
514
/// @param Bool default
515
+ /// @param String newKey
515
516
/// @throws Exception
516
517
/// @return array
517
518
///
@@ -520,7 +521,8 @@ open class Databases: Service {
520
521
collectionId: String ,
521
522
key: String ,
522
523
`required`: Bool ,
523
- `default`: Bool ? = nil
524
+ `default`: Bool ? = nil ,
525
+ newKey: String ? = nil
524
526
) async throws -> AppwriteModels . AttributeBoolean {
525
527
let apiPath : String = " /databases/{databaseId}/collections/{collectionId}/attributes/boolean/{key} "
526
528
. replacingOccurrences ( of: " {databaseId} " , with: databaseId)
@@ -529,7 +531,8 @@ open class Databases: Service {
529
531
530
532
let apiParams : [ String : Any ? ] = [
531
533
" required " : `required`,
532
- " default " : `default`
534
+ " default " : `default`,
535
+ " newKey " : newKey
533
536
]
534
537
535
538
let apiHeaders : [ String : String ] = [
@@ -610,6 +613,7 @@ open class Databases: Service {
610
613
/// @param String key
611
614
/// @param Bool required
612
615
/// @param String default
616
+ /// @param String newKey
613
617
/// @throws Exception
614
618
/// @return array
615
619
///
@@ -618,7 +622,8 @@ open class Databases: Service {
618
622
collectionId: String ,
619
623
key: String ,
620
624
`required`: Bool ,
621
- `default`: String ? = nil
625
+ `default`: String ? = nil ,
626
+ newKey: String ? = nil
622
627
) async throws -> AppwriteModels . AttributeDatetime {
623
628
let apiPath : String = " /databases/{databaseId}/collections/{collectionId}/attributes/datetime/{key} "
624
629
. replacingOccurrences ( of: " {databaseId} " , with: databaseId)
@@ -627,7 +632,8 @@ open class Databases: Service {
627
632
628
633
let apiParams : [ String : Any ? ] = [
629
634
" required " : `required`,
630
- " default " : `default`
635
+ " default " : `default`,
636
+ " newKey " : newKey
631
637
]
632
638
633
639
let apiHeaders : [ String : String ] = [
@@ -710,6 +716,7 @@ open class Databases: Service {
710
716
/// @param String key
711
717
/// @param Bool required
712
718
/// @param String default
719
+ /// @param String newKey
713
720
/// @throws Exception
714
721
/// @return array
715
722
///
@@ -718,7 +725,8 @@ open class Databases: Service {
718
725
collectionId: String ,
719
726
key: String ,
720
727
`required`: Bool ,
721
- `default`: String ? = nil
728
+ `default`: String ? = nil ,
729
+ newKey: String ? = nil
722
730
) async throws -> AppwriteModels . AttributeEmail {
723
731
let apiPath : String = " /databases/{databaseId}/collections/{collectionId}/attributes/email/{key} "
724
732
. replacingOccurrences ( of: " {databaseId} " , with: databaseId)
@@ -727,7 +735,8 @@ open class Databases: Service {
727
735
728
736
let apiParams : [ String : Any ? ] = [
729
737
" required " : `required`,
730
- " default " : `default`
738
+ " default " : `default`,
739
+ " newKey " : newKey
731
740
]
732
741
733
742
let apiHeaders : [ String : String ] = [
@@ -815,6 +824,7 @@ open class Databases: Service {
815
824
/// @param [String] elements
816
825
/// @param Bool required
817
826
/// @param String default
827
+ /// @param String newKey
818
828
/// @throws Exception
819
829
/// @return array
820
830
///
@@ -824,7 +834,8 @@ open class Databases: Service {
824
834
key: String ,
825
835
elements: [ String ] ,
826
836
`required`: Bool ,
827
- `default`: String ? = nil
837
+ `default`: String ? = nil ,
838
+ newKey: String ? = nil
828
839
) async throws -> AppwriteModels . AttributeEnum {
829
840
let apiPath : String = " /databases/{databaseId}/collections/{collectionId}/attributes/enum/{key} "
830
841
. replacingOccurrences ( of: " {databaseId} " , with: databaseId)
@@ -834,7 +845,8 @@ open class Databases: Service {
834
845
let apiParams : [ String : Any ? ] = [
835
846
" elements " : elements,
836
847
" required " : `required`,
837
- " default " : `default`
848
+ " default " : `default`,
849
+ " newKey " : newKey
838
850
]
839
851
840
852
let apiHeaders : [ String : String ] = [
@@ -926,6 +938,7 @@ open class Databases: Service {
926
938
/// @param Double min
927
939
/// @param Double max
928
940
/// @param Double default
941
+ /// @param String newKey
929
942
/// @throws Exception
930
943
/// @return array
931
944
///
@@ -936,7 +949,8 @@ open class Databases: Service {
936
949
`required`: Bool ,
937
950
min: Double ,
938
951
max: Double ,
939
- `default`: Double ? = nil
952
+ `default`: Double ? = nil ,
953
+ newKey: String ? = nil
940
954
) async throws -> AppwriteModels . AttributeFloat {
941
955
let apiPath : String = " /databases/{databaseId}/collections/{collectionId}/attributes/float/{key} "
942
956
. replacingOccurrences ( of: " {databaseId} " , with: databaseId)
@@ -947,7 +961,8 @@ open class Databases: Service {
947
961
" required " : `required`,
948
962
" min " : min,
949
963
" max " : max,
950
- " default " : `default`
964
+ " default " : `default`,
965
+ " newKey " : newKey
951
966
]
952
967
953
968
let apiHeaders : [ String : String ] = [
@@ -1039,6 +1054,7 @@ open class Databases: Service {
1039
1054
/// @param Int min
1040
1055
/// @param Int max
1041
1056
/// @param Int default
1057
+ /// @param String newKey
1042
1058
/// @throws Exception
1043
1059
/// @return array
1044
1060
///
@@ -1049,7 +1065,8 @@ open class Databases: Service {
1049
1065
`required`: Bool ,
1050
1066
min: Int ,
1051
1067
max: Int ,
1052
- `default`: Int ? = nil
1068
+ `default`: Int ? = nil ,
1069
+ newKey: String ? = nil
1053
1070
) async throws -> AppwriteModels . AttributeInteger {
1054
1071
let apiPath : String = " /databases/{databaseId}/collections/{collectionId}/attributes/integer/{key} "
1055
1072
. replacingOccurrences ( of: " {databaseId} " , with: databaseId)
@@ -1060,7 +1077,8 @@ open class Databases: Service {
1060
1077
" required " : `required`,
1061
1078
" min " : min,
1062
1079
" max " : max,
1063
- " default " : `default`
1080
+ " default " : `default`,
1081
+ " newKey " : newKey
1064
1082
]
1065
1083
1066
1084
let apiHeaders : [ String : String ] = [
@@ -1143,6 +1161,7 @@ open class Databases: Service {
1143
1161
/// @param String key
1144
1162
/// @param Bool required
1145
1163
/// @param String default
1164
+ /// @param String newKey
1146
1165
/// @throws Exception
1147
1166
/// @return array
1148
1167
///
@@ -1151,7 +1170,8 @@ open class Databases: Service {
1151
1170
collectionId: String ,
1152
1171
key: String ,
1153
1172
`required`: Bool ,
1154
- `default`: String ? = nil
1173
+ `default`: String ? = nil ,
1174
+ newKey: String ? = nil
1155
1175
) async throws -> AppwriteModels . AttributeIp {
1156
1176
let apiPath : String = " /databases/{databaseId}/collections/{collectionId}/attributes/ip/{key} "
1157
1177
. replacingOccurrences ( of: " {databaseId} " , with: databaseId)
@@ -1160,7 +1180,8 @@ open class Databases: Service {
1160
1180
1161
1181
let apiParams : [ String : Any ? ] = [
1162
1182
" required " : `required`,
1163
- " default " : `default`
1183
+ " default " : `default`,
1184
+ " newKey " : newKey
1164
1185
]
1165
1186
1166
1187
let apiHeaders : [ String : String ] = [
@@ -1307,6 +1328,8 @@ open class Databases: Service {
1307
1328
/// @param String key
1308
1329
/// @param Bool required
1309
1330
/// @param String default
1331
+ /// @param Int size
1332
+ /// @param String newKey
1310
1333
/// @throws Exception
1311
1334
/// @return array
1312
1335
///
@@ -1315,7 +1338,9 @@ open class Databases: Service {
1315
1338
collectionId: String ,
1316
1339
key: String ,
1317
1340
`required`: Bool ,
1318
- `default`: String ? = nil
1341
+ `default`: String ? = nil ,
1342
+ size: Int ? = nil ,
1343
+ newKey: String ? = nil
1319
1344
) async throws -> AppwriteModels . AttributeString {
1320
1345
let apiPath : String = " /databases/{databaseId}/collections/{collectionId}/attributes/string/{key} "
1321
1346
. replacingOccurrences ( of: " {databaseId} " , with: databaseId)
@@ -1324,7 +1349,9 @@ open class Databases: Service {
1324
1349
1325
1350
let apiParams : [ String : Any ? ] = [
1326
1351
" required " : `required`,
1327
- " default " : `default`
1352
+ " default " : `default`,
1353
+ " size " : size,
1354
+ " newKey " : newKey
1328
1355
]
1329
1356
1330
1357
let apiHeaders : [ String : String ] = [
@@ -1407,6 +1434,7 @@ open class Databases: Service {
1407
1434
/// @param String key
1408
1435
/// @param Bool required
1409
1436
/// @param String default
1437
+ /// @param String newKey
1410
1438
/// @throws Exception
1411
1439
/// @return array
1412
1440
///
@@ -1415,7 +1443,8 @@ open class Databases: Service {
1415
1443
collectionId: String ,
1416
1444
key: String ,
1417
1445
`required`: Bool ,
1418
- `default`: String ? = nil
1446
+ `default`: String ? = nil ,
1447
+ newKey: String ? = nil
1419
1448
) async throws -> AppwriteModels . AttributeUrl {
1420
1449
let apiPath : String = " /databases/{databaseId}/collections/{collectionId}/attributes/url/{key} "
1421
1450
. replacingOccurrences ( of: " {databaseId} " , with: databaseId)
@@ -1424,7 +1453,8 @@ open class Databases: Service {
1424
1453
1425
1454
let apiParams : [ String : Any ? ] = [
1426
1455
" required " : `required`,
1427
- " default " : `default`
1456
+ " default " : `default`,
1457
+ " newKey " : newKey
1428
1458
]
1429
1459
1430
1460
let apiHeaders : [ String : String ] = [
@@ -1523,22 +1553,25 @@ open class Databases: Service {
1523
1553
/// @param String collectionId
1524
1554
/// @param String key
1525
1555
/// @param AppwriteEnums.RelationMutate onDelete
1556
+ /// @param String newKey
1526
1557
/// @throws Exception
1527
1558
/// @return array
1528
1559
///
1529
1560
open func updateRelationshipAttribute(
1530
1561
databaseId: String ,
1531
1562
collectionId: String ,
1532
1563
key: String ,
1533
- onDelete: AppwriteEnums . RelationMutate ? = nil
1564
+ onDelete: AppwriteEnums . RelationMutate ? = nil ,
1565
+ newKey: String ? = nil
1534
1566
) async throws -> AppwriteModels . AttributeRelationship {
1535
1567
let apiPath : String = " /databases/{databaseId}/collections/{collectionId}/attributes/{key}/relationship "
1536
1568
. replacingOccurrences ( of: " {databaseId} " , with: databaseId)
1537
1569
. replacingOccurrences ( of: " {collectionId} " , with: collectionId)
1538
1570
. replacingOccurrences ( of: " {key} " , with: key)
1539
1571
1540
1572
let apiParams : [ String : Any ? ] = [
1541
- " onDelete " : onDelete
1573
+ " onDelete " : onDelete,
1574
+ " newKey " : newKey
1542
1575
]
1543
1576
1544
1577
let apiHeaders : [ String : String ] = [
0 commit comments