appwrite 28.1.0 → 28.2.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 +1 -1
- data/lib/appwrite/models/billing_plan.rb +5 -0
- data/lib/appwrite/models/function.rb +5 -0
- data/lib/appwrite/services/functions.rb +10 -4
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1149bf967ae7dfbb5ae79537992c814d745f98732e47d674bb23d98319a09658
|
|
4
|
+
data.tar.gz: ddcda675cc60accc7efdbda5e003466059b5a9ad3713ea8e4f0c09220515453a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f60f72d2b292c79d9f41677126c2e0f1445e5ed0557b49aa1aa04cb8a4637fd5c2d185c4a1af8ae57a7be9ed378d78805adf15833afb932249bdf01c7db12652
|
|
7
|
+
data.tar.gz: e6db580a3115dcd6305fdef19fa4ca5b220c7073ab6ee54fb4df5aa2f9a8b8d6654c0a5a2783426a6ff34c95cc7e8191530a8f671ad77afa2a90c6f817622986
|
data/lib/appwrite/client.rb
CHANGED
|
@@ -14,7 +14,7 @@ module Appwrite
|
|
|
14
14
|
'x-sdk-name' => 'Ruby',
|
|
15
15
|
'x-sdk-platform' => 'server',
|
|
16
16
|
'x-sdk-language' => 'ruby',
|
|
17
|
-
'x-sdk-version' => '28.
|
|
17
|
+
'x-sdk-version' => '28.2.0',
|
|
18
18
|
'X-Appwrite-Response-Format' => '2.0.0'
|
|
19
19
|
}
|
|
20
20
|
@endpoint = 'https://cloud.appwrite.io/v1'
|
|
@@ -69,6 +69,7 @@ module Appwrite
|
|
|
69
69
|
attr_reader :backup_policies
|
|
70
70
|
attr_reader :deployment_size
|
|
71
71
|
attr_reader :build_size
|
|
72
|
+
attr_reader :functions_interval_minimum
|
|
72
73
|
attr_reader :databases_allow_encrypt
|
|
73
74
|
attr_reader :limits
|
|
74
75
|
attr_reader :group
|
|
@@ -143,6 +144,7 @@ module Appwrite
|
|
|
143
144
|
backup_policies:,
|
|
144
145
|
deployment_size:,
|
|
145
146
|
build_size:,
|
|
147
|
+
functions_interval_minimum:,
|
|
146
148
|
databases_allow_encrypt:,
|
|
147
149
|
limits:,
|
|
148
150
|
group:,
|
|
@@ -216,6 +218,7 @@ module Appwrite
|
|
|
216
218
|
@backup_policies = backup_policies
|
|
217
219
|
@deployment_size = deployment_size
|
|
218
220
|
@build_size = build_size
|
|
221
|
+
@functions_interval_minimum = functions_interval_minimum
|
|
219
222
|
@databases_allow_encrypt = databases_allow_encrypt
|
|
220
223
|
@limits = limits
|
|
221
224
|
@group = validate_group(group)
|
|
@@ -292,6 +295,7 @@ module Appwrite
|
|
|
292
295
|
backup_policies: map["backupPolicies"],
|
|
293
296
|
deployment_size: map["deploymentSize"],
|
|
294
297
|
build_size: map["buildSize"],
|
|
298
|
+
functions_interval_minimum: map["functionsIntervalMinimum"],
|
|
295
299
|
databases_allow_encrypt: map["databasesAllowEncrypt"],
|
|
296
300
|
limits: map["limits"].nil? ? nil : BillingPlanLimits.from(map: map["limits"]),
|
|
297
301
|
group: map["group"],
|
|
@@ -369,6 +373,7 @@ module Appwrite
|
|
|
369
373
|
"backupPolicies": @backup_policies,
|
|
370
374
|
"deploymentSize": @deployment_size,
|
|
371
375
|
"buildSize": @build_size,
|
|
376
|
+
"functionsIntervalMinimum": @functions_interval_minimum,
|
|
372
377
|
"databasesAllowEncrypt": @databases_allow_encrypt,
|
|
373
378
|
"limits": @limits&.to_map,
|
|
374
379
|
"group": @group,
|
|
@@ -22,6 +22,7 @@ module Appwrite
|
|
|
22
22
|
attr_reader :vars
|
|
23
23
|
attr_reader :events
|
|
24
24
|
attr_reader :schedule
|
|
25
|
+
attr_reader :interval
|
|
25
26
|
attr_reader :timeout
|
|
26
27
|
attr_reader :entrypoint
|
|
27
28
|
attr_reader :commands
|
|
@@ -56,6 +57,7 @@ module Appwrite
|
|
|
56
57
|
vars:,
|
|
57
58
|
events:,
|
|
58
59
|
schedule:,
|
|
60
|
+
interval:,
|
|
59
61
|
timeout:,
|
|
60
62
|
entrypoint:,
|
|
61
63
|
commands:,
|
|
@@ -89,6 +91,7 @@ module Appwrite
|
|
|
89
91
|
@vars = vars
|
|
90
92
|
@events = events
|
|
91
93
|
@schedule = schedule
|
|
94
|
+
@interval = interval
|
|
92
95
|
@timeout = timeout
|
|
93
96
|
@entrypoint = entrypoint
|
|
94
97
|
@commands = commands
|
|
@@ -125,6 +128,7 @@ module Appwrite
|
|
|
125
128
|
vars: map["vars"].map { |it| Variable.from(map: it) },
|
|
126
129
|
events: map["events"],
|
|
127
130
|
schedule: map["schedule"],
|
|
131
|
+
interval: map["interval"],
|
|
128
132
|
timeout: map["timeout"],
|
|
129
133
|
entrypoint: map["entrypoint"],
|
|
130
134
|
commands: map["commands"],
|
|
@@ -162,6 +166,7 @@ module Appwrite
|
|
|
162
166
|
"vars": @vars.map { |it| it.to_map },
|
|
163
167
|
"events": @events,
|
|
164
168
|
"schedule": @schedule,
|
|
169
|
+
"interval": @interval,
|
|
165
170
|
"timeout": @timeout,
|
|
166
171
|
"entrypoint": @entrypoint,
|
|
167
172
|
"commands": @commands,
|
|
@@ -51,7 +51,7 @@ module Appwrite
|
|
|
51
51
|
# @param [Runtime] runtime Execution runtime.
|
|
52
52
|
# @param [Array] execute An array of role strings with execution permissions. By default no user is granted with any execute permissions. [learn more about roles](https://appwrite.io/docs/permissions#permission-roles). Maximum of 100 roles are allowed, each 64 characters long.
|
|
53
53
|
# @param [Array] events Events list. Maximum of 100 events are allowed.
|
|
54
|
-
# @param [String] schedule Schedule CRON syntax.
|
|
54
|
+
# @param [String] schedule Schedule CRON syntax. Cannot be combined with interval.
|
|
55
55
|
# @param [Integer] timeout Function maximum execution time in seconds.
|
|
56
56
|
# @param [] enabled Is function enabled? When set to 'disabled', users cannot access the function but Server SDKs with and API key can still access the function. No data is lost when this is toggled.
|
|
57
57
|
# @param [] logging When disabled, executions will exclude logs and errors, and will be slightly faster.
|
|
@@ -68,6 +68,7 @@ module Appwrite
|
|
|
68
68
|
# @param [String] build_specification Build specification for the function deployments.
|
|
69
69
|
# @param [String] runtime_specification Runtime specification for the function executions.
|
|
70
70
|
# @param [Integer] deployment_retention Days to keep non-active deployments before deletion. Value 0 means all deployments will be kept.
|
|
71
|
+
# @param [Integer] interval Minutes between scheduled executions. Appwrite picks when within each interval the function runs. Use 0 to disable. Cannot be combined with schedule.
|
|
71
72
|
#
|
|
72
73
|
# @return [Function]
|
|
73
74
|
def create(
|
|
@@ -92,7 +93,8 @@ module Appwrite
|
|
|
92
93
|
provider_paths: nil,
|
|
93
94
|
build_specification: nil,
|
|
94
95
|
runtime_specification: nil,
|
|
95
|
-
deployment_retention: nil
|
|
96
|
+
deployment_retention: nil,
|
|
97
|
+
interval: nil
|
|
96
98
|
)
|
|
97
99
|
api_path = '/functions'
|
|
98
100
|
|
|
@@ -131,6 +133,7 @@ module Appwrite
|
|
|
131
133
|
buildSpecification: build_specification,
|
|
132
134
|
runtimeSpecification: runtime_specification,
|
|
133
135
|
deploymentRetention: deployment_retention,
|
|
136
|
+
interval: interval,
|
|
134
137
|
}
|
|
135
138
|
|
|
136
139
|
api_headers = {
|
|
@@ -237,7 +240,7 @@ module Appwrite
|
|
|
237
240
|
# @param [Runtime] runtime Execution runtime.
|
|
238
241
|
# @param [Array] execute An array of role strings with execution permissions. By default no user is granted with any execute permissions. [learn more about roles](https://appwrite.io/docs/permissions#permission-roles). Maximum of 100 roles are allowed, each 64 characters long.
|
|
239
242
|
# @param [Array] events Events list. Maximum of 100 events are allowed.
|
|
240
|
-
# @param [String] schedule Schedule CRON syntax.
|
|
243
|
+
# @param [String] schedule Schedule CRON syntax. Cannot be combined with interval.
|
|
241
244
|
# @param [Integer] timeout Maximum execution time in seconds.
|
|
242
245
|
# @param [] enabled Is function enabled? When set to 'disabled', users cannot access the function but Server SDKs with and API key can still access the function. No data is lost when this is toggled.
|
|
243
246
|
# @param [] logging When disabled, executions will exclude logs and errors, and will be slightly faster.
|
|
@@ -254,6 +257,7 @@ module Appwrite
|
|
|
254
257
|
# @param [String] build_specification Build specification for the function deployments.
|
|
255
258
|
# @param [String] runtime_specification Runtime specification for the function executions.
|
|
256
259
|
# @param [Integer] deployment_retention Days to keep non-active deployments before deletion. Value 0 means all deployments will be kept.
|
|
260
|
+
# @param [Integer] interval Minutes between scheduled executions. Appwrite picks when within each interval the function runs. Use 0 to disable. Cannot be combined with schedule. When omitted, the current interval is kept unless schedule is set.
|
|
257
261
|
#
|
|
258
262
|
# @return [Function]
|
|
259
263
|
def update(
|
|
@@ -278,7 +282,8 @@ module Appwrite
|
|
|
278
282
|
provider_paths: nil,
|
|
279
283
|
build_specification: nil,
|
|
280
284
|
runtime_specification: nil,
|
|
281
|
-
deployment_retention: nil
|
|
285
|
+
deployment_retention: nil,
|
|
286
|
+
interval: nil
|
|
282
287
|
)
|
|
283
288
|
api_path = '/functions/{functionId}'
|
|
284
289
|
.gsub('{functionId}', function_id)
|
|
@@ -313,6 +318,7 @@ module Appwrite
|
|
|
313
318
|
buildSpecification: build_specification,
|
|
314
319
|
runtimeSpecification: runtime_specification,
|
|
315
320
|
deploymentRetention: deployment_retention,
|
|
321
|
+
interval: interval,
|
|
316
322
|
}
|
|
317
323
|
|
|
318
324
|
api_headers = {
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: appwrite
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 28.
|
|
4
|
+
version: 28.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Appwrite Team
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-10-
|
|
11
|
+
date: 2026-10-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: mime-types
|