@@ -209,49 +209,6 @@ class Functions(client: Client) : Service(client) {
209
209
)
210
210
}
211
211
212
- /* *
213
- * List function templates
214
- *
215
- * List available function templates. You can use template details in [createFunction](/docs/references/cloud/server-nodejs/functions#create) method.
216
- *
217
- * @param runtimes List of runtimes allowed for filtering function templates. Maximum of 100 runtimes are allowed.
218
- * @param useCases List of use cases allowed for filtering function templates. Maximum of 100 use cases are allowed.
219
- * @param limit Limit the number of templates returned in the response. Default limit is 25, and maximum limit is 5000.
220
- * @param offset Offset the list of returned templates. Maximum offset is 5000.
221
- * @return [io.appwrite.models.TemplateFunctionList]
222
- */
223
- @JvmOverloads
224
- @Throws(AppwriteException ::class )
225
- suspend fun listTemplates (
226
- runtimes : List <String >? = null,
227
- useCases : List <String >? = null,
228
- limit : Long? = null,
229
- offset : Long? = null,
230
- ): io.appwrite.models.TemplateFunctionList {
231
- val apiPath = " /functions/templates"
232
-
233
- val apiParams = mutableMapOf<String , Any ?>(
234
- " runtimes" to runtimes,
235
- " useCases" to useCases,
236
- " limit" to limit,
237
- " offset" to offset,
238
- )
239
- val apiHeaders = mutableMapOf (
240
- " content-type" to " application/json" ,
241
- )
242
- val converter: (Any ) -> io.appwrite.models.TemplateFunctionList = {
243
- io.appwrite.models.TemplateFunctionList .from(map = it as Map <String , Any >)
244
- }
245
- return client.call(
246
- " GET" ,
247
- apiPath,
248
- apiHeaders,
249
- apiParams,
250
- responseType = io.appwrite.models.TemplateFunctionList ::class .java,
251
- converter,
252
- )
253
- }
254
-
255
212
/* *
256
213
* Get function template
257
214
*
0 commit comments