appwrite 30.0.1 → 30.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/appwrite/client.rb +44 -24
- data/lib/appwrite/enums/appwrite_migration_resource.rb +46 -0
- data/lib/appwrite/enums/build_runtime.rb +4 -0
- data/lib/appwrite/enums/environment_resource.rb +40 -0
- data/lib/appwrite/enums/firebase_migration_resource.rb +16 -0
- data/lib/appwrite/enums/n_host_migration_resource.rb +17 -0
- data/lib/appwrite/enums/on_duplicate.rb +9 -0
- data/lib/appwrite/enums/project_policy_id.rb +1 -0
- data/lib/appwrite/enums/runtime.rb +4 -0
- data/lib/appwrite/enums/supabase_migration_resource.rb +17 -0
- data/lib/appwrite/models/billing_plan.rb +15 -0
- data/lib/appwrite/models/migration.rb +128 -0
- data/lib/appwrite/models/migration_list.rb +33 -0
- data/lib/appwrite/models/policy_deny_realtime_guests.rb +33 -0
- data/lib/appwrite/services/account.rb +19 -19
- data/lib/appwrite/services/activities.rb +1 -1
- data/lib/appwrite/services/advisor.rb +5 -5
- data/lib/appwrite/services/apps.rb +25 -25
- data/lib/appwrite/services/avatars.rb +3 -3
- data/lib/appwrite/services/backups.rb +6 -6
- data/lib/appwrite/services/databases.rb +157 -157
- data/lib/appwrite/services/documents_db.rb +63 -63
- data/lib/appwrite/services/domains.rb +77 -77
- data/lib/appwrite/services/functions.rb +33 -33
- data/lib/appwrite/services/messaging.rb +30 -30
- data/lib/appwrite/services/migrations.rb +653 -0
- data/lib/appwrite/services/mongo.rb +37 -37
- data/lib/appwrite/services/mysql.rb +40 -40
- data/lib/appwrite/services/oauth2.rb +14 -14
- data/lib/appwrite/services/organization.rb +17 -17
- data/lib/appwrite/services/postgresql.rb +44 -44
- data/lib/appwrite/services/presences.rb +4 -4
- data/lib/appwrite/services/project.rb +105 -28
- data/lib/appwrite/services/proxy.rb +3 -3
- data/lib/appwrite/services/sites.rb +32 -32
- data/lib/appwrite/services/storage.rb +17 -17
- data/lib/appwrite/services/tables_db.rb +169 -169
- data/lib/appwrite/services/teams.rb +23 -23
- data/lib/appwrite/services/tokens.rb +7 -7
- data/lib/appwrite/services/users.rb +50 -50
- data/lib/appwrite/services/vectors_db.rb +55 -55
- data/lib/appwrite/services/waf.rb +57 -35
- data/lib/appwrite/services/webhooks.rb +4 -4
- data/lib/appwrite.rb +12 -0
- metadata +12 -2
|
@@ -170,7 +170,7 @@ module Appwrite
|
|
|
170
170
|
end
|
|
171
171
|
|
|
172
172
|
api_path = '/organization/installations/{installationId}'
|
|
173
|
-
.gsub('{installationId}', installation_id)
|
|
173
|
+
.gsub('{installationId}', @client.encode_path(installation_id))
|
|
174
174
|
|
|
175
175
|
api_params = {}
|
|
176
176
|
|
|
@@ -206,7 +206,7 @@ module Appwrite
|
|
|
206
206
|
end
|
|
207
207
|
|
|
208
208
|
api_path = '/organization/installations/{installationId}'
|
|
209
|
-
.gsub('{installationId}', installation_id)
|
|
209
|
+
.gsub('{installationId}', @client.encode_path(installation_id))
|
|
210
210
|
|
|
211
211
|
api_params = {
|
|
212
212
|
authorizationDetails: authorization_details,
|
|
@@ -242,7 +242,7 @@ module Appwrite
|
|
|
242
242
|
end
|
|
243
243
|
|
|
244
244
|
api_path = '/organization/installations/{installationId}'
|
|
245
|
-
.gsub('{installationId}', installation_id)
|
|
245
|
+
.gsub('{installationId}', @client.encode_path(installation_id))
|
|
246
246
|
|
|
247
247
|
api_params = {}
|
|
248
248
|
|
|
@@ -357,7 +357,7 @@ module Appwrite
|
|
|
357
357
|
end
|
|
358
358
|
|
|
359
359
|
api_path = '/organization/memberships/{membershipId}'
|
|
360
|
-
.gsub('{membershipId}', membership_id)
|
|
360
|
+
.gsub('{membershipId}', @client.encode_path(membership_id))
|
|
361
361
|
|
|
362
362
|
api_params = {}
|
|
363
363
|
|
|
@@ -394,7 +394,7 @@ module Appwrite
|
|
|
394
394
|
end
|
|
395
395
|
|
|
396
396
|
api_path = '/organization/memberships/{membershipId}'
|
|
397
|
-
.gsub('{membershipId}', membership_id)
|
|
397
|
+
.gsub('{membershipId}', @client.encode_path(membership_id))
|
|
398
398
|
|
|
399
399
|
api_params = {
|
|
400
400
|
roles: roles,
|
|
@@ -430,7 +430,7 @@ module Appwrite
|
|
|
430
430
|
end
|
|
431
431
|
|
|
432
432
|
api_path = '/organization/memberships/{membershipId}'
|
|
433
|
-
.gsub('{membershipId}', membership_id)
|
|
433
|
+
.gsub('{membershipId}', @client.encode_path(membership_id))
|
|
434
434
|
|
|
435
435
|
api_params = {}
|
|
436
436
|
|
|
@@ -539,7 +539,7 @@ module Appwrite
|
|
|
539
539
|
end
|
|
540
540
|
|
|
541
541
|
api_path = '/organization/projects/{projectId}'
|
|
542
|
-
.gsub('{projectId}', project_id)
|
|
542
|
+
.gsub('{projectId}', @client.encode_path(project_id))
|
|
543
543
|
|
|
544
544
|
api_params = {}
|
|
545
545
|
|
|
@@ -576,7 +576,7 @@ module Appwrite
|
|
|
576
576
|
end
|
|
577
577
|
|
|
578
578
|
api_path = '/organization/projects/{projectId}'
|
|
579
|
-
.gsub('{projectId}', project_id)
|
|
579
|
+
.gsub('{projectId}', @client.encode_path(project_id))
|
|
580
580
|
|
|
581
581
|
api_params = {
|
|
582
582
|
name: name,
|
|
@@ -610,7 +610,7 @@ module Appwrite
|
|
|
610
610
|
end
|
|
611
611
|
|
|
612
612
|
api_path = '/organization/projects/{projectId}'
|
|
613
|
-
.gsub('{projectId}', project_id)
|
|
613
|
+
.gsub('{projectId}', @client.encode_path(project_id))
|
|
614
614
|
|
|
615
615
|
api_params = {}
|
|
616
616
|
|
|
@@ -645,7 +645,7 @@ module Appwrite
|
|
|
645
645
|
end
|
|
646
646
|
|
|
647
647
|
api_path = '/organization/projects/{projectId}/keys'
|
|
648
|
-
.gsub('{projectId}', project_id)
|
|
648
|
+
.gsub('{projectId}', @client.encode_path(project_id))
|
|
649
649
|
|
|
650
650
|
api_params = {
|
|
651
651
|
queries: queries,
|
|
@@ -696,7 +696,7 @@ module Appwrite
|
|
|
696
696
|
end
|
|
697
697
|
|
|
698
698
|
api_path = '/organization/projects/{projectId}/keys/ephemeral'
|
|
699
|
-
.gsub('{projectId}', project_id)
|
|
699
|
+
.gsub('{projectId}', @client.encode_path(project_id))
|
|
700
700
|
|
|
701
701
|
api_params = {
|
|
702
702
|
scopes: scopes,
|
|
@@ -737,8 +737,8 @@ module Appwrite
|
|
|
737
737
|
end
|
|
738
738
|
|
|
739
739
|
api_path = '/organization/projects/{projectId}/keys/{keyId}'
|
|
740
|
-
.gsub('{projectId}', project_id)
|
|
741
|
-
.gsub('{keyId}', key_id)
|
|
740
|
+
.gsub('{projectId}', @client.encode_path(project_id))
|
|
741
|
+
.gsub('{keyId}', @client.encode_path(key_id))
|
|
742
742
|
|
|
743
743
|
api_params = {}
|
|
744
744
|
|
|
@@ -792,8 +792,8 @@ module Appwrite
|
|
|
792
792
|
end
|
|
793
793
|
|
|
794
794
|
api_path = '/organization/projects/{projectId}/keys/{keyId}'
|
|
795
|
-
.gsub('{projectId}', project_id)
|
|
796
|
-
.gsub('{keyId}', key_id)
|
|
795
|
+
.gsub('{projectId}', @client.encode_path(project_id))
|
|
796
|
+
.gsub('{keyId}', @client.encode_path(key_id))
|
|
797
797
|
|
|
798
798
|
api_params = {
|
|
799
799
|
name: name,
|
|
@@ -837,8 +837,8 @@ module Appwrite
|
|
|
837
837
|
end
|
|
838
838
|
|
|
839
839
|
api_path = '/organization/projects/{projectId}/keys/{keyId}'
|
|
840
|
-
.gsub('{projectId}', project_id)
|
|
841
|
-
.gsub('{keyId}', key_id)
|
|
840
|
+
.gsub('{projectId}', @client.encode_path(project_id))
|
|
841
|
+
.gsub('{keyId}', @client.encode_path(key_id))
|
|
842
842
|
|
|
843
843
|
api_params = {}
|
|
844
844
|
|
|
@@ -153,7 +153,7 @@ module Appwrite
|
|
|
153
153
|
end
|
|
154
154
|
|
|
155
155
|
api_path = '/postgresql/{databaseId}'
|
|
156
|
-
.gsub('{databaseId}', database_id)
|
|
156
|
+
.gsub('{databaseId}', @client.encode_path(database_id))
|
|
157
157
|
|
|
158
158
|
api_params = {}
|
|
159
159
|
|
|
@@ -227,7 +227,7 @@ module Appwrite
|
|
|
227
227
|
end
|
|
228
228
|
|
|
229
229
|
api_path = '/postgresql/{databaseId}'
|
|
230
|
-
.gsub('{databaseId}', database_id)
|
|
230
|
+
.gsub('{databaseId}', @client.encode_path(database_id))
|
|
231
231
|
|
|
232
232
|
api_params = {
|
|
233
233
|
name: name,
|
|
@@ -283,7 +283,7 @@ module Appwrite
|
|
|
283
283
|
end
|
|
284
284
|
|
|
285
285
|
api_path = '/postgresql/{databaseId}'
|
|
286
|
-
.gsub('{databaseId}', database_id)
|
|
286
|
+
.gsub('{databaseId}', @client.encode_path(database_id))
|
|
287
287
|
|
|
288
288
|
api_params = {}
|
|
289
289
|
|
|
@@ -319,7 +319,7 @@ module Appwrite
|
|
|
319
319
|
end
|
|
320
320
|
|
|
321
321
|
api_path = '/postgresql/{databaseId}/backups'
|
|
322
|
-
.gsub('{databaseId}', database_id)
|
|
322
|
+
.gsub('{databaseId}', @client.encode_path(database_id))
|
|
323
323
|
|
|
324
324
|
api_params = {
|
|
325
325
|
queries: queries,
|
|
@@ -356,7 +356,7 @@ module Appwrite
|
|
|
356
356
|
end
|
|
357
357
|
|
|
358
358
|
api_path = '/postgresql/{databaseId}/backups'
|
|
359
|
-
.gsub('{databaseId}', database_id)
|
|
359
|
+
.gsub('{databaseId}', @client.encode_path(database_id))
|
|
360
360
|
|
|
361
361
|
api_params = {
|
|
362
362
|
type: type,
|
|
@@ -394,7 +394,7 @@ module Appwrite
|
|
|
394
394
|
end
|
|
395
395
|
|
|
396
396
|
api_path = '/postgresql/{databaseId}/backups/policies'
|
|
397
|
-
.gsub('{databaseId}', database_id)
|
|
397
|
+
.gsub('{databaseId}', @client.encode_path(database_id))
|
|
398
398
|
|
|
399
399
|
api_params = {
|
|
400
400
|
queries: queries,
|
|
@@ -456,7 +456,7 @@ module Appwrite
|
|
|
456
456
|
end
|
|
457
457
|
|
|
458
458
|
api_path = '/postgresql/{databaseId}/backups/policies'
|
|
459
|
-
.gsub('{databaseId}', database_id)
|
|
459
|
+
.gsub('{databaseId}', @client.encode_path(database_id))
|
|
460
460
|
|
|
461
461
|
api_params = {
|
|
462
462
|
policyId: policy_id,
|
|
@@ -501,8 +501,8 @@ module Appwrite
|
|
|
501
501
|
end
|
|
502
502
|
|
|
503
503
|
api_path = '/postgresql/{databaseId}/backups/policies/{policyId}'
|
|
504
|
-
.gsub('{databaseId}', database_id)
|
|
505
|
-
.gsub('{policyId}', policy_id)
|
|
504
|
+
.gsub('{databaseId}', @client.encode_path(database_id))
|
|
505
|
+
.gsub('{policyId}', @client.encode_path(policy_id))
|
|
506
506
|
|
|
507
507
|
api_params = {}
|
|
508
508
|
|
|
@@ -547,8 +547,8 @@ module Appwrite
|
|
|
547
547
|
end
|
|
548
548
|
|
|
549
549
|
api_path = '/postgresql/{databaseId}/backups/policies/{policyId}'
|
|
550
|
-
.gsub('{databaseId}', database_id)
|
|
551
|
-
.gsub('{policyId}', policy_id)
|
|
550
|
+
.gsub('{databaseId}', @client.encode_path(database_id))
|
|
551
|
+
.gsub('{policyId}', @client.encode_path(policy_id))
|
|
552
552
|
|
|
553
553
|
api_params = {
|
|
554
554
|
name: name,
|
|
@@ -592,8 +592,8 @@ module Appwrite
|
|
|
592
592
|
end
|
|
593
593
|
|
|
594
594
|
api_path = '/postgresql/{databaseId}/backups/policies/{policyId}'
|
|
595
|
-
.gsub('{databaseId}', database_id)
|
|
596
|
-
.gsub('{policyId}', policy_id)
|
|
595
|
+
.gsub('{databaseId}', @client.encode_path(database_id))
|
|
596
|
+
.gsub('{policyId}', @client.encode_path(policy_id))
|
|
597
597
|
|
|
598
598
|
api_params = {}
|
|
599
599
|
|
|
@@ -656,7 +656,7 @@ module Appwrite
|
|
|
656
656
|
end
|
|
657
657
|
|
|
658
658
|
api_path = '/postgresql/{databaseId}/backups/storage'
|
|
659
|
-
.gsub('{databaseId}', database_id)
|
|
659
|
+
.gsub('{databaseId}', @client.encode_path(database_id))
|
|
660
660
|
|
|
661
661
|
api_params = {
|
|
662
662
|
provider: provider,
|
|
@@ -703,8 +703,8 @@ module Appwrite
|
|
|
703
703
|
end
|
|
704
704
|
|
|
705
705
|
api_path = '/postgresql/{databaseId}/backups/{backupId}'
|
|
706
|
-
.gsub('{databaseId}', database_id)
|
|
707
|
-
.gsub('{backupId}', backup_id)
|
|
706
|
+
.gsub('{databaseId}', @client.encode_path(database_id))
|
|
707
|
+
.gsub('{backupId}', @client.encode_path(backup_id))
|
|
708
708
|
|
|
709
709
|
api_params = {}
|
|
710
710
|
|
|
@@ -742,8 +742,8 @@ module Appwrite
|
|
|
742
742
|
end
|
|
743
743
|
|
|
744
744
|
api_path = '/postgresql/{databaseId}/backups/{backupId}'
|
|
745
|
-
.gsub('{databaseId}', database_id)
|
|
746
|
-
.gsub('{backupId}', backup_id)
|
|
745
|
+
.gsub('{databaseId}', @client.encode_path(database_id))
|
|
746
|
+
.gsub('{backupId}', @client.encode_path(backup_id))
|
|
747
747
|
|
|
748
748
|
api_params = {}
|
|
749
749
|
|
|
@@ -775,7 +775,7 @@ module Appwrite
|
|
|
775
775
|
end
|
|
776
776
|
|
|
777
777
|
api_path = '/postgresql/{databaseId}/branches'
|
|
778
|
-
.gsub('{databaseId}', database_id)
|
|
778
|
+
.gsub('{databaseId}', @client.encode_path(database_id))
|
|
779
779
|
|
|
780
780
|
api_params = {}
|
|
781
781
|
|
|
@@ -814,7 +814,7 @@ module Appwrite
|
|
|
814
814
|
end
|
|
815
815
|
|
|
816
816
|
api_path = '/postgresql/{databaseId}/branches'
|
|
817
|
-
.gsub('{databaseId}', database_id)
|
|
817
|
+
.gsub('{databaseId}', @client.encode_path(database_id))
|
|
818
818
|
|
|
819
819
|
api_params = {
|
|
820
820
|
branchId: branch_id,
|
|
@@ -857,8 +857,8 @@ module Appwrite
|
|
|
857
857
|
end
|
|
858
858
|
|
|
859
859
|
api_path = '/postgresql/{databaseId}/branches/{branchId}'
|
|
860
|
-
.gsub('{databaseId}', database_id)
|
|
861
|
-
.gsub('{branchId}', branch_id)
|
|
860
|
+
.gsub('{databaseId}', @client.encode_path(database_id))
|
|
861
|
+
.gsub('{branchId}', @client.encode_path(branch_id))
|
|
862
862
|
|
|
863
863
|
api_params = {}
|
|
864
864
|
|
|
@@ -893,7 +893,7 @@ module Appwrite
|
|
|
893
893
|
end
|
|
894
894
|
|
|
895
895
|
api_path = '/postgresql/{databaseId}/credentials'
|
|
896
|
-
.gsub('{databaseId}', database_id)
|
|
896
|
+
.gsub('{databaseId}', @client.encode_path(database_id))
|
|
897
897
|
|
|
898
898
|
api_params = {}
|
|
899
899
|
|
|
@@ -947,7 +947,7 @@ module Appwrite
|
|
|
947
947
|
end
|
|
948
948
|
|
|
949
949
|
api_path = '/postgresql/{databaseId}/executions'
|
|
950
|
-
.gsub('{databaseId}', database_id)
|
|
950
|
+
.gsub('{databaseId}', @client.encode_path(database_id))
|
|
951
951
|
|
|
952
952
|
api_params = {
|
|
953
953
|
sql: sql,
|
|
@@ -983,7 +983,7 @@ module Appwrite
|
|
|
983
983
|
end
|
|
984
984
|
|
|
985
985
|
api_path = '/postgresql/{databaseId}/extensions'
|
|
986
|
-
.gsub('{databaseId}', database_id)
|
|
986
|
+
.gsub('{databaseId}', @client.encode_path(database_id))
|
|
987
987
|
|
|
988
988
|
api_params = {}
|
|
989
989
|
|
|
@@ -1021,7 +1021,7 @@ module Appwrite
|
|
|
1021
1021
|
end
|
|
1022
1022
|
|
|
1023
1023
|
api_path = '/postgresql/{databaseId}/extensions'
|
|
1024
|
-
.gsub('{databaseId}', database_id)
|
|
1024
|
+
.gsub('{databaseId}', @client.encode_path(database_id))
|
|
1025
1025
|
|
|
1026
1026
|
api_params = {
|
|
1027
1027
|
name: name,
|
|
@@ -1062,8 +1062,8 @@ module Appwrite
|
|
|
1062
1062
|
end
|
|
1063
1063
|
|
|
1064
1064
|
api_path = '/postgresql/{databaseId}/extensions/{extensionName}'
|
|
1065
|
-
.gsub('{databaseId}', database_id)
|
|
1066
|
-
.gsub('{extensionName}', extension_name)
|
|
1065
|
+
.gsub('{databaseId}', @client.encode_path(database_id))
|
|
1066
|
+
.gsub('{extensionName}', @client.encode_path(extension_name))
|
|
1067
1067
|
|
|
1068
1068
|
api_params = {}
|
|
1069
1069
|
|
|
@@ -1105,7 +1105,7 @@ module Appwrite
|
|
|
1105
1105
|
end
|
|
1106
1106
|
|
|
1107
1107
|
api_path = '/postgresql/{databaseId}/failovers'
|
|
1108
|
-
.gsub('{databaseId}', database_id)
|
|
1108
|
+
.gsub('{databaseId}', @client.encode_path(database_id))
|
|
1109
1109
|
|
|
1110
1110
|
api_params = {
|
|
1111
1111
|
targetReplicaId: target_replica_id,
|
|
@@ -1153,7 +1153,7 @@ module Appwrite
|
|
|
1153
1153
|
end
|
|
1154
1154
|
|
|
1155
1155
|
api_path = '/postgresql/{databaseId}/maintenance'
|
|
1156
|
-
.gsub('{databaseId}', database_id)
|
|
1156
|
+
.gsub('{databaseId}', @client.encode_path(database_id))
|
|
1157
1157
|
|
|
1158
1158
|
api_params = {
|
|
1159
1159
|
day: day,
|
|
@@ -1199,7 +1199,7 @@ module Appwrite
|
|
|
1199
1199
|
end
|
|
1200
1200
|
|
|
1201
1201
|
api_path = '/postgresql/{databaseId}/migrations'
|
|
1202
|
-
.gsub('{databaseId}', database_id)
|
|
1202
|
+
.gsub('{databaseId}', @client.encode_path(database_id))
|
|
1203
1203
|
|
|
1204
1204
|
api_params = {
|
|
1205
1205
|
targetType: target_type,
|
|
@@ -1243,7 +1243,7 @@ module Appwrite
|
|
|
1243
1243
|
end
|
|
1244
1244
|
|
|
1245
1245
|
api_path = '/postgresql/{databaseId}/operations'
|
|
1246
|
-
.gsub('{databaseId}', database_id)
|
|
1246
|
+
.gsub('{databaseId}', @client.encode_path(database_id))
|
|
1247
1247
|
|
|
1248
1248
|
api_params = {
|
|
1249
1249
|
status: status,
|
|
@@ -1279,7 +1279,7 @@ module Appwrite
|
|
|
1279
1279
|
end
|
|
1280
1280
|
|
|
1281
1281
|
api_path = '/postgresql/{databaseId}/pitr'
|
|
1282
|
-
.gsub('{databaseId}', database_id)
|
|
1282
|
+
.gsub('{databaseId}', @client.encode_path(database_id))
|
|
1283
1283
|
|
|
1284
1284
|
api_params = {}
|
|
1285
1285
|
|
|
@@ -1311,7 +1311,7 @@ module Appwrite
|
|
|
1311
1311
|
end
|
|
1312
1312
|
|
|
1313
1313
|
api_path = '/postgresql/{databaseId}/pooler'
|
|
1314
|
-
.gsub('{databaseId}', database_id)
|
|
1314
|
+
.gsub('{databaseId}', @client.encode_path(database_id))
|
|
1315
1315
|
|
|
1316
1316
|
api_params = {}
|
|
1317
1317
|
|
|
@@ -1359,7 +1359,7 @@ module Appwrite
|
|
|
1359
1359
|
end
|
|
1360
1360
|
|
|
1361
1361
|
api_path = '/postgresql/{databaseId}/pooler'
|
|
1362
|
-
.gsub('{databaseId}', database_id)
|
|
1362
|
+
.gsub('{databaseId}', @client.encode_path(database_id))
|
|
1363
1363
|
|
|
1364
1364
|
api_params = {
|
|
1365
1365
|
mode: mode,
|
|
@@ -1401,7 +1401,7 @@ module Appwrite
|
|
|
1401
1401
|
end
|
|
1402
1402
|
|
|
1403
1403
|
api_path = '/postgresql/{databaseId}/replicas'
|
|
1404
|
-
.gsub('{databaseId}', database_id)
|
|
1404
|
+
.gsub('{databaseId}', @client.encode_path(database_id))
|
|
1405
1405
|
|
|
1406
1406
|
api_params = {}
|
|
1407
1407
|
|
|
@@ -1441,7 +1441,7 @@ module Appwrite
|
|
|
1441
1441
|
end
|
|
1442
1442
|
|
|
1443
1443
|
api_path = '/postgresql/{databaseId}/restorations'
|
|
1444
|
-
.gsub('{databaseId}', database_id)
|
|
1444
|
+
.gsub('{databaseId}', @client.encode_path(database_id))
|
|
1445
1445
|
|
|
1446
1446
|
api_params = {
|
|
1447
1447
|
status: status,
|
|
@@ -1505,7 +1505,7 @@ module Appwrite
|
|
|
1505
1505
|
end
|
|
1506
1506
|
|
|
1507
1507
|
api_path = '/postgresql/{databaseId}/restorations'
|
|
1508
|
-
.gsub('{databaseId}', database_id)
|
|
1508
|
+
.gsub('{databaseId}', @client.encode_path(database_id))
|
|
1509
1509
|
|
|
1510
1510
|
api_params = {
|
|
1511
1511
|
type: type,
|
|
@@ -1552,8 +1552,8 @@ module Appwrite
|
|
|
1552
1552
|
end
|
|
1553
1553
|
|
|
1554
1554
|
api_path = '/postgresql/{databaseId}/restorations/{restorationId}'
|
|
1555
|
-
.gsub('{databaseId}', database_id)
|
|
1556
|
-
.gsub('{restorationId}', restoration_id)
|
|
1555
|
+
.gsub('{databaseId}', @client.encode_path(database_id))
|
|
1556
|
+
.gsub('{restorationId}', @client.encode_path(restoration_id))
|
|
1557
1557
|
|
|
1558
1558
|
api_params = {}
|
|
1559
1559
|
|
|
@@ -1595,8 +1595,8 @@ module Appwrite
|
|
|
1595
1595
|
end
|
|
1596
1596
|
|
|
1597
1597
|
api_path = '/postgresql/{databaseId}/restorations/{restorationId}/promotions'
|
|
1598
|
-
.gsub('{databaseId}', database_id)
|
|
1599
|
-
.gsub('{restorationId}', restoration_id)
|
|
1598
|
+
.gsub('{databaseId}', @client.encode_path(database_id))
|
|
1599
|
+
.gsub('{restorationId}', @client.encode_path(restoration_id))
|
|
1600
1600
|
|
|
1601
1601
|
api_params = {}
|
|
1602
1602
|
|
|
@@ -1630,7 +1630,7 @@ module Appwrite
|
|
|
1630
1630
|
end
|
|
1631
1631
|
|
|
1632
1632
|
api_path = '/postgresql/{databaseId}/status'
|
|
1633
|
-
.gsub('{databaseId}', database_id)
|
|
1633
|
+
.gsub('{databaseId}', @client.encode_path(database_id))
|
|
1634
1634
|
|
|
1635
1635
|
api_params = {}
|
|
1636
1636
|
|
|
@@ -1668,7 +1668,7 @@ module Appwrite
|
|
|
1668
1668
|
end
|
|
1669
1669
|
|
|
1670
1670
|
api_path = '/postgresql/{databaseId}/upgrades'
|
|
1671
|
-
.gsub('{databaseId}', database_id)
|
|
1671
|
+
.gsub('{databaseId}', @client.encode_path(database_id))
|
|
1672
1672
|
|
|
1673
1673
|
api_params = {
|
|
1674
1674
|
targetVersion: target_version,
|
|
@@ -56,7 +56,7 @@ module Appwrite
|
|
|
56
56
|
end
|
|
57
57
|
|
|
58
58
|
api_path = '/presences/{presenceId}'
|
|
59
|
-
.gsub('{presenceId}', presence_id)
|
|
59
|
+
.gsub('{presenceId}', @client.encode_path(presence_id))
|
|
60
60
|
|
|
61
61
|
api_params = {}
|
|
62
62
|
|
|
@@ -106,7 +106,7 @@ module Appwrite
|
|
|
106
106
|
end
|
|
107
107
|
|
|
108
108
|
api_path = '/presences/{presenceId}'
|
|
109
|
-
.gsub('{presenceId}', presence_id)
|
|
109
|
+
.gsub('{presenceId}', @client.encode_path(presence_id))
|
|
110
110
|
|
|
111
111
|
api_params = {
|
|
112
112
|
userId: user_id,
|
|
@@ -162,7 +162,7 @@ module Appwrite
|
|
|
162
162
|
end
|
|
163
163
|
|
|
164
164
|
api_path = '/presences/{presenceId}'
|
|
165
|
-
.gsub('{presenceId}', presence_id)
|
|
165
|
+
.gsub('{presenceId}', @client.encode_path(presence_id))
|
|
166
166
|
|
|
167
167
|
api_params = {
|
|
168
168
|
userId: user_id,
|
|
@@ -202,7 +202,7 @@ module Appwrite
|
|
|
202
202
|
end
|
|
203
203
|
|
|
204
204
|
api_path = '/presences/{presenceId}'
|
|
205
|
-
.gsub('{presenceId}', presence_id)
|
|
205
|
+
.gsub('{presenceId}', @client.encode_path(presence_id))
|
|
206
206
|
|
|
207
207
|
api_params = {}
|
|
208
208
|
|