appwrite 29.0.0 → 30.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 +3 -3
- data/lib/appwrite/models/attribute_bigint.rb +6 -1
- data/lib/appwrite/models/attribute_boolean.rb +6 -1
- data/lib/appwrite/models/attribute_datetime.rb +6 -1
- data/lib/appwrite/models/attribute_email.rb +6 -1
- data/lib/appwrite/models/attribute_enum.rb +6 -1
- data/lib/appwrite/models/attribute_float.rb +6 -1
- data/lib/appwrite/models/attribute_integer.rb +6 -1
- data/lib/appwrite/models/attribute_ip.rb +6 -1
- data/lib/appwrite/models/attribute_line.rb +6 -1
- data/lib/appwrite/models/attribute_longtext.rb +6 -1
- data/lib/appwrite/models/attribute_mediumtext.rb +6 -1
- data/lib/appwrite/models/attribute_object.rb +6 -1
- data/lib/appwrite/models/attribute_point.rb +6 -1
- data/lib/appwrite/models/attribute_polygon.rb +6 -1
- data/lib/appwrite/models/attribute_relationship.rb +6 -1
- data/lib/appwrite/models/attribute_string.rb +6 -1
- data/lib/appwrite/models/attribute_text.rb +6 -1
- data/lib/appwrite/models/attribute_url.rb +6 -1
- data/lib/appwrite/models/attribute_varchar.rb +6 -1
- data/lib/appwrite/models/attribute_vector.rb +6 -1
- data/lib/appwrite/models/billing_plan.rb +6 -1
- data/lib/appwrite/models/bucket.rb +11 -1
- data/lib/appwrite/models/collection.rb +6 -1
- data/lib/appwrite/models/column_bigint.rb +6 -1
- data/lib/appwrite/models/column_boolean.rb +6 -1
- data/lib/appwrite/models/column_datetime.rb +6 -1
- data/lib/appwrite/models/column_email.rb +6 -1
- data/lib/appwrite/models/column_enum.rb +6 -1
- data/lib/appwrite/models/column_float.rb +6 -1
- data/lib/appwrite/models/column_index.rb +6 -1
- data/lib/appwrite/models/column_integer.rb +6 -1
- data/lib/appwrite/models/column_ip.rb +6 -1
- data/lib/appwrite/models/column_line.rb +6 -1
- data/lib/appwrite/models/column_longtext.rb +6 -1
- data/lib/appwrite/models/column_mediumtext.rb +6 -1
- data/lib/appwrite/models/column_point.rb +6 -1
- data/lib/appwrite/models/column_polygon.rb +6 -1
- data/lib/appwrite/models/column_relationship.rb +6 -1
- data/lib/appwrite/models/column_string.rb +6 -1
- data/lib/appwrite/models/column_text.rb +6 -1
- data/lib/appwrite/models/column_url.rb +6 -1
- data/lib/appwrite/models/column_varchar.rb +6 -1
- data/lib/appwrite/models/database.rb +6 -1
- data/lib/appwrite/models/ephemeral_key.rb +6 -1
- data/lib/appwrite/models/function.rb +6 -1
- data/lib/appwrite/models/index.rb +6 -1
- data/lib/appwrite/models/key.rb +6 -1
- data/lib/appwrite/models/policy_password_dictionary.rb +9 -4
- data/lib/appwrite/models/policy_password_personal_data.rb +9 -4
- data/lib/appwrite/models/site.rb +6 -1
- data/lib/appwrite/models/table.rb +6 -1
- data/lib/appwrite/models/topic.rb +6 -1
- data/lib/appwrite/models/variable.rb +6 -1
- data/lib/appwrite/models/vectorsdb_collection.rb +6 -1
- data/lib/appwrite/models/webhook.rb +6 -1
- data/lib/appwrite/services/account.rb +48 -0
- data/lib/appwrite/services/activities.rb +4 -1
- data/lib/appwrite/services/backups.rb +12 -3
- data/lib/appwrite/services/databases.rb +233 -42
- data/lib/appwrite/services/documents_db.rb +74 -3
- data/lib/appwrite/services/domains.rb +8 -2
- data/lib/appwrite/services/functions.rb +15 -3
- data/lib/appwrite/services/messaging.rb +16 -4
- data/lib/appwrite/services/mongo.rb +12 -3
- data/lib/appwrite/services/mysql.rb +12 -3
- data/lib/appwrite/services/organization.rb +4 -1
- data/lib/appwrite/services/postgresql.rb +12 -3
- data/lib/appwrite/services/project.rb +38 -5
- data/lib/appwrite/services/sites.rb +16 -4
- data/lib/appwrite/services/storage.rb +15 -3
- data/lib/appwrite/services/tables_db.rb +227 -40
- data/lib/appwrite/services/vectors_db.rb +18 -3
- data/lib/appwrite/services/webhooks.rb +8 -2
- metadata +3 -3
|
@@ -4,6 +4,7 @@ module Appwrite
|
|
|
4
4
|
module Models
|
|
5
5
|
class AttributeRelationship
|
|
6
6
|
attr_reader :key
|
|
7
|
+
attr_reader :description
|
|
7
8
|
attr_reader :type
|
|
8
9
|
attr_reader :status
|
|
9
10
|
attr_reader :error
|
|
@@ -20,6 +21,7 @@ module Appwrite
|
|
|
20
21
|
|
|
21
22
|
def initialize(
|
|
22
23
|
key:,
|
|
24
|
+
description:,
|
|
23
25
|
type:,
|
|
24
26
|
status:,
|
|
25
27
|
error:,
|
|
@@ -35,6 +37,7 @@ module Appwrite
|
|
|
35
37
|
side:
|
|
36
38
|
)
|
|
37
39
|
@key = key
|
|
40
|
+
@description = description
|
|
38
41
|
@type = type
|
|
39
42
|
@status = validate_status(status)
|
|
40
43
|
@error = error
|
|
@@ -51,9 +54,10 @@ module Appwrite
|
|
|
51
54
|
end
|
|
52
55
|
|
|
53
56
|
def self.from(map:)
|
|
54
|
-
map = { "key" => "", "type" => "", "error" => "", "required" => false, "$createdAt" => "", "$updatedAt" => "", "relationType" => "", "twoWay" => false, "twoWayKey" => "", "onDelete" => "restrict", "side" => "" }.merge(map)
|
|
57
|
+
map = { "key" => "", "description" => "", "type" => "", "error" => "", "required" => false, "$createdAt" => "", "$updatedAt" => "", "relationType" => "", "twoWay" => false, "twoWayKey" => "", "onDelete" => "restrict", "side" => "" }.merge(map)
|
|
55
58
|
AttributeRelationship.new(
|
|
56
59
|
key: map["key"],
|
|
60
|
+
description: map["description"],
|
|
57
61
|
type: map["type"],
|
|
58
62
|
status: map["status"],
|
|
59
63
|
error: map["error"],
|
|
@@ -73,6 +77,7 @@ module Appwrite
|
|
|
73
77
|
def to_map
|
|
74
78
|
{
|
|
75
79
|
"key": @key,
|
|
80
|
+
"description": @description,
|
|
76
81
|
"type": @type,
|
|
77
82
|
"status": @status,
|
|
78
83
|
"error": @error,
|
|
@@ -4,6 +4,7 @@ module Appwrite
|
|
|
4
4
|
module Models
|
|
5
5
|
class AttributeString
|
|
6
6
|
attr_reader :key
|
|
7
|
+
attr_reader :description
|
|
7
8
|
attr_reader :type
|
|
8
9
|
attr_reader :status
|
|
9
10
|
attr_reader :error
|
|
@@ -17,6 +18,7 @@ module Appwrite
|
|
|
17
18
|
|
|
18
19
|
def initialize(
|
|
19
20
|
key:,
|
|
21
|
+
description:,
|
|
20
22
|
type:,
|
|
21
23
|
status:,
|
|
22
24
|
error:,
|
|
@@ -29,6 +31,7 @@ module Appwrite
|
|
|
29
31
|
encrypt: false
|
|
30
32
|
)
|
|
31
33
|
@key = key
|
|
34
|
+
@description = description
|
|
32
35
|
@type = type
|
|
33
36
|
@status = validate_status(status)
|
|
34
37
|
@error = error
|
|
@@ -42,9 +45,10 @@ module Appwrite
|
|
|
42
45
|
end
|
|
43
46
|
|
|
44
47
|
def self.from(map:)
|
|
45
|
-
map = { "key" => "", "type" => "", "error" => "", "required" => false, "$createdAt" => "", "$updatedAt" => "", "size" => 0 }.merge(map)
|
|
48
|
+
map = { "key" => "", "description" => "", "type" => "", "error" => "", "required" => false, "$createdAt" => "", "$updatedAt" => "", "size" => 0 }.merge(map)
|
|
46
49
|
AttributeString.new(
|
|
47
50
|
key: map["key"],
|
|
51
|
+
description: map["description"],
|
|
48
52
|
type: map["type"],
|
|
49
53
|
status: map["status"],
|
|
50
54
|
error: map["error"],
|
|
@@ -61,6 +65,7 @@ module Appwrite
|
|
|
61
65
|
def to_map
|
|
62
66
|
{
|
|
63
67
|
"key": @key,
|
|
68
|
+
"description": @description,
|
|
64
69
|
"type": @type,
|
|
65
70
|
"status": @status,
|
|
66
71
|
"error": @error,
|
|
@@ -4,6 +4,7 @@ module Appwrite
|
|
|
4
4
|
module Models
|
|
5
5
|
class AttributeText
|
|
6
6
|
attr_reader :key
|
|
7
|
+
attr_reader :description
|
|
7
8
|
attr_reader :type
|
|
8
9
|
attr_reader :status
|
|
9
10
|
attr_reader :error
|
|
@@ -16,6 +17,7 @@ module Appwrite
|
|
|
16
17
|
|
|
17
18
|
def initialize(
|
|
18
19
|
key:,
|
|
20
|
+
description:,
|
|
19
21
|
type:,
|
|
20
22
|
status:,
|
|
21
23
|
error:,
|
|
@@ -27,6 +29,7 @@ module Appwrite
|
|
|
27
29
|
encrypt: false
|
|
28
30
|
)
|
|
29
31
|
@key = key
|
|
32
|
+
@description = description
|
|
30
33
|
@type = type
|
|
31
34
|
@status = validate_status(status)
|
|
32
35
|
@error = error
|
|
@@ -39,9 +42,10 @@ module Appwrite
|
|
|
39
42
|
end
|
|
40
43
|
|
|
41
44
|
def self.from(map:)
|
|
42
|
-
map = { "key" => "", "type" => "", "error" => "", "required" => false, "$createdAt" => "", "$updatedAt" => "" }.merge(map)
|
|
45
|
+
map = { "key" => "", "description" => "", "type" => "", "error" => "", "required" => false, "$createdAt" => "", "$updatedAt" => "" }.merge(map)
|
|
43
46
|
AttributeText.new(
|
|
44
47
|
key: map["key"],
|
|
48
|
+
description: map["description"],
|
|
45
49
|
type: map["type"],
|
|
46
50
|
status: map["status"],
|
|
47
51
|
error: map["error"],
|
|
@@ -57,6 +61,7 @@ module Appwrite
|
|
|
57
61
|
def to_map
|
|
58
62
|
{
|
|
59
63
|
"key": @key,
|
|
64
|
+
"description": @description,
|
|
60
65
|
"type": @type,
|
|
61
66
|
"status": @status,
|
|
62
67
|
"error": @error,
|
|
@@ -4,6 +4,7 @@ module Appwrite
|
|
|
4
4
|
module Models
|
|
5
5
|
class AttributeUrl
|
|
6
6
|
attr_reader :key
|
|
7
|
+
attr_reader :description
|
|
7
8
|
attr_reader :type
|
|
8
9
|
attr_reader :status
|
|
9
10
|
attr_reader :error
|
|
@@ -16,6 +17,7 @@ module Appwrite
|
|
|
16
17
|
|
|
17
18
|
def initialize(
|
|
18
19
|
key:,
|
|
20
|
+
description:,
|
|
19
21
|
type:,
|
|
20
22
|
status:,
|
|
21
23
|
error:,
|
|
@@ -27,6 +29,7 @@ module Appwrite
|
|
|
27
29
|
default: nil
|
|
28
30
|
)
|
|
29
31
|
@key = key
|
|
32
|
+
@description = description
|
|
30
33
|
@type = type
|
|
31
34
|
@status = validate_status(status)
|
|
32
35
|
@error = error
|
|
@@ -39,9 +42,10 @@ module Appwrite
|
|
|
39
42
|
end
|
|
40
43
|
|
|
41
44
|
def self.from(map:)
|
|
42
|
-
map = { "key" => "", "type" => "", "error" => "", "required" => false, "$createdAt" => "", "$updatedAt" => "", "format" => "url" }.merge(map)
|
|
45
|
+
map = { "key" => "", "description" => "", "type" => "", "error" => "", "required" => false, "$createdAt" => "", "$updatedAt" => "", "format" => "url" }.merge(map)
|
|
43
46
|
AttributeUrl.new(
|
|
44
47
|
key: map["key"],
|
|
48
|
+
description: map["description"],
|
|
45
49
|
type: map["type"],
|
|
46
50
|
status: map["status"],
|
|
47
51
|
error: map["error"],
|
|
@@ -57,6 +61,7 @@ module Appwrite
|
|
|
57
61
|
def to_map
|
|
58
62
|
{
|
|
59
63
|
"key": @key,
|
|
64
|
+
"description": @description,
|
|
60
65
|
"type": @type,
|
|
61
66
|
"status": @status,
|
|
62
67
|
"error": @error,
|
|
@@ -4,6 +4,7 @@ module Appwrite
|
|
|
4
4
|
module Models
|
|
5
5
|
class AttributeVarchar
|
|
6
6
|
attr_reader :key
|
|
7
|
+
attr_reader :description
|
|
7
8
|
attr_reader :type
|
|
8
9
|
attr_reader :status
|
|
9
10
|
attr_reader :error
|
|
@@ -17,6 +18,7 @@ module Appwrite
|
|
|
17
18
|
|
|
18
19
|
def initialize(
|
|
19
20
|
key:,
|
|
21
|
+
description:,
|
|
20
22
|
type:,
|
|
21
23
|
status:,
|
|
22
24
|
error:,
|
|
@@ -29,6 +31,7 @@ module Appwrite
|
|
|
29
31
|
encrypt: false
|
|
30
32
|
)
|
|
31
33
|
@key = key
|
|
34
|
+
@description = description
|
|
32
35
|
@type = type
|
|
33
36
|
@status = validate_status(status)
|
|
34
37
|
@error = error
|
|
@@ -42,9 +45,10 @@ module Appwrite
|
|
|
42
45
|
end
|
|
43
46
|
|
|
44
47
|
def self.from(map:)
|
|
45
|
-
map = { "key" => "", "type" => "", "error" => "", "required" => false, "$createdAt" => "", "$updatedAt" => "", "size" => 0 }.merge(map)
|
|
48
|
+
map = { "key" => "", "description" => "", "type" => "", "error" => "", "required" => false, "$createdAt" => "", "$updatedAt" => "", "size" => 0 }.merge(map)
|
|
46
49
|
AttributeVarchar.new(
|
|
47
50
|
key: map["key"],
|
|
51
|
+
description: map["description"],
|
|
48
52
|
type: map["type"],
|
|
49
53
|
status: map["status"],
|
|
50
54
|
error: map["error"],
|
|
@@ -61,6 +65,7 @@ module Appwrite
|
|
|
61
65
|
def to_map
|
|
62
66
|
{
|
|
63
67
|
"key": @key,
|
|
68
|
+
"description": @description,
|
|
64
69
|
"type": @type,
|
|
65
70
|
"status": @status,
|
|
66
71
|
"error": @error,
|
|
@@ -4,6 +4,7 @@ module Appwrite
|
|
|
4
4
|
module Models
|
|
5
5
|
class AttributeVector
|
|
6
6
|
attr_reader :key
|
|
7
|
+
attr_reader :description
|
|
7
8
|
attr_reader :type
|
|
8
9
|
attr_reader :status
|
|
9
10
|
attr_reader :error
|
|
@@ -15,6 +16,7 @@ module Appwrite
|
|
|
15
16
|
|
|
16
17
|
def initialize(
|
|
17
18
|
key:,
|
|
19
|
+
description:,
|
|
18
20
|
type:,
|
|
19
21
|
status:,
|
|
20
22
|
error:,
|
|
@@ -25,6 +27,7 @@ module Appwrite
|
|
|
25
27
|
size:
|
|
26
28
|
)
|
|
27
29
|
@key = key
|
|
30
|
+
@description = description
|
|
28
31
|
@type = type
|
|
29
32
|
@status = validate_status(status)
|
|
30
33
|
@error = error
|
|
@@ -36,9 +39,10 @@ module Appwrite
|
|
|
36
39
|
end
|
|
37
40
|
|
|
38
41
|
def self.from(map:)
|
|
39
|
-
map = { "key" => "", "type" => "", "error" => "", "required" => false, "$createdAt" => "", "$updatedAt" => "", "size" => 0 }.merge(map)
|
|
42
|
+
map = { "key" => "", "description" => "", "type" => "", "error" => "", "required" => false, "$createdAt" => "", "$updatedAt" => "", "size" => 0 }.merge(map)
|
|
40
43
|
AttributeVector.new(
|
|
41
44
|
key: map["key"],
|
|
45
|
+
description: map["description"],
|
|
42
46
|
type: map["type"],
|
|
43
47
|
status: map["status"],
|
|
44
48
|
error: map["error"],
|
|
@@ -53,6 +57,7 @@ module Appwrite
|
|
|
53
57
|
def to_map
|
|
54
58
|
{
|
|
55
59
|
"key": @key,
|
|
60
|
+
"description": @description,
|
|
56
61
|
"type": @type,
|
|
57
62
|
"status": @status,
|
|
58
63
|
"error": @error,
|
|
@@ -72,6 +72,7 @@ module Appwrite
|
|
|
72
72
|
attr_reader :deployment_size
|
|
73
73
|
attr_reader :build_size
|
|
74
74
|
attr_reader :functions_interval_minimum
|
|
75
|
+
attr_reader :functions_allow_cron
|
|
75
76
|
attr_reader :databases_allow_encrypt
|
|
76
77
|
attr_reader :limits
|
|
77
78
|
attr_reader :group
|
|
@@ -149,6 +150,7 @@ module Appwrite
|
|
|
149
150
|
deployment_size:,
|
|
150
151
|
build_size:,
|
|
151
152
|
functions_interval_minimum:,
|
|
153
|
+
functions_allow_cron:,
|
|
152
154
|
databases_allow_encrypt:,
|
|
153
155
|
limits: nil,
|
|
154
156
|
group:,
|
|
@@ -225,6 +227,7 @@ module Appwrite
|
|
|
225
227
|
@deployment_size = deployment_size
|
|
226
228
|
@build_size = build_size
|
|
227
229
|
@functions_interval_minimum = functions_interval_minimum
|
|
230
|
+
@functions_allow_cron = functions_allow_cron
|
|
228
231
|
@databases_allow_encrypt = databases_allow_encrypt
|
|
229
232
|
@limits = limits
|
|
230
233
|
@group = validate_group(group)
|
|
@@ -234,7 +237,7 @@ module Appwrite
|
|
|
234
237
|
end
|
|
235
238
|
|
|
236
239
|
def self.from(map:)
|
|
237
|
-
map = { "$id" => "", "name" => "", "desc" => "", "order" => 0, "price" => 0, "trial" => 0, "bandwidth" => 0, "storage" => 0, "imageTransformations" => 0, "screenshotsGenerated" => 0, "webhooks" => 0, "wafRules" => 0, "environments" => 0, "projects" => 0, "platforms" => 0, "users" => 0, "teams" => 0, "databases" => 0, "databasesReads" => 0, "databasesWrites" => 0, "databasesBatchSize" => 0, "buckets" => 0, "fileSize" => 0, "functions" => 0, "sites" => 0, "executions" => 0, "executionsRetentionCount" => 1000, "GBHours" => 0, "realtime" => 0, "realtimeMessages" => 0, "messages" => 0, "topics" => 0, "authPhone" => 0, "domains" => 0, "usageLogs" => 0, "projectInactivityDays" => 0, "alertLimit" => 80, "budgetCapEnabled" => false, "customSmtp" => false, "emailBranding" => false, "requiresPaymentMethod" => true, "requiresBillingAddress" => false, "isAvailable" => true, "selfService" => true, "premiumSupport" => true, "budgeting" => true, "supportsMockNumbers" => true, "supportsOrganizationRoles" => true, "supportsCredits" => false, "supportsDedicatedDatabases" => false, "supportsDisposableEmailValidation" => false, "supportsCanonicalEmailValidation" => false, "supportsFreeEmailValidation" => false, "supportsCorporateEmailValidation" => false, "supportsProjectSpecificRoles" => false, "usagePerProject" => true, "deploymentSize" => 0, "buildSize" => 0, "functionsIntervalMinimum" => 0, "databasesAllowEncrypt" => false, "databaseComputeCredit" => 0 }.merge(map)
|
|
240
|
+
map = { "$id" => "", "name" => "", "desc" => "", "order" => 0, "price" => 0, "trial" => 0, "bandwidth" => 0, "storage" => 0, "imageTransformations" => 0, "screenshotsGenerated" => 0, "webhooks" => 0, "wafRules" => 0, "environments" => 0, "projects" => 0, "platforms" => 0, "users" => 0, "teams" => 0, "databases" => 0, "databasesReads" => 0, "databasesWrites" => 0, "databasesBatchSize" => 0, "buckets" => 0, "fileSize" => 0, "functions" => 0, "sites" => 0, "executions" => 0, "executionsRetentionCount" => 1000, "GBHours" => 0, "realtime" => 0, "realtimeMessages" => 0, "messages" => 0, "topics" => 0, "authPhone" => 0, "domains" => 0, "usageLogs" => 0, "projectInactivityDays" => 0, "alertLimit" => 80, "budgetCapEnabled" => false, "customSmtp" => false, "emailBranding" => false, "requiresPaymentMethod" => true, "requiresBillingAddress" => false, "isAvailable" => true, "selfService" => true, "premiumSupport" => true, "budgeting" => true, "supportsMockNumbers" => true, "supportsOrganizationRoles" => true, "supportsCredits" => false, "supportsDedicatedDatabases" => false, "supportsDisposableEmailValidation" => false, "supportsCanonicalEmailValidation" => false, "supportsFreeEmailValidation" => false, "supportsCorporateEmailValidation" => false, "supportsProjectSpecificRoles" => false, "usagePerProject" => true, "deploymentSize" => 0, "buildSize" => 0, "functionsIntervalMinimum" => 0, "functionsAllowCron" => true, "databasesAllowEncrypt" => false, "databaseComputeCredit" => 0 }.merge(map)
|
|
238
241
|
BillingPlan.new(
|
|
239
242
|
id: map["$id"],
|
|
240
243
|
name: map["name"],
|
|
@@ -305,6 +308,7 @@ module Appwrite
|
|
|
305
308
|
deployment_size: map["deploymentSize"],
|
|
306
309
|
build_size: map["buildSize"],
|
|
307
310
|
functions_interval_minimum: map["functionsIntervalMinimum"],
|
|
311
|
+
functions_allow_cron: map["functionsAllowCron"],
|
|
308
312
|
databases_allow_encrypt: map["databasesAllowEncrypt"],
|
|
309
313
|
limits: map["limits"].nil? ? nil : BillingPlanLimits.from(map: map["limits"]),
|
|
310
314
|
group: map["group"],
|
|
@@ -385,6 +389,7 @@ module Appwrite
|
|
|
385
389
|
"deploymentSize": @deployment_size,
|
|
386
390
|
"buildSize": @build_size,
|
|
387
391
|
"functionsIntervalMinimum": @functions_interval_minimum,
|
|
392
|
+
"functionsAllowCron": @functions_allow_cron,
|
|
388
393
|
"databasesAllowEncrypt": @databases_allow_encrypt,
|
|
389
394
|
"limits": @limits&.to_map,
|
|
390
395
|
"group": @group,
|
|
@@ -9,6 +9,7 @@ module Appwrite
|
|
|
9
9
|
attr_reader :permissions
|
|
10
10
|
attr_reader :file_security
|
|
11
11
|
attr_reader :name
|
|
12
|
+
attr_reader :description
|
|
12
13
|
attr_reader :enabled
|
|
13
14
|
attr_reader :maximum_file_size
|
|
14
15
|
attr_reader :allowed_file_extensions
|
|
@@ -16,6 +17,7 @@ module Appwrite
|
|
|
16
17
|
attr_reader :encryption
|
|
17
18
|
attr_reader :antivirus
|
|
18
19
|
attr_reader :transformations
|
|
20
|
+
attr_reader :strip_metadata
|
|
19
21
|
attr_reader :total_size
|
|
20
22
|
|
|
21
23
|
def initialize(
|
|
@@ -25,6 +27,7 @@ module Appwrite
|
|
|
25
27
|
permissions:,
|
|
26
28
|
file_security:,
|
|
27
29
|
name:,
|
|
30
|
+
description:,
|
|
28
31
|
enabled:,
|
|
29
32
|
maximum_file_size:,
|
|
30
33
|
allowed_file_extensions:,
|
|
@@ -32,6 +35,7 @@ module Appwrite
|
|
|
32
35
|
encryption:,
|
|
33
36
|
antivirus:,
|
|
34
37
|
transformations:,
|
|
38
|
+
strip_metadata:,
|
|
35
39
|
total_size:
|
|
36
40
|
)
|
|
37
41
|
@id = id
|
|
@@ -40,6 +44,7 @@ module Appwrite
|
|
|
40
44
|
@permissions = permissions
|
|
41
45
|
@file_security = file_security
|
|
42
46
|
@name = name
|
|
47
|
+
@description = description
|
|
43
48
|
@enabled = enabled
|
|
44
49
|
@maximum_file_size = maximum_file_size
|
|
45
50
|
@allowed_file_extensions = allowed_file_extensions
|
|
@@ -47,11 +52,12 @@ module Appwrite
|
|
|
47
52
|
@encryption = encryption
|
|
48
53
|
@antivirus = antivirus
|
|
49
54
|
@transformations = transformations
|
|
55
|
+
@strip_metadata = strip_metadata
|
|
50
56
|
@total_size = total_size
|
|
51
57
|
end
|
|
52
58
|
|
|
53
59
|
def self.from(map:)
|
|
54
|
-
map = { "$id" => "", "$createdAt" => "", "$updatedAt" => "", "$permissions" => [], "fileSecurity" => false, "name" => "", "enabled" => true, "maximumFileSize" => 0, "allowedFileExtensions" => [], "compression" => "", "encryption" => true, "antivirus" => true, "transformations" => true, "totalSize" => 0 }.merge(map)
|
|
60
|
+
map = { "$id" => "", "$createdAt" => "", "$updatedAt" => "", "$permissions" => [], "fileSecurity" => false, "name" => "", "description" => "", "enabled" => true, "maximumFileSize" => 0, "allowedFileExtensions" => [], "compression" => "", "encryption" => true, "antivirus" => true, "transformations" => true, "stripMetadata" => false, "totalSize" => 0 }.merge(map)
|
|
55
61
|
Bucket.new(
|
|
56
62
|
id: map["$id"],
|
|
57
63
|
created_at: map["$createdAt"],
|
|
@@ -59,6 +65,7 @@ module Appwrite
|
|
|
59
65
|
permissions: map["$permissions"],
|
|
60
66
|
file_security: map["fileSecurity"],
|
|
61
67
|
name: map["name"],
|
|
68
|
+
description: map["description"],
|
|
62
69
|
enabled: map["enabled"],
|
|
63
70
|
maximum_file_size: map["maximumFileSize"],
|
|
64
71
|
allowed_file_extensions: map["allowedFileExtensions"],
|
|
@@ -66,6 +73,7 @@ module Appwrite
|
|
|
66
73
|
encryption: map["encryption"],
|
|
67
74
|
antivirus: map["antivirus"],
|
|
68
75
|
transformations: map["transformations"],
|
|
76
|
+
strip_metadata: map["stripMetadata"],
|
|
69
77
|
total_size: map["totalSize"]
|
|
70
78
|
)
|
|
71
79
|
end
|
|
@@ -78,6 +86,7 @@ module Appwrite
|
|
|
78
86
|
"$permissions": @permissions,
|
|
79
87
|
"fileSecurity": @file_security,
|
|
80
88
|
"name": @name,
|
|
89
|
+
"description": @description,
|
|
81
90
|
"enabled": @enabled,
|
|
82
91
|
"maximumFileSize": @maximum_file_size,
|
|
83
92
|
"allowedFileExtensions": @allowed_file_extensions,
|
|
@@ -85,6 +94,7 @@ module Appwrite
|
|
|
85
94
|
"encryption": @encryption,
|
|
86
95
|
"antivirus": @antivirus,
|
|
87
96
|
"transformations": @transformations,
|
|
97
|
+
"stripMetadata": @strip_metadata,
|
|
88
98
|
"totalSize": @total_size
|
|
89
99
|
}
|
|
90
100
|
end
|
|
@@ -9,6 +9,7 @@ module Appwrite
|
|
|
9
9
|
attr_reader :permissions
|
|
10
10
|
attr_reader :database_id
|
|
11
11
|
attr_reader :name
|
|
12
|
+
attr_reader :description
|
|
12
13
|
attr_reader :enabled
|
|
13
14
|
attr_reader :document_security
|
|
14
15
|
attr_reader :attributes
|
|
@@ -23,6 +24,7 @@ module Appwrite
|
|
|
23
24
|
permissions:,
|
|
24
25
|
database_id:,
|
|
25
26
|
name:,
|
|
27
|
+
description:,
|
|
26
28
|
enabled:,
|
|
27
29
|
document_security:,
|
|
28
30
|
attributes:,
|
|
@@ -36,6 +38,7 @@ module Appwrite
|
|
|
36
38
|
@permissions = permissions
|
|
37
39
|
@database_id = database_id
|
|
38
40
|
@name = name
|
|
41
|
+
@description = description
|
|
39
42
|
@enabled = enabled
|
|
40
43
|
@document_security = document_security
|
|
41
44
|
@attributes = attributes
|
|
@@ -45,7 +48,7 @@ module Appwrite
|
|
|
45
48
|
end
|
|
46
49
|
|
|
47
50
|
def self.from(map:)
|
|
48
|
-
map = { "$id" => "", "$createdAt" => "", "$updatedAt" => "", "$permissions" => [], "databaseId" => "", "name" => "", "enabled" => true, "documentSecurity" => false, "attributes" => [], "indexes" => [], "bytesMax" => 0, "bytesUsed" => 0 }.merge(map)
|
|
51
|
+
map = { "$id" => "", "$createdAt" => "", "$updatedAt" => "", "$permissions" => [], "databaseId" => "", "name" => "", "description" => "", "enabled" => true, "documentSecurity" => false, "attributes" => [], "indexes" => [], "bytesMax" => 0, "bytesUsed" => 0 }.merge(map)
|
|
49
52
|
Collection.new(
|
|
50
53
|
id: map["$id"],
|
|
51
54
|
created_at: map["$createdAt"],
|
|
@@ -53,6 +56,7 @@ module Appwrite
|
|
|
53
56
|
permissions: map["$permissions"],
|
|
54
57
|
database_id: map["databaseId"],
|
|
55
58
|
name: map["name"],
|
|
59
|
+
description: map["description"],
|
|
56
60
|
enabled: map["enabled"],
|
|
57
61
|
document_security: map["documentSecurity"],
|
|
58
62
|
attributes: map["attributes"],
|
|
@@ -70,6 +74,7 @@ module Appwrite
|
|
|
70
74
|
"$permissions": @permissions,
|
|
71
75
|
"databaseId": @database_id,
|
|
72
76
|
"name": @name,
|
|
77
|
+
"description": @description,
|
|
73
78
|
"enabled": @enabled,
|
|
74
79
|
"documentSecurity": @document_security,
|
|
75
80
|
"attributes": @attributes,
|
|
@@ -4,6 +4,7 @@ module Appwrite
|
|
|
4
4
|
module Models
|
|
5
5
|
class ColumnBigint
|
|
6
6
|
attr_reader :key
|
|
7
|
+
attr_reader :description
|
|
7
8
|
attr_reader :type
|
|
8
9
|
attr_reader :status
|
|
9
10
|
attr_reader :error
|
|
@@ -17,6 +18,7 @@ module Appwrite
|
|
|
17
18
|
|
|
18
19
|
def initialize(
|
|
19
20
|
key:,
|
|
21
|
+
description:,
|
|
20
22
|
type:,
|
|
21
23
|
status:,
|
|
22
24
|
error:,
|
|
@@ -29,6 +31,7 @@ module Appwrite
|
|
|
29
31
|
default: nil
|
|
30
32
|
)
|
|
31
33
|
@key = key
|
|
34
|
+
@description = description
|
|
32
35
|
@type = type
|
|
33
36
|
@status = validate_status(status)
|
|
34
37
|
@error = error
|
|
@@ -42,9 +45,10 @@ module Appwrite
|
|
|
42
45
|
end
|
|
43
46
|
|
|
44
47
|
def self.from(map:)
|
|
45
|
-
map = { "key" => "", "type" => "", "error" => "", "required" => false, "$createdAt" => "", "$updatedAt" => "" }.merge(map)
|
|
48
|
+
map = { "key" => "", "description" => "", "type" => "", "error" => "", "required" => false, "$createdAt" => "", "$updatedAt" => "" }.merge(map)
|
|
46
49
|
ColumnBigint.new(
|
|
47
50
|
key: map["key"],
|
|
51
|
+
description: map["description"],
|
|
48
52
|
type: map["type"],
|
|
49
53
|
status: map["status"],
|
|
50
54
|
error: map["error"],
|
|
@@ -61,6 +65,7 @@ module Appwrite
|
|
|
61
65
|
def to_map
|
|
62
66
|
{
|
|
63
67
|
"key": @key,
|
|
68
|
+
"description": @description,
|
|
64
69
|
"type": @type,
|
|
65
70
|
"status": @status,
|
|
66
71
|
"error": @error,
|
|
@@ -4,6 +4,7 @@ module Appwrite
|
|
|
4
4
|
module Models
|
|
5
5
|
class ColumnBoolean
|
|
6
6
|
attr_reader :key
|
|
7
|
+
attr_reader :description
|
|
7
8
|
attr_reader :type
|
|
8
9
|
attr_reader :status
|
|
9
10
|
attr_reader :error
|
|
@@ -15,6 +16,7 @@ module Appwrite
|
|
|
15
16
|
|
|
16
17
|
def initialize(
|
|
17
18
|
key:,
|
|
19
|
+
description:,
|
|
18
20
|
type:,
|
|
19
21
|
status:,
|
|
20
22
|
error:,
|
|
@@ -25,6 +27,7 @@ module Appwrite
|
|
|
25
27
|
default: nil
|
|
26
28
|
)
|
|
27
29
|
@key = key
|
|
30
|
+
@description = description
|
|
28
31
|
@type = type
|
|
29
32
|
@status = validate_status(status)
|
|
30
33
|
@error = error
|
|
@@ -36,9 +39,10 @@ module Appwrite
|
|
|
36
39
|
end
|
|
37
40
|
|
|
38
41
|
def self.from(map:)
|
|
39
|
-
map = { "key" => "", "type" => "", "error" => "", "required" => false, "$createdAt" => "", "$updatedAt" => "" }.merge(map)
|
|
42
|
+
map = { "key" => "", "description" => "", "type" => "", "error" => "", "required" => false, "$createdAt" => "", "$updatedAt" => "" }.merge(map)
|
|
40
43
|
ColumnBoolean.new(
|
|
41
44
|
key: map["key"],
|
|
45
|
+
description: map["description"],
|
|
42
46
|
type: map["type"],
|
|
43
47
|
status: map["status"],
|
|
44
48
|
error: map["error"],
|
|
@@ -53,6 +57,7 @@ module Appwrite
|
|
|
53
57
|
def to_map
|
|
54
58
|
{
|
|
55
59
|
"key": @key,
|
|
60
|
+
"description": @description,
|
|
56
61
|
"type": @type,
|
|
57
62
|
"status": @status,
|
|
58
63
|
"error": @error,
|
|
@@ -4,6 +4,7 @@ module Appwrite
|
|
|
4
4
|
module Models
|
|
5
5
|
class ColumnDatetime
|
|
6
6
|
attr_reader :key
|
|
7
|
+
attr_reader :description
|
|
7
8
|
attr_reader :type
|
|
8
9
|
attr_reader :status
|
|
9
10
|
attr_reader :error
|
|
@@ -16,6 +17,7 @@ module Appwrite
|
|
|
16
17
|
|
|
17
18
|
def initialize(
|
|
18
19
|
key:,
|
|
20
|
+
description:,
|
|
19
21
|
type:,
|
|
20
22
|
status:,
|
|
21
23
|
error:,
|
|
@@ -27,6 +29,7 @@ module Appwrite
|
|
|
27
29
|
default: nil
|
|
28
30
|
)
|
|
29
31
|
@key = key
|
|
32
|
+
@description = description
|
|
30
33
|
@type = type
|
|
31
34
|
@status = validate_status(status)
|
|
32
35
|
@error = error
|
|
@@ -39,9 +42,10 @@ module Appwrite
|
|
|
39
42
|
end
|
|
40
43
|
|
|
41
44
|
def self.from(map:)
|
|
42
|
-
map = { "key" => "", "type" => "", "error" => "", "required" => false, "$createdAt" => "", "$updatedAt" => "" }.merge(map)
|
|
45
|
+
map = { "key" => "", "description" => "", "type" => "", "error" => "", "required" => false, "$createdAt" => "", "$updatedAt" => "" }.merge(map)
|
|
43
46
|
ColumnDatetime.new(
|
|
44
47
|
key: map["key"],
|
|
48
|
+
description: map["description"],
|
|
45
49
|
type: map["type"],
|
|
46
50
|
status: map["status"],
|
|
47
51
|
error: map["error"],
|
|
@@ -57,6 +61,7 @@ module Appwrite
|
|
|
57
61
|
def to_map
|
|
58
62
|
{
|
|
59
63
|
"key": @key,
|
|
64
|
+
"description": @description,
|
|
60
65
|
"type": @type,
|
|
61
66
|
"status": @status,
|
|
62
67
|
"error": @error,
|
|
@@ -4,6 +4,7 @@ module Appwrite
|
|
|
4
4
|
module Models
|
|
5
5
|
class ColumnEmail
|
|
6
6
|
attr_reader :key
|
|
7
|
+
attr_reader :description
|
|
7
8
|
attr_reader :type
|
|
8
9
|
attr_reader :status
|
|
9
10
|
attr_reader :error
|
|
@@ -16,6 +17,7 @@ module Appwrite
|
|
|
16
17
|
|
|
17
18
|
def initialize(
|
|
18
19
|
key:,
|
|
20
|
+
description:,
|
|
19
21
|
type:,
|
|
20
22
|
status:,
|
|
21
23
|
error:,
|
|
@@ -27,6 +29,7 @@ module Appwrite
|
|
|
27
29
|
default: nil
|
|
28
30
|
)
|
|
29
31
|
@key = key
|
|
32
|
+
@description = description
|
|
30
33
|
@type = type
|
|
31
34
|
@status = validate_status(status)
|
|
32
35
|
@error = error
|
|
@@ -39,9 +42,10 @@ module Appwrite
|
|
|
39
42
|
end
|
|
40
43
|
|
|
41
44
|
def self.from(map:)
|
|
42
|
-
map = { "key" => "", "type" => "", "error" => "", "required" => false, "$createdAt" => "", "$updatedAt" => "", "format" => "email" }.merge(map)
|
|
45
|
+
map = { "key" => "", "description" => "", "type" => "", "error" => "", "required" => false, "$createdAt" => "", "$updatedAt" => "", "format" => "email" }.merge(map)
|
|
43
46
|
ColumnEmail.new(
|
|
44
47
|
key: map["key"],
|
|
48
|
+
description: map["description"],
|
|
45
49
|
type: map["type"],
|
|
46
50
|
status: map["status"],
|
|
47
51
|
error: map["error"],
|
|
@@ -57,6 +61,7 @@ module Appwrite
|
|
|
57
61
|
def to_map
|
|
58
62
|
{
|
|
59
63
|
"key": @key,
|
|
64
|
+
"description": @description,
|
|
60
65
|
"type": @type,
|
|
61
66
|
"status": @status,
|
|
62
67
|
"error": @error,
|
|
@@ -4,6 +4,7 @@ module Appwrite
|
|
|
4
4
|
module Models
|
|
5
5
|
class ColumnEnum
|
|
6
6
|
attr_reader :key
|
|
7
|
+
attr_reader :description
|
|
7
8
|
attr_reader :type
|
|
8
9
|
attr_reader :status
|
|
9
10
|
attr_reader :error
|
|
@@ -17,6 +18,7 @@ module Appwrite
|
|
|
17
18
|
|
|
18
19
|
def initialize(
|
|
19
20
|
key:,
|
|
21
|
+
description:,
|
|
20
22
|
type:,
|
|
21
23
|
status:,
|
|
22
24
|
error:,
|
|
@@ -29,6 +31,7 @@ module Appwrite
|
|
|
29
31
|
default: nil
|
|
30
32
|
)
|
|
31
33
|
@key = key
|
|
34
|
+
@description = description
|
|
32
35
|
@type = type
|
|
33
36
|
@status = validate_status(status)
|
|
34
37
|
@error = error
|
|
@@ -42,9 +45,10 @@ module Appwrite
|
|
|
42
45
|
end
|
|
43
46
|
|
|
44
47
|
def self.from(map:)
|
|
45
|
-
map = { "key" => "", "type" => "", "error" => "", "required" => false, "$createdAt" => "", "$updatedAt" => "", "elements" => [], "format" => "enum" }.merge(map)
|
|
48
|
+
map = { "key" => "", "description" => "", "type" => "", "error" => "", "required" => false, "$createdAt" => "", "$updatedAt" => "", "elements" => [], "format" => "enum" }.merge(map)
|
|
46
49
|
ColumnEnum.new(
|
|
47
50
|
key: map["key"],
|
|
51
|
+
description: map["description"],
|
|
48
52
|
type: map["type"],
|
|
49
53
|
status: map["status"],
|
|
50
54
|
error: map["error"],
|
|
@@ -61,6 +65,7 @@ module Appwrite
|
|
|
61
65
|
def to_map
|
|
62
66
|
{
|
|
63
67
|
"key": @key,
|
|
68
|
+
"description": @description,
|
|
64
69
|
"type": @type,
|
|
65
70
|
"status": @status,
|
|
66
71
|
"error": @error,
|