appwrite 22.0.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.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/lib/appwrite/client.rb +9 -2
  3. data/lib/appwrite/enums/build_runtime.rb +2 -0
  4. data/lib/appwrite/enums/o_auth_provider.rb +1 -0
  5. data/lib/appwrite/enums/platform_type.rb +11 -0
  6. data/lib/appwrite/enums/protocol_id.rb +9 -0
  7. data/lib/appwrite/enums/runtime.rb +2 -0
  8. data/lib/appwrite/enums/scopes.rb +4 -0
  9. data/lib/appwrite/enums/service_id.rb +23 -0
  10. data/lib/appwrite/models/auth_provider.rb +47 -0
  11. data/lib/appwrite/models/billing_limits.rb +62 -0
  12. data/lib/appwrite/models/block.rb +47 -0
  13. data/lib/appwrite/models/dev_key.rb +62 -0
  14. data/lib/appwrite/models/key.rb +67 -0
  15. data/lib/appwrite/models/key_list.rb +32 -0
  16. data/lib/appwrite/models/log.rb +5 -0
  17. data/lib/appwrite/models/mock_number.rb +32 -0
  18. data/lib/appwrite/models/platform_android.rb +71 -0
  19. data/lib/appwrite/models/platform_apple.rb +71 -0
  20. data/lib/appwrite/models/platform_linux.rb +71 -0
  21. data/lib/appwrite/models/platform_list.rb +32 -0
  22. data/lib/appwrite/models/platform_web.rb +71 -0
  23. data/lib/appwrite/models/platform_windows.rb +71 -0
  24. data/lib/appwrite/models/project.rb +412 -0
  25. data/lib/appwrite/models/webhook.rb +20 -20
  26. data/lib/appwrite/service.rb +1 -1
  27. data/lib/appwrite/services/account.rb +47 -2
  28. data/lib/appwrite/services/activities.rb +3 -1
  29. data/lib/appwrite/services/avatars.rb +9 -1
  30. data/lib/appwrite/services/backups.rb +13 -1
  31. data/lib/appwrite/services/databases.rb +132 -6
  32. data/lib/appwrite/services/functions.rb +27 -1
  33. data/lib/appwrite/services/graphql.rb +5 -3
  34. data/lib/appwrite/services/health.rb +26 -1
  35. data/lib/appwrite/services/locale.rb +9 -1
  36. data/lib/appwrite/services/messaging.rb +49 -1
  37. data/lib/appwrite/services/project.rb +840 -1
  38. data/lib/appwrite/services/sites.rb +26 -1
  39. data/lib/appwrite/services/storage.rb +14 -1
  40. data/lib/appwrite/services/tables_db.rb +132 -6
  41. data/lib/appwrite/services/teams.rb +14 -1
  42. data/lib/appwrite/services/tokens.rb +6 -1
  43. data/lib/appwrite/services/users.rb +44 -1
  44. data/lib/appwrite/services/webhooks.rb +31 -21
  45. data/lib/appwrite.rb +17 -0
  46. metadata +19 -2
@@ -0,0 +1,71 @@
1
+ #frozen_string_literal: true
2
+
3
+ module Appwrite
4
+ module Models
5
+ class PlatformLinux
6
+ attr_reader :id
7
+ attr_reader :created_at
8
+ attr_reader :updated_at
9
+ attr_reader :name
10
+ attr_reader :type
11
+ attr_reader :package_name
12
+
13
+ def initialize(
14
+ id:,
15
+ created_at:,
16
+ updated_at:,
17
+ name:,
18
+ type:,
19
+ package_name:
20
+ )
21
+ @id = id
22
+ @created_at = created_at
23
+ @updated_at = updated_at
24
+ @name = name
25
+ @type = validate_type(type)
26
+ @package_name = package_name
27
+ end
28
+
29
+ def self.from(map:)
30
+ PlatformLinux.new(
31
+ id: map["$id"],
32
+ created_at: map["$createdAt"],
33
+ updated_at: map["$updatedAt"],
34
+ name: map["name"],
35
+ type: map["type"],
36
+ package_name: map["packageName"]
37
+ )
38
+ end
39
+
40
+ def to_map
41
+ {
42
+ "$id": @id,
43
+ "$createdAt": @created_at,
44
+ "$updatedAt": @updated_at,
45
+ "name": @name,
46
+ "type": @type,
47
+ "packageName": @package_name
48
+ }
49
+ end
50
+
51
+ private
52
+
53
+ def validate_type(type)
54
+ valid_type = [
55
+ Appwrite::Enums::PlatformType::WINDOWS,
56
+ Appwrite::Enums::PlatformType::APPLE,
57
+ Appwrite::Enums::PlatformType::ANDROID,
58
+ Appwrite::Enums::PlatformType::LINUX,
59
+ Appwrite::Enums::PlatformType::WEB,
60
+ ]
61
+
62
+ unless valid_type.include?(type)
63
+ raise ArgumentError, "Invalid " + type + ". Must be one of: " + valid_type.join(', ')
64
+ end
65
+
66
+ type
67
+ end
68
+
69
+ end
70
+ end
71
+ end
@@ -0,0 +1,32 @@
1
+ #frozen_string_literal: true
2
+
3
+ module Appwrite
4
+ module Models
5
+ class PlatformList
6
+ attr_reader :total
7
+ attr_reader :platforms
8
+
9
+ def initialize(
10
+ total:,
11
+ platforms:
12
+ )
13
+ @total = total
14
+ @platforms = platforms
15
+ end
16
+
17
+ def self.from(map:)
18
+ PlatformList.new(
19
+ total: map["total"],
20
+ platforms: map["platforms"]
21
+ )
22
+ end
23
+
24
+ def to_map
25
+ {
26
+ "total": @total,
27
+ "platforms": @platforms
28
+ }
29
+ end
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,71 @@
1
+ #frozen_string_literal: true
2
+
3
+ module Appwrite
4
+ module Models
5
+ class PlatformWeb
6
+ attr_reader :id
7
+ attr_reader :created_at
8
+ attr_reader :updated_at
9
+ attr_reader :name
10
+ attr_reader :type
11
+ attr_reader :hostname
12
+
13
+ def initialize(
14
+ id:,
15
+ created_at:,
16
+ updated_at:,
17
+ name:,
18
+ type:,
19
+ hostname:
20
+ )
21
+ @id = id
22
+ @created_at = created_at
23
+ @updated_at = updated_at
24
+ @name = name
25
+ @type = validate_type(type)
26
+ @hostname = hostname
27
+ end
28
+
29
+ def self.from(map:)
30
+ PlatformWeb.new(
31
+ id: map["$id"],
32
+ created_at: map["$createdAt"],
33
+ updated_at: map["$updatedAt"],
34
+ name: map["name"],
35
+ type: map["type"],
36
+ hostname: map["hostname"]
37
+ )
38
+ end
39
+
40
+ def to_map
41
+ {
42
+ "$id": @id,
43
+ "$createdAt": @created_at,
44
+ "$updatedAt": @updated_at,
45
+ "name": @name,
46
+ "type": @type,
47
+ "hostname": @hostname
48
+ }
49
+ end
50
+
51
+ private
52
+
53
+ def validate_type(type)
54
+ valid_type = [
55
+ Appwrite::Enums::PlatformType::WINDOWS,
56
+ Appwrite::Enums::PlatformType::APPLE,
57
+ Appwrite::Enums::PlatformType::ANDROID,
58
+ Appwrite::Enums::PlatformType::LINUX,
59
+ Appwrite::Enums::PlatformType::WEB,
60
+ ]
61
+
62
+ unless valid_type.include?(type)
63
+ raise ArgumentError, "Invalid " + type + ". Must be one of: " + valid_type.join(', ')
64
+ end
65
+
66
+ type
67
+ end
68
+
69
+ end
70
+ end
71
+ end
@@ -0,0 +1,71 @@
1
+ #frozen_string_literal: true
2
+
3
+ module Appwrite
4
+ module Models
5
+ class PlatformWindows
6
+ attr_reader :id
7
+ attr_reader :created_at
8
+ attr_reader :updated_at
9
+ attr_reader :name
10
+ attr_reader :type
11
+ attr_reader :package_identifier_name
12
+
13
+ def initialize(
14
+ id:,
15
+ created_at:,
16
+ updated_at:,
17
+ name:,
18
+ type:,
19
+ package_identifier_name:
20
+ )
21
+ @id = id
22
+ @created_at = created_at
23
+ @updated_at = updated_at
24
+ @name = name
25
+ @type = validate_type(type)
26
+ @package_identifier_name = package_identifier_name
27
+ end
28
+
29
+ def self.from(map:)
30
+ PlatformWindows.new(
31
+ id: map["$id"],
32
+ created_at: map["$createdAt"],
33
+ updated_at: map["$updatedAt"],
34
+ name: map["name"],
35
+ type: map["type"],
36
+ package_identifier_name: map["packageIdentifierName"]
37
+ )
38
+ end
39
+
40
+ def to_map
41
+ {
42
+ "$id": @id,
43
+ "$createdAt": @created_at,
44
+ "$updatedAt": @updated_at,
45
+ "name": @name,
46
+ "type": @type,
47
+ "packageIdentifierName": @package_identifier_name
48
+ }
49
+ end
50
+
51
+ private
52
+
53
+ def validate_type(type)
54
+ valid_type = [
55
+ Appwrite::Enums::PlatformType::WINDOWS,
56
+ Appwrite::Enums::PlatformType::APPLE,
57
+ Appwrite::Enums::PlatformType::ANDROID,
58
+ Appwrite::Enums::PlatformType::LINUX,
59
+ Appwrite::Enums::PlatformType::WEB,
60
+ ]
61
+
62
+ unless valid_type.include?(type)
63
+ raise ArgumentError, "Invalid " + type + ". Must be one of: " + valid_type.join(', ')
64
+ end
65
+
66
+ type
67
+ end
68
+
69
+ end
70
+ end
71
+ end
@@ -0,0 +1,412 @@
1
+ #frozen_string_literal: true
2
+
3
+ module Appwrite
4
+ module Models
5
+ class Project
6
+ attr_reader :id
7
+ attr_reader :created_at
8
+ attr_reader :updated_at
9
+ attr_reader :name
10
+ attr_reader :description
11
+ attr_reader :team_id
12
+ attr_reader :logo
13
+ attr_reader :url
14
+ attr_reader :legal_name
15
+ attr_reader :legal_country
16
+ attr_reader :legal_state
17
+ attr_reader :legal_city
18
+ attr_reader :legal_address
19
+ attr_reader :legal_tax_id
20
+ attr_reader :auth_duration
21
+ attr_reader :auth_limit
22
+ attr_reader :auth_sessions_limit
23
+ attr_reader :auth_password_history
24
+ attr_reader :auth_password_dictionary
25
+ attr_reader :auth_personal_data_check
26
+ attr_reader :auth_disposable_emails
27
+ attr_reader :auth_canonical_emails
28
+ attr_reader :auth_free_emails
29
+ attr_reader :auth_mock_numbers
30
+ attr_reader :auth_session_alerts
31
+ attr_reader :auth_memberships_user_name
32
+ attr_reader :auth_memberships_user_email
33
+ attr_reader :auth_memberships_mfa
34
+ attr_reader :auth_invalidate_sessions
35
+ attr_reader :o_auth_providers
36
+ attr_reader :platforms
37
+ attr_reader :webhooks
38
+ attr_reader :keys
39
+ attr_reader :dev_keys
40
+ attr_reader :smtp_enabled
41
+ attr_reader :smtp_sender_name
42
+ attr_reader :smtp_sender_email
43
+ attr_reader :smtp_reply_to
44
+ attr_reader :smtp_host
45
+ attr_reader :smtp_port
46
+ attr_reader :smtp_username
47
+ attr_reader :smtp_password
48
+ attr_reader :smtp_secure
49
+ attr_reader :ping_count
50
+ attr_reader :pinged_at
51
+ attr_reader :labels
52
+ attr_reader :status
53
+ attr_reader :auth_email_password
54
+ attr_reader :auth_users_auth_magic_url
55
+ attr_reader :auth_email_otp
56
+ attr_reader :auth_anonymous
57
+ attr_reader :auth_invites
58
+ attr_reader :auth_jwt
59
+ attr_reader :auth_phone
60
+ attr_reader :service_status_for_account
61
+ attr_reader :service_status_for_avatars
62
+ attr_reader :service_status_for_databases
63
+ attr_reader :service_status_for_tablesdb
64
+ attr_reader :service_status_for_locale
65
+ attr_reader :service_status_for_health
66
+ attr_reader :service_status_for_project
67
+ attr_reader :service_status_for_storage
68
+ attr_reader :service_status_for_teams
69
+ attr_reader :service_status_for_users
70
+ attr_reader :service_status_for_vcs
71
+ attr_reader :service_status_for_sites
72
+ attr_reader :service_status_for_functions
73
+ attr_reader :service_status_for_proxy
74
+ attr_reader :service_status_for_graphql
75
+ attr_reader :service_status_for_migrations
76
+ attr_reader :service_status_for_messaging
77
+ attr_reader :protocol_status_for_rest
78
+ attr_reader :protocol_status_for_graphql
79
+ attr_reader :protocol_status_for_websocket
80
+ attr_reader :region
81
+ attr_reader :billing_limits
82
+ attr_reader :blocks
83
+ attr_reader :console_accessed_at
84
+
85
+ def initialize(
86
+ id:,
87
+ created_at:,
88
+ updated_at:,
89
+ name:,
90
+ description:,
91
+ team_id:,
92
+ logo:,
93
+ url:,
94
+ legal_name:,
95
+ legal_country:,
96
+ legal_state:,
97
+ legal_city:,
98
+ legal_address:,
99
+ legal_tax_id:,
100
+ auth_duration:,
101
+ auth_limit:,
102
+ auth_sessions_limit:,
103
+ auth_password_history:,
104
+ auth_password_dictionary:,
105
+ auth_personal_data_check:,
106
+ auth_disposable_emails:,
107
+ auth_canonical_emails:,
108
+ auth_free_emails:,
109
+ auth_mock_numbers:,
110
+ auth_session_alerts:,
111
+ auth_memberships_user_name:,
112
+ auth_memberships_user_email:,
113
+ auth_memberships_mfa:,
114
+ auth_invalidate_sessions:,
115
+ o_auth_providers:,
116
+ platforms:,
117
+ webhooks:,
118
+ keys:,
119
+ dev_keys:,
120
+ smtp_enabled:,
121
+ smtp_sender_name:,
122
+ smtp_sender_email:,
123
+ smtp_reply_to:,
124
+ smtp_host:,
125
+ smtp_port:,
126
+ smtp_username:,
127
+ smtp_password:,
128
+ smtp_secure:,
129
+ ping_count:,
130
+ pinged_at:,
131
+ labels:,
132
+ status:,
133
+ auth_email_password:,
134
+ auth_users_auth_magic_url:,
135
+ auth_email_otp:,
136
+ auth_anonymous:,
137
+ auth_invites:,
138
+ auth_jwt:,
139
+ auth_phone:,
140
+ service_status_for_account:,
141
+ service_status_for_avatars:,
142
+ service_status_for_databases:,
143
+ service_status_for_tablesdb:,
144
+ service_status_for_locale:,
145
+ service_status_for_health:,
146
+ service_status_for_project:,
147
+ service_status_for_storage:,
148
+ service_status_for_teams:,
149
+ service_status_for_users:,
150
+ service_status_for_vcs:,
151
+ service_status_for_sites:,
152
+ service_status_for_functions:,
153
+ service_status_for_proxy:,
154
+ service_status_for_graphql:,
155
+ service_status_for_migrations:,
156
+ service_status_for_messaging:,
157
+ protocol_status_for_rest:,
158
+ protocol_status_for_graphql:,
159
+ protocol_status_for_websocket:,
160
+ region:,
161
+ billing_limits:,
162
+ blocks:,
163
+ console_accessed_at:
164
+ )
165
+ @id = id
166
+ @created_at = created_at
167
+ @updated_at = updated_at
168
+ @name = name
169
+ @description = description
170
+ @team_id = team_id
171
+ @logo = logo
172
+ @url = url
173
+ @legal_name = legal_name
174
+ @legal_country = legal_country
175
+ @legal_state = legal_state
176
+ @legal_city = legal_city
177
+ @legal_address = legal_address
178
+ @legal_tax_id = legal_tax_id
179
+ @auth_duration = auth_duration
180
+ @auth_limit = auth_limit
181
+ @auth_sessions_limit = auth_sessions_limit
182
+ @auth_password_history = auth_password_history
183
+ @auth_password_dictionary = auth_password_dictionary
184
+ @auth_personal_data_check = auth_personal_data_check
185
+ @auth_disposable_emails = auth_disposable_emails
186
+ @auth_canonical_emails = auth_canonical_emails
187
+ @auth_free_emails = auth_free_emails
188
+ @auth_mock_numbers = auth_mock_numbers
189
+ @auth_session_alerts = auth_session_alerts
190
+ @auth_memberships_user_name = auth_memberships_user_name
191
+ @auth_memberships_user_email = auth_memberships_user_email
192
+ @auth_memberships_mfa = auth_memberships_mfa
193
+ @auth_invalidate_sessions = auth_invalidate_sessions
194
+ @o_auth_providers = o_auth_providers
195
+ @platforms = platforms
196
+ @webhooks = webhooks
197
+ @keys = keys
198
+ @dev_keys = dev_keys
199
+ @smtp_enabled = smtp_enabled
200
+ @smtp_sender_name = smtp_sender_name
201
+ @smtp_sender_email = smtp_sender_email
202
+ @smtp_reply_to = smtp_reply_to
203
+ @smtp_host = smtp_host
204
+ @smtp_port = smtp_port
205
+ @smtp_username = smtp_username
206
+ @smtp_password = smtp_password
207
+ @smtp_secure = smtp_secure
208
+ @ping_count = ping_count
209
+ @pinged_at = pinged_at
210
+ @labels = labels
211
+ @status = status
212
+ @auth_email_password = auth_email_password
213
+ @auth_users_auth_magic_url = auth_users_auth_magic_url
214
+ @auth_email_otp = auth_email_otp
215
+ @auth_anonymous = auth_anonymous
216
+ @auth_invites = auth_invites
217
+ @auth_jwt = auth_jwt
218
+ @auth_phone = auth_phone
219
+ @service_status_for_account = service_status_for_account
220
+ @service_status_for_avatars = service_status_for_avatars
221
+ @service_status_for_databases = service_status_for_databases
222
+ @service_status_for_tablesdb = service_status_for_tablesdb
223
+ @service_status_for_locale = service_status_for_locale
224
+ @service_status_for_health = service_status_for_health
225
+ @service_status_for_project = service_status_for_project
226
+ @service_status_for_storage = service_status_for_storage
227
+ @service_status_for_teams = service_status_for_teams
228
+ @service_status_for_users = service_status_for_users
229
+ @service_status_for_vcs = service_status_for_vcs
230
+ @service_status_for_sites = service_status_for_sites
231
+ @service_status_for_functions = service_status_for_functions
232
+ @service_status_for_proxy = service_status_for_proxy
233
+ @service_status_for_graphql = service_status_for_graphql
234
+ @service_status_for_migrations = service_status_for_migrations
235
+ @service_status_for_messaging = service_status_for_messaging
236
+ @protocol_status_for_rest = protocol_status_for_rest
237
+ @protocol_status_for_graphql = protocol_status_for_graphql
238
+ @protocol_status_for_websocket = protocol_status_for_websocket
239
+ @region = region
240
+ @billing_limits = billing_limits
241
+ @blocks = blocks
242
+ @console_accessed_at = console_accessed_at
243
+ end
244
+
245
+ def self.from(map:)
246
+ Project.new(
247
+ id: map["$id"],
248
+ created_at: map["$createdAt"],
249
+ updated_at: map["$updatedAt"],
250
+ name: map["name"],
251
+ description: map["description"],
252
+ team_id: map["teamId"],
253
+ logo: map["logo"],
254
+ url: map["url"],
255
+ legal_name: map["legalName"],
256
+ legal_country: map["legalCountry"],
257
+ legal_state: map["legalState"],
258
+ legal_city: map["legalCity"],
259
+ legal_address: map["legalAddress"],
260
+ legal_tax_id: map["legalTaxId"],
261
+ auth_duration: map["authDuration"],
262
+ auth_limit: map["authLimit"],
263
+ auth_sessions_limit: map["authSessionsLimit"],
264
+ auth_password_history: map["authPasswordHistory"],
265
+ auth_password_dictionary: map["authPasswordDictionary"],
266
+ auth_personal_data_check: map["authPersonalDataCheck"],
267
+ auth_disposable_emails: map["authDisposableEmails"],
268
+ auth_canonical_emails: map["authCanonicalEmails"],
269
+ auth_free_emails: map["authFreeEmails"],
270
+ auth_mock_numbers: map["authMockNumbers"].map { |it| MockNumber.from(map: it) },
271
+ auth_session_alerts: map["authSessionAlerts"],
272
+ auth_memberships_user_name: map["authMembershipsUserName"],
273
+ auth_memberships_user_email: map["authMembershipsUserEmail"],
274
+ auth_memberships_mfa: map["authMembershipsMfa"],
275
+ auth_invalidate_sessions: map["authInvalidateSessions"],
276
+ o_auth_providers: map["oAuthProviders"].map { |it| AuthProvider.from(map: it) },
277
+ platforms: map["platforms"],
278
+ webhooks: map["webhooks"].map { |it| Webhook.from(map: it) },
279
+ keys: map["keys"].map { |it| Key.from(map: it) },
280
+ dev_keys: map["devKeys"].map { |it| DevKey.from(map: it) },
281
+ smtp_enabled: map["smtpEnabled"],
282
+ smtp_sender_name: map["smtpSenderName"],
283
+ smtp_sender_email: map["smtpSenderEmail"],
284
+ smtp_reply_to: map["smtpReplyTo"],
285
+ smtp_host: map["smtpHost"],
286
+ smtp_port: map["smtpPort"],
287
+ smtp_username: map["smtpUsername"],
288
+ smtp_password: map["smtpPassword"],
289
+ smtp_secure: map["smtpSecure"],
290
+ ping_count: map["pingCount"],
291
+ pinged_at: map["pingedAt"],
292
+ labels: map["labels"],
293
+ status: map["status"],
294
+ auth_email_password: map["authEmailPassword"],
295
+ auth_users_auth_magic_url: map["authUsersAuthMagicURL"],
296
+ auth_email_otp: map["authEmailOtp"],
297
+ auth_anonymous: map["authAnonymous"],
298
+ auth_invites: map["authInvites"],
299
+ auth_jwt: map["authJWT"],
300
+ auth_phone: map["authPhone"],
301
+ service_status_for_account: map["serviceStatusForAccount"],
302
+ service_status_for_avatars: map["serviceStatusForAvatars"],
303
+ service_status_for_databases: map["serviceStatusForDatabases"],
304
+ service_status_for_tablesdb: map["serviceStatusForTablesdb"],
305
+ service_status_for_locale: map["serviceStatusForLocale"],
306
+ service_status_for_health: map["serviceStatusForHealth"],
307
+ service_status_for_project: map["serviceStatusForProject"],
308
+ service_status_for_storage: map["serviceStatusForStorage"],
309
+ service_status_for_teams: map["serviceStatusForTeams"],
310
+ service_status_for_users: map["serviceStatusForUsers"],
311
+ service_status_for_vcs: map["serviceStatusForVcs"],
312
+ service_status_for_sites: map["serviceStatusForSites"],
313
+ service_status_for_functions: map["serviceStatusForFunctions"],
314
+ service_status_for_proxy: map["serviceStatusForProxy"],
315
+ service_status_for_graphql: map["serviceStatusForGraphql"],
316
+ service_status_for_migrations: map["serviceStatusForMigrations"],
317
+ service_status_for_messaging: map["serviceStatusForMessaging"],
318
+ protocol_status_for_rest: map["protocolStatusForRest"],
319
+ protocol_status_for_graphql: map["protocolStatusForGraphql"],
320
+ protocol_status_for_websocket: map["protocolStatusForWebsocket"],
321
+ region: map["region"],
322
+ billing_limits: BillingLimits.from(map: map["billingLimits"]),
323
+ blocks: map["blocks"].map { |it| Block.from(map: it) },
324
+ console_accessed_at: map["consoleAccessedAt"]
325
+ )
326
+ end
327
+
328
+ def to_map
329
+ {
330
+ "$id": @id,
331
+ "$createdAt": @created_at,
332
+ "$updatedAt": @updated_at,
333
+ "name": @name,
334
+ "description": @description,
335
+ "teamId": @team_id,
336
+ "logo": @logo,
337
+ "url": @url,
338
+ "legalName": @legal_name,
339
+ "legalCountry": @legal_country,
340
+ "legalState": @legal_state,
341
+ "legalCity": @legal_city,
342
+ "legalAddress": @legal_address,
343
+ "legalTaxId": @legal_tax_id,
344
+ "authDuration": @auth_duration,
345
+ "authLimit": @auth_limit,
346
+ "authSessionsLimit": @auth_sessions_limit,
347
+ "authPasswordHistory": @auth_password_history,
348
+ "authPasswordDictionary": @auth_password_dictionary,
349
+ "authPersonalDataCheck": @auth_personal_data_check,
350
+ "authDisposableEmails": @auth_disposable_emails,
351
+ "authCanonicalEmails": @auth_canonical_emails,
352
+ "authFreeEmails": @auth_free_emails,
353
+ "authMockNumbers": @auth_mock_numbers.map { |it| it.to_map },
354
+ "authSessionAlerts": @auth_session_alerts,
355
+ "authMembershipsUserName": @auth_memberships_user_name,
356
+ "authMembershipsUserEmail": @auth_memberships_user_email,
357
+ "authMembershipsMfa": @auth_memberships_mfa,
358
+ "authInvalidateSessions": @auth_invalidate_sessions,
359
+ "oAuthProviders": @o_auth_providers.map { |it| it.to_map },
360
+ "platforms": @platforms,
361
+ "webhooks": @webhooks.map { |it| it.to_map },
362
+ "keys": @keys.map { |it| it.to_map },
363
+ "devKeys": @dev_keys.map { |it| it.to_map },
364
+ "smtpEnabled": @smtp_enabled,
365
+ "smtpSenderName": @smtp_sender_name,
366
+ "smtpSenderEmail": @smtp_sender_email,
367
+ "smtpReplyTo": @smtp_reply_to,
368
+ "smtpHost": @smtp_host,
369
+ "smtpPort": @smtp_port,
370
+ "smtpUsername": @smtp_username,
371
+ "smtpPassword": @smtp_password,
372
+ "smtpSecure": @smtp_secure,
373
+ "pingCount": @ping_count,
374
+ "pingedAt": @pinged_at,
375
+ "labels": @labels,
376
+ "status": @status,
377
+ "authEmailPassword": @auth_email_password,
378
+ "authUsersAuthMagicURL": @auth_users_auth_magic_url,
379
+ "authEmailOtp": @auth_email_otp,
380
+ "authAnonymous": @auth_anonymous,
381
+ "authInvites": @auth_invites,
382
+ "authJWT": @auth_jwt,
383
+ "authPhone": @auth_phone,
384
+ "serviceStatusForAccount": @service_status_for_account,
385
+ "serviceStatusForAvatars": @service_status_for_avatars,
386
+ "serviceStatusForDatabases": @service_status_for_databases,
387
+ "serviceStatusForTablesdb": @service_status_for_tablesdb,
388
+ "serviceStatusForLocale": @service_status_for_locale,
389
+ "serviceStatusForHealth": @service_status_for_health,
390
+ "serviceStatusForProject": @service_status_for_project,
391
+ "serviceStatusForStorage": @service_status_for_storage,
392
+ "serviceStatusForTeams": @service_status_for_teams,
393
+ "serviceStatusForUsers": @service_status_for_users,
394
+ "serviceStatusForVcs": @service_status_for_vcs,
395
+ "serviceStatusForSites": @service_status_for_sites,
396
+ "serviceStatusForFunctions": @service_status_for_functions,
397
+ "serviceStatusForProxy": @service_status_for_proxy,
398
+ "serviceStatusForGraphql": @service_status_for_graphql,
399
+ "serviceStatusForMigrations": @service_status_for_migrations,
400
+ "serviceStatusForMessaging": @service_status_for_messaging,
401
+ "protocolStatusForRest": @protocol_status_for_rest,
402
+ "protocolStatusForGraphql": @protocol_status_for_graphql,
403
+ "protocolStatusForWebsocket": @protocol_status_for_websocket,
404
+ "region": @region,
405
+ "billingLimits": @billing_limits.to_map,
406
+ "blocks": @blocks.map { |it| it.to_map },
407
+ "consoleAccessedAt": @console_accessed_at
408
+ }
409
+ end
410
+ end
411
+ end
412
+ end