Skip to content

Commit ff1e187

Browse files
committed
chore: updates for appwrite 1.6.x
1 parent cd3e817 commit ff1e187

File tree

6 files changed

+0
-341
lines changed

6 files changed

+0
-341
lines changed

Sources/Appwrite/Services/Functions.swift

Lines changed: 0 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -8,70 +8,6 @@ import AppwriteModels
88
/// The Functions Service allows you view, create and manage your Cloud Functions.
99
open class Functions: Service {
1010

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-
7511
///
7612
/// List executions
7713
///

Sources/AppwriteModels/TemplateFunction.swift

Lines changed: 0 additions & 140 deletions
This file was deleted.

Sources/AppwriteModels/TemplateRuntime.swift

Lines changed: 0 additions & 49 deletions
This file was deleted.

Sources/AppwriteModels/TemplateVariable.swift

Lines changed: 0 additions & 63 deletions
This file was deleted.

docs/examples/functions/get-deployment-download.md

Lines changed: 0 additions & 13 deletions
This file was deleted.

docs/examples/functions/get-template.md

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)