Skip to content

Commit 4aa1cbe

Browse files
committed
chore: updates for appwrite 1.6.x
1 parent 05e1e93 commit 4aa1cbe

File tree

7 files changed

+1
-250
lines changed

7 files changed

+1
-250
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ include Appwrite
55
client = Client.new
66
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
77
.set_project('<YOUR_PROJECT_ID>') # Your project ID
8-
.set_session('') # The user session to authenticate with
8+
.set_key('<YOUR_API_KEY>') # Your secret API key
99

1010
functions = Functions.new(client)
1111

docs/examples/functions/get-template.md

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

lib/appwrite.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,6 @@
7777
require_relative 'appwrite/models/team'
7878
require_relative 'appwrite/models/membership'
7979
require_relative 'appwrite/models/function'
80-
require_relative 'appwrite/models/template_function'
81-
require_relative 'appwrite/models/template_runtime'
82-
require_relative 'appwrite/models/template_variable'
8380
require_relative 'appwrite/models/runtime'
8481
require_relative 'appwrite/models/deployment'
8582
require_relative 'appwrite/models/execution'

lib/appwrite/models/template_function.rb

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

lib/appwrite/models/template_runtime.rb

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

lib/appwrite/models/template_variable.rb

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

lib/appwrite/services/functions.rb

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -168,38 +168,6 @@ def list_specifications()
168168
end
169169

170170

171-
# Get a function template using ID. You can use template details in
172-
# [createFunction](/docs/references/cloud/server-nodejs/functions#create)
173-
# method.
174-
#
175-
# @param [String] template_id Template ID.
176-
#
177-
# @return [TemplateFunction]
178-
def get_template(template_id:)
179-
api_path = '/functions/templates/{templateId}'
180-
.gsub('{templateId}', template_id)
181-
182-
if template_id.nil?
183-
raise Appwrite::Exception.new('Missing required parameter: "templateId"')
184-
end
185-
186-
api_params = {
187-
}
188-
189-
api_headers = {
190-
"content-type": 'application/json',
191-
}
192-
193-
@client.call(
194-
method: 'GET',
195-
path: api_path,
196-
headers: api_headers,
197-
params: api_params,
198-
response_type: Models::TemplateFunction
199-
)
200-
end
201-
202-
203171
# Get a function by its unique ID.
204172
#
205173
# @param [String] function_id Function ID.

0 commit comments

Comments
 (0)