appwrite 30.1.0 → 30.3.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 +16 -2
- data/lib/appwrite/enums/appwrite_migration_resource.rb +1 -0
- data/lib/appwrite/enums/image_format.rb +1 -0
- data/lib/appwrite/enums/o_auth_provider.rb +3 -0
- data/lib/appwrite/enums/project_auth_method_id.rb +1 -0
- data/lib/appwrite/enums/project_key_scopes.rb +12 -0
- data/lib/appwrite/enums/project_ldap_encryption.rb +9 -0
- data/lib/appwrite/enums/project_o_auth_provider_id.rb +3 -0
- data/lib/appwrite/enums/project_policy_id.rb +1 -0
- data/lib/appwrite/models/activity_event.rb +9 -4
- data/lib/appwrite/models/device.rb +58 -0
- data/lib/appwrite/models/domain_price.rb +8 -3
- data/lib/appwrite/models/environment.rb +48 -0
- data/lib/appwrite/models/environment_list.rb +33 -0
- data/lib/appwrite/models/o_auth2_naver.rb +43 -0
- data/lib/appwrite/models/o_auth2_vipps.rb +43 -0
- data/lib/appwrite/models/organization.rb +16 -1
- data/lib/appwrite/models/policy_account_devices.rb +33 -0
- data/lib/appwrite/models/project.rb +91 -1
- data/lib/appwrite/models/project_auth_method.rb +1 -0
- data/lib/appwrite/models/proxy_rule.rb +11 -1
- data/lib/appwrite/models/session.rb +6 -1
- data/lib/appwrite/models/site.rb +14 -4
- data/lib/appwrite/models/waf_rule_bypass.rb +8 -3
- data/lib/appwrite/models/waf_rule_challenge.rb +5 -0
- data/lib/appwrite/models/waf_rule_deny.rb +8 -3
- data/lib/appwrite/models/waf_rule_rate_limit.rb +5 -0
- data/lib/appwrite/models/waf_rule_redirect.rb +5 -0
- data/lib/appwrite/services/account.rb +206 -1
- data/lib/appwrite/services/avatars.rb +5 -2
- data/lib/appwrite/services/domains.rb +7 -6
- data/lib/appwrite/services/project.rb +402 -21
- data/lib/appwrite/services/proxy.rb +154 -1
- data/lib/appwrite/services/sites.rb +44 -0
- data/lib/appwrite/services/storage.rb +7 -4
- data/lib/appwrite/services/waf.rb +40 -10
- data/lib/appwrite.rb +7 -0
- metadata +9 -2
|
@@ -19,9 +19,26 @@ module Appwrite
|
|
|
19
19
|
attr_reader :smtp_username
|
|
20
20
|
attr_reader :smtp_password
|
|
21
21
|
attr_reader :smtp_secure
|
|
22
|
+
attr_reader :ldap_enabled
|
|
23
|
+
attr_reader :ldap_hosts
|
|
24
|
+
attr_reader :ldap_port
|
|
25
|
+
attr_reader :ldap_encryption
|
|
26
|
+
attr_reader :ldap_verification
|
|
27
|
+
attr_reader :ldap_certificate
|
|
28
|
+
attr_reader :ldap_timeout
|
|
29
|
+
attr_reader :ldap_base_dn
|
|
30
|
+
attr_reader :ldap_bind_dn
|
|
31
|
+
attr_reader :ldap_bind_password
|
|
32
|
+
attr_reader :ldap_user_filter
|
|
33
|
+
attr_reader :ldap_required_group_dn
|
|
34
|
+
attr_reader :ldap_id_attribute
|
|
35
|
+
attr_reader :ldap_email_attribute
|
|
36
|
+
attr_reader :ldap_name_attribute
|
|
37
|
+
attr_reader :ldap_phone_attribute
|
|
22
38
|
attr_reader :ping_count
|
|
23
39
|
attr_reader :pinged_at
|
|
24
40
|
attr_reader :labels
|
|
41
|
+
attr_reader :prefs
|
|
25
42
|
attr_reader :status
|
|
26
43
|
attr_reader :onboarding
|
|
27
44
|
attr_reader :auth_methods
|
|
@@ -31,6 +48,7 @@ module Appwrite
|
|
|
31
48
|
attr_reader :console_accessed_at
|
|
32
49
|
attr_reader :waf_enabled
|
|
33
50
|
attr_reader :parent_id
|
|
51
|
+
attr_reader :environment_id
|
|
34
52
|
attr_reader :billing_limits
|
|
35
53
|
attr_reader :first_accessed_at
|
|
36
54
|
attr_reader :mcp_accessed_at
|
|
@@ -69,9 +87,26 @@ module Appwrite
|
|
|
69
87
|
smtp_username:,
|
|
70
88
|
smtp_password:,
|
|
71
89
|
smtp_secure:,
|
|
90
|
+
ldap_enabled:,
|
|
91
|
+
ldap_hosts:,
|
|
92
|
+
ldap_port:,
|
|
93
|
+
ldap_encryption:,
|
|
94
|
+
ldap_verification:,
|
|
95
|
+
ldap_certificate:,
|
|
96
|
+
ldap_timeout:,
|
|
97
|
+
ldap_base_dn:,
|
|
98
|
+
ldap_bind_dn:,
|
|
99
|
+
ldap_bind_password:,
|
|
100
|
+
ldap_user_filter:,
|
|
101
|
+
ldap_required_group_dn:,
|
|
102
|
+
ldap_id_attribute:,
|
|
103
|
+
ldap_email_attribute:,
|
|
104
|
+
ldap_name_attribute:,
|
|
105
|
+
ldap_phone_attribute:,
|
|
72
106
|
ping_count:,
|
|
73
107
|
pinged_at:,
|
|
74
108
|
labels:,
|
|
109
|
+
prefs: nil,
|
|
75
110
|
status:,
|
|
76
111
|
onboarding:,
|
|
77
112
|
auth_methods:,
|
|
@@ -81,6 +116,7 @@ module Appwrite
|
|
|
81
116
|
console_accessed_at:,
|
|
82
117
|
waf_enabled: false,
|
|
83
118
|
parent_id: nil,
|
|
119
|
+
environment_id: nil,
|
|
84
120
|
billing_limits: nil,
|
|
85
121
|
first_accessed_at: nil,
|
|
86
122
|
mcp_accessed_at: nil,
|
|
@@ -118,9 +154,26 @@ module Appwrite
|
|
|
118
154
|
@smtp_username = smtp_username
|
|
119
155
|
@smtp_password = smtp_password
|
|
120
156
|
@smtp_secure = smtp_secure
|
|
157
|
+
@ldap_enabled = ldap_enabled
|
|
158
|
+
@ldap_hosts = ldap_hosts
|
|
159
|
+
@ldap_port = ldap_port
|
|
160
|
+
@ldap_encryption = ldap_encryption
|
|
161
|
+
@ldap_verification = ldap_verification
|
|
162
|
+
@ldap_certificate = ldap_certificate
|
|
163
|
+
@ldap_timeout = ldap_timeout
|
|
164
|
+
@ldap_base_dn = ldap_base_dn
|
|
165
|
+
@ldap_bind_dn = ldap_bind_dn
|
|
166
|
+
@ldap_bind_password = ldap_bind_password
|
|
167
|
+
@ldap_user_filter = ldap_user_filter
|
|
168
|
+
@ldap_required_group_dn = ldap_required_group_dn
|
|
169
|
+
@ldap_id_attribute = ldap_id_attribute
|
|
170
|
+
@ldap_email_attribute = ldap_email_attribute
|
|
171
|
+
@ldap_name_attribute = ldap_name_attribute
|
|
172
|
+
@ldap_phone_attribute = ldap_phone_attribute
|
|
121
173
|
@ping_count = ping_count
|
|
122
174
|
@pinged_at = pinged_at
|
|
123
175
|
@labels = labels
|
|
176
|
+
@prefs = prefs
|
|
124
177
|
@status = status
|
|
125
178
|
@onboarding = onboarding
|
|
126
179
|
@auth_methods = auth_methods
|
|
@@ -130,6 +183,7 @@ module Appwrite
|
|
|
130
183
|
@console_accessed_at = console_accessed_at
|
|
131
184
|
@waf_enabled = waf_enabled
|
|
132
185
|
@parent_id = parent_id
|
|
186
|
+
@environment_id = environment_id
|
|
133
187
|
@billing_limits = billing_limits
|
|
134
188
|
@first_accessed_at = first_accessed_at
|
|
135
189
|
@mcp_accessed_at = mcp_accessed_at
|
|
@@ -153,7 +207,7 @@ module Appwrite
|
|
|
153
207
|
end
|
|
154
208
|
|
|
155
209
|
def self.from(map:)
|
|
156
|
-
map = { "$id" => "", "$createdAt" => "", "$updatedAt" => "", "name" => "", "teamId" => "", "region" => "fra", "smtpEnabled" => false, "smtpSenderName" => "", "smtpSenderEmail" => "", "smtpReplyToName" => "", "smtpReplyToEmail" => "", "smtpHost" => "", "smtpPort" => 0, "smtpUsername" => "", "smtpPassword" => "", "smtpSecure" => "", "pingCount" => 0, "pingedAt" => "", "labels" => [], "status" => "active", "onboarding" => {}, "authMethods" => [], "services" => [], "protocols" => [], "blocks" => [], "consoleAccessedAt" => "" }.merge(map)
|
|
210
|
+
map = { "$id" => "", "$createdAt" => "", "$updatedAt" => "", "name" => "", "teamId" => "", "region" => "fra", "smtpEnabled" => false, "smtpSenderName" => "", "smtpSenderEmail" => "", "smtpReplyToName" => "", "smtpReplyToEmail" => "", "smtpHost" => "", "smtpPort" => 0, "smtpUsername" => "", "smtpPassword" => "", "smtpSecure" => "", "ldapEnabled" => false, "ldapHosts" => [], "ldapPort" => 636, "ldapEncryption" => "ldaps", "ldapVerification" => true, "ldapCertificate" => "", "ldapTimeout" => 10, "ldapBaseDn" => "", "ldapBindDn" => "", "ldapBindPassword" => "", "ldapUserFilter" => "(uid={username})", "ldapRequiredGroupDn" => "", "ldapIdAttribute" => "entryUUID", "ldapEmailAttribute" => "mail", "ldapNameAttribute" => "cn", "ldapPhoneAttribute" => "", "pingCount" => 0, "pingedAt" => "", "labels" => [], "status" => "active", "onboarding" => {}, "authMethods" => [], "services" => [], "protocols" => [], "blocks" => [], "consoleAccessedAt" => "" }.merge(map)
|
|
157
211
|
Project.new(
|
|
158
212
|
id: map["$id"],
|
|
159
213
|
created_at: map["$createdAt"],
|
|
@@ -171,9 +225,26 @@ module Appwrite
|
|
|
171
225
|
smtp_username: map["smtpUsername"],
|
|
172
226
|
smtp_password: map["smtpPassword"],
|
|
173
227
|
smtp_secure: map["smtpSecure"],
|
|
228
|
+
ldap_enabled: map["ldapEnabled"],
|
|
229
|
+
ldap_hosts: map["ldapHosts"],
|
|
230
|
+
ldap_port: map["ldapPort"],
|
|
231
|
+
ldap_encryption: map["ldapEncryption"],
|
|
232
|
+
ldap_verification: map["ldapVerification"],
|
|
233
|
+
ldap_certificate: map["ldapCertificate"],
|
|
234
|
+
ldap_timeout: map["ldapTimeout"],
|
|
235
|
+
ldap_base_dn: map["ldapBaseDn"],
|
|
236
|
+
ldap_bind_dn: map["ldapBindDn"],
|
|
237
|
+
ldap_bind_password: map["ldapBindPassword"],
|
|
238
|
+
ldap_user_filter: map["ldapUserFilter"],
|
|
239
|
+
ldap_required_group_dn: map["ldapRequiredGroupDn"],
|
|
240
|
+
ldap_id_attribute: map["ldapIdAttribute"],
|
|
241
|
+
ldap_email_attribute: map["ldapEmailAttribute"],
|
|
242
|
+
ldap_name_attribute: map["ldapNameAttribute"],
|
|
243
|
+
ldap_phone_attribute: map["ldapPhoneAttribute"],
|
|
174
244
|
ping_count: map["pingCount"],
|
|
175
245
|
pinged_at: map["pingedAt"],
|
|
176
246
|
labels: map["labels"],
|
|
247
|
+
prefs: map["prefs"].nil? ? nil : Preferences.from(map: map["prefs"]),
|
|
177
248
|
status: map["status"],
|
|
178
249
|
onboarding: map["onboarding"],
|
|
179
250
|
auth_methods: map["authMethods"].map { |it| ProjectAuthMethod.from(map: it) },
|
|
@@ -183,6 +254,7 @@ module Appwrite
|
|
|
183
254
|
console_accessed_at: map["consoleAccessedAt"],
|
|
184
255
|
waf_enabled: map["wafEnabled"],
|
|
185
256
|
parent_id: map["parentId"],
|
|
257
|
+
environment_id: map["environmentId"],
|
|
186
258
|
billing_limits: map["billingLimits"].nil? ? nil : BillingLimits.from(map: map["billingLimits"]),
|
|
187
259
|
first_accessed_at: map["firstAccessedAt"],
|
|
188
260
|
mcp_accessed_at: map["mcpAccessedAt"],
|
|
@@ -224,9 +296,26 @@ module Appwrite
|
|
|
224
296
|
"smtpUsername": @smtp_username,
|
|
225
297
|
"smtpPassword": @smtp_password,
|
|
226
298
|
"smtpSecure": @smtp_secure,
|
|
299
|
+
"ldapEnabled": @ldap_enabled,
|
|
300
|
+
"ldapHosts": @ldap_hosts,
|
|
301
|
+
"ldapPort": @ldap_port,
|
|
302
|
+
"ldapEncryption": @ldap_encryption,
|
|
303
|
+
"ldapVerification": @ldap_verification,
|
|
304
|
+
"ldapCertificate": @ldap_certificate,
|
|
305
|
+
"ldapTimeout": @ldap_timeout,
|
|
306
|
+
"ldapBaseDn": @ldap_base_dn,
|
|
307
|
+
"ldapBindDn": @ldap_bind_dn,
|
|
308
|
+
"ldapBindPassword": @ldap_bind_password,
|
|
309
|
+
"ldapUserFilter": @ldap_user_filter,
|
|
310
|
+
"ldapRequiredGroupDn": @ldap_required_group_dn,
|
|
311
|
+
"ldapIdAttribute": @ldap_id_attribute,
|
|
312
|
+
"ldapEmailAttribute": @ldap_email_attribute,
|
|
313
|
+
"ldapNameAttribute": @ldap_name_attribute,
|
|
314
|
+
"ldapPhoneAttribute": @ldap_phone_attribute,
|
|
227
315
|
"pingCount": @ping_count,
|
|
228
316
|
"pingedAt": @pinged_at,
|
|
229
317
|
"labels": @labels,
|
|
318
|
+
"prefs": @prefs&.to_map,
|
|
230
319
|
"status": @status,
|
|
231
320
|
"onboarding": @onboarding,
|
|
232
321
|
"authMethods": @auth_methods.map { |it| it.to_map },
|
|
@@ -236,6 +325,7 @@ module Appwrite
|
|
|
236
325
|
"consoleAccessedAt": @console_accessed_at,
|
|
237
326
|
"wafEnabled": @waf_enabled,
|
|
238
327
|
"parentId": @parent_id,
|
|
328
|
+
"environmentId": @environment_id,
|
|
239
329
|
"billingLimits": @billing_limits&.to_map,
|
|
240
330
|
"firstAccessedAt": @first_accessed_at,
|
|
241
331
|
"mcpAccessedAt": @mcp_accessed_at,
|
|
@@ -18,6 +18,8 @@ module Appwrite
|
|
|
18
18
|
attr_reader :status
|
|
19
19
|
attr_reader :logs
|
|
20
20
|
attr_reader :renew_at
|
|
21
|
+
attr_reader :expire_at
|
|
22
|
+
attr_reader :certificate_status
|
|
21
23
|
attr_reader :protocol
|
|
22
24
|
|
|
23
25
|
def initialize(
|
|
@@ -36,6 +38,8 @@ module Appwrite
|
|
|
36
38
|
status:,
|
|
37
39
|
logs:,
|
|
38
40
|
renew_at:,
|
|
41
|
+
expire_at:,
|
|
42
|
+
certificate_status:,
|
|
39
43
|
protocol:
|
|
40
44
|
)
|
|
41
45
|
@id = id
|
|
@@ -53,11 +57,13 @@ module Appwrite
|
|
|
53
57
|
@status = validate_status(status)
|
|
54
58
|
@logs = logs
|
|
55
59
|
@renew_at = renew_at
|
|
60
|
+
@expire_at = expire_at
|
|
61
|
+
@certificate_status = certificate_status
|
|
56
62
|
@protocol = validate_protocol(protocol)
|
|
57
63
|
end
|
|
58
64
|
|
|
59
65
|
def self.from(map:)
|
|
60
|
-
map = { "$id" => "", "$createdAt" => "", "$updatedAt" => "", "domain" => "", "type" => "", "trigger" => "", "redirectUrl" => "", "redirectStatusCode" => 301, "deploymentId" => "", "deploymentResourceId" => "", "deploymentVcsProviderBranch" => "", "status" => "unverified", "logs" => "", "protocol" => "http" }.merge(map)
|
|
66
|
+
map = { "$id" => "", "$createdAt" => "", "$updatedAt" => "", "domain" => "", "type" => "", "trigger" => "", "redirectUrl" => "", "redirectStatusCode" => 301, "deploymentId" => "", "deploymentResourceId" => "", "deploymentVcsProviderBranch" => "", "status" => "unverified", "logs" => "", "expireAt" => "", "certificateStatus" => "", "protocol" => "http" }.merge(map)
|
|
61
67
|
ProxyRule.new(
|
|
62
68
|
id: map["$id"],
|
|
63
69
|
created_at: map["$createdAt"],
|
|
@@ -74,6 +80,8 @@ module Appwrite
|
|
|
74
80
|
status: map["status"],
|
|
75
81
|
logs: map["logs"],
|
|
76
82
|
renew_at: map["renewAt"],
|
|
83
|
+
expire_at: map["expireAt"],
|
|
84
|
+
certificate_status: map["certificateStatus"],
|
|
77
85
|
protocol: map["protocol"]
|
|
78
86
|
)
|
|
79
87
|
end
|
|
@@ -95,6 +103,8 @@ module Appwrite
|
|
|
95
103
|
"status": @status,
|
|
96
104
|
"logs": @logs,
|
|
97
105
|
"renewAt": @renew_at,
|
|
106
|
+
"expireAt": @expire_at,
|
|
107
|
+
"certificateStatus": @certificate_status,
|
|
98
108
|
"protocol": @protocol
|
|
99
109
|
}
|
|
100
110
|
end
|
|
@@ -7,6 +7,7 @@ module Appwrite
|
|
|
7
7
|
attr_reader :created_at
|
|
8
8
|
attr_reader :updated_at
|
|
9
9
|
attr_reader :user_id
|
|
10
|
+
attr_reader :user_name
|
|
10
11
|
attr_reader :expire
|
|
11
12
|
attr_reader :provider
|
|
12
13
|
attr_reader :provider_uid
|
|
@@ -38,6 +39,7 @@ module Appwrite
|
|
|
38
39
|
created_at:,
|
|
39
40
|
updated_at:,
|
|
40
41
|
user_id:,
|
|
42
|
+
user_name:,
|
|
41
43
|
expire:,
|
|
42
44
|
provider:,
|
|
43
45
|
provider_uid:,
|
|
@@ -68,6 +70,7 @@ module Appwrite
|
|
|
68
70
|
@created_at = created_at
|
|
69
71
|
@updated_at = updated_at
|
|
70
72
|
@user_id = user_id
|
|
73
|
+
@user_name = user_name
|
|
71
74
|
@expire = expire
|
|
72
75
|
@provider = provider
|
|
73
76
|
@provider_uid = provider_uid
|
|
@@ -96,12 +99,13 @@ module Appwrite
|
|
|
96
99
|
end
|
|
97
100
|
|
|
98
101
|
def self.from(map:)
|
|
99
|
-
map = { "$id" => "", "$createdAt" => "", "$updatedAt" => "", "userId" => "", "expire" => "", "provider" => "", "providerUid" => "", "providerAccessToken" => "", "providerAccessTokenExpiry" => "", "providerRefreshToken" => "", "ip" => "", "osCode" => "", "osName" => "", "osVersion" => "", "clientType" => "", "clientCode" => "", "clientName" => "", "clientVersion" => "", "clientEngine" => "", "clientEngineVersion" => "", "deviceName" => "", "deviceBrand" => "", "deviceModel" => "", "countryCode" => "", "countryName" => "", "current" => false, "factors" => [], "secret" => "", "mfaUpdatedAt" => "" }.merge(map)
|
|
102
|
+
map = { "$id" => "", "$createdAt" => "", "$updatedAt" => "", "userId" => "", "userName" => "", "expire" => "", "provider" => "", "providerUid" => "", "providerAccessToken" => "", "providerAccessTokenExpiry" => "", "providerRefreshToken" => "", "ip" => "", "osCode" => "", "osName" => "", "osVersion" => "", "clientType" => "", "clientCode" => "", "clientName" => "", "clientVersion" => "", "clientEngine" => "", "clientEngineVersion" => "", "deviceName" => "", "deviceBrand" => "", "deviceModel" => "", "countryCode" => "", "countryName" => "", "current" => false, "factors" => [], "secret" => "", "mfaUpdatedAt" => "" }.merge(map)
|
|
100
103
|
Session.new(
|
|
101
104
|
id: map["$id"],
|
|
102
105
|
created_at: map["$createdAt"],
|
|
103
106
|
updated_at: map["$updatedAt"],
|
|
104
107
|
user_id: map["userId"],
|
|
108
|
+
user_name: map["userName"],
|
|
105
109
|
expire: map["expire"],
|
|
106
110
|
provider: map["provider"],
|
|
107
111
|
provider_uid: map["providerUid"],
|
|
@@ -136,6 +140,7 @@ module Appwrite
|
|
|
136
140
|
"$createdAt": @created_at,
|
|
137
141
|
"$updatedAt": @updated_at,
|
|
138
142
|
"userId": @user_id,
|
|
143
|
+
"userName": @user_name,
|
|
139
144
|
"expire": @expire,
|
|
140
145
|
"provider": @provider,
|
|
141
146
|
"providerUid": @provider_uid,
|
data/lib/appwrite/models/site.rb
CHANGED
|
@@ -39,6 +39,8 @@ module Appwrite
|
|
|
39
39
|
attr_reader :build_runtime
|
|
40
40
|
attr_reader :adapter
|
|
41
41
|
attr_reader :fallback_file
|
|
42
|
+
attr_reader :analytics_enabled
|
|
43
|
+
attr_reader :analytics_property_id
|
|
42
44
|
|
|
43
45
|
def initialize(
|
|
44
46
|
id:,
|
|
@@ -76,7 +78,9 @@ module Appwrite
|
|
|
76
78
|
runtime_specification:,
|
|
77
79
|
build_runtime:,
|
|
78
80
|
adapter:,
|
|
79
|
-
fallback_file
|
|
81
|
+
fallback_file:,
|
|
82
|
+
analytics_enabled:,
|
|
83
|
+
analytics_property_id:
|
|
80
84
|
)
|
|
81
85
|
@id = id
|
|
82
86
|
@created_at = created_at
|
|
@@ -114,10 +118,12 @@ module Appwrite
|
|
|
114
118
|
@build_runtime = build_runtime
|
|
115
119
|
@adapter = adapter
|
|
116
120
|
@fallback_file = fallback_file
|
|
121
|
+
@analytics_enabled = analytics_enabled
|
|
122
|
+
@analytics_property_id = analytics_property_id
|
|
117
123
|
end
|
|
118
124
|
|
|
119
125
|
def self.from(map:)
|
|
120
|
-
map = { "$id" => "", "$createdAt" => "", "$updatedAt" => "", "name" => "", "description" => "", "enabled" => true, "live" => true, "logging" => true, "framework" => "", "deploymentRetention" => 0, "deploymentId" => "", "deploymentCreatedAt" => "", "deploymentScreenshotLight" => "", "deploymentScreenshotDark" => "", "latestDeploymentId" => "", "latestDeploymentCreatedAt" => "", "latestDeploymentStatus" => "", "scopes" => [], "vars" => [], "timeout" => 15, "installCommand" => "", "buildCommand" => "", "startCommand" => "", "outputDirectory" => "", "installationId" => "", "providerRepositoryId" => "", "providerBranch" => "", "providerRootDirectory" => "", "providerSilentMode" => false, "providerBranches" => [], "providerPaths" => [], "buildSpecification" => "s-1vcpu-512mb", "runtimeSpecification" => "s-1vcpu-512mb", "buildRuntime" => "" }.merge(map)
|
|
126
|
+
map = { "$id" => "", "$createdAt" => "", "$updatedAt" => "", "name" => "", "description" => "", "enabled" => true, "live" => true, "logging" => true, "framework" => "", "deploymentRetention" => 0, "deploymentId" => "", "deploymentCreatedAt" => "", "deploymentScreenshotLight" => "", "deploymentScreenshotDark" => "", "latestDeploymentId" => "", "latestDeploymentCreatedAt" => "", "latestDeploymentStatus" => "", "scopes" => [], "vars" => [], "timeout" => 15, "installCommand" => "", "buildCommand" => "", "startCommand" => "", "outputDirectory" => "", "installationId" => "", "providerRepositoryId" => "", "providerBranch" => "", "providerRootDirectory" => "", "providerSilentMode" => false, "providerBranches" => [], "providerPaths" => [], "buildSpecification" => "s-1vcpu-512mb", "runtimeSpecification" => "s-1vcpu-512mb", "buildRuntime" => "", "analyticsEnabled" => false, "analyticsPropertyId" => "" }.merge(map)
|
|
121
127
|
Site.new(
|
|
122
128
|
id: map["$id"],
|
|
123
129
|
created_at: map["$createdAt"],
|
|
@@ -154,7 +160,9 @@ module Appwrite
|
|
|
154
160
|
runtime_specification: map["runtimeSpecification"],
|
|
155
161
|
build_runtime: map["buildRuntime"],
|
|
156
162
|
adapter: map["adapter"],
|
|
157
|
-
fallback_file: map["fallbackFile"]
|
|
163
|
+
fallback_file: map["fallbackFile"],
|
|
164
|
+
analytics_enabled: map["analyticsEnabled"],
|
|
165
|
+
analytics_property_id: map["analyticsPropertyId"]
|
|
158
166
|
)
|
|
159
167
|
end
|
|
160
168
|
|
|
@@ -195,7 +203,9 @@ module Appwrite
|
|
|
195
203
|
"runtimeSpecification": @runtime_specification,
|
|
196
204
|
"buildRuntime": @build_runtime,
|
|
197
205
|
"adapter": @adapter,
|
|
198
|
-
"fallbackFile": @fallback_file
|
|
206
|
+
"fallbackFile": @fallback_file,
|
|
207
|
+
"analyticsEnabled": @analytics_enabled,
|
|
208
|
+
"analyticsPropertyId": @analytics_property_id
|
|
199
209
|
}
|
|
200
210
|
end
|
|
201
211
|
end
|
|
@@ -17,6 +17,7 @@ module Appwrite
|
|
|
17
17
|
attr_reader :enabled
|
|
18
18
|
attr_reader :conditions
|
|
19
19
|
attr_reader :config
|
|
20
|
+
attr_reader :schedule
|
|
20
21
|
|
|
21
22
|
def initialize(
|
|
22
23
|
id:,
|
|
@@ -32,7 +33,8 @@ module Appwrite
|
|
|
32
33
|
priority:,
|
|
33
34
|
enabled:,
|
|
34
35
|
conditions:,
|
|
35
|
-
config
|
|
36
|
+
config:,
|
|
37
|
+
schedule: nil
|
|
36
38
|
)
|
|
37
39
|
@id = id
|
|
38
40
|
@created_at = created_at
|
|
@@ -48,6 +50,7 @@ module Appwrite
|
|
|
48
50
|
@enabled = enabled
|
|
49
51
|
@conditions = conditions
|
|
50
52
|
@config = config
|
|
53
|
+
@schedule = schedule
|
|
51
54
|
end
|
|
52
55
|
|
|
53
56
|
def self.from(map:)
|
|
@@ -66,7 +69,8 @@ module Appwrite
|
|
|
66
69
|
priority: map["priority"],
|
|
67
70
|
enabled: map["enabled"],
|
|
68
71
|
conditions: map["conditions"],
|
|
69
|
-
config: map["config"]
|
|
72
|
+
config: map["config"],
|
|
73
|
+
schedule: map["schedule"]
|
|
70
74
|
)
|
|
71
75
|
end
|
|
72
76
|
|
|
@@ -85,7 +89,8 @@ module Appwrite
|
|
|
85
89
|
"priority": @priority,
|
|
86
90
|
"enabled": @enabled,
|
|
87
91
|
"conditions": @conditions,
|
|
88
|
-
"config": @config
|
|
92
|
+
"config": @config,
|
|
93
|
+
"schedule": @schedule
|
|
89
94
|
}
|
|
90
95
|
end
|
|
91
96
|
|
|
@@ -17,6 +17,7 @@ module Appwrite
|
|
|
17
17
|
attr_reader :enabled
|
|
18
18
|
attr_reader :conditions
|
|
19
19
|
attr_reader :config
|
|
20
|
+
attr_reader :schedule
|
|
20
21
|
attr_reader :challenge_type
|
|
21
22
|
attr_reader :difficulty
|
|
22
23
|
attr_reader :ttl
|
|
@@ -36,6 +37,7 @@ module Appwrite
|
|
|
36
37
|
enabled:,
|
|
37
38
|
conditions:,
|
|
38
39
|
config:,
|
|
40
|
+
schedule: nil,
|
|
39
41
|
challenge_type:,
|
|
40
42
|
difficulty:,
|
|
41
43
|
ttl:
|
|
@@ -54,6 +56,7 @@ module Appwrite
|
|
|
54
56
|
@enabled = enabled
|
|
55
57
|
@conditions = conditions
|
|
56
58
|
@config = config
|
|
59
|
+
@schedule = schedule
|
|
57
60
|
@challenge_type = challenge_type
|
|
58
61
|
@difficulty = difficulty
|
|
59
62
|
@ttl = ttl
|
|
@@ -76,6 +79,7 @@ module Appwrite
|
|
|
76
79
|
enabled: map["enabled"],
|
|
77
80
|
conditions: map["conditions"],
|
|
78
81
|
config: map["config"],
|
|
82
|
+
schedule: map["schedule"],
|
|
79
83
|
challenge_type: map["challengeType"],
|
|
80
84
|
difficulty: map["difficulty"],
|
|
81
85
|
ttl: map["ttl"]
|
|
@@ -98,6 +102,7 @@ module Appwrite
|
|
|
98
102
|
"enabled": @enabled,
|
|
99
103
|
"conditions": @conditions,
|
|
100
104
|
"config": @config,
|
|
105
|
+
"schedule": @schedule,
|
|
101
106
|
"challengeType": @challenge_type,
|
|
102
107
|
"difficulty": @difficulty,
|
|
103
108
|
"ttl": @ttl
|
|
@@ -17,6 +17,7 @@ module Appwrite
|
|
|
17
17
|
attr_reader :enabled
|
|
18
18
|
attr_reader :conditions
|
|
19
19
|
attr_reader :config
|
|
20
|
+
attr_reader :schedule
|
|
20
21
|
|
|
21
22
|
def initialize(
|
|
22
23
|
id:,
|
|
@@ -32,7 +33,8 @@ module Appwrite
|
|
|
32
33
|
priority:,
|
|
33
34
|
enabled:,
|
|
34
35
|
conditions:,
|
|
35
|
-
config
|
|
36
|
+
config:,
|
|
37
|
+
schedule: nil
|
|
36
38
|
)
|
|
37
39
|
@id = id
|
|
38
40
|
@created_at = created_at
|
|
@@ -48,6 +50,7 @@ module Appwrite
|
|
|
48
50
|
@enabled = enabled
|
|
49
51
|
@conditions = conditions
|
|
50
52
|
@config = config
|
|
53
|
+
@schedule = schedule
|
|
51
54
|
end
|
|
52
55
|
|
|
53
56
|
def self.from(map:)
|
|
@@ -66,7 +69,8 @@ module Appwrite
|
|
|
66
69
|
priority: map["priority"],
|
|
67
70
|
enabled: map["enabled"],
|
|
68
71
|
conditions: map["conditions"],
|
|
69
|
-
config: map["config"]
|
|
72
|
+
config: map["config"],
|
|
73
|
+
schedule: map["schedule"]
|
|
70
74
|
)
|
|
71
75
|
end
|
|
72
76
|
|
|
@@ -85,7 +89,8 @@ module Appwrite
|
|
|
85
89
|
"priority": @priority,
|
|
86
90
|
"enabled": @enabled,
|
|
87
91
|
"conditions": @conditions,
|
|
88
|
-
"config": @config
|
|
92
|
+
"config": @config,
|
|
93
|
+
"schedule": @schedule
|
|
89
94
|
}
|
|
90
95
|
end
|
|
91
96
|
|
|
@@ -17,6 +17,7 @@ module Appwrite
|
|
|
17
17
|
attr_reader :enabled
|
|
18
18
|
attr_reader :conditions
|
|
19
19
|
attr_reader :config
|
|
20
|
+
attr_reader :schedule
|
|
20
21
|
attr_reader :limit
|
|
21
22
|
attr_reader :interval
|
|
22
23
|
attr_reader :key
|
|
@@ -38,6 +39,7 @@ module Appwrite
|
|
|
38
39
|
enabled:,
|
|
39
40
|
conditions:,
|
|
40
41
|
config:,
|
|
42
|
+
schedule: nil,
|
|
41
43
|
limit:,
|
|
42
44
|
interval:,
|
|
43
45
|
key:,
|
|
@@ -58,6 +60,7 @@ module Appwrite
|
|
|
58
60
|
@enabled = enabled
|
|
59
61
|
@conditions = conditions
|
|
60
62
|
@config = config
|
|
63
|
+
@schedule = schedule
|
|
61
64
|
@limit = limit
|
|
62
65
|
@interval = interval
|
|
63
66
|
@key = key
|
|
@@ -82,6 +85,7 @@ module Appwrite
|
|
|
82
85
|
enabled: map["enabled"],
|
|
83
86
|
conditions: map["conditions"],
|
|
84
87
|
config: map["config"],
|
|
88
|
+
schedule: map["schedule"],
|
|
85
89
|
limit: map["limit"],
|
|
86
90
|
interval: map["interval"],
|
|
87
91
|
key: map["key"],
|
|
@@ -106,6 +110,7 @@ module Appwrite
|
|
|
106
110
|
"enabled": @enabled,
|
|
107
111
|
"conditions": @conditions,
|
|
108
112
|
"config": @config,
|
|
113
|
+
"schedule": @schedule,
|
|
109
114
|
"limit": @limit,
|
|
110
115
|
"interval": @interval,
|
|
111
116
|
"key": @key,
|
|
@@ -17,6 +17,7 @@ module Appwrite
|
|
|
17
17
|
attr_reader :enabled
|
|
18
18
|
attr_reader :conditions
|
|
19
19
|
attr_reader :config
|
|
20
|
+
attr_reader :schedule
|
|
20
21
|
attr_reader :location
|
|
21
22
|
attr_reader :status_code
|
|
22
23
|
|
|
@@ -35,6 +36,7 @@ module Appwrite
|
|
|
35
36
|
enabled:,
|
|
36
37
|
conditions:,
|
|
37
38
|
config:,
|
|
39
|
+
schedule: nil,
|
|
38
40
|
location:,
|
|
39
41
|
status_code:
|
|
40
42
|
)
|
|
@@ -52,6 +54,7 @@ module Appwrite
|
|
|
52
54
|
@enabled = enabled
|
|
53
55
|
@conditions = conditions
|
|
54
56
|
@config = config
|
|
57
|
+
@schedule = schedule
|
|
55
58
|
@location = location
|
|
56
59
|
@status_code = status_code
|
|
57
60
|
end
|
|
@@ -73,6 +76,7 @@ module Appwrite
|
|
|
73
76
|
enabled: map["enabled"],
|
|
74
77
|
conditions: map["conditions"],
|
|
75
78
|
config: map["config"],
|
|
79
|
+
schedule: map["schedule"],
|
|
76
80
|
location: map["location"],
|
|
77
81
|
status_code: map["statusCode"]
|
|
78
82
|
)
|
|
@@ -94,6 +98,7 @@ module Appwrite
|
|
|
94
98
|
"enabled": @enabled,
|
|
95
99
|
"conditions": @conditions,
|
|
96
100
|
"config": @config,
|
|
101
|
+
"schedule": @schedule,
|
|
97
102
|
"location": @location,
|
|
98
103
|
"statusCode": @status_code
|
|
99
104
|
}
|