appwrite 4.0.0 → 6.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,6 +3,7 @@
3
3
  module Appwrite
4
4
  class Functions < Service
5
5
 
6
+
6
7
  # Get a list of all the project's functions. You can use the query params to
7
8
  # filter your results.
8
9
  #
@@ -10,7 +11,7 @@ module Appwrite
10
11
  # @param [number] limit Maximum number of functions to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request.
11
12
  # @param [number] offset Offset value. The default value is 0. Use this value to manage pagination. [learn more about pagination](https://appwrite.io/docs/pagination)
12
13
  # @param [string] cursor ID of the function used as the starting point for the query, excluding the function itself. Should be used for efficient pagination when working with large sets of data. [learn more about pagination](https://appwrite.io/docs/pagination)
13
- # @param [string] cursor_direction Direction of the cursor.
14
+ # @param [string] cursor_direction Direction of the cursor, can be either &#039;before&#039; or &#039;after&#039;.
14
15
  # @param [string] order_type Order result by ASC or DESC order.
15
16
  #
16
17
  # @return [FunctionList]
@@ -45,10 +46,10 @@ module Appwrite
45
46
  #
46
47
  # @param [string] function_id Function ID. Choose your own unique ID or pass the string &quot;unique()&quot; to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can&#039;t start with a special char. Max length is 36 chars.
47
48
  # @param [string] name Function name. Max length: 128 chars.
48
- # @param [array] execute An array of strings with execution permissions. By default no user is granted with any execute permissions. [learn more about permissions](https://appwrite.io/docs/permissions) and get a full list of available permissions.
49
+ # @param [array] execute An array of strings with execution permissions. By default no user is granted with any execute permissions. [learn more about permissions](https://appwrite.io/docs/permissions) and get a full list of available permissions. Maximum of 100 scopes are allowed, each 64 characters long.
49
50
  # @param [string] runtime Execution runtime.
50
51
  # @param [object] vars Key-value JSON object that will be passed to the function as environment variables.
51
- # @param [array] events Events list.
52
+ # @param [array] events Events list. Maximum of 100 events are allowed.
52
53
  # @param [string] schedule Schedule CRON syntax.
53
54
  # @param [number] timeout Function maximum execution time in seconds.
54
55
  #
@@ -96,7 +97,7 @@ module Appwrite
96
97
  )
97
98
  end
98
99
 
99
- # Get a list of all runtimes that are currently active in your project.
100
+ # Get a list of all runtimes that are currently active on your instance.
100
101
  #
101
102
  #
102
103
  # @return [RuntimeList]
@@ -152,9 +153,9 @@ module Appwrite
152
153
  #
153
154
  # @param [string] function_id Function ID.
154
155
  # @param [string] name Function name. Max length: 128 chars.
155
- # @param [array] execute An array of strings with execution permissions. By default no user is granted with any execute permissions. [learn more about permissions](https://appwrite.io/docs/permissions) and get a full list of available permissions.
156
+ # @param [array] execute An array of strings with execution permissions. By default no user is granted with any execute permissions. [learn more about permissions](https://appwrite.io/docs/permissions) and get a full list of available permissions. Maximum of 100 scopes are allowed, each 64 characters long.
156
157
  # @param [object] vars Key-value JSON object that will be passed to the function as environment variables.
157
- # @param [array] events Events list.
158
+ # @param [array] events Events list. Maximum of 100 events are allowed.
158
159
  # @param [string] schedule Schedule CRON syntax.
159
160
  # @param [number] timeout Maximum execution time in seconds.
160
161
  #
@@ -233,7 +234,7 @@ module Appwrite
233
234
  # @param [number] limit Maximum number of deployments to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request.
234
235
  # @param [number] offset Offset value. The default value is 0. Use this value to manage pagination. [learn more about pagination](https://appwrite.io/docs/pagination)
235
236
  # @param [string] cursor ID of the deployment used as the starting point for the query, excluding the deployment itself. Should be used for efficient pagination when working with large sets of data. [learn more about pagination](https://appwrite.io/docs/pagination)
236
- # @param [string] cursor_direction Direction of the cursor.
237
+ # @param [string] cursor_direction Direction of the cursor, can be either &#039;before&#039; or &#039;after&#039;.
237
238
  # @param [string] order_type Order result by ASC or DESC order.
238
239
  #
239
240
  # @return [DeploymentList]
@@ -314,6 +315,7 @@ module Appwrite
314
315
  "content-type": 'multipart/form-data',
315
316
  }
316
317
 
318
+ id_param_name = nil
317
319
  param_name = 'code'
318
320
 
319
321
  @client.chunked_upload(
@@ -321,6 +323,7 @@ module Appwrite
321
323
  headers: headers,
322
324
  params: params,
323
325
  param_name: param_name,
326
+ id_param_name: id_param_name,
324
327
  on_progress: on_progress,
325
328
  response_type: Models::Deployment
326
329
  )
@@ -482,7 +485,7 @@ module Appwrite
482
485
  # @param [number] offset Offset value. The default value is 0. Use this value to manage pagination. [learn more about pagination](https://appwrite.io/docs/pagination)
483
486
  # @param [string] search Search term to filter your list results. Max length: 256 chars.
484
487
  # @param [string] cursor ID of the execution used as the starting point for the query, excluding the execution itself. Should be used for efficient pagination when working with large sets of data. [learn more about pagination](https://appwrite.io/docs/pagination)
485
- # @param [string] cursor_direction Direction of the cursor.
488
+ # @param [string] cursor_direction Direction of the cursor, can be either &#039;before&#039; or &#039;after&#039;.
486
489
  #
487
490
  # @return [ExecutionList]
488
491
  def list_executions(function_id:, limit: nil, offset: nil, search: nil, cursor: nil, cursor_direction: nil)
@@ -3,6 +3,7 @@
3
3
  module Appwrite
4
4
  class Health < Service
5
5
 
6
+
6
7
  # Check the Appwrite HTTP server is up and responsive.
7
8
  #
8
9
  #
@@ -168,30 +169,6 @@ module Appwrite
168
169
  )
169
170
  end
170
171
 
171
- # Get the number of usage stats that are waiting to be processed in the
172
- # Appwrite internal queue server.
173
- #
174
- #
175
- # @return [HealthQueue]
176
- def get_queue_usage()
177
- path = '/health/queue/usage'
178
-
179
- params = {
180
- }
181
-
182
- headers = {
183
- "content-type": 'application/json',
184
- }
185
-
186
- @client.call(
187
- method: 'GET',
188
- path: path,
189
- headers: headers,
190
- params: params,
191
- response_type: Models::HealthQueue
192
- )
193
- end
194
-
195
172
  # Get the number of webhooks that are waiting to be processed in the Appwrite
196
173
  # internal queue server.
197
174
  #
@@ -3,6 +3,7 @@
3
3
  module Appwrite
4
4
  class Locale < Service
5
5
 
6
+
6
7
  # Get the current user location based on IP. Returns an object with user
7
8
  # country code, country name, continent name, continent code, ip address and
8
9
  # suggested currency. You can use the locale header to get the data in a
@@ -3,6 +3,7 @@
3
3
  module Appwrite
4
4
  class Storage < Service
5
5
 
6
+
6
7
  # Get a list of all the storage buckets. You can use the query params to
7
8
  # filter your results.
8
9
  #
@@ -10,7 +11,7 @@ module Appwrite
10
11
  # @param [number] limit Results limit value. By default will return maximum 25 results. Maximum of 100 results allowed per request.
11
12
  # @param [number] offset Results offset. The default value is 0. Use this param to manage pagination.
12
13
  # @param [string] cursor ID of the bucket used as the starting point for the query, excluding the bucket itself. Should be used for efficient pagination when working with large sets of data.
13
- # @param [string] cursor_direction Direction of the cursor.
14
+ # @param [string] cursor_direction Direction of the cursor, can be either &#039;before&#039; or &#039;after&#039;.
14
15
  # @param [string] order_type Order result by ASC or DESC order.
15
16
  #
16
17
  # @return [BucketList]
@@ -48,7 +49,7 @@ module Appwrite
48
49
  # @param [array] write An array of strings with write permissions. By default no user is granted with any write permissions. [learn more about permissions](/docs/permissions) and get a full list of available permissions.
49
50
  # @param [boolean] enabled Is bucket enabled?
50
51
  # @param [number] maximum_file_size Maximum file size allowed in bytes. Maximum allowed value is 30MB. For self-hosted setups you can change the max limit by changing the `_APP_STORAGE_LIMIT` environment variable. [Learn more about storage environment variables](docs/environment-variables#storage)
51
- # @param [array] allowed_file_extensions Allowed file extensions
52
+ # @param [array] allowed_file_extensions Allowed file extensions. Maximum of 100 extensions are allowed, each 64 characters long.
52
53
  # @param [boolean] encryption Is encryption enabled? For file size above 20MB encryption is skipped even if it&#039;s enabled
53
54
  # @param [boolean] antivirus Is virus scanning enabled? For file size above 20MB AntiVirus scanning is skipped even if it&#039;s enabled
54
55
  #
@@ -133,7 +134,7 @@ module Appwrite
133
134
  # @param [array] write An array of strings with write permissions. By default inherits the existing write permissions. [learn more about permissions](/docs/permissions) and get a full list of available permissions.
134
135
  # @param [boolean] enabled Is bucket enabled?
135
136
  # @param [number] maximum_file_size Maximum file size allowed in bytes. Maximum allowed value is 30MB. For self hosted version you can change the limit by changing _APP_STORAGE_LIMIT environment variable. [Learn more about storage environment variables](docs/environment-variables#storage)
136
- # @param [array] allowed_file_extensions Allowed file extensions
137
+ # @param [array] allowed_file_extensions Allowed file extensions. Maximum of 100 extensions are allowed, each 64 characters long.
137
138
  # @param [boolean] encryption Is encryption enabled? For file size above 20MB encryption is skipped even if it&#039;s enabled
138
139
  # @param [boolean] antivirus Is virus scanning enabled? For file size above 20MB AntiVirus scanning is skipped even if it&#039;s enabled
139
140
  #
@@ -216,7 +217,7 @@ module Appwrite
216
217
  # @param [number] limit Maximum number of files to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request.
217
218
  # @param [number] offset Offset value. The default value is 0. Use this param to manage pagination. [learn more about pagination](https://appwrite.io/docs/pagination)
218
219
  # @param [string] cursor ID of the file used as the starting point for the query, excluding the file itself. Should be used for efficient pagination when working with large sets of data. [learn more about pagination](https://appwrite.io/docs/pagination)
219
- # @param [string] cursor_direction Direction of the cursor.
220
+ # @param [string] cursor_direction Direction of the cursor, can be either &#039;before&#039; or &#039;after&#039;.
220
221
  # @param [string] order_type Order result by ASC or DESC order.
221
222
  #
222
223
  # @return [FileList]
@@ -303,6 +304,7 @@ module Appwrite
303
304
  "content-type": 'multipart/form-data',
304
305
  }
305
306
 
307
+ id_param_name = "fileId"
306
308
  param_name = 'file'
307
309
 
308
310
  @client.chunked_upload(
@@ -310,6 +312,7 @@ module Appwrite
310
312
  headers: headers,
311
313
  params: params,
312
314
  param_name: param_name,
315
+ id_param_name: id_param_name,
313
316
  on_progress: on_progress,
314
317
  response_type: Models::File
315
318
  )
@@ -3,6 +3,7 @@
3
3
  module Appwrite
4
4
  class Teams < Service
5
5
 
6
+
6
7
  # Get a list of all the teams in which the current user is a member. You can
7
8
  # use the parameters to filter your results.
8
9
  #
@@ -13,7 +14,7 @@ module Appwrite
13
14
  # @param [number] limit Maximum number of teams to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request.
14
15
  # @param [number] offset Offset value. The default value is 0. Use this param to manage pagination. [learn more about pagination](https://appwrite.io/docs/pagination)
15
16
  # @param [string] cursor ID of the team used as the starting point for the query, excluding the team itself. Should be used for efficient pagination when working with large sets of data. [learn more about pagination](https://appwrite.io/docs/pagination)
16
- # @param [string] cursor_direction Direction of the cursor.
17
+ # @param [string] cursor_direction Direction of the cursor, can be either &#039;before&#039; or &#039;after&#039;.
17
18
  # @param [string] order_type Order result by ASC or DESC order.
18
19
  #
19
20
  # @return [TeamList]
@@ -48,7 +49,7 @@ module Appwrite
48
49
  #
49
50
  # @param [string] team_id Team ID. Choose your own unique ID or pass the string &quot;unique()&quot; to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can&#039;t start with a special char. Max length is 36 chars.
50
51
  # @param [string] name Team name. Max length: 128 chars.
51
- # @param [array] roles Array of strings. Use this param to set the roles in the team for the user who created it. The default role is **owner**. A role can be any string. Learn more about [roles and permissions](/docs/permissions). Max length for each role is 32 chars.
52
+ # @param [array] roles Array of strings. Use this param to set the roles in the team for the user who created it. The default role is **owner**. A role can be any string. Learn more about [roles and permissions](/docs/permissions). Maximum of 100 roles are allowed, each 32 characters long.
52
53
  #
53
54
  # @return [Team]
54
55
  def create(team_id:, name:, roles: nil)
@@ -183,7 +184,7 @@ module Appwrite
183
184
  # @param [number] limit Maximum number of memberships to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request.
184
185
  # @param [number] offset Offset value. The default value is 0. Use this value to manage pagination. [learn more about pagination](https://appwrite.io/docs/pagination)
185
186
  # @param [string] cursor ID of the membership used as the starting point for the query, excluding the membership itself. Should be used for efficient pagination when working with large sets of data. [learn more about pagination](https://appwrite.io/docs/pagination)
186
- # @param [string] cursor_direction Direction of the cursor.
187
+ # @param [string] cursor_direction Direction of the cursor, can be either &#039;before&#039; or &#039;after&#039;.
187
188
  # @param [string] order_type Order result by ASC or DESC order.
188
189
  #
189
190
  # @return [MembershipList]
@@ -235,7 +236,7 @@ module Appwrite
235
236
  #
236
237
  # @param [string] team_id Team ID.
237
238
  # @param [string] email Email of the new team member.
238
- # @param [array] roles Array of strings. Use this param to set the user roles in the team. A role can be any string. Learn more about [roles and permissions](/docs/permissions). Max length for each role is 32 chars.
239
+ # @param [array] roles Array of strings. Use this param to set the user roles in the team. A role can be any string. Learn more about [roles and permissions](/docs/permissions). Maximum of 100 roles are allowed, each 32 characters long.
239
240
  # @param [string] url URL to redirect the user back to your app from the invitation email. Only URLs from hostnames in your project platform list are allowed. This requirement helps to prevent an [open redirect](https://cheatsheetseries.owasp.org/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html) attack against your project API.
240
241
  # @param [string] name Name of the new team member. Max length: 128 chars.
241
242
  #
@@ -322,7 +323,7 @@ module Appwrite
322
323
  #
323
324
  # @param [string] team_id Team ID.
324
325
  # @param [string] membership_id Membership ID.
325
- # @param [array] roles An array of strings. Use this param to set the user&#039;s roles in the team. A role can be any string. Learn more about [roles and permissions](https://appwrite.io/docs/permissions). Max length for each role is 32 chars.
326
+ # @param [array] roles An array of strings. Use this param to set the user&#039;s roles in the team. A role can be any string. Learn more about [roles and permissions](https://appwrite.io/docs/permissions). Maximum of 100 roles are allowed, each 32 characters long.
326
327
  #
327
328
  # @return [Membership]
328
329
  def update_membership_roles(team_id:, membership_id:, roles:)
@@ -3,6 +3,7 @@
3
3
  module Appwrite
4
4
  class Users < Service
5
5
 
6
+
6
7
  # Get a list of all the project's users. You can use the query params to
7
8
  # filter your results.
8
9
  #
@@ -10,7 +11,7 @@ module Appwrite
10
11
  # @param [number] limit Maximum number of users to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request.
11
12
  # @param [number] offset Offset value. The default value is 0. Use this param to manage pagination. [learn more about pagination](https://appwrite.io/docs/pagination)
12
13
  # @param [string] cursor ID of the user used as the starting point for the query, excluding the user itself. Should be used for efficient pagination when working with large sets of data. [learn more about pagination](https://appwrite.io/docs/pagination)
13
- # @param [string] cursor_direction Direction of the cursor.
14
+ # @param [string] cursor_direction Direction of the cursor, can be either &#039;before&#039; or &#039;after&#039;.
14
15
  # @param [string] order_type Order result by ASC or DESC order.
15
16
  #
16
17
  # @return [UserList]
@@ -111,7 +112,11 @@ module Appwrite
111
112
  )
112
113
  end
113
114
 
114
- # Delete a user by its unique ID.
115
+ # Delete a user by its unique ID, thereby releasing it's ID. Since ID is
116
+ # released and can be reused, all user-related resources like documents or
117
+ # storage files should be deleted before user deletion. If you want to keep
118
+ # ID reserved, use the [updateStatus](/docs/server/users#usersUpdateStatus)
119
+ # endpoint instead.
115
120
  #
116
121
  # @param [string] user_id User ID.
117
122
  #
@@ -207,6 +212,35 @@ module Appwrite
207
212
  )
208
213
  end
209
214
 
215
+ # Get the user membership list by its unique ID.
216
+ #
217
+ # @param [string] user_id User ID.
218
+ #
219
+ # @return [MembershipList]
220
+ def get_memberships(user_id:)
221
+ if user_id.nil?
222
+ raise Appwrite::Exception.new('Missing required parameter: "userId"')
223
+ end
224
+
225
+ path = '/users/{userId}/memberships'
226
+ .gsub('{userId}', user_id)
227
+
228
+ params = {
229
+ }
230
+
231
+ headers = {
232
+ "content-type": 'application/json',
233
+ }
234
+
235
+ @client.call(
236
+ method: 'GET',
237
+ path: path,
238
+ headers: headers,
239
+ params: params,
240
+ response_type: Models::MembershipList
241
+ )
242
+ end
243
+
210
244
  # Update the user name by its unique ID.
211
245
  #
212
246
  # @param [string] user_id User ID.
@@ -277,6 +311,41 @@ module Appwrite
277
311
  )
278
312
  end
279
313
 
314
+ # Update the user phone by its unique ID.
315
+ #
316
+ # @param [string] user_id User ID.
317
+ # @param [string] number User phone number.
318
+ #
319
+ # @return [User]
320
+ def update_phone(user_id:, number:)
321
+ if user_id.nil?
322
+ raise Appwrite::Exception.new('Missing required parameter: "userId"')
323
+ end
324
+
325
+ if number.nil?
326
+ raise Appwrite::Exception.new('Missing required parameter: "number"')
327
+ end
328
+
329
+ path = '/users/{userId}/phone'
330
+ .gsub('{userId}', user_id)
331
+
332
+ params = {
333
+ number: number,
334
+ }
335
+
336
+ headers = {
337
+ "content-type": 'application/json',
338
+ }
339
+
340
+ @client.call(
341
+ method: 'PATCH',
342
+ path: path,
343
+ headers: headers,
344
+ params: params,
345
+ response_type: Models::User
346
+ )
347
+ end
348
+
280
349
  # Get the user preferences by its unique ID.
281
350
  #
282
351
  # @param [string] user_id User ID.
@@ -434,7 +503,8 @@ module Appwrite
434
503
  )
435
504
  end
436
505
 
437
- # Update the user status by its unique ID.
506
+ # Update the user status by its unique ID. Use this endpoint as an
507
+ # alternative to deleting a user if you want to keep user's ID reserved.
438
508
  #
439
509
  # @param [string] user_id User ID.
440
510
  # @param [boolean] status User Status. To activate the user pass `true` and to block the user pass `false`.
@@ -475,7 +545,7 @@ module Appwrite
475
545
  # @param [boolean] email_verification User email verification status.
476
546
  #
477
547
  # @return [User]
478
- def update_verification(user_id:, email_verification:)
548
+ def update_email_verification(user_id:, email_verification:)
479
549
  if user_id.nil?
480
550
  raise Appwrite::Exception.new('Missing required parameter: "userId"')
481
551
  end
@@ -504,5 +574,40 @@ module Appwrite
504
574
  )
505
575
  end
506
576
 
577
+ # Update the user phone verification status by its unique ID.
578
+ #
579
+ # @param [string] user_id User ID.
580
+ # @param [boolean] phone_verification User phone verification status.
581
+ #
582
+ # @return [User]
583
+ def update_phone_verification(user_id:, phone_verification:)
584
+ if user_id.nil?
585
+ raise Appwrite::Exception.new('Missing required parameter: "userId"')
586
+ end
587
+
588
+ if phone_verification.nil?
589
+ raise Appwrite::Exception.new('Missing required parameter: "phoneVerification"')
590
+ end
591
+
592
+ path = '/users/{userId}/verification/phone'
593
+ .gsub('{userId}', user_id)
594
+
595
+ params = {
596
+ phoneVerification: phone_verification,
597
+ }
598
+
599
+ headers = {
600
+ "content-type": 'application/json',
601
+ }
602
+
603
+ @client.call(
604
+ method: 'PATCH',
605
+ path: path,
606
+ headers: headers,
607
+ params: params,
608
+ response_type: Models::User
609
+ )
610
+ end
611
+
507
612
  end
508
613
  end
data/lib/appwrite.rb CHANGED
@@ -6,10 +6,11 @@ require 'mime/types'
6
6
  require_relative 'appwrite/client'
7
7
  require_relative 'appwrite/service'
8
8
  require_relative 'appwrite/exception'
9
- require_relative 'appwrite/file'
9
+ require_relative 'appwrite/input_file'
10
10
 
11
11
  require_relative 'appwrite/models/document_list'
12
12
  require_relative 'appwrite/models/collection_list'
13
+ require_relative 'appwrite/models/database_list'
13
14
  require_relative 'appwrite/models/index_list'
14
15
  require_relative 'appwrite/models/user_list'
15
16
  require_relative 'appwrite/models/session_list'
@@ -27,6 +28,7 @@ require_relative 'appwrite/models/continent_list'
27
28
  require_relative 'appwrite/models/language_list'
28
29
  require_relative 'appwrite/models/currency_list'
29
30
  require_relative 'appwrite/models/phone_list'
31
+ require_relative 'appwrite/models/database'
30
32
  require_relative 'appwrite/models/collection'
31
33
  require_relative 'appwrite/models/attribute_list'
32
34
  require_relative 'appwrite/models/attribute_string'
@@ -65,7 +67,7 @@ require_relative 'appwrite/models/health_time'
65
67
 
66
68
  require_relative 'appwrite/services/account'
67
69
  require_relative 'appwrite/services/avatars'
68
- require_relative 'appwrite/services/database'
70
+ require_relative 'appwrite/services/databases'
69
71
  require_relative 'appwrite/services/functions'
70
72
  require_relative 'appwrite/services/health'
71
73
  require_relative 'appwrite/services/locale'
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: 4.0.0
4
+ version: 6.0.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: 2022-03-03 00:00:00.000000000 Z
11
+ date: 2022-06-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mime-types
@@ -33,7 +33,7 @@ files:
33
33
  - lib/appwrite.rb
34
34
  - lib/appwrite/client.rb
35
35
  - lib/appwrite/exception.rb
36
- - lib/appwrite/file.rb
36
+ - lib/appwrite/input_file.rb
37
37
  - lib/appwrite/models/attribute_boolean.rb
38
38
  - lib/appwrite/models/attribute_email.rb
39
39
  - lib/appwrite/models/attribute_enum.rb
@@ -53,6 +53,8 @@ files:
53
53
  - lib/appwrite/models/country_list.rb
54
54
  - lib/appwrite/models/currency.rb
55
55
  - lib/appwrite/models/currency_list.rb
56
+ - lib/appwrite/models/database.rb
57
+ - lib/appwrite/models/database_list.rb
56
58
  - lib/appwrite/models/deployment.rb
57
59
  - lib/appwrite/models/deployment_list.rb
58
60
  - lib/appwrite/models/document.rb
@@ -92,7 +94,7 @@ files:
92
94
  - lib/appwrite/service.rb
93
95
  - lib/appwrite/services/account.rb
94
96
  - lib/appwrite/services/avatars.rb
95
- - lib/appwrite/services/database.rb
97
+ - lib/appwrite/services/databases.rb
96
98
  - lib/appwrite/services/functions.rb
97
99
  - lib/appwrite/services/health.rb
98
100
  - lib/appwrite/services/locale.rb
data/lib/appwrite/file.rb DELETED
@@ -1,17 +0,0 @@
1
- require 'mime/types'
2
-
3
- module Appwrite
4
- class File
5
- attr_reader :path
6
- attr_reader :name
7
- attr_reader :content
8
- attr_reader :mime_type
9
-
10
- def initialize(path, content)
11
- @path = path
12
- @content = content
13
- @name = ::File.basename(path)
14
- @mime_type = MIME::Types.type_for(path)
15
- end
16
- end
17
- end