regenerate sdk examples

This commit is contained in:
Chirag Aggarwal
2025-11-18 09:53:55 +05:30
parent f9274dad3f
commit 39c5b6c4d0
78 changed files with 144 additions and 74 deletions
@@ -1,6 +1,7 @@
require 'appwrite'
include Appwrite
include Appwrite::Enums
client = Client.new
.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
@@ -14,6 +15,7 @@ result = functions.create_template_deployment(
repository: '<REPOSITORY>',
owner: '<OWNER>',
root_directory: '<ROOT_DIRECTORY>',
version: '<VERSION>',
type: ::COMMIT,
reference: '<REFERENCE>',
activate: false # optional
)
@@ -1,6 +1,7 @@
require 'appwrite'
include Appwrite
include Appwrite::Enums
client = Client.new
.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
@@ -14,6 +15,7 @@ result = sites.create_template_deployment(
repository: '<REPOSITORY>',
owner: '<OWNER>',
root_directory: '<ROOT_DIRECTORY>',
version: '<VERSION>',
type: ::BRANCH,
reference: '<REFERENCE>',
activate: false # optional
)
@@ -21,5 +21,6 @@ result = storage.create_bucket(
allowed_file_extensions: [], # optional
compression: ::NONE, # optional
encryption: false, # optional
antivirus: false # optional
antivirus: false, # optional
transformations: false # optional
)
@@ -21,5 +21,6 @@ result = storage.update_bucket(
allowed_file_extensions: [], # optional
compression: ::NONE, # optional
encryption: false, # optional
antivirus: false # optional
antivirus: false, # optional
transformations: false # optional
)