File tree 3 files changed +0
-96
lines changed
3 files changed +0
-96
lines changed Original file line number Diff line number Diff line change @@ -211,52 +211,6 @@ open class Functions: Service {
211
211
)
212
212
}
213
213
214
- ///
215
- /// List function templates
216
- ///
217
- /// List available function templates. You can use template details in
218
- /// [createFunction](/docs/references/cloud/server-nodejs/functions#create)
219
- /// method.
220
- ///
221
- /// @param [String] runtimes
222
- /// @param [String] useCases
223
- /// @param Int limit
224
- /// @param Int offset
225
- /// @throws Exception
226
- /// @return array
227
- ///
228
- open func listTemplates(
229
- runtimes: [ String ] ? = nil ,
230
- useCases: [ String ] ? = nil ,
231
- limit: Int ? = nil ,
232
- offset: Int ? = nil
233
- ) async throws -> AppwriteModels . TemplateFunctionList {
234
- let apiPath : String = " /functions/templates "
235
-
236
- let apiParams : [ String : Any ? ] = [
237
- " runtimes " : runtimes,
238
- " useCases " : useCases,
239
- " limit " : limit,
240
- " offset " : offset
241
- ]
242
-
243
- let apiHeaders : [ String : String ] = [
244
- " content-type " : " application/json "
245
- ]
246
-
247
- let converter : ( Any ) -> AppwriteModels . TemplateFunctionList = { response in
248
- return AppwriteModels . TemplateFunctionList. from ( map: response as! [ String : Any ] )
249
- }
250
-
251
- return try await client. call (
252
- method: " GET " ,
253
- path: apiPath,
254
- headers: apiHeaders,
255
- params: apiParams,
256
- converter: converter
257
- )
258
- }
259
-
260
214
///
261
215
/// Get function template
262
216
///
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments