mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Updated SDKs
This commit is contained in:
@@ -114,23 +114,6 @@ public class Functions extends Service {
|
||||
return client.call("DELETE", path, headers, params);
|
||||
}
|
||||
|
||||
/// Update Function Active Tag
|
||||
public Call updateTag(String functionId, String active) {
|
||||
final String path = "/functions/{functionId}/active".replace("{functionId}", functionId);
|
||||
|
||||
final Map<String, Object> params = Map.ofEntries(
|
||||
entry("active", active)
|
||||
);
|
||||
|
||||
|
||||
|
||||
final Map<String, String> headers = Map.ofEntries(
|
||||
entry("content-type", "application/json")
|
||||
);
|
||||
|
||||
return client.call("PATCH", path, headers, params);
|
||||
}
|
||||
|
||||
/// List Executions
|
||||
public Call listExecutions(String functionId, String search, int limit, int offset, OrderType orderType) {
|
||||
final String path = "/functions/{functionId}/executions".replace("{functionId}", functionId);
|
||||
@@ -184,6 +167,23 @@ public class Functions extends Service {
|
||||
return client.call("GET", path, headers, params);
|
||||
}
|
||||
|
||||
/// Update Function Tag
|
||||
public Call updateTag(String functionId, String tag) {
|
||||
final String path = "/functions/{functionId}/tag".replace("{functionId}", functionId);
|
||||
|
||||
final Map<String, Object> params = Map.ofEntries(
|
||||
entry("tag", tag)
|
||||
);
|
||||
|
||||
|
||||
|
||||
final Map<String, String> headers = Map.ofEntries(
|
||||
entry("content-type", "application/json")
|
||||
);
|
||||
|
||||
return client.call("PATCH", path, headers, params);
|
||||
}
|
||||
|
||||
/// List Tags
|
||||
public Call listTags(String functionId, String search, int limit, int offset, OrderType orderType) {
|
||||
final String path = "/functions/{functionId}/tags".replace("{functionId}", functionId);
|
||||
|
||||
Reference in New Issue
Block a user