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,5 +1,6 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.functions import Functions
|
||||
from appwrite.enums import
|
||||
|
||||
client = Client()
|
||||
client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
|
||||
@@ -13,6 +14,7 @@ result = functions.create_template_deployment(
|
||||
repository = '<REPOSITORY>',
|
||||
owner = '<OWNER>',
|
||||
root_directory = '<ROOT_DIRECTORY>',
|
||||
version = '<VERSION>',
|
||||
type = .COMMIT,
|
||||
reference = '<REFERENCE>',
|
||||
activate = False # optional
|
||||
)
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.sites import Sites
|
||||
from appwrite.enums import
|
||||
|
||||
client = Client()
|
||||
client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
|
||||
@@ -13,6 +14,7 @@ result = sites.create_template_deployment(
|
||||
repository = '<REPOSITORY>',
|
||||
owner = '<OWNER>',
|
||||
root_directory = '<ROOT_DIRECTORY>',
|
||||
version = '<VERSION>',
|
||||
type = .BRANCH,
|
||||
reference = '<REFERENCE>',
|
||||
activate = False # optional
|
||||
)
|
||||
|
||||
@@ -20,5 +20,6 @@ result = storage.create_bucket(
|
||||
allowed_file_extensions = [], # optional
|
||||
compression = .NONE, # optional
|
||||
encryption = False, # optional
|
||||
antivirus = False # optional
|
||||
antivirus = False, # optional
|
||||
transformations = False # optional
|
||||
)
|
||||
|
||||
@@ -20,5 +20,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