appwrite 21.1.0 → 23.0.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 +48 -2
- data/lib/appwrite/enums/backup_services.rb +3 -0
- data/lib/appwrite/enums/build_runtime.rb +2 -0
- data/lib/appwrite/enums/database_type.rb +2 -0
- data/lib/appwrite/enums/databases_index_type.rb +10 -0
- data/lib/appwrite/enums/o_auth_provider.rb +1 -0
- data/lib/appwrite/enums/platform_type.rb +11 -0
- data/lib/appwrite/enums/protocol_id.rb +9 -0
- data/lib/appwrite/enums/runtime.rb +2 -0
- data/lib/appwrite/enums/scopes.rb +8 -0
- data/lib/appwrite/enums/service_id.rb +23 -0
- data/lib/appwrite/enums/{index_type.rb → tables_db_index_type.rb} +1 -1
- data/lib/appwrite/enums/template_reference_type.rb +1 -1
- data/lib/appwrite/models/auth_provider.rb +47 -0
- data/lib/appwrite/models/billing_limits.rb +62 -0
- data/lib/appwrite/models/block.rb +47 -0
- data/lib/appwrite/models/database.rb +2 -0
- data/lib/appwrite/models/dev_key.rb +62 -0
- data/lib/appwrite/models/function.rb +15 -5
- data/lib/appwrite/models/key.rb +67 -0
- data/lib/appwrite/models/key_list.rb +32 -0
- data/lib/appwrite/models/log.rb +5 -0
- data/lib/appwrite/models/mock_number.rb +32 -0
- data/lib/appwrite/models/platform_android.rb +71 -0
- data/lib/appwrite/models/platform_apple.rb +71 -0
- data/lib/appwrite/models/platform_linux.rb +71 -0
- data/lib/appwrite/models/platform_list.rb +32 -0
- data/lib/appwrite/models/platform_web.rb +71 -0
- data/lib/appwrite/models/platform_windows.rb +71 -0
- data/lib/appwrite/models/project.rb +412 -0
- data/lib/appwrite/models/site.rb +20 -5
- data/lib/appwrite/models/user.rb +13 -3
- data/lib/appwrite/models/webhook.rb +87 -0
- data/lib/appwrite/models/webhook_list.rb +32 -0
- data/lib/appwrite/service.rb +1 -1
- data/lib/appwrite/services/account.rb +47 -2
- data/lib/appwrite/services/activities.rb +3 -1
- data/lib/appwrite/services/avatars.rb +9 -1
- data/lib/appwrite/services/backups.rb +13 -1
- data/lib/appwrite/services/databases.rb +133 -7
- data/lib/appwrite/services/functions.rb +41 -7
- data/lib/appwrite/services/graphql.rb +5 -3
- data/lib/appwrite/services/health.rb +22 -117
- data/lib/appwrite/services/locale.rb +9 -1
- data/lib/appwrite/services/messaging.rb +49 -1
- data/lib/appwrite/services/project.rb +1011 -0
- data/lib/appwrite/services/sites.rb +44 -7
- data/lib/appwrite/services/storage.rb +14 -1
- data/lib/appwrite/services/tables_db.rb +133 -7
- data/lib/appwrite/services/teams.rb +14 -1
- data/lib/appwrite/services/tokens.rb +6 -1
- data/lib/appwrite/services/users.rb +85 -2
- data/lib/appwrite/services/webhooks.rb +249 -0
- data/lib/appwrite.rb +23 -1
- metadata +25 -3
|
@@ -34,6 +34,7 @@ module Appwrite
|
|
|
34
34
|
params: api_params,
|
|
35
35
|
response_type: Models::FunctionList
|
|
36
36
|
)
|
|
37
|
+
|
|
37
38
|
end
|
|
38
39
|
|
|
39
40
|
# Create a new function. You can pass a list of
|
|
@@ -58,10 +59,12 @@ module Appwrite
|
|
|
58
59
|
# @param [String] provider_branch Production branch for the repo linked to the function.
|
|
59
60
|
# @param [] provider_silent_mode Is the VCS (Version Control System) connection in silent mode for the repo linked to the function? In silent mode, comments will not be made on commits and pull requests.
|
|
60
61
|
# @param [String] provider_root_directory Path to function code in the linked repo.
|
|
61
|
-
# @param [String]
|
|
62
|
+
# @param [String] build_specification Build specification for the function deployments.
|
|
63
|
+
# @param [String] runtime_specification Runtime specification for the function executions.
|
|
64
|
+
# @param [Integer] deployment_retention Days to keep non-active deployments before deletion. Value 0 means all deployments will be kept.
|
|
62
65
|
#
|
|
63
66
|
# @return [Function]
|
|
64
|
-
def create(function_id:, name:, runtime:, execute: nil, events: nil, schedule: nil, timeout: nil, enabled: nil, logging: nil, entrypoint: nil, commands: nil, scopes: nil, installation_id: nil, provider_repository_id: nil, provider_branch: nil, provider_silent_mode: nil, provider_root_directory: nil,
|
|
67
|
+
def create(function_id:, name:, runtime:, execute: nil, events: nil, schedule: nil, timeout: nil, enabled: nil, logging: nil, entrypoint: nil, commands: nil, scopes: nil, installation_id: nil, provider_repository_id: nil, provider_branch: nil, provider_silent_mode: nil, provider_root_directory: nil, build_specification: nil, runtime_specification: nil, deployment_retention: nil)
|
|
65
68
|
api_path = '/functions'
|
|
66
69
|
|
|
67
70
|
if function_id.nil?
|
|
@@ -94,7 +97,9 @@ module Appwrite
|
|
|
94
97
|
providerBranch: provider_branch,
|
|
95
98
|
providerSilentMode: provider_silent_mode,
|
|
96
99
|
providerRootDirectory: provider_root_directory,
|
|
97
|
-
|
|
100
|
+
buildSpecification: build_specification,
|
|
101
|
+
runtimeSpecification: runtime_specification,
|
|
102
|
+
deploymentRetention: deployment_retention,
|
|
98
103
|
}
|
|
99
104
|
|
|
100
105
|
api_headers = {
|
|
@@ -108,6 +113,7 @@ module Appwrite
|
|
|
108
113
|
params: api_params,
|
|
109
114
|
response_type: Models::Function
|
|
110
115
|
)
|
|
116
|
+
|
|
111
117
|
end
|
|
112
118
|
|
|
113
119
|
# Get a list of all runtimes that are currently active on your instance.
|
|
@@ -130,6 +136,7 @@ module Appwrite
|
|
|
130
136
|
params: api_params,
|
|
131
137
|
response_type: Models::RuntimeList
|
|
132
138
|
)
|
|
139
|
+
|
|
133
140
|
end
|
|
134
141
|
|
|
135
142
|
# List allowed function specifications for this instance.
|
|
@@ -152,6 +159,7 @@ module Appwrite
|
|
|
152
159
|
params: api_params,
|
|
153
160
|
response_type: Models::SpecificationList
|
|
154
161
|
)
|
|
162
|
+
|
|
155
163
|
end
|
|
156
164
|
|
|
157
165
|
# Get a function by its unique ID.
|
|
@@ -180,6 +188,7 @@ module Appwrite
|
|
|
180
188
|
params: api_params,
|
|
181
189
|
response_type: Models::Function
|
|
182
190
|
)
|
|
191
|
+
|
|
183
192
|
end
|
|
184
193
|
|
|
185
194
|
# Update function by its unique ID.
|
|
@@ -201,10 +210,12 @@ module Appwrite
|
|
|
201
210
|
# @param [String] provider_branch Production branch for the repo linked to the function
|
|
202
211
|
# @param [] provider_silent_mode Is the VCS (Version Control System) connection in silent mode for the repo linked to the function? In silent mode, comments will not be made on commits and pull requests.
|
|
203
212
|
# @param [String] provider_root_directory Path to function code in the linked repo.
|
|
204
|
-
# @param [String]
|
|
213
|
+
# @param [String] build_specification Build specification for the function deployments.
|
|
214
|
+
# @param [String] runtime_specification Runtime specification for the function executions.
|
|
215
|
+
# @param [Integer] deployment_retention Days to keep non-active deployments before deletion. Value 0 means all deployments will be kept.
|
|
205
216
|
#
|
|
206
217
|
# @return [Function]
|
|
207
|
-
def update(function_id:, name:, runtime: nil, execute: nil, events: nil, schedule: nil, timeout: nil, enabled: nil, logging: nil, entrypoint: nil, commands: nil, scopes: nil, installation_id: nil, provider_repository_id: nil, provider_branch: nil, provider_silent_mode: nil, provider_root_directory: nil,
|
|
218
|
+
def update(function_id:, name:, runtime: nil, execute: nil, events: nil, schedule: nil, timeout: nil, enabled: nil, logging: nil, entrypoint: nil, commands: nil, scopes: nil, installation_id: nil, provider_repository_id: nil, provider_branch: nil, provider_silent_mode: nil, provider_root_directory: nil, build_specification: nil, runtime_specification: nil, deployment_retention: nil)
|
|
208
219
|
api_path = '/functions/{functionId}'
|
|
209
220
|
.gsub('{functionId}', function_id)
|
|
210
221
|
|
|
@@ -233,7 +244,9 @@ module Appwrite
|
|
|
233
244
|
providerBranch: provider_branch,
|
|
234
245
|
providerSilentMode: provider_silent_mode,
|
|
235
246
|
providerRootDirectory: provider_root_directory,
|
|
236
|
-
|
|
247
|
+
buildSpecification: build_specification,
|
|
248
|
+
runtimeSpecification: runtime_specification,
|
|
249
|
+
deploymentRetention: deployment_retention,
|
|
237
250
|
}
|
|
238
251
|
|
|
239
252
|
api_headers = {
|
|
@@ -247,6 +260,7 @@ module Appwrite
|
|
|
247
260
|
params: api_params,
|
|
248
261
|
response_type: Models::Function
|
|
249
262
|
)
|
|
263
|
+
|
|
250
264
|
end
|
|
251
265
|
|
|
252
266
|
# Delete a function by its unique ID.
|
|
@@ -275,6 +289,7 @@ module Appwrite
|
|
|
275
289
|
headers: api_headers,
|
|
276
290
|
params: api_params,
|
|
277
291
|
)
|
|
292
|
+
|
|
278
293
|
end
|
|
279
294
|
|
|
280
295
|
# Update the function active deployment. Use this endpoint to switch the code
|
|
@@ -311,6 +326,7 @@ module Appwrite
|
|
|
311
326
|
params: api_params,
|
|
312
327
|
response_type: Models::Function
|
|
313
328
|
)
|
|
329
|
+
|
|
314
330
|
end
|
|
315
331
|
|
|
316
332
|
# Get a list of all the function's code deployments. You can use the query
|
|
@@ -346,6 +362,7 @@ module Appwrite
|
|
|
346
362
|
params: api_params,
|
|
347
363
|
response_type: Models::DeploymentList
|
|
348
364
|
)
|
|
365
|
+
|
|
349
366
|
end
|
|
350
367
|
|
|
351
368
|
# Create a new function code deployment. Use this endpoint to upload a new
|
|
@@ -405,6 +422,7 @@ module Appwrite
|
|
|
405
422
|
on_progress: on_progress,
|
|
406
423
|
response_type: Models::Deployment
|
|
407
424
|
)
|
|
425
|
+
|
|
408
426
|
end
|
|
409
427
|
|
|
410
428
|
# Create a new build for an existing function deployment. This endpoint
|
|
@@ -446,6 +464,7 @@ module Appwrite
|
|
|
446
464
|
params: api_params,
|
|
447
465
|
response_type: Models::Deployment
|
|
448
466
|
)
|
|
467
|
+
|
|
449
468
|
end
|
|
450
469
|
|
|
451
470
|
# Create a deployment based on a template.
|
|
@@ -511,6 +530,7 @@ module Appwrite
|
|
|
511
530
|
params: api_params,
|
|
512
531
|
response_type: Models::Deployment
|
|
513
532
|
)
|
|
533
|
+
|
|
514
534
|
end
|
|
515
535
|
|
|
516
536
|
# Create a deployment when a function is connected to VCS.
|
|
@@ -556,6 +576,7 @@ module Appwrite
|
|
|
556
576
|
params: api_params,
|
|
557
577
|
response_type: Models::Deployment
|
|
558
578
|
)
|
|
579
|
+
|
|
559
580
|
end
|
|
560
581
|
|
|
561
582
|
# Get a function deployment by its unique ID.
|
|
@@ -590,6 +611,7 @@ module Appwrite
|
|
|
590
611
|
params: api_params,
|
|
591
612
|
response_type: Models::Deployment
|
|
592
613
|
)
|
|
614
|
+
|
|
593
615
|
end
|
|
594
616
|
|
|
595
617
|
# Delete a code deployment by its unique ID.
|
|
@@ -624,6 +646,7 @@ module Appwrite
|
|
|
624
646
|
headers: api_headers,
|
|
625
647
|
params: api_params,
|
|
626
648
|
)
|
|
649
|
+
|
|
627
650
|
end
|
|
628
651
|
|
|
629
652
|
# Get a function deployment content by its unique ID. The endpoint response
|
|
@@ -661,6 +684,7 @@ module Appwrite
|
|
|
661
684
|
headers: api_headers,
|
|
662
685
|
params: api_params,
|
|
663
686
|
)
|
|
687
|
+
|
|
664
688
|
end
|
|
665
689
|
|
|
666
690
|
# Cancel an ongoing function deployment build. If the build is already in
|
|
@@ -700,6 +724,7 @@ module Appwrite
|
|
|
700
724
|
params: api_params,
|
|
701
725
|
response_type: Models::Deployment
|
|
702
726
|
)
|
|
727
|
+
|
|
703
728
|
end
|
|
704
729
|
|
|
705
730
|
# Get a list of all the current user function execution logs. You can use the
|
|
@@ -733,6 +758,7 @@ module Appwrite
|
|
|
733
758
|
params: api_params,
|
|
734
759
|
response_type: Models::ExecutionList
|
|
735
760
|
)
|
|
761
|
+
|
|
736
762
|
end
|
|
737
763
|
|
|
738
764
|
# Trigger a function execution. The returned object will return you the
|
|
@@ -777,6 +803,7 @@ module Appwrite
|
|
|
777
803
|
params: api_params,
|
|
778
804
|
response_type: Models::Execution
|
|
779
805
|
)
|
|
806
|
+
|
|
780
807
|
end
|
|
781
808
|
|
|
782
809
|
# Get a function execution log by its unique ID.
|
|
@@ -811,6 +838,7 @@ module Appwrite
|
|
|
811
838
|
params: api_params,
|
|
812
839
|
response_type: Models::Execution
|
|
813
840
|
)
|
|
841
|
+
|
|
814
842
|
end
|
|
815
843
|
|
|
816
844
|
# Delete a function execution by its unique ID.
|
|
@@ -845,6 +873,7 @@ module Appwrite
|
|
|
845
873
|
headers: api_headers,
|
|
846
874
|
params: api_params,
|
|
847
875
|
)
|
|
876
|
+
|
|
848
877
|
end
|
|
849
878
|
|
|
850
879
|
# Get a list of all variables of a specific function.
|
|
@@ -873,6 +902,7 @@ module Appwrite
|
|
|
873
902
|
params: api_params,
|
|
874
903
|
response_type: Models::VariableList
|
|
875
904
|
)
|
|
905
|
+
|
|
876
906
|
end
|
|
877
907
|
|
|
878
908
|
# Create a new function environment variable. These variables can be accessed
|
|
@@ -917,6 +947,7 @@ module Appwrite
|
|
|
917
947
|
params: api_params,
|
|
918
948
|
response_type: Models::Variable
|
|
919
949
|
)
|
|
950
|
+
|
|
920
951
|
end
|
|
921
952
|
|
|
922
953
|
# Get a variable by its unique ID.
|
|
@@ -951,6 +982,7 @@ module Appwrite
|
|
|
951
982
|
params: api_params,
|
|
952
983
|
response_type: Models::Variable
|
|
953
984
|
)
|
|
985
|
+
|
|
954
986
|
end
|
|
955
987
|
|
|
956
988
|
# Update variable by its unique ID.
|
|
@@ -996,6 +1028,7 @@ module Appwrite
|
|
|
996
1028
|
params: api_params,
|
|
997
1029
|
response_type: Models::Variable
|
|
998
1030
|
)
|
|
1031
|
+
|
|
999
1032
|
end
|
|
1000
1033
|
|
|
1001
1034
|
# Delete a variable by its unique ID.
|
|
@@ -1030,7 +1063,8 @@ module Appwrite
|
|
|
1030
1063
|
headers: api_headers,
|
|
1031
1064
|
params: api_params,
|
|
1032
1065
|
)
|
|
1066
|
+
|
|
1033
1067
|
end
|
|
1034
1068
|
|
|
1035
1069
|
end
|
|
1036
|
-
end
|
|
1070
|
+
end
|
|
@@ -11,7 +11,7 @@ module Appwrite
|
|
|
11
11
|
#
|
|
12
12
|
# @param [Hash] query The query or queries to execute.
|
|
13
13
|
#
|
|
14
|
-
# @return [
|
|
14
|
+
# @return []
|
|
15
15
|
def query(query:)
|
|
16
16
|
api_path = '/graphql'
|
|
17
17
|
|
|
@@ -34,13 +34,14 @@ module Appwrite
|
|
|
34
34
|
headers: api_headers,
|
|
35
35
|
params: api_params,
|
|
36
36
|
)
|
|
37
|
+
|
|
37
38
|
end
|
|
38
39
|
|
|
39
40
|
# Execute a GraphQL mutation.
|
|
40
41
|
#
|
|
41
42
|
# @param [Hash] query The query or queries to execute.
|
|
42
43
|
#
|
|
43
|
-
# @return [
|
|
44
|
+
# @return []
|
|
44
45
|
def mutation(query:)
|
|
45
46
|
api_path = '/graphql/mutation'
|
|
46
47
|
|
|
@@ -63,7 +64,8 @@ module Appwrite
|
|
|
63
64
|
headers: api_headers,
|
|
64
65
|
params: api_params,
|
|
65
66
|
)
|
|
67
|
+
|
|
66
68
|
end
|
|
67
69
|
|
|
68
70
|
end
|
|
69
|
-
end
|
|
71
|
+
end
|
|
@@ -27,6 +27,7 @@ module Appwrite
|
|
|
27
27
|
params: api_params,
|
|
28
28
|
response_type: Models::HealthStatus
|
|
29
29
|
)
|
|
30
|
+
|
|
30
31
|
end
|
|
31
32
|
|
|
32
33
|
# Check the Appwrite Antivirus server is up and connection is successful.
|
|
@@ -49,6 +50,7 @@ module Appwrite
|
|
|
49
50
|
params: api_params,
|
|
50
51
|
response_type: Models::HealthAntivirus
|
|
51
52
|
)
|
|
53
|
+
|
|
52
54
|
end
|
|
53
55
|
|
|
54
56
|
# Check the Appwrite in-memory cache servers are up and connection is
|
|
@@ -72,6 +74,7 @@ module Appwrite
|
|
|
72
74
|
params: api_params,
|
|
73
75
|
response_type: Models::HealthStatusList
|
|
74
76
|
)
|
|
77
|
+
|
|
75
78
|
end
|
|
76
79
|
|
|
77
80
|
# Get the SSL certificate for a domain
|
|
@@ -96,6 +99,7 @@ module Appwrite
|
|
|
96
99
|
params: api_params,
|
|
97
100
|
response_type: Models::HealthCertificate
|
|
98
101
|
)
|
|
102
|
+
|
|
99
103
|
end
|
|
100
104
|
|
|
101
105
|
# Get console pausing health status. Monitors projects approaching the pause
|
|
@@ -124,6 +128,7 @@ module Appwrite
|
|
|
124
128
|
params: api_params,
|
|
125
129
|
response_type: Models::HealthStatus
|
|
126
130
|
)
|
|
131
|
+
|
|
127
132
|
end
|
|
128
133
|
|
|
129
134
|
# Check the Appwrite database servers are up and connection is successful.
|
|
@@ -146,6 +151,7 @@ module Appwrite
|
|
|
146
151
|
params: api_params,
|
|
147
152
|
response_type: Models::HealthStatusList
|
|
148
153
|
)
|
|
154
|
+
|
|
149
155
|
end
|
|
150
156
|
|
|
151
157
|
# Check the Appwrite pub-sub servers are up and connection is successful.
|
|
@@ -168,10 +174,12 @@ module Appwrite
|
|
|
168
174
|
params: api_params,
|
|
169
175
|
response_type: Models::HealthStatusList
|
|
170
176
|
)
|
|
177
|
+
|
|
171
178
|
end
|
|
172
179
|
|
|
173
180
|
# Get the number of audit logs that are waiting to be processed in the
|
|
174
181
|
# Appwrite internal queue server.
|
|
182
|
+
#
|
|
175
183
|
#
|
|
176
184
|
# @param [Integer] threshold Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.
|
|
177
185
|
#
|
|
@@ -193,54 +201,7 @@ module Appwrite
|
|
|
193
201
|
params: api_params,
|
|
194
202
|
response_type: Models::HealthQueue
|
|
195
203
|
)
|
|
196
|
-
end
|
|
197
|
-
|
|
198
|
-
# Get billing project aggregation queue.
|
|
199
|
-
#
|
|
200
|
-
# @param [Integer] threshold Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.
|
|
201
|
-
#
|
|
202
|
-
# @return [HealthQueue]
|
|
203
|
-
def get_queue_billing_project_aggregation(threshold: nil)
|
|
204
|
-
api_path = '/health/queue/billing-project-aggregation'
|
|
205
|
-
|
|
206
|
-
api_params = {
|
|
207
|
-
threshold: threshold,
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
api_headers = {
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
@client.call(
|
|
214
|
-
method: 'GET',
|
|
215
|
-
path: api_path,
|
|
216
|
-
headers: api_headers,
|
|
217
|
-
params: api_params,
|
|
218
|
-
response_type: Models::HealthQueue
|
|
219
|
-
)
|
|
220
|
-
end
|
|
221
204
|
|
|
222
|
-
# Get billing team aggregation queue.
|
|
223
|
-
#
|
|
224
|
-
# @param [Integer] threshold Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.
|
|
225
|
-
#
|
|
226
|
-
# @return [HealthQueue]
|
|
227
|
-
def get_queue_billing_team_aggregation(threshold: nil)
|
|
228
|
-
api_path = '/health/queue/billing-team-aggregation'
|
|
229
|
-
|
|
230
|
-
api_params = {
|
|
231
|
-
threshold: threshold,
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
api_headers = {
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
@client.call(
|
|
238
|
-
method: 'GET',
|
|
239
|
-
path: api_path,
|
|
240
|
-
headers: api_headers,
|
|
241
|
-
params: api_params,
|
|
242
|
-
response_type: Models::HealthQueue
|
|
243
|
-
)
|
|
244
205
|
end
|
|
245
206
|
|
|
246
207
|
# Get the number of builds that are waiting to be processed in the Appwrite
|
|
@@ -266,30 +227,7 @@ module Appwrite
|
|
|
266
227
|
params: api_params,
|
|
267
228
|
response_type: Models::HealthQueue
|
|
268
229
|
)
|
|
269
|
-
end
|
|
270
230
|
|
|
271
|
-
# Get the priority builds queue size.
|
|
272
|
-
#
|
|
273
|
-
# @param [Integer] threshold Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 500.
|
|
274
|
-
#
|
|
275
|
-
# @return [HealthQueue]
|
|
276
|
-
def get_queue_priority_builds(threshold: nil)
|
|
277
|
-
api_path = '/health/queue/builds-priority'
|
|
278
|
-
|
|
279
|
-
api_params = {
|
|
280
|
-
threshold: threshold,
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
api_headers = {
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
@client.call(
|
|
287
|
-
method: 'GET',
|
|
288
|
-
path: api_path,
|
|
289
|
-
headers: api_headers,
|
|
290
|
-
params: api_params,
|
|
291
|
-
response_type: Models::HealthQueue
|
|
292
|
-
)
|
|
293
231
|
end
|
|
294
232
|
|
|
295
233
|
# Get the number of certificates that are waiting to be issued against
|
|
@@ -316,6 +254,7 @@ module Appwrite
|
|
|
316
254
|
params: api_params,
|
|
317
255
|
response_type: Models::HealthQueue
|
|
318
256
|
)
|
|
257
|
+
|
|
319
258
|
end
|
|
320
259
|
|
|
321
260
|
# Get the number of database changes that are waiting to be processed in the
|
|
@@ -343,6 +282,7 @@ module Appwrite
|
|
|
343
282
|
params: api_params,
|
|
344
283
|
response_type: Models::HealthQueue
|
|
345
284
|
)
|
|
285
|
+
|
|
346
286
|
end
|
|
347
287
|
|
|
348
288
|
# Get the number of background destructive changes that are waiting to be
|
|
@@ -368,6 +308,7 @@ module Appwrite
|
|
|
368
308
|
params: api_params,
|
|
369
309
|
response_type: Models::HealthQueue
|
|
370
310
|
)
|
|
311
|
+
|
|
371
312
|
end
|
|
372
313
|
|
|
373
314
|
# Returns the amount of failed jobs in a given queue.
|
|
@@ -399,6 +340,7 @@ module Appwrite
|
|
|
399
340
|
params: api_params,
|
|
400
341
|
response_type: Models::HealthQueue
|
|
401
342
|
)
|
|
343
|
+
|
|
402
344
|
end
|
|
403
345
|
|
|
404
346
|
# Get the number of function executions that are waiting to be processed in
|
|
@@ -424,6 +366,7 @@ module Appwrite
|
|
|
424
366
|
params: api_params,
|
|
425
367
|
response_type: Models::HealthQueue
|
|
426
368
|
)
|
|
369
|
+
|
|
427
370
|
end
|
|
428
371
|
|
|
429
372
|
# Get the number of logs that are waiting to be processed in the Appwrite
|
|
@@ -449,6 +392,7 @@ module Appwrite
|
|
|
449
392
|
params: api_params,
|
|
450
393
|
response_type: Models::HealthQueue
|
|
451
394
|
)
|
|
395
|
+
|
|
452
396
|
end
|
|
453
397
|
|
|
454
398
|
# Get the number of mails that are waiting to be processed in the Appwrite
|
|
@@ -474,6 +418,7 @@ module Appwrite
|
|
|
474
418
|
params: api_params,
|
|
475
419
|
response_type: Models::HealthQueue
|
|
476
420
|
)
|
|
421
|
+
|
|
477
422
|
end
|
|
478
423
|
|
|
479
424
|
# Get the number of messages that are waiting to be processed in the Appwrite
|
|
@@ -499,6 +444,7 @@ module Appwrite
|
|
|
499
444
|
params: api_params,
|
|
500
445
|
response_type: Models::HealthQueue
|
|
501
446
|
)
|
|
447
|
+
|
|
502
448
|
end
|
|
503
449
|
|
|
504
450
|
# Get the number of migrations that are waiting to be processed in the
|
|
@@ -524,30 +470,7 @@ module Appwrite
|
|
|
524
470
|
params: api_params,
|
|
525
471
|
response_type: Models::HealthQueue
|
|
526
472
|
)
|
|
527
|
-
end
|
|
528
|
-
|
|
529
|
-
# Get region manager queue.
|
|
530
|
-
#
|
|
531
|
-
# @param [Integer] threshold Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 100.
|
|
532
|
-
#
|
|
533
|
-
# @return [HealthQueue]
|
|
534
|
-
def get_queue_region_manager(threshold: nil)
|
|
535
|
-
api_path = '/health/queue/region-manager'
|
|
536
473
|
|
|
537
|
-
api_params = {
|
|
538
|
-
threshold: threshold,
|
|
539
|
-
}
|
|
540
|
-
|
|
541
|
-
api_headers = {
|
|
542
|
-
}
|
|
543
|
-
|
|
544
|
-
@client.call(
|
|
545
|
-
method: 'GET',
|
|
546
|
-
path: api_path,
|
|
547
|
-
headers: api_headers,
|
|
548
|
-
params: api_params,
|
|
549
|
-
response_type: Models::HealthQueue
|
|
550
|
-
)
|
|
551
474
|
end
|
|
552
475
|
|
|
553
476
|
# Get the number of metrics that are waiting to be processed in the Appwrite
|
|
@@ -573,6 +496,7 @@ module Appwrite
|
|
|
573
496
|
params: api_params,
|
|
574
497
|
response_type: Models::HealthQueue
|
|
575
498
|
)
|
|
499
|
+
|
|
576
500
|
end
|
|
577
501
|
|
|
578
502
|
# Get the number of metrics that are waiting to be processed in the Appwrite
|
|
@@ -598,30 +522,7 @@ module Appwrite
|
|
|
598
522
|
params: api_params,
|
|
599
523
|
response_type: Models::HealthQueue
|
|
600
524
|
)
|
|
601
|
-
end
|
|
602
525
|
|
|
603
|
-
# Get threats queue.
|
|
604
|
-
#
|
|
605
|
-
# @param [Integer] threshold Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 100.
|
|
606
|
-
#
|
|
607
|
-
# @return [HealthQueue]
|
|
608
|
-
def get_queue_threats(threshold: nil)
|
|
609
|
-
api_path = '/health/queue/threats'
|
|
610
|
-
|
|
611
|
-
api_params = {
|
|
612
|
-
threshold: threshold,
|
|
613
|
-
}
|
|
614
|
-
|
|
615
|
-
api_headers = {
|
|
616
|
-
}
|
|
617
|
-
|
|
618
|
-
@client.call(
|
|
619
|
-
method: 'GET',
|
|
620
|
-
path: api_path,
|
|
621
|
-
headers: api_headers,
|
|
622
|
-
params: api_params,
|
|
623
|
-
response_type: Models::HealthQueue
|
|
624
|
-
)
|
|
625
526
|
end
|
|
626
527
|
|
|
627
528
|
# Get the number of webhooks that are waiting to be processed in the Appwrite
|
|
@@ -647,6 +548,7 @@ module Appwrite
|
|
|
647
548
|
params: api_params,
|
|
648
549
|
response_type: Models::HealthQueue
|
|
649
550
|
)
|
|
551
|
+
|
|
650
552
|
end
|
|
651
553
|
|
|
652
554
|
# Check the Appwrite storage device is up and connection is successful.
|
|
@@ -669,6 +571,7 @@ module Appwrite
|
|
|
669
571
|
params: api_params,
|
|
670
572
|
response_type: Models::HealthStatus
|
|
671
573
|
)
|
|
574
|
+
|
|
672
575
|
end
|
|
673
576
|
|
|
674
577
|
# Check the Appwrite local storage device is up and connection is successful.
|
|
@@ -691,6 +594,7 @@ module Appwrite
|
|
|
691
594
|
params: api_params,
|
|
692
595
|
response_type: Models::HealthStatus
|
|
693
596
|
)
|
|
597
|
+
|
|
694
598
|
end
|
|
695
599
|
|
|
696
600
|
# Check the Appwrite server time is synced with Google remote NTP server. We
|
|
@@ -719,7 +623,8 @@ module Appwrite
|
|
|
719
623
|
params: api_params,
|
|
720
624
|
response_type: Models::HealthTime
|
|
721
625
|
)
|
|
626
|
+
|
|
722
627
|
end
|
|
723
628
|
|
|
724
629
|
end
|
|
725
|
-
end
|
|
630
|
+
end
|
|
@@ -32,6 +32,7 @@ module Appwrite
|
|
|
32
32
|
params: api_params,
|
|
33
33
|
response_type: Models::Locale
|
|
34
34
|
)
|
|
35
|
+
|
|
35
36
|
end
|
|
36
37
|
|
|
37
38
|
# List of all locale codes in [ISO
|
|
@@ -55,6 +56,7 @@ module Appwrite
|
|
|
55
56
|
params: api_params,
|
|
56
57
|
response_type: Models::LocaleCodeList
|
|
57
58
|
)
|
|
59
|
+
|
|
58
60
|
end
|
|
59
61
|
|
|
60
62
|
# List of all continents. You can use the locale header to get the data in a
|
|
@@ -78,6 +80,7 @@ module Appwrite
|
|
|
78
80
|
params: api_params,
|
|
79
81
|
response_type: Models::ContinentList
|
|
80
82
|
)
|
|
83
|
+
|
|
81
84
|
end
|
|
82
85
|
|
|
83
86
|
# List of all countries. You can use the locale header to get the data in a
|
|
@@ -101,6 +104,7 @@ module Appwrite
|
|
|
101
104
|
params: api_params,
|
|
102
105
|
response_type: Models::CountryList
|
|
103
106
|
)
|
|
107
|
+
|
|
104
108
|
end
|
|
105
109
|
|
|
106
110
|
# List of all countries that are currently members of the EU. You can use the
|
|
@@ -124,6 +128,7 @@ module Appwrite
|
|
|
124
128
|
params: api_params,
|
|
125
129
|
response_type: Models::CountryList
|
|
126
130
|
)
|
|
131
|
+
|
|
127
132
|
end
|
|
128
133
|
|
|
129
134
|
# List of all countries phone codes. You can use the locale header to get the
|
|
@@ -147,6 +152,7 @@ module Appwrite
|
|
|
147
152
|
params: api_params,
|
|
148
153
|
response_type: Models::PhoneList
|
|
149
154
|
)
|
|
155
|
+
|
|
150
156
|
end
|
|
151
157
|
|
|
152
158
|
# List of all currencies, including currency symbol, name, plural, and
|
|
@@ -171,6 +177,7 @@ module Appwrite
|
|
|
171
177
|
params: api_params,
|
|
172
178
|
response_type: Models::CurrencyList
|
|
173
179
|
)
|
|
180
|
+
|
|
174
181
|
end
|
|
175
182
|
|
|
176
183
|
# List of all languages classified by ISO 639-1 including 2-letter code, name
|
|
@@ -194,7 +201,8 @@ module Appwrite
|
|
|
194
201
|
params: api_params,
|
|
195
202
|
response_type: Models::LanguageList
|
|
196
203
|
)
|
|
204
|
+
|
|
197
205
|
end
|
|
198
206
|
|
|
199
207
|
end
|
|
200
|
-
end
|
|
208
|
+
end
|