mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Update SDK generator and regenerate Java/Kotlin documentation examples
Updated SDK generator to fix Java examples Kotlin syntax issues and regenerated all affected documentation examples across multiple SDK versions.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.functions import Functions
|
||||
from appwrite.enums import
|
||||
from appwrite.enums import TemplateReferenceType
|
||||
|
||||
client = Client()
|
||||
client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
|
||||
@@ -14,7 +14,7 @@ result = functions.create_template_deployment(
|
||||
repository = '<REPOSITORY>',
|
||||
owner = '<OWNER>',
|
||||
root_directory = '<ROOT_DIRECTORY>',
|
||||
type = .COMMIT,
|
||||
type = TemplateReferenceType.COMMIT,
|
||||
reference = '<REFERENCE>',
|
||||
activate = False # optional
|
||||
)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.functions import Functions
|
||||
from appwrite.enums import VCSDeploymentType
|
||||
from appwrite.enums import VCSReferenceType
|
||||
|
||||
client = Client()
|
||||
client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
|
||||
@@ -11,7 +11,7 @@ functions = Functions(client)
|
||||
|
||||
result = functions.create_vcs_deployment(
|
||||
function_id = '<FUNCTION_ID>',
|
||||
type = VCSDeploymentType.BRANCH,
|
||||
type = VCSReferenceType.BRANCH,
|
||||
reference = '<REFERENCE>',
|
||||
activate = False # optional
|
||||
)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.sites import Sites
|
||||
from appwrite.enums import
|
||||
from appwrite.enums import TemplateReferenceType
|
||||
|
||||
client = Client()
|
||||
client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
|
||||
@@ -14,7 +14,7 @@ result = sites.create_template_deployment(
|
||||
repository = '<REPOSITORY>',
|
||||
owner = '<OWNER>',
|
||||
root_directory = '<ROOT_DIRECTORY>',
|
||||
type = .BRANCH,
|
||||
type = TemplateReferenceType.BRANCH,
|
||||
reference = '<REFERENCE>',
|
||||
activate = False # optional
|
||||
)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.sites import Sites
|
||||
from appwrite.enums import VCSDeploymentType
|
||||
from appwrite.enums import VCSReferenceType
|
||||
|
||||
client = Client()
|
||||
client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
|
||||
@@ -11,7 +11,7 @@ sites = Sites(client)
|
||||
|
||||
result = sites.create_vcs_deployment(
|
||||
site_id = '<SITE_ID>',
|
||||
type = VCSDeploymentType.BRANCH,
|
||||
type = VCSReferenceType.BRANCH,
|
||||
reference = '<REFERENCE>',
|
||||
activate = False # optional
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user