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
|
@@ -182,7 +182,7 @@ module Appwrite
|
|
|
182
182
|
end
|
|
183
183
|
|
|
184
184
|
api_path = '/domains/{domainId}'
|
|
185
|
-
.gsub('{domainId}', domain_id)
|
|
185
|
+
.gsub('{domainId}', @client.encode_path(domain_id))
|
|
186
186
|
|
|
187
187
|
api_params = {}
|
|
188
188
|
|
|
@@ -216,7 +216,7 @@ module Appwrite
|
|
|
216
216
|
end
|
|
217
217
|
|
|
218
218
|
api_path = '/domains/{domainId}'
|
|
219
|
-
.gsub('{domainId}', domain_id)
|
|
219
|
+
.gsub('{domainId}', @client.encode_path(domain_id))
|
|
220
220
|
|
|
221
221
|
api_params = {}
|
|
222
222
|
|
|
@@ -251,7 +251,7 @@ module Appwrite
|
|
|
251
251
|
end
|
|
252
252
|
|
|
253
253
|
api_path = '/domains/{domainId}/nameservers'
|
|
254
|
-
.gsub('{domainId}', domain_id)
|
|
254
|
+
.gsub('{domainId}', @client.encode_path(domain_id))
|
|
255
255
|
|
|
256
256
|
api_params = {
|
|
257
257
|
nameservers: nameservers,
|
|
@@ -289,7 +289,7 @@ module Appwrite
|
|
|
289
289
|
end
|
|
290
290
|
|
|
291
291
|
api_path = '/domains/{domainId}/nameservers/verification'
|
|
292
|
-
.gsub('{domainId}', domain_id)
|
|
292
|
+
.gsub('{domainId}', @client.encode_path(domain_id))
|
|
293
293
|
|
|
294
294
|
api_params = {}
|
|
295
295
|
|
|
@@ -321,7 +321,7 @@ module Appwrite
|
|
|
321
321
|
end
|
|
322
322
|
|
|
323
323
|
api_path = '/domains/{domainId}/presets/google-workspace'
|
|
324
|
-
.gsub('{domainId}', domain_id)
|
|
324
|
+
.gsub('{domainId}', @client.encode_path(domain_id))
|
|
325
325
|
|
|
326
326
|
api_params = {}
|
|
327
327
|
|
|
@@ -354,7 +354,7 @@ module Appwrite
|
|
|
354
354
|
end
|
|
355
355
|
|
|
356
356
|
api_path = '/domains/{domainId}/presets/google-workspace'
|
|
357
|
-
.gsub('{domainId}', domain_id)
|
|
357
|
+
.gsub('{domainId}', @client.encode_path(domain_id))
|
|
358
358
|
|
|
359
359
|
api_params = {}
|
|
360
360
|
|
|
@@ -386,7 +386,7 @@ module Appwrite
|
|
|
386
386
|
end
|
|
387
387
|
|
|
388
388
|
api_path = '/domains/{domainId}/presets/icloud'
|
|
389
|
-
.gsub('{domainId}', domain_id)
|
|
389
|
+
.gsub('{domainId}', @client.encode_path(domain_id))
|
|
390
390
|
|
|
391
391
|
api_params = {}
|
|
392
392
|
|
|
@@ -419,7 +419,7 @@ module Appwrite
|
|
|
419
419
|
end
|
|
420
420
|
|
|
421
421
|
api_path = '/domains/{domainId}/presets/icloud'
|
|
422
|
-
.gsub('{domainId}', domain_id)
|
|
422
|
+
.gsub('{domainId}', @client.encode_path(domain_id))
|
|
423
423
|
|
|
424
424
|
api_params = {}
|
|
425
425
|
|
|
@@ -451,7 +451,7 @@ module Appwrite
|
|
|
451
451
|
end
|
|
452
452
|
|
|
453
453
|
api_path = '/domains/{domainId}/presets/mailgun'
|
|
454
|
-
.gsub('{domainId}', domain_id)
|
|
454
|
+
.gsub('{domainId}', @client.encode_path(domain_id))
|
|
455
455
|
|
|
456
456
|
api_params = {}
|
|
457
457
|
|
|
@@ -484,7 +484,7 @@ module Appwrite
|
|
|
484
484
|
end
|
|
485
485
|
|
|
486
486
|
api_path = '/domains/{domainId}/presets/mailgun'
|
|
487
|
-
.gsub('{domainId}', domain_id)
|
|
487
|
+
.gsub('{domainId}', @client.encode_path(domain_id))
|
|
488
488
|
|
|
489
489
|
api_params = {}
|
|
490
490
|
|
|
@@ -516,7 +516,7 @@ module Appwrite
|
|
|
516
516
|
end
|
|
517
517
|
|
|
518
518
|
api_path = '/domains/{domainId}/presets/outlook'
|
|
519
|
-
.gsub('{domainId}', domain_id)
|
|
519
|
+
.gsub('{domainId}', @client.encode_path(domain_id))
|
|
520
520
|
|
|
521
521
|
api_params = {}
|
|
522
522
|
|
|
@@ -549,7 +549,7 @@ module Appwrite
|
|
|
549
549
|
end
|
|
550
550
|
|
|
551
551
|
api_path = '/domains/{domainId}/presets/outlook'
|
|
552
|
-
.gsub('{domainId}', domain_id)
|
|
552
|
+
.gsub('{domainId}', @client.encode_path(domain_id))
|
|
553
553
|
|
|
554
554
|
api_params = {}
|
|
555
555
|
|
|
@@ -581,7 +581,7 @@ module Appwrite
|
|
|
581
581
|
end
|
|
582
582
|
|
|
583
583
|
api_path = '/domains/{domainId}/presets/proton-mail'
|
|
584
|
-
.gsub('{domainId}', domain_id)
|
|
584
|
+
.gsub('{domainId}', @client.encode_path(domain_id))
|
|
585
585
|
|
|
586
586
|
api_params = {}
|
|
587
587
|
|
|
@@ -614,7 +614,7 @@ module Appwrite
|
|
|
614
614
|
end
|
|
615
615
|
|
|
616
616
|
api_path = '/domains/{domainId}/presets/proton-mail'
|
|
617
|
-
.gsub('{domainId}', domain_id)
|
|
617
|
+
.gsub('{domainId}', @client.encode_path(domain_id))
|
|
618
618
|
|
|
619
619
|
api_params = {}
|
|
620
620
|
|
|
@@ -646,7 +646,7 @@ module Appwrite
|
|
|
646
646
|
end
|
|
647
647
|
|
|
648
648
|
api_path = '/domains/{domainId}/presets/zoho'
|
|
649
|
-
.gsub('{domainId}', domain_id)
|
|
649
|
+
.gsub('{domainId}', @client.encode_path(domain_id))
|
|
650
650
|
|
|
651
651
|
api_params = {}
|
|
652
652
|
|
|
@@ -679,7 +679,7 @@ module Appwrite
|
|
|
679
679
|
end
|
|
680
680
|
|
|
681
681
|
api_path = '/domains/{domainId}/presets/zoho'
|
|
682
|
-
.gsub('{domainId}', domain_id)
|
|
682
|
+
.gsub('{domainId}', @client.encode_path(domain_id))
|
|
683
683
|
|
|
684
684
|
api_params = {}
|
|
685
685
|
|
|
@@ -717,7 +717,7 @@ module Appwrite
|
|
|
717
717
|
end
|
|
718
718
|
|
|
719
719
|
api_path = '/domains/{domainId}/records'
|
|
720
|
-
.gsub('{domainId}', domain_id)
|
|
720
|
+
.gsub('{domainId}', @client.encode_path(domain_id))
|
|
721
721
|
|
|
722
722
|
api_params = {
|
|
723
723
|
queries: queries,
|
|
@@ -743,7 +743,7 @@ module Appwrite
|
|
|
743
743
|
# to an IPv4 address. The record value should be a valid IPv4 address.
|
|
744
744
|
#
|
|
745
745
|
# @param [String] domain_id Domain unique ID.
|
|
746
|
-
# @param [String] name Record name
|
|
746
|
+
# @param [String] name Record name relative to the domain, such as `www`, or `@` for the domain itself. A full name ending in the domain is also accepted and stored relative to it.
|
|
747
747
|
# @param [String] value IPv4 address for this A record.
|
|
748
748
|
# @param [Integer] ttl Time to live, in seconds. Must be between 1 and 2147483647.
|
|
749
749
|
# @param [String] comment A comment explaining what this record is for.
|
|
@@ -773,7 +773,7 @@ module Appwrite
|
|
|
773
773
|
end
|
|
774
774
|
|
|
775
775
|
api_path = '/domains/{domainId}/records/a'
|
|
776
|
-
.gsub('{domainId}', domain_id)
|
|
776
|
+
.gsub('{domainId}', @client.encode_path(domain_id))
|
|
777
777
|
|
|
778
778
|
api_params = {
|
|
779
779
|
name: name,
|
|
@@ -805,7 +805,7 @@ module Appwrite
|
|
|
805
805
|
#
|
|
806
806
|
# @param [String] domain_id Domain unique ID.
|
|
807
807
|
# @param [String] record_id DNS record unique ID.
|
|
808
|
-
# @param [String] name Record name
|
|
808
|
+
# @param [String] name Record name relative to the domain, such as `www`, or `@` for the domain itself. A full name ending in the domain is also accepted and stored relative to it.
|
|
809
809
|
# @param [String] value IPv4 address for this A record.
|
|
810
810
|
# @param [Integer] ttl Time to live, in seconds. Must be between 1 and 2147483647.
|
|
811
811
|
# @param [String] comment A comment explaining what this record is for.
|
|
@@ -840,8 +840,8 @@ module Appwrite
|
|
|
840
840
|
end
|
|
841
841
|
|
|
842
842
|
api_path = '/domains/{domainId}/records/a/{recordId}'
|
|
843
|
-
.gsub('{domainId}', domain_id)
|
|
844
|
-
.gsub('{recordId}', record_id)
|
|
843
|
+
.gsub('{domainId}', @client.encode_path(domain_id))
|
|
844
|
+
.gsub('{recordId}', @client.encode_path(record_id))
|
|
845
845
|
|
|
846
846
|
api_params = {
|
|
847
847
|
name: name,
|
|
@@ -871,7 +871,7 @@ module Appwrite
|
|
|
871
871
|
# address.
|
|
872
872
|
#
|
|
873
873
|
# @param [String] domain_id Domain unique ID.
|
|
874
|
-
# @param [String] name Record name
|
|
874
|
+
# @param [String] name Record name relative to the domain, such as `www`, or `@` for the domain itself. A full name ending in the domain is also accepted and stored relative to it.
|
|
875
875
|
# @param [String] value IPv6 address for this AAAA record.
|
|
876
876
|
# @param [Integer] ttl Time to live, in seconds. Must be between 1 and 2147483647.
|
|
877
877
|
# @param [String] comment A comment explaining what this record is for.
|
|
@@ -901,7 +901,7 @@ module Appwrite
|
|
|
901
901
|
end
|
|
902
902
|
|
|
903
903
|
api_path = '/domains/{domainId}/records/aaaa'
|
|
904
|
-
.gsub('{domainId}', domain_id)
|
|
904
|
+
.gsub('{domainId}', @client.encode_path(domain_id))
|
|
905
905
|
|
|
906
906
|
api_params = {
|
|
907
907
|
name: name,
|
|
@@ -933,7 +933,7 @@ module Appwrite
|
|
|
933
933
|
#
|
|
934
934
|
# @param [String] domain_id Domain unique ID.
|
|
935
935
|
# @param [String] record_id DNS record unique ID.
|
|
936
|
-
# @param [String] name Record name
|
|
936
|
+
# @param [String] name Record name relative to the domain, such as `www`, or `@` for the domain itself. A full name ending in the domain is also accepted and stored relative to it.
|
|
937
937
|
# @param [String] value IPv6 address for this AAAA record.
|
|
938
938
|
# @param [Integer] ttl Time to live, in seconds. Must be between 1 and 2147483647.
|
|
939
939
|
# @param [String] comment A comment for this record.
|
|
@@ -968,8 +968,8 @@ module Appwrite
|
|
|
968
968
|
end
|
|
969
969
|
|
|
970
970
|
api_path = '/domains/{domainId}/records/aaaa/{recordId}'
|
|
971
|
-
.gsub('{domainId}', domain_id)
|
|
972
|
-
.gsub('{recordId}', record_id)
|
|
971
|
+
.gsub('{domainId}', @client.encode_path(domain_id))
|
|
972
|
+
.gsub('{recordId}', @client.encode_path(record_id))
|
|
973
973
|
|
|
974
974
|
api_params = {
|
|
975
975
|
name: name,
|
|
@@ -1000,7 +1000,7 @@ module Appwrite
|
|
|
1000
1000
|
# map your domain to a target domain that may change its IP address.
|
|
1001
1001
|
#
|
|
1002
1002
|
# @param [String] domain_id Domain unique ID.
|
|
1003
|
-
# @param [String] name Record name.
|
|
1003
|
+
# @param [String] name Record name relative to the domain, such as `www`, or `@` for the domain itself. A full name ending in the domain is also accepted and stored relative to it.
|
|
1004
1004
|
# @param [String] value Target domain for this ALIAS record.
|
|
1005
1005
|
# @param [Integer] ttl Time to live, in seconds. Must be between 1 and 2147483647.
|
|
1006
1006
|
# @param [String] comment A comment for this record.
|
|
@@ -1030,7 +1030,7 @@ module Appwrite
|
|
|
1030
1030
|
end
|
|
1031
1031
|
|
|
1032
1032
|
api_path = '/domains/{domainId}/records/alias'
|
|
1033
|
-
.gsub('{domainId}', domain_id)
|
|
1033
|
+
.gsub('{domainId}', @client.encode_path(domain_id))
|
|
1034
1034
|
|
|
1035
1035
|
api_params = {
|
|
1036
1036
|
name: name,
|
|
@@ -1065,7 +1065,7 @@ module Appwrite
|
|
|
1065
1065
|
#
|
|
1066
1066
|
# @param [String] domain_id Domain unique ID.
|
|
1067
1067
|
# @param [String] record_id DNS record unique ID.
|
|
1068
|
-
# @param [String] name Record name.
|
|
1068
|
+
# @param [String] name Record name relative to the domain, such as `www`, or `@` for the domain itself. A full name ending in the domain is also accepted and stored relative to it.
|
|
1069
1069
|
# @param [String] value Target domain for this ALIAS record.
|
|
1070
1070
|
# @param [Integer] ttl Time to live, in seconds. Must be between 1 and 2147483647.
|
|
1071
1071
|
# @param [String] comment A comment for this record.
|
|
@@ -1100,8 +1100,8 @@ module Appwrite
|
|
|
1100
1100
|
end
|
|
1101
1101
|
|
|
1102
1102
|
api_path = '/domains/{domainId}/records/alias/{recordId}'
|
|
1103
|
-
.gsub('{domainId}', domain_id)
|
|
1104
|
-
.gsub('{recordId}', record_id)
|
|
1103
|
+
.gsub('{domainId}', @client.encode_path(domain_id))
|
|
1104
|
+
.gsub('{recordId}', @client.encode_path(record_id))
|
|
1105
1105
|
|
|
1106
1106
|
api_params = {
|
|
1107
1107
|
name: name,
|
|
@@ -1131,7 +1131,7 @@ module Appwrite
|
|
|
1131
1131
|
# your domain.
|
|
1132
1132
|
#
|
|
1133
1133
|
# @param [String] domain_id Domain unique ID.
|
|
1134
|
-
# @param [String] name Record name.
|
|
1134
|
+
# @param [String] name Record name relative to the domain, such as `www`, or `@` for the domain itself. A full name ending in the domain is also accepted and stored relative to it.
|
|
1135
1135
|
# @param [String] value CAA value (e.g. issuer domain).
|
|
1136
1136
|
# @param [Integer] ttl Time to live, in seconds. Must be between 1 and 2147483647.
|
|
1137
1137
|
# @param [String] comment A comment for this record.
|
|
@@ -1161,7 +1161,7 @@ module Appwrite
|
|
|
1161
1161
|
end
|
|
1162
1162
|
|
|
1163
1163
|
api_path = '/domains/{domainId}/records/caa'
|
|
1164
|
-
.gsub('{domainId}', domain_id)
|
|
1164
|
+
.gsub('{domainId}', @client.encode_path(domain_id))
|
|
1165
1165
|
|
|
1166
1166
|
api_params = {
|
|
1167
1167
|
name: name,
|
|
@@ -1193,7 +1193,7 @@ module Appwrite
|
|
|
1193
1193
|
#
|
|
1194
1194
|
# @param [String] domain_id Domain unique ID.
|
|
1195
1195
|
# @param [String] record_id DNS record unique ID.
|
|
1196
|
-
# @param [String] name Record name.
|
|
1196
|
+
# @param [String] name Record name relative to the domain, such as `www`, or `@` for the domain itself. A full name ending in the domain is also accepted and stored relative to it.
|
|
1197
1197
|
# @param [String] value CAA value (e.g. issuer domain).
|
|
1198
1198
|
# @param [Integer] ttl Time to live, in seconds. Must be between 1 and 2147483647.
|
|
1199
1199
|
# @param [String] comment A comment for this record.
|
|
@@ -1228,8 +1228,8 @@ module Appwrite
|
|
|
1228
1228
|
end
|
|
1229
1229
|
|
|
1230
1230
|
api_path = '/domains/{domainId}/records/caa/{recordId}'
|
|
1231
|
-
.gsub('{domainId}', domain_id)
|
|
1232
|
-
.gsub('{recordId}', record_id)
|
|
1231
|
+
.gsub('{domainId}', @client.encode_path(domain_id))
|
|
1232
|
+
.gsub('{recordId}', @client.encode_path(record_id))
|
|
1233
1233
|
|
|
1234
1234
|
api_params = {
|
|
1235
1235
|
name: name,
|
|
@@ -1262,7 +1262,7 @@ module Appwrite
|
|
|
1262
1262
|
# to 'example.wordpress.com'.
|
|
1263
1263
|
#
|
|
1264
1264
|
# @param [String] domain_id Domain unique ID.
|
|
1265
|
-
# @param [String] name Record name
|
|
1265
|
+
# @param [String] name Record name relative to the domain, such as `www`, or `@` for the domain itself. A full name ending in the domain is also accepted and stored relative to it.
|
|
1266
1266
|
# @param [String] value Canonical target for this CNAME record.
|
|
1267
1267
|
# @param [Integer] ttl Time to live, in seconds. Must be between 1 and 2147483647.
|
|
1268
1268
|
# @param [String] comment A comment for this record.
|
|
@@ -1292,7 +1292,7 @@ module Appwrite
|
|
|
1292
1292
|
end
|
|
1293
1293
|
|
|
1294
1294
|
api_path = '/domains/{domainId}/records/cname'
|
|
1295
|
-
.gsub('{domainId}', domain_id)
|
|
1295
|
+
.gsub('{domainId}', @client.encode_path(domain_id))
|
|
1296
1296
|
|
|
1297
1297
|
api_params = {
|
|
1298
1298
|
name: name,
|
|
@@ -1320,7 +1320,7 @@ module Appwrite
|
|
|
1320
1320
|
#
|
|
1321
1321
|
# @param [String] domain_id Domain unique ID.
|
|
1322
1322
|
# @param [String] record_id DNS record unique ID.
|
|
1323
|
-
# @param [String] name Record name
|
|
1323
|
+
# @param [String] name Record name relative to the domain, such as `www`, or `@` for the domain itself. A full name ending in the domain is also accepted and stored relative to it.
|
|
1324
1324
|
# @param [String] value Canonical target for this CNAME record.
|
|
1325
1325
|
# @param [Integer] ttl Time to live, in seconds. Must be between 1 and 2147483647.
|
|
1326
1326
|
# @param [String] comment A comment for this record.
|
|
@@ -1355,8 +1355,8 @@ module Appwrite
|
|
|
1355
1355
|
end
|
|
1356
1356
|
|
|
1357
1357
|
api_path = '/domains/{domainId}/records/cname/{recordId}'
|
|
1358
|
-
.gsub('{domainId}', domain_id)
|
|
1359
|
-
.gsub('{recordId}', record_id)
|
|
1358
|
+
.gsub('{domainId}', @client.encode_path(domain_id))
|
|
1359
|
+
.gsub('{recordId}', @client.encode_path(record_id))
|
|
1360
1360
|
|
|
1361
1361
|
api_params = {
|
|
1362
1362
|
name: name,
|
|
@@ -1385,7 +1385,7 @@ module Appwrite
|
|
|
1385
1385
|
# settings for your domain, enabling secure communication over SSL/TLS.
|
|
1386
1386
|
#
|
|
1387
1387
|
# @param [String] domain_id Domain unique ID.
|
|
1388
|
-
# @param [String] name Record name
|
|
1388
|
+
# @param [String] name Record name relative to the domain, such as `www`, or `@` for the domain itself. A full name ending in the domain is also accepted and stored relative to it.
|
|
1389
1389
|
# @param [String] value Target for the HTTPS record.
|
|
1390
1390
|
# @param [Integer] ttl Time to live, in seconds. Must be between 1 and 2147483647.
|
|
1391
1391
|
# @param [String] comment A comment for this record.
|
|
@@ -1415,7 +1415,7 @@ module Appwrite
|
|
|
1415
1415
|
end
|
|
1416
1416
|
|
|
1417
1417
|
api_path = '/domains/{domainId}/records/https'
|
|
1418
|
-
.gsub('{domainId}', domain_id)
|
|
1418
|
+
.gsub('{domainId}', @client.encode_path(domain_id))
|
|
1419
1419
|
|
|
1420
1420
|
api_params = {
|
|
1421
1421
|
name: name,
|
|
@@ -1447,7 +1447,7 @@ module Appwrite
|
|
|
1447
1447
|
#
|
|
1448
1448
|
# @param [String] domain_id Domain unique ID.
|
|
1449
1449
|
# @param [String] record_id DNS record unique ID.
|
|
1450
|
-
# @param [String] name Record name
|
|
1450
|
+
# @param [String] name Record name relative to the domain, such as `www`, or `@` for the domain itself. A full name ending in the domain is also accepted and stored relative to it.
|
|
1451
1451
|
# @param [String] value Target for the HTTPS record.
|
|
1452
1452
|
# @param [Integer] ttl Time to live, in seconds. Must be between 1 and 2147483647.
|
|
1453
1453
|
# @param [String] comment A comment for this record.
|
|
@@ -1482,8 +1482,8 @@ module Appwrite
|
|
|
1482
1482
|
end
|
|
1483
1483
|
|
|
1484
1484
|
api_path = '/domains/{domainId}/records/https/{recordId}'
|
|
1485
|
-
.gsub('{domainId}', domain_id)
|
|
1486
|
-
.gsub('{recordId}', record_id)
|
|
1485
|
+
.gsub('{domainId}', @client.encode_path(domain_id))
|
|
1486
|
+
.gsub('{recordId}', @client.encode_path(record_id))
|
|
1487
1487
|
|
|
1488
1488
|
api_params = {
|
|
1489
1489
|
name: name,
|
|
@@ -1516,7 +1516,7 @@ module Appwrite
|
|
|
1516
1516
|
# higher priority.
|
|
1517
1517
|
#
|
|
1518
1518
|
# @param [String] domain_id Domain unique ID.
|
|
1519
|
-
# @param [String] name Record name
|
|
1519
|
+
# @param [String] name Record name relative to the domain, such as `www`, or `@` for the domain itself. A full name ending in the domain is also accepted and stored relative to it.
|
|
1520
1520
|
# @param [String] value Mail server domain for this MX record.
|
|
1521
1521
|
# @param [Integer] ttl Time to live, in seconds. Must be between 1 and 2147483647.
|
|
1522
1522
|
# @param [Integer] priority MX priority. Lower values are tried first.
|
|
@@ -1552,7 +1552,7 @@ module Appwrite
|
|
|
1552
1552
|
end
|
|
1553
1553
|
|
|
1554
1554
|
api_path = '/domains/{domainId}/records/mx'
|
|
1555
|
-
.gsub('{domainId}', domain_id)
|
|
1555
|
+
.gsub('{domainId}', @client.encode_path(domain_id))
|
|
1556
1556
|
|
|
1557
1557
|
api_params = {
|
|
1558
1558
|
name: name,
|
|
@@ -1581,7 +1581,7 @@ module Appwrite
|
|
|
1581
1581
|
#
|
|
1582
1582
|
# @param [String] domain_id Domain unique ID.
|
|
1583
1583
|
# @param [String] record_id DNS record unique ID.
|
|
1584
|
-
# @param [String] name Record name
|
|
1584
|
+
# @param [String] name Record name relative to the domain, such as `www`, or `@` for the domain itself. A full name ending in the domain is also accepted and stored relative to it.
|
|
1585
1585
|
# @param [String] value Mail server domain for this MX record.
|
|
1586
1586
|
# @param [Integer] ttl Time to live, in seconds. Must be between 1 and 2147483647.
|
|
1587
1587
|
# @param [Integer] priority MX priority. Lower values are tried first.
|
|
@@ -1622,8 +1622,8 @@ module Appwrite
|
|
|
1622
1622
|
end
|
|
1623
1623
|
|
|
1624
1624
|
api_path = '/domains/{domainId}/records/mx/{recordId}'
|
|
1625
|
-
.gsub('{domainId}', domain_id)
|
|
1626
|
-
.gsub('{recordId}', record_id)
|
|
1625
|
+
.gsub('{domainId}', @client.encode_path(domain_id))
|
|
1626
|
+
.gsub('{recordId}', @client.encode_path(record_id))
|
|
1627
1627
|
|
|
1628
1628
|
api_params = {
|
|
1629
1629
|
name: name,
|
|
@@ -1654,7 +1654,7 @@ module Appwrite
|
|
|
1654
1654
|
# NS records.
|
|
1655
1655
|
#
|
|
1656
1656
|
# @param [String] domain_id Domain unique ID.
|
|
1657
|
-
# @param [String] name Record name
|
|
1657
|
+
# @param [String] name Record name relative to the domain, such as `www`, or `@` for the domain itself. A full name ending in the domain is also accepted and stored relative to it.
|
|
1658
1658
|
# @param [String] value Nameserver target for this NS record.
|
|
1659
1659
|
# @param [Integer] ttl Time to live, in seconds. Must be between 1 and 2147483647.
|
|
1660
1660
|
# @param [String] comment A comment for this record.
|
|
@@ -1684,7 +1684,7 @@ module Appwrite
|
|
|
1684
1684
|
end
|
|
1685
1685
|
|
|
1686
1686
|
api_path = '/domains/{domainId}/records/ns'
|
|
1687
|
-
.gsub('{domainId}', domain_id)
|
|
1687
|
+
.gsub('{domainId}', @client.encode_path(domain_id))
|
|
1688
1688
|
|
|
1689
1689
|
api_params = {
|
|
1690
1690
|
name: name,
|
|
@@ -1718,7 +1718,7 @@ module Appwrite
|
|
|
1718
1718
|
#
|
|
1719
1719
|
# @param [String] domain_id Domain unique ID.
|
|
1720
1720
|
# @param [String] record_id DNS record unique ID.
|
|
1721
|
-
# @param [String] name Record name
|
|
1721
|
+
# @param [String] name Record name relative to the domain, such as `www`, or `@` for the domain itself. A full name ending in the domain is also accepted and stored relative to it.
|
|
1722
1722
|
# @param [String] value Nameserver target for this NS record.
|
|
1723
1723
|
# @param [Integer] ttl Time to live, in seconds. Must be between 1 and 2147483647.
|
|
1724
1724
|
# @param [String] comment A comment for this record.
|
|
@@ -1753,8 +1753,8 @@ module Appwrite
|
|
|
1753
1753
|
end
|
|
1754
1754
|
|
|
1755
1755
|
api_path = '/domains/{domainId}/records/ns/{recordId}'
|
|
1756
|
-
.gsub('{domainId}', domain_id)
|
|
1757
|
-
.gsub('{recordId}', record_id)
|
|
1756
|
+
.gsub('{domainId}', @client.encode_path(domain_id))
|
|
1757
|
+
.gsub('{recordId}', @client.encode_path(record_id))
|
|
1758
1758
|
|
|
1759
1759
|
api_params = {
|
|
1760
1760
|
name: name,
|
|
@@ -1785,7 +1785,7 @@ module Appwrite
|
|
|
1785
1785
|
# handles a specific service like SIP or XMPP for the domain.
|
|
1786
1786
|
#
|
|
1787
1787
|
# @param [String] domain_id Domain unique ID.
|
|
1788
|
-
# @param [String] name Record name
|
|
1788
|
+
# @param [String] name Record name relative to the domain: the service and protocol, such as `_sip._tcp`. A full name ending in the domain is also accepted and stored relative to it.
|
|
1789
1789
|
# @param [String] value Target hostname for this SRV record.
|
|
1790
1790
|
# @param [Integer] ttl Time to live, in seconds. Must be between 1 and 2147483647.
|
|
1791
1791
|
# @param [Integer] priority Record priority. Lower values are tried first.
|
|
@@ -1833,7 +1833,7 @@ module Appwrite
|
|
|
1833
1833
|
end
|
|
1834
1834
|
|
|
1835
1835
|
api_path = '/domains/{domainId}/records/srv'
|
|
1836
|
-
.gsub('{domainId}', domain_id)
|
|
1836
|
+
.gsub('{domainId}', @client.encode_path(domain_id))
|
|
1837
1837
|
|
|
1838
1838
|
api_params = {
|
|
1839
1839
|
name: name,
|
|
@@ -1877,7 +1877,7 @@ module Appwrite
|
|
|
1877
1877
|
#
|
|
1878
1878
|
# @param [String] domain_id Domain unique ID.
|
|
1879
1879
|
# @param [String] record_id DNS record unique ID.
|
|
1880
|
-
# @param [String] name Record name
|
|
1880
|
+
# @param [String] name Record name relative to the domain: the service and protocol, such as `_sip._tcp`. A full name ending in the domain is also accepted and stored relative to it.
|
|
1881
1881
|
# @param [String] value Target hostname for this SRV record.
|
|
1882
1882
|
# @param [Integer] ttl Time to live, in seconds. Must be between 1 and 2147483647.
|
|
1883
1883
|
# @param [Integer] priority Record priority. Lower values are tried first.
|
|
@@ -1930,8 +1930,8 @@ module Appwrite
|
|
|
1930
1930
|
end
|
|
1931
1931
|
|
|
1932
1932
|
api_path = '/domains/{domainId}/records/srv/{recordId}'
|
|
1933
|
-
.gsub('{domainId}', domain_id)
|
|
1934
|
-
.gsub('{recordId}', record_id)
|
|
1933
|
+
.gsub('{domainId}', @client.encode_path(domain_id))
|
|
1934
|
+
.gsub('{recordId}', @client.encode_path(record_id))
|
|
1935
1935
|
|
|
1936
1936
|
api_params = {
|
|
1937
1937
|
name: name,
|
|
@@ -1963,7 +1963,7 @@ module Appwrite
|
|
|
1963
1963
|
# verification records, SPF records, or DKIM records.
|
|
1964
1964
|
#
|
|
1965
1965
|
# @param [String] domain_id Domain unique ID.
|
|
1966
|
-
# @param [String] name Record name
|
|
1966
|
+
# @param [String] name Record name relative to the domain, such as `www`, or `@` for the domain itself. A full name ending in the domain is also accepted and stored relative to it.
|
|
1967
1967
|
# @param [Integer] ttl Time to live, in seconds. Must be between 1 and 2147483647.
|
|
1968
1968
|
# @param [String] value TXT record value.
|
|
1969
1969
|
# @param [String] comment A comment for this record.
|
|
@@ -1989,7 +1989,7 @@ module Appwrite
|
|
|
1989
1989
|
end
|
|
1990
1990
|
|
|
1991
1991
|
api_path = '/domains/{domainId}/records/txt'
|
|
1992
|
-
.gsub('{domainId}', domain_id)
|
|
1992
|
+
.gsub('{domainId}', @client.encode_path(domain_id))
|
|
1993
1993
|
|
|
1994
1994
|
api_params = {
|
|
1995
1995
|
name: name,
|
|
@@ -2022,7 +2022,7 @@ module Appwrite
|
|
|
2022
2022
|
#
|
|
2023
2023
|
# @param [String] domain_id Domain unique ID.
|
|
2024
2024
|
# @param [String] record_id DNS record unique ID.
|
|
2025
|
-
# @param [String] name Record name
|
|
2025
|
+
# @param [String] name Record name relative to the domain, such as `www`, or `@` for the domain itself. A full name ending in the domain is also accepted and stored relative to it.
|
|
2026
2026
|
# @param [String] value TXT record value.
|
|
2027
2027
|
# @param [Integer] ttl Time to live, in seconds. Must be between 1 and 2147483647.
|
|
2028
2028
|
# @param [String] comment A comment for this record.
|
|
@@ -2057,8 +2057,8 @@ module Appwrite
|
|
|
2057
2057
|
end
|
|
2058
2058
|
|
|
2059
2059
|
api_path = '/domains/{domainId}/records/txt/{recordId}'
|
|
2060
|
-
.gsub('{domainId}', domain_id)
|
|
2061
|
-
.gsub('{recordId}', record_id)
|
|
2060
|
+
.gsub('{domainId}', @client.encode_path(domain_id))
|
|
2061
|
+
.gsub('{recordId}', @client.encode_path(record_id))
|
|
2062
2062
|
|
|
2063
2063
|
api_params = {
|
|
2064
2064
|
name: name,
|
|
@@ -2107,8 +2107,8 @@ module Appwrite
|
|
|
2107
2107
|
end
|
|
2108
2108
|
|
|
2109
2109
|
api_path = '/domains/{domainId}/records/{recordId}'
|
|
2110
|
-
.gsub('{domainId}', domain_id)
|
|
2111
|
-
.gsub('{recordId}', record_id)
|
|
2110
|
+
.gsub('{domainId}', @client.encode_path(domain_id))
|
|
2111
|
+
.gsub('{recordId}', @client.encode_path(record_id))
|
|
2112
2112
|
|
|
2113
2113
|
api_params = {}
|
|
2114
2114
|
|
|
@@ -2147,8 +2147,8 @@ module Appwrite
|
|
|
2147
2147
|
end
|
|
2148
2148
|
|
|
2149
2149
|
api_path = '/domains/{domainId}/records/{recordId}'
|
|
2150
|
-
.gsub('{domainId}', domain_id)
|
|
2151
|
-
.gsub('{recordId}', record_id)
|
|
2150
|
+
.gsub('{domainId}', @client.encode_path(domain_id))
|
|
2151
|
+
.gsub('{recordId}', @client.encode_path(record_id))
|
|
2152
2152
|
|
|
2153
2153
|
api_params = {}
|
|
2154
2154
|
|
|
@@ -2191,7 +2191,7 @@ module Appwrite
|
|
|
2191
2191
|
end
|
|
2192
2192
|
|
|
2193
2193
|
api_path = '/domains/{domainId}/team'
|
|
2194
|
-
.gsub('{domainId}', domain_id)
|
|
2194
|
+
.gsub('{domainId}', @client.encode_path(domain_id))
|
|
2195
2195
|
|
|
2196
2196
|
api_params = {
|
|
2197
2197
|
teamId: team_id,
|
|
@@ -2226,7 +2226,7 @@ module Appwrite
|
|
|
2226
2226
|
end
|
|
2227
2227
|
|
|
2228
2228
|
api_path = '/domains/{domainId}/transfers/status'
|
|
2229
|
-
.gsub('{domainId}', domain_id)
|
|
2229
|
+
.gsub('{domainId}', @client.encode_path(domain_id))
|
|
2230
2230
|
|
|
2231
2231
|
api_params = {}
|
|
2232
2232
|
|
|
@@ -2260,7 +2260,7 @@ module Appwrite
|
|
|
2260
2260
|
end
|
|
2261
2261
|
|
|
2262
2262
|
api_path = '/domains/{domainId}/zone'
|
|
2263
|
-
.gsub('{domainId}', domain_id)
|
|
2263
|
+
.gsub('{domainId}', @client.encode_path(domain_id))
|
|
2264
2264
|
|
|
2265
2265
|
api_params = {}
|
|
2266
2266
|
|
|
@@ -2280,8 +2280,8 @@ module Appwrite
|
|
|
2280
2280
|
|
|
2281
2281
|
# Update the DNS zone for the given domain using the provided zone file
|
|
2282
2282
|
# content.
|
|
2283
|
-
# All parsed records
|
|
2284
|
-
# returned.
|
|
2283
|
+
# All parsed records the domain does not already have are imported and then
|
|
2284
|
+
# the main domain document is returned.
|
|
2285
2285
|
#
|
|
2286
2286
|
# @param [String] domain_id Domain unique ID.
|
|
2287
2287
|
# @param [String] content DNS zone file content as a string.
|
|
@@ -2300,7 +2300,7 @@ module Appwrite
|
|
|
2300
2300
|
end
|
|
2301
2301
|
|
|
2302
2302
|
api_path = '/domains/{domainId}/zone'
|
|
2303
|
-
.gsub('{domainId}', domain_id)
|
|
2303
|
+
.gsub('{domainId}', @client.encode_path(domain_id))
|
|
2304
2304
|
|
|
2305
2305
|
api_params = {
|
|
2306
2306
|
content: content,
|