@@ -8,70 +8,6 @@ import AppwriteModels
8
8
/// The Functions Service allows you view, create and manage your Cloud Functions.
9
9
open class Functions : Service {
10
10
11
- ///
12
- /// Get function template
13
- ///
14
- /// Get a function template using ID. You can use template details in
15
- /// [createFunction](/docs/references/cloud/server-nodejs/functions#create)
16
- /// method.
17
- ///
18
- /// @param String templateId
19
- /// @throws Exception
20
- /// @return array
21
- ///
22
- open func getTemplate(
23
- templateId: String
24
- ) async throws -> AppwriteModels . TemplateFunction {
25
- let apiPath : String = " /functions/templates/{templateId} "
26
- . replacingOccurrences ( of: " {templateId} " , with: templateId)
27
-
28
- let apiParams : [ String : Any ] = [ : ]
29
-
30
- let apiHeaders : [ String : String ] = [
31
- " content-type " : " application/json "
32
- ]
33
-
34
- let converter : ( Any ) -> AppwriteModels . TemplateFunction = { response in
35
- return AppwriteModels . TemplateFunction. from ( map: response as! [ String : Any ] )
36
- }
37
-
38
- return try await client. call (
39
- method: " GET " ,
40
- path: apiPath,
41
- headers: apiHeaders,
42
- params: apiParams,
43
- converter: converter
44
- )
45
- }
46
-
47
- ///
48
- /// Download deployment
49
- ///
50
- /// Get a Deployment's contents by its unique ID. This endpoint supports range
51
- /// requests for partial or streaming file download.
52
- ///
53
- /// @param String functionId
54
- /// @param String deploymentId
55
- /// @throws Exception
56
- /// @return array
57
- ///
58
- open func getDeploymentDownload(
59
- functionId: String ,
60
- deploymentId: String
61
- ) async throws -> ByteBuffer {
62
- let apiPath : String = " /functions/{functionId}/deployments/{deploymentId}/download "
63
- . replacingOccurrences ( of: " {functionId} " , with: functionId)
64
- . replacingOccurrences ( of: " {deploymentId} " , with: deploymentId)
65
-
66
- let apiParams : [ String : Any ] = [ : ]
67
-
68
- return try await client. call (
69
- method: " GET " ,
70
- path: apiPath,
71
- params: apiParams
72
- )
73
- }
74
-
75
11
///
76
12
/// List executions
77
13
///
0 commit comments