fix: hide services from server/client sdks

This commit is contained in:
Torsten Dittmann
2023-08-30 13:28:43 +02:00
parent 17248b38de
commit e507fb6715
130 changed files with 18 additions and 1921 deletions
@@ -1,14 +0,0 @@
from appwrite.client import Client
from appwrite.services.project import Project
client = Client()
(client
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
)
project = Project(client)
result = project.create_variable('[KEY]', '[VALUE]')
@@ -1,14 +0,0 @@
from appwrite.client import Client
from appwrite.services.project import Project
client = Client()
(client
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
)
project = Project(client)
result = project.delete_variable('[VARIABLE_ID]')
@@ -1,14 +0,0 @@
from appwrite.client import Client
from appwrite.services.project import Project
client = Client()
(client
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
)
project = Project(client)
result = project.get_variable('[VARIABLE_ID]')
@@ -1,14 +0,0 @@
from appwrite.client import Client
from appwrite.services.project import Project
client = Client()
(client
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
)
project = Project(client)
result = project.list_variables()
@@ -1,14 +0,0 @@
from appwrite.client import Client
from appwrite.services.project import Project
client = Client()
(client
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
)
project = Project(client)
result = project.update_variable('[VARIABLE_ID]', '[KEY]')
@@ -1,14 +0,0 @@
from appwrite.client import Client
from appwrite.services.proxy import Proxy
client = Client()
(client
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
)
proxy = Proxy(client)
result = proxy.create_rule('', 'api')
@@ -1,14 +0,0 @@
from appwrite.client import Client
from appwrite.services.proxy import Proxy
client = Client()
(client
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
)
proxy = Proxy(client)
result = proxy.delete_rule('[RULE_ID]')
@@ -1,14 +0,0 @@
from appwrite.client import Client
from appwrite.services.proxy import Proxy
client = Client()
(client
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
)
proxy = Proxy(client)
result = proxy.get_rule('[RULE_ID]')
@@ -1,14 +0,0 @@
from appwrite.client import Client
from appwrite.services.proxy import Proxy
client = Client()
(client
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
)
proxy = Proxy(client)
result = proxy.list_rules()
@@ -1,14 +0,0 @@
from appwrite.client import Client
from appwrite.services.proxy import Proxy
client = Client()
(client
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
)
proxy = Proxy(client)
result = proxy.update_rule_verification('[RULE_ID]')