appwrite 30.2.0 → 30.4.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 +2 -2
- data/lib/appwrite/enums/image_format.rb +1 -0
- data/lib/appwrite/enums/o_auth_provider.rb +14 -0
- data/lib/appwrite/enums/project_auth_method_id.rb +1 -0
- data/lib/appwrite/enums/project_key_scopes.rb +6 -0
- data/lib/appwrite/enums/project_ldap_encryption.rb +9 -0
- data/lib/appwrite/enums/project_o_auth_provider_id.rb +14 -0
- data/lib/appwrite/models/domain_price.rb +8 -3
- data/lib/appwrite/models/o_auth2_atlassian.rb +43 -0
- data/lib/appwrite/models/o_auth2_instagram.rb +43 -0
- data/lib/appwrite/models/o_auth2_line.rb +43 -0
- data/lib/appwrite/models/o_auth2_linear.rb +43 -0
- data/lib/appwrite/models/o_auth2_naver.rb +43 -0
- data/lib/appwrite/models/o_auth2_netlify.rb +43 -0
- data/lib/appwrite/models/o_auth2_patreon.rb +43 -0
- data/lib/appwrite/models/o_auth2_railway.rb +43 -0
- data/lib/appwrite/models/o_auth2_reddit.rb +43 -0
- data/lib/appwrite/models/o_auth2_roblox.rb +43 -0
- data/lib/appwrite/models/o_auth2_strava.rb +43 -0
- data/lib/appwrite/models/o_auth2_vercel.rb +43 -0
- data/lib/appwrite/models/o_auth2_vk.rb +43 -0
- data/lib/appwrite/models/o_auth2_work_os.rb +43 -0
- data/lib/appwrite/models/project.rb +81 -1
- data/lib/appwrite/models/project_auth_method.rb +1 -0
- data/lib/appwrite/models/site.rb +14 -4
- data/lib/appwrite/services/account.rb +51 -1
- data/lib/appwrite/services/avatars.rb +5 -2
- data/lib/appwrite/services/domains.rb +5 -4
- data/lib/appwrite/services/messaging.rb +208 -0
- data/lib/appwrite/services/project.rb +706 -2
- data/lib/appwrite/services/sites.rb +44 -0
- data/lib/appwrite/services/storage.rb +5 -2
- data/lib/appwrite.rb +15 -0
- metadata +17 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 74cae80fdbf5d2d8bce004eb891da0a982ee3c97b274059e4a29b16bd1181840
|
|
4
|
+
data.tar.gz: 7a7c50ed5def8bff4d644e98ab130c4794770edc651d2cf77d632cb911c51031
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d93f03f527e1875a0ba0466d68b3c90169b1b96fadf6c7e1a2a17ccc75e8313a6456f99e4ce188397a74b5f6599b5cc2ba6313fa2816396b41deb384e871401e
|
|
7
|
+
data.tar.gz: a35a86f654b47cb1c6101571536a148a6eba0360ebce3f1061f76cdd8632380bf52938d487f98f0a9f08fa6bb067b3a93132fc339f77f02ed91e6176225e8cc1
|
data/lib/appwrite/client.rb
CHANGED
|
@@ -14,8 +14,8 @@ module Appwrite
|
|
|
14
14
|
'x-sdk-name' => 'Ruby',
|
|
15
15
|
'x-sdk-platform' => 'server',
|
|
16
16
|
'x-sdk-language' => 'ruby',
|
|
17
|
-
'x-sdk-version' => '30.
|
|
18
|
-
'X-Appwrite-Response-Format' => '2.7.
|
|
17
|
+
'x-sdk-version' => '30.4.0',
|
|
18
|
+
'X-Appwrite-Response-Format' => '2.7.2'
|
|
19
19
|
}
|
|
20
20
|
@endpoint = 'https://cloud.appwrite.io/v1'
|
|
21
21
|
@config = {}
|
|
@@ -4,6 +4,7 @@ module Appwrite
|
|
|
4
4
|
AMAZON = 'amazon'
|
|
5
5
|
APPLE = 'apple'
|
|
6
6
|
APPWRITE = 'appwrite'
|
|
7
|
+
ATLASSIAN = 'atlassian'
|
|
7
8
|
AUTH0 = 'auth0'
|
|
8
9
|
AUTHENTIK = 'authentik'
|
|
9
10
|
AUTODESK = 'autodesk'
|
|
@@ -23,30 +24,43 @@ module Appwrite
|
|
|
23
24
|
GITLAB = 'gitlab'
|
|
24
25
|
GOOGLE = 'google'
|
|
25
26
|
HUGGINGFACE = 'huggingface'
|
|
27
|
+
INSTAGRAM = 'instagram'
|
|
26
28
|
KAKAO = 'kakao'
|
|
27
29
|
KEYCLOAK = 'keycloak'
|
|
28
30
|
KICK = 'kick'
|
|
31
|
+
LINE = 'line'
|
|
32
|
+
LINEAR = 'linear'
|
|
29
33
|
LINKEDIN = 'linkedin'
|
|
30
34
|
MICROSOFT = 'microsoft'
|
|
35
|
+
NAVER = 'naver'
|
|
36
|
+
NETLIFY = 'netlify'
|
|
31
37
|
NOTION = 'notion'
|
|
32
38
|
OIDC = 'oidc'
|
|
33
39
|
OKTA = 'okta'
|
|
40
|
+
PATREON = 'patreon'
|
|
34
41
|
PAYPAL = 'paypal'
|
|
35
42
|
PAYPALSANDBOX = 'paypalSandbox'
|
|
36
43
|
PODIO = 'podio'
|
|
44
|
+
RAILWAY = 'railway'
|
|
45
|
+
REDDIT = 'reddit'
|
|
37
46
|
RESEND = 'resend'
|
|
47
|
+
ROBLOX = 'roblox'
|
|
38
48
|
SALESFORCE = 'salesforce'
|
|
39
49
|
SLACK = 'slack'
|
|
40
50
|
SPOTIFY = 'spotify'
|
|
51
|
+
STRAVA = 'strava'
|
|
41
52
|
STRIPE = 'stripe'
|
|
42
53
|
TIKTOK = 'tiktok'
|
|
43
54
|
TRADESHIFT = 'tradeshift'
|
|
44
55
|
TRADESHIFTBOX = 'tradeshiftBox'
|
|
45
56
|
TWITCH = 'twitch'
|
|
57
|
+
VERCEL = 'vercel'
|
|
46
58
|
VIPPS = 'vipps'
|
|
47
59
|
VIPPSSANDBOX = 'vippsSandbox'
|
|
60
|
+
VK = 'vk'
|
|
48
61
|
WEBFLOW = 'webflow'
|
|
49
62
|
WORDPRESS = 'wordpress'
|
|
63
|
+
WORKOS = 'workos'
|
|
50
64
|
X = 'x'
|
|
51
65
|
YAHOO = 'yahoo'
|
|
52
66
|
YAMMER = 'yammer'
|
|
@@ -14,8 +14,11 @@ module Appwrite
|
|
|
14
14
|
POLICIES_WRITE = 'policies.write'
|
|
15
15
|
PROJECT_POLICIES_READ = 'project.policies.read'
|
|
16
16
|
PROJECT_POLICIES_WRITE = 'project.policies.write'
|
|
17
|
+
PROJECT_VIDEOS_PROFILES_READ = 'project.videos.profiles.read'
|
|
18
|
+
PROJECT_VIDEOS_PROFILES_WRITE = 'project.videos.profiles.write'
|
|
17
19
|
PROJECT_OAUTH2_READ = 'project.oauth2.read'
|
|
18
20
|
PROJECT_OAUTH2_WRITE = 'project.oauth2.write'
|
|
21
|
+
PROJECT_LDAP_WRITE = 'project.ldap.write'
|
|
19
22
|
TEMPLATES_READ = 'templates.read'
|
|
20
23
|
TEMPLATES_WRITE = 'templates.write'
|
|
21
24
|
STAGES_READ = 'stages.read'
|
|
@@ -112,6 +115,9 @@ module Appwrite
|
|
|
112
115
|
REVIEWS_WRITE = 'reviews.write'
|
|
113
116
|
PRESENCES_READ = 'presences.read'
|
|
114
117
|
PRESENCES_WRITE = 'presences.write'
|
|
118
|
+
VIDEOS_PLAY = 'videos.play'
|
|
119
|
+
VIDEOS_READ = 'videos.read'
|
|
120
|
+
VIDEOS_WRITE = 'videos.write'
|
|
115
121
|
DEDICATEDDATABASES_EXECUTE = 'dedicatedDatabases.execute'
|
|
116
122
|
BACKUPS_POLICIES_READ = 'backups.policies.read'
|
|
117
123
|
BACKUPS_POLICIES_WRITE = 'backups.policies.write'
|
|
@@ -4,6 +4,7 @@ module Appwrite
|
|
|
4
4
|
AMAZON = 'amazon'
|
|
5
5
|
APPLE = 'apple'
|
|
6
6
|
APPWRITE = 'appwrite'
|
|
7
|
+
ATLASSIAN = 'atlassian'
|
|
7
8
|
AUTH0 = 'auth0'
|
|
8
9
|
AUTHENTIK = 'authentik'
|
|
9
10
|
AUTODESK = 'autodesk'
|
|
@@ -23,30 +24,43 @@ module Appwrite
|
|
|
23
24
|
GITLAB = 'gitlab'
|
|
24
25
|
GOOGLE = 'google'
|
|
25
26
|
HUGGINGFACE = 'huggingface'
|
|
27
|
+
INSTAGRAM = 'instagram'
|
|
26
28
|
KAKAO = 'kakao'
|
|
27
29
|
KEYCLOAK = 'keycloak'
|
|
28
30
|
KICK = 'kick'
|
|
31
|
+
LINE = 'line'
|
|
32
|
+
LINEAR = 'linear'
|
|
29
33
|
LINKEDIN = 'linkedin'
|
|
30
34
|
MICROSOFT = 'microsoft'
|
|
35
|
+
NAVER = 'naver'
|
|
36
|
+
NETLIFY = 'netlify'
|
|
31
37
|
NOTION = 'notion'
|
|
32
38
|
OIDC = 'oidc'
|
|
33
39
|
OKTA = 'okta'
|
|
40
|
+
PATREON = 'patreon'
|
|
34
41
|
PAYPAL = 'paypal'
|
|
35
42
|
PAYPALSANDBOX = 'paypalSandbox'
|
|
36
43
|
PODIO = 'podio'
|
|
44
|
+
RAILWAY = 'railway'
|
|
45
|
+
REDDIT = 'reddit'
|
|
37
46
|
RESEND = 'resend'
|
|
47
|
+
ROBLOX = 'roblox'
|
|
38
48
|
SALESFORCE = 'salesforce'
|
|
39
49
|
SLACK = 'slack'
|
|
40
50
|
SPOTIFY = 'spotify'
|
|
51
|
+
STRAVA = 'strava'
|
|
41
52
|
STRIPE = 'stripe'
|
|
42
53
|
TIKTOK = 'tiktok'
|
|
43
54
|
TRADESHIFT = 'tradeshift'
|
|
44
55
|
TRADESHIFTBOX = 'tradeshiftBox'
|
|
45
56
|
TWITCH = 'twitch'
|
|
57
|
+
VERCEL = 'vercel'
|
|
46
58
|
VIPPS = 'vipps'
|
|
47
59
|
VIPPSSANDBOX = 'vippsSandbox'
|
|
60
|
+
VK = 'vk'
|
|
48
61
|
WEBFLOW = 'webflow'
|
|
49
62
|
WORDPRESS = 'wordpress'
|
|
63
|
+
WORKOS = 'workos'
|
|
50
64
|
X = 'x'
|
|
51
65
|
YAHOO = 'yahoo'
|
|
52
66
|
YAMMER = 'yammer'
|
|
@@ -11,6 +11,7 @@ module Appwrite
|
|
|
11
11
|
attr_reader :premium
|
|
12
12
|
attr_reader :renewal_price
|
|
13
13
|
attr_reader :renewal_period_years
|
|
14
|
+
attr_reader :reason
|
|
14
15
|
|
|
15
16
|
def initialize(
|
|
16
17
|
domain:,
|
|
@@ -20,7 +21,8 @@ module Appwrite
|
|
|
20
21
|
period_years:,
|
|
21
22
|
premium:,
|
|
22
23
|
renewal_price: nil,
|
|
23
|
-
renewal_period_years
|
|
24
|
+
renewal_period_years:,
|
|
25
|
+
reason: nil
|
|
24
26
|
)
|
|
25
27
|
@domain = domain
|
|
26
28
|
@tld = tld
|
|
@@ -30,6 +32,7 @@ module Appwrite
|
|
|
30
32
|
@premium = premium
|
|
31
33
|
@renewal_price = renewal_price
|
|
32
34
|
@renewal_period_years = renewal_period_years
|
|
35
|
+
@reason = reason
|
|
33
36
|
end
|
|
34
37
|
|
|
35
38
|
def self.from(map:)
|
|
@@ -42,7 +45,8 @@ module Appwrite
|
|
|
42
45
|
period_years: map["periodYears"],
|
|
43
46
|
premium: map["premium"],
|
|
44
47
|
renewal_price: map["renewalPrice"],
|
|
45
|
-
renewal_period_years: map["renewalPeriodYears"]
|
|
48
|
+
renewal_period_years: map["renewalPeriodYears"],
|
|
49
|
+
reason: map["reason"]
|
|
46
50
|
)
|
|
47
51
|
end
|
|
48
52
|
|
|
@@ -55,7 +59,8 @@ module Appwrite
|
|
|
55
59
|
"periodYears": @period_years,
|
|
56
60
|
"premium": @premium,
|
|
57
61
|
"renewalPrice": @renewal_price,
|
|
58
|
-
"renewalPeriodYears": @renewal_period_years
|
|
62
|
+
"renewalPeriodYears": @renewal_period_years,
|
|
63
|
+
"reason": @reason
|
|
59
64
|
}
|
|
60
65
|
end
|
|
61
66
|
end
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Appwrite
|
|
4
|
+
module Models
|
|
5
|
+
class OAuth2Atlassian
|
|
6
|
+
attr_reader :id
|
|
7
|
+
attr_reader :enabled
|
|
8
|
+
attr_reader :client_id
|
|
9
|
+
attr_reader :client_secret
|
|
10
|
+
|
|
11
|
+
def initialize(
|
|
12
|
+
id:,
|
|
13
|
+
enabled:,
|
|
14
|
+
client_id:,
|
|
15
|
+
client_secret:
|
|
16
|
+
)
|
|
17
|
+
@id = id
|
|
18
|
+
@enabled = enabled
|
|
19
|
+
@client_id = client_id
|
|
20
|
+
@client_secret = client_secret
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
def self.from(map:)
|
|
24
|
+
map = { "$id" => "", "enabled" => false, "clientId" => "", "clientSecret" => "" }.merge(map)
|
|
25
|
+
OAuth2Atlassian.new(
|
|
26
|
+
id: map["$id"],
|
|
27
|
+
enabled: map["enabled"],
|
|
28
|
+
client_id: map["clientId"],
|
|
29
|
+
client_secret: map["clientSecret"]
|
|
30
|
+
)
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
def to_map
|
|
34
|
+
{
|
|
35
|
+
"$id": @id,
|
|
36
|
+
"enabled": @enabled,
|
|
37
|
+
"clientId": @client_id,
|
|
38
|
+
"clientSecret": @client_secret
|
|
39
|
+
}
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Appwrite
|
|
4
|
+
module Models
|
|
5
|
+
class OAuth2Instagram
|
|
6
|
+
attr_reader :id
|
|
7
|
+
attr_reader :enabled
|
|
8
|
+
attr_reader :client_id
|
|
9
|
+
attr_reader :client_secret
|
|
10
|
+
|
|
11
|
+
def initialize(
|
|
12
|
+
id:,
|
|
13
|
+
enabled:,
|
|
14
|
+
client_id:,
|
|
15
|
+
client_secret:
|
|
16
|
+
)
|
|
17
|
+
@id = id
|
|
18
|
+
@enabled = enabled
|
|
19
|
+
@client_id = client_id
|
|
20
|
+
@client_secret = client_secret
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
def self.from(map:)
|
|
24
|
+
map = { "$id" => "", "enabled" => false, "clientId" => "", "clientSecret" => "" }.merge(map)
|
|
25
|
+
OAuth2Instagram.new(
|
|
26
|
+
id: map["$id"],
|
|
27
|
+
enabled: map["enabled"],
|
|
28
|
+
client_id: map["clientId"],
|
|
29
|
+
client_secret: map["clientSecret"]
|
|
30
|
+
)
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
def to_map
|
|
34
|
+
{
|
|
35
|
+
"$id": @id,
|
|
36
|
+
"enabled": @enabled,
|
|
37
|
+
"clientId": @client_id,
|
|
38
|
+
"clientSecret": @client_secret
|
|
39
|
+
}
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Appwrite
|
|
4
|
+
module Models
|
|
5
|
+
class OAuth2Line
|
|
6
|
+
attr_reader :id
|
|
7
|
+
attr_reader :enabled
|
|
8
|
+
attr_reader :client_id
|
|
9
|
+
attr_reader :client_secret
|
|
10
|
+
|
|
11
|
+
def initialize(
|
|
12
|
+
id:,
|
|
13
|
+
enabled:,
|
|
14
|
+
client_id:,
|
|
15
|
+
client_secret:
|
|
16
|
+
)
|
|
17
|
+
@id = id
|
|
18
|
+
@enabled = enabled
|
|
19
|
+
@client_id = client_id
|
|
20
|
+
@client_secret = client_secret
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
def self.from(map:)
|
|
24
|
+
map = { "$id" => "", "enabled" => false, "clientId" => "", "clientSecret" => "" }.merge(map)
|
|
25
|
+
OAuth2Line.new(
|
|
26
|
+
id: map["$id"],
|
|
27
|
+
enabled: map["enabled"],
|
|
28
|
+
client_id: map["clientId"],
|
|
29
|
+
client_secret: map["clientSecret"]
|
|
30
|
+
)
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
def to_map
|
|
34
|
+
{
|
|
35
|
+
"$id": @id,
|
|
36
|
+
"enabled": @enabled,
|
|
37
|
+
"clientId": @client_id,
|
|
38
|
+
"clientSecret": @client_secret
|
|
39
|
+
}
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Appwrite
|
|
4
|
+
module Models
|
|
5
|
+
class OAuth2Linear
|
|
6
|
+
attr_reader :id
|
|
7
|
+
attr_reader :enabled
|
|
8
|
+
attr_reader :client_id
|
|
9
|
+
attr_reader :client_secret
|
|
10
|
+
|
|
11
|
+
def initialize(
|
|
12
|
+
id:,
|
|
13
|
+
enabled:,
|
|
14
|
+
client_id:,
|
|
15
|
+
client_secret:
|
|
16
|
+
)
|
|
17
|
+
@id = id
|
|
18
|
+
@enabled = enabled
|
|
19
|
+
@client_id = client_id
|
|
20
|
+
@client_secret = client_secret
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
def self.from(map:)
|
|
24
|
+
map = { "$id" => "", "enabled" => false, "clientId" => "", "clientSecret" => "" }.merge(map)
|
|
25
|
+
OAuth2Linear.new(
|
|
26
|
+
id: map["$id"],
|
|
27
|
+
enabled: map["enabled"],
|
|
28
|
+
client_id: map["clientId"],
|
|
29
|
+
client_secret: map["clientSecret"]
|
|
30
|
+
)
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
def to_map
|
|
34
|
+
{
|
|
35
|
+
"$id": @id,
|
|
36
|
+
"enabled": @enabled,
|
|
37
|
+
"clientId": @client_id,
|
|
38
|
+
"clientSecret": @client_secret
|
|
39
|
+
}
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Appwrite
|
|
4
|
+
module Models
|
|
5
|
+
class OAuth2Naver
|
|
6
|
+
attr_reader :id
|
|
7
|
+
attr_reader :enabled
|
|
8
|
+
attr_reader :client_id
|
|
9
|
+
attr_reader :client_secret
|
|
10
|
+
|
|
11
|
+
def initialize(
|
|
12
|
+
id:,
|
|
13
|
+
enabled:,
|
|
14
|
+
client_id:,
|
|
15
|
+
client_secret:
|
|
16
|
+
)
|
|
17
|
+
@id = id
|
|
18
|
+
@enabled = enabled
|
|
19
|
+
@client_id = client_id
|
|
20
|
+
@client_secret = client_secret
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
def self.from(map:)
|
|
24
|
+
map = { "$id" => "", "enabled" => false, "clientId" => "", "clientSecret" => "" }.merge(map)
|
|
25
|
+
OAuth2Naver.new(
|
|
26
|
+
id: map["$id"],
|
|
27
|
+
enabled: map["enabled"],
|
|
28
|
+
client_id: map["clientId"],
|
|
29
|
+
client_secret: map["clientSecret"]
|
|
30
|
+
)
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
def to_map
|
|
34
|
+
{
|
|
35
|
+
"$id": @id,
|
|
36
|
+
"enabled": @enabled,
|
|
37
|
+
"clientId": @client_id,
|
|
38
|
+
"clientSecret": @client_secret
|
|
39
|
+
}
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Appwrite
|
|
4
|
+
module Models
|
|
5
|
+
class OAuth2Netlify
|
|
6
|
+
attr_reader :id
|
|
7
|
+
attr_reader :enabled
|
|
8
|
+
attr_reader :client_id
|
|
9
|
+
attr_reader :client_secret
|
|
10
|
+
|
|
11
|
+
def initialize(
|
|
12
|
+
id:,
|
|
13
|
+
enabled:,
|
|
14
|
+
client_id:,
|
|
15
|
+
client_secret:
|
|
16
|
+
)
|
|
17
|
+
@id = id
|
|
18
|
+
@enabled = enabled
|
|
19
|
+
@client_id = client_id
|
|
20
|
+
@client_secret = client_secret
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
def self.from(map:)
|
|
24
|
+
map = { "$id" => "", "enabled" => false, "clientId" => "", "clientSecret" => "" }.merge(map)
|
|
25
|
+
OAuth2Netlify.new(
|
|
26
|
+
id: map["$id"],
|
|
27
|
+
enabled: map["enabled"],
|
|
28
|
+
client_id: map["clientId"],
|
|
29
|
+
client_secret: map["clientSecret"]
|
|
30
|
+
)
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
def to_map
|
|
34
|
+
{
|
|
35
|
+
"$id": @id,
|
|
36
|
+
"enabled": @enabled,
|
|
37
|
+
"clientId": @client_id,
|
|
38
|
+
"clientSecret": @client_secret
|
|
39
|
+
}
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Appwrite
|
|
4
|
+
module Models
|
|
5
|
+
class OAuth2Patreon
|
|
6
|
+
attr_reader :id
|
|
7
|
+
attr_reader :enabled
|
|
8
|
+
attr_reader :client_id
|
|
9
|
+
attr_reader :client_secret
|
|
10
|
+
|
|
11
|
+
def initialize(
|
|
12
|
+
id:,
|
|
13
|
+
enabled:,
|
|
14
|
+
client_id:,
|
|
15
|
+
client_secret:
|
|
16
|
+
)
|
|
17
|
+
@id = id
|
|
18
|
+
@enabled = enabled
|
|
19
|
+
@client_id = client_id
|
|
20
|
+
@client_secret = client_secret
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
def self.from(map:)
|
|
24
|
+
map = { "$id" => "", "enabled" => false, "clientId" => "", "clientSecret" => "" }.merge(map)
|
|
25
|
+
OAuth2Patreon.new(
|
|
26
|
+
id: map["$id"],
|
|
27
|
+
enabled: map["enabled"],
|
|
28
|
+
client_id: map["clientId"],
|
|
29
|
+
client_secret: map["clientSecret"]
|
|
30
|
+
)
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
def to_map
|
|
34
|
+
{
|
|
35
|
+
"$id": @id,
|
|
36
|
+
"enabled": @enabled,
|
|
37
|
+
"clientId": @client_id,
|
|
38
|
+
"clientSecret": @client_secret
|
|
39
|
+
}
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Appwrite
|
|
4
|
+
module Models
|
|
5
|
+
class OAuth2Railway
|
|
6
|
+
attr_reader :id
|
|
7
|
+
attr_reader :enabled
|
|
8
|
+
attr_reader :client_id
|
|
9
|
+
attr_reader :client_secret
|
|
10
|
+
|
|
11
|
+
def initialize(
|
|
12
|
+
id:,
|
|
13
|
+
enabled:,
|
|
14
|
+
client_id:,
|
|
15
|
+
client_secret:
|
|
16
|
+
)
|
|
17
|
+
@id = id
|
|
18
|
+
@enabled = enabled
|
|
19
|
+
@client_id = client_id
|
|
20
|
+
@client_secret = client_secret
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
def self.from(map:)
|
|
24
|
+
map = { "$id" => "", "enabled" => false, "clientId" => "", "clientSecret" => "" }.merge(map)
|
|
25
|
+
OAuth2Railway.new(
|
|
26
|
+
id: map["$id"],
|
|
27
|
+
enabled: map["enabled"],
|
|
28
|
+
client_id: map["clientId"],
|
|
29
|
+
client_secret: map["clientSecret"]
|
|
30
|
+
)
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
def to_map
|
|
34
|
+
{
|
|
35
|
+
"$id": @id,
|
|
36
|
+
"enabled": @enabled,
|
|
37
|
+
"clientId": @client_id,
|
|
38
|
+
"clientSecret": @client_secret
|
|
39
|
+
}
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Appwrite
|
|
4
|
+
module Models
|
|
5
|
+
class OAuth2Reddit
|
|
6
|
+
attr_reader :id
|
|
7
|
+
attr_reader :enabled
|
|
8
|
+
attr_reader :client_id
|
|
9
|
+
attr_reader :client_secret
|
|
10
|
+
|
|
11
|
+
def initialize(
|
|
12
|
+
id:,
|
|
13
|
+
enabled:,
|
|
14
|
+
client_id:,
|
|
15
|
+
client_secret:
|
|
16
|
+
)
|
|
17
|
+
@id = id
|
|
18
|
+
@enabled = enabled
|
|
19
|
+
@client_id = client_id
|
|
20
|
+
@client_secret = client_secret
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
def self.from(map:)
|
|
24
|
+
map = { "$id" => "", "enabled" => false, "clientId" => "", "clientSecret" => "" }.merge(map)
|
|
25
|
+
OAuth2Reddit.new(
|
|
26
|
+
id: map["$id"],
|
|
27
|
+
enabled: map["enabled"],
|
|
28
|
+
client_id: map["clientId"],
|
|
29
|
+
client_secret: map["clientSecret"]
|
|
30
|
+
)
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
def to_map
|
|
34
|
+
{
|
|
35
|
+
"$id": @id,
|
|
36
|
+
"enabled": @enabled,
|
|
37
|
+
"clientId": @client_id,
|
|
38
|
+
"clientSecret": @client_secret
|
|
39
|
+
}
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Appwrite
|
|
4
|
+
module Models
|
|
5
|
+
class OAuth2Roblox
|
|
6
|
+
attr_reader :id
|
|
7
|
+
attr_reader :enabled
|
|
8
|
+
attr_reader :client_id
|
|
9
|
+
attr_reader :client_secret
|
|
10
|
+
|
|
11
|
+
def initialize(
|
|
12
|
+
id:,
|
|
13
|
+
enabled:,
|
|
14
|
+
client_id:,
|
|
15
|
+
client_secret:
|
|
16
|
+
)
|
|
17
|
+
@id = id
|
|
18
|
+
@enabled = enabled
|
|
19
|
+
@client_id = client_id
|
|
20
|
+
@client_secret = client_secret
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
def self.from(map:)
|
|
24
|
+
map = { "$id" => "", "enabled" => false, "clientId" => "", "clientSecret" => "" }.merge(map)
|
|
25
|
+
OAuth2Roblox.new(
|
|
26
|
+
id: map["$id"],
|
|
27
|
+
enabled: map["enabled"],
|
|
28
|
+
client_id: map["clientId"],
|
|
29
|
+
client_secret: map["clientSecret"]
|
|
30
|
+
)
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
def to_map
|
|
34
|
+
{
|
|
35
|
+
"$id": @id,
|
|
36
|
+
"enabled": @enabled,
|
|
37
|
+
"clientId": @client_id,
|
|
38
|
+
"clientSecret": @client_secret
|
|
39
|
+
}
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|