File tree Expand file tree Collapse file tree 3 files changed +0
-96
lines changed Expand file tree Collapse file tree 3 files changed +0
-96
lines changed Original file line number Diff line number Diff line change @@ -8,52 +8,6 @@ import AppwriteModels
88/// The Functions Service allows you view, create and manage your Cloud Functions.
99open class Functions : Service {
1010
11- ///
12- /// List function templates
13- ///
14- /// List available function templates. You can use template details in
15- /// [createFunction](/docs/references/cloud/server-nodejs/functions#create)
16- /// method.
17- ///
18- /// @param [String] runtimes
19- /// @param [String] useCases
20- /// @param Int limit
21- /// @param Int offset
22- /// @throws Exception
23- /// @return array
24- ///
25- open func listTemplates(
26- runtimes: [ String ] ? = nil ,
27- useCases: [ String ] ? = nil ,
28- limit: Int ? = nil ,
29- offset: Int ? = nil
30- ) async throws -> AppwriteModels . TemplateFunctionList {
31- let apiPath : String = " /functions/templates "
32-
33- let apiParams : [ String : Any ? ] = [
34- " runtimes " : runtimes,
35- " useCases " : useCases,
36- " limit " : limit,
37- " offset " : offset
38- ]
39-
40- let apiHeaders : [ String : String ] = [
41- " content-type " : " application/json "
42- ]
43-
44- let converter : ( Any ) -> AppwriteModels . TemplateFunctionList = { response in
45- return AppwriteModels . TemplateFunctionList. from ( map: response as! [ String : Any ] )
46- }
47-
48- return try await client. call (
49- method: " GET " ,
50- path: apiPath,
51- headers: apiHeaders,
52- params: apiParams,
53- converter: converter
54- )
55- }
56-
5711 ///
5812 /// Get function template
5913 ///
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments