appwrite 9.0.0 → 10.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/appwrite/client.rb +3 -3
- data/lib/appwrite/role.rb +56 -0
- data/lib/appwrite/services/account.rb +88 -88
- data/lib/appwrite/services/avatars.rb +28 -28
- data/lib/appwrite/services/databases.rb +168 -168
- data/lib/appwrite/services/functions.rb +85 -89
- data/lib/appwrite/services/graphql.rb +8 -8
- data/lib/appwrite/services/health.rb +48 -48
- data/lib/appwrite/services/locale.rb +32 -32
- data/lib/appwrite/services/storage.rb +52 -52
- data/lib/appwrite/services/teams.rb +54 -58
- data/lib/appwrite/services/users.rb +113 -113
- metadata +2 -2
@@ -17,20 +17,20 @@ module Appwrite
|
|
17
17
|
def list(queries: nil, search: nil)
|
18
18
|
api_path = '/databases'
|
19
19
|
|
20
|
-
|
20
|
+
api_params = {
|
21
21
|
queries: queries,
|
22
22
|
search: search,
|
23
23
|
}
|
24
24
|
|
25
|
-
|
25
|
+
api_headers = {
|
26
26
|
"content-type": 'application/json',
|
27
27
|
}
|
28
28
|
|
29
29
|
@client.call(
|
30
30
|
method: 'GET',
|
31
31
|
path: api_path,
|
32
|
-
headers:
|
33
|
-
params:
|
32
|
+
headers: api_headers,
|
33
|
+
params: api_params,
|
34
34
|
response_type: Models::DatabaseList
|
35
35
|
)
|
36
36
|
end
|
@@ -55,21 +55,21 @@ module Appwrite
|
|
55
55
|
raise Appwrite::Exception.new('Missing required parameter: "name"')
|
56
56
|
end
|
57
57
|
|
58
|
-
|
58
|
+
api_params = {
|
59
59
|
databaseId: database_id,
|
60
60
|
name: name,
|
61
61
|
enabled: enabled,
|
62
62
|
}
|
63
63
|
|
64
|
-
|
64
|
+
api_headers = {
|
65
65
|
"content-type": 'application/json',
|
66
66
|
}
|
67
67
|
|
68
68
|
@client.call(
|
69
69
|
method: 'POST',
|
70
70
|
path: api_path,
|
71
|
-
headers:
|
72
|
-
params:
|
71
|
+
headers: api_headers,
|
72
|
+
params: api_params,
|
73
73
|
response_type: Models::Database
|
74
74
|
)
|
75
75
|
end
|
@@ -89,18 +89,18 @@ module Appwrite
|
|
89
89
|
raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
|
90
90
|
end
|
91
91
|
|
92
|
-
|
92
|
+
api_params = {
|
93
93
|
}
|
94
94
|
|
95
|
-
|
95
|
+
api_headers = {
|
96
96
|
"content-type": 'application/json',
|
97
97
|
}
|
98
98
|
|
99
99
|
@client.call(
|
100
100
|
method: 'GET',
|
101
101
|
path: api_path,
|
102
|
-
headers:
|
103
|
-
params:
|
102
|
+
headers: api_headers,
|
103
|
+
params: api_params,
|
104
104
|
response_type: Models::Database
|
105
105
|
)
|
106
106
|
end
|
@@ -125,20 +125,20 @@ module Appwrite
|
|
125
125
|
raise Appwrite::Exception.new('Missing required parameter: "name"')
|
126
126
|
end
|
127
127
|
|
128
|
-
|
128
|
+
api_params = {
|
129
129
|
name: name,
|
130
130
|
enabled: enabled,
|
131
131
|
}
|
132
132
|
|
133
|
-
|
133
|
+
api_headers = {
|
134
134
|
"content-type": 'application/json',
|
135
135
|
}
|
136
136
|
|
137
137
|
@client.call(
|
138
138
|
method: 'PUT',
|
139
139
|
path: api_path,
|
140
|
-
headers:
|
141
|
-
params:
|
140
|
+
headers: api_headers,
|
141
|
+
params: api_params,
|
142
142
|
response_type: Models::Database
|
143
143
|
)
|
144
144
|
end
|
@@ -158,18 +158,18 @@ module Appwrite
|
|
158
158
|
raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
|
159
159
|
end
|
160
160
|
|
161
|
-
|
161
|
+
api_params = {
|
162
162
|
}
|
163
163
|
|
164
|
-
|
164
|
+
api_headers = {
|
165
165
|
"content-type": 'application/json',
|
166
166
|
}
|
167
167
|
|
168
168
|
@client.call(
|
169
169
|
method: 'DELETE',
|
170
170
|
path: api_path,
|
171
|
-
headers:
|
172
|
-
params:
|
171
|
+
headers: api_headers,
|
172
|
+
params: api_params,
|
173
173
|
)
|
174
174
|
end
|
175
175
|
|
@@ -190,20 +190,20 @@ module Appwrite
|
|
190
190
|
raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
|
191
191
|
end
|
192
192
|
|
193
|
-
|
193
|
+
api_params = {
|
194
194
|
queries: queries,
|
195
195
|
search: search,
|
196
196
|
}
|
197
197
|
|
198
|
-
|
198
|
+
api_headers = {
|
199
199
|
"content-type": 'application/json',
|
200
200
|
}
|
201
201
|
|
202
202
|
@client.call(
|
203
203
|
method: 'GET',
|
204
204
|
path: api_path,
|
205
|
-
headers:
|
206
|
-
params:
|
205
|
+
headers: api_headers,
|
206
|
+
params: api_params,
|
207
207
|
response_type: Models::CollectionList
|
208
208
|
)
|
209
209
|
end
|
@@ -238,7 +238,7 @@ module Appwrite
|
|
238
238
|
raise Appwrite::Exception.new('Missing required parameter: "name"')
|
239
239
|
end
|
240
240
|
|
241
|
-
|
241
|
+
api_params = {
|
242
242
|
collectionId: collection_id,
|
243
243
|
name: name,
|
244
244
|
permissions: permissions,
|
@@ -246,15 +246,15 @@ module Appwrite
|
|
246
246
|
enabled: enabled,
|
247
247
|
}
|
248
248
|
|
249
|
-
|
249
|
+
api_headers = {
|
250
250
|
"content-type": 'application/json',
|
251
251
|
}
|
252
252
|
|
253
253
|
@client.call(
|
254
254
|
method: 'POST',
|
255
255
|
path: api_path,
|
256
|
-
headers:
|
257
|
-
params:
|
256
|
+
headers: api_headers,
|
257
|
+
params: api_params,
|
258
258
|
response_type: Models::Collection
|
259
259
|
)
|
260
260
|
end
|
@@ -280,18 +280,18 @@ module Appwrite
|
|
280
280
|
raise Appwrite::Exception.new('Missing required parameter: "collectionId"')
|
281
281
|
end
|
282
282
|
|
283
|
-
|
283
|
+
api_params = {
|
284
284
|
}
|
285
285
|
|
286
|
-
|
286
|
+
api_headers = {
|
287
287
|
"content-type": 'application/json',
|
288
288
|
}
|
289
289
|
|
290
290
|
@client.call(
|
291
291
|
method: 'GET',
|
292
292
|
path: api_path,
|
293
|
-
headers:
|
294
|
-
params:
|
293
|
+
headers: api_headers,
|
294
|
+
params: api_params,
|
295
295
|
response_type: Models::Collection
|
296
296
|
)
|
297
297
|
end
|
@@ -324,22 +324,22 @@ module Appwrite
|
|
324
324
|
raise Appwrite::Exception.new('Missing required parameter: "name"')
|
325
325
|
end
|
326
326
|
|
327
|
-
|
327
|
+
api_params = {
|
328
328
|
name: name,
|
329
329
|
permissions: permissions,
|
330
330
|
documentSecurity: document_security,
|
331
331
|
enabled: enabled,
|
332
332
|
}
|
333
333
|
|
334
|
-
|
334
|
+
api_headers = {
|
335
335
|
"content-type": 'application/json',
|
336
336
|
}
|
337
337
|
|
338
338
|
@client.call(
|
339
339
|
method: 'PUT',
|
340
340
|
path: api_path,
|
341
|
-
headers:
|
342
|
-
params:
|
341
|
+
headers: api_headers,
|
342
|
+
params: api_params,
|
343
343
|
response_type: Models::Collection
|
344
344
|
)
|
345
345
|
end
|
@@ -365,18 +365,18 @@ module Appwrite
|
|
365
365
|
raise Appwrite::Exception.new('Missing required parameter: "collectionId"')
|
366
366
|
end
|
367
367
|
|
368
|
-
|
368
|
+
api_params = {
|
369
369
|
}
|
370
370
|
|
371
|
-
|
371
|
+
api_headers = {
|
372
372
|
"content-type": 'application/json',
|
373
373
|
}
|
374
374
|
|
375
375
|
@client.call(
|
376
376
|
method: 'DELETE',
|
377
377
|
path: api_path,
|
378
|
-
headers:
|
379
|
-
params:
|
378
|
+
headers: api_headers,
|
379
|
+
params: api_params,
|
380
380
|
)
|
381
381
|
end
|
382
382
|
|
@@ -401,19 +401,19 @@ module Appwrite
|
|
401
401
|
raise Appwrite::Exception.new('Missing required parameter: "collectionId"')
|
402
402
|
end
|
403
403
|
|
404
|
-
|
404
|
+
api_params = {
|
405
405
|
queries: queries,
|
406
406
|
}
|
407
407
|
|
408
|
-
|
408
|
+
api_headers = {
|
409
409
|
"content-type": 'application/json',
|
410
410
|
}
|
411
411
|
|
412
412
|
@client.call(
|
413
413
|
method: 'GET',
|
414
414
|
path: api_path,
|
415
|
-
headers:
|
416
|
-
params:
|
415
|
+
headers: api_headers,
|
416
|
+
params: api_params,
|
417
417
|
response_type: Models::AttributeList
|
418
418
|
)
|
419
419
|
end
|
@@ -451,22 +451,22 @@ module Appwrite
|
|
451
451
|
raise Appwrite::Exception.new('Missing required parameter: "required"')
|
452
452
|
end
|
453
453
|
|
454
|
-
|
454
|
+
api_params = {
|
455
455
|
key: key,
|
456
456
|
required: required,
|
457
457
|
default: default,
|
458
458
|
array: array,
|
459
459
|
}
|
460
460
|
|
461
|
-
|
461
|
+
api_headers = {
|
462
462
|
"content-type": 'application/json',
|
463
463
|
}
|
464
464
|
|
465
465
|
@client.call(
|
466
466
|
method: 'POST',
|
467
467
|
path: api_path,
|
468
|
-
headers:
|
469
|
-
params:
|
468
|
+
headers: api_headers,
|
469
|
+
params: api_params,
|
470
470
|
response_type: Models::AttributeBoolean
|
471
471
|
)
|
472
472
|
end
|
@@ -507,20 +507,20 @@ module Appwrite
|
|
507
507
|
raise Appwrite::Exception.new('Missing required parameter: "default"')
|
508
508
|
end
|
509
509
|
|
510
|
-
|
510
|
+
api_params = {
|
511
511
|
required: required,
|
512
512
|
default: default,
|
513
513
|
}
|
514
514
|
|
515
|
-
|
515
|
+
api_headers = {
|
516
516
|
"content-type": 'application/json',
|
517
517
|
}
|
518
518
|
|
519
519
|
@client.call(
|
520
520
|
method: 'PATCH',
|
521
521
|
path: api_path,
|
522
|
-
headers:
|
523
|
-
params:
|
522
|
+
headers: api_headers,
|
523
|
+
params: api_params,
|
524
524
|
response_type: Models::AttributeBoolean
|
525
525
|
)
|
526
526
|
end
|
@@ -557,22 +557,22 @@ module Appwrite
|
|
557
557
|
raise Appwrite::Exception.new('Missing required parameter: "required"')
|
558
558
|
end
|
559
559
|
|
560
|
-
|
560
|
+
api_params = {
|
561
561
|
key: key,
|
562
562
|
required: required,
|
563
563
|
default: default,
|
564
564
|
array: array,
|
565
565
|
}
|
566
566
|
|
567
|
-
|
567
|
+
api_headers = {
|
568
568
|
"content-type": 'application/json',
|
569
569
|
}
|
570
570
|
|
571
571
|
@client.call(
|
572
572
|
method: 'POST',
|
573
573
|
path: api_path,
|
574
|
-
headers:
|
575
|
-
params:
|
574
|
+
headers: api_headers,
|
575
|
+
params: api_params,
|
576
576
|
response_type: Models::AttributeDatetime
|
577
577
|
)
|
578
578
|
end
|
@@ -613,20 +613,20 @@ module Appwrite
|
|
613
613
|
raise Appwrite::Exception.new('Missing required parameter: "default"')
|
614
614
|
end
|
615
615
|
|
616
|
-
|
616
|
+
api_params = {
|
617
617
|
required: required,
|
618
618
|
default: default,
|
619
619
|
}
|
620
620
|
|
621
|
-
|
621
|
+
api_headers = {
|
622
622
|
"content-type": 'application/json',
|
623
623
|
}
|
624
624
|
|
625
625
|
@client.call(
|
626
626
|
method: 'PATCH',
|
627
627
|
path: api_path,
|
628
|
-
headers:
|
629
|
-
params:
|
628
|
+
headers: api_headers,
|
629
|
+
params: api_params,
|
630
630
|
response_type: Models::AttributeDatetime
|
631
631
|
)
|
632
632
|
end
|
@@ -664,22 +664,22 @@ module Appwrite
|
|
664
664
|
raise Appwrite::Exception.new('Missing required parameter: "required"')
|
665
665
|
end
|
666
666
|
|
667
|
-
|
667
|
+
api_params = {
|
668
668
|
key: key,
|
669
669
|
required: required,
|
670
670
|
default: default,
|
671
671
|
array: array,
|
672
672
|
}
|
673
673
|
|
674
|
-
|
674
|
+
api_headers = {
|
675
675
|
"content-type": 'application/json',
|
676
676
|
}
|
677
677
|
|
678
678
|
@client.call(
|
679
679
|
method: 'POST',
|
680
680
|
path: api_path,
|
681
|
-
headers:
|
682
|
-
params:
|
681
|
+
headers: api_headers,
|
682
|
+
params: api_params,
|
683
683
|
response_type: Models::AttributeEmail
|
684
684
|
)
|
685
685
|
end
|
@@ -722,20 +722,20 @@ module Appwrite
|
|
722
722
|
raise Appwrite::Exception.new('Missing required parameter: "default"')
|
723
723
|
end
|
724
724
|
|
725
|
-
|
725
|
+
api_params = {
|
726
726
|
required: required,
|
727
727
|
default: default,
|
728
728
|
}
|
729
729
|
|
730
|
-
|
730
|
+
api_headers = {
|
731
731
|
"content-type": 'application/json',
|
732
732
|
}
|
733
733
|
|
734
734
|
@client.call(
|
735
735
|
method: 'PATCH',
|
736
736
|
path: api_path,
|
737
|
-
headers:
|
738
|
-
params:
|
737
|
+
headers: api_headers,
|
738
|
+
params: api_params,
|
739
739
|
response_type: Models::AttributeEmail
|
740
740
|
)
|
741
741
|
end
|
@@ -777,7 +777,7 @@ module Appwrite
|
|
777
777
|
raise Appwrite::Exception.new('Missing required parameter: "required"')
|
778
778
|
end
|
779
779
|
|
780
|
-
|
780
|
+
api_params = {
|
781
781
|
key: key,
|
782
782
|
elements: elements,
|
783
783
|
required: required,
|
@@ -785,15 +785,15 @@ module Appwrite
|
|
785
785
|
array: array,
|
786
786
|
}
|
787
787
|
|
788
|
-
|
788
|
+
api_headers = {
|
789
789
|
"content-type": 'application/json',
|
790
790
|
}
|
791
791
|
|
792
792
|
@client.call(
|
793
793
|
method: 'POST',
|
794
794
|
path: api_path,
|
795
|
-
headers:
|
796
|
-
params:
|
795
|
+
headers: api_headers,
|
796
|
+
params: api_params,
|
797
797
|
response_type: Models::AttributeEnum
|
798
798
|
)
|
799
799
|
end
|
@@ -841,21 +841,21 @@ module Appwrite
|
|
841
841
|
raise Appwrite::Exception.new('Missing required parameter: "default"')
|
842
842
|
end
|
843
843
|
|
844
|
-
|
844
|
+
api_params = {
|
845
845
|
elements: elements,
|
846
846
|
required: required,
|
847
847
|
default: default,
|
848
848
|
}
|
849
849
|
|
850
|
-
|
850
|
+
api_headers = {
|
851
851
|
"content-type": 'application/json',
|
852
852
|
}
|
853
853
|
|
854
854
|
@client.call(
|
855
855
|
method: 'PATCH',
|
856
856
|
path: api_path,
|
857
|
-
headers:
|
858
|
-
params:
|
857
|
+
headers: api_headers,
|
858
|
+
params: api_params,
|
859
859
|
response_type: Models::AttributeEnum
|
860
860
|
)
|
861
861
|
end
|
@@ -896,7 +896,7 @@ module Appwrite
|
|
896
896
|
raise Appwrite::Exception.new('Missing required parameter: "required"')
|
897
897
|
end
|
898
898
|
|
899
|
-
|
899
|
+
api_params = {
|
900
900
|
key: key,
|
901
901
|
required: required,
|
902
902
|
min: min,
|
@@ -905,15 +905,15 @@ module Appwrite
|
|
905
905
|
array: array,
|
906
906
|
}
|
907
907
|
|
908
|
-
|
908
|
+
api_headers = {
|
909
909
|
"content-type": 'application/json',
|
910
910
|
}
|
911
911
|
|
912
912
|
@client.call(
|
913
913
|
method: 'POST',
|
914
914
|
path: api_path,
|
915
|
-
headers:
|
916
|
-
params:
|
915
|
+
headers: api_headers,
|
916
|
+
params: api_params,
|
917
917
|
response_type: Models::AttributeFloat
|
918
918
|
)
|
919
919
|
end
|
@@ -966,22 +966,22 @@ module Appwrite
|
|
966
966
|
raise Appwrite::Exception.new('Missing required parameter: "default"')
|
967
967
|
end
|
968
968
|
|
969
|
-
|
969
|
+
api_params = {
|
970
970
|
required: required,
|
971
971
|
min: min,
|
972
972
|
max: max,
|
973
973
|
default: default,
|
974
974
|
}
|
975
975
|
|
976
|
-
|
976
|
+
api_headers = {
|
977
977
|
"content-type": 'application/json',
|
978
978
|
}
|
979
979
|
|
980
980
|
@client.call(
|
981
981
|
method: 'PATCH',
|
982
982
|
path: api_path,
|
983
|
-
headers:
|
984
|
-
params:
|
983
|
+
headers: api_headers,
|
984
|
+
params: api_params,
|
985
985
|
response_type: Models::AttributeFloat
|
986
986
|
)
|
987
987
|
end
|
@@ -1022,7 +1022,7 @@ module Appwrite
|
|
1022
1022
|
raise Appwrite::Exception.new('Missing required parameter: "required"')
|
1023
1023
|
end
|
1024
1024
|
|
1025
|
-
|
1025
|
+
api_params = {
|
1026
1026
|
key: key,
|
1027
1027
|
required: required,
|
1028
1028
|
min: min,
|
@@ -1031,15 +1031,15 @@ module Appwrite
|
|
1031
1031
|
array: array,
|
1032
1032
|
}
|
1033
1033
|
|
1034
|
-
|
1034
|
+
api_headers = {
|
1035
1035
|
"content-type": 'application/json',
|
1036
1036
|
}
|
1037
1037
|
|
1038
1038
|
@client.call(
|
1039
1039
|
method: 'POST',
|
1040
1040
|
path: api_path,
|
1041
|
-
headers:
|
1042
|
-
params:
|
1041
|
+
headers: api_headers,
|
1042
|
+
params: api_params,
|
1043
1043
|
response_type: Models::AttributeInteger
|
1044
1044
|
)
|
1045
1045
|
end
|
@@ -1092,22 +1092,22 @@ module Appwrite
|
|
1092
1092
|
raise Appwrite::Exception.new('Missing required parameter: "default"')
|
1093
1093
|
end
|
1094
1094
|
|
1095
|
-
|
1095
|
+
api_params = {
|
1096
1096
|
required: required,
|
1097
1097
|
min: min,
|
1098
1098
|
max: max,
|
1099
1099
|
default: default,
|
1100
1100
|
}
|
1101
1101
|
|
1102
|
-
|
1102
|
+
api_headers = {
|
1103
1103
|
"content-type": 'application/json',
|
1104
1104
|
}
|
1105
1105
|
|
1106
1106
|
@client.call(
|
1107
1107
|
method: 'PATCH',
|
1108
1108
|
path: api_path,
|
1109
|
-
headers:
|
1110
|
-
params:
|
1109
|
+
headers: api_headers,
|
1110
|
+
params: api_params,
|
1111
1111
|
response_type: Models::AttributeInteger
|
1112
1112
|
)
|
1113
1113
|
end
|
@@ -1145,22 +1145,22 @@ module Appwrite
|
|
1145
1145
|
raise Appwrite::Exception.new('Missing required parameter: "required"')
|
1146
1146
|
end
|
1147
1147
|
|
1148
|
-
|
1148
|
+
api_params = {
|
1149
1149
|
key: key,
|
1150
1150
|
required: required,
|
1151
1151
|
default: default,
|
1152
1152
|
array: array,
|
1153
1153
|
}
|
1154
1154
|
|
1155
|
-
|
1155
|
+
api_headers = {
|
1156
1156
|
"content-type": 'application/json',
|
1157
1157
|
}
|
1158
1158
|
|
1159
1159
|
@client.call(
|
1160
1160
|
method: 'POST',
|
1161
1161
|
path: api_path,
|
1162
|
-
headers:
|
1163
|
-
params:
|
1162
|
+
headers: api_headers,
|
1163
|
+
params: api_params,
|
1164
1164
|
response_type: Models::AttributeIp
|
1165
1165
|
)
|
1166
1166
|
end
|
@@ -1203,20 +1203,20 @@ module Appwrite
|
|
1203
1203
|
raise Appwrite::Exception.new('Missing required parameter: "default"')
|
1204
1204
|
end
|
1205
1205
|
|
1206
|
-
|
1206
|
+
api_params = {
|
1207
1207
|
required: required,
|
1208
1208
|
default: default,
|
1209
1209
|
}
|
1210
1210
|
|
1211
|
-
|
1211
|
+
api_headers = {
|
1212
1212
|
"content-type": 'application/json',
|
1213
1213
|
}
|
1214
1214
|
|
1215
1215
|
@client.call(
|
1216
1216
|
method: 'PATCH',
|
1217
1217
|
path: api_path,
|
1218
|
-
headers:
|
1219
|
-
params:
|
1218
|
+
headers: api_headers,
|
1219
|
+
params: api_params,
|
1220
1220
|
response_type: Models::AttributeIp
|
1221
1221
|
)
|
1222
1222
|
end
|
@@ -1257,7 +1257,7 @@ module Appwrite
|
|
1257
1257
|
raise Appwrite::Exception.new('Missing required parameter: "type"')
|
1258
1258
|
end
|
1259
1259
|
|
1260
|
-
|
1260
|
+
api_params = {
|
1261
1261
|
relatedCollectionId: related_collection_id,
|
1262
1262
|
type: type,
|
1263
1263
|
twoWay: two_way,
|
@@ -1266,15 +1266,15 @@ module Appwrite
|
|
1266
1266
|
onDelete: on_delete,
|
1267
1267
|
}
|
1268
1268
|
|
1269
|
-
|
1269
|
+
api_headers = {
|
1270
1270
|
"content-type": 'application/json',
|
1271
1271
|
}
|
1272
1272
|
|
1273
1273
|
@client.call(
|
1274
1274
|
method: 'POST',
|
1275
1275
|
path: api_path,
|
1276
|
-
headers:
|
1277
|
-
params:
|
1276
|
+
headers: api_headers,
|
1277
|
+
params: api_params,
|
1278
1278
|
response_type: Models::AttributeRelationship
|
1279
1279
|
)
|
1280
1280
|
end
|
@@ -1318,7 +1318,7 @@ module Appwrite
|
|
1318
1318
|
raise Appwrite::Exception.new('Missing required parameter: "required"')
|
1319
1319
|
end
|
1320
1320
|
|
1321
|
-
|
1321
|
+
api_params = {
|
1322
1322
|
key: key,
|
1323
1323
|
size: size,
|
1324
1324
|
required: required,
|
@@ -1327,15 +1327,15 @@ module Appwrite
|
|
1327
1327
|
encrypt: encrypt,
|
1328
1328
|
}
|
1329
1329
|
|
1330
|
-
|
1330
|
+
api_headers = {
|
1331
1331
|
"content-type": 'application/json',
|
1332
1332
|
}
|
1333
1333
|
|
1334
1334
|
@client.call(
|
1335
1335
|
method: 'POST',
|
1336
1336
|
path: api_path,
|
1337
|
-
headers:
|
1338
|
-
params:
|
1337
|
+
headers: api_headers,
|
1338
|
+
params: api_params,
|
1339
1339
|
response_type: Models::AttributeString
|
1340
1340
|
)
|
1341
1341
|
end
|
@@ -1378,20 +1378,20 @@ module Appwrite
|
|
1378
1378
|
raise Appwrite::Exception.new('Missing required parameter: "default"')
|
1379
1379
|
end
|
1380
1380
|
|
1381
|
-
|
1381
|
+
api_params = {
|
1382
1382
|
required: required,
|
1383
1383
|
default: default,
|
1384
1384
|
}
|
1385
1385
|
|
1386
|
-
|
1386
|
+
api_headers = {
|
1387
1387
|
"content-type": 'application/json',
|
1388
1388
|
}
|
1389
1389
|
|
1390
1390
|
@client.call(
|
1391
1391
|
method: 'PATCH',
|
1392
1392
|
path: api_path,
|
1393
|
-
headers:
|
1394
|
-
params:
|
1393
|
+
headers: api_headers,
|
1394
|
+
params: api_params,
|
1395
1395
|
response_type: Models::AttributeString
|
1396
1396
|
)
|
1397
1397
|
end
|
@@ -1429,22 +1429,22 @@ module Appwrite
|
|
1429
1429
|
raise Appwrite::Exception.new('Missing required parameter: "required"')
|
1430
1430
|
end
|
1431
1431
|
|
1432
|
-
|
1432
|
+
api_params = {
|
1433
1433
|
key: key,
|
1434
1434
|
required: required,
|
1435
1435
|
default: default,
|
1436
1436
|
array: array,
|
1437
1437
|
}
|
1438
1438
|
|
1439
|
-
|
1439
|
+
api_headers = {
|
1440
1440
|
"content-type": 'application/json',
|
1441
1441
|
}
|
1442
1442
|
|
1443
1443
|
@client.call(
|
1444
1444
|
method: 'POST',
|
1445
1445
|
path: api_path,
|
1446
|
-
headers:
|
1447
|
-
params:
|
1446
|
+
headers: api_headers,
|
1447
|
+
params: api_params,
|
1448
1448
|
response_type: Models::AttributeUrl
|
1449
1449
|
)
|
1450
1450
|
end
|
@@ -1487,20 +1487,20 @@ module Appwrite
|
|
1487
1487
|
raise Appwrite::Exception.new('Missing required parameter: "default"')
|
1488
1488
|
end
|
1489
1489
|
|
1490
|
-
|
1490
|
+
api_params = {
|
1491
1491
|
required: required,
|
1492
1492
|
default: default,
|
1493
1493
|
}
|
1494
1494
|
|
1495
|
-
|
1495
|
+
api_headers = {
|
1496
1496
|
"content-type": 'application/json',
|
1497
1497
|
}
|
1498
1498
|
|
1499
1499
|
@client.call(
|
1500
1500
|
method: 'PATCH',
|
1501
1501
|
path: api_path,
|
1502
|
-
headers:
|
1503
|
-
params:
|
1502
|
+
headers: api_headers,
|
1503
|
+
params: api_params,
|
1504
1504
|
response_type: Models::AttributeUrl
|
1505
1505
|
)
|
1506
1506
|
end
|
@@ -1531,18 +1531,18 @@ module Appwrite
|
|
1531
1531
|
raise Appwrite::Exception.new('Missing required parameter: "key"')
|
1532
1532
|
end
|
1533
1533
|
|
1534
|
-
|
1534
|
+
api_params = {
|
1535
1535
|
}
|
1536
1536
|
|
1537
|
-
|
1537
|
+
api_headers = {
|
1538
1538
|
"content-type": 'application/json',
|
1539
1539
|
}
|
1540
1540
|
|
1541
1541
|
@client.call(
|
1542
1542
|
method: 'GET',
|
1543
1543
|
path: api_path,
|
1544
|
-
headers:
|
1545
|
-
params:
|
1544
|
+
headers: api_headers,
|
1545
|
+
params: api_params,
|
1546
1546
|
)
|
1547
1547
|
end
|
1548
1548
|
|
@@ -1572,18 +1572,18 @@ module Appwrite
|
|
1572
1572
|
raise Appwrite::Exception.new('Missing required parameter: "key"')
|
1573
1573
|
end
|
1574
1574
|
|
1575
|
-
|
1575
|
+
api_params = {
|
1576
1576
|
}
|
1577
1577
|
|
1578
|
-
|
1578
|
+
api_headers = {
|
1579
1579
|
"content-type": 'application/json',
|
1580
1580
|
}
|
1581
1581
|
|
1582
1582
|
@client.call(
|
1583
1583
|
method: 'DELETE',
|
1584
1584
|
path: api_path,
|
1585
|
-
headers:
|
1586
|
-
params:
|
1585
|
+
headers: api_headers,
|
1586
|
+
params: api_params,
|
1587
1587
|
)
|
1588
1588
|
end
|
1589
1589
|
|
@@ -1616,19 +1616,19 @@ module Appwrite
|
|
1616
1616
|
raise Appwrite::Exception.new('Missing required parameter: "key"')
|
1617
1617
|
end
|
1618
1618
|
|
1619
|
-
|
1619
|
+
api_params = {
|
1620
1620
|
onDelete: on_delete,
|
1621
1621
|
}
|
1622
1622
|
|
1623
|
-
|
1623
|
+
api_headers = {
|
1624
1624
|
"content-type": 'application/json',
|
1625
1625
|
}
|
1626
1626
|
|
1627
1627
|
@client.call(
|
1628
1628
|
method: 'PATCH',
|
1629
1629
|
path: api_path,
|
1630
|
-
headers:
|
1631
|
-
params:
|
1630
|
+
headers: api_headers,
|
1631
|
+
params: api_params,
|
1632
1632
|
response_type: Models::AttributeRelationship
|
1633
1633
|
)
|
1634
1634
|
end
|
@@ -1655,19 +1655,19 @@ module Appwrite
|
|
1655
1655
|
raise Appwrite::Exception.new('Missing required parameter: "collectionId"')
|
1656
1656
|
end
|
1657
1657
|
|
1658
|
-
|
1658
|
+
api_params = {
|
1659
1659
|
queries: queries,
|
1660
1660
|
}
|
1661
1661
|
|
1662
|
-
|
1662
|
+
api_headers = {
|
1663
1663
|
"content-type": 'application/json',
|
1664
1664
|
}
|
1665
1665
|
|
1666
1666
|
@client.call(
|
1667
1667
|
method: 'GET',
|
1668
1668
|
path: api_path,
|
1669
|
-
headers:
|
1670
|
-
params:
|
1669
|
+
headers: api_headers,
|
1670
|
+
params: api_params,
|
1671
1671
|
response_type: Models::DocumentList
|
1672
1672
|
)
|
1673
1673
|
end
|
@@ -1706,21 +1706,21 @@ module Appwrite
|
|
1706
1706
|
raise Appwrite::Exception.new('Missing required parameter: "data"')
|
1707
1707
|
end
|
1708
1708
|
|
1709
|
-
|
1709
|
+
api_params = {
|
1710
1710
|
documentId: document_id,
|
1711
1711
|
data: data,
|
1712
1712
|
permissions: permissions,
|
1713
1713
|
}
|
1714
1714
|
|
1715
|
-
|
1715
|
+
api_headers = {
|
1716
1716
|
"content-type": 'application/json',
|
1717
1717
|
}
|
1718
1718
|
|
1719
1719
|
@client.call(
|
1720
1720
|
method: 'POST',
|
1721
1721
|
path: api_path,
|
1722
|
-
headers:
|
1723
|
-
params:
|
1722
|
+
headers: api_headers,
|
1723
|
+
params: api_params,
|
1724
1724
|
response_type: Models::Document
|
1725
1725
|
)
|
1726
1726
|
end
|
@@ -1753,19 +1753,19 @@ module Appwrite
|
|
1753
1753
|
raise Appwrite::Exception.new('Missing required parameter: "documentId"')
|
1754
1754
|
end
|
1755
1755
|
|
1756
|
-
|
1756
|
+
api_params = {
|
1757
1757
|
queries: queries,
|
1758
1758
|
}
|
1759
1759
|
|
1760
|
-
|
1760
|
+
api_headers = {
|
1761
1761
|
"content-type": 'application/json',
|
1762
1762
|
}
|
1763
1763
|
|
1764
1764
|
@client.call(
|
1765
1765
|
method: 'GET',
|
1766
1766
|
path: api_path,
|
1767
|
-
headers:
|
1768
|
-
params:
|
1767
|
+
headers: api_headers,
|
1768
|
+
params: api_params,
|
1769
1769
|
response_type: Models::Document
|
1770
1770
|
)
|
1771
1771
|
end
|
@@ -1799,20 +1799,20 @@ module Appwrite
|
|
1799
1799
|
raise Appwrite::Exception.new('Missing required parameter: "documentId"')
|
1800
1800
|
end
|
1801
1801
|
|
1802
|
-
|
1802
|
+
api_params = {
|
1803
1803
|
data: data,
|
1804
1804
|
permissions: permissions,
|
1805
1805
|
}
|
1806
1806
|
|
1807
|
-
|
1807
|
+
api_headers = {
|
1808
1808
|
"content-type": 'application/json',
|
1809
1809
|
}
|
1810
1810
|
|
1811
1811
|
@client.call(
|
1812
1812
|
method: 'PATCH',
|
1813
1813
|
path: api_path,
|
1814
|
-
headers:
|
1815
|
-
params:
|
1814
|
+
headers: api_headers,
|
1815
|
+
params: api_params,
|
1816
1816
|
response_type: Models::Document
|
1817
1817
|
)
|
1818
1818
|
end
|
@@ -1843,18 +1843,18 @@ module Appwrite
|
|
1843
1843
|
raise Appwrite::Exception.new('Missing required parameter: "documentId"')
|
1844
1844
|
end
|
1845
1845
|
|
1846
|
-
|
1846
|
+
api_params = {
|
1847
1847
|
}
|
1848
1848
|
|
1849
|
-
|
1849
|
+
api_headers = {
|
1850
1850
|
"content-type": 'application/json',
|
1851
1851
|
}
|
1852
1852
|
|
1853
1853
|
@client.call(
|
1854
1854
|
method: 'DELETE',
|
1855
1855
|
path: api_path,
|
1856
|
-
headers:
|
1857
|
-
params:
|
1856
|
+
headers: api_headers,
|
1857
|
+
params: api_params,
|
1858
1858
|
)
|
1859
1859
|
end
|
1860
1860
|
|
@@ -1879,19 +1879,19 @@ module Appwrite
|
|
1879
1879
|
raise Appwrite::Exception.new('Missing required parameter: "collectionId"')
|
1880
1880
|
end
|
1881
1881
|
|
1882
|
-
|
1882
|
+
api_params = {
|
1883
1883
|
queries: queries,
|
1884
1884
|
}
|
1885
1885
|
|
1886
|
-
|
1886
|
+
api_headers = {
|
1887
1887
|
"content-type": 'application/json',
|
1888
1888
|
}
|
1889
1889
|
|
1890
1890
|
@client.call(
|
1891
1891
|
method: 'GET',
|
1892
1892
|
path: api_path,
|
1893
|
-
headers:
|
1894
|
-
params:
|
1893
|
+
headers: api_headers,
|
1894
|
+
params: api_params,
|
1895
1895
|
response_type: Models::IndexList
|
1896
1896
|
)
|
1897
1897
|
end
|
@@ -1932,22 +1932,22 @@ module Appwrite
|
|
1932
1932
|
raise Appwrite::Exception.new('Missing required parameter: "attributes"')
|
1933
1933
|
end
|
1934
1934
|
|
1935
|
-
|
1935
|
+
api_params = {
|
1936
1936
|
key: key,
|
1937
1937
|
type: type,
|
1938
1938
|
attributes: attributes,
|
1939
1939
|
orders: orders,
|
1940
1940
|
}
|
1941
1941
|
|
1942
|
-
|
1942
|
+
api_headers = {
|
1943
1943
|
"content-type": 'application/json',
|
1944
1944
|
}
|
1945
1945
|
|
1946
1946
|
@client.call(
|
1947
1947
|
method: 'POST',
|
1948
1948
|
path: api_path,
|
1949
|
-
headers:
|
1950
|
-
params:
|
1949
|
+
headers: api_headers,
|
1950
|
+
params: api_params,
|
1951
1951
|
response_type: Models::Index
|
1952
1952
|
)
|
1953
1953
|
end
|
@@ -1978,18 +1978,18 @@ module Appwrite
|
|
1978
1978
|
raise Appwrite::Exception.new('Missing required parameter: "key"')
|
1979
1979
|
end
|
1980
1980
|
|
1981
|
-
|
1981
|
+
api_params = {
|
1982
1982
|
}
|
1983
1983
|
|
1984
|
-
|
1984
|
+
api_headers = {
|
1985
1985
|
"content-type": 'application/json',
|
1986
1986
|
}
|
1987
1987
|
|
1988
1988
|
@client.call(
|
1989
1989
|
method: 'GET',
|
1990
1990
|
path: api_path,
|
1991
|
-
headers:
|
1992
|
-
params:
|
1991
|
+
headers: api_headers,
|
1992
|
+
params: api_params,
|
1993
1993
|
response_type: Models::Index
|
1994
1994
|
)
|
1995
1995
|
end
|
@@ -2020,18 +2020,18 @@ module Appwrite
|
|
2020
2020
|
raise Appwrite::Exception.new('Missing required parameter: "key"')
|
2021
2021
|
end
|
2022
2022
|
|
2023
|
-
|
2023
|
+
api_params = {
|
2024
2024
|
}
|
2025
2025
|
|
2026
|
-
|
2026
|
+
api_headers = {
|
2027
2027
|
"content-type": 'application/json',
|
2028
2028
|
}
|
2029
2029
|
|
2030
2030
|
@client.call(
|
2031
2031
|
method: 'DELETE',
|
2032
2032
|
path: api_path,
|
2033
|
-
headers:
|
2034
|
-
params:
|
2033
|
+
headers: api_headers,
|
2034
|
+
params: api_params,
|
2035
2035
|
)
|
2036
2036
|
end
|
2037
2037
|
|