Skip to content

Commit 01d0b86

Browse files
committed
chore: update Ruby SDK to 23.0.0
1 parent fae2f61 commit 01d0b86

8 files changed

Lines changed: 1 addition & 242 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* Added `x` OAuth provider to `OAuthProvider` enum
99
* Added `userType` field to `Log` model
1010
* Added `purge` parameter to `updateCollection` and `updateTable` for cache invalidation
11-
* Added Project service: platform CRUD, key CRUD, label/email/protocol/service management
11+
* Added Project service: platform CRUD, key CRUD, protocol/service status management
1212
* Added new models: `Key`, `KeyList`, `PlatformAndroid`, `PlatformApple`, `PlatformLinux`, `PlatformList`, and others
1313
* Added new enums: `PlatformType`, `ProtocolId`, `ServiceId`
1414
* Updated `BuildRuntime`, `Runtime`, `Scopes` enums with new values

docs/examples/project/update-canonical-emails.md

Lines changed: 0 additions & 16 deletions
This file was deleted.

docs/examples/project/update-disposable-emails.md

Lines changed: 0 additions & 16 deletions
This file was deleted.

docs/examples/project/update-free-emails.md

Lines changed: 0 additions & 16 deletions
This file was deleted.

docs/examples/project/update-labels.md

Lines changed: 0 additions & 16 deletions
This file was deleted.

docs/examples/users/update-labels.md

Lines changed: 0 additions & 17 deletions
This file was deleted.

lib/appwrite/services/project.rb

Lines changed: 0 additions & 120 deletions
Original file line numberDiff line numberDiff line change
@@ -7,96 +7,6 @@ def initialize(client)
77
@client = client
88
end
99

10-
# Configure if canonical emails (alias subaddresses and emails with suffixes)
11-
# are allowed during new users sign-ups in this project.
12-
#
13-
# @param [] enabled Set whether or not to require canonical email addresses during signup and email updates.
14-
#
15-
# @return [Project]
16-
def update_canonical_emails(enabled:)
17-
api_path = '/project/auth/canonical-emails'
18-
19-
if enabled.nil?
20-
raise Appwrite::Exception.new('Missing required parameter: "enabled"')
21-
end
22-
23-
api_params = {
24-
enabled: enabled,
25-
}
26-
27-
api_headers = {
28-
"content-type": 'application/json',
29-
}
30-
31-
@client.call(
32-
method: 'PATCH',
33-
path: api_path,
34-
headers: api_headers,
35-
params: api_params,
36-
response_type: Models::Project
37-
)
38-
end
39-
40-
# Configure if disposable emails (emails of known temporary domains) are
41-
# allowed during new users sign-ups in this project.
42-
#
43-
# @param [] enabled Set whether or not to block disposable email addresses during signup and email updates.
44-
#
45-
# @return [Project]
46-
def update_disposable_emails(enabled:)
47-
api_path = '/project/auth/disposable-emails'
48-
49-
if enabled.nil?
50-
raise Appwrite::Exception.new('Missing required parameter: "enabled"')
51-
end
52-
53-
api_params = {
54-
enabled: enabled,
55-
}
56-
57-
api_headers = {
58-
"content-type": 'application/json',
59-
}
60-
61-
@client.call(
62-
method: 'PATCH',
63-
path: api_path,
64-
headers: api_headers,
65-
params: api_params,
66-
response_type: Models::Project
67-
)
68-
end
69-
70-
# Configure if free emails (non-commercial and not a custom domain) are
71-
# allowed during new users sign-ups in this project.
72-
#
73-
# @param [] enabled Set whether or not to block free email addresses during signup and email updates.
74-
#
75-
# @return [Project]
76-
def update_free_emails(enabled:)
77-
api_path = '/project/auth/free-emails'
78-
79-
if enabled.nil?
80-
raise Appwrite::Exception.new('Missing required parameter: "enabled"')
81-
end
82-
83-
api_params = {
84-
enabled: enabled,
85-
}
86-
87-
api_headers = {
88-
"content-type": 'application/json',
89-
}
90-
91-
@client.call(
92-
method: 'PATCH',
93-
path: api_path,
94-
headers: api_headers,
95-
params: api_params,
96-
response_type: Models::Project
97-
)
98-
end
99-
10010
# Get a list of all API keys from the current project.
10111
#
10212
# @param [Array] queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: expire, accessedAt, name, scopes
@@ -268,36 +178,6 @@ def delete_key(key_id:)
268178
)
269179
end
270180

271-
# Update the project labels. Labels can be used to easily filter projects in
272-
# an organization.
273-
#
274-
# @param [Array] labels Array of project labels. Replaces the previous labels. Maximum of 1000 labels are allowed, each up to 36 alphanumeric characters long.
275-
#
276-
# @return [Project]
277-
def update_labels(labels:)
278-
api_path = '/project/labels'
279-
280-
if labels.nil?
281-
raise Appwrite::Exception.new('Missing required parameter: "labels"')
282-
end
283-
284-
api_params = {
285-
labels: labels,
286-
}
287-
288-
api_headers = {
289-
"content-type": 'application/json',
290-
}
291-
292-
@client.call(
293-
method: 'PUT',
294-
path: api_path,
295-
headers: api_headers,
296-
params: api_params,
297-
response_type: Models::Project
298-
)
299-
end
300-
301181
# Get a list of all platforms in the project. This endpoint returns an array
302182
# of all platforms and their configurations.
303183
#

lib/appwrite/services/users.rb

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -673,46 +673,6 @@ def create_jwt(user_id:, session_id: nil, duration: nil)
673673
)
674674
end
675675

676-
# Update the user labels by its unique ID.
677-
#
678-
# Labels can be used to grant access to resources. While teams are a way for
679-
# user's to share access to a resource, labels can be defined by the
680-
# developer to grant access without an invitation. See the [Permissions
681-
# docs](https://appwrite.io/docs/permissions) for more info.
682-
#
683-
# @param [String] user_id User ID.
684-
# @param [Array] labels Array of user labels. Replaces the previous labels. Maximum of 1000 labels are allowed, each up to 36 alphanumeric characters long.
685-
#
686-
# @return [User]
687-
def update_labels(user_id:, labels:)
688-
api_path = '/users/{userId}/labels'
689-
.gsub('{userId}', user_id)
690-
691-
if user_id.nil?
692-
raise Appwrite::Exception.new('Missing required parameter: "userId"')
693-
end
694-
695-
if labels.nil?
696-
raise Appwrite::Exception.new('Missing required parameter: "labels"')
697-
end
698-
699-
api_params = {
700-
labels: labels,
701-
}
702-
703-
api_headers = {
704-
"content-type": 'application/json',
705-
}
706-
707-
@client.call(
708-
method: 'PUT',
709-
path: api_path,
710-
headers: api_headers,
711-
params: api_params,
712-
response_type: Models::User
713-
)
714-
end
715-
716676
# Get the user activity logs list by its unique ID.
717677
#
718678
# @param [String] user_id User ID.

0 commit comments

Comments
 (0)