diff --git a/docs/examples/0.12.x/console-web/examples/functions/create.md b/docs/examples/0.12.x/console-web/examples/functions/create.md index 33a124cc77..9f771b5a0c 100644 --- a/docs/examples/0.12.x/console-web/examples/functions/create.md +++ b/docs/examples/0.12.x/console-web/examples/functions/create.md @@ -5,7 +5,7 @@ sdk .setProject('5df5acd0d48c2') // Your project ID ; -let promise = sdk.functions.create('', '[NAME]', [], 'dotnet-5.0'); +let promise = sdk.functions.create('', '[NAME]', [], 'node-14.5'); promise.then(function (response) { console.log(response); // Success diff --git a/docs/examples/0.12.x/console-web/examples/health/get-antivirus.md b/docs/examples/0.12.x/console-web/examples/health/get-antivirus.md new file mode 100644 index 0000000000..71e16bd903 --- /dev/null +++ b/docs/examples/0.12.x/console-web/examples/health/get-antivirus.md @@ -0,0 +1,14 @@ +const sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.health.getAntivirus(); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.12.x/server-cli/examples/database/create-boolean-attribute.md b/docs/examples/0.12.x/server-cli/examples/database/create-boolean-attribute.md index e08e8890b7..d892a31390 100644 --- a/docs/examples/0.12.x/server-cli/examples/database/create-boolean-attribute.md +++ b/docs/examples/0.12.x/server-cli/examples/database/create-boolean-attribute.md @@ -1,6 +1,6 @@ appwrite database createBooleanAttribute \ --collectionId="[COLLECTION_ID]" \ - --attributeId="" \ + --key="" \ --required="" \ --default="" \ --array="" diff --git a/docs/examples/0.12.x/server-cli/examples/database/create-email-attribute.md b/docs/examples/0.12.x/server-cli/examples/database/create-email-attribute.md index dd12ff069e..1047774cde 100644 --- a/docs/examples/0.12.x/server-cli/examples/database/create-email-attribute.md +++ b/docs/examples/0.12.x/server-cli/examples/database/create-email-attribute.md @@ -1,6 +1,6 @@ appwrite database createEmailAttribute \ --collectionId="[COLLECTION_ID]" \ - --attributeId="" \ + --key="" \ --required="" \ --default="email@example.com" \ --array="" diff --git a/docs/examples/0.12.x/server-cli/examples/database/create-enum-attribute.md b/docs/examples/0.12.x/server-cli/examples/database/create-enum-attribute.md index 6a9fe2b284..72f1b9c472 100644 --- a/docs/examples/0.12.x/server-cli/examples/database/create-enum-attribute.md +++ b/docs/examples/0.12.x/server-cli/examples/database/create-enum-attribute.md @@ -1,6 +1,6 @@ appwrite database createEnumAttribute \ --collectionId="[COLLECTION_ID]" \ - --attributeId="" \ + --key="" \ --elements="" \ --required="" \ --default="[DEFAULT]" \ diff --git a/docs/examples/0.12.x/server-cli/examples/database/create-float-attribute.md b/docs/examples/0.12.x/server-cli/examples/database/create-float-attribute.md index 23ab814805..abc4a5541b 100644 --- a/docs/examples/0.12.x/server-cli/examples/database/create-float-attribute.md +++ b/docs/examples/0.12.x/server-cli/examples/database/create-float-attribute.md @@ -1,6 +1,6 @@ appwrite database createFloatAttribute \ --collectionId="[COLLECTION_ID]" \ - --attributeId="" \ + --key="" \ --required="" \ --min="" \ --max="" \ diff --git a/docs/examples/0.12.x/server-cli/examples/database/create-index.md b/docs/examples/0.12.x/server-cli/examples/database/create-index.md index c6eb4bbf7e..8d66bb25c9 100644 --- a/docs/examples/0.12.x/server-cli/examples/database/create-index.md +++ b/docs/examples/0.12.x/server-cli/examples/database/create-index.md @@ -1,6 +1,6 @@ appwrite database createIndex \ --collectionId="[COLLECTION_ID]" \ - --indexId="" \ + --key="" \ --type="key" \ --attributes="" \ --orders="" diff --git a/docs/examples/0.12.x/server-cli/examples/database/create-integer-attribute.md b/docs/examples/0.12.x/server-cli/examples/database/create-integer-attribute.md index 9671acae0a..73abc3f69a 100644 --- a/docs/examples/0.12.x/server-cli/examples/database/create-integer-attribute.md +++ b/docs/examples/0.12.x/server-cli/examples/database/create-integer-attribute.md @@ -1,6 +1,6 @@ appwrite database createIntegerAttribute \ --collectionId="[COLLECTION_ID]" \ - --attributeId="" \ + --key="" \ --required="" \ --min="" \ --max="" \ diff --git a/docs/examples/0.12.x/server-cli/examples/database/create-ip-attribute.md b/docs/examples/0.12.x/server-cli/examples/database/create-ip-attribute.md index 2787126906..d3dd96ef30 100644 --- a/docs/examples/0.12.x/server-cli/examples/database/create-ip-attribute.md +++ b/docs/examples/0.12.x/server-cli/examples/database/create-ip-attribute.md @@ -1,6 +1,6 @@ appwrite database createIpAttribute \ --collectionId="[COLLECTION_ID]" \ - --attributeId="" \ + --key="" \ --required="" \ --default="" \ --array="" diff --git a/docs/examples/0.12.x/server-cli/examples/database/create-string-attribute.md b/docs/examples/0.12.x/server-cli/examples/database/create-string-attribute.md index fd49484710..6c0eaa35b8 100644 --- a/docs/examples/0.12.x/server-cli/examples/database/create-string-attribute.md +++ b/docs/examples/0.12.x/server-cli/examples/database/create-string-attribute.md @@ -1,6 +1,6 @@ appwrite database createStringAttribute \ --collectionId="[COLLECTION_ID]" \ - --attributeId="" \ + --key="" \ --size="1" \ --required="" \ --default="[DEFAULT]" \ diff --git a/docs/examples/0.12.x/server-cli/examples/database/create-url-attribute.md b/docs/examples/0.12.x/server-cli/examples/database/create-url-attribute.md index f6f3a694fe..bc965d4024 100644 --- a/docs/examples/0.12.x/server-cli/examples/database/create-url-attribute.md +++ b/docs/examples/0.12.x/server-cli/examples/database/create-url-attribute.md @@ -1,6 +1,6 @@ appwrite database createUrlAttribute \ --collectionId="[COLLECTION_ID]" \ - --attributeId="" \ + --key="" \ --required="" \ --default="https://example.com" \ --array="" diff --git a/docs/examples/0.12.x/server-cli/examples/database/delete-attribute.md b/docs/examples/0.12.x/server-cli/examples/database/delete-attribute.md index 80a2519bbd..1a4609417b 100644 --- a/docs/examples/0.12.x/server-cli/examples/database/delete-attribute.md +++ b/docs/examples/0.12.x/server-cli/examples/database/delete-attribute.md @@ -1,3 +1,3 @@ appwrite database deleteAttribute \ --collectionId="[COLLECTION_ID]" \ - --attributeId="" + --key="" diff --git a/docs/examples/0.12.x/server-cli/examples/database/delete-index.md b/docs/examples/0.12.x/server-cli/examples/database/delete-index.md index a71721390b..cd9db998b5 100644 --- a/docs/examples/0.12.x/server-cli/examples/database/delete-index.md +++ b/docs/examples/0.12.x/server-cli/examples/database/delete-index.md @@ -1,3 +1,3 @@ appwrite database deleteIndex \ --collectionId="[COLLECTION_ID]" \ - --indexId="" + --key="" diff --git a/docs/examples/0.12.x/server-cli/examples/database/get-attribute.md b/docs/examples/0.12.x/server-cli/examples/database/get-attribute.md index 97952eef45..d69f1e6d3e 100644 --- a/docs/examples/0.12.x/server-cli/examples/database/get-attribute.md +++ b/docs/examples/0.12.x/server-cli/examples/database/get-attribute.md @@ -1,3 +1,3 @@ appwrite database getAttribute \ --collectionId="[COLLECTION_ID]" \ - --attributeId="" + --key="" diff --git a/docs/examples/0.12.x/server-cli/examples/database/get-index.md b/docs/examples/0.12.x/server-cli/examples/database/get-index.md index 2ae6867dc3..e1440974c5 100644 --- a/docs/examples/0.12.x/server-cli/examples/database/get-index.md +++ b/docs/examples/0.12.x/server-cli/examples/database/get-index.md @@ -1,3 +1,3 @@ appwrite database getIndex \ --collectionId="[COLLECTION_ID]" \ - --indexId="" + --key="" diff --git a/docs/examples/0.12.x/server-cli/examples/database/update-collection.md b/docs/examples/0.12.x/server-cli/examples/database/update-collection.md index c7ac394887..1c0670df4f 100644 --- a/docs/examples/0.12.x/server-cli/examples/database/update-collection.md +++ b/docs/examples/0.12.x/server-cli/examples/database/update-collection.md @@ -3,4 +3,5 @@ appwrite database updateCollection \ --name="[NAME]" \ --permission="document" \ --read="["role:all"]" \ - --write="["role:all"]" + --write="["role:all"]" \ + --enabled="" diff --git a/docs/examples/0.12.x/server-cli/examples/functions/create.md b/docs/examples/0.12.x/server-cli/examples/functions/create.md index a1a1f81929..104272583d 100644 --- a/docs/examples/0.12.x/server-cli/examples/functions/create.md +++ b/docs/examples/0.12.x/server-cli/examples/functions/create.md @@ -2,7 +2,7 @@ appwrite functions create \ --functionId="" \ --name="[NAME]" \ --execute="" \ - --runtime="dotnet-5.0" \ + --runtime="node-14.5" \ --vars="{}" \ --events="" \ --schedule="" \ diff --git a/docs/examples/0.12.x/server-cli/examples/functions/list-runtimes.md b/docs/examples/0.12.x/server-cli/examples/functions/list-runtimes.md new file mode 100644 index 0000000000..15dc019c44 --- /dev/null +++ b/docs/examples/0.12.x/server-cli/examples/functions/list-runtimes.md @@ -0,0 +1 @@ +appwrite functions listRuntimes diff --git a/docs/examples/0.12.x/server-cli/examples/health/get-antivirus.md b/docs/examples/0.12.x/server-cli/examples/health/get-antivirus.md new file mode 100644 index 0000000000..96dd7e78b2 --- /dev/null +++ b/docs/examples/0.12.x/server-cli/examples/health/get-antivirus.md @@ -0,0 +1 @@ +appwrite health getAntivirus diff --git a/docs/examples/0.12.x/server-cli/examples/storage/get-file-preview.md b/docs/examples/0.12.x/server-cli/examples/storage/get-file-preview.md index d87763bcf2..ed25491e20 100644 --- a/docs/examples/0.12.x/server-cli/examples/storage/get-file-preview.md +++ b/docs/examples/0.12.x/server-cli/examples/storage/get-file-preview.md @@ -8,6 +8,6 @@ appwrite storage getFilePreview \ --borderColor="" \ --borderRadius="0" \ --opacity="0" \ - --rotation="0" \ + --rotation="-360" \ --background="" \ --output="jpg" diff --git a/docs/examples/0.12.x/server-dart/examples/database/create-boolean-attribute.md b/docs/examples/0.12.x/server-dart/examples/database/create-boolean-attribute.md index 3c4fcdcfc6..81e66e1ab6 100644 --- a/docs/examples/0.12.x/server-dart/examples/database/create-boolean-attribute.md +++ b/docs/examples/0.12.x/server-dart/examples/database/create-boolean-attribute.md @@ -12,7 +12,7 @@ void main() { // Init SDK Future result = database.createBooleanAttribute( collectionId: '[COLLECTION_ID]', - attributeId: '', + key: '', required: false, ); diff --git a/docs/examples/0.12.x/server-dart/examples/database/create-email-attribute.md b/docs/examples/0.12.x/server-dart/examples/database/create-email-attribute.md index 974d0d3fed..d0eca5cc73 100644 --- a/docs/examples/0.12.x/server-dart/examples/database/create-email-attribute.md +++ b/docs/examples/0.12.x/server-dart/examples/database/create-email-attribute.md @@ -12,7 +12,7 @@ void main() { // Init SDK Future result = database.createEmailAttribute( collectionId: '[COLLECTION_ID]', - attributeId: '', + key: '', required: false, ); diff --git a/docs/examples/0.12.x/server-dart/examples/database/create-enum-attribute.md b/docs/examples/0.12.x/server-dart/examples/database/create-enum-attribute.md index 6bcd469038..d50c76efb3 100644 --- a/docs/examples/0.12.x/server-dart/examples/database/create-enum-attribute.md +++ b/docs/examples/0.12.x/server-dart/examples/database/create-enum-attribute.md @@ -12,7 +12,7 @@ void main() { // Init SDK Future result = database.createEnumAttribute( collectionId: '[COLLECTION_ID]', - attributeId: '', + key: '', elements: [], required: false, ); diff --git a/docs/examples/0.12.x/server-dart/examples/database/create-float-attribute.md b/docs/examples/0.12.x/server-dart/examples/database/create-float-attribute.md index 2d608a8fa0..5fa831b682 100644 --- a/docs/examples/0.12.x/server-dart/examples/database/create-float-attribute.md +++ b/docs/examples/0.12.x/server-dart/examples/database/create-float-attribute.md @@ -12,7 +12,7 @@ void main() { // Init SDK Future result = database.createFloatAttribute( collectionId: '[COLLECTION_ID]', - attributeId: '', + key: '', required: false, ); diff --git a/docs/examples/0.12.x/server-dart/examples/database/create-index.md b/docs/examples/0.12.x/server-dart/examples/database/create-index.md index a00b9cb459..41b118d6af 100644 --- a/docs/examples/0.12.x/server-dart/examples/database/create-index.md +++ b/docs/examples/0.12.x/server-dart/examples/database/create-index.md @@ -12,7 +12,7 @@ void main() { // Init SDK Future result = database.createIndex( collectionId: '[COLLECTION_ID]', - indexId: '', + key: '', type: 'key', attributes: [], ); diff --git a/docs/examples/0.12.x/server-dart/examples/database/create-integer-attribute.md b/docs/examples/0.12.x/server-dart/examples/database/create-integer-attribute.md index cd68be6137..161a5c9812 100644 --- a/docs/examples/0.12.x/server-dart/examples/database/create-integer-attribute.md +++ b/docs/examples/0.12.x/server-dart/examples/database/create-integer-attribute.md @@ -12,7 +12,7 @@ void main() { // Init SDK Future result = database.createIntegerAttribute( collectionId: '[COLLECTION_ID]', - attributeId: '', + key: '', required: false, ); diff --git a/docs/examples/0.12.x/server-dart/examples/database/create-ip-attribute.md b/docs/examples/0.12.x/server-dart/examples/database/create-ip-attribute.md index bd25d5fd52..94990f9cf1 100644 --- a/docs/examples/0.12.x/server-dart/examples/database/create-ip-attribute.md +++ b/docs/examples/0.12.x/server-dart/examples/database/create-ip-attribute.md @@ -12,7 +12,7 @@ void main() { // Init SDK Future result = database.createIpAttribute( collectionId: '[COLLECTION_ID]', - attributeId: '', + key: '', required: false, ); diff --git a/docs/examples/0.12.x/server-dart/examples/database/create-string-attribute.md b/docs/examples/0.12.x/server-dart/examples/database/create-string-attribute.md index b0d3636816..e9119e11c0 100644 --- a/docs/examples/0.12.x/server-dart/examples/database/create-string-attribute.md +++ b/docs/examples/0.12.x/server-dart/examples/database/create-string-attribute.md @@ -12,7 +12,7 @@ void main() { // Init SDK Future result = database.createStringAttribute( collectionId: '[COLLECTION_ID]', - attributeId: '', + key: '', size: 1, required: false, ); diff --git a/docs/examples/0.12.x/server-dart/examples/database/create-url-attribute.md b/docs/examples/0.12.x/server-dart/examples/database/create-url-attribute.md index 830fb6d34d..3bea728890 100644 --- a/docs/examples/0.12.x/server-dart/examples/database/create-url-attribute.md +++ b/docs/examples/0.12.x/server-dart/examples/database/create-url-attribute.md @@ -12,7 +12,7 @@ void main() { // Init SDK Future result = database.createUrlAttribute( collectionId: '[COLLECTION_ID]', - attributeId: '', + key: '', required: false, ); diff --git a/docs/examples/0.12.x/server-dart/examples/database/delete-attribute.md b/docs/examples/0.12.x/server-dart/examples/database/delete-attribute.md index 61ffacae40..50d5f345c7 100644 --- a/docs/examples/0.12.x/server-dart/examples/database/delete-attribute.md +++ b/docs/examples/0.12.x/server-dart/examples/database/delete-attribute.md @@ -12,7 +12,7 @@ void main() { // Init SDK Future result = database.deleteAttribute( collectionId: '[COLLECTION_ID]', - attributeId: '', + key: '', ); result diff --git a/docs/examples/0.12.x/server-dart/examples/database/delete-index.md b/docs/examples/0.12.x/server-dart/examples/database/delete-index.md index d3d7dc974f..fe6cd43f11 100644 --- a/docs/examples/0.12.x/server-dart/examples/database/delete-index.md +++ b/docs/examples/0.12.x/server-dart/examples/database/delete-index.md @@ -12,7 +12,7 @@ void main() { // Init SDK Future result = database.deleteIndex( collectionId: '[COLLECTION_ID]', - indexId: '', + key: '', ); result diff --git a/docs/examples/0.12.x/server-dart/examples/database/get-attribute.md b/docs/examples/0.12.x/server-dart/examples/database/get-attribute.md index 43031a7404..41a0fbee21 100644 --- a/docs/examples/0.12.x/server-dart/examples/database/get-attribute.md +++ b/docs/examples/0.12.x/server-dart/examples/database/get-attribute.md @@ -12,7 +12,7 @@ void main() { // Init SDK Future result = database.getAttribute( collectionId: '[COLLECTION_ID]', - attributeId: '', + key: '', ); result diff --git a/docs/examples/0.12.x/server-dart/examples/database/get-index.md b/docs/examples/0.12.x/server-dart/examples/database/get-index.md index 9b4abee0d6..736e860f30 100644 --- a/docs/examples/0.12.x/server-dart/examples/database/get-index.md +++ b/docs/examples/0.12.x/server-dart/examples/database/get-index.md @@ -12,7 +12,7 @@ void main() { // Init SDK Future result = database.getIndex( collectionId: '[COLLECTION_ID]', - indexId: '', + key: '', ); result diff --git a/docs/examples/0.12.x/server-dart/examples/functions/create.md b/docs/examples/0.12.x/server-dart/examples/functions/create.md index 6e2a53989b..9b123a500e 100644 --- a/docs/examples/0.12.x/server-dart/examples/functions/create.md +++ b/docs/examples/0.12.x/server-dart/examples/functions/create.md @@ -14,7 +14,7 @@ void main() { // Init SDK functionId: '', name: '[NAME]', execute: [], - runtime: 'dotnet-5.0', + runtime: 'node-14.5', ); result diff --git a/docs/examples/0.12.x/server-dart/examples/functions/list-runtimes.md b/docs/examples/0.12.x/server-dart/examples/functions/list-runtimes.md new file mode 100644 index 0000000000..da474ff727 --- /dev/null +++ b/docs/examples/0.12.x/server-dart/examples/functions/list-runtimes.md @@ -0,0 +1,21 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Functions functions = Functions(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ; + + Future result = functions.listRuntimes(); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.12.x/server-dart/examples/health/get-antivirus.md b/docs/examples/0.12.x/server-dart/examples/health/get-antivirus.md new file mode 100644 index 0000000000..974a29bd1f --- /dev/null +++ b/docs/examples/0.12.x/server-dart/examples/health/get-antivirus.md @@ -0,0 +1,21 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Health health = Health(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ; + + Future result = health.getAntivirus(); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.12.x/server-deno/examples/functions/create.md b/docs/examples/0.12.x/server-deno/examples/functions/create.md index f13d3fdd4d..c3fda98617 100644 --- a/docs/examples/0.12.x/server-deno/examples/functions/create.md +++ b/docs/examples/0.12.x/server-deno/examples/functions/create.md @@ -12,7 +12,7 @@ client ; -let promise = functions.create('', '[NAME]', [], 'dotnet-5.0'); +let promise = functions.create('', '[NAME]', [], 'node-14.5'); promise.then(function (response) { console.log(response); diff --git a/docs/examples/0.12.x/server-deno/examples/functions/list-runtimes.md b/docs/examples/0.12.x/server-deno/examples/functions/list-runtimes.md new file mode 100644 index 0000000000..7ae999312a --- /dev/null +++ b/docs/examples/0.12.x/server-deno/examples/functions/list-runtimes.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let functions = new sdk.Functions(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + + +let promise = functions.listRuntimes(); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.12.x/server-deno/examples/health/get-antivirus.md b/docs/examples/0.12.x/server-deno/examples/health/get-antivirus.md new file mode 100644 index 0000000000..027b145d8f --- /dev/null +++ b/docs/examples/0.12.x/server-deno/examples/health/get-antivirus.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let health = new sdk.Health(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + + +let promise = health.getAntivirus(); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.12.x/server-kotlin/java/database/create-boolean-attribute.md b/docs/examples/0.12.x/server-kotlin/java/database/create-boolean-attribute.md index 16d006a71c..1ab665e341 100644 --- a/docs/examples/0.12.x/server-kotlin/java/database/create-boolean-attribute.md +++ b/docs/examples/0.12.x/server-kotlin/java/database/create-boolean-attribute.md @@ -10,7 +10,7 @@ public void main() { Database database = new Database(client); database.createBooleanAttribute( collectionId = "[COLLECTION_ID]", - attributeId = "", + key = "", required = false, new Continuation() { @NotNull diff --git a/docs/examples/0.12.x/server-kotlin/java/database/create-email-attribute.md b/docs/examples/0.12.x/server-kotlin/java/database/create-email-attribute.md index dc64d6b949..82d5b3f891 100644 --- a/docs/examples/0.12.x/server-kotlin/java/database/create-email-attribute.md +++ b/docs/examples/0.12.x/server-kotlin/java/database/create-email-attribute.md @@ -10,7 +10,7 @@ public void main() { Database database = new Database(client); database.createEmailAttribute( collectionId = "[COLLECTION_ID]", - attributeId = "", + key = "", required = false, new Continuation() { @NotNull diff --git a/docs/examples/0.12.x/server-kotlin/java/database/create-enum-attribute.md b/docs/examples/0.12.x/server-kotlin/java/database/create-enum-attribute.md index 804077ccb0..37c1a760b0 100644 --- a/docs/examples/0.12.x/server-kotlin/java/database/create-enum-attribute.md +++ b/docs/examples/0.12.x/server-kotlin/java/database/create-enum-attribute.md @@ -10,7 +10,7 @@ public void main() { Database database = new Database(client); database.createEnumAttribute( collectionId = "[COLLECTION_ID]", - attributeId = "", + key = "", elements = listOf(), required = false, new Continuation() { diff --git a/docs/examples/0.12.x/server-kotlin/java/database/create-float-attribute.md b/docs/examples/0.12.x/server-kotlin/java/database/create-float-attribute.md index 91e341e611..57014cfb1c 100644 --- a/docs/examples/0.12.x/server-kotlin/java/database/create-float-attribute.md +++ b/docs/examples/0.12.x/server-kotlin/java/database/create-float-attribute.md @@ -10,7 +10,7 @@ public void main() { Database database = new Database(client); database.createFloatAttribute( collectionId = "[COLLECTION_ID]", - attributeId = "", + key = "", required = false, new Continuation() { @NotNull diff --git a/docs/examples/0.12.x/server-kotlin/java/database/create-index.md b/docs/examples/0.12.x/server-kotlin/java/database/create-index.md index af456cbf2a..fd1cbfe992 100644 --- a/docs/examples/0.12.x/server-kotlin/java/database/create-index.md +++ b/docs/examples/0.12.x/server-kotlin/java/database/create-index.md @@ -10,7 +10,7 @@ public void main() { Database database = new Database(client); database.createIndex( collectionId = "[COLLECTION_ID]", - indexId = "", + key = "", type = "key", attributes = listOf(), new Continuation() { diff --git a/docs/examples/0.12.x/server-kotlin/java/database/create-integer-attribute.md b/docs/examples/0.12.x/server-kotlin/java/database/create-integer-attribute.md index 65b090e94c..b3aef2296b 100644 --- a/docs/examples/0.12.x/server-kotlin/java/database/create-integer-attribute.md +++ b/docs/examples/0.12.x/server-kotlin/java/database/create-integer-attribute.md @@ -10,7 +10,7 @@ public void main() { Database database = new Database(client); database.createIntegerAttribute( collectionId = "[COLLECTION_ID]", - attributeId = "", + key = "", required = false, new Continuation() { @NotNull diff --git a/docs/examples/0.12.x/server-kotlin/java/database/create-ip-attribute.md b/docs/examples/0.12.x/server-kotlin/java/database/create-ip-attribute.md index a04ede5128..6cf941f05a 100644 --- a/docs/examples/0.12.x/server-kotlin/java/database/create-ip-attribute.md +++ b/docs/examples/0.12.x/server-kotlin/java/database/create-ip-attribute.md @@ -10,7 +10,7 @@ public void main() { Database database = new Database(client); database.createIpAttribute( collectionId = "[COLLECTION_ID]", - attributeId = "", + key = "", required = false, new Continuation() { @NotNull diff --git a/docs/examples/0.12.x/server-kotlin/java/database/create-string-attribute.md b/docs/examples/0.12.x/server-kotlin/java/database/create-string-attribute.md index 32f87c53cc..05492e9f76 100644 --- a/docs/examples/0.12.x/server-kotlin/java/database/create-string-attribute.md +++ b/docs/examples/0.12.x/server-kotlin/java/database/create-string-attribute.md @@ -10,7 +10,7 @@ public void main() { Database database = new Database(client); database.createStringAttribute( collectionId = "[COLLECTION_ID]", - attributeId = "", + key = "", size = 1, required = false, new Continuation() { diff --git a/docs/examples/0.12.x/server-kotlin/java/database/create-url-attribute.md b/docs/examples/0.12.x/server-kotlin/java/database/create-url-attribute.md index c08225351c..cb94279946 100644 --- a/docs/examples/0.12.x/server-kotlin/java/database/create-url-attribute.md +++ b/docs/examples/0.12.x/server-kotlin/java/database/create-url-attribute.md @@ -10,7 +10,7 @@ public void main() { Database database = new Database(client); database.createUrlAttribute( collectionId = "[COLLECTION_ID]", - attributeId = "", + key = "", required = false, new Continuation() { @NotNull diff --git a/docs/examples/0.12.x/server-kotlin/java/database/delete-attribute.md b/docs/examples/0.12.x/server-kotlin/java/database/delete-attribute.md index 0c1eb19648..46689fc559 100644 --- a/docs/examples/0.12.x/server-kotlin/java/database/delete-attribute.md +++ b/docs/examples/0.12.x/server-kotlin/java/database/delete-attribute.md @@ -10,7 +10,7 @@ public void main() { Database database = new Database(client); database.deleteAttribute( collectionId = "[COLLECTION_ID]", - attributeId = "" + key = "" new Continuation() { @NotNull @Override diff --git a/docs/examples/0.12.x/server-kotlin/java/database/delete-index.md b/docs/examples/0.12.x/server-kotlin/java/database/delete-index.md index f1e3d9c4e2..1845609def 100644 --- a/docs/examples/0.12.x/server-kotlin/java/database/delete-index.md +++ b/docs/examples/0.12.x/server-kotlin/java/database/delete-index.md @@ -10,7 +10,7 @@ public void main() { Database database = new Database(client); database.deleteIndex( collectionId = "[COLLECTION_ID]", - indexId = "" + key = "" new Continuation() { @NotNull @Override diff --git a/docs/examples/0.12.x/server-kotlin/java/database/get-attribute.md b/docs/examples/0.12.x/server-kotlin/java/database/get-attribute.md index 17dfb545b3..699e933601 100644 --- a/docs/examples/0.12.x/server-kotlin/java/database/get-attribute.md +++ b/docs/examples/0.12.x/server-kotlin/java/database/get-attribute.md @@ -10,7 +10,7 @@ public void main() { Database database = new Database(client); database.getAttribute( collectionId = "[COLLECTION_ID]", - attributeId = "" + key = "" new Continuation() { @NotNull @Override diff --git a/docs/examples/0.12.x/server-kotlin/java/database/get-index.md b/docs/examples/0.12.x/server-kotlin/java/database/get-index.md index 4ffda11d9f..5399ec431b 100644 --- a/docs/examples/0.12.x/server-kotlin/java/database/get-index.md +++ b/docs/examples/0.12.x/server-kotlin/java/database/get-index.md @@ -10,7 +10,7 @@ public void main() { Database database = new Database(client); database.getIndex( collectionId = "[COLLECTION_ID]", - indexId = "" + key = "" new Continuation() { @NotNull @Override diff --git a/docs/examples/0.12.x/server-kotlin/java/functions/create.md b/docs/examples/0.12.x/server-kotlin/java/functions/create.md index a8918286e6..7b0988bea4 100644 --- a/docs/examples/0.12.x/server-kotlin/java/functions/create.md +++ b/docs/examples/0.12.x/server-kotlin/java/functions/create.md @@ -12,7 +12,7 @@ public void main() { functionId = "", name = "[NAME]", execute = listOf(), - runtime = "dotnet-5.0", + runtime = "node-14.5", new Continuation() { @NotNull @Override diff --git a/docs/examples/0.12.x/server-kotlin/java/functions/list-runtimes.md b/docs/examples/0.12.x/server-kotlin/java/functions/list-runtimes.md new file mode 100644 index 0000000000..e70bd27f76 --- /dev/null +++ b/docs/examples/0.12.x/server-kotlin/java/functions/list-runtimes.md @@ -0,0 +1,33 @@ +import io.appwrite.Client +import io.appwrite.services.Functions + +public void main() { + Client client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + + Functions functions = new Functions(client); + functions.listRuntimes(new Continuation() { + @NotNull + @Override + public CoroutineContext getContext() { + return EmptyCoroutineContext.INSTANCE; + } + + @Override + public void resumeWith(@NotNull Object o) { + String json = ""; + try { + if (o instanceof Result.Failure) { + Result.Failure failure = (Result.Failure) o; + throw failure.exception; + } else { + Response response = (Response) o; + } + } catch (Throwable th) { + Log.e("ERROR", th.toString()); + } + } + }); +} \ No newline at end of file diff --git a/docs/examples/0.12.x/server-kotlin/java/health/get-antivirus.md b/docs/examples/0.12.x/server-kotlin/java/health/get-antivirus.md new file mode 100644 index 0000000000..3a40f730a2 --- /dev/null +++ b/docs/examples/0.12.x/server-kotlin/java/health/get-antivirus.md @@ -0,0 +1,33 @@ +import io.appwrite.Client +import io.appwrite.services.Health + +public void main() { + Client client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + + Health health = new Health(client); + health.getAntivirus(new Continuation() { + @NotNull + @Override + public CoroutineContext getContext() { + return EmptyCoroutineContext.INSTANCE; + } + + @Override + public void resumeWith(@NotNull Object o) { + String json = ""; + try { + if (o instanceof Result.Failure) { + Result.Failure failure = (Result.Failure) o; + throw failure.exception; + } else { + Response response = (Response) o; + } + } catch (Throwable th) { + Log.e("ERROR", th.toString()); + } + } + }); +} \ No newline at end of file diff --git a/docs/examples/0.12.x/server-kotlin/kotlin/database/create-boolean-attribute.md b/docs/examples/0.12.x/server-kotlin/kotlin/database/create-boolean-attribute.md index bc86d75c6e..0d5cb9f9ef 100644 --- a/docs/examples/0.12.x/server-kotlin/kotlin/database/create-boolean-attribute.md +++ b/docs/examples/0.12.x/server-kotlin/kotlin/database/create-boolean-attribute.md @@ -10,7 +10,7 @@ suspend fun main() { val database = Database(client) val response = database.createBooleanAttribute( collectionId = "[COLLECTION_ID]", - attributeId = "", + key = "", required = false, ) val json = response.body?.string() diff --git a/docs/examples/0.12.x/server-kotlin/kotlin/database/create-email-attribute.md b/docs/examples/0.12.x/server-kotlin/kotlin/database/create-email-attribute.md index 119533cdef..8b89e8e3ee 100644 --- a/docs/examples/0.12.x/server-kotlin/kotlin/database/create-email-attribute.md +++ b/docs/examples/0.12.x/server-kotlin/kotlin/database/create-email-attribute.md @@ -10,7 +10,7 @@ suspend fun main() { val database = Database(client) val response = database.createEmailAttribute( collectionId = "[COLLECTION_ID]", - attributeId = "", + key = "", required = false, ) val json = response.body?.string() diff --git a/docs/examples/0.12.x/server-kotlin/kotlin/database/create-enum-attribute.md b/docs/examples/0.12.x/server-kotlin/kotlin/database/create-enum-attribute.md index 6a75edf1d3..ceef6b79d4 100644 --- a/docs/examples/0.12.x/server-kotlin/kotlin/database/create-enum-attribute.md +++ b/docs/examples/0.12.x/server-kotlin/kotlin/database/create-enum-attribute.md @@ -10,7 +10,7 @@ suspend fun main() { val database = Database(client) val response = database.createEnumAttribute( collectionId = "[COLLECTION_ID]", - attributeId = "", + key = "", elements = listOf(), required = false, ) diff --git a/docs/examples/0.12.x/server-kotlin/kotlin/database/create-float-attribute.md b/docs/examples/0.12.x/server-kotlin/kotlin/database/create-float-attribute.md index afcd09edc7..1304096185 100644 --- a/docs/examples/0.12.x/server-kotlin/kotlin/database/create-float-attribute.md +++ b/docs/examples/0.12.x/server-kotlin/kotlin/database/create-float-attribute.md @@ -10,7 +10,7 @@ suspend fun main() { val database = Database(client) val response = database.createFloatAttribute( collectionId = "[COLLECTION_ID]", - attributeId = "", + key = "", required = false, ) val json = response.body?.string() diff --git a/docs/examples/0.12.x/server-kotlin/kotlin/database/create-index.md b/docs/examples/0.12.x/server-kotlin/kotlin/database/create-index.md index f5ff92362a..53432cef33 100644 --- a/docs/examples/0.12.x/server-kotlin/kotlin/database/create-index.md +++ b/docs/examples/0.12.x/server-kotlin/kotlin/database/create-index.md @@ -10,7 +10,7 @@ suspend fun main() { val database = Database(client) val response = database.createIndex( collectionId = "[COLLECTION_ID]", - indexId = "", + key = "", type = "key", attributes = listOf(), ) diff --git a/docs/examples/0.12.x/server-kotlin/kotlin/database/create-integer-attribute.md b/docs/examples/0.12.x/server-kotlin/kotlin/database/create-integer-attribute.md index 4083bab8ca..2f00c8d858 100644 --- a/docs/examples/0.12.x/server-kotlin/kotlin/database/create-integer-attribute.md +++ b/docs/examples/0.12.x/server-kotlin/kotlin/database/create-integer-attribute.md @@ -10,7 +10,7 @@ suspend fun main() { val database = Database(client) val response = database.createIntegerAttribute( collectionId = "[COLLECTION_ID]", - attributeId = "", + key = "", required = false, ) val json = response.body?.string() diff --git a/docs/examples/0.12.x/server-kotlin/kotlin/database/create-ip-attribute.md b/docs/examples/0.12.x/server-kotlin/kotlin/database/create-ip-attribute.md index d2875a81d3..c0d49b0a94 100644 --- a/docs/examples/0.12.x/server-kotlin/kotlin/database/create-ip-attribute.md +++ b/docs/examples/0.12.x/server-kotlin/kotlin/database/create-ip-attribute.md @@ -10,7 +10,7 @@ suspend fun main() { val database = Database(client) val response = database.createIpAttribute( collectionId = "[COLLECTION_ID]", - attributeId = "", + key = "", required = false, ) val json = response.body?.string() diff --git a/docs/examples/0.12.x/server-kotlin/kotlin/database/create-string-attribute.md b/docs/examples/0.12.x/server-kotlin/kotlin/database/create-string-attribute.md index a7abb2e2d0..da95ee02f6 100644 --- a/docs/examples/0.12.x/server-kotlin/kotlin/database/create-string-attribute.md +++ b/docs/examples/0.12.x/server-kotlin/kotlin/database/create-string-attribute.md @@ -10,7 +10,7 @@ suspend fun main() { val database = Database(client) val response = database.createStringAttribute( collectionId = "[COLLECTION_ID]", - attributeId = "", + key = "", size = 1, required = false, ) diff --git a/docs/examples/0.12.x/server-kotlin/kotlin/database/create-url-attribute.md b/docs/examples/0.12.x/server-kotlin/kotlin/database/create-url-attribute.md index e063e57565..3f151b6690 100644 --- a/docs/examples/0.12.x/server-kotlin/kotlin/database/create-url-attribute.md +++ b/docs/examples/0.12.x/server-kotlin/kotlin/database/create-url-attribute.md @@ -10,7 +10,7 @@ suspend fun main() { val database = Database(client) val response = database.createUrlAttribute( collectionId = "[COLLECTION_ID]", - attributeId = "", + key = "", required = false, ) val json = response.body?.string() diff --git a/docs/examples/0.12.x/server-kotlin/kotlin/database/delete-attribute.md b/docs/examples/0.12.x/server-kotlin/kotlin/database/delete-attribute.md index e5b7e48172..a2d1746d78 100644 --- a/docs/examples/0.12.x/server-kotlin/kotlin/database/delete-attribute.md +++ b/docs/examples/0.12.x/server-kotlin/kotlin/database/delete-attribute.md @@ -10,7 +10,7 @@ suspend fun main() { val database = Database(client) val response = database.deleteAttribute( collectionId = "[COLLECTION_ID]", - attributeId = "" + key = "" ) val json = response.body?.string() } \ No newline at end of file diff --git a/docs/examples/0.12.x/server-kotlin/kotlin/database/delete-index.md b/docs/examples/0.12.x/server-kotlin/kotlin/database/delete-index.md index c3ffe7e958..e73ce5ea46 100644 --- a/docs/examples/0.12.x/server-kotlin/kotlin/database/delete-index.md +++ b/docs/examples/0.12.x/server-kotlin/kotlin/database/delete-index.md @@ -10,7 +10,7 @@ suspend fun main() { val database = Database(client) val response = database.deleteIndex( collectionId = "[COLLECTION_ID]", - indexId = "" + key = "" ) val json = response.body?.string() } \ No newline at end of file diff --git a/docs/examples/0.12.x/server-kotlin/kotlin/database/get-attribute.md b/docs/examples/0.12.x/server-kotlin/kotlin/database/get-attribute.md index 777f258b18..43a9a8f793 100644 --- a/docs/examples/0.12.x/server-kotlin/kotlin/database/get-attribute.md +++ b/docs/examples/0.12.x/server-kotlin/kotlin/database/get-attribute.md @@ -10,7 +10,7 @@ suspend fun main() { val database = Database(client) val response = database.getAttribute( collectionId = "[COLLECTION_ID]", - attributeId = "" + key = "" ) val json = response.body?.string() } \ No newline at end of file diff --git a/docs/examples/0.12.x/server-kotlin/kotlin/database/get-index.md b/docs/examples/0.12.x/server-kotlin/kotlin/database/get-index.md index 0ceb6392cb..225cc26d67 100644 --- a/docs/examples/0.12.x/server-kotlin/kotlin/database/get-index.md +++ b/docs/examples/0.12.x/server-kotlin/kotlin/database/get-index.md @@ -10,7 +10,7 @@ suspend fun main() { val database = Database(client) val response = database.getIndex( collectionId = "[COLLECTION_ID]", - indexId = "" + key = "" ) val json = response.body?.string() } \ No newline at end of file diff --git a/docs/examples/0.12.x/server-kotlin/kotlin/functions/create.md b/docs/examples/0.12.x/server-kotlin/kotlin/functions/create.md index 61fc7fa508..fe66164a79 100644 --- a/docs/examples/0.12.x/server-kotlin/kotlin/functions/create.md +++ b/docs/examples/0.12.x/server-kotlin/kotlin/functions/create.md @@ -12,7 +12,7 @@ suspend fun main() { functionId = "", name = "[NAME]", execute = listOf(), - runtime = "dotnet-5.0", + runtime = "node-14.5", ) val json = response.body?.string() } \ No newline at end of file diff --git a/docs/examples/0.12.x/server-kotlin/kotlin/functions/list-runtimes.md b/docs/examples/0.12.x/server-kotlin/kotlin/functions/list-runtimes.md new file mode 100644 index 0000000000..7236d74475 --- /dev/null +++ b/docs/examples/0.12.x/server-kotlin/kotlin/functions/list-runtimes.md @@ -0,0 +1,13 @@ +import io.appwrite.Client +import io.appwrite.services.Functions + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + + val functions = Functions(client) + val response = functions.listRuntimes() + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.12.x/server-kotlin/kotlin/health/get-antivirus.md b/docs/examples/0.12.x/server-kotlin/kotlin/health/get-antivirus.md new file mode 100644 index 0000000000..fe64ba8ee1 --- /dev/null +++ b/docs/examples/0.12.x/server-kotlin/kotlin/health/get-antivirus.md @@ -0,0 +1,13 @@ +import io.appwrite.Client +import io.appwrite.services.Health + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + + val health = Health(client) + val response = health.getAntivirus() + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.12.x/server-nodejs/examples/functions/create.md b/docs/examples/0.12.x/server-nodejs/examples/functions/create.md index 0d13ac3da2..b29de09ec9 100644 --- a/docs/examples/0.12.x/server-nodejs/examples/functions/create.md +++ b/docs/examples/0.12.x/server-nodejs/examples/functions/create.md @@ -11,7 +11,7 @@ client .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; -let promise = functions.create('', '[NAME]', [], 'dotnet-5.0'); +let promise = functions.create('', '[NAME]', [], 'node-14.5'); promise.then(function (response) { console.log(response); diff --git a/docs/examples/0.12.x/server-nodejs/examples/functions/list-runtimes.md b/docs/examples/0.12.x/server-nodejs/examples/functions/list-runtimes.md new file mode 100644 index 0000000000..e2aa34abfe --- /dev/null +++ b/docs/examples/0.12.x/server-nodejs/examples/functions/list-runtimes.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let functions = new sdk.Functions(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +let promise = functions.listRuntimes(); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.12.x/server-nodejs/examples/health/get-antivirus.md b/docs/examples/0.12.x/server-nodejs/examples/health/get-antivirus.md new file mode 100644 index 0000000000..2df53eb37f --- /dev/null +++ b/docs/examples/0.12.x/server-nodejs/examples/health/get-antivirus.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let health = new sdk.Health(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +let promise = health.getAntivirus(); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.12.x/server-php/examples/functions/create.md b/docs/examples/0.12.x/server-php/examples/functions/create.md index f6a23c0899..0ff29ce043 100644 --- a/docs/examples/0.12.x/server-php/examples/functions/create.md +++ b/docs/examples/0.12.x/server-php/examples/functions/create.md @@ -13,4 +13,4 @@ $client $functions = new Functions($client); -$result = $functions->create('', '[NAME]', [], 'dotnet-5.0'); \ No newline at end of file +$result = $functions->create('', '[NAME]', [], 'node-14.5'); \ No newline at end of file diff --git a/docs/examples/0.12.x/server-php/examples/functions/list-runtimes.md b/docs/examples/0.12.x/server-php/examples/functions/list-runtimes.md new file mode 100644 index 0000000000..78e560ee19 --- /dev/null +++ b/docs/examples/0.12.x/server-php/examples/functions/list-runtimes.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +$functions = new Functions($client); + +$result = $functions->listRuntimes(); \ No newline at end of file diff --git a/docs/examples/0.12.x/server-php/examples/health/get-antivirus.md b/docs/examples/0.12.x/server-php/examples/health/get-antivirus.md new file mode 100644 index 0000000000..0f21d5da06 --- /dev/null +++ b/docs/examples/0.12.x/server-php/examples/health/get-antivirus.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +$health = new Health($client); + +$result = $health->getAntivirus(); \ No newline at end of file diff --git a/docs/examples/0.12.x/server-python/examples/functions/create.md b/docs/examples/0.12.x/server-python/examples/functions/create.md index b9bf0498e2..a855dbc574 100644 --- a/docs/examples/0.12.x/server-python/examples/functions/create.md +++ b/docs/examples/0.12.x/server-python/examples/functions/create.md @@ -11,4 +11,4 @@ client = Client() functions = Functions(client) -result = functions.create('', '[NAME]', [], 'dotnet-5.0') +result = functions.create('', '[NAME]', [], 'node-14.5') diff --git a/docs/examples/0.12.x/server-python/examples/functions/list-runtimes.md b/docs/examples/0.12.x/server-python/examples/functions/list-runtimes.md new file mode 100644 index 0000000000..a832a4dcdc --- /dev/null +++ b/docs/examples/0.12.x/server-python/examples/functions/list-runtimes.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.functions import Functions + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +) + +functions = Functions(client) + +result = functions.list_runtimes() diff --git a/docs/examples/0.12.x/server-python/examples/health/get-antivirus.md b/docs/examples/0.12.x/server-python/examples/health/get-antivirus.md new file mode 100644 index 0000000000..97ee120365 --- /dev/null +++ b/docs/examples/0.12.x/server-python/examples/health/get-antivirus.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.health import Health + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +) + +health = Health(client) + +result = health.get_antivirus() diff --git a/docs/examples/0.12.x/server-ruby/examples/database/create-boolean-attribute.md b/docs/examples/0.12.x/server-ruby/examples/database/create-boolean-attribute.md index afa92df11f..b3228f27fe 100644 --- a/docs/examples/0.12.x/server-ruby/examples/database/create-boolean-attribute.md +++ b/docs/examples/0.12.x/server-ruby/examples/database/create-boolean-attribute.md @@ -9,6 +9,6 @@ client database = Appwrite::Database.new(client) -response = database.create_boolean_attribute(collection_id: '[COLLECTION_ID]', attribute_id: '', required: false) +response = database.create_boolean_attribute(collection_id: '[COLLECTION_ID]', key: '', required: false) puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.12.x/server-ruby/examples/database/create-email-attribute.md b/docs/examples/0.12.x/server-ruby/examples/database/create-email-attribute.md index 78a195c407..fbf9d4fbe0 100644 --- a/docs/examples/0.12.x/server-ruby/examples/database/create-email-attribute.md +++ b/docs/examples/0.12.x/server-ruby/examples/database/create-email-attribute.md @@ -9,6 +9,6 @@ client database = Appwrite::Database.new(client) -response = database.create_email_attribute(collection_id: '[COLLECTION_ID]', attribute_id: '', required: false) +response = database.create_email_attribute(collection_id: '[COLLECTION_ID]', key: '', required: false) puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.12.x/server-ruby/examples/database/create-enum-attribute.md b/docs/examples/0.12.x/server-ruby/examples/database/create-enum-attribute.md index 4a11af8f61..9d0c372f4c 100644 --- a/docs/examples/0.12.x/server-ruby/examples/database/create-enum-attribute.md +++ b/docs/examples/0.12.x/server-ruby/examples/database/create-enum-attribute.md @@ -9,6 +9,6 @@ client database = Appwrite::Database.new(client) -response = database.create_enum_attribute(collection_id: '[COLLECTION_ID]', attribute_id: '', elements: [], required: false) +response = database.create_enum_attribute(collection_id: '[COLLECTION_ID]', key: '', elements: [], required: false) puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.12.x/server-ruby/examples/database/create-float-attribute.md b/docs/examples/0.12.x/server-ruby/examples/database/create-float-attribute.md index 327f535ed5..753191b586 100644 --- a/docs/examples/0.12.x/server-ruby/examples/database/create-float-attribute.md +++ b/docs/examples/0.12.x/server-ruby/examples/database/create-float-attribute.md @@ -9,6 +9,6 @@ client database = Appwrite::Database.new(client) -response = database.create_float_attribute(collection_id: '[COLLECTION_ID]', attribute_id: '', required: false) +response = database.create_float_attribute(collection_id: '[COLLECTION_ID]', key: '', required: false) puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.12.x/server-ruby/examples/database/create-index.md b/docs/examples/0.12.x/server-ruby/examples/database/create-index.md index 2ce398ad93..3404c76763 100644 --- a/docs/examples/0.12.x/server-ruby/examples/database/create-index.md +++ b/docs/examples/0.12.x/server-ruby/examples/database/create-index.md @@ -9,6 +9,6 @@ client database = Appwrite::Database.new(client) -response = database.create_index(collection_id: '[COLLECTION_ID]', index_id: '', type: 'key', attributes: []) +response = database.create_index(collection_id: '[COLLECTION_ID]', key: '', type: 'key', attributes: []) puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.12.x/server-ruby/examples/database/create-integer-attribute.md b/docs/examples/0.12.x/server-ruby/examples/database/create-integer-attribute.md index 05c77a8ec5..870405e478 100644 --- a/docs/examples/0.12.x/server-ruby/examples/database/create-integer-attribute.md +++ b/docs/examples/0.12.x/server-ruby/examples/database/create-integer-attribute.md @@ -9,6 +9,6 @@ client database = Appwrite::Database.new(client) -response = database.create_integer_attribute(collection_id: '[COLLECTION_ID]', attribute_id: '', required: false) +response = database.create_integer_attribute(collection_id: '[COLLECTION_ID]', key: '', required: false) puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.12.x/server-ruby/examples/database/create-ip-attribute.md b/docs/examples/0.12.x/server-ruby/examples/database/create-ip-attribute.md index 5b0d40abbc..f956cb1eb8 100644 --- a/docs/examples/0.12.x/server-ruby/examples/database/create-ip-attribute.md +++ b/docs/examples/0.12.x/server-ruby/examples/database/create-ip-attribute.md @@ -9,6 +9,6 @@ client database = Appwrite::Database.new(client) -response = database.create_ip_attribute(collection_id: '[COLLECTION_ID]', attribute_id: '', required: false) +response = database.create_ip_attribute(collection_id: '[COLLECTION_ID]', key: '', required: false) puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.12.x/server-ruby/examples/database/create-string-attribute.md b/docs/examples/0.12.x/server-ruby/examples/database/create-string-attribute.md index 32160f585b..5d42170fa4 100644 --- a/docs/examples/0.12.x/server-ruby/examples/database/create-string-attribute.md +++ b/docs/examples/0.12.x/server-ruby/examples/database/create-string-attribute.md @@ -9,6 +9,6 @@ client database = Appwrite::Database.new(client) -response = database.create_string_attribute(collection_id: '[COLLECTION_ID]', attribute_id: '', size: 1, required: false) +response = database.create_string_attribute(collection_id: '[COLLECTION_ID]', key: '', size: 1, required: false) puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.12.x/server-ruby/examples/database/create-url-attribute.md b/docs/examples/0.12.x/server-ruby/examples/database/create-url-attribute.md index d20d1adba1..a91948f1d5 100644 --- a/docs/examples/0.12.x/server-ruby/examples/database/create-url-attribute.md +++ b/docs/examples/0.12.x/server-ruby/examples/database/create-url-attribute.md @@ -9,6 +9,6 @@ client database = Appwrite::Database.new(client) -response = database.create_url_attribute(collection_id: '[COLLECTION_ID]', attribute_id: '', required: false) +response = database.create_url_attribute(collection_id: '[COLLECTION_ID]', key: '', required: false) puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.12.x/server-ruby/examples/database/delete-attribute.md b/docs/examples/0.12.x/server-ruby/examples/database/delete-attribute.md index 5d1a7c7950..2b38d31bea 100644 --- a/docs/examples/0.12.x/server-ruby/examples/database/delete-attribute.md +++ b/docs/examples/0.12.x/server-ruby/examples/database/delete-attribute.md @@ -9,6 +9,6 @@ client database = Appwrite::Database.new(client) -response = database.delete_attribute(collection_id: '[COLLECTION_ID]', attribute_id: '') +response = database.delete_attribute(collection_id: '[COLLECTION_ID]', key: '') puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.12.x/server-ruby/examples/database/delete-index.md b/docs/examples/0.12.x/server-ruby/examples/database/delete-index.md index 83d9299a6b..50b8a8d1f4 100644 --- a/docs/examples/0.12.x/server-ruby/examples/database/delete-index.md +++ b/docs/examples/0.12.x/server-ruby/examples/database/delete-index.md @@ -9,6 +9,6 @@ client database = Appwrite::Database.new(client) -response = database.delete_index(collection_id: '[COLLECTION_ID]', index_id: '') +response = database.delete_index(collection_id: '[COLLECTION_ID]', key: '') puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.12.x/server-ruby/examples/database/get-attribute.md b/docs/examples/0.12.x/server-ruby/examples/database/get-attribute.md index 5b52a81127..7315a50ae3 100644 --- a/docs/examples/0.12.x/server-ruby/examples/database/get-attribute.md +++ b/docs/examples/0.12.x/server-ruby/examples/database/get-attribute.md @@ -9,6 +9,6 @@ client database = Appwrite::Database.new(client) -response = database.get_attribute(collection_id: '[COLLECTION_ID]', attribute_id: '') +response = database.get_attribute(collection_id: '[COLLECTION_ID]', key: '') puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.12.x/server-ruby/examples/database/get-index.md b/docs/examples/0.12.x/server-ruby/examples/database/get-index.md index 61224a3e42..69d190d8fd 100644 --- a/docs/examples/0.12.x/server-ruby/examples/database/get-index.md +++ b/docs/examples/0.12.x/server-ruby/examples/database/get-index.md @@ -9,6 +9,6 @@ client database = Appwrite::Database.new(client) -response = database.get_index(collection_id: '[COLLECTION_ID]', index_id: '') +response = database.get_index(collection_id: '[COLLECTION_ID]', key: '') puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.12.x/server-ruby/examples/functions/create.md b/docs/examples/0.12.x/server-ruby/examples/functions/create.md index e3c6ffee0b..90b6fcae79 100644 --- a/docs/examples/0.12.x/server-ruby/examples/functions/create.md +++ b/docs/examples/0.12.x/server-ruby/examples/functions/create.md @@ -9,6 +9,6 @@ client functions = Appwrite::Functions.new(client) -response = functions.create(function_id: '', name: '[NAME]', execute: [], runtime: 'dotnet-5.0') +response = functions.create(function_id: '', name: '[NAME]', execute: [], runtime: 'node-14.5') puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.12.x/server-ruby/examples/functions/list-runtimes.md b/docs/examples/0.12.x/server-ruby/examples/functions/list-runtimes.md new file mode 100644 index 0000000000..b8f0a75aff --- /dev/null +++ b/docs/examples/0.12.x/server-ruby/examples/functions/list-runtimes.md @@ -0,0 +1,14 @@ +require 'appwrite' + +client = Appwrite::Client.new + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + +functions = Appwrite::Functions.new(client) + +response = functions.list_runtimes() + +puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.12.x/server-ruby/examples/health/get-antivirus.md b/docs/examples/0.12.x/server-ruby/examples/health/get-antivirus.md new file mode 100644 index 0000000000..c9c0bd45f5 --- /dev/null +++ b/docs/examples/0.12.x/server-ruby/examples/health/get-antivirus.md @@ -0,0 +1,14 @@ +require 'appwrite' + +client = Appwrite::Client.new + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + +health = Appwrite::Health.new(client) + +response = health.get_antivirus() + +puts response.inspect \ No newline at end of file diff --git a/docs/examples/0.12.x/server-swift/examples/database/create-boolean-attribute.md b/docs/examples/0.12.x/server-swift/examples/database/create-boolean-attribute.md index f037fe8761..25be2d66e9 100644 --- a/docs/examples/0.12.x/server-swift/examples/database/create-boolean-attribute.md +++ b/docs/examples/0.12.x/server-swift/examples/database/create-boolean-attribute.md @@ -9,7 +9,7 @@ func main() { let database = Database(client) database.createBooleanAttribute( collectionId: "[COLLECTION_ID]", - attributeId: "", + key: "", required: xfalse ) { result in switch result { diff --git a/docs/examples/0.12.x/server-swift/examples/database/create-email-attribute.md b/docs/examples/0.12.x/server-swift/examples/database/create-email-attribute.md index d6dd2d1e15..169e2adb14 100644 --- a/docs/examples/0.12.x/server-swift/examples/database/create-email-attribute.md +++ b/docs/examples/0.12.x/server-swift/examples/database/create-email-attribute.md @@ -9,7 +9,7 @@ func main() { let database = Database(client) database.createEmailAttribute( collectionId: "[COLLECTION_ID]", - attributeId: "", + key: "", required: xfalse ) { result in switch result { diff --git a/docs/examples/0.12.x/server-swift/examples/database/create-enum-attribute.md b/docs/examples/0.12.x/server-swift/examples/database/create-enum-attribute.md index 70397e4b58..33db352a29 100644 --- a/docs/examples/0.12.x/server-swift/examples/database/create-enum-attribute.md +++ b/docs/examples/0.12.x/server-swift/examples/database/create-enum-attribute.md @@ -9,7 +9,7 @@ func main() { let database = Database(client) database.createEnumAttribute( collectionId: "[COLLECTION_ID]", - attributeId: "", + key: "", elements: [], required: xfalse ) { result in diff --git a/docs/examples/0.12.x/server-swift/examples/database/create-float-attribute.md b/docs/examples/0.12.x/server-swift/examples/database/create-float-attribute.md index 640ece7206..0d1385d07b 100644 --- a/docs/examples/0.12.x/server-swift/examples/database/create-float-attribute.md +++ b/docs/examples/0.12.x/server-swift/examples/database/create-float-attribute.md @@ -9,7 +9,7 @@ func main() { let database = Database(client) database.createFloatAttribute( collectionId: "[COLLECTION_ID]", - attributeId: "", + key: "", required: xfalse ) { result in switch result { diff --git a/docs/examples/0.12.x/server-swift/examples/database/create-index.md b/docs/examples/0.12.x/server-swift/examples/database/create-index.md index 97647ac2f3..fc78251aad 100644 --- a/docs/examples/0.12.x/server-swift/examples/database/create-index.md +++ b/docs/examples/0.12.x/server-swift/examples/database/create-index.md @@ -9,7 +9,7 @@ func main() { let database = Database(client) database.createIndex( collectionId: "[COLLECTION_ID]", - indexId: "", + key: "", type: "key", attributes: [] ) { result in diff --git a/docs/examples/0.12.x/server-swift/examples/database/create-integer-attribute.md b/docs/examples/0.12.x/server-swift/examples/database/create-integer-attribute.md index 42355939d9..9efe11dc60 100644 --- a/docs/examples/0.12.x/server-swift/examples/database/create-integer-attribute.md +++ b/docs/examples/0.12.x/server-swift/examples/database/create-integer-attribute.md @@ -9,7 +9,7 @@ func main() { let database = Database(client) database.createIntegerAttribute( collectionId: "[COLLECTION_ID]", - attributeId: "", + key: "", required: xfalse ) { result in switch result { diff --git a/docs/examples/0.12.x/server-swift/examples/database/create-ip-attribute.md b/docs/examples/0.12.x/server-swift/examples/database/create-ip-attribute.md index 842ae0271c..e6840d0516 100644 --- a/docs/examples/0.12.x/server-swift/examples/database/create-ip-attribute.md +++ b/docs/examples/0.12.x/server-swift/examples/database/create-ip-attribute.md @@ -9,7 +9,7 @@ func main() { let database = Database(client) database.createIpAttribute( collectionId: "[COLLECTION_ID]", - attributeId: "", + key: "", required: xfalse ) { result in switch result { diff --git a/docs/examples/0.12.x/server-swift/examples/database/create-string-attribute.md b/docs/examples/0.12.x/server-swift/examples/database/create-string-attribute.md index 1d0015f7ba..754253ca8a 100644 --- a/docs/examples/0.12.x/server-swift/examples/database/create-string-attribute.md +++ b/docs/examples/0.12.x/server-swift/examples/database/create-string-attribute.md @@ -9,7 +9,7 @@ func main() { let database = Database(client) database.createStringAttribute( collectionId: "[COLLECTION_ID]", - attributeId: "", + key: "", size: 1, required: xfalse ) { result in diff --git a/docs/examples/0.12.x/server-swift/examples/database/create-url-attribute.md b/docs/examples/0.12.x/server-swift/examples/database/create-url-attribute.md index 55e227b9b9..71b73eae5c 100644 --- a/docs/examples/0.12.x/server-swift/examples/database/create-url-attribute.md +++ b/docs/examples/0.12.x/server-swift/examples/database/create-url-attribute.md @@ -9,7 +9,7 @@ func main() { let database = Database(client) database.createUrlAttribute( collectionId: "[COLLECTION_ID]", - attributeId: "", + key: "", required: xfalse ) { result in switch result { diff --git a/docs/examples/0.12.x/server-swift/examples/database/delete-attribute.md b/docs/examples/0.12.x/server-swift/examples/database/delete-attribute.md index ef9409f8b0..6993b883d0 100644 --- a/docs/examples/0.12.x/server-swift/examples/database/delete-attribute.md +++ b/docs/examples/0.12.x/server-swift/examples/database/delete-attribute.md @@ -9,7 +9,7 @@ func main() { let database = Database(client) database.deleteAttribute( collectionId: "[COLLECTION_ID]", - attributeId: "" + key: "" ) { result in switch result { case .failure(let error): diff --git a/docs/examples/0.12.x/server-swift/examples/database/delete-index.md b/docs/examples/0.12.x/server-swift/examples/database/delete-index.md index 91f9dadf33..ce1b264d8f 100644 --- a/docs/examples/0.12.x/server-swift/examples/database/delete-index.md +++ b/docs/examples/0.12.x/server-swift/examples/database/delete-index.md @@ -9,7 +9,7 @@ func main() { let database = Database(client) database.deleteIndex( collectionId: "[COLLECTION_ID]", - indexId: "" + key: "" ) { result in switch result { case .failure(let error): diff --git a/docs/examples/0.12.x/server-swift/examples/database/get-attribute.md b/docs/examples/0.12.x/server-swift/examples/database/get-attribute.md index f4c51469df..6b8d4d741a 100644 --- a/docs/examples/0.12.x/server-swift/examples/database/get-attribute.md +++ b/docs/examples/0.12.x/server-swift/examples/database/get-attribute.md @@ -9,7 +9,7 @@ func main() { let database = Database(client) database.getAttribute( collectionId: "[COLLECTION_ID]", - attributeId: "" + key: "" ) { result in switch result { case .failure(let error): diff --git a/docs/examples/0.12.x/server-swift/examples/database/get-index.md b/docs/examples/0.12.x/server-swift/examples/database/get-index.md index 8566c5307b..be9a849532 100644 --- a/docs/examples/0.12.x/server-swift/examples/database/get-index.md +++ b/docs/examples/0.12.x/server-swift/examples/database/get-index.md @@ -9,7 +9,7 @@ func main() { let database = Database(client) database.getIndex( collectionId: "[COLLECTION_ID]", - indexId: "" + key: "" ) { result in switch result { case .failure(let error): diff --git a/docs/examples/0.12.x/server-swift/examples/functions/create.md b/docs/examples/0.12.x/server-swift/examples/functions/create.md index bca47a2e6a..a4975b9206 100644 --- a/docs/examples/0.12.x/server-swift/examples/functions/create.md +++ b/docs/examples/0.12.x/server-swift/examples/functions/create.md @@ -11,7 +11,7 @@ func main() { functionId: "", name: "[NAME]", execute: [], - runtime: "dotnet-5.0" + runtime: "node-14.5" ) { result in switch result { case .failure(let error): diff --git a/docs/examples/0.12.x/server-swift/examples/functions/list-runtimes.md b/docs/examples/0.12.x/server-swift/examples/functions/list-runtimes.md new file mode 100644 index 0000000000..9d8fa4ccfb --- /dev/null +++ b/docs/examples/0.12.x/server-swift/examples/functions/list-runtimes.md @@ -0,0 +1,18 @@ +import Appwrite + +func main() { + let client = Client() + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + + let functions = Functions(client) + functions.listRuntimes() { result in + switch result { + case .failure(let error): + print(error.message) + case .success(let runtimeList): + print(String(describing: runtimeList) + } + } +} diff --git a/docs/examples/0.12.x/server-swift/examples/health/get-antivirus.md b/docs/examples/0.12.x/server-swift/examples/health/get-antivirus.md new file mode 100644 index 0000000000..bb44ae9c61 --- /dev/null +++ b/docs/examples/0.12.x/server-swift/examples/health/get-antivirus.md @@ -0,0 +1,18 @@ +import Appwrite + +func main() { + let client = Client() + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + + let health = Health(client) + health.getAntivirus() { result in + switch result { + case .failure(let error): + print(error.message) + case .success(let healthAntivirus): + print(String(describing: healthAntivirus) + } + } +} diff --git a/docs/examples/0.12.x/server-swift/examples/health/get-cache.md b/docs/examples/0.12.x/server-swift/examples/health/get-cache.md index 29af81c600..f0d038b06c 100644 --- a/docs/examples/0.12.x/server-swift/examples/health/get-cache.md +++ b/docs/examples/0.12.x/server-swift/examples/health/get-cache.md @@ -11,8 +11,8 @@ func main() { switch result { case .failure(let error): print(error.message) - case .success(let ): - print(String(describing: ) + case .success(let healthStatus): + print(String(describing: healthStatus) } } } diff --git a/docs/examples/0.12.x/server-swift/examples/health/get-d-b.md b/docs/examples/0.12.x/server-swift/examples/health/get-d-b.md index a6492a822c..70c5f791f6 100644 --- a/docs/examples/0.12.x/server-swift/examples/health/get-d-b.md +++ b/docs/examples/0.12.x/server-swift/examples/health/get-d-b.md @@ -11,8 +11,8 @@ func main() { switch result { case .failure(let error): print(error.message) - case .success(let ): - print(String(describing: ) + case .success(let healthStatus): + print(String(describing: healthStatus) } } } diff --git a/docs/examples/0.12.x/server-swift/examples/health/get-queue-certificates.md b/docs/examples/0.12.x/server-swift/examples/health/get-queue-certificates.md index d90a8ef57d..70cc5dcaec 100644 --- a/docs/examples/0.12.x/server-swift/examples/health/get-queue-certificates.md +++ b/docs/examples/0.12.x/server-swift/examples/health/get-queue-certificates.md @@ -11,8 +11,8 @@ func main() { switch result { case .failure(let error): print(error.message) - case .success(let ): - print(String(describing: ) + case .success(let healthQueue): + print(String(describing: healthQueue) } } } diff --git a/docs/examples/0.12.x/server-swift/examples/health/get-queue-functions.md b/docs/examples/0.12.x/server-swift/examples/health/get-queue-functions.md index c907fd0975..15af0f7f3b 100644 --- a/docs/examples/0.12.x/server-swift/examples/health/get-queue-functions.md +++ b/docs/examples/0.12.x/server-swift/examples/health/get-queue-functions.md @@ -11,8 +11,8 @@ func main() { switch result { case .failure(let error): print(error.message) - case .success(let ): - print(String(describing: ) + case .success(let healthQueue): + print(String(describing: healthQueue) } } } diff --git a/docs/examples/0.12.x/server-swift/examples/health/get-queue-logs.md b/docs/examples/0.12.x/server-swift/examples/health/get-queue-logs.md index c3f3217dc8..953e8dd929 100644 --- a/docs/examples/0.12.x/server-swift/examples/health/get-queue-logs.md +++ b/docs/examples/0.12.x/server-swift/examples/health/get-queue-logs.md @@ -11,8 +11,8 @@ func main() { switch result { case .failure(let error): print(error.message) - case .success(let ): - print(String(describing: ) + case .success(let healthQueue): + print(String(describing: healthQueue) } } } diff --git a/docs/examples/0.12.x/server-swift/examples/health/get-queue-usage.md b/docs/examples/0.12.x/server-swift/examples/health/get-queue-usage.md index 75a0df3e81..c2ab62a31b 100644 --- a/docs/examples/0.12.x/server-swift/examples/health/get-queue-usage.md +++ b/docs/examples/0.12.x/server-swift/examples/health/get-queue-usage.md @@ -11,8 +11,8 @@ func main() { switch result { case .failure(let error): print(error.message) - case .success(let ): - print(String(describing: ) + case .success(let healthQueue): + print(String(describing: healthQueue) } } } diff --git a/docs/examples/0.12.x/server-swift/examples/health/get-queue-webhooks.md b/docs/examples/0.12.x/server-swift/examples/health/get-queue-webhooks.md index 6523262fe0..7922adc589 100644 --- a/docs/examples/0.12.x/server-swift/examples/health/get-queue-webhooks.md +++ b/docs/examples/0.12.x/server-swift/examples/health/get-queue-webhooks.md @@ -11,8 +11,8 @@ func main() { switch result { case .failure(let error): print(error.message) - case .success(let ): - print(String(describing: ) + case .success(let healthQueue): + print(String(describing: healthQueue) } } } diff --git a/docs/examples/0.12.x/server-swift/examples/health/get-storage-local.md b/docs/examples/0.12.x/server-swift/examples/health/get-storage-local.md index 9e07c1f8c8..31d1c4020e 100644 --- a/docs/examples/0.12.x/server-swift/examples/health/get-storage-local.md +++ b/docs/examples/0.12.x/server-swift/examples/health/get-storage-local.md @@ -11,8 +11,8 @@ func main() { switch result { case .failure(let error): print(error.message) - case .success(let ): - print(String(describing: ) + case .success(let healthStatus): + print(String(describing: healthStatus) } } } diff --git a/docs/examples/0.12.x/server-swift/examples/health/get-time.md b/docs/examples/0.12.x/server-swift/examples/health/get-time.md index 6807436a98..e14b8664d5 100644 --- a/docs/examples/0.12.x/server-swift/examples/health/get-time.md +++ b/docs/examples/0.12.x/server-swift/examples/health/get-time.md @@ -11,8 +11,8 @@ func main() { switch result { case .failure(let error): print(error.message) - case .success(let ): - print(String(describing: ) + case .success(let healthTime): + print(String(describing: healthTime) } } } diff --git a/docs/examples/0.12.x/server-swift/examples/health/get.md b/docs/examples/0.12.x/server-swift/examples/health/get.md index 6fd1e8f704..f43c3b4a85 100644 --- a/docs/examples/0.12.x/server-swift/examples/health/get.md +++ b/docs/examples/0.12.x/server-swift/examples/health/get.md @@ -11,8 +11,8 @@ func main() { switch result { case .failure(let error): print(error.message) - case .success(let ): - print(String(describing: ) + case .success(let healthStatus): + print(String(describing: healthStatus) } } } diff --git a/docs/references/database/create-enum-attribute.md b/docs/references/database/create-enum-attribute.md new file mode 100644 index 0000000000..02ed0a5d60 --- /dev/null +++ b/docs/references/database/create-enum-attribute.md @@ -0,0 +1 @@ +Create an enum attribute. diff --git a/docs/references/database/create-string-attribute.md b/docs/references/database/create-string-attribute.md index b17fb1ce5a..f7957e97ef 100644 --- a/docs/references/database/create-string-attribute.md +++ b/docs/references/database/create-string-attribute.md @@ -1 +1 @@ -Create a new string attribute. +Create a string attribute.