mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
regenerate sdk examples
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user