diff --git a/CHANGELOG.md b/CHANGELOG.md index 6bfce74f..79b5bbd9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,22 +1,11 @@ # Change Log -## 14.0.0 +## 14.0.1 -* Add array-based enum parameters (e.g., `permissions: List`). -* Breaking change: `Output` enum has been removed; use `ImageFormat` instead. -* Add `getQueueAudits` support to `Health` service. -* Add longtext/mediumtext/text/varchar attribute and column helpers to `Databases` and `TablesDB` services. - -## 13.1.0 - -* Added ability to create columns and indexes synchronously while creating a table - -## 13.0.0 - -* Rename `VCSDeploymentType` enum to `VCSReferenceType` -* Change `createTemplateDeployment` method signature: replace `version` parameter with `type` (TemplateReferenceType) and `reference` parameters -* Add `getScreenshot` method to `Avatars` service -* Add `Theme`, `Timezone` and `Output` enums +* Update SDK as per latest server specs, these include - + * Introduces Backups module for managing Database backups + * Introduces Organization module + * Introduce Account level keys, Backup Service & Models ## 12.3.0 @@ -59,4 +48,4 @@ ## 7.0.0 -* Fix pong response & chunked upload \ No newline at end of file +* Fix pong response & chunked upload diff --git a/README.md b/README.md index f54da380..4246c1d6 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ repositories { Next, add the dependency to your project's `build.gradle(.kts)` file: ```groovy -implementation("io.appwrite:sdk-for-kotlin:14.0.0") +implementation("io.appwrite:sdk-for-kotlin:14.0.1") ``` ### Maven @@ -50,7 +50,7 @@ Add this to your project's `pom.xml` file: io.appwrite sdk-for-kotlin - 14.0.0 + 14.0.1 ``` diff --git a/docs/examples/java/account/create-anonymous-session.md b/docs/examples/java/account/create-anonymous-session.md index 07e4f387..e6e2e439 100644 --- a/docs/examples/java/account/create-anonymous-session.md +++ b/docs/examples/java/account/create-anonymous-session.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; @@ -17,3 +18,4 @@ account.createAnonymousSession(new CoroutineCallback<>((result, error) -> { System.out.println(result); })); +``` diff --git a/docs/examples/java/account/create-email-password-session.md b/docs/examples/java/account/create-email-password-session.md index aaf282eb..c6c08c95 100644 --- a/docs/examples/java/account/create-email-password-session.md +++ b/docs/examples/java/account/create-email-password-session.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; @@ -22,3 +23,4 @@ account.createEmailPasswordSession( }) ); +``` diff --git a/docs/examples/java/account/create-email-token.md b/docs/examples/java/account/create-email-token.md index 940f8d60..a718e2d5 100644 --- a/docs/examples/java/account/create-email-token.md +++ b/docs/examples/java/account/create-email-token.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; @@ -23,3 +24,4 @@ account.createEmailToken( }) ); +``` diff --git a/docs/examples/java/account/create-email-verification.md b/docs/examples/java/account/create-email-verification.md index de80353b..109ae076 100644 --- a/docs/examples/java/account/create-email-verification.md +++ b/docs/examples/java/account/create-email-verification.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; @@ -21,3 +22,4 @@ account.createEmailVerification( }) ); +``` diff --git a/docs/examples/java/account/create-jwt.md b/docs/examples/java/account/create-jwt.md index 16257306..569c5758 100644 --- a/docs/examples/java/account/create-jwt.md +++ b/docs/examples/java/account/create-jwt.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; @@ -21,3 +22,4 @@ account.createJWT( }) ); +``` diff --git a/docs/examples/java/account/create-key.md b/docs/examples/java/account/create-key.md new file mode 100644 index 00000000..f45992f7 --- /dev/null +++ b/docs/examples/java/account/create-key.md @@ -0,0 +1,28 @@ +```java +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; +import io.appwrite.enums.Scopes; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setSession(""); // The user session to authenticate with + +Account account = new Account(client); + +account.createKey( + "", // name + List.of(Scopes.ACCOUNT), // scopes + "", // expire (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + +``` diff --git a/docs/examples/java/account/create-magic-url-token.md b/docs/examples/java/account/create-magic-url-token.md index bb4cc7a0..2f6e83ec 100644 --- a/docs/examples/java/account/create-magic-url-token.md +++ b/docs/examples/java/account/create-magic-url-token.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; @@ -24,3 +25,4 @@ account.createMagicURLToken( }) ); +``` diff --git a/docs/examples/java/account/create-mfa-authenticator.md b/docs/examples/java/account/create-mfa-authenticator.md index d38ddd3b..123866a9 100644 --- a/docs/examples/java/account/create-mfa-authenticator.md +++ b/docs/examples/java/account/create-mfa-authenticator.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; @@ -22,3 +23,4 @@ account.createMFAAuthenticator( }) ); +``` diff --git a/docs/examples/java/account/create-mfa-challenge.md b/docs/examples/java/account/create-mfa-challenge.md index 04636336..45893639 100644 --- a/docs/examples/java/account/create-mfa-challenge.md +++ b/docs/examples/java/account/create-mfa-challenge.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; @@ -22,3 +23,4 @@ account.createMFAChallenge( }) ); +``` diff --git a/docs/examples/java/account/create-mfa-recovery-codes.md b/docs/examples/java/account/create-mfa-recovery-codes.md index 6a47a177..090c61d1 100644 --- a/docs/examples/java/account/create-mfa-recovery-codes.md +++ b/docs/examples/java/account/create-mfa-recovery-codes.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; @@ -17,3 +18,4 @@ account.createMFARecoveryCodes(new CoroutineCallback<>((result, error) -> { System.out.println(result); })); +``` diff --git a/docs/examples/java/account/create-o-auth-2-token.md b/docs/examples/java/account/create-o-auth-2-token.md index 3af15e06..3f747270 100644 --- a/docs/examples/java/account/create-o-auth-2-token.md +++ b/docs/examples/java/account/create-o-auth-2-token.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; @@ -25,3 +26,4 @@ account.createOAuth2Token( }) ); +``` diff --git a/docs/examples/java/account/create-phone-token.md b/docs/examples/java/account/create-phone-token.md index cdec5d54..45bc0ccb 100644 --- a/docs/examples/java/account/create-phone-token.md +++ b/docs/examples/java/account/create-phone-token.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; @@ -22,3 +23,4 @@ account.createPhoneToken( }) ); +``` diff --git a/docs/examples/java/account/create-phone-verification.md b/docs/examples/java/account/create-phone-verification.md index 9e49c628..6ed21235 100644 --- a/docs/examples/java/account/create-phone-verification.md +++ b/docs/examples/java/account/create-phone-verification.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; @@ -17,3 +18,4 @@ account.createPhoneVerification(new CoroutineCallback<>((result, error) -> { System.out.println(result); })); +``` diff --git a/docs/examples/java/account/create-recovery.md b/docs/examples/java/account/create-recovery.md index f529ea4c..64951b25 100644 --- a/docs/examples/java/account/create-recovery.md +++ b/docs/examples/java/account/create-recovery.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; @@ -22,3 +23,4 @@ account.createRecovery( }) ); +``` diff --git a/docs/examples/java/account/create-session.md b/docs/examples/java/account/create-session.md index 29501649..3376cb85 100644 --- a/docs/examples/java/account/create-session.md +++ b/docs/examples/java/account/create-session.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; @@ -22,3 +23,4 @@ account.createSession( }) ); +``` diff --git a/docs/examples/java/account/create-verification.md b/docs/examples/java/account/create-verification.md index 65c8e8be..f0f221b4 100644 --- a/docs/examples/java/account/create-verification.md +++ b/docs/examples/java/account/create-verification.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; @@ -21,3 +22,4 @@ account.createVerification( }) ); +``` diff --git a/docs/examples/java/account/create.md b/docs/examples/java/account/create.md index b7bd8216..9acef559 100644 --- a/docs/examples/java/account/create.md +++ b/docs/examples/java/account/create.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; @@ -24,3 +25,4 @@ account.create( }) ); +``` diff --git a/docs/examples/java/account/delete-identity.md b/docs/examples/java/account/delete-identity.md index 0d6f860a..5bb897f5 100644 --- a/docs/examples/java/account/delete-identity.md +++ b/docs/examples/java/account/delete-identity.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; @@ -21,3 +22,4 @@ account.deleteIdentity( }) ); +``` diff --git a/docs/examples/java/account/delete-key.md b/docs/examples/java/account/delete-key.md new file mode 100644 index 00000000..1fb551fb --- /dev/null +++ b/docs/examples/java/account/delete-key.md @@ -0,0 +1,25 @@ +```java +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setSession(""); // The user session to authenticate with + +Account account = new Account(client); + +account.deleteKey( + "", // keyId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + +``` diff --git a/docs/examples/java/account/delete-mfa-authenticator.md b/docs/examples/java/account/delete-mfa-authenticator.md index 20a6acda..4ce42b4e 100644 --- a/docs/examples/java/account/delete-mfa-authenticator.md +++ b/docs/examples/java/account/delete-mfa-authenticator.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; @@ -22,3 +23,4 @@ account.deleteMFAAuthenticator( }) ); +``` diff --git a/docs/examples/java/account/delete-session.md b/docs/examples/java/account/delete-session.md index fd27d746..781161c7 100644 --- a/docs/examples/java/account/delete-session.md +++ b/docs/examples/java/account/delete-session.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; @@ -21,3 +22,4 @@ account.deleteSession( }) ); +``` diff --git a/docs/examples/java/account/delete-sessions.md b/docs/examples/java/account/delete-sessions.md index 11076e72..ef087fd4 100644 --- a/docs/examples/java/account/delete-sessions.md +++ b/docs/examples/java/account/delete-sessions.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; @@ -17,3 +18,4 @@ account.deleteSessions(new CoroutineCallback<>((result, error) -> { System.out.println(result); })); +``` diff --git a/docs/examples/java/account/get-key.md b/docs/examples/java/account/get-key.md new file mode 100644 index 00000000..cf715f14 --- /dev/null +++ b/docs/examples/java/account/get-key.md @@ -0,0 +1,25 @@ +```java +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setSession(""); // The user session to authenticate with + +Account account = new Account(client); + +account.getKey( + "", // keyId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + +``` diff --git a/docs/examples/java/account/get-mfa-recovery-codes.md b/docs/examples/java/account/get-mfa-recovery-codes.md index 813a0a62..6d59890b 100644 --- a/docs/examples/java/account/get-mfa-recovery-codes.md +++ b/docs/examples/java/account/get-mfa-recovery-codes.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; @@ -17,3 +18,4 @@ account.getMFARecoveryCodes(new CoroutineCallback<>((result, error) -> { System.out.println(result); })); +``` diff --git a/docs/examples/java/account/get-prefs.md b/docs/examples/java/account/get-prefs.md index 6614f92a..eb6c6e56 100644 --- a/docs/examples/java/account/get-prefs.md +++ b/docs/examples/java/account/get-prefs.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; @@ -17,3 +18,4 @@ account.getPrefs(new CoroutineCallback<>((result, error) -> { System.out.println(result); })); +``` diff --git a/docs/examples/java/account/get-session.md b/docs/examples/java/account/get-session.md index 3f30d902..e5d96a82 100644 --- a/docs/examples/java/account/get-session.md +++ b/docs/examples/java/account/get-session.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; @@ -21,3 +22,4 @@ account.getSession( }) ); +``` diff --git a/docs/examples/java/account/get.md b/docs/examples/java/account/get.md index 70e2dfb9..83caeaff 100644 --- a/docs/examples/java/account/get.md +++ b/docs/examples/java/account/get.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; @@ -17,3 +18,4 @@ account.get(new CoroutineCallback<>((result, error) -> { System.out.println(result); })); +``` diff --git a/docs/examples/java/account/list-identities.md b/docs/examples/java/account/list-identities.md index 97cdf99b..4c439111 100644 --- a/docs/examples/java/account/list-identities.md +++ b/docs/examples/java/account/list-identities.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; @@ -22,3 +23,4 @@ account.listIdentities( }) ); +``` diff --git a/docs/examples/java/account/list-keys.md b/docs/examples/java/account/list-keys.md new file mode 100644 index 00000000..1c8e96f3 --- /dev/null +++ b/docs/examples/java/account/list-keys.md @@ -0,0 +1,25 @@ +```java +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setSession(""); // The user session to authenticate with + +Account account = new Account(client); + +account.listKeys( + false, // total (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + +``` diff --git a/docs/examples/java/account/list-logs.md b/docs/examples/java/account/list-logs.md index 6c41c7f0..e82f6868 100644 --- a/docs/examples/java/account/list-logs.md +++ b/docs/examples/java/account/list-logs.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; @@ -22,3 +23,4 @@ account.listLogs( }) ); +``` diff --git a/docs/examples/java/account/list-mfa-factors.md b/docs/examples/java/account/list-mfa-factors.md index 0bdc378b..d69f23e1 100644 --- a/docs/examples/java/account/list-mfa-factors.md +++ b/docs/examples/java/account/list-mfa-factors.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; @@ -17,3 +18,4 @@ account.listMFAFactors(new CoroutineCallback<>((result, error) -> { System.out.println(result); })); +``` diff --git a/docs/examples/java/account/list-sessions.md b/docs/examples/java/account/list-sessions.md index 557832df..bb25cff1 100644 --- a/docs/examples/java/account/list-sessions.md +++ b/docs/examples/java/account/list-sessions.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; @@ -17,3 +18,4 @@ account.listSessions(new CoroutineCallback<>((result, error) -> { System.out.println(result); })); +``` diff --git a/docs/examples/java/account/update-email-verification.md b/docs/examples/java/account/update-email-verification.md index 92dfd8d0..dd13e6fe 100644 --- a/docs/examples/java/account/update-email-verification.md +++ b/docs/examples/java/account/update-email-verification.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; @@ -22,3 +23,4 @@ account.updateEmailVerification( }) ); +``` diff --git a/docs/examples/java/account/update-email.md b/docs/examples/java/account/update-email.md index 8529ba6a..06baceae 100644 --- a/docs/examples/java/account/update-email.md +++ b/docs/examples/java/account/update-email.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; @@ -22,3 +23,4 @@ account.updateEmail( }) ); +``` diff --git a/docs/examples/java/account/update-key.md b/docs/examples/java/account/update-key.md new file mode 100644 index 00000000..90bb2993 --- /dev/null +++ b/docs/examples/java/account/update-key.md @@ -0,0 +1,29 @@ +```java +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; +import io.appwrite.enums.Scopes; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setSession(""); // The user session to authenticate with + +Account account = new Account(client); + +account.updateKey( + "", // keyId + "", // name + List.of(Scopes.ACCOUNT), // scopes + "", // expire (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + +``` diff --git a/docs/examples/java/account/update-magic-url-session.md b/docs/examples/java/account/update-magic-url-session.md index 3e236342..8ed558d1 100644 --- a/docs/examples/java/account/update-magic-url-session.md +++ b/docs/examples/java/account/update-magic-url-session.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; @@ -22,3 +23,4 @@ account.updateMagicURLSession( }) ); +``` diff --git a/docs/examples/java/account/update-mfa-authenticator.md b/docs/examples/java/account/update-mfa-authenticator.md index 87e3852c..aaceb297 100644 --- a/docs/examples/java/account/update-mfa-authenticator.md +++ b/docs/examples/java/account/update-mfa-authenticator.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; @@ -23,3 +24,4 @@ account.updateMFAAuthenticator( }) ); +``` diff --git a/docs/examples/java/account/update-mfa-challenge.md b/docs/examples/java/account/update-mfa-challenge.md index 5e1bebe6..a8017995 100644 --- a/docs/examples/java/account/update-mfa-challenge.md +++ b/docs/examples/java/account/update-mfa-challenge.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; @@ -22,3 +23,4 @@ account.updateMFAChallenge( }) ); +``` diff --git a/docs/examples/java/account/update-mfa-recovery-codes.md b/docs/examples/java/account/update-mfa-recovery-codes.md index 7c303ddc..7062704b 100644 --- a/docs/examples/java/account/update-mfa-recovery-codes.md +++ b/docs/examples/java/account/update-mfa-recovery-codes.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; @@ -17,3 +18,4 @@ account.updateMFARecoveryCodes(new CoroutineCallback<>((result, error) -> { System.out.println(result); })); +``` diff --git a/docs/examples/java/account/update-mfa.md b/docs/examples/java/account/update-mfa.md index d1b60c54..f63ee870 100644 --- a/docs/examples/java/account/update-mfa.md +++ b/docs/examples/java/account/update-mfa.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; @@ -21,3 +22,4 @@ account.updateMFA( }) ); +``` diff --git a/docs/examples/java/account/update-name.md b/docs/examples/java/account/update-name.md index 749fe268..fe63d7e4 100644 --- a/docs/examples/java/account/update-name.md +++ b/docs/examples/java/account/update-name.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; @@ -21,3 +22,4 @@ account.updateName( }) ); +``` diff --git a/docs/examples/java/account/update-password.md b/docs/examples/java/account/update-password.md index 8eaa08b4..44a4ea09 100644 --- a/docs/examples/java/account/update-password.md +++ b/docs/examples/java/account/update-password.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; @@ -22,3 +23,4 @@ account.updatePassword( }) ); +``` diff --git a/docs/examples/java/account/update-phone-session.md b/docs/examples/java/account/update-phone-session.md index 97d7cd36..33e701c8 100644 --- a/docs/examples/java/account/update-phone-session.md +++ b/docs/examples/java/account/update-phone-session.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; @@ -22,3 +23,4 @@ account.updatePhoneSession( }) ); +``` diff --git a/docs/examples/java/account/update-phone-verification.md b/docs/examples/java/account/update-phone-verification.md index 99882654..7b692cb4 100644 --- a/docs/examples/java/account/update-phone-verification.md +++ b/docs/examples/java/account/update-phone-verification.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; @@ -22,3 +23,4 @@ account.updatePhoneVerification( }) ); +``` diff --git a/docs/examples/java/account/update-phone.md b/docs/examples/java/account/update-phone.md index d54aa9cf..2ffdc234 100644 --- a/docs/examples/java/account/update-phone.md +++ b/docs/examples/java/account/update-phone.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; @@ -22,3 +23,4 @@ account.updatePhone( }) ); +``` diff --git a/docs/examples/java/account/update-prefs.md b/docs/examples/java/account/update-prefs.md index 4fc1cb54..a3f58f5f 100644 --- a/docs/examples/java/account/update-prefs.md +++ b/docs/examples/java/account/update-prefs.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; @@ -25,3 +26,4 @@ account.updatePrefs( }) ); +``` diff --git a/docs/examples/java/account/update-recovery.md b/docs/examples/java/account/update-recovery.md index 8ab16e18..dc1b83c5 100644 --- a/docs/examples/java/account/update-recovery.md +++ b/docs/examples/java/account/update-recovery.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; @@ -23,3 +24,4 @@ account.updateRecovery( }) ); +``` diff --git a/docs/examples/java/account/update-session.md b/docs/examples/java/account/update-session.md index 8233c054..a33ee5cf 100644 --- a/docs/examples/java/account/update-session.md +++ b/docs/examples/java/account/update-session.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; @@ -21,3 +22,4 @@ account.updateSession( }) ); +``` diff --git a/docs/examples/java/account/update-status.md b/docs/examples/java/account/update-status.md index d5f4f794..777ff6b5 100644 --- a/docs/examples/java/account/update-status.md +++ b/docs/examples/java/account/update-status.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; @@ -17,3 +18,4 @@ account.updateStatus(new CoroutineCallback<>((result, error) -> { System.out.println(result); })); +``` diff --git a/docs/examples/java/account/update-verification.md b/docs/examples/java/account/update-verification.md index dafe6db4..3c19f4f1 100644 --- a/docs/examples/java/account/update-verification.md +++ b/docs/examples/java/account/update-verification.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; @@ -22,3 +23,4 @@ account.updateVerification( }) ); +``` diff --git a/docs/examples/java/avatars/get-browser.md b/docs/examples/java/avatars/get-browser.md index 9c3433ee..72748afc 100644 --- a/docs/examples/java/avatars/get-browser.md +++ b/docs/examples/java/avatars/get-browser.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; @@ -25,3 +26,4 @@ avatars.getBrowser( }) ); +``` diff --git a/docs/examples/java/avatars/get-credit-card.md b/docs/examples/java/avatars/get-credit-card.md index 69046381..8f93da91 100644 --- a/docs/examples/java/avatars/get-credit-card.md +++ b/docs/examples/java/avatars/get-credit-card.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; @@ -25,3 +26,4 @@ avatars.getCreditCard( }) ); +``` diff --git a/docs/examples/java/avatars/get-favicon.md b/docs/examples/java/avatars/get-favicon.md index f4e89cfa..6df13f5e 100644 --- a/docs/examples/java/avatars/get-favicon.md +++ b/docs/examples/java/avatars/get-favicon.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; @@ -21,3 +22,4 @@ avatars.getFavicon( }) ); +``` diff --git a/docs/examples/java/avatars/get-flag.md b/docs/examples/java/avatars/get-flag.md index 159dcdcd..f66a872d 100644 --- a/docs/examples/java/avatars/get-flag.md +++ b/docs/examples/java/avatars/get-flag.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; @@ -25,3 +26,4 @@ avatars.getFlag( }) ); +``` diff --git a/docs/examples/java/avatars/get-image.md b/docs/examples/java/avatars/get-image.md index afad760c..7f93b9f9 100644 --- a/docs/examples/java/avatars/get-image.md +++ b/docs/examples/java/avatars/get-image.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; @@ -23,3 +24,4 @@ avatars.getImage( }) ); +``` diff --git a/docs/examples/java/avatars/get-initials.md b/docs/examples/java/avatars/get-initials.md index 171b636f..31792b91 100644 --- a/docs/examples/java/avatars/get-initials.md +++ b/docs/examples/java/avatars/get-initials.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; @@ -24,3 +25,4 @@ avatars.getInitials( }) ); +``` diff --git a/docs/examples/java/avatars/get-qr.md b/docs/examples/java/avatars/get-qr.md index 113fd1fc..0e22f63f 100644 --- a/docs/examples/java/avatars/get-qr.md +++ b/docs/examples/java/avatars/get-qr.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; @@ -24,3 +25,4 @@ avatars.getQR( }) ); +``` diff --git a/docs/examples/java/avatars/get-screenshot.md b/docs/examples/java/avatars/get-screenshot.md index a13b92ff..368e792d 100644 --- a/docs/examples/java/avatars/get-screenshot.md +++ b/docs/examples/java/avatars/get-screenshot.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; @@ -47,3 +48,4 @@ avatars.getScreenshot( }) ); +``` diff --git a/docs/examples/java/backups/create-archive.md b/docs/examples/java/backups/create-archive.md new file mode 100644 index 00000000..fb181fcc --- /dev/null +++ b/docs/examples/java/backups/create-archive.md @@ -0,0 +1,27 @@ +```java +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Backups; +import io.appwrite.enums.BackupServices; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Backups backups = new Backups(client); + +backups.createArchive( + List.of(BackupServices.DATABASES), // services + "", // resourceId (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + +``` diff --git a/docs/examples/java/backups/create-policy.md b/docs/examples/java/backups/create-policy.md new file mode 100644 index 00000000..42003cc4 --- /dev/null +++ b/docs/examples/java/backups/create-policy.md @@ -0,0 +1,32 @@ +```java +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Backups; +import io.appwrite.enums.BackupServices; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Backups backups = new Backups(client); + +backups.createPolicy( + "", // policyId + List.of(BackupServices.DATABASES), // services + 1, // retention + "", // schedule + "", // name (optional) + "", // resourceId (optional) + false, // enabled (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + +``` diff --git a/docs/examples/java/backups/create-restoration.md b/docs/examples/java/backups/create-restoration.md new file mode 100644 index 00000000..099f5704 --- /dev/null +++ b/docs/examples/java/backups/create-restoration.md @@ -0,0 +1,29 @@ +```java +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Backups; +import io.appwrite.enums.BackupServices; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Backups backups = new Backups(client); + +backups.createRestoration( + "", // archiveId + List.of(BackupServices.DATABASES), // services + "", // newResourceId (optional) + "", // newResourceName (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + +``` diff --git a/docs/examples/java/backups/delete-archive.md b/docs/examples/java/backups/delete-archive.md new file mode 100644 index 00000000..c413a5de --- /dev/null +++ b/docs/examples/java/backups/delete-archive.md @@ -0,0 +1,25 @@ +```java +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Backups; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Backups backups = new Backups(client); + +backups.deleteArchive( + "", // archiveId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + +``` diff --git a/docs/examples/java/backups/delete-policy.md b/docs/examples/java/backups/delete-policy.md new file mode 100644 index 00000000..3ece5e38 --- /dev/null +++ b/docs/examples/java/backups/delete-policy.md @@ -0,0 +1,25 @@ +```java +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Backups; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Backups backups = new Backups(client); + +backups.deletePolicy( + "", // policyId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + +``` diff --git a/docs/examples/java/backups/get-archive.md b/docs/examples/java/backups/get-archive.md new file mode 100644 index 00000000..2fea5371 --- /dev/null +++ b/docs/examples/java/backups/get-archive.md @@ -0,0 +1,25 @@ +```java +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Backups; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Backups backups = new Backups(client); + +backups.getArchive( + "", // archiveId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + +``` diff --git a/docs/examples/java/backups/get-policy.md b/docs/examples/java/backups/get-policy.md new file mode 100644 index 00000000..844e436d --- /dev/null +++ b/docs/examples/java/backups/get-policy.md @@ -0,0 +1,25 @@ +```java +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Backups; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Backups backups = new Backups(client); + +backups.getPolicy( + "", // policyId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + +``` diff --git a/docs/examples/java/backups/get-restoration.md b/docs/examples/java/backups/get-restoration.md new file mode 100644 index 00000000..cba9b042 --- /dev/null +++ b/docs/examples/java/backups/get-restoration.md @@ -0,0 +1,25 @@ +```java +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Backups; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Backups backups = new Backups(client); + +backups.getRestoration( + "", // restorationId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + +``` diff --git a/docs/examples/java/backups/list-archives.md b/docs/examples/java/backups/list-archives.md new file mode 100644 index 00000000..e4990166 --- /dev/null +++ b/docs/examples/java/backups/list-archives.md @@ -0,0 +1,25 @@ +```java +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Backups; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Backups backups = new Backups(client); + +backups.listArchives( + List.of(), // queries (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + +``` diff --git a/docs/examples/java/backups/list-policies.md b/docs/examples/java/backups/list-policies.md new file mode 100644 index 00000000..89f2ecf6 --- /dev/null +++ b/docs/examples/java/backups/list-policies.md @@ -0,0 +1,25 @@ +```java +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Backups; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Backups backups = new Backups(client); + +backups.listPolicies( + List.of(), // queries (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + +``` diff --git a/docs/examples/java/backups/list-restorations.md b/docs/examples/java/backups/list-restorations.md new file mode 100644 index 00000000..997d8002 --- /dev/null +++ b/docs/examples/java/backups/list-restorations.md @@ -0,0 +1,25 @@ +```java +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Backups; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Backups backups = new Backups(client); + +backups.listRestorations( + List.of(), // queries (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + +``` diff --git a/docs/examples/java/backups/update-policy.md b/docs/examples/java/backups/update-policy.md new file mode 100644 index 00000000..c2705362 --- /dev/null +++ b/docs/examples/java/backups/update-policy.md @@ -0,0 +1,29 @@ +```java +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Backups; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Backups backups = new Backups(client); + +backups.updatePolicy( + "", // policyId + "", // name (optional) + 1, // retention (optional) + "", // schedule (optional) + false, // enabled (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + +``` diff --git a/docs/examples/java/databases/create-boolean-attribute.md b/docs/examples/java/databases/create-boolean-attribute.md index 75854714..7daed563 100644 --- a/docs/examples/java/databases/create-boolean-attribute.md +++ b/docs/examples/java/databases/create-boolean-attribute.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; @@ -26,3 +27,4 @@ databases.createBooleanAttribute( }) ); +``` diff --git a/docs/examples/java/databases/create-collection.md b/docs/examples/java/databases/create-collection.md index 083e3700..32d9cd54 100644 --- a/docs/examples/java/databases/create-collection.md +++ b/docs/examples/java/databases/create-collection.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.Permission; @@ -30,3 +31,4 @@ databases.createCollection( }) ); +``` diff --git a/docs/examples/java/databases/create-datetime-attribute.md b/docs/examples/java/databases/create-datetime-attribute.md index d95e048b..e00a6d53 100644 --- a/docs/examples/java/databases/create-datetime-attribute.md +++ b/docs/examples/java/databases/create-datetime-attribute.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; @@ -26,3 +27,4 @@ databases.createDatetimeAttribute( }) ); +``` diff --git a/docs/examples/java/databases/create-document.md b/docs/examples/java/databases/create-document.md index 7ff195f6..34206c2d 100644 --- a/docs/examples/java/databases/create-document.md +++ b/docs/examples/java/databases/create-document.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.Permission; @@ -34,3 +35,4 @@ databases.createDocument( }) ); +``` diff --git a/docs/examples/java/databases/create-documents.md b/docs/examples/java/databases/create-documents.md index be695fe8..5a158bf5 100644 --- a/docs/examples/java/databases/create-documents.md +++ b/docs/examples/java/databases/create-documents.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; @@ -24,3 +25,4 @@ databases.createDocuments( }) ); +``` diff --git a/docs/examples/java/databases/create-email-attribute.md b/docs/examples/java/databases/create-email-attribute.md index b2ecc99a..c556ea4b 100644 --- a/docs/examples/java/databases/create-email-attribute.md +++ b/docs/examples/java/databases/create-email-attribute.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; @@ -26,3 +27,4 @@ databases.createEmailAttribute( }) ); +``` diff --git a/docs/examples/java/databases/create-enum-attribute.md b/docs/examples/java/databases/create-enum-attribute.md index b8666666..fe94c4be 100644 --- a/docs/examples/java/databases/create-enum-attribute.md +++ b/docs/examples/java/databases/create-enum-attribute.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; @@ -27,3 +28,4 @@ databases.createEnumAttribute( }) ); +``` diff --git a/docs/examples/java/databases/create-float-attribute.md b/docs/examples/java/databases/create-float-attribute.md index 2263cdb5..16d057bb 100644 --- a/docs/examples/java/databases/create-float-attribute.md +++ b/docs/examples/java/databases/create-float-attribute.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; @@ -28,3 +29,4 @@ databases.createFloatAttribute( }) ); +``` diff --git a/docs/examples/java/databases/create-index.md b/docs/examples/java/databases/create-index.md index d6bb3801..5dc22225 100644 --- a/docs/examples/java/databases/create-index.md +++ b/docs/examples/java/databases/create-index.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; @@ -29,3 +30,4 @@ databases.createIndex( }) ); +``` diff --git a/docs/examples/java/databases/create-integer-attribute.md b/docs/examples/java/databases/create-integer-attribute.md index b084e7c9..5716f44e 100644 --- a/docs/examples/java/databases/create-integer-attribute.md +++ b/docs/examples/java/databases/create-integer-attribute.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; @@ -28,3 +29,4 @@ databases.createIntegerAttribute( }) ); +``` diff --git a/docs/examples/java/databases/create-ip-attribute.md b/docs/examples/java/databases/create-ip-attribute.md index ba62dba1..34569a9b 100644 --- a/docs/examples/java/databases/create-ip-attribute.md +++ b/docs/examples/java/databases/create-ip-attribute.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; @@ -26,3 +27,4 @@ databases.createIpAttribute( }) ); +``` diff --git a/docs/examples/java/databases/create-line-attribute.md b/docs/examples/java/databases/create-line-attribute.md index c0daeac6..4bcb1fe8 100644 --- a/docs/examples/java/databases/create-line-attribute.md +++ b/docs/examples/java/databases/create-line-attribute.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; @@ -25,3 +26,4 @@ databases.createLineAttribute( }) ); +``` diff --git a/docs/examples/java/databases/create-longtext-attribute.md b/docs/examples/java/databases/create-longtext-attribute.md index 20357dfb..abbf4644 100644 --- a/docs/examples/java/databases/create-longtext-attribute.md +++ b/docs/examples/java/databases/create-longtext-attribute.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; @@ -26,3 +27,4 @@ databases.createLongtextAttribute( }) ); +``` diff --git a/docs/examples/java/databases/create-mediumtext-attribute.md b/docs/examples/java/databases/create-mediumtext-attribute.md index 64ebbe57..7c6608b4 100644 --- a/docs/examples/java/databases/create-mediumtext-attribute.md +++ b/docs/examples/java/databases/create-mediumtext-attribute.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; @@ -26,3 +27,4 @@ databases.createMediumtextAttribute( }) ); +``` diff --git a/docs/examples/java/databases/create-operations.md b/docs/examples/java/databases/create-operations.md index c935f82a..29f1efbd 100644 --- a/docs/examples/java/databases/create-operations.md +++ b/docs/examples/java/databases/create-operations.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; @@ -30,3 +31,4 @@ databases.createOperations( }) ); +``` diff --git a/docs/examples/java/databases/create-point-attribute.md b/docs/examples/java/databases/create-point-attribute.md index c3b5d503..98e14113 100644 --- a/docs/examples/java/databases/create-point-attribute.md +++ b/docs/examples/java/databases/create-point-attribute.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; @@ -25,3 +26,4 @@ databases.createPointAttribute( }) ); +``` diff --git a/docs/examples/java/databases/create-polygon-attribute.md b/docs/examples/java/databases/create-polygon-attribute.md index 4f8fe036..184258f5 100644 --- a/docs/examples/java/databases/create-polygon-attribute.md +++ b/docs/examples/java/databases/create-polygon-attribute.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; @@ -25,3 +26,4 @@ databases.createPolygonAttribute( }) ); +``` diff --git a/docs/examples/java/databases/create-relationship-attribute.md b/docs/examples/java/databases/create-relationship-attribute.md index 580be890..307b948b 100644 --- a/docs/examples/java/databases/create-relationship-attribute.md +++ b/docs/examples/java/databases/create-relationship-attribute.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; @@ -30,3 +31,4 @@ databases.createRelationshipAttribute( }) ); +``` diff --git a/docs/examples/java/databases/create-string-attribute.md b/docs/examples/java/databases/create-string-attribute.md index 3286c7aa..6c13a029 100644 --- a/docs/examples/java/databases/create-string-attribute.md +++ b/docs/examples/java/databases/create-string-attribute.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; @@ -28,3 +29,4 @@ databases.createStringAttribute( }) ); +``` diff --git a/docs/examples/java/databases/create-text-attribute.md b/docs/examples/java/databases/create-text-attribute.md index 0d196f03..92e7003e 100644 --- a/docs/examples/java/databases/create-text-attribute.md +++ b/docs/examples/java/databases/create-text-attribute.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; @@ -26,3 +27,4 @@ databases.createTextAttribute( }) ); +``` diff --git a/docs/examples/java/databases/create-transaction.md b/docs/examples/java/databases/create-transaction.md index 5fb7c593..4cbee4ed 100644 --- a/docs/examples/java/databases/create-transaction.md +++ b/docs/examples/java/databases/create-transaction.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; @@ -21,3 +22,4 @@ databases.createTransaction( }) ); +``` diff --git a/docs/examples/java/databases/create-url-attribute.md b/docs/examples/java/databases/create-url-attribute.md index d445d67e..c5d670ef 100644 --- a/docs/examples/java/databases/create-url-attribute.md +++ b/docs/examples/java/databases/create-url-attribute.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; @@ -26,3 +27,4 @@ databases.createUrlAttribute( }) ); +``` diff --git a/docs/examples/java/databases/create-varchar-attribute.md b/docs/examples/java/databases/create-varchar-attribute.md index 4794cd5d..6d2ea625 100644 --- a/docs/examples/java/databases/create-varchar-attribute.md +++ b/docs/examples/java/databases/create-varchar-attribute.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; @@ -27,3 +28,4 @@ databases.createVarcharAttribute( }) ); +``` diff --git a/docs/examples/java/databases/create.md b/docs/examples/java/databases/create.md index 31cd37e1..8806db37 100644 --- a/docs/examples/java/databases/create.md +++ b/docs/examples/java/databases/create.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; @@ -23,3 +24,4 @@ databases.create( }) ); +``` diff --git a/docs/examples/java/databases/decrement-document-attribute.md b/docs/examples/java/databases/decrement-document-attribute.md index a852083b..96f921c0 100644 --- a/docs/examples/java/databases/decrement-document-attribute.md +++ b/docs/examples/java/databases/decrement-document-attribute.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; @@ -27,3 +28,4 @@ databases.decrementDocumentAttribute( }) ); +``` diff --git a/docs/examples/java/databases/delete-attribute.md b/docs/examples/java/databases/delete-attribute.md index 236d492a..d97d5a56 100644 --- a/docs/examples/java/databases/delete-attribute.md +++ b/docs/examples/java/databases/delete-attribute.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; @@ -23,3 +24,4 @@ databases.deleteAttribute( }) ); +``` diff --git a/docs/examples/java/databases/delete-collection.md b/docs/examples/java/databases/delete-collection.md index 5da2a3d6..c2849bb7 100644 --- a/docs/examples/java/databases/delete-collection.md +++ b/docs/examples/java/databases/delete-collection.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; @@ -22,3 +23,4 @@ databases.deleteCollection( }) ); +``` diff --git a/docs/examples/java/databases/delete-document.md b/docs/examples/java/databases/delete-document.md index 2f7003b2..cd67c320 100644 --- a/docs/examples/java/databases/delete-document.md +++ b/docs/examples/java/databases/delete-document.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; @@ -24,3 +25,4 @@ databases.deleteDocument( }) ); +``` diff --git a/docs/examples/java/databases/delete-documents.md b/docs/examples/java/databases/delete-documents.md index f535ae77..5c439230 100644 --- a/docs/examples/java/databases/delete-documents.md +++ b/docs/examples/java/databases/delete-documents.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; @@ -24,3 +25,4 @@ databases.deleteDocuments( }) ); +``` diff --git a/docs/examples/java/databases/delete-index.md b/docs/examples/java/databases/delete-index.md index 6f684357..b4276758 100644 --- a/docs/examples/java/databases/delete-index.md +++ b/docs/examples/java/databases/delete-index.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; @@ -23,3 +24,4 @@ databases.deleteIndex( }) ); +``` diff --git a/docs/examples/java/databases/delete-transaction.md b/docs/examples/java/databases/delete-transaction.md index 200bbbdc..1175643f 100644 --- a/docs/examples/java/databases/delete-transaction.md +++ b/docs/examples/java/databases/delete-transaction.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; @@ -21,3 +22,4 @@ databases.deleteTransaction( }) ); +``` diff --git a/docs/examples/java/databases/delete.md b/docs/examples/java/databases/delete.md index b0824913..2993d798 100644 --- a/docs/examples/java/databases/delete.md +++ b/docs/examples/java/databases/delete.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; @@ -21,3 +22,4 @@ databases.delete( }) ); +``` diff --git a/docs/examples/java/databases/get-attribute.md b/docs/examples/java/databases/get-attribute.md index 672f0b06..fe826ab2 100644 --- a/docs/examples/java/databases/get-attribute.md +++ b/docs/examples/java/databases/get-attribute.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; @@ -23,3 +24,4 @@ databases.getAttribute( }) ); +``` diff --git a/docs/examples/java/databases/get-collection.md b/docs/examples/java/databases/get-collection.md index 59401be3..0584c0ed 100644 --- a/docs/examples/java/databases/get-collection.md +++ b/docs/examples/java/databases/get-collection.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; @@ -22,3 +23,4 @@ databases.getCollection( }) ); +``` diff --git a/docs/examples/java/databases/get-document.md b/docs/examples/java/databases/get-document.md index d3e8b8b3..80d63bb2 100644 --- a/docs/examples/java/databases/get-document.md +++ b/docs/examples/java/databases/get-document.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; @@ -25,3 +26,4 @@ databases.getDocument( }) ); +``` diff --git a/docs/examples/java/databases/get-index.md b/docs/examples/java/databases/get-index.md index 61cfe84e..d32a163d 100644 --- a/docs/examples/java/databases/get-index.md +++ b/docs/examples/java/databases/get-index.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; @@ -23,3 +24,4 @@ databases.getIndex( }) ); +``` diff --git a/docs/examples/java/databases/get-transaction.md b/docs/examples/java/databases/get-transaction.md index d896ca07..48f44db7 100644 --- a/docs/examples/java/databases/get-transaction.md +++ b/docs/examples/java/databases/get-transaction.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; @@ -21,3 +22,4 @@ databases.getTransaction( }) ); +``` diff --git a/docs/examples/java/databases/get.md b/docs/examples/java/databases/get.md index b0e37421..aafe3798 100644 --- a/docs/examples/java/databases/get.md +++ b/docs/examples/java/databases/get.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; @@ -21,3 +22,4 @@ databases.get( }) ); +``` diff --git a/docs/examples/java/databases/increment-document-attribute.md b/docs/examples/java/databases/increment-document-attribute.md index be837d00..dbf0685a 100644 --- a/docs/examples/java/databases/increment-document-attribute.md +++ b/docs/examples/java/databases/increment-document-attribute.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; @@ -27,3 +28,4 @@ databases.incrementDocumentAttribute( }) ); +``` diff --git a/docs/examples/java/databases/list-attributes.md b/docs/examples/java/databases/list-attributes.md index dd883e23..43019a15 100644 --- a/docs/examples/java/databases/list-attributes.md +++ b/docs/examples/java/databases/list-attributes.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; @@ -24,3 +25,4 @@ databases.listAttributes( }) ); +``` diff --git a/docs/examples/java/databases/list-collections.md b/docs/examples/java/databases/list-collections.md index ddb47c99..53684f09 100644 --- a/docs/examples/java/databases/list-collections.md +++ b/docs/examples/java/databases/list-collections.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; @@ -24,3 +25,4 @@ databases.listCollections( }) ); +``` diff --git a/docs/examples/java/databases/list-documents.md b/docs/examples/java/databases/list-documents.md index b8ef0717..415d880e 100644 --- a/docs/examples/java/databases/list-documents.md +++ b/docs/examples/java/databases/list-documents.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; @@ -25,3 +26,4 @@ databases.listDocuments( }) ); +``` diff --git a/docs/examples/java/databases/list-indexes.md b/docs/examples/java/databases/list-indexes.md index c7019041..e483c5e7 100644 --- a/docs/examples/java/databases/list-indexes.md +++ b/docs/examples/java/databases/list-indexes.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; @@ -24,3 +25,4 @@ databases.listIndexes( }) ); +``` diff --git a/docs/examples/java/databases/list-transactions.md b/docs/examples/java/databases/list-transactions.md index 8a6f6054..27fe4e93 100644 --- a/docs/examples/java/databases/list-transactions.md +++ b/docs/examples/java/databases/list-transactions.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; @@ -21,3 +22,4 @@ databases.listTransactions( }) ); +``` diff --git a/docs/examples/java/databases/list.md b/docs/examples/java/databases/list.md index 32ef454a..aa4d2d7b 100644 --- a/docs/examples/java/databases/list.md +++ b/docs/examples/java/databases/list.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; @@ -23,3 +24,4 @@ databases.list( }) ); +``` diff --git a/docs/examples/java/databases/update-boolean-attribute.md b/docs/examples/java/databases/update-boolean-attribute.md index 3c958510..691eb61f 100644 --- a/docs/examples/java/databases/update-boolean-attribute.md +++ b/docs/examples/java/databases/update-boolean-attribute.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; @@ -26,3 +27,4 @@ databases.updateBooleanAttribute( }) ); +``` diff --git a/docs/examples/java/databases/update-collection.md b/docs/examples/java/databases/update-collection.md index 11d6b66c..4e10b592 100644 --- a/docs/examples/java/databases/update-collection.md +++ b/docs/examples/java/databases/update-collection.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.Permission; @@ -28,3 +29,4 @@ databases.updateCollection( }) ); +``` diff --git a/docs/examples/java/databases/update-datetime-attribute.md b/docs/examples/java/databases/update-datetime-attribute.md index 3f451b83..5d74973f 100644 --- a/docs/examples/java/databases/update-datetime-attribute.md +++ b/docs/examples/java/databases/update-datetime-attribute.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; @@ -26,3 +27,4 @@ databases.updateDatetimeAttribute( }) ); +``` diff --git a/docs/examples/java/databases/update-document.md b/docs/examples/java/databases/update-document.md index 2cd48d1e..cb47ac15 100644 --- a/docs/examples/java/databases/update-document.md +++ b/docs/examples/java/databases/update-document.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.Permission; @@ -34,3 +35,4 @@ databases.updateDocument( }) ); +``` diff --git a/docs/examples/java/databases/update-documents.md b/docs/examples/java/databases/update-documents.md index 9f2d73bd..641a69c8 100644 --- a/docs/examples/java/databases/update-documents.md +++ b/docs/examples/java/databases/update-documents.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; @@ -31,3 +32,4 @@ databases.updateDocuments( }) ); +``` diff --git a/docs/examples/java/databases/update-email-attribute.md b/docs/examples/java/databases/update-email-attribute.md index 1ff12217..c1a63da7 100644 --- a/docs/examples/java/databases/update-email-attribute.md +++ b/docs/examples/java/databases/update-email-attribute.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; @@ -26,3 +27,4 @@ databases.updateEmailAttribute( }) ); +``` diff --git a/docs/examples/java/databases/update-enum-attribute.md b/docs/examples/java/databases/update-enum-attribute.md index 8870e372..7d5f939d 100644 --- a/docs/examples/java/databases/update-enum-attribute.md +++ b/docs/examples/java/databases/update-enum-attribute.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; @@ -27,3 +28,4 @@ databases.updateEnumAttribute( }) ); +``` diff --git a/docs/examples/java/databases/update-float-attribute.md b/docs/examples/java/databases/update-float-attribute.md index 0076987f..54609f39 100644 --- a/docs/examples/java/databases/update-float-attribute.md +++ b/docs/examples/java/databases/update-float-attribute.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; @@ -28,3 +29,4 @@ databases.updateFloatAttribute( }) ); +``` diff --git a/docs/examples/java/databases/update-integer-attribute.md b/docs/examples/java/databases/update-integer-attribute.md index c39af22b..08f87fe9 100644 --- a/docs/examples/java/databases/update-integer-attribute.md +++ b/docs/examples/java/databases/update-integer-attribute.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; @@ -28,3 +29,4 @@ databases.updateIntegerAttribute( }) ); +``` diff --git a/docs/examples/java/databases/update-ip-attribute.md b/docs/examples/java/databases/update-ip-attribute.md index 44b4da2a..bcc9f22c 100644 --- a/docs/examples/java/databases/update-ip-attribute.md +++ b/docs/examples/java/databases/update-ip-attribute.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; @@ -26,3 +27,4 @@ databases.updateIpAttribute( }) ); +``` diff --git a/docs/examples/java/databases/update-line-attribute.md b/docs/examples/java/databases/update-line-attribute.md index 14d83eee..ccd348da 100644 --- a/docs/examples/java/databases/update-line-attribute.md +++ b/docs/examples/java/databases/update-line-attribute.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; @@ -26,3 +27,4 @@ databases.updateLineAttribute( }) ); +``` diff --git a/docs/examples/java/databases/update-longtext-attribute.md b/docs/examples/java/databases/update-longtext-attribute.md index a59ada5a..ad0e83cb 100644 --- a/docs/examples/java/databases/update-longtext-attribute.md +++ b/docs/examples/java/databases/update-longtext-attribute.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; @@ -26,3 +27,4 @@ databases.updateLongtextAttribute( }) ); +``` diff --git a/docs/examples/java/databases/update-mediumtext-attribute.md b/docs/examples/java/databases/update-mediumtext-attribute.md index 44f19643..77894800 100644 --- a/docs/examples/java/databases/update-mediumtext-attribute.md +++ b/docs/examples/java/databases/update-mediumtext-attribute.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; @@ -26,3 +27,4 @@ databases.updateMediumtextAttribute( }) ); +``` diff --git a/docs/examples/java/databases/update-point-attribute.md b/docs/examples/java/databases/update-point-attribute.md index 5d44d7a1..fdfdada1 100644 --- a/docs/examples/java/databases/update-point-attribute.md +++ b/docs/examples/java/databases/update-point-attribute.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; @@ -26,3 +27,4 @@ databases.updatePointAttribute( }) ); +``` diff --git a/docs/examples/java/databases/update-polygon-attribute.md b/docs/examples/java/databases/update-polygon-attribute.md index 2c530b9a..640f3ee2 100644 --- a/docs/examples/java/databases/update-polygon-attribute.md +++ b/docs/examples/java/databases/update-polygon-attribute.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; @@ -26,3 +27,4 @@ databases.updatePolygonAttribute( }) ); +``` diff --git a/docs/examples/java/databases/update-relationship-attribute.md b/docs/examples/java/databases/update-relationship-attribute.md index 998f0beb..9024a409 100644 --- a/docs/examples/java/databases/update-relationship-attribute.md +++ b/docs/examples/java/databases/update-relationship-attribute.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; @@ -26,3 +27,4 @@ databases.updateRelationshipAttribute( }) ); +``` diff --git a/docs/examples/java/databases/update-string-attribute.md b/docs/examples/java/databases/update-string-attribute.md index 1f156f3d..e0b440c1 100644 --- a/docs/examples/java/databases/update-string-attribute.md +++ b/docs/examples/java/databases/update-string-attribute.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; @@ -27,3 +28,4 @@ databases.updateStringAttribute( }) ); +``` diff --git a/docs/examples/java/databases/update-text-attribute.md b/docs/examples/java/databases/update-text-attribute.md index 83a293f2..72edaf1c 100644 --- a/docs/examples/java/databases/update-text-attribute.md +++ b/docs/examples/java/databases/update-text-attribute.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; @@ -26,3 +27,4 @@ databases.updateTextAttribute( }) ); +``` diff --git a/docs/examples/java/databases/update-transaction.md b/docs/examples/java/databases/update-transaction.md index 8479ed31..7f191826 100644 --- a/docs/examples/java/databases/update-transaction.md +++ b/docs/examples/java/databases/update-transaction.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; @@ -23,3 +24,4 @@ databases.updateTransaction( }) ); +``` diff --git a/docs/examples/java/databases/update-url-attribute.md b/docs/examples/java/databases/update-url-attribute.md index 959054ab..94f6b997 100644 --- a/docs/examples/java/databases/update-url-attribute.md +++ b/docs/examples/java/databases/update-url-attribute.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; @@ -26,3 +27,4 @@ databases.updateUrlAttribute( }) ); +``` diff --git a/docs/examples/java/databases/update-varchar-attribute.md b/docs/examples/java/databases/update-varchar-attribute.md index 2011010b..3070aa39 100644 --- a/docs/examples/java/databases/update-varchar-attribute.md +++ b/docs/examples/java/databases/update-varchar-attribute.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; @@ -27,3 +28,4 @@ databases.updateVarcharAttribute( }) ); +``` diff --git a/docs/examples/java/databases/update.md b/docs/examples/java/databases/update.md index 138ca61b..f8ad19f0 100644 --- a/docs/examples/java/databases/update.md +++ b/docs/examples/java/databases/update.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; @@ -23,3 +24,4 @@ databases.update( }) ); +``` diff --git a/docs/examples/java/databases/upsert-document.md b/docs/examples/java/databases/upsert-document.md index a1703420..3f810521 100644 --- a/docs/examples/java/databases/upsert-document.md +++ b/docs/examples/java/databases/upsert-document.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.Permission; @@ -34,3 +35,4 @@ databases.upsertDocument( }) ); +``` diff --git a/docs/examples/java/databases/upsert-documents.md b/docs/examples/java/databases/upsert-documents.md index ee4450fc..80e3862e 100644 --- a/docs/examples/java/databases/upsert-documents.md +++ b/docs/examples/java/databases/upsert-documents.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; @@ -24,3 +25,4 @@ databases.upsertDocuments( }) ); +``` diff --git a/docs/examples/java/functions/create-deployment.md b/docs/examples/java/functions/create-deployment.md index 6e435f41..9a56935a 100644 --- a/docs/examples/java/functions/create-deployment.md +++ b/docs/examples/java/functions/create-deployment.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.models.InputFile; @@ -26,3 +27,4 @@ functions.createDeployment( }) ); +``` diff --git a/docs/examples/java/functions/create-duplicate-deployment.md b/docs/examples/java/functions/create-duplicate-deployment.md index 6b9d9a13..afb33a90 100644 --- a/docs/examples/java/functions/create-duplicate-deployment.md +++ b/docs/examples/java/functions/create-duplicate-deployment.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; @@ -23,3 +24,4 @@ functions.createDuplicateDeployment( }) ); +``` diff --git a/docs/examples/java/functions/create-execution.md b/docs/examples/java/functions/create-execution.md index 98a4d1b5..222761eb 100644 --- a/docs/examples/java/functions/create-execution.md +++ b/docs/examples/java/functions/create-execution.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; @@ -28,3 +29,4 @@ functions.createExecution( }) ); +``` diff --git a/docs/examples/java/functions/create-template-deployment.md b/docs/examples/java/functions/create-template-deployment.md index 59c105df..1059cd5e 100644 --- a/docs/examples/java/functions/create-template-deployment.md +++ b/docs/examples/java/functions/create-template-deployment.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; @@ -28,3 +29,4 @@ functions.createTemplateDeployment( }) ); +``` diff --git a/docs/examples/java/functions/create-variable.md b/docs/examples/java/functions/create-variable.md index 70764fbd..ae5b6cb8 100644 --- a/docs/examples/java/functions/create-variable.md +++ b/docs/examples/java/functions/create-variable.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; @@ -24,3 +25,4 @@ functions.createVariable( }) ); +``` diff --git a/docs/examples/java/functions/create-vcs-deployment.md b/docs/examples/java/functions/create-vcs-deployment.md index 25f2f284..94bf9dfd 100644 --- a/docs/examples/java/functions/create-vcs-deployment.md +++ b/docs/examples/java/functions/create-vcs-deployment.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; @@ -25,3 +26,4 @@ functions.createVcsDeployment( }) ); +``` diff --git a/docs/examples/java/functions/create.md b/docs/examples/java/functions/create.md index 04cbcd49..47015f36 100644 --- a/docs/examples/java/functions/create.md +++ b/docs/examples/java/functions/create.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; @@ -40,3 +41,4 @@ functions.create( }) ); +``` diff --git a/docs/examples/java/functions/delete-deployment.md b/docs/examples/java/functions/delete-deployment.md index 1a6279ff..a7244cdb 100644 --- a/docs/examples/java/functions/delete-deployment.md +++ b/docs/examples/java/functions/delete-deployment.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; @@ -22,3 +23,4 @@ functions.deleteDeployment( }) ); +``` diff --git a/docs/examples/java/functions/delete-execution.md b/docs/examples/java/functions/delete-execution.md index 68f81e8e..43b556a9 100644 --- a/docs/examples/java/functions/delete-execution.md +++ b/docs/examples/java/functions/delete-execution.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; @@ -22,3 +23,4 @@ functions.deleteExecution( }) ); +``` diff --git a/docs/examples/java/functions/delete-variable.md b/docs/examples/java/functions/delete-variable.md index c881bdc8..7298bb1a 100644 --- a/docs/examples/java/functions/delete-variable.md +++ b/docs/examples/java/functions/delete-variable.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; @@ -22,3 +23,4 @@ functions.deleteVariable( }) ); +``` diff --git a/docs/examples/java/functions/delete.md b/docs/examples/java/functions/delete.md index 255fc002..fabcb1a7 100644 --- a/docs/examples/java/functions/delete.md +++ b/docs/examples/java/functions/delete.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; @@ -21,3 +22,4 @@ functions.delete( }) ); +``` diff --git a/docs/examples/java/functions/get-deployment-download.md b/docs/examples/java/functions/get-deployment-download.md index 2b6d38a7..59de9f04 100644 --- a/docs/examples/java/functions/get-deployment-download.md +++ b/docs/examples/java/functions/get-deployment-download.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; @@ -24,3 +25,4 @@ functions.getDeploymentDownload( }) ); +``` diff --git a/docs/examples/java/functions/get-deployment.md b/docs/examples/java/functions/get-deployment.md index b3000272..a6a96d14 100644 --- a/docs/examples/java/functions/get-deployment.md +++ b/docs/examples/java/functions/get-deployment.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; @@ -22,3 +23,4 @@ functions.getDeployment( }) ); +``` diff --git a/docs/examples/java/functions/get-execution.md b/docs/examples/java/functions/get-execution.md index 76e302fa..bfaabe7a 100644 --- a/docs/examples/java/functions/get-execution.md +++ b/docs/examples/java/functions/get-execution.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; @@ -22,3 +23,4 @@ functions.getExecution( }) ); +``` diff --git a/docs/examples/java/functions/get-variable.md b/docs/examples/java/functions/get-variable.md index d54882b2..e2ff42ee 100644 --- a/docs/examples/java/functions/get-variable.md +++ b/docs/examples/java/functions/get-variable.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; @@ -22,3 +23,4 @@ functions.getVariable( }) ); +``` diff --git a/docs/examples/java/functions/get.md b/docs/examples/java/functions/get.md index aa55b93e..fb3dc8d2 100644 --- a/docs/examples/java/functions/get.md +++ b/docs/examples/java/functions/get.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; @@ -21,3 +22,4 @@ functions.get( }) ); +``` diff --git a/docs/examples/java/functions/list-deployments.md b/docs/examples/java/functions/list-deployments.md index a92cf079..4e0de978 100644 --- a/docs/examples/java/functions/list-deployments.md +++ b/docs/examples/java/functions/list-deployments.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; @@ -24,3 +25,4 @@ functions.listDeployments( }) ); +``` diff --git a/docs/examples/java/functions/list-executions.md b/docs/examples/java/functions/list-executions.md index 2b97ab3b..b7ab9efb 100644 --- a/docs/examples/java/functions/list-executions.md +++ b/docs/examples/java/functions/list-executions.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; @@ -23,3 +24,4 @@ functions.listExecutions( }) ); +``` diff --git a/docs/examples/java/functions/list-runtimes.md b/docs/examples/java/functions/list-runtimes.md index 304a90d0..0a4a240c 100644 --- a/docs/examples/java/functions/list-runtimes.md +++ b/docs/examples/java/functions/list-runtimes.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; @@ -17,3 +18,4 @@ functions.listRuntimes(new CoroutineCallback<>((result, error) -> { System.out.println(result); })); +``` diff --git a/docs/examples/java/functions/list-specifications.md b/docs/examples/java/functions/list-specifications.md index e6c9c091..a6a245a7 100644 --- a/docs/examples/java/functions/list-specifications.md +++ b/docs/examples/java/functions/list-specifications.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; @@ -17,3 +18,4 @@ functions.listSpecifications(new CoroutineCallback<>((result, error) -> { System.out.println(result); })); +``` diff --git a/docs/examples/java/functions/list-variables.md b/docs/examples/java/functions/list-variables.md index 98c9ff45..2d903ee5 100644 --- a/docs/examples/java/functions/list-variables.md +++ b/docs/examples/java/functions/list-variables.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; @@ -21,3 +22,4 @@ functions.listVariables( }) ); +``` diff --git a/docs/examples/java/functions/list.md b/docs/examples/java/functions/list.md index 712510db..b7eab3e2 100644 --- a/docs/examples/java/functions/list.md +++ b/docs/examples/java/functions/list.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; @@ -23,3 +24,4 @@ functions.list( }) ); +``` diff --git a/docs/examples/java/functions/update-deployment-status.md b/docs/examples/java/functions/update-deployment-status.md index 8755fd93..920ce4a0 100644 --- a/docs/examples/java/functions/update-deployment-status.md +++ b/docs/examples/java/functions/update-deployment-status.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; @@ -22,3 +23,4 @@ functions.updateDeploymentStatus( }) ); +``` diff --git a/docs/examples/java/functions/update-function-deployment.md b/docs/examples/java/functions/update-function-deployment.md index b88e87c1..363c23ab 100644 --- a/docs/examples/java/functions/update-function-deployment.md +++ b/docs/examples/java/functions/update-function-deployment.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; @@ -22,3 +23,4 @@ functions.updateFunctionDeployment( }) ); +``` diff --git a/docs/examples/java/functions/update-variable.md b/docs/examples/java/functions/update-variable.md index 3a2b2813..a3234483 100644 --- a/docs/examples/java/functions/update-variable.md +++ b/docs/examples/java/functions/update-variable.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; @@ -25,3 +26,4 @@ functions.updateVariable( }) ); +``` diff --git a/docs/examples/java/functions/update.md b/docs/examples/java/functions/update.md index 010f56df..7ab24020 100644 --- a/docs/examples/java/functions/update.md +++ b/docs/examples/java/functions/update.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; @@ -40,3 +41,4 @@ functions.update( }) ); +``` diff --git a/docs/examples/java/graphql/mutation.md b/docs/examples/java/graphql/mutation.md index baf41a8a..1f327de5 100644 --- a/docs/examples/java/graphql/mutation.md +++ b/docs/examples/java/graphql/mutation.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Graphql; @@ -21,3 +22,4 @@ graphql.mutation( }) ); +``` diff --git a/docs/examples/java/graphql/query.md b/docs/examples/java/graphql/query.md index 381da3fb..29ea821d 100644 --- a/docs/examples/java/graphql/query.md +++ b/docs/examples/java/graphql/query.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Graphql; @@ -21,3 +22,4 @@ graphql.query( }) ); +``` diff --git a/docs/examples/java/health/get-antivirus.md b/docs/examples/java/health/get-antivirus.md index ca3abf71..ca3836e0 100644 --- a/docs/examples/java/health/get-antivirus.md +++ b/docs/examples/java/health/get-antivirus.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; @@ -17,3 +18,4 @@ health.getAntivirus(new CoroutineCallback<>((result, error) -> { System.out.println(result); })); +``` diff --git a/docs/examples/java/health/get-cache.md b/docs/examples/java/health/get-cache.md index 24a584c0..7dcd6343 100644 --- a/docs/examples/java/health/get-cache.md +++ b/docs/examples/java/health/get-cache.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; @@ -17,3 +18,4 @@ health.getCache(new CoroutineCallback<>((result, error) -> { System.out.println(result); })); +``` diff --git a/docs/examples/java/health/get-certificate.md b/docs/examples/java/health/get-certificate.md index f4cb5a4e..cc9a6c29 100644 --- a/docs/examples/java/health/get-certificate.md +++ b/docs/examples/java/health/get-certificate.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; @@ -21,3 +22,4 @@ health.getCertificate( }) ); +``` diff --git a/docs/examples/java/health/get-db.md b/docs/examples/java/health/get-db.md index c7a7bef9..9d6c13a3 100644 --- a/docs/examples/java/health/get-db.md +++ b/docs/examples/java/health/get-db.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; @@ -17,3 +18,4 @@ health.getDB(new CoroutineCallback<>((result, error) -> { System.out.println(result); })); +``` diff --git a/docs/examples/java/health/get-failed-jobs.md b/docs/examples/java/health/get-failed-jobs.md index 0495e265..0466bbfc 100644 --- a/docs/examples/java/health/get-failed-jobs.md +++ b/docs/examples/java/health/get-failed-jobs.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; @@ -23,3 +24,4 @@ health.getFailedJobs( }) ); +``` diff --git a/docs/examples/java/health/get-pub-sub.md b/docs/examples/java/health/get-pub-sub.md index 70210c42..00dd2585 100644 --- a/docs/examples/java/health/get-pub-sub.md +++ b/docs/examples/java/health/get-pub-sub.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; @@ -17,3 +18,4 @@ health.getPubSub(new CoroutineCallback<>((result, error) -> { System.out.println(result); })); +``` diff --git a/docs/examples/java/health/get-queue-audits.md b/docs/examples/java/health/get-queue-audits.md index 262fb6e8..d5f9cb50 100644 --- a/docs/examples/java/health/get-queue-audits.md +++ b/docs/examples/java/health/get-queue-audits.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; @@ -21,3 +22,4 @@ health.getQueueAudits( }) ); +``` diff --git a/docs/examples/java/health/get-queue-billing-project-aggregation.md b/docs/examples/java/health/get-queue-billing-project-aggregation.md new file mode 100644 index 00000000..cbed5d66 --- /dev/null +++ b/docs/examples/java/health/get-queue-billing-project-aggregation.md @@ -0,0 +1,25 @@ +```java +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Health; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Health health = new Health(client); + +health.getQueueBillingProjectAggregation( + 0, // threshold (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + +``` diff --git a/docs/examples/java/health/get-queue-billing-team-aggregation.md b/docs/examples/java/health/get-queue-billing-team-aggregation.md new file mode 100644 index 00000000..041b806b --- /dev/null +++ b/docs/examples/java/health/get-queue-billing-team-aggregation.md @@ -0,0 +1,25 @@ +```java +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Health; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Health health = new Health(client); + +health.getQueueBillingTeamAggregation( + 0, // threshold (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + +``` diff --git a/docs/examples/java/health/get-queue-builds.md b/docs/examples/java/health/get-queue-builds.md index 2ca5d7f4..fdb5f3ff 100644 --- a/docs/examples/java/health/get-queue-builds.md +++ b/docs/examples/java/health/get-queue-builds.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; @@ -21,3 +22,4 @@ health.getQueueBuilds( }) ); +``` diff --git a/docs/examples/java/health/get-queue-certificates.md b/docs/examples/java/health/get-queue-certificates.md index 519817ae..ef747cae 100644 --- a/docs/examples/java/health/get-queue-certificates.md +++ b/docs/examples/java/health/get-queue-certificates.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; @@ -21,3 +22,4 @@ health.getQueueCertificates( }) ); +``` diff --git a/docs/examples/java/health/get-queue-databases.md b/docs/examples/java/health/get-queue-databases.md index 2f175668..83673a67 100644 --- a/docs/examples/java/health/get-queue-databases.md +++ b/docs/examples/java/health/get-queue-databases.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; @@ -22,3 +23,4 @@ health.getQueueDatabases( }) ); +``` diff --git a/docs/examples/java/health/get-queue-deletes.md b/docs/examples/java/health/get-queue-deletes.md index e65aa9a5..e18579eb 100644 --- a/docs/examples/java/health/get-queue-deletes.md +++ b/docs/examples/java/health/get-queue-deletes.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; @@ -21,3 +22,4 @@ health.getQueueDeletes( }) ); +``` diff --git a/docs/examples/java/health/get-queue-functions.md b/docs/examples/java/health/get-queue-functions.md index 720f114a..ef578b8b 100644 --- a/docs/examples/java/health/get-queue-functions.md +++ b/docs/examples/java/health/get-queue-functions.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; @@ -21,3 +22,4 @@ health.getQueueFunctions( }) ); +``` diff --git a/docs/examples/java/health/get-queue-logs.md b/docs/examples/java/health/get-queue-logs.md index 09b0de4e..b86690a9 100644 --- a/docs/examples/java/health/get-queue-logs.md +++ b/docs/examples/java/health/get-queue-logs.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; @@ -21,3 +22,4 @@ health.getQueueLogs( }) ); +``` diff --git a/docs/examples/java/health/get-queue-mails.md b/docs/examples/java/health/get-queue-mails.md index b1ae357a..5c8d846b 100644 --- a/docs/examples/java/health/get-queue-mails.md +++ b/docs/examples/java/health/get-queue-mails.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; @@ -21,3 +22,4 @@ health.getQueueMails( }) ); +``` diff --git a/docs/examples/java/health/get-queue-messaging.md b/docs/examples/java/health/get-queue-messaging.md index 61c0b8ca..a3c10815 100644 --- a/docs/examples/java/health/get-queue-messaging.md +++ b/docs/examples/java/health/get-queue-messaging.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; @@ -21,3 +22,4 @@ health.getQueueMessaging( }) ); +``` diff --git a/docs/examples/java/health/get-queue-migrations.md b/docs/examples/java/health/get-queue-migrations.md index 0e7d669e..69210ef0 100644 --- a/docs/examples/java/health/get-queue-migrations.md +++ b/docs/examples/java/health/get-queue-migrations.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; @@ -21,3 +22,4 @@ health.getQueueMigrations( }) ); +``` diff --git a/docs/examples/java/health/get-queue-priority-builds.md b/docs/examples/java/health/get-queue-priority-builds.md new file mode 100644 index 00000000..aa36c9bb --- /dev/null +++ b/docs/examples/java/health/get-queue-priority-builds.md @@ -0,0 +1,25 @@ +```java +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Health; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Health health = new Health(client); + +health.getQueuePriorityBuilds( + 0, // threshold (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + +``` diff --git a/docs/examples/java/health/get-queue-region-manager.md b/docs/examples/java/health/get-queue-region-manager.md new file mode 100644 index 00000000..79f6d9b4 --- /dev/null +++ b/docs/examples/java/health/get-queue-region-manager.md @@ -0,0 +1,25 @@ +```java +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Health; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Health health = new Health(client); + +health.getQueueRegionManager( + 0, // threshold (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + +``` diff --git a/docs/examples/java/health/get-queue-stats-resources.md b/docs/examples/java/health/get-queue-stats-resources.md index e2f8062f..020f1829 100644 --- a/docs/examples/java/health/get-queue-stats-resources.md +++ b/docs/examples/java/health/get-queue-stats-resources.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; @@ -21,3 +22,4 @@ health.getQueueStatsResources( }) ); +``` diff --git a/docs/examples/java/health/get-queue-threats.md b/docs/examples/java/health/get-queue-threats.md new file mode 100644 index 00000000..f2c74e59 --- /dev/null +++ b/docs/examples/java/health/get-queue-threats.md @@ -0,0 +1,25 @@ +```java +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Health; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Health health = new Health(client); + +health.getQueueThreats( + 0, // threshold (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + +``` diff --git a/docs/examples/java/health/get-queue-usage.md b/docs/examples/java/health/get-queue-usage.md index bfda61a5..79fa0621 100644 --- a/docs/examples/java/health/get-queue-usage.md +++ b/docs/examples/java/health/get-queue-usage.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; @@ -21,3 +22,4 @@ health.getQueueUsage( }) ); +``` diff --git a/docs/examples/java/health/get-queue-webhooks.md b/docs/examples/java/health/get-queue-webhooks.md index d9aed66d..94f93edd 100644 --- a/docs/examples/java/health/get-queue-webhooks.md +++ b/docs/examples/java/health/get-queue-webhooks.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; @@ -21,3 +22,4 @@ health.getQueueWebhooks( }) ); +``` diff --git a/docs/examples/java/health/get-storage-local.md b/docs/examples/java/health/get-storage-local.md index 65367cc2..db8f374d 100644 --- a/docs/examples/java/health/get-storage-local.md +++ b/docs/examples/java/health/get-storage-local.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; @@ -17,3 +18,4 @@ health.getStorageLocal(new CoroutineCallback<>((result, error) -> { System.out.println(result); })); +``` diff --git a/docs/examples/java/health/get-storage.md b/docs/examples/java/health/get-storage.md index 3a0f0f8e..34f7b63a 100644 --- a/docs/examples/java/health/get-storage.md +++ b/docs/examples/java/health/get-storage.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; @@ -17,3 +18,4 @@ health.getStorage(new CoroutineCallback<>((result, error) -> { System.out.println(result); })); +``` diff --git a/docs/examples/java/health/get-time.md b/docs/examples/java/health/get-time.md index f0ba668a..925fb801 100644 --- a/docs/examples/java/health/get-time.md +++ b/docs/examples/java/health/get-time.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; @@ -17,3 +18,4 @@ health.getTime(new CoroutineCallback<>((result, error) -> { System.out.println(result); })); +``` diff --git a/docs/examples/java/health/get.md b/docs/examples/java/health/get.md index 87a7c0a3..96c2a534 100644 --- a/docs/examples/java/health/get.md +++ b/docs/examples/java/health/get.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; @@ -17,3 +18,4 @@ health.get(new CoroutineCallback<>((result, error) -> { System.out.println(result); })); +``` diff --git a/docs/examples/java/locale/get.md b/docs/examples/java/locale/get.md index 2d5e0ac0..ce0599eb 100644 --- a/docs/examples/java/locale/get.md +++ b/docs/examples/java/locale/get.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; @@ -17,3 +18,4 @@ locale.get(new CoroutineCallback<>((result, error) -> { System.out.println(result); })); +``` diff --git a/docs/examples/java/locale/list-codes.md b/docs/examples/java/locale/list-codes.md index 9f07d1db..25555499 100644 --- a/docs/examples/java/locale/list-codes.md +++ b/docs/examples/java/locale/list-codes.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; @@ -17,3 +18,4 @@ locale.listCodes(new CoroutineCallback<>((result, error) -> { System.out.println(result); })); +``` diff --git a/docs/examples/java/locale/list-continents.md b/docs/examples/java/locale/list-continents.md index 5d9e4b0f..f7098f33 100644 --- a/docs/examples/java/locale/list-continents.md +++ b/docs/examples/java/locale/list-continents.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; @@ -17,3 +18,4 @@ locale.listContinents(new CoroutineCallback<>((result, error) -> { System.out.println(result); })); +``` diff --git a/docs/examples/java/locale/list-countries-eu.md b/docs/examples/java/locale/list-countries-eu.md index 232a0ef8..b312639f 100644 --- a/docs/examples/java/locale/list-countries-eu.md +++ b/docs/examples/java/locale/list-countries-eu.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; @@ -17,3 +18,4 @@ locale.listCountriesEU(new CoroutineCallback<>((result, error) -> { System.out.println(result); })); +``` diff --git a/docs/examples/java/locale/list-countries-phones.md b/docs/examples/java/locale/list-countries-phones.md index a4739a5b..aed72e0f 100644 --- a/docs/examples/java/locale/list-countries-phones.md +++ b/docs/examples/java/locale/list-countries-phones.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; @@ -17,3 +18,4 @@ locale.listCountriesPhones(new CoroutineCallback<>((result, error) -> { System.out.println(result); })); +``` diff --git a/docs/examples/java/locale/list-countries.md b/docs/examples/java/locale/list-countries.md index 5b8f250f..8eef04d6 100644 --- a/docs/examples/java/locale/list-countries.md +++ b/docs/examples/java/locale/list-countries.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; @@ -17,3 +18,4 @@ locale.listCountries(new CoroutineCallback<>((result, error) -> { System.out.println(result); })); +``` diff --git a/docs/examples/java/locale/list-currencies.md b/docs/examples/java/locale/list-currencies.md index adf1d787..fc4ee4d9 100644 --- a/docs/examples/java/locale/list-currencies.md +++ b/docs/examples/java/locale/list-currencies.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; @@ -17,3 +18,4 @@ locale.listCurrencies(new CoroutineCallback<>((result, error) -> { System.out.println(result); })); +``` diff --git a/docs/examples/java/locale/list-languages.md b/docs/examples/java/locale/list-languages.md index c92ea525..44d10156 100644 --- a/docs/examples/java/locale/list-languages.md +++ b/docs/examples/java/locale/list-languages.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; @@ -17,3 +18,4 @@ locale.listLanguages(new CoroutineCallback<>((result, error) -> { System.out.println(result); })); +``` diff --git a/docs/examples/java/messaging/create-apns-provider.md b/docs/examples/java/messaging/create-apns-provider.md index acae476a..134c5c96 100644 --- a/docs/examples/java/messaging/create-apns-provider.md +++ b/docs/examples/java/messaging/create-apns-provider.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; @@ -28,3 +29,4 @@ messaging.createAPNSProvider( }) ); +``` diff --git a/docs/examples/java/messaging/create-email.md b/docs/examples/java/messaging/create-email.md index ca654e6a..cefac945 100644 --- a/docs/examples/java/messaging/create-email.md +++ b/docs/examples/java/messaging/create-email.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; @@ -32,3 +33,4 @@ messaging.createEmail( }) ); +``` diff --git a/docs/examples/java/messaging/create-fcm-provider.md b/docs/examples/java/messaging/create-fcm-provider.md index 554ab3cb..6cd9e9ff 100644 --- a/docs/examples/java/messaging/create-fcm-provider.md +++ b/docs/examples/java/messaging/create-fcm-provider.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; @@ -24,3 +25,4 @@ messaging.createFCMProvider( }) ); +``` diff --git a/docs/examples/java/messaging/create-mailgun-provider.md b/docs/examples/java/messaging/create-mailgun-provider.md index 272f9d23..be7ec131 100644 --- a/docs/examples/java/messaging/create-mailgun-provider.md +++ b/docs/examples/java/messaging/create-mailgun-provider.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; @@ -30,3 +31,4 @@ messaging.createMailgunProvider( }) ); +``` diff --git a/docs/examples/java/messaging/create-msg-91-provider.md b/docs/examples/java/messaging/create-msg-91-provider.md index 21005293..2af08cf0 100644 --- a/docs/examples/java/messaging/create-msg-91-provider.md +++ b/docs/examples/java/messaging/create-msg-91-provider.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; @@ -26,3 +27,4 @@ messaging.createMsg91Provider( }) ); +``` diff --git a/docs/examples/java/messaging/create-push.md b/docs/examples/java/messaging/create-push.md index 7ab3541a..2b2a67ca 100644 --- a/docs/examples/java/messaging/create-push.md +++ b/docs/examples/java/messaging/create-push.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; @@ -40,3 +41,4 @@ messaging.createPush( }) ); +``` diff --git a/docs/examples/java/messaging/create-resend-provider.md b/docs/examples/java/messaging/create-resend-provider.md index 37681f9d..516ba4e2 100644 --- a/docs/examples/java/messaging/create-resend-provider.md +++ b/docs/examples/java/messaging/create-resend-provider.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; @@ -28,3 +29,4 @@ messaging.createResendProvider( }) ); +``` diff --git a/docs/examples/java/messaging/create-sendgrid-provider.md b/docs/examples/java/messaging/create-sendgrid-provider.md index 84c5bf42..ecb1e1bd 100644 --- a/docs/examples/java/messaging/create-sendgrid-provider.md +++ b/docs/examples/java/messaging/create-sendgrid-provider.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; @@ -28,3 +29,4 @@ messaging.createSendgridProvider( }) ); +``` diff --git a/docs/examples/java/messaging/create-sms.md b/docs/examples/java/messaging/create-sms.md index 5ac95079..9a2a7664 100644 --- a/docs/examples/java/messaging/create-sms.md +++ b/docs/examples/java/messaging/create-sms.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; @@ -27,3 +28,4 @@ messaging.createSMS( }) ); +``` diff --git a/docs/examples/java/messaging/create-smtp-provider.md b/docs/examples/java/messaging/create-smtp-provider.md index 966436e3..2259babd 100644 --- a/docs/examples/java/messaging/create-smtp-provider.md +++ b/docs/examples/java/messaging/create-smtp-provider.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; @@ -35,3 +36,4 @@ messaging.createSMTPProvider( }) ); +``` diff --git a/docs/examples/java/messaging/create-subscriber.md b/docs/examples/java/messaging/create-subscriber.md index 1ccb8fe6..39480c0c 100644 --- a/docs/examples/java/messaging/create-subscriber.md +++ b/docs/examples/java/messaging/create-subscriber.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; @@ -23,3 +24,4 @@ messaging.createSubscriber( }) ); +``` diff --git a/docs/examples/java/messaging/create-telesign-provider.md b/docs/examples/java/messaging/create-telesign-provider.md index 6b644994..87b9e1fc 100644 --- a/docs/examples/java/messaging/create-telesign-provider.md +++ b/docs/examples/java/messaging/create-telesign-provider.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; @@ -26,3 +27,4 @@ messaging.createTelesignProvider( }) ); +``` diff --git a/docs/examples/java/messaging/create-textmagic-provider.md b/docs/examples/java/messaging/create-textmagic-provider.md index 477d7d8c..2599ed5d 100644 --- a/docs/examples/java/messaging/create-textmagic-provider.md +++ b/docs/examples/java/messaging/create-textmagic-provider.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; @@ -26,3 +27,4 @@ messaging.createTextmagicProvider( }) ); +``` diff --git a/docs/examples/java/messaging/create-topic.md b/docs/examples/java/messaging/create-topic.md index ec55053d..1c9c5637 100644 --- a/docs/examples/java/messaging/create-topic.md +++ b/docs/examples/java/messaging/create-topic.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; @@ -23,3 +24,4 @@ messaging.createTopic( }) ); +``` diff --git a/docs/examples/java/messaging/create-twilio-provider.md b/docs/examples/java/messaging/create-twilio-provider.md index 8d1b4da9..5078b3db 100644 --- a/docs/examples/java/messaging/create-twilio-provider.md +++ b/docs/examples/java/messaging/create-twilio-provider.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; @@ -26,3 +27,4 @@ messaging.createTwilioProvider( }) ); +``` diff --git a/docs/examples/java/messaging/create-vonage-provider.md b/docs/examples/java/messaging/create-vonage-provider.md index db1e476d..ac269038 100644 --- a/docs/examples/java/messaging/create-vonage-provider.md +++ b/docs/examples/java/messaging/create-vonage-provider.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; @@ -26,3 +27,4 @@ messaging.createVonageProvider( }) ); +``` diff --git a/docs/examples/java/messaging/delete-provider.md b/docs/examples/java/messaging/delete-provider.md index b0fa837f..0136e9dc 100644 --- a/docs/examples/java/messaging/delete-provider.md +++ b/docs/examples/java/messaging/delete-provider.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; @@ -21,3 +22,4 @@ messaging.deleteProvider( }) ); +``` diff --git a/docs/examples/java/messaging/delete-subscriber.md b/docs/examples/java/messaging/delete-subscriber.md index a3635b9d..265a70ba 100644 --- a/docs/examples/java/messaging/delete-subscriber.md +++ b/docs/examples/java/messaging/delete-subscriber.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; @@ -22,3 +23,4 @@ messaging.deleteSubscriber( }) ); +``` diff --git a/docs/examples/java/messaging/delete-topic.md b/docs/examples/java/messaging/delete-topic.md index 7b598b25..aee64733 100644 --- a/docs/examples/java/messaging/delete-topic.md +++ b/docs/examples/java/messaging/delete-topic.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; @@ -21,3 +22,4 @@ messaging.deleteTopic( }) ); +``` diff --git a/docs/examples/java/messaging/delete.md b/docs/examples/java/messaging/delete.md index 1395a392..7585a486 100644 --- a/docs/examples/java/messaging/delete.md +++ b/docs/examples/java/messaging/delete.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; @@ -21,3 +22,4 @@ messaging.delete( }) ); +``` diff --git a/docs/examples/java/messaging/get-message.md b/docs/examples/java/messaging/get-message.md index 3860ff23..846e881e 100644 --- a/docs/examples/java/messaging/get-message.md +++ b/docs/examples/java/messaging/get-message.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; @@ -21,3 +22,4 @@ messaging.getMessage( }) ); +``` diff --git a/docs/examples/java/messaging/get-provider.md b/docs/examples/java/messaging/get-provider.md index 9717b90b..4d68108b 100644 --- a/docs/examples/java/messaging/get-provider.md +++ b/docs/examples/java/messaging/get-provider.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; @@ -21,3 +22,4 @@ messaging.getProvider( }) ); +``` diff --git a/docs/examples/java/messaging/get-subscriber.md b/docs/examples/java/messaging/get-subscriber.md index 641a494b..01137147 100644 --- a/docs/examples/java/messaging/get-subscriber.md +++ b/docs/examples/java/messaging/get-subscriber.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; @@ -22,3 +23,4 @@ messaging.getSubscriber( }) ); +``` diff --git a/docs/examples/java/messaging/get-topic.md b/docs/examples/java/messaging/get-topic.md index c9f2eff7..d1e9693a 100644 --- a/docs/examples/java/messaging/get-topic.md +++ b/docs/examples/java/messaging/get-topic.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; @@ -21,3 +22,4 @@ messaging.getTopic( }) ); +``` diff --git a/docs/examples/java/messaging/list-message-logs.md b/docs/examples/java/messaging/list-message-logs.md index 30469ffc..5c2e97ce 100644 --- a/docs/examples/java/messaging/list-message-logs.md +++ b/docs/examples/java/messaging/list-message-logs.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; @@ -23,3 +24,4 @@ messaging.listMessageLogs( }) ); +``` diff --git a/docs/examples/java/messaging/list-messages.md b/docs/examples/java/messaging/list-messages.md index 8af8085d..060d166a 100644 --- a/docs/examples/java/messaging/list-messages.md +++ b/docs/examples/java/messaging/list-messages.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; @@ -23,3 +24,4 @@ messaging.listMessages( }) ); +``` diff --git a/docs/examples/java/messaging/list-provider-logs.md b/docs/examples/java/messaging/list-provider-logs.md index e62dedf8..f0656be8 100644 --- a/docs/examples/java/messaging/list-provider-logs.md +++ b/docs/examples/java/messaging/list-provider-logs.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; @@ -23,3 +24,4 @@ messaging.listProviderLogs( }) ); +``` diff --git a/docs/examples/java/messaging/list-providers.md b/docs/examples/java/messaging/list-providers.md index b52408c0..40abdc4e 100644 --- a/docs/examples/java/messaging/list-providers.md +++ b/docs/examples/java/messaging/list-providers.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; @@ -23,3 +24,4 @@ messaging.listProviders( }) ); +``` diff --git a/docs/examples/java/messaging/list-subscriber-logs.md b/docs/examples/java/messaging/list-subscriber-logs.md index 317db329..1fef063d 100644 --- a/docs/examples/java/messaging/list-subscriber-logs.md +++ b/docs/examples/java/messaging/list-subscriber-logs.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; @@ -23,3 +24,4 @@ messaging.listSubscriberLogs( }) ); +``` diff --git a/docs/examples/java/messaging/list-subscribers.md b/docs/examples/java/messaging/list-subscribers.md index cc552179..e7eb27c8 100644 --- a/docs/examples/java/messaging/list-subscribers.md +++ b/docs/examples/java/messaging/list-subscribers.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; @@ -24,3 +25,4 @@ messaging.listSubscribers( }) ); +``` diff --git a/docs/examples/java/messaging/list-targets.md b/docs/examples/java/messaging/list-targets.md index b123218d..f40902d3 100644 --- a/docs/examples/java/messaging/list-targets.md +++ b/docs/examples/java/messaging/list-targets.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; @@ -23,3 +24,4 @@ messaging.listTargets( }) ); +``` diff --git a/docs/examples/java/messaging/list-topic-logs.md b/docs/examples/java/messaging/list-topic-logs.md index d2d88095..28d4df68 100644 --- a/docs/examples/java/messaging/list-topic-logs.md +++ b/docs/examples/java/messaging/list-topic-logs.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; @@ -23,3 +24,4 @@ messaging.listTopicLogs( }) ); +``` diff --git a/docs/examples/java/messaging/list-topics.md b/docs/examples/java/messaging/list-topics.md index ea258c27..de91ffdb 100644 --- a/docs/examples/java/messaging/list-topics.md +++ b/docs/examples/java/messaging/list-topics.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; @@ -23,3 +24,4 @@ messaging.listTopics( }) ); +``` diff --git a/docs/examples/java/messaging/update-apns-provider.md b/docs/examples/java/messaging/update-apns-provider.md index c5da5ba8..daebea07 100644 --- a/docs/examples/java/messaging/update-apns-provider.md +++ b/docs/examples/java/messaging/update-apns-provider.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; @@ -28,3 +29,4 @@ messaging.updateAPNSProvider( }) ); +``` diff --git a/docs/examples/java/messaging/update-email.md b/docs/examples/java/messaging/update-email.md index 1bed63b3..7c24d21d 100644 --- a/docs/examples/java/messaging/update-email.md +++ b/docs/examples/java/messaging/update-email.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; @@ -32,3 +33,4 @@ messaging.updateEmail( }) ); +``` diff --git a/docs/examples/java/messaging/update-fcm-provider.md b/docs/examples/java/messaging/update-fcm-provider.md index 2976ff5a..1b9f694c 100644 --- a/docs/examples/java/messaging/update-fcm-provider.md +++ b/docs/examples/java/messaging/update-fcm-provider.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; @@ -24,3 +25,4 @@ messaging.updateFCMProvider( }) ); +``` diff --git a/docs/examples/java/messaging/update-mailgun-provider.md b/docs/examples/java/messaging/update-mailgun-provider.md index 5547ae85..53281efa 100644 --- a/docs/examples/java/messaging/update-mailgun-provider.md +++ b/docs/examples/java/messaging/update-mailgun-provider.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; @@ -30,3 +31,4 @@ messaging.updateMailgunProvider( }) ); +``` diff --git a/docs/examples/java/messaging/update-msg-91-provider.md b/docs/examples/java/messaging/update-msg-91-provider.md index d8e48562..c25e7e3c 100644 --- a/docs/examples/java/messaging/update-msg-91-provider.md +++ b/docs/examples/java/messaging/update-msg-91-provider.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; @@ -26,3 +27,4 @@ messaging.updateMsg91Provider( }) ); +``` diff --git a/docs/examples/java/messaging/update-push.md b/docs/examples/java/messaging/update-push.md index 80f70130..c988199a 100644 --- a/docs/examples/java/messaging/update-push.md +++ b/docs/examples/java/messaging/update-push.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; @@ -40,3 +41,4 @@ messaging.updatePush( }) ); +``` diff --git a/docs/examples/java/messaging/update-resend-provider.md b/docs/examples/java/messaging/update-resend-provider.md index 3282e5d2..16b61b7b 100644 --- a/docs/examples/java/messaging/update-resend-provider.md +++ b/docs/examples/java/messaging/update-resend-provider.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; @@ -28,3 +29,4 @@ messaging.updateResendProvider( }) ); +``` diff --git a/docs/examples/java/messaging/update-sendgrid-provider.md b/docs/examples/java/messaging/update-sendgrid-provider.md index 14a4e99f..bb90a433 100644 --- a/docs/examples/java/messaging/update-sendgrid-provider.md +++ b/docs/examples/java/messaging/update-sendgrid-provider.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; @@ -28,3 +29,4 @@ messaging.updateSendgridProvider( }) ); +``` diff --git a/docs/examples/java/messaging/update-sms.md b/docs/examples/java/messaging/update-sms.md index 4df9588f..68070763 100644 --- a/docs/examples/java/messaging/update-sms.md +++ b/docs/examples/java/messaging/update-sms.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; @@ -27,3 +28,4 @@ messaging.updateSMS( }) ); +``` diff --git a/docs/examples/java/messaging/update-smtp-provider.md b/docs/examples/java/messaging/update-smtp-provider.md index c8ab7571..e68e2d80 100644 --- a/docs/examples/java/messaging/update-smtp-provider.md +++ b/docs/examples/java/messaging/update-smtp-provider.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; @@ -35,3 +36,4 @@ messaging.updateSMTPProvider( }) ); +``` diff --git a/docs/examples/java/messaging/update-telesign-provider.md b/docs/examples/java/messaging/update-telesign-provider.md index 8181bf1c..fef04fe0 100644 --- a/docs/examples/java/messaging/update-telesign-provider.md +++ b/docs/examples/java/messaging/update-telesign-provider.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; @@ -26,3 +27,4 @@ messaging.updateTelesignProvider( }) ); +``` diff --git a/docs/examples/java/messaging/update-textmagic-provider.md b/docs/examples/java/messaging/update-textmagic-provider.md index bc156b7a..0068564c 100644 --- a/docs/examples/java/messaging/update-textmagic-provider.md +++ b/docs/examples/java/messaging/update-textmagic-provider.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; @@ -26,3 +27,4 @@ messaging.updateTextmagicProvider( }) ); +``` diff --git a/docs/examples/java/messaging/update-topic.md b/docs/examples/java/messaging/update-topic.md index 0d651c78..b1617441 100644 --- a/docs/examples/java/messaging/update-topic.md +++ b/docs/examples/java/messaging/update-topic.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; @@ -23,3 +24,4 @@ messaging.updateTopic( }) ); +``` diff --git a/docs/examples/java/messaging/update-twilio-provider.md b/docs/examples/java/messaging/update-twilio-provider.md index ed58ee9a..36e44fa2 100644 --- a/docs/examples/java/messaging/update-twilio-provider.md +++ b/docs/examples/java/messaging/update-twilio-provider.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; @@ -26,3 +27,4 @@ messaging.updateTwilioProvider( }) ); +``` diff --git a/docs/examples/java/messaging/update-vonage-provider.md b/docs/examples/java/messaging/update-vonage-provider.md index d5bfe361..549bcce2 100644 --- a/docs/examples/java/messaging/update-vonage-provider.md +++ b/docs/examples/java/messaging/update-vonage-provider.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; @@ -26,3 +27,4 @@ messaging.updateVonageProvider( }) ); +``` diff --git a/docs/examples/java/organizations/delete.md b/docs/examples/java/organizations/delete.md new file mode 100644 index 00000000..09354149 --- /dev/null +++ b/docs/examples/java/organizations/delete.md @@ -0,0 +1,25 @@ +```java +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Organizations; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setSession(""); // The user session to authenticate with + +Organizations organizations = new Organizations(client); + +organizations.delete( + "", // organizationId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + +``` diff --git a/docs/examples/java/organizations/estimation-delete-organization.md b/docs/examples/java/organizations/estimation-delete-organization.md new file mode 100644 index 00000000..20a616a9 --- /dev/null +++ b/docs/examples/java/organizations/estimation-delete-organization.md @@ -0,0 +1,25 @@ +```java +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Organizations; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setSession(""); // The user session to authenticate with + +Organizations organizations = new Organizations(client); + +organizations.estimationDeleteOrganization( + "", // organizationId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + +``` diff --git a/docs/examples/java/sites/create-deployment.md b/docs/examples/java/sites/create-deployment.md index f370f802..b0ab4269 100644 --- a/docs/examples/java/sites/create-deployment.md +++ b/docs/examples/java/sites/create-deployment.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.models.InputFile; @@ -27,3 +28,4 @@ sites.createDeployment( }) ); +``` diff --git a/docs/examples/java/sites/create-duplicate-deployment.md b/docs/examples/java/sites/create-duplicate-deployment.md index 35e43b89..06d41d2d 100644 --- a/docs/examples/java/sites/create-duplicate-deployment.md +++ b/docs/examples/java/sites/create-duplicate-deployment.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Sites; @@ -22,3 +23,4 @@ sites.createDuplicateDeployment( }) ); +``` diff --git a/docs/examples/java/sites/create-template-deployment.md b/docs/examples/java/sites/create-template-deployment.md index e7fee585..13077648 100644 --- a/docs/examples/java/sites/create-template-deployment.md +++ b/docs/examples/java/sites/create-template-deployment.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Sites; @@ -28,3 +29,4 @@ sites.createTemplateDeployment( }) ); +``` diff --git a/docs/examples/java/sites/create-variable.md b/docs/examples/java/sites/create-variable.md index c77bec37..1d83d6ad 100644 --- a/docs/examples/java/sites/create-variable.md +++ b/docs/examples/java/sites/create-variable.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Sites; @@ -24,3 +25,4 @@ sites.createVariable( }) ); +``` diff --git a/docs/examples/java/sites/create-vcs-deployment.md b/docs/examples/java/sites/create-vcs-deployment.md index 8a1dca95..529fab34 100644 --- a/docs/examples/java/sites/create-vcs-deployment.md +++ b/docs/examples/java/sites/create-vcs-deployment.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Sites; @@ -25,3 +26,4 @@ sites.createVcsDeployment( }) ); +``` diff --git a/docs/examples/java/sites/create.md b/docs/examples/java/sites/create.md index 11e0dbba..328b3952 100644 --- a/docs/examples/java/sites/create.md +++ b/docs/examples/java/sites/create.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Sites; @@ -41,3 +42,4 @@ sites.create( }) ); +``` diff --git a/docs/examples/java/sites/delete-deployment.md b/docs/examples/java/sites/delete-deployment.md index 97c08ab1..90d36bf3 100644 --- a/docs/examples/java/sites/delete-deployment.md +++ b/docs/examples/java/sites/delete-deployment.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Sites; @@ -22,3 +23,4 @@ sites.deleteDeployment( }) ); +``` diff --git a/docs/examples/java/sites/delete-log.md b/docs/examples/java/sites/delete-log.md index d7189373..af696c14 100644 --- a/docs/examples/java/sites/delete-log.md +++ b/docs/examples/java/sites/delete-log.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Sites; @@ -22,3 +23,4 @@ sites.deleteLog( }) ); +``` diff --git a/docs/examples/java/sites/delete-variable.md b/docs/examples/java/sites/delete-variable.md index 4e2b3ab7..b63a81c0 100644 --- a/docs/examples/java/sites/delete-variable.md +++ b/docs/examples/java/sites/delete-variable.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Sites; @@ -22,3 +23,4 @@ sites.deleteVariable( }) ); +``` diff --git a/docs/examples/java/sites/delete.md b/docs/examples/java/sites/delete.md index fd07bb23..48bfbe26 100644 --- a/docs/examples/java/sites/delete.md +++ b/docs/examples/java/sites/delete.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Sites; @@ -21,3 +22,4 @@ sites.delete( }) ); +``` diff --git a/docs/examples/java/sites/get-deployment-download.md b/docs/examples/java/sites/get-deployment-download.md index ce26ba8c..3df75ba0 100644 --- a/docs/examples/java/sites/get-deployment-download.md +++ b/docs/examples/java/sites/get-deployment-download.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Sites; @@ -24,3 +25,4 @@ sites.getDeploymentDownload( }) ); +``` diff --git a/docs/examples/java/sites/get-deployment.md b/docs/examples/java/sites/get-deployment.md index 6af859ba..26565abc 100644 --- a/docs/examples/java/sites/get-deployment.md +++ b/docs/examples/java/sites/get-deployment.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Sites; @@ -22,3 +23,4 @@ sites.getDeployment( }) ); +``` diff --git a/docs/examples/java/sites/get-log.md b/docs/examples/java/sites/get-log.md index d33f2a65..290e8225 100644 --- a/docs/examples/java/sites/get-log.md +++ b/docs/examples/java/sites/get-log.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Sites; @@ -22,3 +23,4 @@ sites.getLog( }) ); +``` diff --git a/docs/examples/java/sites/get-variable.md b/docs/examples/java/sites/get-variable.md index 1c8df0c0..c5ac3890 100644 --- a/docs/examples/java/sites/get-variable.md +++ b/docs/examples/java/sites/get-variable.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Sites; @@ -22,3 +23,4 @@ sites.getVariable( }) ); +``` diff --git a/docs/examples/java/sites/get.md b/docs/examples/java/sites/get.md index 660cad3b..55d6ed33 100644 --- a/docs/examples/java/sites/get.md +++ b/docs/examples/java/sites/get.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Sites; @@ -21,3 +22,4 @@ sites.get( }) ); +``` diff --git a/docs/examples/java/sites/list-deployments.md b/docs/examples/java/sites/list-deployments.md index a1953cdf..650bd7bb 100644 --- a/docs/examples/java/sites/list-deployments.md +++ b/docs/examples/java/sites/list-deployments.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Sites; @@ -24,3 +25,4 @@ sites.listDeployments( }) ); +``` diff --git a/docs/examples/java/sites/list-frameworks.md b/docs/examples/java/sites/list-frameworks.md index df597177..6192bf29 100644 --- a/docs/examples/java/sites/list-frameworks.md +++ b/docs/examples/java/sites/list-frameworks.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Sites; @@ -17,3 +18,4 @@ sites.listFrameworks(new CoroutineCallback<>((result, error) -> { System.out.println(result); })); +``` diff --git a/docs/examples/java/sites/list-logs.md b/docs/examples/java/sites/list-logs.md index 095f0ae9..437ebf5e 100644 --- a/docs/examples/java/sites/list-logs.md +++ b/docs/examples/java/sites/list-logs.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Sites; @@ -23,3 +24,4 @@ sites.listLogs( }) ); +``` diff --git a/docs/examples/java/sites/list-specifications.md b/docs/examples/java/sites/list-specifications.md index caad7325..e97db7da 100644 --- a/docs/examples/java/sites/list-specifications.md +++ b/docs/examples/java/sites/list-specifications.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Sites; @@ -17,3 +18,4 @@ sites.listSpecifications(new CoroutineCallback<>((result, error) -> { System.out.println(result); })); +``` diff --git a/docs/examples/java/sites/list-variables.md b/docs/examples/java/sites/list-variables.md index f2a38b7e..c742e267 100644 --- a/docs/examples/java/sites/list-variables.md +++ b/docs/examples/java/sites/list-variables.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Sites; @@ -21,3 +22,4 @@ sites.listVariables( }) ); +``` diff --git a/docs/examples/java/sites/list.md b/docs/examples/java/sites/list.md index d8c69419..5d53afd4 100644 --- a/docs/examples/java/sites/list.md +++ b/docs/examples/java/sites/list.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Sites; @@ -23,3 +24,4 @@ sites.list( }) ); +``` diff --git a/docs/examples/java/sites/update-deployment-status.md b/docs/examples/java/sites/update-deployment-status.md index 8dc3041f..627cfcc2 100644 --- a/docs/examples/java/sites/update-deployment-status.md +++ b/docs/examples/java/sites/update-deployment-status.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Sites; @@ -22,3 +23,4 @@ sites.updateDeploymentStatus( }) ); +``` diff --git a/docs/examples/java/sites/update-site-deployment.md b/docs/examples/java/sites/update-site-deployment.md index edbda7cf..8c60b777 100644 --- a/docs/examples/java/sites/update-site-deployment.md +++ b/docs/examples/java/sites/update-site-deployment.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Sites; @@ -22,3 +23,4 @@ sites.updateSiteDeployment( }) ); +``` diff --git a/docs/examples/java/sites/update-variable.md b/docs/examples/java/sites/update-variable.md index 9735ae34..193cde75 100644 --- a/docs/examples/java/sites/update-variable.md +++ b/docs/examples/java/sites/update-variable.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Sites; @@ -25,3 +26,4 @@ sites.updateVariable( }) ); +``` diff --git a/docs/examples/java/sites/update.md b/docs/examples/java/sites/update.md index 0c4024b8..6f34a38d 100644 --- a/docs/examples/java/sites/update.md +++ b/docs/examples/java/sites/update.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Sites; @@ -41,3 +42,4 @@ sites.update( }) ); +``` diff --git a/docs/examples/java/storage/create-bucket.md b/docs/examples/java/storage/create-bucket.md index 0af282a0..7a15d326 100644 --- a/docs/examples/java/storage/create-bucket.md +++ b/docs/examples/java/storage/create-bucket.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.Permission; @@ -34,3 +35,4 @@ storage.createBucket( }) ); +``` diff --git a/docs/examples/java/storage/create-file.md b/docs/examples/java/storage/create-file.md index abaeee3e..80fff49a 100644 --- a/docs/examples/java/storage/create-file.md +++ b/docs/examples/java/storage/create-file.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.models.InputFile; @@ -27,3 +28,4 @@ storage.createFile( }) ); +``` diff --git a/docs/examples/java/storage/delete-bucket.md b/docs/examples/java/storage/delete-bucket.md index eb77754f..175c65ef 100644 --- a/docs/examples/java/storage/delete-bucket.md +++ b/docs/examples/java/storage/delete-bucket.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; @@ -21,3 +22,4 @@ storage.deleteBucket( }) ); +``` diff --git a/docs/examples/java/storage/delete-file.md b/docs/examples/java/storage/delete-file.md index 8976fd19..dc3e279e 100644 --- a/docs/examples/java/storage/delete-file.md +++ b/docs/examples/java/storage/delete-file.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; @@ -22,3 +23,4 @@ storage.deleteFile( }) ); +``` diff --git a/docs/examples/java/storage/get-bucket.md b/docs/examples/java/storage/get-bucket.md index a099f33d..fb6c5951 100644 --- a/docs/examples/java/storage/get-bucket.md +++ b/docs/examples/java/storage/get-bucket.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; @@ -21,3 +22,4 @@ storage.getBucket( }) ); +``` diff --git a/docs/examples/java/storage/get-file-download.md b/docs/examples/java/storage/get-file-download.md index edda2609..9fa4df86 100644 --- a/docs/examples/java/storage/get-file-download.md +++ b/docs/examples/java/storage/get-file-download.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; @@ -23,3 +24,4 @@ storage.getFileDownload( }) ); +``` diff --git a/docs/examples/java/storage/get-file-preview.md b/docs/examples/java/storage/get-file-preview.md index 61f76372..18093617 100644 --- a/docs/examples/java/storage/get-file-preview.md +++ b/docs/examples/java/storage/get-file-preview.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; @@ -36,3 +37,4 @@ storage.getFilePreview( }) ); +``` diff --git a/docs/examples/java/storage/get-file-view.md b/docs/examples/java/storage/get-file-view.md index 178e5077..106884f0 100644 --- a/docs/examples/java/storage/get-file-view.md +++ b/docs/examples/java/storage/get-file-view.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; @@ -23,3 +24,4 @@ storage.getFileView( }) ); +``` diff --git a/docs/examples/java/storage/get-file.md b/docs/examples/java/storage/get-file.md index 7a04c80e..85c95162 100644 --- a/docs/examples/java/storage/get-file.md +++ b/docs/examples/java/storage/get-file.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; @@ -22,3 +23,4 @@ storage.getFile( }) ); +``` diff --git a/docs/examples/java/storage/list-buckets.md b/docs/examples/java/storage/list-buckets.md index 3fde32c7..85ca001a 100644 --- a/docs/examples/java/storage/list-buckets.md +++ b/docs/examples/java/storage/list-buckets.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; @@ -23,3 +24,4 @@ storage.listBuckets( }) ); +``` diff --git a/docs/examples/java/storage/list-files.md b/docs/examples/java/storage/list-files.md index 712c4200..35334b5c 100644 --- a/docs/examples/java/storage/list-files.md +++ b/docs/examples/java/storage/list-files.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; @@ -24,3 +25,4 @@ storage.listFiles( }) ); +``` diff --git a/docs/examples/java/storage/update-bucket.md b/docs/examples/java/storage/update-bucket.md index 47b322e4..7f94346d 100644 --- a/docs/examples/java/storage/update-bucket.md +++ b/docs/examples/java/storage/update-bucket.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.Permission; @@ -34,3 +35,4 @@ storage.updateBucket( }) ); +``` diff --git a/docs/examples/java/storage/update-file.md b/docs/examples/java/storage/update-file.md index b394fd56..7692b1ed 100644 --- a/docs/examples/java/storage/update-file.md +++ b/docs/examples/java/storage/update-file.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.Permission; @@ -26,3 +27,4 @@ storage.updateFile( }) ); +``` diff --git a/docs/examples/java/tablesdb/create-boolean-column.md b/docs/examples/java/tablesdb/create-boolean-column.md index 14a96a14..eee5271b 100644 --- a/docs/examples/java/tablesdb/create-boolean-column.md +++ b/docs/examples/java/tablesdb/create-boolean-column.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.TablesDB; @@ -26,3 +27,4 @@ tablesDB.createBooleanColumn( }) ); +``` diff --git a/docs/examples/java/tablesdb/create-datetime-column.md b/docs/examples/java/tablesdb/create-datetime-column.md index 6dd28b36..6fdb11b5 100644 --- a/docs/examples/java/tablesdb/create-datetime-column.md +++ b/docs/examples/java/tablesdb/create-datetime-column.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.TablesDB; @@ -26,3 +27,4 @@ tablesDB.createDatetimeColumn( }) ); +``` diff --git a/docs/examples/java/tablesdb/create-email-column.md b/docs/examples/java/tablesdb/create-email-column.md index e9f3d368..864604dd 100644 --- a/docs/examples/java/tablesdb/create-email-column.md +++ b/docs/examples/java/tablesdb/create-email-column.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.TablesDB; @@ -26,3 +27,4 @@ tablesDB.createEmailColumn( }) ); +``` diff --git a/docs/examples/java/tablesdb/create-enum-column.md b/docs/examples/java/tablesdb/create-enum-column.md index ea0452f2..a932605e 100644 --- a/docs/examples/java/tablesdb/create-enum-column.md +++ b/docs/examples/java/tablesdb/create-enum-column.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.TablesDB; @@ -27,3 +28,4 @@ tablesDB.createEnumColumn( }) ); +``` diff --git a/docs/examples/java/tablesdb/create-float-column.md b/docs/examples/java/tablesdb/create-float-column.md index 51312d03..5582d515 100644 --- a/docs/examples/java/tablesdb/create-float-column.md +++ b/docs/examples/java/tablesdb/create-float-column.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.TablesDB; @@ -28,3 +29,4 @@ tablesDB.createFloatColumn( }) ); +``` diff --git a/docs/examples/java/tablesdb/create-index.md b/docs/examples/java/tablesdb/create-index.md index db74aae1..0ad4055f 100644 --- a/docs/examples/java/tablesdb/create-index.md +++ b/docs/examples/java/tablesdb/create-index.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.TablesDB; @@ -29,3 +30,4 @@ tablesDB.createIndex( }) ); +``` diff --git a/docs/examples/java/tablesdb/create-integer-column.md b/docs/examples/java/tablesdb/create-integer-column.md index 1e0a3633..04371d85 100644 --- a/docs/examples/java/tablesdb/create-integer-column.md +++ b/docs/examples/java/tablesdb/create-integer-column.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.TablesDB; @@ -28,3 +29,4 @@ tablesDB.createIntegerColumn( }) ); +``` diff --git a/docs/examples/java/tablesdb/create-ip-column.md b/docs/examples/java/tablesdb/create-ip-column.md index a963cc10..eb97261e 100644 --- a/docs/examples/java/tablesdb/create-ip-column.md +++ b/docs/examples/java/tablesdb/create-ip-column.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.TablesDB; @@ -26,3 +27,4 @@ tablesDB.createIpColumn( }) ); +``` diff --git a/docs/examples/java/tablesdb/create-line-column.md b/docs/examples/java/tablesdb/create-line-column.md index f8351cac..7dc67e36 100644 --- a/docs/examples/java/tablesdb/create-line-column.md +++ b/docs/examples/java/tablesdb/create-line-column.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.TablesDB; @@ -25,3 +26,4 @@ tablesDB.createLineColumn( }) ); +``` diff --git a/docs/examples/java/tablesdb/create-longtext-column.md b/docs/examples/java/tablesdb/create-longtext-column.md index 6b3826fe..fa6b2584 100644 --- a/docs/examples/java/tablesdb/create-longtext-column.md +++ b/docs/examples/java/tablesdb/create-longtext-column.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.TablesDB; @@ -26,3 +27,4 @@ tablesDB.createLongtextColumn( }) ); +``` diff --git a/docs/examples/java/tablesdb/create-mediumtext-column.md b/docs/examples/java/tablesdb/create-mediumtext-column.md index 11d6ad5c..2e4d0885 100644 --- a/docs/examples/java/tablesdb/create-mediumtext-column.md +++ b/docs/examples/java/tablesdb/create-mediumtext-column.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.TablesDB; @@ -26,3 +27,4 @@ tablesDB.createMediumtextColumn( }) ); +``` diff --git a/docs/examples/java/tablesdb/create-operations.md b/docs/examples/java/tablesdb/create-operations.md index a7c3a1bc..06659041 100644 --- a/docs/examples/java/tablesdb/create-operations.md +++ b/docs/examples/java/tablesdb/create-operations.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.TablesDB; @@ -30,3 +31,4 @@ tablesDB.createOperations( }) ); +``` diff --git a/docs/examples/java/tablesdb/create-point-column.md b/docs/examples/java/tablesdb/create-point-column.md index 2f6ae0e9..0d01b7ab 100644 --- a/docs/examples/java/tablesdb/create-point-column.md +++ b/docs/examples/java/tablesdb/create-point-column.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.TablesDB; @@ -25,3 +26,4 @@ tablesDB.createPointColumn( }) ); +``` diff --git a/docs/examples/java/tablesdb/create-polygon-column.md b/docs/examples/java/tablesdb/create-polygon-column.md index 58caa8a7..bbf2563a 100644 --- a/docs/examples/java/tablesdb/create-polygon-column.md +++ b/docs/examples/java/tablesdb/create-polygon-column.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.TablesDB; @@ -25,3 +26,4 @@ tablesDB.createPolygonColumn( }) ); +``` diff --git a/docs/examples/java/tablesdb/create-relationship-column.md b/docs/examples/java/tablesdb/create-relationship-column.md index c7a3a5f2..f72d573d 100644 --- a/docs/examples/java/tablesdb/create-relationship-column.md +++ b/docs/examples/java/tablesdb/create-relationship-column.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.TablesDB; @@ -30,3 +31,4 @@ tablesDB.createRelationshipColumn( }) ); +``` diff --git a/docs/examples/java/tablesdb/create-row.md b/docs/examples/java/tablesdb/create-row.md index 3da8c324..c3193a42 100644 --- a/docs/examples/java/tablesdb/create-row.md +++ b/docs/examples/java/tablesdb/create-row.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.Permission; @@ -34,3 +35,4 @@ tablesDB.createRow( }) ); +``` diff --git a/docs/examples/java/tablesdb/create-rows.md b/docs/examples/java/tablesdb/create-rows.md index e99ea04d..1e16a4df 100644 --- a/docs/examples/java/tablesdb/create-rows.md +++ b/docs/examples/java/tablesdb/create-rows.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.TablesDB; @@ -24,3 +25,4 @@ tablesDB.createRows( }) ); +``` diff --git a/docs/examples/java/tablesdb/create-string-column.md b/docs/examples/java/tablesdb/create-string-column.md index 35963400..058d5850 100644 --- a/docs/examples/java/tablesdb/create-string-column.md +++ b/docs/examples/java/tablesdb/create-string-column.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.TablesDB; @@ -28,3 +29,4 @@ tablesDB.createStringColumn( }) ); +``` diff --git a/docs/examples/java/tablesdb/create-table.md b/docs/examples/java/tablesdb/create-table.md index 80ae1a30..079ff5de 100644 --- a/docs/examples/java/tablesdb/create-table.md +++ b/docs/examples/java/tablesdb/create-table.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.Permission; @@ -30,3 +31,4 @@ tablesDB.createTable( }) ); +``` diff --git a/docs/examples/java/tablesdb/create-text-column.md b/docs/examples/java/tablesdb/create-text-column.md index a13c66d0..293c2103 100644 --- a/docs/examples/java/tablesdb/create-text-column.md +++ b/docs/examples/java/tablesdb/create-text-column.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.TablesDB; @@ -26,3 +27,4 @@ tablesDB.createTextColumn( }) ); +``` diff --git a/docs/examples/java/tablesdb/create-transaction.md b/docs/examples/java/tablesdb/create-transaction.md index 3529956c..d66c2200 100644 --- a/docs/examples/java/tablesdb/create-transaction.md +++ b/docs/examples/java/tablesdb/create-transaction.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.TablesDB; @@ -21,3 +22,4 @@ tablesDB.createTransaction( }) ); +``` diff --git a/docs/examples/java/tablesdb/create-url-column.md b/docs/examples/java/tablesdb/create-url-column.md index 20c10e62..0ab5d95e 100644 --- a/docs/examples/java/tablesdb/create-url-column.md +++ b/docs/examples/java/tablesdb/create-url-column.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.TablesDB; @@ -26,3 +27,4 @@ tablesDB.createUrlColumn( }) ); +``` diff --git a/docs/examples/java/tablesdb/create-varchar-column.md b/docs/examples/java/tablesdb/create-varchar-column.md index 5fc30e06..c3d3b5ea 100644 --- a/docs/examples/java/tablesdb/create-varchar-column.md +++ b/docs/examples/java/tablesdb/create-varchar-column.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.TablesDB; @@ -27,3 +28,4 @@ tablesDB.createVarcharColumn( }) ); +``` diff --git a/docs/examples/java/tablesdb/create.md b/docs/examples/java/tablesdb/create.md index 112e8e6d..ccd99cc2 100644 --- a/docs/examples/java/tablesdb/create.md +++ b/docs/examples/java/tablesdb/create.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.TablesDB; @@ -23,3 +24,4 @@ tablesDB.create( }) ); +``` diff --git a/docs/examples/java/tablesdb/decrement-row-column.md b/docs/examples/java/tablesdb/decrement-row-column.md index 78a81167..7d35318f 100644 --- a/docs/examples/java/tablesdb/decrement-row-column.md +++ b/docs/examples/java/tablesdb/decrement-row-column.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.TablesDB; @@ -27,3 +28,4 @@ tablesDB.decrementRowColumn( }) ); +``` diff --git a/docs/examples/java/tablesdb/delete-column.md b/docs/examples/java/tablesdb/delete-column.md index 25d94d2f..106bb119 100644 --- a/docs/examples/java/tablesdb/delete-column.md +++ b/docs/examples/java/tablesdb/delete-column.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.TablesDB; @@ -23,3 +24,4 @@ tablesDB.deleteColumn( }) ); +``` diff --git a/docs/examples/java/tablesdb/delete-index.md b/docs/examples/java/tablesdb/delete-index.md index aa40dd07..3185434c 100644 --- a/docs/examples/java/tablesdb/delete-index.md +++ b/docs/examples/java/tablesdb/delete-index.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.TablesDB; @@ -23,3 +24,4 @@ tablesDB.deleteIndex( }) ); +``` diff --git a/docs/examples/java/tablesdb/delete-row.md b/docs/examples/java/tablesdb/delete-row.md index 5da1ba0c..800e4f79 100644 --- a/docs/examples/java/tablesdb/delete-row.md +++ b/docs/examples/java/tablesdb/delete-row.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.TablesDB; @@ -24,3 +25,4 @@ tablesDB.deleteRow( }) ); +``` diff --git a/docs/examples/java/tablesdb/delete-rows.md b/docs/examples/java/tablesdb/delete-rows.md index f90789d2..f12aaa36 100644 --- a/docs/examples/java/tablesdb/delete-rows.md +++ b/docs/examples/java/tablesdb/delete-rows.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.TablesDB; @@ -24,3 +25,4 @@ tablesDB.deleteRows( }) ); +``` diff --git a/docs/examples/java/tablesdb/delete-table.md b/docs/examples/java/tablesdb/delete-table.md index dcd6daa9..b9829080 100644 --- a/docs/examples/java/tablesdb/delete-table.md +++ b/docs/examples/java/tablesdb/delete-table.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.TablesDB; @@ -22,3 +23,4 @@ tablesDB.deleteTable( }) ); +``` diff --git a/docs/examples/java/tablesdb/delete-transaction.md b/docs/examples/java/tablesdb/delete-transaction.md index 816b6e5d..8a0a6507 100644 --- a/docs/examples/java/tablesdb/delete-transaction.md +++ b/docs/examples/java/tablesdb/delete-transaction.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.TablesDB; @@ -21,3 +22,4 @@ tablesDB.deleteTransaction( }) ); +``` diff --git a/docs/examples/java/tablesdb/delete.md b/docs/examples/java/tablesdb/delete.md index ea30c344..e66bb111 100644 --- a/docs/examples/java/tablesdb/delete.md +++ b/docs/examples/java/tablesdb/delete.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.TablesDB; @@ -21,3 +22,4 @@ tablesDB.delete( }) ); +``` diff --git a/docs/examples/java/tablesdb/get-column.md b/docs/examples/java/tablesdb/get-column.md index 42ed7760..c3425472 100644 --- a/docs/examples/java/tablesdb/get-column.md +++ b/docs/examples/java/tablesdb/get-column.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.TablesDB; @@ -23,3 +24,4 @@ tablesDB.getColumn( }) ); +``` diff --git a/docs/examples/java/tablesdb/get-index.md b/docs/examples/java/tablesdb/get-index.md index d14579d2..3e9d8b05 100644 --- a/docs/examples/java/tablesdb/get-index.md +++ b/docs/examples/java/tablesdb/get-index.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.TablesDB; @@ -23,3 +24,4 @@ tablesDB.getIndex( }) ); +``` diff --git a/docs/examples/java/tablesdb/get-row.md b/docs/examples/java/tablesdb/get-row.md index 5b18e8f8..c424eb24 100644 --- a/docs/examples/java/tablesdb/get-row.md +++ b/docs/examples/java/tablesdb/get-row.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.TablesDB; @@ -25,3 +26,4 @@ tablesDB.getRow( }) ); +``` diff --git a/docs/examples/java/tablesdb/get-table.md b/docs/examples/java/tablesdb/get-table.md index 44862492..839e7b5a 100644 --- a/docs/examples/java/tablesdb/get-table.md +++ b/docs/examples/java/tablesdb/get-table.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.TablesDB; @@ -22,3 +23,4 @@ tablesDB.getTable( }) ); +``` diff --git a/docs/examples/java/tablesdb/get-transaction.md b/docs/examples/java/tablesdb/get-transaction.md index dab07dce..b4d22183 100644 --- a/docs/examples/java/tablesdb/get-transaction.md +++ b/docs/examples/java/tablesdb/get-transaction.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.TablesDB; @@ -21,3 +22,4 @@ tablesDB.getTransaction( }) ); +``` diff --git a/docs/examples/java/tablesdb/get.md b/docs/examples/java/tablesdb/get.md index 6480d62d..1593fce9 100644 --- a/docs/examples/java/tablesdb/get.md +++ b/docs/examples/java/tablesdb/get.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.TablesDB; @@ -21,3 +22,4 @@ tablesDB.get( }) ); +``` diff --git a/docs/examples/java/tablesdb/increment-row-column.md b/docs/examples/java/tablesdb/increment-row-column.md index 33715721..69539c94 100644 --- a/docs/examples/java/tablesdb/increment-row-column.md +++ b/docs/examples/java/tablesdb/increment-row-column.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.TablesDB; @@ -27,3 +28,4 @@ tablesDB.incrementRowColumn( }) ); +``` diff --git a/docs/examples/java/tablesdb/list-columns.md b/docs/examples/java/tablesdb/list-columns.md index f7e37f97..6a997d81 100644 --- a/docs/examples/java/tablesdb/list-columns.md +++ b/docs/examples/java/tablesdb/list-columns.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.TablesDB; @@ -24,3 +25,4 @@ tablesDB.listColumns( }) ); +``` diff --git a/docs/examples/java/tablesdb/list-indexes.md b/docs/examples/java/tablesdb/list-indexes.md index ca792c54..abe669b5 100644 --- a/docs/examples/java/tablesdb/list-indexes.md +++ b/docs/examples/java/tablesdb/list-indexes.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.TablesDB; @@ -24,3 +25,4 @@ tablesDB.listIndexes( }) ); +``` diff --git a/docs/examples/java/tablesdb/list-rows.md b/docs/examples/java/tablesdb/list-rows.md index 7903da4b..dfaad719 100644 --- a/docs/examples/java/tablesdb/list-rows.md +++ b/docs/examples/java/tablesdb/list-rows.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.TablesDB; @@ -25,3 +26,4 @@ tablesDB.listRows( }) ); +``` diff --git a/docs/examples/java/tablesdb/list-tables.md b/docs/examples/java/tablesdb/list-tables.md index 9b4c88bd..37c04631 100644 --- a/docs/examples/java/tablesdb/list-tables.md +++ b/docs/examples/java/tablesdb/list-tables.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.TablesDB; @@ -24,3 +25,4 @@ tablesDB.listTables( }) ); +``` diff --git a/docs/examples/java/tablesdb/list-transactions.md b/docs/examples/java/tablesdb/list-transactions.md index f0b4db05..38ae582b 100644 --- a/docs/examples/java/tablesdb/list-transactions.md +++ b/docs/examples/java/tablesdb/list-transactions.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.TablesDB; @@ -21,3 +22,4 @@ tablesDB.listTransactions( }) ); +``` diff --git a/docs/examples/java/tablesdb/list.md b/docs/examples/java/tablesdb/list.md index cf230365..39ca5442 100644 --- a/docs/examples/java/tablesdb/list.md +++ b/docs/examples/java/tablesdb/list.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.TablesDB; @@ -23,3 +24,4 @@ tablesDB.list( }) ); +``` diff --git a/docs/examples/java/tablesdb/update-boolean-column.md b/docs/examples/java/tablesdb/update-boolean-column.md index d31932f2..9cceda43 100644 --- a/docs/examples/java/tablesdb/update-boolean-column.md +++ b/docs/examples/java/tablesdb/update-boolean-column.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.TablesDB; @@ -26,3 +27,4 @@ tablesDB.updateBooleanColumn( }) ); +``` diff --git a/docs/examples/java/tablesdb/update-datetime-column.md b/docs/examples/java/tablesdb/update-datetime-column.md index b9fb3b23..c5e4bd1e 100644 --- a/docs/examples/java/tablesdb/update-datetime-column.md +++ b/docs/examples/java/tablesdb/update-datetime-column.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.TablesDB; @@ -26,3 +27,4 @@ tablesDB.updateDatetimeColumn( }) ); +``` diff --git a/docs/examples/java/tablesdb/update-email-column.md b/docs/examples/java/tablesdb/update-email-column.md index ed6b93b1..50b86396 100644 --- a/docs/examples/java/tablesdb/update-email-column.md +++ b/docs/examples/java/tablesdb/update-email-column.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.TablesDB; @@ -26,3 +27,4 @@ tablesDB.updateEmailColumn( }) ); +``` diff --git a/docs/examples/java/tablesdb/update-enum-column.md b/docs/examples/java/tablesdb/update-enum-column.md index 0f182b76..0141a59e 100644 --- a/docs/examples/java/tablesdb/update-enum-column.md +++ b/docs/examples/java/tablesdb/update-enum-column.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.TablesDB; @@ -27,3 +28,4 @@ tablesDB.updateEnumColumn( }) ); +``` diff --git a/docs/examples/java/tablesdb/update-float-column.md b/docs/examples/java/tablesdb/update-float-column.md index 0487c06b..90b1d507 100644 --- a/docs/examples/java/tablesdb/update-float-column.md +++ b/docs/examples/java/tablesdb/update-float-column.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.TablesDB; @@ -28,3 +29,4 @@ tablesDB.updateFloatColumn( }) ); +``` diff --git a/docs/examples/java/tablesdb/update-integer-column.md b/docs/examples/java/tablesdb/update-integer-column.md index a9ed33a9..4ba9f1d3 100644 --- a/docs/examples/java/tablesdb/update-integer-column.md +++ b/docs/examples/java/tablesdb/update-integer-column.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.TablesDB; @@ -28,3 +29,4 @@ tablesDB.updateIntegerColumn( }) ); +``` diff --git a/docs/examples/java/tablesdb/update-ip-column.md b/docs/examples/java/tablesdb/update-ip-column.md index 32509547..12bc0815 100644 --- a/docs/examples/java/tablesdb/update-ip-column.md +++ b/docs/examples/java/tablesdb/update-ip-column.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.TablesDB; @@ -26,3 +27,4 @@ tablesDB.updateIpColumn( }) ); +``` diff --git a/docs/examples/java/tablesdb/update-line-column.md b/docs/examples/java/tablesdb/update-line-column.md index 4ef648fb..389b99a9 100644 --- a/docs/examples/java/tablesdb/update-line-column.md +++ b/docs/examples/java/tablesdb/update-line-column.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.TablesDB; @@ -26,3 +27,4 @@ tablesDB.updateLineColumn( }) ); +``` diff --git a/docs/examples/java/tablesdb/update-longtext-column.md b/docs/examples/java/tablesdb/update-longtext-column.md index a6d2331b..0f6ab8b0 100644 --- a/docs/examples/java/tablesdb/update-longtext-column.md +++ b/docs/examples/java/tablesdb/update-longtext-column.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.TablesDB; @@ -26,3 +27,4 @@ tablesDB.updateLongtextColumn( }) ); +``` diff --git a/docs/examples/java/tablesdb/update-mediumtext-column.md b/docs/examples/java/tablesdb/update-mediumtext-column.md index ed096898..08298e65 100644 --- a/docs/examples/java/tablesdb/update-mediumtext-column.md +++ b/docs/examples/java/tablesdb/update-mediumtext-column.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.TablesDB; @@ -26,3 +27,4 @@ tablesDB.updateMediumtextColumn( }) ); +``` diff --git a/docs/examples/java/tablesdb/update-point-column.md b/docs/examples/java/tablesdb/update-point-column.md index 729595df..dc7bf66a 100644 --- a/docs/examples/java/tablesdb/update-point-column.md +++ b/docs/examples/java/tablesdb/update-point-column.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.TablesDB; @@ -26,3 +27,4 @@ tablesDB.updatePointColumn( }) ); +``` diff --git a/docs/examples/java/tablesdb/update-polygon-column.md b/docs/examples/java/tablesdb/update-polygon-column.md index bc6ccc93..6aa7597a 100644 --- a/docs/examples/java/tablesdb/update-polygon-column.md +++ b/docs/examples/java/tablesdb/update-polygon-column.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.TablesDB; @@ -26,3 +27,4 @@ tablesDB.updatePolygonColumn( }) ); +``` diff --git a/docs/examples/java/tablesdb/update-relationship-column.md b/docs/examples/java/tablesdb/update-relationship-column.md index eaf6b1ba..5acc6442 100644 --- a/docs/examples/java/tablesdb/update-relationship-column.md +++ b/docs/examples/java/tablesdb/update-relationship-column.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.TablesDB; @@ -26,3 +27,4 @@ tablesDB.updateRelationshipColumn( }) ); +``` diff --git a/docs/examples/java/tablesdb/update-row.md b/docs/examples/java/tablesdb/update-row.md index 444cc8d9..e22abdfb 100644 --- a/docs/examples/java/tablesdb/update-row.md +++ b/docs/examples/java/tablesdb/update-row.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.Permission; @@ -34,3 +35,4 @@ tablesDB.updateRow( }) ); +``` diff --git a/docs/examples/java/tablesdb/update-rows.md b/docs/examples/java/tablesdb/update-rows.md index 4674a109..cc954291 100644 --- a/docs/examples/java/tablesdb/update-rows.md +++ b/docs/examples/java/tablesdb/update-rows.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.TablesDB; @@ -31,3 +32,4 @@ tablesDB.updateRows( }) ); +``` diff --git a/docs/examples/java/tablesdb/update-string-column.md b/docs/examples/java/tablesdb/update-string-column.md index 36a2ed59..2f83ac11 100644 --- a/docs/examples/java/tablesdb/update-string-column.md +++ b/docs/examples/java/tablesdb/update-string-column.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.TablesDB; @@ -27,3 +28,4 @@ tablesDB.updateStringColumn( }) ); +``` diff --git a/docs/examples/java/tablesdb/update-table.md b/docs/examples/java/tablesdb/update-table.md index 1f2baa07..72bd1127 100644 --- a/docs/examples/java/tablesdb/update-table.md +++ b/docs/examples/java/tablesdb/update-table.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.Permission; @@ -28,3 +29,4 @@ tablesDB.updateTable( }) ); +``` diff --git a/docs/examples/java/tablesdb/update-text-column.md b/docs/examples/java/tablesdb/update-text-column.md index 0f8ac656..949dd394 100644 --- a/docs/examples/java/tablesdb/update-text-column.md +++ b/docs/examples/java/tablesdb/update-text-column.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.TablesDB; @@ -26,3 +27,4 @@ tablesDB.updateTextColumn( }) ); +``` diff --git a/docs/examples/java/tablesdb/update-transaction.md b/docs/examples/java/tablesdb/update-transaction.md index f043d5dc..91790210 100644 --- a/docs/examples/java/tablesdb/update-transaction.md +++ b/docs/examples/java/tablesdb/update-transaction.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.TablesDB; @@ -23,3 +24,4 @@ tablesDB.updateTransaction( }) ); +``` diff --git a/docs/examples/java/tablesdb/update-url-column.md b/docs/examples/java/tablesdb/update-url-column.md index d2273b9e..a1aebc18 100644 --- a/docs/examples/java/tablesdb/update-url-column.md +++ b/docs/examples/java/tablesdb/update-url-column.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.TablesDB; @@ -26,3 +27,4 @@ tablesDB.updateUrlColumn( }) ); +``` diff --git a/docs/examples/java/tablesdb/update-varchar-column.md b/docs/examples/java/tablesdb/update-varchar-column.md index 45451316..e9738c6e 100644 --- a/docs/examples/java/tablesdb/update-varchar-column.md +++ b/docs/examples/java/tablesdb/update-varchar-column.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.TablesDB; @@ -27,3 +28,4 @@ tablesDB.updateVarcharColumn( }) ); +``` diff --git a/docs/examples/java/tablesdb/update.md b/docs/examples/java/tablesdb/update.md index ce269f1f..ee044814 100644 --- a/docs/examples/java/tablesdb/update.md +++ b/docs/examples/java/tablesdb/update.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.TablesDB; @@ -23,3 +24,4 @@ tablesDB.update( }) ); +``` diff --git a/docs/examples/java/tablesdb/upsert-row.md b/docs/examples/java/tablesdb/upsert-row.md index 3c0bddec..faa68369 100644 --- a/docs/examples/java/tablesdb/upsert-row.md +++ b/docs/examples/java/tablesdb/upsert-row.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.Permission; @@ -34,3 +35,4 @@ tablesDB.upsertRow( }) ); +``` diff --git a/docs/examples/java/tablesdb/upsert-rows.md b/docs/examples/java/tablesdb/upsert-rows.md index e16ecb35..1c46abfe 100644 --- a/docs/examples/java/tablesdb/upsert-rows.md +++ b/docs/examples/java/tablesdb/upsert-rows.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.TablesDB; @@ -24,3 +25,4 @@ tablesDB.upsertRows( }) ); +``` diff --git a/docs/examples/java/teams/create-membership.md b/docs/examples/java/teams/create-membership.md index 7834db84..52cf1043 100644 --- a/docs/examples/java/teams/create-membership.md +++ b/docs/examples/java/teams/create-membership.md @@ -1,7 +1,7 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; -import io.appwrite.enums.Roles; Client client = new Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint @@ -12,7 +12,7 @@ Teams teams = new Teams(client); teams.createMembership( "", // teamId - List.of(Roles.ADMIN), // roles + List.of(), // roles "email@example.com", // email (optional) "", // userId (optional) "+12065550100", // phone (optional) @@ -28,3 +28,4 @@ teams.createMembership( }) ); +``` diff --git a/docs/examples/java/teams/create.md b/docs/examples/java/teams/create.md index bc82cb47..d2d921bf 100644 --- a/docs/examples/java/teams/create.md +++ b/docs/examples/java/teams/create.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; @@ -23,3 +24,4 @@ teams.create( }) ); +``` diff --git a/docs/examples/java/teams/delete-membership.md b/docs/examples/java/teams/delete-membership.md index 3b414be0..9a8d609b 100644 --- a/docs/examples/java/teams/delete-membership.md +++ b/docs/examples/java/teams/delete-membership.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; @@ -22,3 +23,4 @@ teams.deleteMembership( }) ); +``` diff --git a/docs/examples/java/teams/delete.md b/docs/examples/java/teams/delete.md index 07f5c12e..a96e78ee 100644 --- a/docs/examples/java/teams/delete.md +++ b/docs/examples/java/teams/delete.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; @@ -21,3 +22,4 @@ teams.delete( }) ); +``` diff --git a/docs/examples/java/teams/get-membership.md b/docs/examples/java/teams/get-membership.md index e7c1571a..0ebfec90 100644 --- a/docs/examples/java/teams/get-membership.md +++ b/docs/examples/java/teams/get-membership.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; @@ -22,3 +23,4 @@ teams.getMembership( }) ); +``` diff --git a/docs/examples/java/teams/get-prefs.md b/docs/examples/java/teams/get-prefs.md index 6d308148..8a4846f0 100644 --- a/docs/examples/java/teams/get-prefs.md +++ b/docs/examples/java/teams/get-prefs.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; @@ -21,3 +22,4 @@ teams.getPrefs( }) ); +``` diff --git a/docs/examples/java/teams/get.md b/docs/examples/java/teams/get.md index a479e9af..8fc7fc6e 100644 --- a/docs/examples/java/teams/get.md +++ b/docs/examples/java/teams/get.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; @@ -21,3 +22,4 @@ teams.get( }) ); +``` diff --git a/docs/examples/java/teams/list-memberships.md b/docs/examples/java/teams/list-memberships.md index 5437e604..348ffd83 100644 --- a/docs/examples/java/teams/list-memberships.md +++ b/docs/examples/java/teams/list-memberships.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; @@ -24,3 +25,4 @@ teams.listMemberships( }) ); +``` diff --git a/docs/examples/java/teams/list.md b/docs/examples/java/teams/list.md index 06f0034b..0f0827d6 100644 --- a/docs/examples/java/teams/list.md +++ b/docs/examples/java/teams/list.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; @@ -23,3 +24,4 @@ teams.list( }) ); +``` diff --git a/docs/examples/java/teams/update-membership-status.md b/docs/examples/java/teams/update-membership-status.md index 461cf4cb..bb82703d 100644 --- a/docs/examples/java/teams/update-membership-status.md +++ b/docs/examples/java/teams/update-membership-status.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; @@ -24,3 +25,4 @@ teams.updateMembershipStatus( }) ); +``` diff --git a/docs/examples/java/teams/update-membership.md b/docs/examples/java/teams/update-membership.md index a0374c07..97034ae3 100644 --- a/docs/examples/java/teams/update-membership.md +++ b/docs/examples/java/teams/update-membership.md @@ -1,7 +1,7 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; -import io.appwrite.enums.Roles; Client client = new Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint @@ -13,7 +13,7 @@ Teams teams = new Teams(client); teams.updateMembership( "", // teamId "", // membershipId - List.of(Roles.ADMIN), // roles + List.of(), // roles new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); @@ -24,3 +24,4 @@ teams.updateMembership( }) ); +``` diff --git a/docs/examples/java/teams/update-name.md b/docs/examples/java/teams/update-name.md index f2f1b02d..7ee25148 100644 --- a/docs/examples/java/teams/update-name.md +++ b/docs/examples/java/teams/update-name.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; @@ -22,3 +23,4 @@ teams.updateName( }) ); +``` diff --git a/docs/examples/java/teams/update-prefs.md b/docs/examples/java/teams/update-prefs.md index 85f18aef..7f7be4c7 100644 --- a/docs/examples/java/teams/update-prefs.md +++ b/docs/examples/java/teams/update-prefs.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; @@ -22,3 +23,4 @@ teams.updatePrefs( }) ); +``` diff --git a/docs/examples/java/tokens/create-file-token.md b/docs/examples/java/tokens/create-file-token.md index 6996641d..25f6b62f 100644 --- a/docs/examples/java/tokens/create-file-token.md +++ b/docs/examples/java/tokens/create-file-token.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Tokens; @@ -23,3 +24,4 @@ tokens.createFileToken( }) ); +``` diff --git a/docs/examples/java/tokens/delete.md b/docs/examples/java/tokens/delete.md index bf1874d2..06c8478a 100644 --- a/docs/examples/java/tokens/delete.md +++ b/docs/examples/java/tokens/delete.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Tokens; @@ -21,3 +22,4 @@ tokens.delete( }) ); +``` diff --git a/docs/examples/java/tokens/get.md b/docs/examples/java/tokens/get.md index c55563c2..584a37e4 100644 --- a/docs/examples/java/tokens/get.md +++ b/docs/examples/java/tokens/get.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Tokens; @@ -21,3 +22,4 @@ tokens.get( }) ); +``` diff --git a/docs/examples/java/tokens/list.md b/docs/examples/java/tokens/list.md index 1147f6f5..fdda4490 100644 --- a/docs/examples/java/tokens/list.md +++ b/docs/examples/java/tokens/list.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Tokens; @@ -24,3 +25,4 @@ tokens.list( }) ); +``` diff --git a/docs/examples/java/tokens/update.md b/docs/examples/java/tokens/update.md index 2a44f2d1..132fcab2 100644 --- a/docs/examples/java/tokens/update.md +++ b/docs/examples/java/tokens/update.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Tokens; @@ -22,3 +23,4 @@ tokens.update( }) ); +``` diff --git a/docs/examples/java/users/create-argon-2-user.md b/docs/examples/java/users/create-argon-2-user.md index c78f236c..50fbb283 100644 --- a/docs/examples/java/users/create-argon-2-user.md +++ b/docs/examples/java/users/create-argon-2-user.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; @@ -24,3 +25,4 @@ users.createArgon2User( }) ); +``` diff --git a/docs/examples/java/users/create-bcrypt-user.md b/docs/examples/java/users/create-bcrypt-user.md index 7b85f960..0963995e 100644 --- a/docs/examples/java/users/create-bcrypt-user.md +++ b/docs/examples/java/users/create-bcrypt-user.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; @@ -24,3 +25,4 @@ users.createBcryptUser( }) ); +``` diff --git a/docs/examples/java/users/create-jwt.md b/docs/examples/java/users/create-jwt.md index 2b4d7e9c..521c10b2 100644 --- a/docs/examples/java/users/create-jwt.md +++ b/docs/examples/java/users/create-jwt.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; @@ -23,3 +24,4 @@ users.createJWT( }) ); +``` diff --git a/docs/examples/java/users/create-md-5-user.md b/docs/examples/java/users/create-md-5-user.md index 666e1079..840ba29a 100644 --- a/docs/examples/java/users/create-md-5-user.md +++ b/docs/examples/java/users/create-md-5-user.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; @@ -24,3 +25,4 @@ users.createMD5User( }) ); +``` diff --git a/docs/examples/java/users/create-mfa-recovery-codes.md b/docs/examples/java/users/create-mfa-recovery-codes.md index 167c92cb..5715b9b1 100644 --- a/docs/examples/java/users/create-mfa-recovery-codes.md +++ b/docs/examples/java/users/create-mfa-recovery-codes.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; @@ -21,3 +22,4 @@ users.createMFARecoveryCodes( }) ); +``` diff --git a/docs/examples/java/users/create-ph-pass-user.md b/docs/examples/java/users/create-ph-pass-user.md index 048ba39c..fd9f5f5b 100644 --- a/docs/examples/java/users/create-ph-pass-user.md +++ b/docs/examples/java/users/create-ph-pass-user.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; @@ -24,3 +25,4 @@ users.createPHPassUser( }) ); +``` diff --git a/docs/examples/java/users/create-scrypt-modified-user.md b/docs/examples/java/users/create-scrypt-modified-user.md index 77a7d5fd..892e49ff 100644 --- a/docs/examples/java/users/create-scrypt-modified-user.md +++ b/docs/examples/java/users/create-scrypt-modified-user.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; @@ -27,3 +28,4 @@ users.createScryptModifiedUser( }) ); +``` diff --git a/docs/examples/java/users/create-scrypt-user.md b/docs/examples/java/users/create-scrypt-user.md index 0e81237e..e894f1d2 100644 --- a/docs/examples/java/users/create-scrypt-user.md +++ b/docs/examples/java/users/create-scrypt-user.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; @@ -29,3 +30,4 @@ users.createScryptUser( }) ); +``` diff --git a/docs/examples/java/users/create-session.md b/docs/examples/java/users/create-session.md index 8d9ce03d..e5c77e42 100644 --- a/docs/examples/java/users/create-session.md +++ b/docs/examples/java/users/create-session.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; @@ -21,3 +22,4 @@ users.createSession( }) ); +``` diff --git a/docs/examples/java/users/create-sha-user.md b/docs/examples/java/users/create-sha-user.md index 3a37ddce..d60caa75 100644 --- a/docs/examples/java/users/create-sha-user.md +++ b/docs/examples/java/users/create-sha-user.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; @@ -26,3 +27,4 @@ users.createSHAUser( }) ); +``` diff --git a/docs/examples/java/users/create-target.md b/docs/examples/java/users/create-target.md index 6681b170..8a953ebb 100644 --- a/docs/examples/java/users/create-target.md +++ b/docs/examples/java/users/create-target.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; @@ -27,3 +28,4 @@ users.createTarget( }) ); +``` diff --git a/docs/examples/java/users/create-token.md b/docs/examples/java/users/create-token.md index 330b344b..fccdf6ba 100644 --- a/docs/examples/java/users/create-token.md +++ b/docs/examples/java/users/create-token.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; @@ -23,3 +24,4 @@ users.createToken( }) ); +``` diff --git a/docs/examples/java/users/create.md b/docs/examples/java/users/create.md index 95a72bf7..ddf631a9 100644 --- a/docs/examples/java/users/create.md +++ b/docs/examples/java/users/create.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; @@ -25,3 +26,4 @@ users.create( }) ); +``` diff --git a/docs/examples/java/users/delete-identity.md b/docs/examples/java/users/delete-identity.md index 40c410db..f27e3af6 100644 --- a/docs/examples/java/users/delete-identity.md +++ b/docs/examples/java/users/delete-identity.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; @@ -21,3 +22,4 @@ users.deleteIdentity( }) ); +``` diff --git a/docs/examples/java/users/delete-mfa-authenticator.md b/docs/examples/java/users/delete-mfa-authenticator.md index c27b39ef..cdf8ec03 100644 --- a/docs/examples/java/users/delete-mfa-authenticator.md +++ b/docs/examples/java/users/delete-mfa-authenticator.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; @@ -23,3 +24,4 @@ users.deleteMFAAuthenticator( }) ); +``` diff --git a/docs/examples/java/users/delete-session.md b/docs/examples/java/users/delete-session.md index 0e0a52ba..8b39eb11 100644 --- a/docs/examples/java/users/delete-session.md +++ b/docs/examples/java/users/delete-session.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; @@ -22,3 +23,4 @@ users.deleteSession( }) ); +``` diff --git a/docs/examples/java/users/delete-sessions.md b/docs/examples/java/users/delete-sessions.md index 6a3bbbf4..01b63b4c 100644 --- a/docs/examples/java/users/delete-sessions.md +++ b/docs/examples/java/users/delete-sessions.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; @@ -21,3 +22,4 @@ users.deleteSessions( }) ); +``` diff --git a/docs/examples/java/users/delete-target.md b/docs/examples/java/users/delete-target.md index e38ee1d5..f222ec65 100644 --- a/docs/examples/java/users/delete-target.md +++ b/docs/examples/java/users/delete-target.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; @@ -22,3 +23,4 @@ users.deleteTarget( }) ); +``` diff --git a/docs/examples/java/users/delete.md b/docs/examples/java/users/delete.md index d207f9af..00dfd237 100644 --- a/docs/examples/java/users/delete.md +++ b/docs/examples/java/users/delete.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; @@ -21,3 +22,4 @@ users.delete( }) ); +``` diff --git a/docs/examples/java/users/get-mfa-recovery-codes.md b/docs/examples/java/users/get-mfa-recovery-codes.md index e6173557..28a433ff 100644 --- a/docs/examples/java/users/get-mfa-recovery-codes.md +++ b/docs/examples/java/users/get-mfa-recovery-codes.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; @@ -21,3 +22,4 @@ users.getMFARecoveryCodes( }) ); +``` diff --git a/docs/examples/java/users/get-prefs.md b/docs/examples/java/users/get-prefs.md index 9ff3e4b3..405f0331 100644 --- a/docs/examples/java/users/get-prefs.md +++ b/docs/examples/java/users/get-prefs.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; @@ -21,3 +22,4 @@ users.getPrefs( }) ); +``` diff --git a/docs/examples/java/users/get-target.md b/docs/examples/java/users/get-target.md index 05c80283..f103524d 100644 --- a/docs/examples/java/users/get-target.md +++ b/docs/examples/java/users/get-target.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; @@ -22,3 +23,4 @@ users.getTarget( }) ); +``` diff --git a/docs/examples/java/users/get.md b/docs/examples/java/users/get.md index d8cd707c..d72e78ca 100644 --- a/docs/examples/java/users/get.md +++ b/docs/examples/java/users/get.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; @@ -21,3 +22,4 @@ users.get( }) ); +``` diff --git a/docs/examples/java/users/list-identities.md b/docs/examples/java/users/list-identities.md index 2dfa2975..505ac56b 100644 --- a/docs/examples/java/users/list-identities.md +++ b/docs/examples/java/users/list-identities.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; @@ -23,3 +24,4 @@ users.listIdentities( }) ); +``` diff --git a/docs/examples/java/users/list-logs.md b/docs/examples/java/users/list-logs.md index ebaa749f..fa2107b3 100644 --- a/docs/examples/java/users/list-logs.md +++ b/docs/examples/java/users/list-logs.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; @@ -23,3 +24,4 @@ users.listLogs( }) ); +``` diff --git a/docs/examples/java/users/list-memberships.md b/docs/examples/java/users/list-memberships.md index 3335e18b..0beeb6a6 100644 --- a/docs/examples/java/users/list-memberships.md +++ b/docs/examples/java/users/list-memberships.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; @@ -24,3 +25,4 @@ users.listMemberships( }) ); +``` diff --git a/docs/examples/java/users/list-mfa-factors.md b/docs/examples/java/users/list-mfa-factors.md index c26f463b..fc273e13 100644 --- a/docs/examples/java/users/list-mfa-factors.md +++ b/docs/examples/java/users/list-mfa-factors.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; @@ -21,3 +22,4 @@ users.listMFAFactors( }) ); +``` diff --git a/docs/examples/java/users/list-sessions.md b/docs/examples/java/users/list-sessions.md index d3b24e53..5c9d66c2 100644 --- a/docs/examples/java/users/list-sessions.md +++ b/docs/examples/java/users/list-sessions.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; @@ -22,3 +23,4 @@ users.listSessions( }) ); +``` diff --git a/docs/examples/java/users/list-targets.md b/docs/examples/java/users/list-targets.md index 02fd291c..c531484d 100644 --- a/docs/examples/java/users/list-targets.md +++ b/docs/examples/java/users/list-targets.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; @@ -23,3 +24,4 @@ users.listTargets( }) ); +``` diff --git a/docs/examples/java/users/list.md b/docs/examples/java/users/list.md index 65ed4b00..78bd24e6 100644 --- a/docs/examples/java/users/list.md +++ b/docs/examples/java/users/list.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; @@ -23,3 +24,4 @@ users.list( }) ); +``` diff --git a/docs/examples/java/users/update-email-verification.md b/docs/examples/java/users/update-email-verification.md index a79c87b4..c0b3b314 100644 --- a/docs/examples/java/users/update-email-verification.md +++ b/docs/examples/java/users/update-email-verification.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; @@ -22,3 +23,4 @@ users.updateEmailVerification( }) ); +``` diff --git a/docs/examples/java/users/update-email.md b/docs/examples/java/users/update-email.md index 24cdb00d..8d343ce2 100644 --- a/docs/examples/java/users/update-email.md +++ b/docs/examples/java/users/update-email.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; @@ -22,3 +23,4 @@ users.updateEmail( }) ); +``` diff --git a/docs/examples/java/users/update-labels.md b/docs/examples/java/users/update-labels.md index 953f4662..ae52deba 100644 --- a/docs/examples/java/users/update-labels.md +++ b/docs/examples/java/users/update-labels.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; @@ -22,3 +23,4 @@ users.updateLabels( }) ); +``` diff --git a/docs/examples/java/users/update-mfa-recovery-codes.md b/docs/examples/java/users/update-mfa-recovery-codes.md index 98522b62..a0b9d1b0 100644 --- a/docs/examples/java/users/update-mfa-recovery-codes.md +++ b/docs/examples/java/users/update-mfa-recovery-codes.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; @@ -21,3 +22,4 @@ users.updateMFARecoveryCodes( }) ); +``` diff --git a/docs/examples/java/users/update-mfa.md b/docs/examples/java/users/update-mfa.md index dbcded6d..b7a5e337 100644 --- a/docs/examples/java/users/update-mfa.md +++ b/docs/examples/java/users/update-mfa.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; @@ -22,3 +23,4 @@ users.updateMFA( }) ); +``` diff --git a/docs/examples/java/users/update-name.md b/docs/examples/java/users/update-name.md index b4f889cb..0de8d5db 100644 --- a/docs/examples/java/users/update-name.md +++ b/docs/examples/java/users/update-name.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; @@ -22,3 +23,4 @@ users.updateName( }) ); +``` diff --git a/docs/examples/java/users/update-password.md b/docs/examples/java/users/update-password.md index 94e24da4..3e073ecf 100644 --- a/docs/examples/java/users/update-password.md +++ b/docs/examples/java/users/update-password.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; @@ -22,3 +23,4 @@ users.updatePassword( }) ); +``` diff --git a/docs/examples/java/users/update-phone-verification.md b/docs/examples/java/users/update-phone-verification.md index 4a1d5a29..b11e744f 100644 --- a/docs/examples/java/users/update-phone-verification.md +++ b/docs/examples/java/users/update-phone-verification.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; @@ -22,3 +23,4 @@ users.updatePhoneVerification( }) ); +``` diff --git a/docs/examples/java/users/update-phone.md b/docs/examples/java/users/update-phone.md index 49477fad..2eee1833 100644 --- a/docs/examples/java/users/update-phone.md +++ b/docs/examples/java/users/update-phone.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; @@ -22,3 +23,4 @@ users.updatePhone( }) ); +``` diff --git a/docs/examples/java/users/update-prefs.md b/docs/examples/java/users/update-prefs.md index 5a128aa7..ff2a6c11 100644 --- a/docs/examples/java/users/update-prefs.md +++ b/docs/examples/java/users/update-prefs.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; @@ -22,3 +23,4 @@ users.updatePrefs( }) ); +``` diff --git a/docs/examples/java/users/update-status.md b/docs/examples/java/users/update-status.md index 6e875b98..6ff97e19 100644 --- a/docs/examples/java/users/update-status.md +++ b/docs/examples/java/users/update-status.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; @@ -22,3 +23,4 @@ users.updateStatus( }) ); +``` diff --git a/docs/examples/java/users/update-target.md b/docs/examples/java/users/update-target.md index 67b90bfb..c9335828 100644 --- a/docs/examples/java/users/update-target.md +++ b/docs/examples/java/users/update-target.md @@ -1,3 +1,4 @@ +```java import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; @@ -25,3 +26,4 @@ users.updateTarget( }) ); +``` diff --git a/docs/examples/kotlin/account/create-anonymous-session.md b/docs/examples/kotlin/account/create-anonymous-session.md index 8f35c635..68a9fd8c 100644 --- a/docs/examples/kotlin/account/create-anonymous-session.md +++ b/docs/examples/kotlin/account/create-anonymous-session.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account @@ -10,3 +11,4 @@ val client = Client() val account = Account(client) val response = account.createAnonymousSession() +``` diff --git a/docs/examples/kotlin/account/create-email-password-session.md b/docs/examples/kotlin/account/create-email-password-session.md index 55add0bb..a1cea8ff 100644 --- a/docs/examples/kotlin/account/create-email-password-session.md +++ b/docs/examples/kotlin/account/create-email-password-session.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account @@ -13,3 +14,4 @@ val response = account.createEmailPasswordSession( email = "email@example.com", password = "password" ) +``` diff --git a/docs/examples/kotlin/account/create-email-token.md b/docs/examples/kotlin/account/create-email-token.md index 416163ac..dcca57a7 100644 --- a/docs/examples/kotlin/account/create-email-token.md +++ b/docs/examples/kotlin/account/create-email-token.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account @@ -14,3 +15,4 @@ val response = account.createEmailToken( email = "email@example.com", phrase = false // optional ) +``` diff --git a/docs/examples/kotlin/account/create-email-verification.md b/docs/examples/kotlin/account/create-email-verification.md index 4ef178fb..1e35db8b 100644 --- a/docs/examples/kotlin/account/create-email-verification.md +++ b/docs/examples/kotlin/account/create-email-verification.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account @@ -12,3 +13,4 @@ val account = Account(client) val response = account.createEmailVerification( url = "https://example.com" ) +``` diff --git a/docs/examples/kotlin/account/create-jwt.md b/docs/examples/kotlin/account/create-jwt.md index 4349cb5b..9fdd8c2a 100644 --- a/docs/examples/kotlin/account/create-jwt.md +++ b/docs/examples/kotlin/account/create-jwt.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account @@ -12,3 +13,4 @@ val account = Account(client) val response = account.createJWT( duration = 0 // optional ) +``` diff --git a/docs/examples/kotlin/account/create-key.md b/docs/examples/kotlin/account/create-key.md new file mode 100644 index 00000000..212744f5 --- /dev/null +++ b/docs/examples/kotlin/account/create-key.md @@ -0,0 +1,19 @@ +```kotlin +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account +import io.appwrite.enums.Scopes + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setSession("") // The user session to authenticate with + +val account = Account(client) + +val response = account.createKey( + name = "", + scopes = listOf(Scopes.ACCOUNT), + expire = "" // optional +) +``` diff --git a/docs/examples/kotlin/account/create-magic-url-token.md b/docs/examples/kotlin/account/create-magic-url-token.md index 185ee6bc..16a0a9ef 100644 --- a/docs/examples/kotlin/account/create-magic-url-token.md +++ b/docs/examples/kotlin/account/create-magic-url-token.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account @@ -15,3 +16,4 @@ val response = account.createMagicURLToken( url = "https://example.com", // optional phrase = false // optional ) +``` diff --git a/docs/examples/kotlin/account/create-mfa-authenticator.md b/docs/examples/kotlin/account/create-mfa-authenticator.md index 89c07b36..51b69b1c 100644 --- a/docs/examples/kotlin/account/create-mfa-authenticator.md +++ b/docs/examples/kotlin/account/create-mfa-authenticator.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account @@ -13,3 +14,4 @@ val account = Account(client) val response = account.createMFAAuthenticator( type = AuthenticatorType.TOTP ) +``` diff --git a/docs/examples/kotlin/account/create-mfa-challenge.md b/docs/examples/kotlin/account/create-mfa-challenge.md index a08ade21..664be4af 100644 --- a/docs/examples/kotlin/account/create-mfa-challenge.md +++ b/docs/examples/kotlin/account/create-mfa-challenge.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account @@ -13,3 +14,4 @@ val account = Account(client) val response = account.createMFAChallenge( factor = AuthenticationFactor.EMAIL ) +``` diff --git a/docs/examples/kotlin/account/create-mfa-recovery-codes.md b/docs/examples/kotlin/account/create-mfa-recovery-codes.md index c01499b0..30dcdb74 100644 --- a/docs/examples/kotlin/account/create-mfa-recovery-codes.md +++ b/docs/examples/kotlin/account/create-mfa-recovery-codes.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account @@ -10,3 +11,4 @@ val client = Client() val account = Account(client) val response = account.createMFARecoveryCodes() +``` diff --git a/docs/examples/kotlin/account/create-o-auth-2-token.md b/docs/examples/kotlin/account/create-o-auth-2-token.md index 71d3d673..bc993687 100644 --- a/docs/examples/kotlin/account/create-o-auth-2-token.md +++ b/docs/examples/kotlin/account/create-o-auth-2-token.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account @@ -16,3 +17,4 @@ account.createOAuth2Token( failure = "https://example.com", // optional scopes = listOf() // optional ) +``` diff --git a/docs/examples/kotlin/account/create-phone-token.md b/docs/examples/kotlin/account/create-phone-token.md index 1d44bfa1..c4f4075a 100644 --- a/docs/examples/kotlin/account/create-phone-token.md +++ b/docs/examples/kotlin/account/create-phone-token.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account @@ -13,3 +14,4 @@ val response = account.createPhoneToken( userId = "", phone = "+12065550100" ) +``` diff --git a/docs/examples/kotlin/account/create-phone-verification.md b/docs/examples/kotlin/account/create-phone-verification.md index 3ae45b39..991862fa 100644 --- a/docs/examples/kotlin/account/create-phone-verification.md +++ b/docs/examples/kotlin/account/create-phone-verification.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account @@ -10,3 +11,4 @@ val client = Client() val account = Account(client) val response = account.createPhoneVerification() +``` diff --git a/docs/examples/kotlin/account/create-recovery.md b/docs/examples/kotlin/account/create-recovery.md index 949219cf..826fb636 100644 --- a/docs/examples/kotlin/account/create-recovery.md +++ b/docs/examples/kotlin/account/create-recovery.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account @@ -13,3 +14,4 @@ val response = account.createRecovery( email = "email@example.com", url = "https://example.com" ) +``` diff --git a/docs/examples/kotlin/account/create-session.md b/docs/examples/kotlin/account/create-session.md index 07a3cd40..fac50ff4 100644 --- a/docs/examples/kotlin/account/create-session.md +++ b/docs/examples/kotlin/account/create-session.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account @@ -13,3 +14,4 @@ val response = account.createSession( userId = "", secret = "" ) +``` diff --git a/docs/examples/kotlin/account/create-verification.md b/docs/examples/kotlin/account/create-verification.md index f3441c9b..6b01e27b 100644 --- a/docs/examples/kotlin/account/create-verification.md +++ b/docs/examples/kotlin/account/create-verification.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account @@ -12,3 +13,4 @@ val account = Account(client) val response = account.createVerification( url = "https://example.com" ) +``` diff --git a/docs/examples/kotlin/account/create.md b/docs/examples/kotlin/account/create.md index 1b5742c9..2b9cd5f4 100644 --- a/docs/examples/kotlin/account/create.md +++ b/docs/examples/kotlin/account/create.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account @@ -15,3 +16,4 @@ val response = account.create( password = "", name = "" // optional ) +``` diff --git a/docs/examples/kotlin/account/delete-identity.md b/docs/examples/kotlin/account/delete-identity.md index f9a5ce0a..528a225b 100644 --- a/docs/examples/kotlin/account/delete-identity.md +++ b/docs/examples/kotlin/account/delete-identity.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account @@ -12,3 +13,4 @@ val account = Account(client) val response = account.deleteIdentity( identityId = "" ) +``` diff --git a/docs/examples/kotlin/account/delete-key.md b/docs/examples/kotlin/account/delete-key.md new file mode 100644 index 00000000..6fe911c1 --- /dev/null +++ b/docs/examples/kotlin/account/delete-key.md @@ -0,0 +1,16 @@ +```kotlin +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setSession("") // The user session to authenticate with + +val account = Account(client) + +val response = account.deleteKey( + keyId = "" +) +``` diff --git a/docs/examples/kotlin/account/delete-mfa-authenticator.md b/docs/examples/kotlin/account/delete-mfa-authenticator.md index dd7f5b67..231b312b 100644 --- a/docs/examples/kotlin/account/delete-mfa-authenticator.md +++ b/docs/examples/kotlin/account/delete-mfa-authenticator.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account @@ -13,3 +14,4 @@ val account = Account(client) val response = account.deleteMFAAuthenticator( type = AuthenticatorType.TOTP ) +``` diff --git a/docs/examples/kotlin/account/delete-session.md b/docs/examples/kotlin/account/delete-session.md index 31096ccc..aabb48c1 100644 --- a/docs/examples/kotlin/account/delete-session.md +++ b/docs/examples/kotlin/account/delete-session.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account @@ -12,3 +13,4 @@ val account = Account(client) val response = account.deleteSession( sessionId = "" ) +``` diff --git a/docs/examples/kotlin/account/delete-sessions.md b/docs/examples/kotlin/account/delete-sessions.md index dc29fb8a..5232e675 100644 --- a/docs/examples/kotlin/account/delete-sessions.md +++ b/docs/examples/kotlin/account/delete-sessions.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account @@ -10,3 +11,4 @@ val client = Client() val account = Account(client) val response = account.deleteSessions() +``` diff --git a/docs/examples/kotlin/account/get-key.md b/docs/examples/kotlin/account/get-key.md new file mode 100644 index 00000000..d4694a1f --- /dev/null +++ b/docs/examples/kotlin/account/get-key.md @@ -0,0 +1,16 @@ +```kotlin +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setSession("") // The user session to authenticate with + +val account = Account(client) + +val response = account.getKey( + keyId = "" +) +``` diff --git a/docs/examples/kotlin/account/get-mfa-recovery-codes.md b/docs/examples/kotlin/account/get-mfa-recovery-codes.md index 96567f4c..04ff7a4c 100644 --- a/docs/examples/kotlin/account/get-mfa-recovery-codes.md +++ b/docs/examples/kotlin/account/get-mfa-recovery-codes.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account @@ -10,3 +11,4 @@ val client = Client() val account = Account(client) val response = account.getMFARecoveryCodes() +``` diff --git a/docs/examples/kotlin/account/get-prefs.md b/docs/examples/kotlin/account/get-prefs.md index 299abbd9..51e682ee 100644 --- a/docs/examples/kotlin/account/get-prefs.md +++ b/docs/examples/kotlin/account/get-prefs.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account @@ -10,3 +11,4 @@ val client = Client() val account = Account(client) val response = account.getPrefs() +``` diff --git a/docs/examples/kotlin/account/get-session.md b/docs/examples/kotlin/account/get-session.md index e40297e6..7311e5c1 100644 --- a/docs/examples/kotlin/account/get-session.md +++ b/docs/examples/kotlin/account/get-session.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account @@ -12,3 +13,4 @@ val account = Account(client) val response = account.getSession( sessionId = "" ) +``` diff --git a/docs/examples/kotlin/account/get.md b/docs/examples/kotlin/account/get.md index f65f4fd6..b8d2078f 100644 --- a/docs/examples/kotlin/account/get.md +++ b/docs/examples/kotlin/account/get.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account @@ -10,3 +11,4 @@ val client = Client() val account = Account(client) val response = account.get() +``` diff --git a/docs/examples/kotlin/account/list-identities.md b/docs/examples/kotlin/account/list-identities.md index 874ee8f4..612e0695 100644 --- a/docs/examples/kotlin/account/list-identities.md +++ b/docs/examples/kotlin/account/list-identities.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account @@ -13,3 +14,4 @@ val response = account.listIdentities( queries = listOf(), // optional total = false // optional ) +``` diff --git a/docs/examples/kotlin/account/list-keys.md b/docs/examples/kotlin/account/list-keys.md new file mode 100644 index 00000000..69092679 --- /dev/null +++ b/docs/examples/kotlin/account/list-keys.md @@ -0,0 +1,16 @@ +```kotlin +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setSession("") // The user session to authenticate with + +val account = Account(client) + +val response = account.listKeys( + total = false // optional +) +``` diff --git a/docs/examples/kotlin/account/list-logs.md b/docs/examples/kotlin/account/list-logs.md index db0917b5..fb39e737 100644 --- a/docs/examples/kotlin/account/list-logs.md +++ b/docs/examples/kotlin/account/list-logs.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account @@ -13,3 +14,4 @@ val response = account.listLogs( queries = listOf(), // optional total = false // optional ) +``` diff --git a/docs/examples/kotlin/account/list-mfa-factors.md b/docs/examples/kotlin/account/list-mfa-factors.md index 0f073df3..95c2ffde 100644 --- a/docs/examples/kotlin/account/list-mfa-factors.md +++ b/docs/examples/kotlin/account/list-mfa-factors.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account @@ -10,3 +11,4 @@ val client = Client() val account = Account(client) val response = account.listMFAFactors() +``` diff --git a/docs/examples/kotlin/account/list-sessions.md b/docs/examples/kotlin/account/list-sessions.md index 899260cd..12076663 100644 --- a/docs/examples/kotlin/account/list-sessions.md +++ b/docs/examples/kotlin/account/list-sessions.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account @@ -10,3 +11,4 @@ val client = Client() val account = Account(client) val response = account.listSessions() +``` diff --git a/docs/examples/kotlin/account/update-email-verification.md b/docs/examples/kotlin/account/update-email-verification.md index 6eb97bcc..e36908d2 100644 --- a/docs/examples/kotlin/account/update-email-verification.md +++ b/docs/examples/kotlin/account/update-email-verification.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account @@ -13,3 +14,4 @@ val response = account.updateEmailVerification( userId = "", secret = "" ) +``` diff --git a/docs/examples/kotlin/account/update-email.md b/docs/examples/kotlin/account/update-email.md index 6ebe5e7e..6319d808 100644 --- a/docs/examples/kotlin/account/update-email.md +++ b/docs/examples/kotlin/account/update-email.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account @@ -13,3 +14,4 @@ val response = account.updateEmail( email = "email@example.com", password = "password" ) +``` diff --git a/docs/examples/kotlin/account/update-key.md b/docs/examples/kotlin/account/update-key.md new file mode 100644 index 00000000..2e9389a3 --- /dev/null +++ b/docs/examples/kotlin/account/update-key.md @@ -0,0 +1,20 @@ +```kotlin +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account +import io.appwrite.enums.Scopes + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setSession("") // The user session to authenticate with + +val account = Account(client) + +val response = account.updateKey( + keyId = "", + name = "", + scopes = listOf(Scopes.ACCOUNT), + expire = "" // optional +) +``` diff --git a/docs/examples/kotlin/account/update-magic-url-session.md b/docs/examples/kotlin/account/update-magic-url-session.md index 33a4b4f6..7a952400 100644 --- a/docs/examples/kotlin/account/update-magic-url-session.md +++ b/docs/examples/kotlin/account/update-magic-url-session.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account @@ -13,3 +14,4 @@ val response = account.updateMagicURLSession( userId = "", secret = "" ) +``` diff --git a/docs/examples/kotlin/account/update-mfa-authenticator.md b/docs/examples/kotlin/account/update-mfa-authenticator.md index be143f08..cba56459 100644 --- a/docs/examples/kotlin/account/update-mfa-authenticator.md +++ b/docs/examples/kotlin/account/update-mfa-authenticator.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account @@ -14,3 +15,4 @@ val response = account.updateMFAAuthenticator( type = AuthenticatorType.TOTP, otp = "" ) +``` diff --git a/docs/examples/kotlin/account/update-mfa-challenge.md b/docs/examples/kotlin/account/update-mfa-challenge.md index de908736..f0d8e6a0 100644 --- a/docs/examples/kotlin/account/update-mfa-challenge.md +++ b/docs/examples/kotlin/account/update-mfa-challenge.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account @@ -13,3 +14,4 @@ val response = account.updateMFAChallenge( challengeId = "", otp = "" ) +``` diff --git a/docs/examples/kotlin/account/update-mfa-recovery-codes.md b/docs/examples/kotlin/account/update-mfa-recovery-codes.md index 05f6476e..4563b3bb 100644 --- a/docs/examples/kotlin/account/update-mfa-recovery-codes.md +++ b/docs/examples/kotlin/account/update-mfa-recovery-codes.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account @@ -10,3 +11,4 @@ val client = Client() val account = Account(client) val response = account.updateMFARecoveryCodes() +``` diff --git a/docs/examples/kotlin/account/update-mfa.md b/docs/examples/kotlin/account/update-mfa.md index e12e8e00..7a1a74d5 100644 --- a/docs/examples/kotlin/account/update-mfa.md +++ b/docs/examples/kotlin/account/update-mfa.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account @@ -12,3 +13,4 @@ val account = Account(client) val response = account.updateMFA( mfa = false ) +``` diff --git a/docs/examples/kotlin/account/update-name.md b/docs/examples/kotlin/account/update-name.md index ecb7a2bd..6fc7f1cd 100644 --- a/docs/examples/kotlin/account/update-name.md +++ b/docs/examples/kotlin/account/update-name.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account @@ -12,3 +13,4 @@ val account = Account(client) val response = account.updateName( name = "" ) +``` diff --git a/docs/examples/kotlin/account/update-password.md b/docs/examples/kotlin/account/update-password.md index 159aa79a..33b14a5c 100644 --- a/docs/examples/kotlin/account/update-password.md +++ b/docs/examples/kotlin/account/update-password.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account @@ -13,3 +14,4 @@ val response = account.updatePassword( password = "", oldPassword = "password" // optional ) +``` diff --git a/docs/examples/kotlin/account/update-phone-session.md b/docs/examples/kotlin/account/update-phone-session.md index 346a25bd..368d77ab 100644 --- a/docs/examples/kotlin/account/update-phone-session.md +++ b/docs/examples/kotlin/account/update-phone-session.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account @@ -13,3 +14,4 @@ val response = account.updatePhoneSession( userId = "", secret = "" ) +``` diff --git a/docs/examples/kotlin/account/update-phone-verification.md b/docs/examples/kotlin/account/update-phone-verification.md index 36a2d9c7..22c05c0b 100644 --- a/docs/examples/kotlin/account/update-phone-verification.md +++ b/docs/examples/kotlin/account/update-phone-verification.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account @@ -13,3 +14,4 @@ val response = account.updatePhoneVerification( userId = "", secret = "" ) +``` diff --git a/docs/examples/kotlin/account/update-phone.md b/docs/examples/kotlin/account/update-phone.md index 1ee4cbd3..a3be3c87 100644 --- a/docs/examples/kotlin/account/update-phone.md +++ b/docs/examples/kotlin/account/update-phone.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account @@ -13,3 +14,4 @@ val response = account.updatePhone( phone = "+12065550100", password = "password" ) +``` diff --git a/docs/examples/kotlin/account/update-prefs.md b/docs/examples/kotlin/account/update-prefs.md index 63e66ca4..87740321 100644 --- a/docs/examples/kotlin/account/update-prefs.md +++ b/docs/examples/kotlin/account/update-prefs.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account @@ -16,3 +17,4 @@ val response = account.updatePrefs( "darkTheme" to true ) ) +``` diff --git a/docs/examples/kotlin/account/update-recovery.md b/docs/examples/kotlin/account/update-recovery.md index e5638136..31387f9d 100644 --- a/docs/examples/kotlin/account/update-recovery.md +++ b/docs/examples/kotlin/account/update-recovery.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account @@ -14,3 +15,4 @@ val response = account.updateRecovery( secret = "", password = "" ) +``` diff --git a/docs/examples/kotlin/account/update-session.md b/docs/examples/kotlin/account/update-session.md index ab3730af..bc85529d 100644 --- a/docs/examples/kotlin/account/update-session.md +++ b/docs/examples/kotlin/account/update-session.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account @@ -12,3 +13,4 @@ val account = Account(client) val response = account.updateSession( sessionId = "" ) +``` diff --git a/docs/examples/kotlin/account/update-status.md b/docs/examples/kotlin/account/update-status.md index 021f6143..19e6496c 100644 --- a/docs/examples/kotlin/account/update-status.md +++ b/docs/examples/kotlin/account/update-status.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account @@ -10,3 +11,4 @@ val client = Client() val account = Account(client) val response = account.updateStatus() +``` diff --git a/docs/examples/kotlin/account/update-verification.md b/docs/examples/kotlin/account/update-verification.md index 64020934..f19aaa6c 100644 --- a/docs/examples/kotlin/account/update-verification.md +++ b/docs/examples/kotlin/account/update-verification.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account @@ -13,3 +14,4 @@ val response = account.updateVerification( userId = "", secret = "" ) +``` diff --git a/docs/examples/kotlin/avatars/get-browser.md b/docs/examples/kotlin/avatars/get-browser.md index be3a323e..2565bd7c 100644 --- a/docs/examples/kotlin/avatars/get-browser.md +++ b/docs/examples/kotlin/avatars/get-browser.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Avatars @@ -16,3 +17,4 @@ val result = avatars.getBrowser( height = 0, // optional quality = -1 // optional ) +``` diff --git a/docs/examples/kotlin/avatars/get-credit-card.md b/docs/examples/kotlin/avatars/get-credit-card.md index 247e111b..08ce6f06 100644 --- a/docs/examples/kotlin/avatars/get-credit-card.md +++ b/docs/examples/kotlin/avatars/get-credit-card.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Avatars @@ -16,3 +17,4 @@ val result = avatars.getCreditCard( height = 0, // optional quality = -1 // optional ) +``` diff --git a/docs/examples/kotlin/avatars/get-favicon.md b/docs/examples/kotlin/avatars/get-favicon.md index d1f5d9bf..b19ad3ff 100644 --- a/docs/examples/kotlin/avatars/get-favicon.md +++ b/docs/examples/kotlin/avatars/get-favicon.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Avatars @@ -12,3 +13,4 @@ val avatars = Avatars(client) val result = avatars.getFavicon( url = "https://example.com" ) +``` diff --git a/docs/examples/kotlin/avatars/get-flag.md b/docs/examples/kotlin/avatars/get-flag.md index 93976968..3f411c33 100644 --- a/docs/examples/kotlin/avatars/get-flag.md +++ b/docs/examples/kotlin/avatars/get-flag.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Avatars @@ -16,3 +17,4 @@ val result = avatars.getFlag( height = 0, // optional quality = -1 // optional ) +``` diff --git a/docs/examples/kotlin/avatars/get-image.md b/docs/examples/kotlin/avatars/get-image.md index 98b9c07e..5efffd32 100644 --- a/docs/examples/kotlin/avatars/get-image.md +++ b/docs/examples/kotlin/avatars/get-image.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Avatars @@ -14,3 +15,4 @@ val result = avatars.getImage( width = 0, // optional height = 0 // optional ) +``` diff --git a/docs/examples/kotlin/avatars/get-initials.md b/docs/examples/kotlin/avatars/get-initials.md index 2aa165cc..731aaab4 100644 --- a/docs/examples/kotlin/avatars/get-initials.md +++ b/docs/examples/kotlin/avatars/get-initials.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Avatars @@ -15,3 +16,4 @@ val result = avatars.getInitials( height = 0, // optional background = "" // optional ) +``` diff --git a/docs/examples/kotlin/avatars/get-qr.md b/docs/examples/kotlin/avatars/get-qr.md index abcf488c..e9419fef 100644 --- a/docs/examples/kotlin/avatars/get-qr.md +++ b/docs/examples/kotlin/avatars/get-qr.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Avatars @@ -15,3 +16,4 @@ val result = avatars.getQR( margin = 0, // optional download = false // optional ) +``` diff --git a/docs/examples/kotlin/avatars/get-screenshot.md b/docs/examples/kotlin/avatars/get-screenshot.md index 16d431be..7f735d41 100644 --- a/docs/examples/kotlin/avatars/get-screenshot.md +++ b/docs/examples/kotlin/avatars/get-screenshot.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Avatars @@ -38,3 +39,4 @@ val result = avatars.getScreenshot( quality = 85, // optional output = ImageFormat.JPEG // optional ) +``` diff --git a/docs/examples/kotlin/backups/create-archive.md b/docs/examples/kotlin/backups/create-archive.md new file mode 100644 index 00000000..dae911b2 --- /dev/null +++ b/docs/examples/kotlin/backups/create-archive.md @@ -0,0 +1,18 @@ +```kotlin +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Backups +import io.appwrite.enums.BackupServices + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val backups = Backups(client) + +val response = backups.createArchive( + services = listOf(BackupServices.DATABASES), + resourceId = "" // optional +) +``` diff --git a/docs/examples/kotlin/backups/create-policy.md b/docs/examples/kotlin/backups/create-policy.md new file mode 100644 index 00000000..21133d09 --- /dev/null +++ b/docs/examples/kotlin/backups/create-policy.md @@ -0,0 +1,23 @@ +```kotlin +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Backups +import io.appwrite.enums.BackupServices + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val backups = Backups(client) + +val response = backups.createPolicy( + policyId = "", + services = listOf(BackupServices.DATABASES), + retention = 1, + schedule = "", + name = "", // optional + resourceId = "", // optional + enabled = false // optional +) +``` diff --git a/docs/examples/kotlin/backups/create-restoration.md b/docs/examples/kotlin/backups/create-restoration.md new file mode 100644 index 00000000..852c9d00 --- /dev/null +++ b/docs/examples/kotlin/backups/create-restoration.md @@ -0,0 +1,20 @@ +```kotlin +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Backups +import io.appwrite.enums.BackupServices + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val backups = Backups(client) + +val response = backups.createRestoration( + archiveId = "", + services = listOf(BackupServices.DATABASES), + newResourceId = "", // optional + newResourceName = "" // optional +) +``` diff --git a/docs/examples/kotlin/backups/delete-archive.md b/docs/examples/kotlin/backups/delete-archive.md new file mode 100644 index 00000000..deb19d02 --- /dev/null +++ b/docs/examples/kotlin/backups/delete-archive.md @@ -0,0 +1,16 @@ +```kotlin +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Backups + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val backups = Backups(client) + +val response = backups.deleteArchive( + archiveId = "" +) +``` diff --git a/docs/examples/kotlin/backups/delete-policy.md b/docs/examples/kotlin/backups/delete-policy.md new file mode 100644 index 00000000..c5ab29e0 --- /dev/null +++ b/docs/examples/kotlin/backups/delete-policy.md @@ -0,0 +1,16 @@ +```kotlin +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Backups + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val backups = Backups(client) + +val response = backups.deletePolicy( + policyId = "" +) +``` diff --git a/docs/examples/kotlin/backups/get-archive.md b/docs/examples/kotlin/backups/get-archive.md new file mode 100644 index 00000000..84574f3b --- /dev/null +++ b/docs/examples/kotlin/backups/get-archive.md @@ -0,0 +1,16 @@ +```kotlin +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Backups + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val backups = Backups(client) + +val response = backups.getArchive( + archiveId = "" +) +``` diff --git a/docs/examples/kotlin/backups/get-policy.md b/docs/examples/kotlin/backups/get-policy.md new file mode 100644 index 00000000..8d11217b --- /dev/null +++ b/docs/examples/kotlin/backups/get-policy.md @@ -0,0 +1,16 @@ +```kotlin +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Backups + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val backups = Backups(client) + +val response = backups.getPolicy( + policyId = "" +) +``` diff --git a/docs/examples/kotlin/backups/get-restoration.md b/docs/examples/kotlin/backups/get-restoration.md new file mode 100644 index 00000000..1ad395d5 --- /dev/null +++ b/docs/examples/kotlin/backups/get-restoration.md @@ -0,0 +1,16 @@ +```kotlin +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Backups + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val backups = Backups(client) + +val response = backups.getRestoration( + restorationId = "" +) +``` diff --git a/docs/examples/kotlin/backups/list-archives.md b/docs/examples/kotlin/backups/list-archives.md new file mode 100644 index 00000000..0459f683 --- /dev/null +++ b/docs/examples/kotlin/backups/list-archives.md @@ -0,0 +1,16 @@ +```kotlin +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Backups + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val backups = Backups(client) + +val response = backups.listArchives( + queries = listOf() // optional +) +``` diff --git a/docs/examples/kotlin/backups/list-policies.md b/docs/examples/kotlin/backups/list-policies.md new file mode 100644 index 00000000..1cfac102 --- /dev/null +++ b/docs/examples/kotlin/backups/list-policies.md @@ -0,0 +1,16 @@ +```kotlin +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Backups + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val backups = Backups(client) + +val response = backups.listPolicies( + queries = listOf() // optional +) +``` diff --git a/docs/examples/kotlin/backups/list-restorations.md b/docs/examples/kotlin/backups/list-restorations.md new file mode 100644 index 00000000..df4646f8 --- /dev/null +++ b/docs/examples/kotlin/backups/list-restorations.md @@ -0,0 +1,16 @@ +```kotlin +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Backups + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val backups = Backups(client) + +val response = backups.listRestorations( + queries = listOf() // optional +) +``` diff --git a/docs/examples/kotlin/backups/update-policy.md b/docs/examples/kotlin/backups/update-policy.md new file mode 100644 index 00000000..367a2546 --- /dev/null +++ b/docs/examples/kotlin/backups/update-policy.md @@ -0,0 +1,20 @@ +```kotlin +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Backups + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val backups = Backups(client) + +val response = backups.updatePolicy( + policyId = "", + name = "", // optional + retention = 1, // optional + schedule = "", // optional + enabled = false // optional +) +``` diff --git a/docs/examples/kotlin/databases/create-boolean-attribute.md b/docs/examples/kotlin/databases/create-boolean-attribute.md index b80bd949..9b06790a 100644 --- a/docs/examples/kotlin/databases/create-boolean-attribute.md +++ b/docs/examples/kotlin/databases/create-boolean-attribute.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases @@ -17,3 +18,4 @@ val response = databases.createBooleanAttribute( default = false, // optional array = false // optional ) +``` diff --git a/docs/examples/kotlin/databases/create-collection.md b/docs/examples/kotlin/databases/create-collection.md index 1166e73b..9dbc8696 100644 --- a/docs/examples/kotlin/databases/create-collection.md +++ b/docs/examples/kotlin/databases/create-collection.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases @@ -21,3 +22,4 @@ val response = databases.createCollection( attributes = listOf(), // optional indexes = listOf() // optional ) +``` diff --git a/docs/examples/kotlin/databases/create-datetime-attribute.md b/docs/examples/kotlin/databases/create-datetime-attribute.md index 2d730562..df5cff29 100644 --- a/docs/examples/kotlin/databases/create-datetime-attribute.md +++ b/docs/examples/kotlin/databases/create-datetime-attribute.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases @@ -17,3 +18,4 @@ val response = databases.createDatetimeAttribute( default = "", // optional array = false // optional ) +``` diff --git a/docs/examples/kotlin/databases/create-document.md b/docs/examples/kotlin/databases/create-document.md index cbdbcaeb..f0cb24e9 100644 --- a/docs/examples/kotlin/databases/create-document.md +++ b/docs/examples/kotlin/databases/create-document.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases @@ -25,3 +26,4 @@ val response = databases.createDocument( permissions = listOf(Permission.read(Role.any())), // optional transactionId = "" // optional ) +``` diff --git a/docs/examples/kotlin/databases/create-documents.md b/docs/examples/kotlin/databases/create-documents.md index 114d5cc7..a0f32b6c 100644 --- a/docs/examples/kotlin/databases/create-documents.md +++ b/docs/examples/kotlin/databases/create-documents.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases @@ -15,3 +16,4 @@ val response = databases.createDocuments( documents = listOf(), transactionId = "" // optional ) +``` diff --git a/docs/examples/kotlin/databases/create-email-attribute.md b/docs/examples/kotlin/databases/create-email-attribute.md index 2a5a9c2a..ab76182d 100644 --- a/docs/examples/kotlin/databases/create-email-attribute.md +++ b/docs/examples/kotlin/databases/create-email-attribute.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases @@ -17,3 +18,4 @@ val response = databases.createEmailAttribute( default = "email@example.com", // optional array = false // optional ) +``` diff --git a/docs/examples/kotlin/databases/create-enum-attribute.md b/docs/examples/kotlin/databases/create-enum-attribute.md index d9decdeb..982ed8bc 100644 --- a/docs/examples/kotlin/databases/create-enum-attribute.md +++ b/docs/examples/kotlin/databases/create-enum-attribute.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases @@ -18,3 +19,4 @@ val response = databases.createEnumAttribute( default = "", // optional array = false // optional ) +``` diff --git a/docs/examples/kotlin/databases/create-float-attribute.md b/docs/examples/kotlin/databases/create-float-attribute.md index 5ca86a66..ecf3795f 100644 --- a/docs/examples/kotlin/databases/create-float-attribute.md +++ b/docs/examples/kotlin/databases/create-float-attribute.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases @@ -19,3 +20,4 @@ val response = databases.createFloatAttribute( default = 0, // optional array = false // optional ) +``` diff --git a/docs/examples/kotlin/databases/create-index.md b/docs/examples/kotlin/databases/create-index.md index 3d0d26a5..85d3729c 100644 --- a/docs/examples/kotlin/databases/create-index.md +++ b/docs/examples/kotlin/databases/create-index.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases @@ -20,3 +21,4 @@ val response = databases.createIndex( orders = listOf(OrderBy.ASC), // optional lengths = listOf() // optional ) +``` diff --git a/docs/examples/kotlin/databases/create-integer-attribute.md b/docs/examples/kotlin/databases/create-integer-attribute.md index 748d01a8..875fddd6 100644 --- a/docs/examples/kotlin/databases/create-integer-attribute.md +++ b/docs/examples/kotlin/databases/create-integer-attribute.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases @@ -19,3 +20,4 @@ val response = databases.createIntegerAttribute( default = 0, // optional array = false // optional ) +``` diff --git a/docs/examples/kotlin/databases/create-ip-attribute.md b/docs/examples/kotlin/databases/create-ip-attribute.md index bfc61051..1417b75d 100644 --- a/docs/examples/kotlin/databases/create-ip-attribute.md +++ b/docs/examples/kotlin/databases/create-ip-attribute.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases @@ -17,3 +18,4 @@ val response = databases.createIpAttribute( default = "", // optional array = false // optional ) +``` diff --git a/docs/examples/kotlin/databases/create-line-attribute.md b/docs/examples/kotlin/databases/create-line-attribute.md index 8f1322b3..cff25a37 100644 --- a/docs/examples/kotlin/databases/create-line-attribute.md +++ b/docs/examples/kotlin/databases/create-line-attribute.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases @@ -16,3 +17,4 @@ val response = databases.createLineAttribute( required = false, default = listOf(listOf(1, 2), listOf(3, 4), listOf(5, 6)) // optional ) +``` diff --git a/docs/examples/kotlin/databases/create-longtext-attribute.md b/docs/examples/kotlin/databases/create-longtext-attribute.md index b10e6810..040b6b00 100644 --- a/docs/examples/kotlin/databases/create-longtext-attribute.md +++ b/docs/examples/kotlin/databases/create-longtext-attribute.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases @@ -17,3 +18,4 @@ val response = databases.createLongtextAttribute( default = "", // optional array = false // optional ) +``` diff --git a/docs/examples/kotlin/databases/create-mediumtext-attribute.md b/docs/examples/kotlin/databases/create-mediumtext-attribute.md index ccd61889..d859f759 100644 --- a/docs/examples/kotlin/databases/create-mediumtext-attribute.md +++ b/docs/examples/kotlin/databases/create-mediumtext-attribute.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases @@ -17,3 +18,4 @@ val response = databases.createMediumtextAttribute( default = "", // optional array = false // optional ) +``` diff --git a/docs/examples/kotlin/databases/create-operations.md b/docs/examples/kotlin/databases/create-operations.md index eae10ab6..5c414afd 100644 --- a/docs/examples/kotlin/databases/create-operations.md +++ b/docs/examples/kotlin/databases/create-operations.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases @@ -21,3 +22,4 @@ val response = databases.createOperations( ) )) // optional ) +``` diff --git a/docs/examples/kotlin/databases/create-point-attribute.md b/docs/examples/kotlin/databases/create-point-attribute.md index 04f095ee..9ab6eaf0 100644 --- a/docs/examples/kotlin/databases/create-point-attribute.md +++ b/docs/examples/kotlin/databases/create-point-attribute.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases @@ -16,3 +17,4 @@ val response = databases.createPointAttribute( required = false, default = listOf(1, 2) // optional ) +``` diff --git a/docs/examples/kotlin/databases/create-polygon-attribute.md b/docs/examples/kotlin/databases/create-polygon-attribute.md index 5a3491c4..2c2f74e1 100644 --- a/docs/examples/kotlin/databases/create-polygon-attribute.md +++ b/docs/examples/kotlin/databases/create-polygon-attribute.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases @@ -16,3 +17,4 @@ val response = databases.createPolygonAttribute( required = false, default = listOf(listOf(listOf(1, 2), listOf(3, 4), listOf(5, 6), listOf(1, 2))) // optional ) +``` diff --git a/docs/examples/kotlin/databases/create-relationship-attribute.md b/docs/examples/kotlin/databases/create-relationship-attribute.md index 371e8ce8..6f3604fa 100644 --- a/docs/examples/kotlin/databases/create-relationship-attribute.md +++ b/docs/examples/kotlin/databases/create-relationship-attribute.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases @@ -21,3 +22,4 @@ val response = databases.createRelationshipAttribute( twoWayKey = "", // optional onDelete = RelationMutate.CASCADE // optional ) +``` diff --git a/docs/examples/kotlin/databases/create-string-attribute.md b/docs/examples/kotlin/databases/create-string-attribute.md index 333cb767..94c83160 100644 --- a/docs/examples/kotlin/databases/create-string-attribute.md +++ b/docs/examples/kotlin/databases/create-string-attribute.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases @@ -19,3 +20,4 @@ val response = databases.createStringAttribute( array = false, // optional encrypt = false // optional ) +``` diff --git a/docs/examples/kotlin/databases/create-text-attribute.md b/docs/examples/kotlin/databases/create-text-attribute.md index 7de27ed9..6dd2b171 100644 --- a/docs/examples/kotlin/databases/create-text-attribute.md +++ b/docs/examples/kotlin/databases/create-text-attribute.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases @@ -17,3 +18,4 @@ val response = databases.createTextAttribute( default = "", // optional array = false // optional ) +``` diff --git a/docs/examples/kotlin/databases/create-transaction.md b/docs/examples/kotlin/databases/create-transaction.md index 83ff5830..affea1ad 100644 --- a/docs/examples/kotlin/databases/create-transaction.md +++ b/docs/examples/kotlin/databases/create-transaction.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases @@ -12,3 +13,4 @@ val databases = Databases(client) val response = databases.createTransaction( ttl = 60 // optional ) +``` diff --git a/docs/examples/kotlin/databases/create-url-attribute.md b/docs/examples/kotlin/databases/create-url-attribute.md index 06057d46..cfea1302 100644 --- a/docs/examples/kotlin/databases/create-url-attribute.md +++ b/docs/examples/kotlin/databases/create-url-attribute.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases @@ -17,3 +18,4 @@ val response = databases.createUrlAttribute( default = "https://example.com", // optional array = false // optional ) +``` diff --git a/docs/examples/kotlin/databases/create-varchar-attribute.md b/docs/examples/kotlin/databases/create-varchar-attribute.md index bb936484..3618dc51 100644 --- a/docs/examples/kotlin/databases/create-varchar-attribute.md +++ b/docs/examples/kotlin/databases/create-varchar-attribute.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases @@ -18,3 +19,4 @@ val response = databases.createVarcharAttribute( default = "", // optional array = false // optional ) +``` diff --git a/docs/examples/kotlin/databases/create.md b/docs/examples/kotlin/databases/create.md index 04c64801..84b42af2 100644 --- a/docs/examples/kotlin/databases/create.md +++ b/docs/examples/kotlin/databases/create.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases @@ -14,3 +15,4 @@ val response = databases.create( name = "", enabled = false // optional ) +``` diff --git a/docs/examples/kotlin/databases/decrement-document-attribute.md b/docs/examples/kotlin/databases/decrement-document-attribute.md index 3ccd662d..8f72cff7 100644 --- a/docs/examples/kotlin/databases/decrement-document-attribute.md +++ b/docs/examples/kotlin/databases/decrement-document-attribute.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases @@ -18,3 +19,4 @@ val response = databases.decrementDocumentAttribute( min = 0, // optional transactionId = "" // optional ) +``` diff --git a/docs/examples/kotlin/databases/delete-attribute.md b/docs/examples/kotlin/databases/delete-attribute.md index 9a251559..d0da3b22 100644 --- a/docs/examples/kotlin/databases/delete-attribute.md +++ b/docs/examples/kotlin/databases/delete-attribute.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases @@ -14,3 +15,4 @@ val response = databases.deleteAttribute( collectionId = "", key = "" ) +``` diff --git a/docs/examples/kotlin/databases/delete-collection.md b/docs/examples/kotlin/databases/delete-collection.md index c46ca086..fcb70adf 100644 --- a/docs/examples/kotlin/databases/delete-collection.md +++ b/docs/examples/kotlin/databases/delete-collection.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases @@ -13,3 +14,4 @@ val response = databases.deleteCollection( databaseId = "", collectionId = "" ) +``` diff --git a/docs/examples/kotlin/databases/delete-document.md b/docs/examples/kotlin/databases/delete-document.md index 3be43729..42e196e0 100644 --- a/docs/examples/kotlin/databases/delete-document.md +++ b/docs/examples/kotlin/databases/delete-document.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases @@ -15,3 +16,4 @@ val response = databases.deleteDocument( documentId = "", transactionId = "" // optional ) +``` diff --git a/docs/examples/kotlin/databases/delete-documents.md b/docs/examples/kotlin/databases/delete-documents.md index 9b9ea263..43baf47b 100644 --- a/docs/examples/kotlin/databases/delete-documents.md +++ b/docs/examples/kotlin/databases/delete-documents.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases @@ -15,3 +16,4 @@ val response = databases.deleteDocuments( queries = listOf(), // optional transactionId = "" // optional ) +``` diff --git a/docs/examples/kotlin/databases/delete-index.md b/docs/examples/kotlin/databases/delete-index.md index 37c75dcf..f96df1c1 100644 --- a/docs/examples/kotlin/databases/delete-index.md +++ b/docs/examples/kotlin/databases/delete-index.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases @@ -14,3 +15,4 @@ val response = databases.deleteIndex( collectionId = "", key = "" ) +``` diff --git a/docs/examples/kotlin/databases/delete-transaction.md b/docs/examples/kotlin/databases/delete-transaction.md index ef11e9fa..20425d68 100644 --- a/docs/examples/kotlin/databases/delete-transaction.md +++ b/docs/examples/kotlin/databases/delete-transaction.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases @@ -12,3 +13,4 @@ val databases = Databases(client) val response = databases.deleteTransaction( transactionId = "" ) +``` diff --git a/docs/examples/kotlin/databases/delete.md b/docs/examples/kotlin/databases/delete.md index 07225698..bee3ffc1 100644 --- a/docs/examples/kotlin/databases/delete.md +++ b/docs/examples/kotlin/databases/delete.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases @@ -12,3 +13,4 @@ val databases = Databases(client) val response = databases.delete( databaseId = "" ) +``` diff --git a/docs/examples/kotlin/databases/get-attribute.md b/docs/examples/kotlin/databases/get-attribute.md index a59facd7..eb49cb15 100644 --- a/docs/examples/kotlin/databases/get-attribute.md +++ b/docs/examples/kotlin/databases/get-attribute.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases @@ -14,3 +15,4 @@ val response = databases.getAttribute( collectionId = "", key = "" ) +``` diff --git a/docs/examples/kotlin/databases/get-collection.md b/docs/examples/kotlin/databases/get-collection.md index 7f6e578d..374a9665 100644 --- a/docs/examples/kotlin/databases/get-collection.md +++ b/docs/examples/kotlin/databases/get-collection.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases @@ -13,3 +14,4 @@ val response = databases.getCollection( databaseId = "", collectionId = "" ) +``` diff --git a/docs/examples/kotlin/databases/get-document.md b/docs/examples/kotlin/databases/get-document.md index 98855d09..b7f492c1 100644 --- a/docs/examples/kotlin/databases/get-document.md +++ b/docs/examples/kotlin/databases/get-document.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases @@ -16,3 +17,4 @@ val response = databases.getDocument( queries = listOf(), // optional transactionId = "" // optional ) +``` diff --git a/docs/examples/kotlin/databases/get-index.md b/docs/examples/kotlin/databases/get-index.md index 39ac7af9..8a728b72 100644 --- a/docs/examples/kotlin/databases/get-index.md +++ b/docs/examples/kotlin/databases/get-index.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases @@ -14,3 +15,4 @@ val response = databases.getIndex( collectionId = "", key = "" ) +``` diff --git a/docs/examples/kotlin/databases/get-transaction.md b/docs/examples/kotlin/databases/get-transaction.md index 1e44376a..f4b58289 100644 --- a/docs/examples/kotlin/databases/get-transaction.md +++ b/docs/examples/kotlin/databases/get-transaction.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases @@ -12,3 +13,4 @@ val databases = Databases(client) val response = databases.getTransaction( transactionId = "" ) +``` diff --git a/docs/examples/kotlin/databases/get.md b/docs/examples/kotlin/databases/get.md index 6ebb0c10..53f3359c 100644 --- a/docs/examples/kotlin/databases/get.md +++ b/docs/examples/kotlin/databases/get.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases @@ -12,3 +13,4 @@ val databases = Databases(client) val response = databases.get( databaseId = "" ) +``` diff --git a/docs/examples/kotlin/databases/increment-document-attribute.md b/docs/examples/kotlin/databases/increment-document-attribute.md index fb358868..995f61a6 100644 --- a/docs/examples/kotlin/databases/increment-document-attribute.md +++ b/docs/examples/kotlin/databases/increment-document-attribute.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases @@ -18,3 +19,4 @@ val response = databases.incrementDocumentAttribute( max = 0, // optional transactionId = "" // optional ) +``` diff --git a/docs/examples/kotlin/databases/list-attributes.md b/docs/examples/kotlin/databases/list-attributes.md index c2a3e66d..51b330a3 100644 --- a/docs/examples/kotlin/databases/list-attributes.md +++ b/docs/examples/kotlin/databases/list-attributes.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases @@ -15,3 +16,4 @@ val response = databases.listAttributes( queries = listOf(), // optional total = false // optional ) +``` diff --git a/docs/examples/kotlin/databases/list-collections.md b/docs/examples/kotlin/databases/list-collections.md index 2a646c7f..85dd1298 100644 --- a/docs/examples/kotlin/databases/list-collections.md +++ b/docs/examples/kotlin/databases/list-collections.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases @@ -15,3 +16,4 @@ val response = databases.listCollections( search = "", // optional total = false // optional ) +``` diff --git a/docs/examples/kotlin/databases/list-documents.md b/docs/examples/kotlin/databases/list-documents.md index 61a3729a..ab55a24c 100644 --- a/docs/examples/kotlin/databases/list-documents.md +++ b/docs/examples/kotlin/databases/list-documents.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases @@ -16,3 +17,4 @@ val response = databases.listDocuments( transactionId = "", // optional total = false // optional ) +``` diff --git a/docs/examples/kotlin/databases/list-indexes.md b/docs/examples/kotlin/databases/list-indexes.md index a3242827..d91e4b2d 100644 --- a/docs/examples/kotlin/databases/list-indexes.md +++ b/docs/examples/kotlin/databases/list-indexes.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases @@ -15,3 +16,4 @@ val response = databases.listIndexes( queries = listOf(), // optional total = false // optional ) +``` diff --git a/docs/examples/kotlin/databases/list-transactions.md b/docs/examples/kotlin/databases/list-transactions.md index 0d122b10..1195069e 100644 --- a/docs/examples/kotlin/databases/list-transactions.md +++ b/docs/examples/kotlin/databases/list-transactions.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases @@ -12,3 +13,4 @@ val databases = Databases(client) val response = databases.listTransactions( queries = listOf() // optional ) +``` diff --git a/docs/examples/kotlin/databases/list.md b/docs/examples/kotlin/databases/list.md index a12b54c3..f869a96f 100644 --- a/docs/examples/kotlin/databases/list.md +++ b/docs/examples/kotlin/databases/list.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases @@ -14,3 +15,4 @@ val response = databases.list( search = "", // optional total = false // optional ) +``` diff --git a/docs/examples/kotlin/databases/update-boolean-attribute.md b/docs/examples/kotlin/databases/update-boolean-attribute.md index 4c9fd91d..cffc7b67 100644 --- a/docs/examples/kotlin/databases/update-boolean-attribute.md +++ b/docs/examples/kotlin/databases/update-boolean-attribute.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases @@ -17,3 +18,4 @@ val response = databases.updateBooleanAttribute( default = false, newKey = "" // optional ) +``` diff --git a/docs/examples/kotlin/databases/update-collection.md b/docs/examples/kotlin/databases/update-collection.md index eff93634..da41a126 100644 --- a/docs/examples/kotlin/databases/update-collection.md +++ b/docs/examples/kotlin/databases/update-collection.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases @@ -19,3 +20,4 @@ val response = databases.updateCollection( documentSecurity = false, // optional enabled = false // optional ) +``` diff --git a/docs/examples/kotlin/databases/update-datetime-attribute.md b/docs/examples/kotlin/databases/update-datetime-attribute.md index 082ae1c0..8f2c3c42 100644 --- a/docs/examples/kotlin/databases/update-datetime-attribute.md +++ b/docs/examples/kotlin/databases/update-datetime-attribute.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases @@ -17,3 +18,4 @@ val response = databases.updateDatetimeAttribute( default = "", newKey = "" // optional ) +``` diff --git a/docs/examples/kotlin/databases/update-document.md b/docs/examples/kotlin/databases/update-document.md index ad3ddf04..15cebaa2 100644 --- a/docs/examples/kotlin/databases/update-document.md +++ b/docs/examples/kotlin/databases/update-document.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases @@ -25,3 +26,4 @@ val response = databases.updateDocument( permissions = listOf(Permission.read(Role.any())), // optional transactionId = "" // optional ) +``` diff --git a/docs/examples/kotlin/databases/update-documents.md b/docs/examples/kotlin/databases/update-documents.md index f04ae122..bed50888 100644 --- a/docs/examples/kotlin/databases/update-documents.md +++ b/docs/examples/kotlin/databases/update-documents.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases @@ -22,3 +23,4 @@ val response = databases.updateDocuments( queries = listOf(), // optional transactionId = "" // optional ) +``` diff --git a/docs/examples/kotlin/databases/update-email-attribute.md b/docs/examples/kotlin/databases/update-email-attribute.md index 026bd644..0815cda2 100644 --- a/docs/examples/kotlin/databases/update-email-attribute.md +++ b/docs/examples/kotlin/databases/update-email-attribute.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases @@ -17,3 +18,4 @@ val response = databases.updateEmailAttribute( default = "email@example.com", newKey = "" // optional ) +``` diff --git a/docs/examples/kotlin/databases/update-enum-attribute.md b/docs/examples/kotlin/databases/update-enum-attribute.md index e68a29c2..56fc612b 100644 --- a/docs/examples/kotlin/databases/update-enum-attribute.md +++ b/docs/examples/kotlin/databases/update-enum-attribute.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases @@ -18,3 +19,4 @@ val response = databases.updateEnumAttribute( default = "", newKey = "" // optional ) +``` diff --git a/docs/examples/kotlin/databases/update-float-attribute.md b/docs/examples/kotlin/databases/update-float-attribute.md index 58b11074..315815ef 100644 --- a/docs/examples/kotlin/databases/update-float-attribute.md +++ b/docs/examples/kotlin/databases/update-float-attribute.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases @@ -19,3 +20,4 @@ val response = databases.updateFloatAttribute( max = 0, // optional newKey = "" // optional ) +``` diff --git a/docs/examples/kotlin/databases/update-integer-attribute.md b/docs/examples/kotlin/databases/update-integer-attribute.md index a00dcf95..75d59ccf 100644 --- a/docs/examples/kotlin/databases/update-integer-attribute.md +++ b/docs/examples/kotlin/databases/update-integer-attribute.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases @@ -19,3 +20,4 @@ val response = databases.updateIntegerAttribute( max = 0, // optional newKey = "" // optional ) +``` diff --git a/docs/examples/kotlin/databases/update-ip-attribute.md b/docs/examples/kotlin/databases/update-ip-attribute.md index 505e5ea1..8855307e 100644 --- a/docs/examples/kotlin/databases/update-ip-attribute.md +++ b/docs/examples/kotlin/databases/update-ip-attribute.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases @@ -17,3 +18,4 @@ val response = databases.updateIpAttribute( default = "", newKey = "" // optional ) +``` diff --git a/docs/examples/kotlin/databases/update-line-attribute.md b/docs/examples/kotlin/databases/update-line-attribute.md index 0a8b50a3..0951a6ad 100644 --- a/docs/examples/kotlin/databases/update-line-attribute.md +++ b/docs/examples/kotlin/databases/update-line-attribute.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases @@ -17,3 +18,4 @@ val response = databases.updateLineAttribute( default = listOf(listOf(1, 2), listOf(3, 4), listOf(5, 6)), // optional newKey = "" // optional ) +``` diff --git a/docs/examples/kotlin/databases/update-longtext-attribute.md b/docs/examples/kotlin/databases/update-longtext-attribute.md index e054e736..df98d40b 100644 --- a/docs/examples/kotlin/databases/update-longtext-attribute.md +++ b/docs/examples/kotlin/databases/update-longtext-attribute.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases @@ -17,3 +18,4 @@ val response = databases.updateLongtextAttribute( default = "", newKey = "" // optional ) +``` diff --git a/docs/examples/kotlin/databases/update-mediumtext-attribute.md b/docs/examples/kotlin/databases/update-mediumtext-attribute.md index 1b4fb919..22002977 100644 --- a/docs/examples/kotlin/databases/update-mediumtext-attribute.md +++ b/docs/examples/kotlin/databases/update-mediumtext-attribute.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases @@ -17,3 +18,4 @@ val response = databases.updateMediumtextAttribute( default = "", newKey = "" // optional ) +``` diff --git a/docs/examples/kotlin/databases/update-point-attribute.md b/docs/examples/kotlin/databases/update-point-attribute.md index 68d5311c..7e5acf48 100644 --- a/docs/examples/kotlin/databases/update-point-attribute.md +++ b/docs/examples/kotlin/databases/update-point-attribute.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases @@ -17,3 +18,4 @@ val response = databases.updatePointAttribute( default = listOf(1, 2), // optional newKey = "" // optional ) +``` diff --git a/docs/examples/kotlin/databases/update-polygon-attribute.md b/docs/examples/kotlin/databases/update-polygon-attribute.md index 37df6ace..6b3ce7bb 100644 --- a/docs/examples/kotlin/databases/update-polygon-attribute.md +++ b/docs/examples/kotlin/databases/update-polygon-attribute.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases @@ -17,3 +18,4 @@ val response = databases.updatePolygonAttribute( default = listOf(listOf(listOf(1, 2), listOf(3, 4), listOf(5, 6), listOf(1, 2))), // optional newKey = "" // optional ) +``` diff --git a/docs/examples/kotlin/databases/update-relationship-attribute.md b/docs/examples/kotlin/databases/update-relationship-attribute.md index 8a98963e..5990539d 100644 --- a/docs/examples/kotlin/databases/update-relationship-attribute.md +++ b/docs/examples/kotlin/databases/update-relationship-attribute.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases @@ -17,3 +18,4 @@ val response = databases.updateRelationshipAttribute( onDelete = RelationMutate.CASCADE, // optional newKey = "" // optional ) +``` diff --git a/docs/examples/kotlin/databases/update-string-attribute.md b/docs/examples/kotlin/databases/update-string-attribute.md index 364a6b5b..c6eff55d 100644 --- a/docs/examples/kotlin/databases/update-string-attribute.md +++ b/docs/examples/kotlin/databases/update-string-attribute.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases @@ -18,3 +19,4 @@ val response = databases.updateStringAttribute( size = 1, // optional newKey = "" // optional ) +``` diff --git a/docs/examples/kotlin/databases/update-text-attribute.md b/docs/examples/kotlin/databases/update-text-attribute.md index 54b389fd..0766eba1 100644 --- a/docs/examples/kotlin/databases/update-text-attribute.md +++ b/docs/examples/kotlin/databases/update-text-attribute.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases @@ -17,3 +18,4 @@ val response = databases.updateTextAttribute( default = "", newKey = "" // optional ) +``` diff --git a/docs/examples/kotlin/databases/update-transaction.md b/docs/examples/kotlin/databases/update-transaction.md index 834d0dc7..d59a1105 100644 --- a/docs/examples/kotlin/databases/update-transaction.md +++ b/docs/examples/kotlin/databases/update-transaction.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases @@ -14,3 +15,4 @@ val response = databases.updateTransaction( commit = false, // optional rollback = false // optional ) +``` diff --git a/docs/examples/kotlin/databases/update-url-attribute.md b/docs/examples/kotlin/databases/update-url-attribute.md index a628cc57..84f9911a 100644 --- a/docs/examples/kotlin/databases/update-url-attribute.md +++ b/docs/examples/kotlin/databases/update-url-attribute.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases @@ -17,3 +18,4 @@ val response = databases.updateUrlAttribute( default = "https://example.com", newKey = "" // optional ) +``` diff --git a/docs/examples/kotlin/databases/update-varchar-attribute.md b/docs/examples/kotlin/databases/update-varchar-attribute.md index cfe19349..bb285fed 100644 --- a/docs/examples/kotlin/databases/update-varchar-attribute.md +++ b/docs/examples/kotlin/databases/update-varchar-attribute.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases @@ -18,3 +19,4 @@ val response = databases.updateVarcharAttribute( size = 1, // optional newKey = "" // optional ) +``` diff --git a/docs/examples/kotlin/databases/update.md b/docs/examples/kotlin/databases/update.md index 820216c7..5adc8a01 100644 --- a/docs/examples/kotlin/databases/update.md +++ b/docs/examples/kotlin/databases/update.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases @@ -14,3 +15,4 @@ val response = databases.update( name = "", // optional enabled = false // optional ) +``` diff --git a/docs/examples/kotlin/databases/upsert-document.md b/docs/examples/kotlin/databases/upsert-document.md index c5a25536..5f1caef2 100644 --- a/docs/examples/kotlin/databases/upsert-document.md +++ b/docs/examples/kotlin/databases/upsert-document.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases @@ -25,3 +26,4 @@ val response = databases.upsertDocument( permissions = listOf(Permission.read(Role.any())), // optional transactionId = "" // optional ) +``` diff --git a/docs/examples/kotlin/databases/upsert-documents.md b/docs/examples/kotlin/databases/upsert-documents.md index db9e2b3e..a9e673c2 100644 --- a/docs/examples/kotlin/databases/upsert-documents.md +++ b/docs/examples/kotlin/databases/upsert-documents.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases @@ -15,3 +16,4 @@ val response = databases.upsertDocuments( documents = listOf(), transactionId = "" // optional ) +``` diff --git a/docs/examples/kotlin/functions/create-deployment.md b/docs/examples/kotlin/functions/create-deployment.md index ddc6e8b2..3fe1a24f 100644 --- a/docs/examples/kotlin/functions/create-deployment.md +++ b/docs/examples/kotlin/functions/create-deployment.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.models.InputFile @@ -17,3 +18,4 @@ val response = functions.createDeployment( entrypoint = "", // optional commands = "" // optional ) +``` diff --git a/docs/examples/kotlin/functions/create-duplicate-deployment.md b/docs/examples/kotlin/functions/create-duplicate-deployment.md index a3395f11..4fda762a 100644 --- a/docs/examples/kotlin/functions/create-duplicate-deployment.md +++ b/docs/examples/kotlin/functions/create-duplicate-deployment.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Functions @@ -14,3 +15,4 @@ val response = functions.createDuplicateDeployment( deploymentId = "", buildId = "" // optional ) +``` diff --git a/docs/examples/kotlin/functions/create-execution.md b/docs/examples/kotlin/functions/create-execution.md index e003b6e2..1bae93d3 100644 --- a/docs/examples/kotlin/functions/create-execution.md +++ b/docs/examples/kotlin/functions/create-execution.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Functions @@ -19,3 +20,4 @@ val response = functions.createExecution( headers = mapOf( "a" to "b" ), // optional scheduledAt = "" // optional ) +``` diff --git a/docs/examples/kotlin/functions/create-template-deployment.md b/docs/examples/kotlin/functions/create-template-deployment.md index 01286090..ebc28411 100644 --- a/docs/examples/kotlin/functions/create-template-deployment.md +++ b/docs/examples/kotlin/functions/create-template-deployment.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Functions @@ -19,3 +20,4 @@ val response = functions.createTemplateDeployment( reference = "", activate = false // optional ) +``` diff --git a/docs/examples/kotlin/functions/create-variable.md b/docs/examples/kotlin/functions/create-variable.md index 061bc205..45625000 100644 --- a/docs/examples/kotlin/functions/create-variable.md +++ b/docs/examples/kotlin/functions/create-variable.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Functions @@ -15,3 +16,4 @@ val response = functions.createVariable( value = "", secret = false // optional ) +``` diff --git a/docs/examples/kotlin/functions/create-vcs-deployment.md b/docs/examples/kotlin/functions/create-vcs-deployment.md index 32d33888..143083c6 100644 --- a/docs/examples/kotlin/functions/create-vcs-deployment.md +++ b/docs/examples/kotlin/functions/create-vcs-deployment.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Functions @@ -16,3 +17,4 @@ val response = functions.createVcsDeployment( reference = "", activate = false // optional ) +``` diff --git a/docs/examples/kotlin/functions/create.md b/docs/examples/kotlin/functions/create.md index b2ae44f6..0ad7f973 100644 --- a/docs/examples/kotlin/functions/create.md +++ b/docs/examples/kotlin/functions/create.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Functions @@ -31,3 +32,4 @@ val response = functions.create( providerRootDirectory = "", // optional specification = "" // optional ) +``` diff --git a/docs/examples/kotlin/functions/delete-deployment.md b/docs/examples/kotlin/functions/delete-deployment.md index 937fc961..d3129ad6 100644 --- a/docs/examples/kotlin/functions/delete-deployment.md +++ b/docs/examples/kotlin/functions/delete-deployment.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Functions @@ -13,3 +14,4 @@ val response = functions.deleteDeployment( functionId = "", deploymentId = "" ) +``` diff --git a/docs/examples/kotlin/functions/delete-execution.md b/docs/examples/kotlin/functions/delete-execution.md index 95994f82..82e132b0 100644 --- a/docs/examples/kotlin/functions/delete-execution.md +++ b/docs/examples/kotlin/functions/delete-execution.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Functions @@ -13,3 +14,4 @@ val response = functions.deleteExecution( functionId = "", executionId = "" ) +``` diff --git a/docs/examples/kotlin/functions/delete-variable.md b/docs/examples/kotlin/functions/delete-variable.md index e1793675..803f5af1 100644 --- a/docs/examples/kotlin/functions/delete-variable.md +++ b/docs/examples/kotlin/functions/delete-variable.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Functions @@ -13,3 +14,4 @@ val response = functions.deleteVariable( functionId = "", variableId = "" ) +``` diff --git a/docs/examples/kotlin/functions/delete.md b/docs/examples/kotlin/functions/delete.md index 96517447..5970fbb2 100644 --- a/docs/examples/kotlin/functions/delete.md +++ b/docs/examples/kotlin/functions/delete.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Functions @@ -12,3 +13,4 @@ val functions = Functions(client) val response = functions.delete( functionId = "" ) +``` diff --git a/docs/examples/kotlin/functions/get-deployment-download.md b/docs/examples/kotlin/functions/get-deployment-download.md index da9c9af7..d6663d68 100644 --- a/docs/examples/kotlin/functions/get-deployment-download.md +++ b/docs/examples/kotlin/functions/get-deployment-download.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Functions @@ -15,3 +16,4 @@ val result = functions.getDeploymentDownload( deploymentId = "", type = DeploymentDownloadType.SOURCE // optional ) +``` diff --git a/docs/examples/kotlin/functions/get-deployment.md b/docs/examples/kotlin/functions/get-deployment.md index eba4abb6..c8fd7076 100644 --- a/docs/examples/kotlin/functions/get-deployment.md +++ b/docs/examples/kotlin/functions/get-deployment.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Functions @@ -13,3 +14,4 @@ val response = functions.getDeployment( functionId = "", deploymentId = "" ) +``` diff --git a/docs/examples/kotlin/functions/get-execution.md b/docs/examples/kotlin/functions/get-execution.md index 480dbb76..38e31381 100644 --- a/docs/examples/kotlin/functions/get-execution.md +++ b/docs/examples/kotlin/functions/get-execution.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Functions @@ -13,3 +14,4 @@ val response = functions.getExecution( functionId = "", executionId = "" ) +``` diff --git a/docs/examples/kotlin/functions/get-variable.md b/docs/examples/kotlin/functions/get-variable.md index 95359ef8..09b9fd1f 100644 --- a/docs/examples/kotlin/functions/get-variable.md +++ b/docs/examples/kotlin/functions/get-variable.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Functions @@ -13,3 +14,4 @@ val response = functions.getVariable( functionId = "", variableId = "" ) +``` diff --git a/docs/examples/kotlin/functions/get.md b/docs/examples/kotlin/functions/get.md index 162fa224..035dc3b8 100644 --- a/docs/examples/kotlin/functions/get.md +++ b/docs/examples/kotlin/functions/get.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Functions @@ -12,3 +13,4 @@ val functions = Functions(client) val response = functions.get( functionId = "" ) +``` diff --git a/docs/examples/kotlin/functions/list-deployments.md b/docs/examples/kotlin/functions/list-deployments.md index 63f48503..950e6048 100644 --- a/docs/examples/kotlin/functions/list-deployments.md +++ b/docs/examples/kotlin/functions/list-deployments.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Functions @@ -15,3 +16,4 @@ val response = functions.listDeployments( search = "", // optional total = false // optional ) +``` diff --git a/docs/examples/kotlin/functions/list-executions.md b/docs/examples/kotlin/functions/list-executions.md index 75fc51ef..42b23a26 100644 --- a/docs/examples/kotlin/functions/list-executions.md +++ b/docs/examples/kotlin/functions/list-executions.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Functions @@ -14,3 +15,4 @@ val response = functions.listExecutions( queries = listOf(), // optional total = false // optional ) +``` diff --git a/docs/examples/kotlin/functions/list-runtimes.md b/docs/examples/kotlin/functions/list-runtimes.md index 5b3673b8..b32e73bf 100644 --- a/docs/examples/kotlin/functions/list-runtimes.md +++ b/docs/examples/kotlin/functions/list-runtimes.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Functions @@ -10,3 +11,4 @@ val client = Client() val functions = Functions(client) val response = functions.listRuntimes() +``` diff --git a/docs/examples/kotlin/functions/list-specifications.md b/docs/examples/kotlin/functions/list-specifications.md index 0b2fb46a..452d24fe 100644 --- a/docs/examples/kotlin/functions/list-specifications.md +++ b/docs/examples/kotlin/functions/list-specifications.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Functions @@ -10,3 +11,4 @@ val client = Client() val functions = Functions(client) val response = functions.listSpecifications() +``` diff --git a/docs/examples/kotlin/functions/list-variables.md b/docs/examples/kotlin/functions/list-variables.md index 7f576e89..3dbec321 100644 --- a/docs/examples/kotlin/functions/list-variables.md +++ b/docs/examples/kotlin/functions/list-variables.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Functions @@ -12,3 +13,4 @@ val functions = Functions(client) val response = functions.listVariables( functionId = "" ) +``` diff --git a/docs/examples/kotlin/functions/list.md b/docs/examples/kotlin/functions/list.md index 4cf8518a..a7614326 100644 --- a/docs/examples/kotlin/functions/list.md +++ b/docs/examples/kotlin/functions/list.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Functions @@ -14,3 +15,4 @@ val response = functions.list( search = "", // optional total = false // optional ) +``` diff --git a/docs/examples/kotlin/functions/update-deployment-status.md b/docs/examples/kotlin/functions/update-deployment-status.md index 0e6e9c0a..acbb9bcd 100644 --- a/docs/examples/kotlin/functions/update-deployment-status.md +++ b/docs/examples/kotlin/functions/update-deployment-status.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Functions @@ -13,3 +14,4 @@ val response = functions.updateDeploymentStatus( functionId = "", deploymentId = "" ) +``` diff --git a/docs/examples/kotlin/functions/update-function-deployment.md b/docs/examples/kotlin/functions/update-function-deployment.md index a975e07e..a9433506 100644 --- a/docs/examples/kotlin/functions/update-function-deployment.md +++ b/docs/examples/kotlin/functions/update-function-deployment.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Functions @@ -13,3 +14,4 @@ val response = functions.updateFunctionDeployment( functionId = "", deploymentId = "" ) +``` diff --git a/docs/examples/kotlin/functions/update-variable.md b/docs/examples/kotlin/functions/update-variable.md index 106b340e..66bbb797 100644 --- a/docs/examples/kotlin/functions/update-variable.md +++ b/docs/examples/kotlin/functions/update-variable.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Functions @@ -16,3 +17,4 @@ val response = functions.updateVariable( value = "", // optional secret = false // optional ) +``` diff --git a/docs/examples/kotlin/functions/update.md b/docs/examples/kotlin/functions/update.md index 082deaa7..c04a3c96 100644 --- a/docs/examples/kotlin/functions/update.md +++ b/docs/examples/kotlin/functions/update.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Functions @@ -31,3 +32,4 @@ val response = functions.update( providerRootDirectory = "", // optional specification = "" // optional ) +``` diff --git a/docs/examples/kotlin/graphql/mutation.md b/docs/examples/kotlin/graphql/mutation.md index 98081ab0..3ec94a5d 100644 --- a/docs/examples/kotlin/graphql/mutation.md +++ b/docs/examples/kotlin/graphql/mutation.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Graphql @@ -12,3 +13,4 @@ val graphql = Graphql(client) val response = graphql.mutation( query = mapOf( "a" to "b" ) ) +``` diff --git a/docs/examples/kotlin/graphql/query.md b/docs/examples/kotlin/graphql/query.md index dec8dd35..e22d508b 100644 --- a/docs/examples/kotlin/graphql/query.md +++ b/docs/examples/kotlin/graphql/query.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Graphql @@ -12,3 +13,4 @@ val graphql = Graphql(client) val response = graphql.query( query = mapOf( "a" to "b" ) ) +``` diff --git a/docs/examples/kotlin/health/get-antivirus.md b/docs/examples/kotlin/health/get-antivirus.md index 869b4c48..03bd635b 100644 --- a/docs/examples/kotlin/health/get-antivirus.md +++ b/docs/examples/kotlin/health/get-antivirus.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Health @@ -10,3 +11,4 @@ val client = Client() val health = Health(client) val response = health.getAntivirus() +``` diff --git a/docs/examples/kotlin/health/get-cache.md b/docs/examples/kotlin/health/get-cache.md index 8b72ec41..ef3265d3 100644 --- a/docs/examples/kotlin/health/get-cache.md +++ b/docs/examples/kotlin/health/get-cache.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Health @@ -10,3 +11,4 @@ val client = Client() val health = Health(client) val response = health.getCache() +``` diff --git a/docs/examples/kotlin/health/get-certificate.md b/docs/examples/kotlin/health/get-certificate.md index 74bf6187..4dd8312c 100644 --- a/docs/examples/kotlin/health/get-certificate.md +++ b/docs/examples/kotlin/health/get-certificate.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Health @@ -12,3 +13,4 @@ val health = Health(client) val response = health.getCertificate( domain = "" // optional ) +``` diff --git a/docs/examples/kotlin/health/get-db.md b/docs/examples/kotlin/health/get-db.md index a55a1146..a844d27d 100644 --- a/docs/examples/kotlin/health/get-db.md +++ b/docs/examples/kotlin/health/get-db.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Health @@ -10,3 +11,4 @@ val client = Client() val health = Health(client) val response = health.getDB() +``` diff --git a/docs/examples/kotlin/health/get-failed-jobs.md b/docs/examples/kotlin/health/get-failed-jobs.md index 8bb2cadf..8f27aa34 100644 --- a/docs/examples/kotlin/health/get-failed-jobs.md +++ b/docs/examples/kotlin/health/get-failed-jobs.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Health @@ -14,3 +15,4 @@ val response = health.getFailedJobs( name = Name.V1_DATABASE, threshold = 0 // optional ) +``` diff --git a/docs/examples/kotlin/health/get-pub-sub.md b/docs/examples/kotlin/health/get-pub-sub.md index 53c38202..e12911f4 100644 --- a/docs/examples/kotlin/health/get-pub-sub.md +++ b/docs/examples/kotlin/health/get-pub-sub.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Health @@ -10,3 +11,4 @@ val client = Client() val health = Health(client) val response = health.getPubSub() +``` diff --git a/docs/examples/kotlin/health/get-queue-audits.md b/docs/examples/kotlin/health/get-queue-audits.md index 588e6ad8..a0a02188 100644 --- a/docs/examples/kotlin/health/get-queue-audits.md +++ b/docs/examples/kotlin/health/get-queue-audits.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Health @@ -12,3 +13,4 @@ val health = Health(client) val response = health.getQueueAudits( threshold = 0 // optional ) +``` diff --git a/docs/examples/kotlin/health/get-queue-billing-project-aggregation.md b/docs/examples/kotlin/health/get-queue-billing-project-aggregation.md new file mode 100644 index 00000000..0c289807 --- /dev/null +++ b/docs/examples/kotlin/health/get-queue-billing-project-aggregation.md @@ -0,0 +1,16 @@ +```kotlin +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Health + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val health = Health(client) + +val response = health.getQueueBillingProjectAggregation( + threshold = 0 // optional +) +``` diff --git a/docs/examples/kotlin/health/get-queue-billing-team-aggregation.md b/docs/examples/kotlin/health/get-queue-billing-team-aggregation.md new file mode 100644 index 00000000..e8d484f4 --- /dev/null +++ b/docs/examples/kotlin/health/get-queue-billing-team-aggregation.md @@ -0,0 +1,16 @@ +```kotlin +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Health + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val health = Health(client) + +val response = health.getQueueBillingTeamAggregation( + threshold = 0 // optional +) +``` diff --git a/docs/examples/kotlin/health/get-queue-builds.md b/docs/examples/kotlin/health/get-queue-builds.md index 371aad90..2a537858 100644 --- a/docs/examples/kotlin/health/get-queue-builds.md +++ b/docs/examples/kotlin/health/get-queue-builds.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Health @@ -12,3 +13,4 @@ val health = Health(client) val response = health.getQueueBuilds( threshold = 0 // optional ) +``` diff --git a/docs/examples/kotlin/health/get-queue-certificates.md b/docs/examples/kotlin/health/get-queue-certificates.md index 5c6adeec..2776e5b8 100644 --- a/docs/examples/kotlin/health/get-queue-certificates.md +++ b/docs/examples/kotlin/health/get-queue-certificates.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Health @@ -12,3 +13,4 @@ val health = Health(client) val response = health.getQueueCertificates( threshold = 0 // optional ) +``` diff --git a/docs/examples/kotlin/health/get-queue-databases.md b/docs/examples/kotlin/health/get-queue-databases.md index 3a340583..b65359e9 100644 --- a/docs/examples/kotlin/health/get-queue-databases.md +++ b/docs/examples/kotlin/health/get-queue-databases.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Health @@ -13,3 +14,4 @@ val response = health.getQueueDatabases( name = "", // optional threshold = 0 // optional ) +``` diff --git a/docs/examples/kotlin/health/get-queue-deletes.md b/docs/examples/kotlin/health/get-queue-deletes.md index 5d0b8a33..e99a76be 100644 --- a/docs/examples/kotlin/health/get-queue-deletes.md +++ b/docs/examples/kotlin/health/get-queue-deletes.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Health @@ -12,3 +13,4 @@ val health = Health(client) val response = health.getQueueDeletes( threshold = 0 // optional ) +``` diff --git a/docs/examples/kotlin/health/get-queue-functions.md b/docs/examples/kotlin/health/get-queue-functions.md index 7a42b61b..5e0b45aa 100644 --- a/docs/examples/kotlin/health/get-queue-functions.md +++ b/docs/examples/kotlin/health/get-queue-functions.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Health @@ -12,3 +13,4 @@ val health = Health(client) val response = health.getQueueFunctions( threshold = 0 // optional ) +``` diff --git a/docs/examples/kotlin/health/get-queue-logs.md b/docs/examples/kotlin/health/get-queue-logs.md index 151025bf..b258f31b 100644 --- a/docs/examples/kotlin/health/get-queue-logs.md +++ b/docs/examples/kotlin/health/get-queue-logs.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Health @@ -12,3 +13,4 @@ val health = Health(client) val response = health.getQueueLogs( threshold = 0 // optional ) +``` diff --git a/docs/examples/kotlin/health/get-queue-mails.md b/docs/examples/kotlin/health/get-queue-mails.md index f5a905dd..ef507523 100644 --- a/docs/examples/kotlin/health/get-queue-mails.md +++ b/docs/examples/kotlin/health/get-queue-mails.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Health @@ -12,3 +13,4 @@ val health = Health(client) val response = health.getQueueMails( threshold = 0 // optional ) +``` diff --git a/docs/examples/kotlin/health/get-queue-messaging.md b/docs/examples/kotlin/health/get-queue-messaging.md index 4a837928..a1ccdace 100644 --- a/docs/examples/kotlin/health/get-queue-messaging.md +++ b/docs/examples/kotlin/health/get-queue-messaging.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Health @@ -12,3 +13,4 @@ val health = Health(client) val response = health.getQueueMessaging( threshold = 0 // optional ) +``` diff --git a/docs/examples/kotlin/health/get-queue-migrations.md b/docs/examples/kotlin/health/get-queue-migrations.md index 853d294e..1f5701fb 100644 --- a/docs/examples/kotlin/health/get-queue-migrations.md +++ b/docs/examples/kotlin/health/get-queue-migrations.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Health @@ -12,3 +13,4 @@ val health = Health(client) val response = health.getQueueMigrations( threshold = 0 // optional ) +``` diff --git a/docs/examples/kotlin/health/get-queue-priority-builds.md b/docs/examples/kotlin/health/get-queue-priority-builds.md new file mode 100644 index 00000000..17bdf416 --- /dev/null +++ b/docs/examples/kotlin/health/get-queue-priority-builds.md @@ -0,0 +1,16 @@ +```kotlin +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Health + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val health = Health(client) + +val response = health.getQueuePriorityBuilds( + threshold = 0 // optional +) +``` diff --git a/docs/examples/kotlin/health/get-queue-region-manager.md b/docs/examples/kotlin/health/get-queue-region-manager.md new file mode 100644 index 00000000..08d6f7b1 --- /dev/null +++ b/docs/examples/kotlin/health/get-queue-region-manager.md @@ -0,0 +1,16 @@ +```kotlin +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Health + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val health = Health(client) + +val response = health.getQueueRegionManager( + threshold = 0 // optional +) +``` diff --git a/docs/examples/kotlin/health/get-queue-stats-resources.md b/docs/examples/kotlin/health/get-queue-stats-resources.md index 6a76f528..f2359cf0 100644 --- a/docs/examples/kotlin/health/get-queue-stats-resources.md +++ b/docs/examples/kotlin/health/get-queue-stats-resources.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Health @@ -12,3 +13,4 @@ val health = Health(client) val response = health.getQueueStatsResources( threshold = 0 // optional ) +``` diff --git a/docs/examples/kotlin/health/get-queue-threats.md b/docs/examples/kotlin/health/get-queue-threats.md new file mode 100644 index 00000000..48dfb9d8 --- /dev/null +++ b/docs/examples/kotlin/health/get-queue-threats.md @@ -0,0 +1,16 @@ +```kotlin +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Health + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val health = Health(client) + +val response = health.getQueueThreats( + threshold = 0 // optional +) +``` diff --git a/docs/examples/kotlin/health/get-queue-usage.md b/docs/examples/kotlin/health/get-queue-usage.md index e344b9ed..7dcccb61 100644 --- a/docs/examples/kotlin/health/get-queue-usage.md +++ b/docs/examples/kotlin/health/get-queue-usage.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Health @@ -12,3 +13,4 @@ val health = Health(client) val response = health.getQueueUsage( threshold = 0 // optional ) +``` diff --git a/docs/examples/kotlin/health/get-queue-webhooks.md b/docs/examples/kotlin/health/get-queue-webhooks.md index f5ffc58d..1b1831c9 100644 --- a/docs/examples/kotlin/health/get-queue-webhooks.md +++ b/docs/examples/kotlin/health/get-queue-webhooks.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Health @@ -12,3 +13,4 @@ val health = Health(client) val response = health.getQueueWebhooks( threshold = 0 // optional ) +``` diff --git a/docs/examples/kotlin/health/get-storage-local.md b/docs/examples/kotlin/health/get-storage-local.md index 32a21aea..41a01f87 100644 --- a/docs/examples/kotlin/health/get-storage-local.md +++ b/docs/examples/kotlin/health/get-storage-local.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Health @@ -10,3 +11,4 @@ val client = Client() val health = Health(client) val response = health.getStorageLocal() +``` diff --git a/docs/examples/kotlin/health/get-storage.md b/docs/examples/kotlin/health/get-storage.md index 8af609aa..5c52798d 100644 --- a/docs/examples/kotlin/health/get-storage.md +++ b/docs/examples/kotlin/health/get-storage.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Health @@ -10,3 +11,4 @@ val client = Client() val health = Health(client) val response = health.getStorage() +``` diff --git a/docs/examples/kotlin/health/get-time.md b/docs/examples/kotlin/health/get-time.md index 8054ed7c..acbebfd1 100644 --- a/docs/examples/kotlin/health/get-time.md +++ b/docs/examples/kotlin/health/get-time.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Health @@ -10,3 +11,4 @@ val client = Client() val health = Health(client) val response = health.getTime() +``` diff --git a/docs/examples/kotlin/health/get.md b/docs/examples/kotlin/health/get.md index 0845320b..3932ccb1 100644 --- a/docs/examples/kotlin/health/get.md +++ b/docs/examples/kotlin/health/get.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Health @@ -10,3 +11,4 @@ val client = Client() val health = Health(client) val response = health.get() +``` diff --git a/docs/examples/kotlin/locale/get.md b/docs/examples/kotlin/locale/get.md index 6840259c..aa14e450 100644 --- a/docs/examples/kotlin/locale/get.md +++ b/docs/examples/kotlin/locale/get.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Locale @@ -10,3 +11,4 @@ val client = Client() val locale = Locale(client) val response = locale.get() +``` diff --git a/docs/examples/kotlin/locale/list-codes.md b/docs/examples/kotlin/locale/list-codes.md index fd0c4e41..d7d323e4 100644 --- a/docs/examples/kotlin/locale/list-codes.md +++ b/docs/examples/kotlin/locale/list-codes.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Locale @@ -10,3 +11,4 @@ val client = Client() val locale = Locale(client) val response = locale.listCodes() +``` diff --git a/docs/examples/kotlin/locale/list-continents.md b/docs/examples/kotlin/locale/list-continents.md index 699d599f..84fd76bc 100644 --- a/docs/examples/kotlin/locale/list-continents.md +++ b/docs/examples/kotlin/locale/list-continents.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Locale @@ -10,3 +11,4 @@ val client = Client() val locale = Locale(client) val response = locale.listContinents() +``` diff --git a/docs/examples/kotlin/locale/list-countries-eu.md b/docs/examples/kotlin/locale/list-countries-eu.md index 13e86f30..4fbcee6c 100644 --- a/docs/examples/kotlin/locale/list-countries-eu.md +++ b/docs/examples/kotlin/locale/list-countries-eu.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Locale @@ -10,3 +11,4 @@ val client = Client() val locale = Locale(client) val response = locale.listCountriesEU() +``` diff --git a/docs/examples/kotlin/locale/list-countries-phones.md b/docs/examples/kotlin/locale/list-countries-phones.md index b660ccf4..02c56bbc 100644 --- a/docs/examples/kotlin/locale/list-countries-phones.md +++ b/docs/examples/kotlin/locale/list-countries-phones.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Locale @@ -10,3 +11,4 @@ val client = Client() val locale = Locale(client) val response = locale.listCountriesPhones() +``` diff --git a/docs/examples/kotlin/locale/list-countries.md b/docs/examples/kotlin/locale/list-countries.md index 3457ceb4..441e130e 100644 --- a/docs/examples/kotlin/locale/list-countries.md +++ b/docs/examples/kotlin/locale/list-countries.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Locale @@ -10,3 +11,4 @@ val client = Client() val locale = Locale(client) val response = locale.listCountries() +``` diff --git a/docs/examples/kotlin/locale/list-currencies.md b/docs/examples/kotlin/locale/list-currencies.md index 80b2cc7e..c68d676a 100644 --- a/docs/examples/kotlin/locale/list-currencies.md +++ b/docs/examples/kotlin/locale/list-currencies.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Locale @@ -10,3 +11,4 @@ val client = Client() val locale = Locale(client) val response = locale.listCurrencies() +``` diff --git a/docs/examples/kotlin/locale/list-languages.md b/docs/examples/kotlin/locale/list-languages.md index b36c1389..307d0b79 100644 --- a/docs/examples/kotlin/locale/list-languages.md +++ b/docs/examples/kotlin/locale/list-languages.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Locale @@ -10,3 +11,4 @@ val client = Client() val locale = Locale(client) val response = locale.listLanguages() +``` diff --git a/docs/examples/kotlin/messaging/create-apns-provider.md b/docs/examples/kotlin/messaging/create-apns-provider.md index 5104edf3..e9d80cad 100644 --- a/docs/examples/kotlin/messaging/create-apns-provider.md +++ b/docs/examples/kotlin/messaging/create-apns-provider.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging @@ -19,3 +20,4 @@ val response = messaging.createAPNSProvider( sandbox = false, // optional enabled = false // optional ) +``` diff --git a/docs/examples/kotlin/messaging/create-email.md b/docs/examples/kotlin/messaging/create-email.md index f0f41e9e..89460f66 100644 --- a/docs/examples/kotlin/messaging/create-email.md +++ b/docs/examples/kotlin/messaging/create-email.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging @@ -23,3 +24,4 @@ val response = messaging.createEmail( html = false, // optional scheduledAt = "" // optional ) +``` diff --git a/docs/examples/kotlin/messaging/create-fcm-provider.md b/docs/examples/kotlin/messaging/create-fcm-provider.md index b1a2ef83..495b9ac6 100644 --- a/docs/examples/kotlin/messaging/create-fcm-provider.md +++ b/docs/examples/kotlin/messaging/create-fcm-provider.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging @@ -15,3 +16,4 @@ val response = messaging.createFCMProvider( serviceAccountJSON = mapOf( "a" to "b" ), // optional enabled = false // optional ) +``` diff --git a/docs/examples/kotlin/messaging/create-mailgun-provider.md b/docs/examples/kotlin/messaging/create-mailgun-provider.md index d205171d..7f253330 100644 --- a/docs/examples/kotlin/messaging/create-mailgun-provider.md +++ b/docs/examples/kotlin/messaging/create-mailgun-provider.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging @@ -21,3 +22,4 @@ val response = messaging.createMailgunProvider( replyToEmail = "email@example.com", // optional enabled = false // optional ) +``` diff --git a/docs/examples/kotlin/messaging/create-msg-91-provider.md b/docs/examples/kotlin/messaging/create-msg-91-provider.md index 5ea3d223..a80004b8 100644 --- a/docs/examples/kotlin/messaging/create-msg-91-provider.md +++ b/docs/examples/kotlin/messaging/create-msg-91-provider.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging @@ -17,3 +18,4 @@ val response = messaging.createMsg91Provider( authKey = "", // optional enabled = false // optional ) +``` diff --git a/docs/examples/kotlin/messaging/create-push.md b/docs/examples/kotlin/messaging/create-push.md index be435815..607ab779 100644 --- a/docs/examples/kotlin/messaging/create-push.md +++ b/docs/examples/kotlin/messaging/create-push.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging @@ -31,3 +32,4 @@ val response = messaging.createPush( critical = false, // optional priority = MessagePriority.NORMAL // optional ) +``` diff --git a/docs/examples/kotlin/messaging/create-resend-provider.md b/docs/examples/kotlin/messaging/create-resend-provider.md index 2db1dc1b..313bbb70 100644 --- a/docs/examples/kotlin/messaging/create-resend-provider.md +++ b/docs/examples/kotlin/messaging/create-resend-provider.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging @@ -19,3 +20,4 @@ val response = messaging.createResendProvider( replyToEmail = "email@example.com", // optional enabled = false // optional ) +``` diff --git a/docs/examples/kotlin/messaging/create-sendgrid-provider.md b/docs/examples/kotlin/messaging/create-sendgrid-provider.md index e96a052d..05b263bb 100644 --- a/docs/examples/kotlin/messaging/create-sendgrid-provider.md +++ b/docs/examples/kotlin/messaging/create-sendgrid-provider.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging @@ -19,3 +20,4 @@ val response = messaging.createSendgridProvider( replyToEmail = "email@example.com", // optional enabled = false // optional ) +``` diff --git a/docs/examples/kotlin/messaging/create-sms.md b/docs/examples/kotlin/messaging/create-sms.md index 54c06eb3..506f84fa 100644 --- a/docs/examples/kotlin/messaging/create-sms.md +++ b/docs/examples/kotlin/messaging/create-sms.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging @@ -18,3 +19,4 @@ val response = messaging.createSMS( draft = false, // optional scheduledAt = "" // optional ) +``` diff --git a/docs/examples/kotlin/messaging/create-smtp-provider.md b/docs/examples/kotlin/messaging/create-smtp-provider.md index 62a61a57..64d55ed1 100644 --- a/docs/examples/kotlin/messaging/create-smtp-provider.md +++ b/docs/examples/kotlin/messaging/create-smtp-provider.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging @@ -26,3 +27,4 @@ val response = messaging.createSMTPProvider( replyToEmail = "email@example.com", // optional enabled = false // optional ) +``` diff --git a/docs/examples/kotlin/messaging/create-subscriber.md b/docs/examples/kotlin/messaging/create-subscriber.md index 44e3a72a..8b72a813 100644 --- a/docs/examples/kotlin/messaging/create-subscriber.md +++ b/docs/examples/kotlin/messaging/create-subscriber.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging @@ -14,3 +15,4 @@ val response = messaging.createSubscriber( subscriberId = "", targetId = "" ) +``` diff --git a/docs/examples/kotlin/messaging/create-telesign-provider.md b/docs/examples/kotlin/messaging/create-telesign-provider.md index cddd6d80..585fddeb 100644 --- a/docs/examples/kotlin/messaging/create-telesign-provider.md +++ b/docs/examples/kotlin/messaging/create-telesign-provider.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging @@ -17,3 +18,4 @@ val response = messaging.createTelesignProvider( apiKey = "", // optional enabled = false // optional ) +``` diff --git a/docs/examples/kotlin/messaging/create-textmagic-provider.md b/docs/examples/kotlin/messaging/create-textmagic-provider.md index 12eb62d9..d9290bb2 100644 --- a/docs/examples/kotlin/messaging/create-textmagic-provider.md +++ b/docs/examples/kotlin/messaging/create-textmagic-provider.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging @@ -17,3 +18,4 @@ val response = messaging.createTextmagicProvider( apiKey = "", // optional enabled = false // optional ) +``` diff --git a/docs/examples/kotlin/messaging/create-topic.md b/docs/examples/kotlin/messaging/create-topic.md index 570be33e..139dcf6a 100644 --- a/docs/examples/kotlin/messaging/create-topic.md +++ b/docs/examples/kotlin/messaging/create-topic.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging @@ -14,3 +15,4 @@ val response = messaging.createTopic( name = "", subscribe = listOf("any") // optional ) +``` diff --git a/docs/examples/kotlin/messaging/create-twilio-provider.md b/docs/examples/kotlin/messaging/create-twilio-provider.md index c05b835d..94556b56 100644 --- a/docs/examples/kotlin/messaging/create-twilio-provider.md +++ b/docs/examples/kotlin/messaging/create-twilio-provider.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging @@ -17,3 +18,4 @@ val response = messaging.createTwilioProvider( authToken = "", // optional enabled = false // optional ) +``` diff --git a/docs/examples/kotlin/messaging/create-vonage-provider.md b/docs/examples/kotlin/messaging/create-vonage-provider.md index 7e049d83..d4b8b3dc 100644 --- a/docs/examples/kotlin/messaging/create-vonage-provider.md +++ b/docs/examples/kotlin/messaging/create-vonage-provider.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging @@ -17,3 +18,4 @@ val response = messaging.createVonageProvider( apiSecret = "", // optional enabled = false // optional ) +``` diff --git a/docs/examples/kotlin/messaging/delete-provider.md b/docs/examples/kotlin/messaging/delete-provider.md index 4989da8c..82875d67 100644 --- a/docs/examples/kotlin/messaging/delete-provider.md +++ b/docs/examples/kotlin/messaging/delete-provider.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging @@ -12,3 +13,4 @@ val messaging = Messaging(client) val response = messaging.deleteProvider( providerId = "" ) +``` diff --git a/docs/examples/kotlin/messaging/delete-subscriber.md b/docs/examples/kotlin/messaging/delete-subscriber.md index 0f99f251..d475b5b4 100644 --- a/docs/examples/kotlin/messaging/delete-subscriber.md +++ b/docs/examples/kotlin/messaging/delete-subscriber.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging @@ -13,3 +14,4 @@ val response = messaging.deleteSubscriber( topicId = "", subscriberId = "" ) +``` diff --git a/docs/examples/kotlin/messaging/delete-topic.md b/docs/examples/kotlin/messaging/delete-topic.md index 8a52c9f9..46407e82 100644 --- a/docs/examples/kotlin/messaging/delete-topic.md +++ b/docs/examples/kotlin/messaging/delete-topic.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging @@ -12,3 +13,4 @@ val messaging = Messaging(client) val response = messaging.deleteTopic( topicId = "" ) +``` diff --git a/docs/examples/kotlin/messaging/delete.md b/docs/examples/kotlin/messaging/delete.md index 7e4ec51c..25a5cfb4 100644 --- a/docs/examples/kotlin/messaging/delete.md +++ b/docs/examples/kotlin/messaging/delete.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging @@ -12,3 +13,4 @@ val messaging = Messaging(client) val response = messaging.delete( messageId = "" ) +``` diff --git a/docs/examples/kotlin/messaging/get-message.md b/docs/examples/kotlin/messaging/get-message.md index 710d3561..9e9254f5 100644 --- a/docs/examples/kotlin/messaging/get-message.md +++ b/docs/examples/kotlin/messaging/get-message.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging @@ -12,3 +13,4 @@ val messaging = Messaging(client) val response = messaging.getMessage( messageId = "" ) +``` diff --git a/docs/examples/kotlin/messaging/get-provider.md b/docs/examples/kotlin/messaging/get-provider.md index c678d4d9..a318451d 100644 --- a/docs/examples/kotlin/messaging/get-provider.md +++ b/docs/examples/kotlin/messaging/get-provider.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging @@ -12,3 +13,4 @@ val messaging = Messaging(client) val response = messaging.getProvider( providerId = "" ) +``` diff --git a/docs/examples/kotlin/messaging/get-subscriber.md b/docs/examples/kotlin/messaging/get-subscriber.md index 59b335a2..ef49cf15 100644 --- a/docs/examples/kotlin/messaging/get-subscriber.md +++ b/docs/examples/kotlin/messaging/get-subscriber.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging @@ -13,3 +14,4 @@ val response = messaging.getSubscriber( topicId = "", subscriberId = "" ) +``` diff --git a/docs/examples/kotlin/messaging/get-topic.md b/docs/examples/kotlin/messaging/get-topic.md index c189898e..1a5738f8 100644 --- a/docs/examples/kotlin/messaging/get-topic.md +++ b/docs/examples/kotlin/messaging/get-topic.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging @@ -12,3 +13,4 @@ val messaging = Messaging(client) val response = messaging.getTopic( topicId = "" ) +``` diff --git a/docs/examples/kotlin/messaging/list-message-logs.md b/docs/examples/kotlin/messaging/list-message-logs.md index 2f03870b..7aedf604 100644 --- a/docs/examples/kotlin/messaging/list-message-logs.md +++ b/docs/examples/kotlin/messaging/list-message-logs.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging @@ -14,3 +15,4 @@ val response = messaging.listMessageLogs( queries = listOf(), // optional total = false // optional ) +``` diff --git a/docs/examples/kotlin/messaging/list-messages.md b/docs/examples/kotlin/messaging/list-messages.md index 22aae7eb..cbf689e2 100644 --- a/docs/examples/kotlin/messaging/list-messages.md +++ b/docs/examples/kotlin/messaging/list-messages.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging @@ -14,3 +15,4 @@ val response = messaging.listMessages( search = "", // optional total = false // optional ) +``` diff --git a/docs/examples/kotlin/messaging/list-provider-logs.md b/docs/examples/kotlin/messaging/list-provider-logs.md index 2f7eb728..f395d934 100644 --- a/docs/examples/kotlin/messaging/list-provider-logs.md +++ b/docs/examples/kotlin/messaging/list-provider-logs.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging @@ -14,3 +15,4 @@ val response = messaging.listProviderLogs( queries = listOf(), // optional total = false // optional ) +``` diff --git a/docs/examples/kotlin/messaging/list-providers.md b/docs/examples/kotlin/messaging/list-providers.md index 5c200e7b..27c875d4 100644 --- a/docs/examples/kotlin/messaging/list-providers.md +++ b/docs/examples/kotlin/messaging/list-providers.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging @@ -14,3 +15,4 @@ val response = messaging.listProviders( search = "", // optional total = false // optional ) +``` diff --git a/docs/examples/kotlin/messaging/list-subscriber-logs.md b/docs/examples/kotlin/messaging/list-subscriber-logs.md index f7c9324c..77aa5258 100644 --- a/docs/examples/kotlin/messaging/list-subscriber-logs.md +++ b/docs/examples/kotlin/messaging/list-subscriber-logs.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging @@ -14,3 +15,4 @@ val response = messaging.listSubscriberLogs( queries = listOf(), // optional total = false // optional ) +``` diff --git a/docs/examples/kotlin/messaging/list-subscribers.md b/docs/examples/kotlin/messaging/list-subscribers.md index 00569741..8ae76791 100644 --- a/docs/examples/kotlin/messaging/list-subscribers.md +++ b/docs/examples/kotlin/messaging/list-subscribers.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging @@ -15,3 +16,4 @@ val response = messaging.listSubscribers( search = "", // optional total = false // optional ) +``` diff --git a/docs/examples/kotlin/messaging/list-targets.md b/docs/examples/kotlin/messaging/list-targets.md index 2611fc94..e6ff5faa 100644 --- a/docs/examples/kotlin/messaging/list-targets.md +++ b/docs/examples/kotlin/messaging/list-targets.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging @@ -14,3 +15,4 @@ val response = messaging.listTargets( queries = listOf(), // optional total = false // optional ) +``` diff --git a/docs/examples/kotlin/messaging/list-topic-logs.md b/docs/examples/kotlin/messaging/list-topic-logs.md index c7e81b27..ce66475e 100644 --- a/docs/examples/kotlin/messaging/list-topic-logs.md +++ b/docs/examples/kotlin/messaging/list-topic-logs.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging @@ -14,3 +15,4 @@ val response = messaging.listTopicLogs( queries = listOf(), // optional total = false // optional ) +``` diff --git a/docs/examples/kotlin/messaging/list-topics.md b/docs/examples/kotlin/messaging/list-topics.md index a2c64e68..23cae83d 100644 --- a/docs/examples/kotlin/messaging/list-topics.md +++ b/docs/examples/kotlin/messaging/list-topics.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging @@ -14,3 +15,4 @@ val response = messaging.listTopics( search = "", // optional total = false // optional ) +``` diff --git a/docs/examples/kotlin/messaging/update-apns-provider.md b/docs/examples/kotlin/messaging/update-apns-provider.md index 29b436e4..2d881291 100644 --- a/docs/examples/kotlin/messaging/update-apns-provider.md +++ b/docs/examples/kotlin/messaging/update-apns-provider.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging @@ -19,3 +20,4 @@ val response = messaging.updateAPNSProvider( bundleId = "", // optional sandbox = false // optional ) +``` diff --git a/docs/examples/kotlin/messaging/update-email.md b/docs/examples/kotlin/messaging/update-email.md index cd74bb42..f9f50688 100644 --- a/docs/examples/kotlin/messaging/update-email.md +++ b/docs/examples/kotlin/messaging/update-email.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging @@ -23,3 +24,4 @@ val response = messaging.updateEmail( scheduledAt = "", // optional attachments = listOf() // optional ) +``` diff --git a/docs/examples/kotlin/messaging/update-fcm-provider.md b/docs/examples/kotlin/messaging/update-fcm-provider.md index 84e5635f..2d5e5257 100644 --- a/docs/examples/kotlin/messaging/update-fcm-provider.md +++ b/docs/examples/kotlin/messaging/update-fcm-provider.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging @@ -15,3 +16,4 @@ val response = messaging.updateFCMProvider( enabled = false, // optional serviceAccountJSON = mapOf( "a" to "b" ) // optional ) +``` diff --git a/docs/examples/kotlin/messaging/update-mailgun-provider.md b/docs/examples/kotlin/messaging/update-mailgun-provider.md index 4bec8d2a..18b652ce 100644 --- a/docs/examples/kotlin/messaging/update-mailgun-provider.md +++ b/docs/examples/kotlin/messaging/update-mailgun-provider.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging @@ -21,3 +22,4 @@ val response = messaging.updateMailgunProvider( replyToName = "", // optional replyToEmail = "" // optional ) +``` diff --git a/docs/examples/kotlin/messaging/update-msg-91-provider.md b/docs/examples/kotlin/messaging/update-msg-91-provider.md index 3abaca75..f4901b70 100644 --- a/docs/examples/kotlin/messaging/update-msg-91-provider.md +++ b/docs/examples/kotlin/messaging/update-msg-91-provider.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging @@ -17,3 +18,4 @@ val response = messaging.updateMsg91Provider( senderId = "", // optional authKey = "" // optional ) +``` diff --git a/docs/examples/kotlin/messaging/update-push.md b/docs/examples/kotlin/messaging/update-push.md index f1852bc9..e6092f98 100644 --- a/docs/examples/kotlin/messaging/update-push.md +++ b/docs/examples/kotlin/messaging/update-push.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging @@ -31,3 +32,4 @@ val response = messaging.updatePush( critical = false, // optional priority = MessagePriority.NORMAL // optional ) +``` diff --git a/docs/examples/kotlin/messaging/update-resend-provider.md b/docs/examples/kotlin/messaging/update-resend-provider.md index 26d6f12a..c16fa845 100644 --- a/docs/examples/kotlin/messaging/update-resend-provider.md +++ b/docs/examples/kotlin/messaging/update-resend-provider.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging @@ -19,3 +20,4 @@ val response = messaging.updateResendProvider( replyToName = "", // optional replyToEmail = "" // optional ) +``` diff --git a/docs/examples/kotlin/messaging/update-sendgrid-provider.md b/docs/examples/kotlin/messaging/update-sendgrid-provider.md index 962aa694..2d82d6a8 100644 --- a/docs/examples/kotlin/messaging/update-sendgrid-provider.md +++ b/docs/examples/kotlin/messaging/update-sendgrid-provider.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging @@ -19,3 +20,4 @@ val response = messaging.updateSendgridProvider( replyToName = "", // optional replyToEmail = "" // optional ) +``` diff --git a/docs/examples/kotlin/messaging/update-sms.md b/docs/examples/kotlin/messaging/update-sms.md index 534e9add..370877ca 100644 --- a/docs/examples/kotlin/messaging/update-sms.md +++ b/docs/examples/kotlin/messaging/update-sms.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging @@ -18,3 +19,4 @@ val response = messaging.updateSMS( draft = false, // optional scheduledAt = "" // optional ) +``` diff --git a/docs/examples/kotlin/messaging/update-smtp-provider.md b/docs/examples/kotlin/messaging/update-smtp-provider.md index 90c8b26b..ff8ed34e 100644 --- a/docs/examples/kotlin/messaging/update-smtp-provider.md +++ b/docs/examples/kotlin/messaging/update-smtp-provider.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging @@ -26,3 +27,4 @@ val response = messaging.updateSMTPProvider( replyToEmail = "", // optional enabled = false // optional ) +``` diff --git a/docs/examples/kotlin/messaging/update-telesign-provider.md b/docs/examples/kotlin/messaging/update-telesign-provider.md index 83fb11a8..f2cb5b25 100644 --- a/docs/examples/kotlin/messaging/update-telesign-provider.md +++ b/docs/examples/kotlin/messaging/update-telesign-provider.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging @@ -17,3 +18,4 @@ val response = messaging.updateTelesignProvider( apiKey = "", // optional from = "" // optional ) +``` diff --git a/docs/examples/kotlin/messaging/update-textmagic-provider.md b/docs/examples/kotlin/messaging/update-textmagic-provider.md index 1e2ee1e2..1640c79d 100644 --- a/docs/examples/kotlin/messaging/update-textmagic-provider.md +++ b/docs/examples/kotlin/messaging/update-textmagic-provider.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging @@ -17,3 +18,4 @@ val response = messaging.updateTextmagicProvider( apiKey = "", // optional from = "" // optional ) +``` diff --git a/docs/examples/kotlin/messaging/update-topic.md b/docs/examples/kotlin/messaging/update-topic.md index 0991fd0e..d9a6a78c 100644 --- a/docs/examples/kotlin/messaging/update-topic.md +++ b/docs/examples/kotlin/messaging/update-topic.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging @@ -14,3 +15,4 @@ val response = messaging.updateTopic( name = "", // optional subscribe = listOf("any") // optional ) +``` diff --git a/docs/examples/kotlin/messaging/update-twilio-provider.md b/docs/examples/kotlin/messaging/update-twilio-provider.md index 1c86f9e8..b60901a9 100644 --- a/docs/examples/kotlin/messaging/update-twilio-provider.md +++ b/docs/examples/kotlin/messaging/update-twilio-provider.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging @@ -17,3 +18,4 @@ val response = messaging.updateTwilioProvider( authToken = "", // optional from = "" // optional ) +``` diff --git a/docs/examples/kotlin/messaging/update-vonage-provider.md b/docs/examples/kotlin/messaging/update-vonage-provider.md index bf0ee2b7..8458a7b4 100644 --- a/docs/examples/kotlin/messaging/update-vonage-provider.md +++ b/docs/examples/kotlin/messaging/update-vonage-provider.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging @@ -17,3 +18,4 @@ val response = messaging.updateVonageProvider( apiSecret = "", // optional from = "" // optional ) +``` diff --git a/docs/examples/kotlin/organizations/delete.md b/docs/examples/kotlin/organizations/delete.md new file mode 100644 index 00000000..4f40136d --- /dev/null +++ b/docs/examples/kotlin/organizations/delete.md @@ -0,0 +1,16 @@ +```kotlin +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Organizations + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setSession("") // The user session to authenticate with + +val organizations = Organizations(client) + +val response = organizations.delete( + organizationId = "" +) +``` diff --git a/docs/examples/kotlin/organizations/estimation-delete-organization.md b/docs/examples/kotlin/organizations/estimation-delete-organization.md new file mode 100644 index 00000000..9a8a7550 --- /dev/null +++ b/docs/examples/kotlin/organizations/estimation-delete-organization.md @@ -0,0 +1,16 @@ +```kotlin +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Organizations + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setSession("") // The user session to authenticate with + +val organizations = Organizations(client) + +val response = organizations.estimationDeleteOrganization( + organizationId = "" +) +``` diff --git a/docs/examples/kotlin/sites/create-deployment.md b/docs/examples/kotlin/sites/create-deployment.md index ba2c24dd..0c1027f6 100644 --- a/docs/examples/kotlin/sites/create-deployment.md +++ b/docs/examples/kotlin/sites/create-deployment.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.models.InputFile @@ -18,3 +19,4 @@ val response = sites.createDeployment( buildCommand = "", // optional outputDirectory = "" // optional ) +``` diff --git a/docs/examples/kotlin/sites/create-duplicate-deployment.md b/docs/examples/kotlin/sites/create-duplicate-deployment.md index 06a3ce84..0bbc1c11 100644 --- a/docs/examples/kotlin/sites/create-duplicate-deployment.md +++ b/docs/examples/kotlin/sites/create-duplicate-deployment.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Sites @@ -13,3 +14,4 @@ val response = sites.createDuplicateDeployment( siteId = "", deploymentId = "" ) +``` diff --git a/docs/examples/kotlin/sites/create-template-deployment.md b/docs/examples/kotlin/sites/create-template-deployment.md index f32131ed..65515cc8 100644 --- a/docs/examples/kotlin/sites/create-template-deployment.md +++ b/docs/examples/kotlin/sites/create-template-deployment.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Sites @@ -19,3 +20,4 @@ val response = sites.createTemplateDeployment( reference = "", activate = false // optional ) +``` diff --git a/docs/examples/kotlin/sites/create-variable.md b/docs/examples/kotlin/sites/create-variable.md index 6eb46668..859a759b 100644 --- a/docs/examples/kotlin/sites/create-variable.md +++ b/docs/examples/kotlin/sites/create-variable.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Sites @@ -15,3 +16,4 @@ val response = sites.createVariable( value = "", secret = false // optional ) +``` diff --git a/docs/examples/kotlin/sites/create-vcs-deployment.md b/docs/examples/kotlin/sites/create-vcs-deployment.md index 44f88d8c..9e7cd91e 100644 --- a/docs/examples/kotlin/sites/create-vcs-deployment.md +++ b/docs/examples/kotlin/sites/create-vcs-deployment.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Sites @@ -16,3 +17,4 @@ val response = sites.createVcsDeployment( reference = "", activate = false // optional ) +``` diff --git a/docs/examples/kotlin/sites/create.md b/docs/examples/kotlin/sites/create.md index 1dcd9580..a0a02056 100644 --- a/docs/examples/kotlin/sites/create.md +++ b/docs/examples/kotlin/sites/create.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Sites @@ -32,3 +33,4 @@ val response = sites.create( providerRootDirectory = "", // optional specification = "" // optional ) +``` diff --git a/docs/examples/kotlin/sites/delete-deployment.md b/docs/examples/kotlin/sites/delete-deployment.md index 6d739183..76400fc5 100644 --- a/docs/examples/kotlin/sites/delete-deployment.md +++ b/docs/examples/kotlin/sites/delete-deployment.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Sites @@ -13,3 +14,4 @@ val response = sites.deleteDeployment( siteId = "", deploymentId = "" ) +``` diff --git a/docs/examples/kotlin/sites/delete-log.md b/docs/examples/kotlin/sites/delete-log.md index c7d7b778..5a371410 100644 --- a/docs/examples/kotlin/sites/delete-log.md +++ b/docs/examples/kotlin/sites/delete-log.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Sites @@ -13,3 +14,4 @@ val response = sites.deleteLog( siteId = "", logId = "" ) +``` diff --git a/docs/examples/kotlin/sites/delete-variable.md b/docs/examples/kotlin/sites/delete-variable.md index 7859a8a8..4df5d290 100644 --- a/docs/examples/kotlin/sites/delete-variable.md +++ b/docs/examples/kotlin/sites/delete-variable.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Sites @@ -13,3 +14,4 @@ val response = sites.deleteVariable( siteId = "", variableId = "" ) +``` diff --git a/docs/examples/kotlin/sites/delete.md b/docs/examples/kotlin/sites/delete.md index 369b6144..d1c5bbe4 100644 --- a/docs/examples/kotlin/sites/delete.md +++ b/docs/examples/kotlin/sites/delete.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Sites @@ -12,3 +13,4 @@ val sites = Sites(client) val response = sites.delete( siteId = "" ) +``` diff --git a/docs/examples/kotlin/sites/get-deployment-download.md b/docs/examples/kotlin/sites/get-deployment-download.md index 65450f89..e86ef015 100644 --- a/docs/examples/kotlin/sites/get-deployment-download.md +++ b/docs/examples/kotlin/sites/get-deployment-download.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Sites @@ -15,3 +16,4 @@ val result = sites.getDeploymentDownload( deploymentId = "", type = DeploymentDownloadType.SOURCE // optional ) +``` diff --git a/docs/examples/kotlin/sites/get-deployment.md b/docs/examples/kotlin/sites/get-deployment.md index f2a33a40..f20cd5e7 100644 --- a/docs/examples/kotlin/sites/get-deployment.md +++ b/docs/examples/kotlin/sites/get-deployment.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Sites @@ -13,3 +14,4 @@ val response = sites.getDeployment( siteId = "", deploymentId = "" ) +``` diff --git a/docs/examples/kotlin/sites/get-log.md b/docs/examples/kotlin/sites/get-log.md index ff46f77d..57f35202 100644 --- a/docs/examples/kotlin/sites/get-log.md +++ b/docs/examples/kotlin/sites/get-log.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Sites @@ -13,3 +14,4 @@ val response = sites.getLog( siteId = "", logId = "" ) +``` diff --git a/docs/examples/kotlin/sites/get-variable.md b/docs/examples/kotlin/sites/get-variable.md index ccab6666..691e919f 100644 --- a/docs/examples/kotlin/sites/get-variable.md +++ b/docs/examples/kotlin/sites/get-variable.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Sites @@ -13,3 +14,4 @@ val response = sites.getVariable( siteId = "", variableId = "" ) +``` diff --git a/docs/examples/kotlin/sites/get.md b/docs/examples/kotlin/sites/get.md index 7ced974e..735b5196 100644 --- a/docs/examples/kotlin/sites/get.md +++ b/docs/examples/kotlin/sites/get.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Sites @@ -12,3 +13,4 @@ val sites = Sites(client) val response = sites.get( siteId = "" ) +``` diff --git a/docs/examples/kotlin/sites/list-deployments.md b/docs/examples/kotlin/sites/list-deployments.md index 51152978..cf092dbc 100644 --- a/docs/examples/kotlin/sites/list-deployments.md +++ b/docs/examples/kotlin/sites/list-deployments.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Sites @@ -15,3 +16,4 @@ val response = sites.listDeployments( search = "", // optional total = false // optional ) +``` diff --git a/docs/examples/kotlin/sites/list-frameworks.md b/docs/examples/kotlin/sites/list-frameworks.md index cf02b75b..6c7aa92d 100644 --- a/docs/examples/kotlin/sites/list-frameworks.md +++ b/docs/examples/kotlin/sites/list-frameworks.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Sites @@ -10,3 +11,4 @@ val client = Client() val sites = Sites(client) val response = sites.listFrameworks() +``` diff --git a/docs/examples/kotlin/sites/list-logs.md b/docs/examples/kotlin/sites/list-logs.md index 95848b25..bfb8556b 100644 --- a/docs/examples/kotlin/sites/list-logs.md +++ b/docs/examples/kotlin/sites/list-logs.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Sites @@ -14,3 +15,4 @@ val response = sites.listLogs( queries = listOf(), // optional total = false // optional ) +``` diff --git a/docs/examples/kotlin/sites/list-specifications.md b/docs/examples/kotlin/sites/list-specifications.md index 56e86405..5ebef601 100644 --- a/docs/examples/kotlin/sites/list-specifications.md +++ b/docs/examples/kotlin/sites/list-specifications.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Sites @@ -10,3 +11,4 @@ val client = Client() val sites = Sites(client) val response = sites.listSpecifications() +``` diff --git a/docs/examples/kotlin/sites/list-variables.md b/docs/examples/kotlin/sites/list-variables.md index 70ec4979..09486508 100644 --- a/docs/examples/kotlin/sites/list-variables.md +++ b/docs/examples/kotlin/sites/list-variables.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Sites @@ -12,3 +13,4 @@ val sites = Sites(client) val response = sites.listVariables( siteId = "" ) +``` diff --git a/docs/examples/kotlin/sites/list.md b/docs/examples/kotlin/sites/list.md index 844823db..3b064979 100644 --- a/docs/examples/kotlin/sites/list.md +++ b/docs/examples/kotlin/sites/list.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Sites @@ -14,3 +15,4 @@ val response = sites.list( search = "", // optional total = false // optional ) +``` diff --git a/docs/examples/kotlin/sites/update-deployment-status.md b/docs/examples/kotlin/sites/update-deployment-status.md index 585fc324..c9727b37 100644 --- a/docs/examples/kotlin/sites/update-deployment-status.md +++ b/docs/examples/kotlin/sites/update-deployment-status.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Sites @@ -13,3 +14,4 @@ val response = sites.updateDeploymentStatus( siteId = "", deploymentId = "" ) +``` diff --git a/docs/examples/kotlin/sites/update-site-deployment.md b/docs/examples/kotlin/sites/update-site-deployment.md index fb9bb726..7f3da423 100644 --- a/docs/examples/kotlin/sites/update-site-deployment.md +++ b/docs/examples/kotlin/sites/update-site-deployment.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Sites @@ -13,3 +14,4 @@ val response = sites.updateSiteDeployment( siteId = "", deploymentId = "" ) +``` diff --git a/docs/examples/kotlin/sites/update-variable.md b/docs/examples/kotlin/sites/update-variable.md index b32c2780..fe87cc3f 100644 --- a/docs/examples/kotlin/sites/update-variable.md +++ b/docs/examples/kotlin/sites/update-variable.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Sites @@ -16,3 +17,4 @@ val response = sites.updateVariable( value = "", // optional secret = false // optional ) +``` diff --git a/docs/examples/kotlin/sites/update.md b/docs/examples/kotlin/sites/update.md index 94f8884d..e3b1ecb6 100644 --- a/docs/examples/kotlin/sites/update.md +++ b/docs/examples/kotlin/sites/update.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Sites @@ -32,3 +33,4 @@ val response = sites.update( providerRootDirectory = "", // optional specification = "" // optional ) +``` diff --git a/docs/examples/kotlin/storage/create-bucket.md b/docs/examples/kotlin/storage/create-bucket.md index be114e22..a2f2be7a 100644 --- a/docs/examples/kotlin/storage/create-bucket.md +++ b/docs/examples/kotlin/storage/create-bucket.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Storage @@ -25,3 +26,4 @@ val response = storage.createBucket( antivirus = false, // optional transformations = false // optional ) +``` diff --git a/docs/examples/kotlin/storage/create-file.md b/docs/examples/kotlin/storage/create-file.md index e9e986cd..e17edbd8 100644 --- a/docs/examples/kotlin/storage/create-file.md +++ b/docs/examples/kotlin/storage/create-file.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.models.InputFile @@ -18,3 +19,4 @@ val response = storage.createFile( file = InputFile.fromPath("file.png"), permissions = listOf(Permission.read(Role.any())) // optional ) +``` diff --git a/docs/examples/kotlin/storage/delete-bucket.md b/docs/examples/kotlin/storage/delete-bucket.md index 4a0904ec..a5f681c6 100644 --- a/docs/examples/kotlin/storage/delete-bucket.md +++ b/docs/examples/kotlin/storage/delete-bucket.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Storage @@ -12,3 +13,4 @@ val storage = Storage(client) val response = storage.deleteBucket( bucketId = "" ) +``` diff --git a/docs/examples/kotlin/storage/delete-file.md b/docs/examples/kotlin/storage/delete-file.md index cf5e285d..8ba5a38c 100644 --- a/docs/examples/kotlin/storage/delete-file.md +++ b/docs/examples/kotlin/storage/delete-file.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Storage @@ -13,3 +14,4 @@ val response = storage.deleteFile( bucketId = "", fileId = "" ) +``` diff --git a/docs/examples/kotlin/storage/get-bucket.md b/docs/examples/kotlin/storage/get-bucket.md index e2a6a8f5..b243bc3f 100644 --- a/docs/examples/kotlin/storage/get-bucket.md +++ b/docs/examples/kotlin/storage/get-bucket.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Storage @@ -12,3 +13,4 @@ val storage = Storage(client) val response = storage.getBucket( bucketId = "" ) +``` diff --git a/docs/examples/kotlin/storage/get-file-download.md b/docs/examples/kotlin/storage/get-file-download.md index c14c966b..ed3198dd 100644 --- a/docs/examples/kotlin/storage/get-file-download.md +++ b/docs/examples/kotlin/storage/get-file-download.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Storage @@ -14,3 +15,4 @@ val result = storage.getFileDownload( fileId = "", token = "" // optional ) +``` diff --git a/docs/examples/kotlin/storage/get-file-preview.md b/docs/examples/kotlin/storage/get-file-preview.md index c740da36..9f7f2924 100644 --- a/docs/examples/kotlin/storage/get-file-preview.md +++ b/docs/examples/kotlin/storage/get-file-preview.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Storage @@ -27,3 +28,4 @@ val result = storage.getFilePreview( output = ImageFormat.JPG, // optional token = "" // optional ) +``` diff --git a/docs/examples/kotlin/storage/get-file-view.md b/docs/examples/kotlin/storage/get-file-view.md index fec1ec71..141a8cd4 100644 --- a/docs/examples/kotlin/storage/get-file-view.md +++ b/docs/examples/kotlin/storage/get-file-view.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Storage @@ -14,3 +15,4 @@ val result = storage.getFileView( fileId = "", token = "" // optional ) +``` diff --git a/docs/examples/kotlin/storage/get-file.md b/docs/examples/kotlin/storage/get-file.md index a807177d..22307593 100644 --- a/docs/examples/kotlin/storage/get-file.md +++ b/docs/examples/kotlin/storage/get-file.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Storage @@ -13,3 +14,4 @@ val response = storage.getFile( bucketId = "", fileId = "" ) +``` diff --git a/docs/examples/kotlin/storage/list-buckets.md b/docs/examples/kotlin/storage/list-buckets.md index b502367c..94c0bb6a 100644 --- a/docs/examples/kotlin/storage/list-buckets.md +++ b/docs/examples/kotlin/storage/list-buckets.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Storage @@ -14,3 +15,4 @@ val response = storage.listBuckets( search = "", // optional total = false // optional ) +``` diff --git a/docs/examples/kotlin/storage/list-files.md b/docs/examples/kotlin/storage/list-files.md index 648d37dc..bc1e60aa 100644 --- a/docs/examples/kotlin/storage/list-files.md +++ b/docs/examples/kotlin/storage/list-files.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Storage @@ -15,3 +16,4 @@ val response = storage.listFiles( search = "", // optional total = false // optional ) +``` diff --git a/docs/examples/kotlin/storage/update-bucket.md b/docs/examples/kotlin/storage/update-bucket.md index 25fed3cf..99e928c6 100644 --- a/docs/examples/kotlin/storage/update-bucket.md +++ b/docs/examples/kotlin/storage/update-bucket.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Storage @@ -25,3 +26,4 @@ val response = storage.updateBucket( antivirus = false, // optional transformations = false // optional ) +``` diff --git a/docs/examples/kotlin/storage/update-file.md b/docs/examples/kotlin/storage/update-file.md index b019f567..8bcebadd 100644 --- a/docs/examples/kotlin/storage/update-file.md +++ b/docs/examples/kotlin/storage/update-file.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Storage @@ -17,3 +18,4 @@ val response = storage.updateFile( name = "", // optional permissions = listOf(Permission.read(Role.any())) // optional ) +``` diff --git a/docs/examples/kotlin/tablesdb/create-boolean-column.md b/docs/examples/kotlin/tablesdb/create-boolean-column.md index fac14d91..1b386bcf 100644 --- a/docs/examples/kotlin/tablesdb/create-boolean-column.md +++ b/docs/examples/kotlin/tablesdb/create-boolean-column.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.TablesDB @@ -17,3 +18,4 @@ val response = tablesDB.createBooleanColumn( default = false, // optional array = false // optional ) +``` diff --git a/docs/examples/kotlin/tablesdb/create-datetime-column.md b/docs/examples/kotlin/tablesdb/create-datetime-column.md index e40d8e47..bd19dee8 100644 --- a/docs/examples/kotlin/tablesdb/create-datetime-column.md +++ b/docs/examples/kotlin/tablesdb/create-datetime-column.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.TablesDB @@ -17,3 +18,4 @@ val response = tablesDB.createDatetimeColumn( default = "", // optional array = false // optional ) +``` diff --git a/docs/examples/kotlin/tablesdb/create-email-column.md b/docs/examples/kotlin/tablesdb/create-email-column.md index e93e0b89..8132436b 100644 --- a/docs/examples/kotlin/tablesdb/create-email-column.md +++ b/docs/examples/kotlin/tablesdb/create-email-column.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.TablesDB @@ -17,3 +18,4 @@ val response = tablesDB.createEmailColumn( default = "email@example.com", // optional array = false // optional ) +``` diff --git a/docs/examples/kotlin/tablesdb/create-enum-column.md b/docs/examples/kotlin/tablesdb/create-enum-column.md index 1d19a589..9a33d4c4 100644 --- a/docs/examples/kotlin/tablesdb/create-enum-column.md +++ b/docs/examples/kotlin/tablesdb/create-enum-column.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.TablesDB @@ -18,3 +19,4 @@ val response = tablesDB.createEnumColumn( default = "", // optional array = false // optional ) +``` diff --git a/docs/examples/kotlin/tablesdb/create-float-column.md b/docs/examples/kotlin/tablesdb/create-float-column.md index 3c24b0d9..26345ea9 100644 --- a/docs/examples/kotlin/tablesdb/create-float-column.md +++ b/docs/examples/kotlin/tablesdb/create-float-column.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.TablesDB @@ -19,3 +20,4 @@ val response = tablesDB.createFloatColumn( default = 0, // optional array = false // optional ) +``` diff --git a/docs/examples/kotlin/tablesdb/create-index.md b/docs/examples/kotlin/tablesdb/create-index.md index 9583499b..b3c09ee0 100644 --- a/docs/examples/kotlin/tablesdb/create-index.md +++ b/docs/examples/kotlin/tablesdb/create-index.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.TablesDB @@ -20,3 +21,4 @@ val response = tablesDB.createIndex( orders = listOf(OrderBy.ASC), // optional lengths = listOf() // optional ) +``` diff --git a/docs/examples/kotlin/tablesdb/create-integer-column.md b/docs/examples/kotlin/tablesdb/create-integer-column.md index 90c558c4..fd10f1ce 100644 --- a/docs/examples/kotlin/tablesdb/create-integer-column.md +++ b/docs/examples/kotlin/tablesdb/create-integer-column.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.TablesDB @@ -19,3 +20,4 @@ val response = tablesDB.createIntegerColumn( default = 0, // optional array = false // optional ) +``` diff --git a/docs/examples/kotlin/tablesdb/create-ip-column.md b/docs/examples/kotlin/tablesdb/create-ip-column.md index 81412c7a..8541b584 100644 --- a/docs/examples/kotlin/tablesdb/create-ip-column.md +++ b/docs/examples/kotlin/tablesdb/create-ip-column.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.TablesDB @@ -17,3 +18,4 @@ val response = tablesDB.createIpColumn( default = "", // optional array = false // optional ) +``` diff --git a/docs/examples/kotlin/tablesdb/create-line-column.md b/docs/examples/kotlin/tablesdb/create-line-column.md index cede2894..f976c985 100644 --- a/docs/examples/kotlin/tablesdb/create-line-column.md +++ b/docs/examples/kotlin/tablesdb/create-line-column.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.TablesDB @@ -16,3 +17,4 @@ val response = tablesDB.createLineColumn( required = false, default = listOf(listOf(1, 2), listOf(3, 4), listOf(5, 6)) // optional ) +``` diff --git a/docs/examples/kotlin/tablesdb/create-longtext-column.md b/docs/examples/kotlin/tablesdb/create-longtext-column.md index 784171b8..97c43d16 100644 --- a/docs/examples/kotlin/tablesdb/create-longtext-column.md +++ b/docs/examples/kotlin/tablesdb/create-longtext-column.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.TablesDB @@ -17,3 +18,4 @@ val response = tablesDB.createLongtextColumn( default = "", // optional array = false // optional ) +``` diff --git a/docs/examples/kotlin/tablesdb/create-mediumtext-column.md b/docs/examples/kotlin/tablesdb/create-mediumtext-column.md index 4a4df447..466bf610 100644 --- a/docs/examples/kotlin/tablesdb/create-mediumtext-column.md +++ b/docs/examples/kotlin/tablesdb/create-mediumtext-column.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.TablesDB @@ -17,3 +18,4 @@ val response = tablesDB.createMediumtextColumn( default = "", // optional array = false // optional ) +``` diff --git a/docs/examples/kotlin/tablesdb/create-operations.md b/docs/examples/kotlin/tablesdb/create-operations.md index 5b059497..d2c6f7a0 100644 --- a/docs/examples/kotlin/tablesdb/create-operations.md +++ b/docs/examples/kotlin/tablesdb/create-operations.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.TablesDB @@ -21,3 +22,4 @@ val response = tablesDB.createOperations( ) )) // optional ) +``` diff --git a/docs/examples/kotlin/tablesdb/create-point-column.md b/docs/examples/kotlin/tablesdb/create-point-column.md index 7fd6ad75..891f1912 100644 --- a/docs/examples/kotlin/tablesdb/create-point-column.md +++ b/docs/examples/kotlin/tablesdb/create-point-column.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.TablesDB @@ -16,3 +17,4 @@ val response = tablesDB.createPointColumn( required = false, default = listOf(1, 2) // optional ) +``` diff --git a/docs/examples/kotlin/tablesdb/create-polygon-column.md b/docs/examples/kotlin/tablesdb/create-polygon-column.md index c4282d1b..e31813fb 100644 --- a/docs/examples/kotlin/tablesdb/create-polygon-column.md +++ b/docs/examples/kotlin/tablesdb/create-polygon-column.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.TablesDB @@ -16,3 +17,4 @@ val response = tablesDB.createPolygonColumn( required = false, default = listOf(listOf(listOf(1, 2), listOf(3, 4), listOf(5, 6), listOf(1, 2))) // optional ) +``` diff --git a/docs/examples/kotlin/tablesdb/create-relationship-column.md b/docs/examples/kotlin/tablesdb/create-relationship-column.md index 7283d05b..b9884fd6 100644 --- a/docs/examples/kotlin/tablesdb/create-relationship-column.md +++ b/docs/examples/kotlin/tablesdb/create-relationship-column.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.TablesDB @@ -21,3 +22,4 @@ val response = tablesDB.createRelationshipColumn( twoWayKey = "", // optional onDelete = RelationMutate.CASCADE // optional ) +``` diff --git a/docs/examples/kotlin/tablesdb/create-row.md b/docs/examples/kotlin/tablesdb/create-row.md index e74c07a1..4cd0dd06 100644 --- a/docs/examples/kotlin/tablesdb/create-row.md +++ b/docs/examples/kotlin/tablesdb/create-row.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.TablesDB @@ -25,3 +26,4 @@ val response = tablesDB.createRow( permissions = listOf(Permission.read(Role.any())), // optional transactionId = "" // optional ) +``` diff --git a/docs/examples/kotlin/tablesdb/create-rows.md b/docs/examples/kotlin/tablesdb/create-rows.md index 8cef6028..5cb02b78 100644 --- a/docs/examples/kotlin/tablesdb/create-rows.md +++ b/docs/examples/kotlin/tablesdb/create-rows.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.TablesDB @@ -15,3 +16,4 @@ val response = tablesDB.createRows( rows = listOf(), transactionId = "" // optional ) +``` diff --git a/docs/examples/kotlin/tablesdb/create-string-column.md b/docs/examples/kotlin/tablesdb/create-string-column.md index 5b5d88db..de14c373 100644 --- a/docs/examples/kotlin/tablesdb/create-string-column.md +++ b/docs/examples/kotlin/tablesdb/create-string-column.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.TablesDB @@ -19,3 +20,4 @@ val response = tablesDB.createStringColumn( array = false, // optional encrypt = false // optional ) +``` diff --git a/docs/examples/kotlin/tablesdb/create-table.md b/docs/examples/kotlin/tablesdb/create-table.md index 81e4830e..cdc00e20 100644 --- a/docs/examples/kotlin/tablesdb/create-table.md +++ b/docs/examples/kotlin/tablesdb/create-table.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.TablesDB @@ -21,3 +22,4 @@ val response = tablesDB.createTable( columns = listOf(), // optional indexes = listOf() // optional ) +``` diff --git a/docs/examples/kotlin/tablesdb/create-text-column.md b/docs/examples/kotlin/tablesdb/create-text-column.md index f85c7c8b..ffdc4070 100644 --- a/docs/examples/kotlin/tablesdb/create-text-column.md +++ b/docs/examples/kotlin/tablesdb/create-text-column.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.TablesDB @@ -17,3 +18,4 @@ val response = tablesDB.createTextColumn( default = "", // optional array = false // optional ) +``` diff --git a/docs/examples/kotlin/tablesdb/create-transaction.md b/docs/examples/kotlin/tablesdb/create-transaction.md index 31385700..c7594185 100644 --- a/docs/examples/kotlin/tablesdb/create-transaction.md +++ b/docs/examples/kotlin/tablesdb/create-transaction.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.TablesDB @@ -12,3 +13,4 @@ val tablesDB = TablesDB(client) val response = tablesDB.createTransaction( ttl = 60 // optional ) +``` diff --git a/docs/examples/kotlin/tablesdb/create-url-column.md b/docs/examples/kotlin/tablesdb/create-url-column.md index a0351e4f..b142ae8d 100644 --- a/docs/examples/kotlin/tablesdb/create-url-column.md +++ b/docs/examples/kotlin/tablesdb/create-url-column.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.TablesDB @@ -17,3 +18,4 @@ val response = tablesDB.createUrlColumn( default = "https://example.com", // optional array = false // optional ) +``` diff --git a/docs/examples/kotlin/tablesdb/create-varchar-column.md b/docs/examples/kotlin/tablesdb/create-varchar-column.md index de884df5..319cb9a0 100644 --- a/docs/examples/kotlin/tablesdb/create-varchar-column.md +++ b/docs/examples/kotlin/tablesdb/create-varchar-column.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.TablesDB @@ -18,3 +19,4 @@ val response = tablesDB.createVarcharColumn( default = "", // optional array = false // optional ) +``` diff --git a/docs/examples/kotlin/tablesdb/create.md b/docs/examples/kotlin/tablesdb/create.md index 4b025b85..622f66e2 100644 --- a/docs/examples/kotlin/tablesdb/create.md +++ b/docs/examples/kotlin/tablesdb/create.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.TablesDB @@ -14,3 +15,4 @@ val response = tablesDB.create( name = "", enabled = false // optional ) +``` diff --git a/docs/examples/kotlin/tablesdb/decrement-row-column.md b/docs/examples/kotlin/tablesdb/decrement-row-column.md index 30a8d54b..d09bdbb1 100644 --- a/docs/examples/kotlin/tablesdb/decrement-row-column.md +++ b/docs/examples/kotlin/tablesdb/decrement-row-column.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.TablesDB @@ -18,3 +19,4 @@ val response = tablesDB.decrementRowColumn( min = 0, // optional transactionId = "" // optional ) +``` diff --git a/docs/examples/kotlin/tablesdb/delete-column.md b/docs/examples/kotlin/tablesdb/delete-column.md index 05d341d1..738d6f78 100644 --- a/docs/examples/kotlin/tablesdb/delete-column.md +++ b/docs/examples/kotlin/tablesdb/delete-column.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.TablesDB @@ -14,3 +15,4 @@ val response = tablesDB.deleteColumn( tableId = "", key = "" ) +``` diff --git a/docs/examples/kotlin/tablesdb/delete-index.md b/docs/examples/kotlin/tablesdb/delete-index.md index b5f2330d..139eaf36 100644 --- a/docs/examples/kotlin/tablesdb/delete-index.md +++ b/docs/examples/kotlin/tablesdb/delete-index.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.TablesDB @@ -14,3 +15,4 @@ val response = tablesDB.deleteIndex( tableId = "", key = "" ) +``` diff --git a/docs/examples/kotlin/tablesdb/delete-row.md b/docs/examples/kotlin/tablesdb/delete-row.md index 6ba7d605..e332db02 100644 --- a/docs/examples/kotlin/tablesdb/delete-row.md +++ b/docs/examples/kotlin/tablesdb/delete-row.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.TablesDB @@ -15,3 +16,4 @@ val response = tablesDB.deleteRow( rowId = "", transactionId = "" // optional ) +``` diff --git a/docs/examples/kotlin/tablesdb/delete-rows.md b/docs/examples/kotlin/tablesdb/delete-rows.md index da2b709f..00cd5abe 100644 --- a/docs/examples/kotlin/tablesdb/delete-rows.md +++ b/docs/examples/kotlin/tablesdb/delete-rows.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.TablesDB @@ -15,3 +16,4 @@ val response = tablesDB.deleteRows( queries = listOf(), // optional transactionId = "" // optional ) +``` diff --git a/docs/examples/kotlin/tablesdb/delete-table.md b/docs/examples/kotlin/tablesdb/delete-table.md index dce8e583..d83d9270 100644 --- a/docs/examples/kotlin/tablesdb/delete-table.md +++ b/docs/examples/kotlin/tablesdb/delete-table.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.TablesDB @@ -13,3 +14,4 @@ val response = tablesDB.deleteTable( databaseId = "", tableId = "" ) +``` diff --git a/docs/examples/kotlin/tablesdb/delete-transaction.md b/docs/examples/kotlin/tablesdb/delete-transaction.md index 2ef1f27a..8e8641bf 100644 --- a/docs/examples/kotlin/tablesdb/delete-transaction.md +++ b/docs/examples/kotlin/tablesdb/delete-transaction.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.TablesDB @@ -12,3 +13,4 @@ val tablesDB = TablesDB(client) val response = tablesDB.deleteTransaction( transactionId = "" ) +``` diff --git a/docs/examples/kotlin/tablesdb/delete.md b/docs/examples/kotlin/tablesdb/delete.md index 3e335fa2..15035253 100644 --- a/docs/examples/kotlin/tablesdb/delete.md +++ b/docs/examples/kotlin/tablesdb/delete.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.TablesDB @@ -12,3 +13,4 @@ val tablesDB = TablesDB(client) val response = tablesDB.delete( databaseId = "" ) +``` diff --git a/docs/examples/kotlin/tablesdb/get-column.md b/docs/examples/kotlin/tablesdb/get-column.md index c4cf24dd..6382da21 100644 --- a/docs/examples/kotlin/tablesdb/get-column.md +++ b/docs/examples/kotlin/tablesdb/get-column.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.TablesDB @@ -14,3 +15,4 @@ val response = tablesDB.getColumn( tableId = "", key = "" ) +``` diff --git a/docs/examples/kotlin/tablesdb/get-index.md b/docs/examples/kotlin/tablesdb/get-index.md index 4db25474..9be2100a 100644 --- a/docs/examples/kotlin/tablesdb/get-index.md +++ b/docs/examples/kotlin/tablesdb/get-index.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.TablesDB @@ -14,3 +15,4 @@ val response = tablesDB.getIndex( tableId = "", key = "" ) +``` diff --git a/docs/examples/kotlin/tablesdb/get-row.md b/docs/examples/kotlin/tablesdb/get-row.md index f92a1ccf..18845e2a 100644 --- a/docs/examples/kotlin/tablesdb/get-row.md +++ b/docs/examples/kotlin/tablesdb/get-row.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.TablesDB @@ -16,3 +17,4 @@ val response = tablesDB.getRow( queries = listOf(), // optional transactionId = "" // optional ) +``` diff --git a/docs/examples/kotlin/tablesdb/get-table.md b/docs/examples/kotlin/tablesdb/get-table.md index 65afae84..6595254a 100644 --- a/docs/examples/kotlin/tablesdb/get-table.md +++ b/docs/examples/kotlin/tablesdb/get-table.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.TablesDB @@ -13,3 +14,4 @@ val response = tablesDB.getTable( databaseId = "", tableId = "" ) +``` diff --git a/docs/examples/kotlin/tablesdb/get-transaction.md b/docs/examples/kotlin/tablesdb/get-transaction.md index f4467dc9..c478eb8e 100644 --- a/docs/examples/kotlin/tablesdb/get-transaction.md +++ b/docs/examples/kotlin/tablesdb/get-transaction.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.TablesDB @@ -12,3 +13,4 @@ val tablesDB = TablesDB(client) val response = tablesDB.getTransaction( transactionId = "" ) +``` diff --git a/docs/examples/kotlin/tablesdb/get.md b/docs/examples/kotlin/tablesdb/get.md index e58da26f..9d9de009 100644 --- a/docs/examples/kotlin/tablesdb/get.md +++ b/docs/examples/kotlin/tablesdb/get.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.TablesDB @@ -12,3 +13,4 @@ val tablesDB = TablesDB(client) val response = tablesDB.get( databaseId = "" ) +``` diff --git a/docs/examples/kotlin/tablesdb/increment-row-column.md b/docs/examples/kotlin/tablesdb/increment-row-column.md index af3676e7..6c37b6b4 100644 --- a/docs/examples/kotlin/tablesdb/increment-row-column.md +++ b/docs/examples/kotlin/tablesdb/increment-row-column.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.TablesDB @@ -18,3 +19,4 @@ val response = tablesDB.incrementRowColumn( max = 0, // optional transactionId = "" // optional ) +``` diff --git a/docs/examples/kotlin/tablesdb/list-columns.md b/docs/examples/kotlin/tablesdb/list-columns.md index 663da3cb..78677374 100644 --- a/docs/examples/kotlin/tablesdb/list-columns.md +++ b/docs/examples/kotlin/tablesdb/list-columns.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.TablesDB @@ -15,3 +16,4 @@ val response = tablesDB.listColumns( queries = listOf(), // optional total = false // optional ) +``` diff --git a/docs/examples/kotlin/tablesdb/list-indexes.md b/docs/examples/kotlin/tablesdb/list-indexes.md index 59a64a40..edd5cbd2 100644 --- a/docs/examples/kotlin/tablesdb/list-indexes.md +++ b/docs/examples/kotlin/tablesdb/list-indexes.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.TablesDB @@ -15,3 +16,4 @@ val response = tablesDB.listIndexes( queries = listOf(), // optional total = false // optional ) +``` diff --git a/docs/examples/kotlin/tablesdb/list-rows.md b/docs/examples/kotlin/tablesdb/list-rows.md index ba6e1fe2..1f50588b 100644 --- a/docs/examples/kotlin/tablesdb/list-rows.md +++ b/docs/examples/kotlin/tablesdb/list-rows.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.TablesDB @@ -16,3 +17,4 @@ val response = tablesDB.listRows( transactionId = "", // optional total = false // optional ) +``` diff --git a/docs/examples/kotlin/tablesdb/list-tables.md b/docs/examples/kotlin/tablesdb/list-tables.md index c504d732..a60bbfe9 100644 --- a/docs/examples/kotlin/tablesdb/list-tables.md +++ b/docs/examples/kotlin/tablesdb/list-tables.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.TablesDB @@ -15,3 +16,4 @@ val response = tablesDB.listTables( search = "", // optional total = false // optional ) +``` diff --git a/docs/examples/kotlin/tablesdb/list-transactions.md b/docs/examples/kotlin/tablesdb/list-transactions.md index a060b9fa..52ebbefb 100644 --- a/docs/examples/kotlin/tablesdb/list-transactions.md +++ b/docs/examples/kotlin/tablesdb/list-transactions.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.TablesDB @@ -12,3 +13,4 @@ val tablesDB = TablesDB(client) val response = tablesDB.listTransactions( queries = listOf() // optional ) +``` diff --git a/docs/examples/kotlin/tablesdb/list.md b/docs/examples/kotlin/tablesdb/list.md index 942880cd..a5b2d103 100644 --- a/docs/examples/kotlin/tablesdb/list.md +++ b/docs/examples/kotlin/tablesdb/list.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.TablesDB @@ -14,3 +15,4 @@ val response = tablesDB.list( search = "", // optional total = false // optional ) +``` diff --git a/docs/examples/kotlin/tablesdb/update-boolean-column.md b/docs/examples/kotlin/tablesdb/update-boolean-column.md index 43ab43bf..1e8532ac 100644 --- a/docs/examples/kotlin/tablesdb/update-boolean-column.md +++ b/docs/examples/kotlin/tablesdb/update-boolean-column.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.TablesDB @@ -17,3 +18,4 @@ val response = tablesDB.updateBooleanColumn( default = false, newKey = "" // optional ) +``` diff --git a/docs/examples/kotlin/tablesdb/update-datetime-column.md b/docs/examples/kotlin/tablesdb/update-datetime-column.md index 077cff71..4bdb389e 100644 --- a/docs/examples/kotlin/tablesdb/update-datetime-column.md +++ b/docs/examples/kotlin/tablesdb/update-datetime-column.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.TablesDB @@ -17,3 +18,4 @@ val response = tablesDB.updateDatetimeColumn( default = "", newKey = "" // optional ) +``` diff --git a/docs/examples/kotlin/tablesdb/update-email-column.md b/docs/examples/kotlin/tablesdb/update-email-column.md index 5becaa68..5285000a 100644 --- a/docs/examples/kotlin/tablesdb/update-email-column.md +++ b/docs/examples/kotlin/tablesdb/update-email-column.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.TablesDB @@ -17,3 +18,4 @@ val response = tablesDB.updateEmailColumn( default = "email@example.com", newKey = "" // optional ) +``` diff --git a/docs/examples/kotlin/tablesdb/update-enum-column.md b/docs/examples/kotlin/tablesdb/update-enum-column.md index 4351703e..a1240662 100644 --- a/docs/examples/kotlin/tablesdb/update-enum-column.md +++ b/docs/examples/kotlin/tablesdb/update-enum-column.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.TablesDB @@ -18,3 +19,4 @@ val response = tablesDB.updateEnumColumn( default = "", newKey = "" // optional ) +``` diff --git a/docs/examples/kotlin/tablesdb/update-float-column.md b/docs/examples/kotlin/tablesdb/update-float-column.md index 6d40c3f3..6dc50660 100644 --- a/docs/examples/kotlin/tablesdb/update-float-column.md +++ b/docs/examples/kotlin/tablesdb/update-float-column.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.TablesDB @@ -19,3 +20,4 @@ val response = tablesDB.updateFloatColumn( max = 0, // optional newKey = "" // optional ) +``` diff --git a/docs/examples/kotlin/tablesdb/update-integer-column.md b/docs/examples/kotlin/tablesdb/update-integer-column.md index 9d6bfaa6..746107f0 100644 --- a/docs/examples/kotlin/tablesdb/update-integer-column.md +++ b/docs/examples/kotlin/tablesdb/update-integer-column.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.TablesDB @@ -19,3 +20,4 @@ val response = tablesDB.updateIntegerColumn( max = 0, // optional newKey = "" // optional ) +``` diff --git a/docs/examples/kotlin/tablesdb/update-ip-column.md b/docs/examples/kotlin/tablesdb/update-ip-column.md index fd04b98a..62a86fcb 100644 --- a/docs/examples/kotlin/tablesdb/update-ip-column.md +++ b/docs/examples/kotlin/tablesdb/update-ip-column.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.TablesDB @@ -17,3 +18,4 @@ val response = tablesDB.updateIpColumn( default = "", newKey = "" // optional ) +``` diff --git a/docs/examples/kotlin/tablesdb/update-line-column.md b/docs/examples/kotlin/tablesdb/update-line-column.md index 4b975c0e..adb1de98 100644 --- a/docs/examples/kotlin/tablesdb/update-line-column.md +++ b/docs/examples/kotlin/tablesdb/update-line-column.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.TablesDB @@ -17,3 +18,4 @@ val response = tablesDB.updateLineColumn( default = listOf(listOf(1, 2), listOf(3, 4), listOf(5, 6)), // optional newKey = "" // optional ) +``` diff --git a/docs/examples/kotlin/tablesdb/update-longtext-column.md b/docs/examples/kotlin/tablesdb/update-longtext-column.md index 8a4794f7..e4f89c33 100644 --- a/docs/examples/kotlin/tablesdb/update-longtext-column.md +++ b/docs/examples/kotlin/tablesdb/update-longtext-column.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.TablesDB @@ -17,3 +18,4 @@ val response = tablesDB.updateLongtextColumn( default = "", newKey = "" // optional ) +``` diff --git a/docs/examples/kotlin/tablesdb/update-mediumtext-column.md b/docs/examples/kotlin/tablesdb/update-mediumtext-column.md index 1eb2b461..3fb82c70 100644 --- a/docs/examples/kotlin/tablesdb/update-mediumtext-column.md +++ b/docs/examples/kotlin/tablesdb/update-mediumtext-column.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.TablesDB @@ -17,3 +18,4 @@ val response = tablesDB.updateMediumtextColumn( default = "", newKey = "" // optional ) +``` diff --git a/docs/examples/kotlin/tablesdb/update-point-column.md b/docs/examples/kotlin/tablesdb/update-point-column.md index 2230e59f..1374e0cb 100644 --- a/docs/examples/kotlin/tablesdb/update-point-column.md +++ b/docs/examples/kotlin/tablesdb/update-point-column.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.TablesDB @@ -17,3 +18,4 @@ val response = tablesDB.updatePointColumn( default = listOf(1, 2), // optional newKey = "" // optional ) +``` diff --git a/docs/examples/kotlin/tablesdb/update-polygon-column.md b/docs/examples/kotlin/tablesdb/update-polygon-column.md index 40428471..534897a2 100644 --- a/docs/examples/kotlin/tablesdb/update-polygon-column.md +++ b/docs/examples/kotlin/tablesdb/update-polygon-column.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.TablesDB @@ -17,3 +18,4 @@ val response = tablesDB.updatePolygonColumn( default = listOf(listOf(listOf(1, 2), listOf(3, 4), listOf(5, 6), listOf(1, 2))), // optional newKey = "" // optional ) +``` diff --git a/docs/examples/kotlin/tablesdb/update-relationship-column.md b/docs/examples/kotlin/tablesdb/update-relationship-column.md index de623e76..590261e3 100644 --- a/docs/examples/kotlin/tablesdb/update-relationship-column.md +++ b/docs/examples/kotlin/tablesdb/update-relationship-column.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.TablesDB @@ -17,3 +18,4 @@ val response = tablesDB.updateRelationshipColumn( onDelete = RelationMutate.CASCADE, // optional newKey = "" // optional ) +``` diff --git a/docs/examples/kotlin/tablesdb/update-row.md b/docs/examples/kotlin/tablesdb/update-row.md index 19460e9b..1ef35535 100644 --- a/docs/examples/kotlin/tablesdb/update-row.md +++ b/docs/examples/kotlin/tablesdb/update-row.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.TablesDB @@ -25,3 +26,4 @@ val response = tablesDB.updateRow( permissions = listOf(Permission.read(Role.any())), // optional transactionId = "" // optional ) +``` diff --git a/docs/examples/kotlin/tablesdb/update-rows.md b/docs/examples/kotlin/tablesdb/update-rows.md index f1ced7b1..89eba7df 100644 --- a/docs/examples/kotlin/tablesdb/update-rows.md +++ b/docs/examples/kotlin/tablesdb/update-rows.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.TablesDB @@ -22,3 +23,4 @@ val response = tablesDB.updateRows( queries = listOf(), // optional transactionId = "" // optional ) +``` diff --git a/docs/examples/kotlin/tablesdb/update-string-column.md b/docs/examples/kotlin/tablesdb/update-string-column.md index acdd3ad5..da44be7c 100644 --- a/docs/examples/kotlin/tablesdb/update-string-column.md +++ b/docs/examples/kotlin/tablesdb/update-string-column.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.TablesDB @@ -18,3 +19,4 @@ val response = tablesDB.updateStringColumn( size = 1, // optional newKey = "" // optional ) +``` diff --git a/docs/examples/kotlin/tablesdb/update-table.md b/docs/examples/kotlin/tablesdb/update-table.md index 5c0af5cd..994332d4 100644 --- a/docs/examples/kotlin/tablesdb/update-table.md +++ b/docs/examples/kotlin/tablesdb/update-table.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.TablesDB @@ -19,3 +20,4 @@ val response = tablesDB.updateTable( rowSecurity = false, // optional enabled = false // optional ) +``` diff --git a/docs/examples/kotlin/tablesdb/update-text-column.md b/docs/examples/kotlin/tablesdb/update-text-column.md index 4949bea8..95262cad 100644 --- a/docs/examples/kotlin/tablesdb/update-text-column.md +++ b/docs/examples/kotlin/tablesdb/update-text-column.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.TablesDB @@ -17,3 +18,4 @@ val response = tablesDB.updateTextColumn( default = "", newKey = "" // optional ) +``` diff --git a/docs/examples/kotlin/tablesdb/update-transaction.md b/docs/examples/kotlin/tablesdb/update-transaction.md index a3797ca5..1e452f4b 100644 --- a/docs/examples/kotlin/tablesdb/update-transaction.md +++ b/docs/examples/kotlin/tablesdb/update-transaction.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.TablesDB @@ -14,3 +15,4 @@ val response = tablesDB.updateTransaction( commit = false, // optional rollback = false // optional ) +``` diff --git a/docs/examples/kotlin/tablesdb/update-url-column.md b/docs/examples/kotlin/tablesdb/update-url-column.md index fbe68c9a..885ef717 100644 --- a/docs/examples/kotlin/tablesdb/update-url-column.md +++ b/docs/examples/kotlin/tablesdb/update-url-column.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.TablesDB @@ -17,3 +18,4 @@ val response = tablesDB.updateUrlColumn( default = "https://example.com", newKey = "" // optional ) +``` diff --git a/docs/examples/kotlin/tablesdb/update-varchar-column.md b/docs/examples/kotlin/tablesdb/update-varchar-column.md index c563455b..c190bb98 100644 --- a/docs/examples/kotlin/tablesdb/update-varchar-column.md +++ b/docs/examples/kotlin/tablesdb/update-varchar-column.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.TablesDB @@ -18,3 +19,4 @@ val response = tablesDB.updateVarcharColumn( size = 1, // optional newKey = "" // optional ) +``` diff --git a/docs/examples/kotlin/tablesdb/update.md b/docs/examples/kotlin/tablesdb/update.md index 44c83a02..becb2b9f 100644 --- a/docs/examples/kotlin/tablesdb/update.md +++ b/docs/examples/kotlin/tablesdb/update.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.TablesDB @@ -14,3 +15,4 @@ val response = tablesDB.update( name = "", // optional enabled = false // optional ) +``` diff --git a/docs/examples/kotlin/tablesdb/upsert-row.md b/docs/examples/kotlin/tablesdb/upsert-row.md index dc067352..7ae1397e 100644 --- a/docs/examples/kotlin/tablesdb/upsert-row.md +++ b/docs/examples/kotlin/tablesdb/upsert-row.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.TablesDB @@ -25,3 +26,4 @@ val response = tablesDB.upsertRow( permissions = listOf(Permission.read(Role.any())), // optional transactionId = "" // optional ) +``` diff --git a/docs/examples/kotlin/tablesdb/upsert-rows.md b/docs/examples/kotlin/tablesdb/upsert-rows.md index 2f08375c..5ee9beb6 100644 --- a/docs/examples/kotlin/tablesdb/upsert-rows.md +++ b/docs/examples/kotlin/tablesdb/upsert-rows.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.TablesDB @@ -15,3 +16,4 @@ val response = tablesDB.upsertRows( rows = listOf(), transactionId = "" // optional ) +``` diff --git a/docs/examples/kotlin/teams/create-membership.md b/docs/examples/kotlin/teams/create-membership.md index dc18f049..8a27e6ea 100644 --- a/docs/examples/kotlin/teams/create-membership.md +++ b/docs/examples/kotlin/teams/create-membership.md @@ -1,7 +1,7 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Teams -import io.appwrite.enums.Roles val client = Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint @@ -12,10 +12,11 @@ val teams = Teams(client) val response = teams.createMembership( teamId = "", - roles = listOf(Roles.ADMIN), + roles = listOf(), email = "email@example.com", // optional userId = "", // optional phone = "+12065550100", // optional url = "https://example.com", // optional name = "" // optional ) +``` diff --git a/docs/examples/kotlin/teams/create.md b/docs/examples/kotlin/teams/create.md index 6ec7e533..f14fb19d 100644 --- a/docs/examples/kotlin/teams/create.md +++ b/docs/examples/kotlin/teams/create.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Teams @@ -14,3 +15,4 @@ val response = teams.create( name = "", roles = listOf() // optional ) +``` diff --git a/docs/examples/kotlin/teams/delete-membership.md b/docs/examples/kotlin/teams/delete-membership.md index 48c924f3..1291b5dd 100644 --- a/docs/examples/kotlin/teams/delete-membership.md +++ b/docs/examples/kotlin/teams/delete-membership.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Teams @@ -13,3 +14,4 @@ val response = teams.deleteMembership( teamId = "", membershipId = "" ) +``` diff --git a/docs/examples/kotlin/teams/delete.md b/docs/examples/kotlin/teams/delete.md index 4b70ff2f..d6b5389d 100644 --- a/docs/examples/kotlin/teams/delete.md +++ b/docs/examples/kotlin/teams/delete.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Teams @@ -12,3 +13,4 @@ val teams = Teams(client) val response = teams.delete( teamId = "" ) +``` diff --git a/docs/examples/kotlin/teams/get-membership.md b/docs/examples/kotlin/teams/get-membership.md index a636c217..e35179ee 100644 --- a/docs/examples/kotlin/teams/get-membership.md +++ b/docs/examples/kotlin/teams/get-membership.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Teams @@ -13,3 +14,4 @@ val response = teams.getMembership( teamId = "", membershipId = "" ) +``` diff --git a/docs/examples/kotlin/teams/get-prefs.md b/docs/examples/kotlin/teams/get-prefs.md index 2b73432d..615a59d0 100644 --- a/docs/examples/kotlin/teams/get-prefs.md +++ b/docs/examples/kotlin/teams/get-prefs.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Teams @@ -12,3 +13,4 @@ val teams = Teams(client) val response = teams.getPrefs( teamId = "" ) +``` diff --git a/docs/examples/kotlin/teams/get.md b/docs/examples/kotlin/teams/get.md index 72b66777..d5dc888a 100644 --- a/docs/examples/kotlin/teams/get.md +++ b/docs/examples/kotlin/teams/get.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Teams @@ -12,3 +13,4 @@ val teams = Teams(client) val response = teams.get( teamId = "" ) +``` diff --git a/docs/examples/kotlin/teams/list-memberships.md b/docs/examples/kotlin/teams/list-memberships.md index edcbd0d0..762336d1 100644 --- a/docs/examples/kotlin/teams/list-memberships.md +++ b/docs/examples/kotlin/teams/list-memberships.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Teams @@ -15,3 +16,4 @@ val response = teams.listMemberships( search = "", // optional total = false // optional ) +``` diff --git a/docs/examples/kotlin/teams/list.md b/docs/examples/kotlin/teams/list.md index 591efa4f..bcb4c83a 100644 --- a/docs/examples/kotlin/teams/list.md +++ b/docs/examples/kotlin/teams/list.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Teams @@ -14,3 +15,4 @@ val response = teams.list( search = "", // optional total = false // optional ) +``` diff --git a/docs/examples/kotlin/teams/update-membership-status.md b/docs/examples/kotlin/teams/update-membership-status.md index b7a0d51e..082004b8 100644 --- a/docs/examples/kotlin/teams/update-membership-status.md +++ b/docs/examples/kotlin/teams/update-membership-status.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Teams @@ -15,3 +16,4 @@ val response = teams.updateMembershipStatus( userId = "", secret = "" ) +``` diff --git a/docs/examples/kotlin/teams/update-membership.md b/docs/examples/kotlin/teams/update-membership.md index 5e5de79e..51e01d69 100644 --- a/docs/examples/kotlin/teams/update-membership.md +++ b/docs/examples/kotlin/teams/update-membership.md @@ -1,7 +1,7 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Teams -import io.appwrite.enums.Roles val client = Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint @@ -13,5 +13,6 @@ val teams = Teams(client) val response = teams.updateMembership( teamId = "", membershipId = "", - roles = listOf(Roles.ADMIN) + roles = listOf() ) +``` diff --git a/docs/examples/kotlin/teams/update-name.md b/docs/examples/kotlin/teams/update-name.md index 2f13d7c4..229bea6c 100644 --- a/docs/examples/kotlin/teams/update-name.md +++ b/docs/examples/kotlin/teams/update-name.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Teams @@ -13,3 +14,4 @@ val response = teams.updateName( teamId = "", name = "" ) +``` diff --git a/docs/examples/kotlin/teams/update-prefs.md b/docs/examples/kotlin/teams/update-prefs.md index 62c7f01c..d9e68fa2 100644 --- a/docs/examples/kotlin/teams/update-prefs.md +++ b/docs/examples/kotlin/teams/update-prefs.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Teams @@ -13,3 +14,4 @@ val response = teams.updatePrefs( teamId = "", prefs = mapOf( "a" to "b" ) ) +``` diff --git a/docs/examples/kotlin/tokens/create-file-token.md b/docs/examples/kotlin/tokens/create-file-token.md index 63d8fc30..9ae5fdac 100644 --- a/docs/examples/kotlin/tokens/create-file-token.md +++ b/docs/examples/kotlin/tokens/create-file-token.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Tokens @@ -14,3 +15,4 @@ val response = tokens.createFileToken( fileId = "", expire = "" // optional ) +``` diff --git a/docs/examples/kotlin/tokens/delete.md b/docs/examples/kotlin/tokens/delete.md index 1831bc6a..25e4b19f 100644 --- a/docs/examples/kotlin/tokens/delete.md +++ b/docs/examples/kotlin/tokens/delete.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Tokens @@ -12,3 +13,4 @@ val tokens = Tokens(client) val response = tokens.delete( tokenId = "" ) +``` diff --git a/docs/examples/kotlin/tokens/get.md b/docs/examples/kotlin/tokens/get.md index 70a47c23..80303098 100644 --- a/docs/examples/kotlin/tokens/get.md +++ b/docs/examples/kotlin/tokens/get.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Tokens @@ -12,3 +13,4 @@ val tokens = Tokens(client) val response = tokens.get( tokenId = "" ) +``` diff --git a/docs/examples/kotlin/tokens/list.md b/docs/examples/kotlin/tokens/list.md index 01f369de..39ffb761 100644 --- a/docs/examples/kotlin/tokens/list.md +++ b/docs/examples/kotlin/tokens/list.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Tokens @@ -15,3 +16,4 @@ val response = tokens.list( queries = listOf(), // optional total = false // optional ) +``` diff --git a/docs/examples/kotlin/tokens/update.md b/docs/examples/kotlin/tokens/update.md index 045ddaae..fd02899d 100644 --- a/docs/examples/kotlin/tokens/update.md +++ b/docs/examples/kotlin/tokens/update.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Tokens @@ -13,3 +14,4 @@ val response = tokens.update( tokenId = "", expire = "" // optional ) +``` diff --git a/docs/examples/kotlin/users/create-argon-2-user.md b/docs/examples/kotlin/users/create-argon-2-user.md index 27008a04..ba0c2d0c 100644 --- a/docs/examples/kotlin/users/create-argon-2-user.md +++ b/docs/examples/kotlin/users/create-argon-2-user.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users @@ -15,3 +16,4 @@ val response = users.createArgon2User( password = "password", name = "" // optional ) +``` diff --git a/docs/examples/kotlin/users/create-bcrypt-user.md b/docs/examples/kotlin/users/create-bcrypt-user.md index c7231307..3a563f72 100644 --- a/docs/examples/kotlin/users/create-bcrypt-user.md +++ b/docs/examples/kotlin/users/create-bcrypt-user.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users @@ -15,3 +16,4 @@ val response = users.createBcryptUser( password = "password", name = "" // optional ) +``` diff --git a/docs/examples/kotlin/users/create-jwt.md b/docs/examples/kotlin/users/create-jwt.md index a556a901..34cc8392 100644 --- a/docs/examples/kotlin/users/create-jwt.md +++ b/docs/examples/kotlin/users/create-jwt.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users @@ -14,3 +15,4 @@ val response = users.createJWT( sessionId = "", // optional duration = 0 // optional ) +``` diff --git a/docs/examples/kotlin/users/create-md-5-user.md b/docs/examples/kotlin/users/create-md-5-user.md index 27b98592..04e30b45 100644 --- a/docs/examples/kotlin/users/create-md-5-user.md +++ b/docs/examples/kotlin/users/create-md-5-user.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users @@ -15,3 +16,4 @@ val response = users.createMD5User( password = "password", name = "" // optional ) +``` diff --git a/docs/examples/kotlin/users/create-mfa-recovery-codes.md b/docs/examples/kotlin/users/create-mfa-recovery-codes.md index 7a0b1c61..385bb2ca 100644 --- a/docs/examples/kotlin/users/create-mfa-recovery-codes.md +++ b/docs/examples/kotlin/users/create-mfa-recovery-codes.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users @@ -12,3 +13,4 @@ val users = Users(client) val response = users.createMFARecoveryCodes( userId = "" ) +``` diff --git a/docs/examples/kotlin/users/create-ph-pass-user.md b/docs/examples/kotlin/users/create-ph-pass-user.md index 5441e49e..a62814db 100644 --- a/docs/examples/kotlin/users/create-ph-pass-user.md +++ b/docs/examples/kotlin/users/create-ph-pass-user.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users @@ -15,3 +16,4 @@ val response = users.createPHPassUser( password = "password", name = "" // optional ) +``` diff --git a/docs/examples/kotlin/users/create-scrypt-modified-user.md b/docs/examples/kotlin/users/create-scrypt-modified-user.md index 814883ca..0b5fb50d 100644 --- a/docs/examples/kotlin/users/create-scrypt-modified-user.md +++ b/docs/examples/kotlin/users/create-scrypt-modified-user.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users @@ -18,3 +19,4 @@ val response = users.createScryptModifiedUser( passwordSignerKey = "", name = "" // optional ) +``` diff --git a/docs/examples/kotlin/users/create-scrypt-user.md b/docs/examples/kotlin/users/create-scrypt-user.md index 619525a7..191ea268 100644 --- a/docs/examples/kotlin/users/create-scrypt-user.md +++ b/docs/examples/kotlin/users/create-scrypt-user.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users @@ -20,3 +21,4 @@ val response = users.createScryptUser( passwordLength = 0, name = "" // optional ) +``` diff --git a/docs/examples/kotlin/users/create-session.md b/docs/examples/kotlin/users/create-session.md index a67e6051..9379a010 100644 --- a/docs/examples/kotlin/users/create-session.md +++ b/docs/examples/kotlin/users/create-session.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users @@ -12,3 +13,4 @@ val users = Users(client) val response = users.createSession( userId = "" ) +``` diff --git a/docs/examples/kotlin/users/create-sha-user.md b/docs/examples/kotlin/users/create-sha-user.md index 61458a41..91566c8c 100644 --- a/docs/examples/kotlin/users/create-sha-user.md +++ b/docs/examples/kotlin/users/create-sha-user.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users @@ -17,3 +18,4 @@ val response = users.createSHAUser( passwordVersion = PasswordHash.SHA1, // optional name = "" // optional ) +``` diff --git a/docs/examples/kotlin/users/create-target.md b/docs/examples/kotlin/users/create-target.md index d28190c5..774120d5 100644 --- a/docs/examples/kotlin/users/create-target.md +++ b/docs/examples/kotlin/users/create-target.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users @@ -18,3 +19,4 @@ val response = users.createTarget( providerId = "", // optional name = "" // optional ) +``` diff --git a/docs/examples/kotlin/users/create-token.md b/docs/examples/kotlin/users/create-token.md index 43492f47..fedd9392 100644 --- a/docs/examples/kotlin/users/create-token.md +++ b/docs/examples/kotlin/users/create-token.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users @@ -14,3 +15,4 @@ val response = users.createToken( length = 4, // optional expire = 60 // optional ) +``` diff --git a/docs/examples/kotlin/users/create.md b/docs/examples/kotlin/users/create.md index 27ae85ae..09d28623 100644 --- a/docs/examples/kotlin/users/create.md +++ b/docs/examples/kotlin/users/create.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users @@ -16,3 +17,4 @@ val response = users.create( password = "", // optional name = "" // optional ) +``` diff --git a/docs/examples/kotlin/users/delete-identity.md b/docs/examples/kotlin/users/delete-identity.md index 37b4ed2e..1953d4ef 100644 --- a/docs/examples/kotlin/users/delete-identity.md +++ b/docs/examples/kotlin/users/delete-identity.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users @@ -12,3 +13,4 @@ val users = Users(client) val response = users.deleteIdentity( identityId = "" ) +``` diff --git a/docs/examples/kotlin/users/delete-mfa-authenticator.md b/docs/examples/kotlin/users/delete-mfa-authenticator.md index cd8a5e9d..a8add415 100644 --- a/docs/examples/kotlin/users/delete-mfa-authenticator.md +++ b/docs/examples/kotlin/users/delete-mfa-authenticator.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users @@ -14,3 +15,4 @@ val response = users.deleteMFAAuthenticator( userId = "", type = AuthenticatorType.TOTP ) +``` diff --git a/docs/examples/kotlin/users/delete-session.md b/docs/examples/kotlin/users/delete-session.md index e9e3c7c5..4d17c24a 100644 --- a/docs/examples/kotlin/users/delete-session.md +++ b/docs/examples/kotlin/users/delete-session.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users @@ -13,3 +14,4 @@ val response = users.deleteSession( userId = "", sessionId = "" ) +``` diff --git a/docs/examples/kotlin/users/delete-sessions.md b/docs/examples/kotlin/users/delete-sessions.md index 6288e1bc..843285f7 100644 --- a/docs/examples/kotlin/users/delete-sessions.md +++ b/docs/examples/kotlin/users/delete-sessions.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users @@ -12,3 +13,4 @@ val users = Users(client) val response = users.deleteSessions( userId = "" ) +``` diff --git a/docs/examples/kotlin/users/delete-target.md b/docs/examples/kotlin/users/delete-target.md index f93be067..650678a9 100644 --- a/docs/examples/kotlin/users/delete-target.md +++ b/docs/examples/kotlin/users/delete-target.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users @@ -13,3 +14,4 @@ val response = users.deleteTarget( userId = "", targetId = "" ) +``` diff --git a/docs/examples/kotlin/users/delete.md b/docs/examples/kotlin/users/delete.md index b938ac70..088727d0 100644 --- a/docs/examples/kotlin/users/delete.md +++ b/docs/examples/kotlin/users/delete.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users @@ -12,3 +13,4 @@ val users = Users(client) val response = users.delete( userId = "" ) +``` diff --git a/docs/examples/kotlin/users/get-mfa-recovery-codes.md b/docs/examples/kotlin/users/get-mfa-recovery-codes.md index 1ad91975..1215a91b 100644 --- a/docs/examples/kotlin/users/get-mfa-recovery-codes.md +++ b/docs/examples/kotlin/users/get-mfa-recovery-codes.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users @@ -12,3 +13,4 @@ val users = Users(client) val response = users.getMFARecoveryCodes( userId = "" ) +``` diff --git a/docs/examples/kotlin/users/get-prefs.md b/docs/examples/kotlin/users/get-prefs.md index 927a4a43..896c8708 100644 --- a/docs/examples/kotlin/users/get-prefs.md +++ b/docs/examples/kotlin/users/get-prefs.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users @@ -12,3 +13,4 @@ val users = Users(client) val response = users.getPrefs( userId = "" ) +``` diff --git a/docs/examples/kotlin/users/get-target.md b/docs/examples/kotlin/users/get-target.md index 556349c6..94e19177 100644 --- a/docs/examples/kotlin/users/get-target.md +++ b/docs/examples/kotlin/users/get-target.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users @@ -13,3 +14,4 @@ val response = users.getTarget( userId = "", targetId = "" ) +``` diff --git a/docs/examples/kotlin/users/get.md b/docs/examples/kotlin/users/get.md index 70f0ee9d..9d24b983 100644 --- a/docs/examples/kotlin/users/get.md +++ b/docs/examples/kotlin/users/get.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users @@ -12,3 +13,4 @@ val users = Users(client) val response = users.get( userId = "" ) +``` diff --git a/docs/examples/kotlin/users/list-identities.md b/docs/examples/kotlin/users/list-identities.md index f7cc447e..e745da3d 100644 --- a/docs/examples/kotlin/users/list-identities.md +++ b/docs/examples/kotlin/users/list-identities.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users @@ -14,3 +15,4 @@ val response = users.listIdentities( search = "", // optional total = false // optional ) +``` diff --git a/docs/examples/kotlin/users/list-logs.md b/docs/examples/kotlin/users/list-logs.md index 3e8bfa3f..070c96d0 100644 --- a/docs/examples/kotlin/users/list-logs.md +++ b/docs/examples/kotlin/users/list-logs.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users @@ -14,3 +15,4 @@ val response = users.listLogs( queries = listOf(), // optional total = false // optional ) +``` diff --git a/docs/examples/kotlin/users/list-memberships.md b/docs/examples/kotlin/users/list-memberships.md index b2f87b37..3d001fde 100644 --- a/docs/examples/kotlin/users/list-memberships.md +++ b/docs/examples/kotlin/users/list-memberships.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users @@ -15,3 +16,4 @@ val response = users.listMemberships( search = "", // optional total = false // optional ) +``` diff --git a/docs/examples/kotlin/users/list-mfa-factors.md b/docs/examples/kotlin/users/list-mfa-factors.md index 9d0791cf..ee17cc09 100644 --- a/docs/examples/kotlin/users/list-mfa-factors.md +++ b/docs/examples/kotlin/users/list-mfa-factors.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users @@ -12,3 +13,4 @@ val users = Users(client) val response = users.listMFAFactors( userId = "" ) +``` diff --git a/docs/examples/kotlin/users/list-sessions.md b/docs/examples/kotlin/users/list-sessions.md index 9231c01e..05d00247 100644 --- a/docs/examples/kotlin/users/list-sessions.md +++ b/docs/examples/kotlin/users/list-sessions.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users @@ -13,3 +14,4 @@ val response = users.listSessions( userId = "", total = false // optional ) +``` diff --git a/docs/examples/kotlin/users/list-targets.md b/docs/examples/kotlin/users/list-targets.md index 133161fe..bb026ed8 100644 --- a/docs/examples/kotlin/users/list-targets.md +++ b/docs/examples/kotlin/users/list-targets.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users @@ -14,3 +15,4 @@ val response = users.listTargets( queries = listOf(), // optional total = false // optional ) +``` diff --git a/docs/examples/kotlin/users/list.md b/docs/examples/kotlin/users/list.md index a2a7b6e8..4cc3195f 100644 --- a/docs/examples/kotlin/users/list.md +++ b/docs/examples/kotlin/users/list.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users @@ -14,3 +15,4 @@ val response = users.list( search = "", // optional total = false // optional ) +``` diff --git a/docs/examples/kotlin/users/update-email-verification.md b/docs/examples/kotlin/users/update-email-verification.md index ebf2232f..f30e4015 100644 --- a/docs/examples/kotlin/users/update-email-verification.md +++ b/docs/examples/kotlin/users/update-email-verification.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users @@ -13,3 +14,4 @@ val response = users.updateEmailVerification( userId = "", emailVerification = false ) +``` diff --git a/docs/examples/kotlin/users/update-email.md b/docs/examples/kotlin/users/update-email.md index a617705d..7642a957 100644 --- a/docs/examples/kotlin/users/update-email.md +++ b/docs/examples/kotlin/users/update-email.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users @@ -13,3 +14,4 @@ val response = users.updateEmail( userId = "", email = "email@example.com" ) +``` diff --git a/docs/examples/kotlin/users/update-labels.md b/docs/examples/kotlin/users/update-labels.md index 86f536f7..3d88c7af 100644 --- a/docs/examples/kotlin/users/update-labels.md +++ b/docs/examples/kotlin/users/update-labels.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users @@ -13,3 +14,4 @@ val response = users.updateLabels( userId = "", labels = listOf() ) +``` diff --git a/docs/examples/kotlin/users/update-mfa-recovery-codes.md b/docs/examples/kotlin/users/update-mfa-recovery-codes.md index 80b92b45..642f1525 100644 --- a/docs/examples/kotlin/users/update-mfa-recovery-codes.md +++ b/docs/examples/kotlin/users/update-mfa-recovery-codes.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users @@ -12,3 +13,4 @@ val users = Users(client) val response = users.updateMFARecoveryCodes( userId = "" ) +``` diff --git a/docs/examples/kotlin/users/update-mfa.md b/docs/examples/kotlin/users/update-mfa.md index d2f448e0..1cde68ad 100644 --- a/docs/examples/kotlin/users/update-mfa.md +++ b/docs/examples/kotlin/users/update-mfa.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users @@ -13,3 +14,4 @@ val response = users.updateMFA( userId = "", mfa = false ) +``` diff --git a/docs/examples/kotlin/users/update-name.md b/docs/examples/kotlin/users/update-name.md index fedfce36..beb53d55 100644 --- a/docs/examples/kotlin/users/update-name.md +++ b/docs/examples/kotlin/users/update-name.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users @@ -13,3 +14,4 @@ val response = users.updateName( userId = "", name = "" ) +``` diff --git a/docs/examples/kotlin/users/update-password.md b/docs/examples/kotlin/users/update-password.md index 4a0ad576..5930f5eb 100644 --- a/docs/examples/kotlin/users/update-password.md +++ b/docs/examples/kotlin/users/update-password.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users @@ -13,3 +14,4 @@ val response = users.updatePassword( userId = "", password = "" ) +``` diff --git a/docs/examples/kotlin/users/update-phone-verification.md b/docs/examples/kotlin/users/update-phone-verification.md index 6520ef4c..f574b262 100644 --- a/docs/examples/kotlin/users/update-phone-verification.md +++ b/docs/examples/kotlin/users/update-phone-verification.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users @@ -13,3 +14,4 @@ val response = users.updatePhoneVerification( userId = "", phoneVerification = false ) +``` diff --git a/docs/examples/kotlin/users/update-phone.md b/docs/examples/kotlin/users/update-phone.md index 7261f95d..855a459d 100644 --- a/docs/examples/kotlin/users/update-phone.md +++ b/docs/examples/kotlin/users/update-phone.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users @@ -13,3 +14,4 @@ val response = users.updatePhone( userId = "", number = "+12065550100" ) +``` diff --git a/docs/examples/kotlin/users/update-prefs.md b/docs/examples/kotlin/users/update-prefs.md index 451f4ff4..8d610eb6 100644 --- a/docs/examples/kotlin/users/update-prefs.md +++ b/docs/examples/kotlin/users/update-prefs.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users @@ -13,3 +14,4 @@ val response = users.updatePrefs( userId = "", prefs = mapOf( "a" to "b" ) ) +``` diff --git a/docs/examples/kotlin/users/update-status.md b/docs/examples/kotlin/users/update-status.md index a69ae30d..600bd6fa 100644 --- a/docs/examples/kotlin/users/update-status.md +++ b/docs/examples/kotlin/users/update-status.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users @@ -13,3 +14,4 @@ val response = users.updateStatus( userId = "", status = false ) +``` diff --git a/docs/examples/kotlin/users/update-target.md b/docs/examples/kotlin/users/update-target.md index a18fc63b..55f0f973 100644 --- a/docs/examples/kotlin/users/update-target.md +++ b/docs/examples/kotlin/users/update-target.md @@ -1,3 +1,4 @@ +```kotlin import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users @@ -16,3 +17,4 @@ val response = users.updateTarget( providerId = "", // optional name = "" // optional ) +``` diff --git a/src/main/kotlin/io/appwrite/Client.kt b/src/main/kotlin/io/appwrite/Client.kt index b40bd446..ff2c7df8 100644 --- a/src/main/kotlin/io/appwrite/Client.kt +++ b/src/main/kotlin/io/appwrite/Client.kt @@ -57,11 +57,11 @@ class Client @JvmOverloads constructor( init { headers = mutableMapOf( "content-type" to "application/json", - "user-agent" to "AppwriteKotlinSDK/14.0.0 ${System.getProperty("http.agent")}", + "user-agent" to "AppwriteKotlinSDK/14.0.1 ${System.getProperty("http.agent")}", "x-sdk-name" to "Kotlin", "x-sdk-platform" to "server", "x-sdk-language" to "kotlin", - "x-sdk-version" to "14.0.0", + "x-sdk-version" to "14.0.1", "x-appwrite-response-format" to "1.8.0", ) diff --git a/src/main/kotlin/io/appwrite/enums/BackupServices.kt b/src/main/kotlin/io/appwrite/enums/BackupServices.kt new file mode 100644 index 00000000..e82c0179 --- /dev/null +++ b/src/main/kotlin/io/appwrite/enums/BackupServices.kt @@ -0,0 +1,14 @@ +package io.appwrite.enums + +import com.google.gson.annotations.SerializedName + +enum class BackupServices(val value: String) { + @SerializedName("databases") + DATABASES("databases"), + @SerializedName("functions") + FUNCTIONS("functions"), + @SerializedName("storage") + STORAGE("storage"); + + override fun toString() = value +} \ No newline at end of file diff --git a/src/main/kotlin/io/appwrite/enums/BuildRuntime.kt b/src/main/kotlin/io/appwrite/enums/BuildRuntime.kt index e553aac4..d2e470ad 100644 --- a/src/main/kotlin/io/appwrite/enums/BuildRuntime.kt +++ b/src/main/kotlin/io/appwrite/enums/BuildRuntime.kt @@ -47,12 +47,6 @@ enum class BuildRuntime(val value: String) { PYTHON_ML_3_11("python-ml-3.11"), @SerializedName("python-ml-3.12") PYTHON_ML_3_12("python-ml-3.12"), - @SerializedName("deno-1.21") - DENO_1_21("deno-1.21"), - @SerializedName("deno-1.24") - DENO_1_24("deno-1.24"), - @SerializedName("deno-1.35") - DENO_1_35("deno-1.35"), @SerializedName("deno-1.40") DENO_1_40("deno-1.40"), @SerializedName("deno-1.46") @@ -81,6 +75,8 @@ enum class BuildRuntime(val value: String) { DART_3_8("dart-3.8"), @SerializedName("dart-3.9") DART_3_9("dart-3.9"), + @SerializedName("dart-3.10") + DART_3_10("dart-3.10"), @SerializedName("dotnet-6.0") DOTNET_6_0("dotnet-6.0"), @SerializedName("dotnet-7.0") @@ -136,7 +132,9 @@ enum class BuildRuntime(val value: String) { @SerializedName("flutter-3.32") FLUTTER_3_32("flutter-3.32"), @SerializedName("flutter-3.35") - FLUTTER_3_35("flutter-3.35"); + FLUTTER_3_35("flutter-3.35"), + @SerializedName("flutter-3.38") + FLUTTER_3_38("flutter-3.38"); override fun toString() = value } \ No newline at end of file diff --git a/src/main/kotlin/io/appwrite/enums/OAuthProvider.kt b/src/main/kotlin/io/appwrite/enums/OAuthProvider.kt index 955df300..443a05c4 100644 --- a/src/main/kotlin/io/appwrite/enums/OAuthProvider.kt +++ b/src/main/kotlin/io/appwrite/enums/OAuthProvider.kt @@ -80,7 +80,11 @@ enum class OAuthProvider(val value: String) { @SerializedName("zoho") ZOHO("zoho"), @SerializedName("zoom") - ZOOM("zoom"); + ZOOM("zoom"), + @SerializedName("githubImagine") + GITHUBIMAGINE("githubImagine"), + @SerializedName("googleImagine") + GOOGLEIMAGINE("googleImagine"); override fun toString() = value } \ No newline at end of file diff --git a/src/main/kotlin/io/appwrite/enums/Roles.kt b/src/main/kotlin/io/appwrite/enums/Roles.kt deleted file mode 100644 index 94c6b7aa..00000000 --- a/src/main/kotlin/io/appwrite/enums/Roles.kt +++ /dev/null @@ -1,14 +0,0 @@ -package io.appwrite.enums - -import com.google.gson.annotations.SerializedName - -enum class Roles(val value: String) { - @SerializedName("admin") - ADMIN("admin"), - @SerializedName("developer") - DEVELOPER("developer"), - @SerializedName("owner") - OWNER("owner"); - - override fun toString() = value -} \ No newline at end of file diff --git a/src/main/kotlin/io/appwrite/enums/Runtime.kt b/src/main/kotlin/io/appwrite/enums/Runtime.kt index 9d0ad11b..e0762af2 100644 --- a/src/main/kotlin/io/appwrite/enums/Runtime.kt +++ b/src/main/kotlin/io/appwrite/enums/Runtime.kt @@ -47,12 +47,6 @@ enum class Runtime(val value: String) { PYTHON_ML_3_11("python-ml-3.11"), @SerializedName("python-ml-3.12") PYTHON_ML_3_12("python-ml-3.12"), - @SerializedName("deno-1.21") - DENO_1_21("deno-1.21"), - @SerializedName("deno-1.24") - DENO_1_24("deno-1.24"), - @SerializedName("deno-1.35") - DENO_1_35("deno-1.35"), @SerializedName("deno-1.40") DENO_1_40("deno-1.40"), @SerializedName("deno-1.46") @@ -81,6 +75,8 @@ enum class Runtime(val value: String) { DART_3_8("dart-3.8"), @SerializedName("dart-3.9") DART_3_9("dart-3.9"), + @SerializedName("dart-3.10") + DART_3_10("dart-3.10"), @SerializedName("dotnet-6.0") DOTNET_6_0("dotnet-6.0"), @SerializedName("dotnet-7.0") @@ -136,7 +132,9 @@ enum class Runtime(val value: String) { @SerializedName("flutter-3.32") FLUTTER_3_32("flutter-3.32"), @SerializedName("flutter-3.35") - FLUTTER_3_35("flutter-3.35"); + FLUTTER_3_35("flutter-3.35"), + @SerializedName("flutter-3.38") + FLUTTER_3_38("flutter-3.38"); override fun toString() = value } \ No newline at end of file diff --git a/src/main/kotlin/io/appwrite/enums/Scopes.kt b/src/main/kotlin/io/appwrite/enums/Scopes.kt index 971639b7..bdf20699 100644 --- a/src/main/kotlin/io/appwrite/enums/Scopes.kt +++ b/src/main/kotlin/io/appwrite/enums/Scopes.kt @@ -112,7 +112,23 @@ enum class Scopes(val value: String) { @SerializedName("tokens.read") TOKENS_READ("tokens.read"), @SerializedName("tokens.write") - TOKENS_WRITE("tokens.write"); + TOKENS_WRITE("tokens.write"), + @SerializedName("policies.write") + POLICIES_WRITE("policies.write"), + @SerializedName("policies.read") + POLICIES_READ("policies.read"), + @SerializedName("archives.read") + ARCHIVES_READ("archives.read"), + @SerializedName("archives.write") + ARCHIVES_WRITE("archives.write"), + @SerializedName("restorations.read") + RESTORATIONS_READ("restorations.read"), + @SerializedName("restorations.write") + RESTORATIONS_WRITE("restorations.write"), + @SerializedName("domains.read") + DOMAINS_READ("domains.read"), + @SerializedName("domains.write") + DOMAINS_WRITE("domains.write"); override fun toString() = value } \ No newline at end of file diff --git a/src/main/kotlin/io/appwrite/models/BackupArchive.kt b/src/main/kotlin/io/appwrite/models/BackupArchive.kt new file mode 100644 index 00000000..5426f496 --- /dev/null +++ b/src/main/kotlin/io/appwrite/models/BackupArchive.kt @@ -0,0 +1,118 @@ +package io.appwrite.models + +import com.google.gson.annotations.SerializedName +import io.appwrite.extensions.jsonCast + +/** + * Archive + */ +data class BackupArchive( + /** + * Archive ID. + */ + @SerializedName("\$id") + val id: String, + + /** + * Archive creation time in ISO 8601 format. + */ + @SerializedName("\$createdAt") + val createdAt: String, + + /** + * Archive update date in ISO 8601 format. + */ + @SerializedName("\$updatedAt") + val updatedAt: String, + + /** + * Archive policy ID. + */ + @SerializedName("policyId") + val policyId: String, + + /** + * Archive size in bytes. + */ + @SerializedName("size") + val size: Long, + + /** + * The status of the archive creation. Possible values: pending, processing, uploading, completed, failed. + */ + @SerializedName("status") + val status: String, + + /** + * The backup start time. + */ + @SerializedName("startedAt") + val startedAt: String, + + /** + * Migration ID. + */ + @SerializedName("migrationId") + val migrationId: String, + + /** + * The services that are backed up by this archive. + */ + @SerializedName("services") + val services: List, + + /** + * The resources that are backed up by this archive. + */ + @SerializedName("resources") + val resources: List, + + /** + * The resource ID to backup. Set only if this archive should backup a single resource. + */ + @SerializedName("resourceId") + var resourceId: String?, + + /** + * The resource type to backup. Set only if this archive should backup a single resource. + */ + @SerializedName("resourceType") + var resourceType: String?, + +) { + fun toMap(): Map = mapOf( + "\$id" to id as Any, + "\$createdAt" to createdAt as Any, + "\$updatedAt" to updatedAt as Any, + "policyId" to policyId as Any, + "size" to size as Any, + "status" to status as Any, + "startedAt" to startedAt as Any, + "migrationId" to migrationId as Any, + "services" to services as Any, + "resources" to resources as Any, + "resourceId" to resourceId as Any, + "resourceType" to resourceType as Any, + ) + + companion object { + + @Suppress("UNCHECKED_CAST") + fun from( + map: Map, + ) = BackupArchive( + id = map["\$id"] as String, + createdAt = map["\$createdAt"] as String, + updatedAt = map["\$updatedAt"] as String, + policyId = map["policyId"] as String, + size = (map["size"] as Number).toLong(), + status = map["status"] as String, + startedAt = map["startedAt"] as String, + migrationId = map["migrationId"] as String, + services = map["services"] as List, + resources = map["resources"] as List, + resourceId = map["resourceId"] as? String, + resourceType = map["resourceType"] as? String, + ) + } +} \ No newline at end of file diff --git a/src/main/kotlin/io/appwrite/models/BackupArchiveList.kt b/src/main/kotlin/io/appwrite/models/BackupArchiveList.kt new file mode 100644 index 00000000..65476ed0 --- /dev/null +++ b/src/main/kotlin/io/appwrite/models/BackupArchiveList.kt @@ -0,0 +1,38 @@ +package io.appwrite.models + +import com.google.gson.annotations.SerializedName +import io.appwrite.extensions.jsonCast + +/** + * Backup archive list + */ +data class BackupArchiveList( + /** + * Total number of archives that matched your query. + */ + @SerializedName("total") + val total: Long, + + /** + * List of archives. + */ + @SerializedName("archives") + val archives: List, + +) { + fun toMap(): Map = mapOf( + "total" to total as Any, + "archives" to archives.map { it.toMap() } as Any, + ) + + companion object { + + @Suppress("UNCHECKED_CAST") + fun from( + map: Map, + ) = BackupArchiveList( + total = (map["total"] as Number).toLong(), + archives = (map["archives"] as List>).map { BackupArchive.from(map = it) }, + ) + } +} \ No newline at end of file diff --git a/src/main/kotlin/io/appwrite/models/BackupPolicy.kt b/src/main/kotlin/io/appwrite/models/BackupPolicy.kt new file mode 100644 index 00000000..05cae83b --- /dev/null +++ b/src/main/kotlin/io/appwrite/models/BackupPolicy.kt @@ -0,0 +1,110 @@ +package io.appwrite.models + +import com.google.gson.annotations.SerializedName +import io.appwrite.extensions.jsonCast + +/** + * backup + */ +data class BackupPolicy( + /** + * Backup policy ID. + */ + @SerializedName("\$id") + val id: String, + + /** + * Backup policy name. + */ + @SerializedName("name") + val name: String, + + /** + * Policy creation date in ISO 8601 format. + */ + @SerializedName("\$createdAt") + val createdAt: String, + + /** + * Policy update date in ISO 8601 format. + */ + @SerializedName("\$updatedAt") + val updatedAt: String, + + /** + * The services that are backed up by this policy. + */ + @SerializedName("services") + val services: List, + + /** + * The resources that are backed up by this policy. + */ + @SerializedName("resources") + val resources: List, + + /** + * The resource ID to backup. Set only if this policy should backup a single resource. + */ + @SerializedName("resourceId") + var resourceId: String?, + + /** + * The resource type to backup. Set only if this policy should backup a single resource. + */ + @SerializedName("resourceType") + var resourceType: String?, + + /** + * How many days to keep the backup before it will be automatically deleted. + */ + @SerializedName("retention") + val retention: Long, + + /** + * Policy backup schedule in CRON format. + */ + @SerializedName("schedule") + val schedule: String, + + /** + * Is this policy enabled. + */ + @SerializedName("enabled") + val enabled: Boolean, + +) { + fun toMap(): Map = mapOf( + "\$id" to id as Any, + "name" to name as Any, + "\$createdAt" to createdAt as Any, + "\$updatedAt" to updatedAt as Any, + "services" to services as Any, + "resources" to resources as Any, + "resourceId" to resourceId as Any, + "resourceType" to resourceType as Any, + "retention" to retention as Any, + "schedule" to schedule as Any, + "enabled" to enabled as Any, + ) + + companion object { + + @Suppress("UNCHECKED_CAST") + fun from( + map: Map, + ) = BackupPolicy( + id = map["\$id"] as String, + name = map["name"] as String, + createdAt = map["\$createdAt"] as String, + updatedAt = map["\$updatedAt"] as String, + services = map["services"] as List, + resources = map["resources"] as List, + resourceId = map["resourceId"] as? String, + resourceType = map["resourceType"] as? String, + retention = (map["retention"] as Number).toLong(), + schedule = map["schedule"] as String, + enabled = map["enabled"] as Boolean, + ) + } +} \ No newline at end of file diff --git a/src/main/kotlin/io/appwrite/models/BackupPolicyList.kt b/src/main/kotlin/io/appwrite/models/BackupPolicyList.kt new file mode 100644 index 00000000..f93bfb1d --- /dev/null +++ b/src/main/kotlin/io/appwrite/models/BackupPolicyList.kt @@ -0,0 +1,38 @@ +package io.appwrite.models + +import com.google.gson.annotations.SerializedName +import io.appwrite.extensions.jsonCast + +/** + * Backup policy list + */ +data class BackupPolicyList( + /** + * Total number of policies that matched your query. + */ + @SerializedName("total") + val total: Long, + + /** + * List of policies. + */ + @SerializedName("policies") + val policies: List, + +) { + fun toMap(): Map = mapOf( + "total" to total as Any, + "policies" to policies.map { it.toMap() } as Any, + ) + + companion object { + + @Suppress("UNCHECKED_CAST") + fun from( + map: Map, + ) = BackupPolicyList( + total = (map["total"] as Number).toLong(), + policies = (map["policies"] as List>).map { BackupPolicy.from(map = it) }, + ) + } +} \ No newline at end of file diff --git a/src/main/kotlin/io/appwrite/models/BackupRestoration.kt b/src/main/kotlin/io/appwrite/models/BackupRestoration.kt new file mode 100644 index 00000000..76e59bf6 --- /dev/null +++ b/src/main/kotlin/io/appwrite/models/BackupRestoration.kt @@ -0,0 +1,110 @@ +package io.appwrite.models + +import com.google.gson.annotations.SerializedName +import io.appwrite.extensions.jsonCast + +/** + * Restoration + */ +data class BackupRestoration( + /** + * Restoration ID. + */ + @SerializedName("\$id") + val id: String, + + /** + * Restoration creation time in ISO 8601 format. + */ + @SerializedName("\$createdAt") + val createdAt: String, + + /** + * Restoration update date in ISO 8601 format. + */ + @SerializedName("\$updatedAt") + val updatedAt: String, + + /** + * Backup archive ID. + */ + @SerializedName("archiveId") + val archiveId: String, + + /** + * Backup policy ID. + */ + @SerializedName("policyId") + val policyId: String, + + /** + * The status of the restoration. Possible values: pending, downloading, processing, completed, failed. + */ + @SerializedName("status") + val status: String, + + /** + * The backup start time. + */ + @SerializedName("startedAt") + val startedAt: String, + + /** + * Migration ID. + */ + @SerializedName("migrationId") + val migrationId: String, + + /** + * The services that are backed up by this policy. + */ + @SerializedName("services") + val services: List, + + /** + * The resources that are backed up by this policy. + */ + @SerializedName("resources") + val resources: List, + + /** + * Optional data in key-value object. + */ + @SerializedName("options") + val options: String, + +) { + fun toMap(): Map = mapOf( + "\$id" to id as Any, + "\$createdAt" to createdAt as Any, + "\$updatedAt" to updatedAt as Any, + "archiveId" to archiveId as Any, + "policyId" to policyId as Any, + "status" to status as Any, + "startedAt" to startedAt as Any, + "migrationId" to migrationId as Any, + "services" to services as Any, + "resources" to resources as Any, + "options" to options as Any, + ) + + companion object { + + @Suppress("UNCHECKED_CAST") + fun from( + map: Map, + ) = BackupRestoration( + id = map["\$id"] as String, + createdAt = map["\$createdAt"] as String, + updatedAt = map["\$updatedAt"] as String, + archiveId = map["archiveId"] as String, + policyId = map["policyId"] as String, + status = map["status"] as String, + startedAt = map["startedAt"] as String, + migrationId = map["migrationId"] as String, + services = map["services"] as List, + resources = map["resources"] as List, + options = map["options"] as String, + ) + } +} \ No newline at end of file diff --git a/src/main/kotlin/io/appwrite/models/BackupRestorationList.kt b/src/main/kotlin/io/appwrite/models/BackupRestorationList.kt new file mode 100644 index 00000000..4c072686 --- /dev/null +++ b/src/main/kotlin/io/appwrite/models/BackupRestorationList.kt @@ -0,0 +1,38 @@ +package io.appwrite.models + +import com.google.gson.annotations.SerializedName +import io.appwrite.extensions.jsonCast + +/** + * Backup restoration list + */ +data class BackupRestorationList( + /** + * Total number of restorations that matched your query. + */ + @SerializedName("total") + val total: Long, + + /** + * List of restorations. + */ + @SerializedName("restorations") + val restorations: List, + +) { + fun toMap(): Map = mapOf( + "total" to total as Any, + "restorations" to restorations.map { it.toMap() } as Any, + ) + + companion object { + + @Suppress("UNCHECKED_CAST") + fun from( + map: Map, + ) = BackupRestorationList( + total = (map["total"] as Number).toLong(), + restorations = (map["restorations"] as List>).map { BackupRestoration.from(map = it) }, + ) + } +} \ No newline at end of file diff --git a/src/main/kotlin/io/appwrite/models/Collection.kt b/src/main/kotlin/io/appwrite/models/Collection.kt index 00cfa81d..cb57db5f 100644 --- a/src/main/kotlin/io/appwrite/models/Collection.kt +++ b/src/main/kotlin/io/appwrite/models/Collection.kt @@ -67,6 +67,18 @@ data class Collection( @SerializedName("indexes") val indexes: List, + /** + * Maximum document size in bytes. Returns 0 when no limit applies. + */ + @SerializedName("bytesMax") + val bytesMax: Long, + + /** + * Currently used document size in bytes based on defined attributes. + */ + @SerializedName("bytesUsed") + val bytesUsed: Long, + ) { fun toMap(): Map = mapOf( "\$id" to id as Any, @@ -79,6 +91,8 @@ data class Collection( "documentSecurity" to documentSecurity as Any, "attributes" to attributes as Any, "indexes" to indexes.map { it.toMap() } as Any, + "bytesMax" to bytesMax as Any, + "bytesUsed" to bytesUsed as Any, ) companion object { @@ -97,6 +111,8 @@ data class Collection( documentSecurity = map["documentSecurity"] as Boolean, attributes = map["attributes"] as List, indexes = (map["indexes"] as List>).map { Index.from(map = it) }, + bytesMax = (map["bytesMax"] as Number).toLong(), + bytesUsed = (map["bytesUsed"] as Number).toLong(), ) } } \ No newline at end of file diff --git a/src/main/kotlin/io/appwrite/models/Database.kt b/src/main/kotlin/io/appwrite/models/Database.kt index 2ff518b2..8245fc5c 100644 --- a/src/main/kotlin/io/appwrite/models/Database.kt +++ b/src/main/kotlin/io/appwrite/models/Database.kt @@ -44,6 +44,18 @@ data class Database( @SerializedName("type") val type: DatabaseType, + /** + * Database backup policies. + */ + @SerializedName("policies") + val policies: List, + + /** + * Database backup archives. + */ + @SerializedName("archives") + val archives: List, + ) { fun toMap(): Map = mapOf( "\$id" to id as Any, @@ -52,6 +64,8 @@ data class Database( "\$updatedAt" to updatedAt as Any, "enabled" to enabled as Any, "type" to type.value as Any, + "policies" to policies.map { it.toMap() } as Any, + "archives" to archives.map { it.toMap() } as Any, ) companion object { @@ -66,6 +80,8 @@ data class Database( updatedAt = map["\$updatedAt"] as String, enabled = map["enabled"] as Boolean, type = DatabaseType.values().find { it.value == map["type"] as String }!!, + policies = (map["policies"] as List>).map { Index.from(map = it) }, + archives = (map["archives"] as List>).map { Collection.from(map = it) }, ) } } \ No newline at end of file diff --git a/src/main/kotlin/io/appwrite/models/EstimationDeleteOrganization.kt b/src/main/kotlin/io/appwrite/models/EstimationDeleteOrganization.kt new file mode 100644 index 00000000..12838783 --- /dev/null +++ b/src/main/kotlin/io/appwrite/models/EstimationDeleteOrganization.kt @@ -0,0 +1,30 @@ +package io.appwrite.models + +import com.google.gson.annotations.SerializedName +import io.appwrite.extensions.jsonCast + +/** + * EstimationDeleteOrganization + */ +data class EstimationDeleteOrganization( + /** + * List of unpaid invoices + */ + @SerializedName("unpaidInvoices") + val unpaidInvoices: List, + +) { + fun toMap(): Map = mapOf( + "unpaidInvoices" to unpaidInvoices.map { it.toMap() } as Any, + ) + + companion object { + + @Suppress("UNCHECKED_CAST") + fun from( + map: Map, + ) = EstimationDeleteOrganization( + unpaidInvoices = (map["unpaidInvoices"] as List>).map { Invoice.from(map = it) }, + ) + } +} \ No newline at end of file diff --git a/src/main/kotlin/io/appwrite/models/Invoice.kt b/src/main/kotlin/io/appwrite/models/Invoice.kt new file mode 100644 index 00000000..927a6c5c --- /dev/null +++ b/src/main/kotlin/io/appwrite/models/Invoice.kt @@ -0,0 +1,198 @@ +package io.appwrite.models + +import com.google.gson.annotations.SerializedName +import io.appwrite.extensions.jsonCast + +/** + * Invoice + */ +data class Invoice( + /** + * Invoice ID. + */ + @SerializedName("\$id") + val id: String, + + /** + * Invoice creation time in ISO 8601 format. + */ + @SerializedName("\$createdAt") + val createdAt: String, + + /** + * Invoice update date in ISO 8601 format. + */ + @SerializedName("\$updatedAt") + val updatedAt: String, + + /** + * Invoice permissions. [Learn more about permissions](/docs/permissions). + */ + @SerializedName("\$permissions") + val permissions: List, + + /** + * Project ID + */ + @SerializedName("teamId") + val teamId: String, + + /** + * Aggregation ID + */ + @SerializedName("aggregationId") + val aggregationId: String, + + /** + * Billing plan selected. Can be one of `tier-0`, `tier-1` or `tier-2`. + */ + @SerializedName("plan") + val plan: String, + + /** + * Usage breakdown per resource + */ + @SerializedName("usage") + val usage: List, + + /** + * Invoice Amount + */ + @SerializedName("amount") + val amount: Double, + + /** + * Tax percentage + */ + @SerializedName("tax") + val tax: Double, + + /** + * Tax amount + */ + @SerializedName("taxAmount") + val taxAmount: Double, + + /** + * VAT percentage + */ + @SerializedName("vat") + val vat: Double, + + /** + * VAT amount + */ + @SerializedName("vatAmount") + val vatAmount: Double, + + /** + * Gross amount after vat, tax, and discounts applied. + */ + @SerializedName("grossAmount") + val grossAmount: Double, + + /** + * Credits used. + */ + @SerializedName("creditsUsed") + val creditsUsed: Double, + + /** + * Currency the invoice is in + */ + @SerializedName("currency") + val currency: String, + + /** + * Client secret for processing failed payments in front-end + */ + @SerializedName("clientSecret") + val clientSecret: String, + + /** + * Invoice status + */ + @SerializedName("status") + val status: String, + + /** + * Last payment error associated with the invoice + */ + @SerializedName("lastError") + val lastError: String, + + /** + * Invoice due date. + */ + @SerializedName("dueAt") + val dueAt: String, + + /** + * Beginning date of the invoice + */ + @SerializedName("from") + val from: String, + + /** + * End date of the invoice + */ + @SerializedName("to") + val to: String, + +) { + fun toMap(): Map = mapOf( + "\$id" to id as Any, + "\$createdAt" to createdAt as Any, + "\$updatedAt" to updatedAt as Any, + "\$permissions" to permissions as Any, + "teamId" to teamId as Any, + "aggregationId" to aggregationId as Any, + "plan" to plan as Any, + "usage" to usage.map { it.toMap() } as Any, + "amount" to amount as Any, + "tax" to tax as Any, + "taxAmount" to taxAmount as Any, + "vat" to vat as Any, + "vatAmount" to vatAmount as Any, + "grossAmount" to grossAmount as Any, + "creditsUsed" to creditsUsed as Any, + "currency" to currency as Any, + "clientSecret" to clientSecret as Any, + "status" to status as Any, + "lastError" to lastError as Any, + "dueAt" to dueAt as Any, + "from" to from as Any, + "to" to to as Any, + ) + + companion object { + + @Suppress("UNCHECKED_CAST") + fun from( + map: Map, + ) = Invoice( + id = map["\$id"] as String, + createdAt = map["\$createdAt"] as String, + updatedAt = map["\$updatedAt"] as String, + permissions = map["\$permissions"] as List, + teamId = map["teamId"] as String, + aggregationId = map["aggregationId"] as String, + plan = map["plan"] as String, + usage = (map["usage"] as List>).map { UsageResources.from(map = it) }, + amount = (map["amount"] as Number).toDouble(), + tax = (map["tax"] as Number).toDouble(), + taxAmount = (map["taxAmount"] as Number).toDouble(), + vat = (map["vat"] as Number).toDouble(), + vatAmount = (map["vatAmount"] as Number).toDouble(), + grossAmount = (map["grossAmount"] as Number).toDouble(), + creditsUsed = (map["creditsUsed"] as Number).toDouble(), + currency = map["currency"] as String, + clientSecret = map["clientSecret"] as String, + status = map["status"] as String, + lastError = map["lastError"] as String, + dueAt = map["dueAt"] as String, + from = map["from"] as String, + to = map["to"] as String, + ) + } +} \ No newline at end of file diff --git a/src/main/kotlin/io/appwrite/models/Key.kt b/src/main/kotlin/io/appwrite/models/Key.kt new file mode 100644 index 00000000..83d9dd1c --- /dev/null +++ b/src/main/kotlin/io/appwrite/models/Key.kt @@ -0,0 +1,94 @@ +package io.appwrite.models + +import com.google.gson.annotations.SerializedName +import io.appwrite.extensions.jsonCast + +/** + * Key + */ +data class Key( + /** + * Key ID. + */ + @SerializedName("\$id") + val id: String, + + /** + * Key creation date in ISO 8601 format. + */ + @SerializedName("\$createdAt") + val createdAt: String, + + /** + * Key update date in ISO 8601 format. + */ + @SerializedName("\$updatedAt") + val updatedAt: String, + + /** + * Key name. + */ + @SerializedName("name") + val name: String, + + /** + * Key expiration date in ISO 8601 format. + */ + @SerializedName("expire") + val expire: String, + + /** + * Allowed permission scopes. + */ + @SerializedName("scopes") + val scopes: List, + + /** + * Secret key. + */ + @SerializedName("secret") + val secret: String, + + /** + * Most recent access date in ISO 8601 format. This attribute is only updated again after 24 hours. + */ + @SerializedName("accessedAt") + val accessedAt: String, + + /** + * List of SDK user agents that used this key. + */ + @SerializedName("sdks") + val sdks: List, + +) { + fun toMap(): Map = mapOf( + "\$id" to id as Any, + "\$createdAt" to createdAt as Any, + "\$updatedAt" to updatedAt as Any, + "name" to name as Any, + "expire" to expire as Any, + "scopes" to scopes as Any, + "secret" to secret as Any, + "accessedAt" to accessedAt as Any, + "sdks" to sdks as Any, + ) + + companion object { + + @Suppress("UNCHECKED_CAST") + fun from( + map: Map, + ) = Key( + id = map["\$id"] as String, + createdAt = map["\$createdAt"] as String, + updatedAt = map["\$updatedAt"] as String, + name = map["name"] as String, + expire = map["expire"] as String, + scopes = map["scopes"] as List, + secret = map["secret"] as String, + accessedAt = map["accessedAt"] as String, + sdks = map["sdks"] as List, + ) + } +} \ No newline at end of file diff --git a/src/main/kotlin/io/appwrite/models/KeyList.kt b/src/main/kotlin/io/appwrite/models/KeyList.kt new file mode 100644 index 00000000..cc3875f7 --- /dev/null +++ b/src/main/kotlin/io/appwrite/models/KeyList.kt @@ -0,0 +1,38 @@ +package io.appwrite.models + +import com.google.gson.annotations.SerializedName +import io.appwrite.extensions.jsonCast + +/** + * API Keys List + */ +data class KeyList( + /** + * Total number of keys that matched your query. + */ + @SerializedName("total") + val total: Long, + + /** + * List of keys. + */ + @SerializedName("keys") + val keys: List, + +) { + fun toMap(): Map = mapOf( + "total" to total as Any, + "keys" to keys.map { it.toMap() } as Any, + ) + + companion object { + + @Suppress("UNCHECKED_CAST") + fun from( + map: Map, + ) = KeyList( + total = (map["total"] as Number).toLong(), + keys = (map["keys"] as List>).map { Key.from(map = it) }, + ) + } +} \ No newline at end of file diff --git a/src/main/kotlin/io/appwrite/models/Table.kt b/src/main/kotlin/io/appwrite/models/Table.kt index c741b437..1fc3c6a0 100644 --- a/src/main/kotlin/io/appwrite/models/Table.kt +++ b/src/main/kotlin/io/appwrite/models/Table.kt @@ -67,6 +67,18 @@ data class Table( @SerializedName("indexes") val indexes: List, + /** + * Maximum row size in bytes. Returns 0 when no limit applies. + */ + @SerializedName("bytesMax") + val bytesMax: Long, + + /** + * Currently used row size in bytes based on defined columns. + */ + @SerializedName("bytesUsed") + val bytesUsed: Long, + ) { fun toMap(): Map = mapOf( "\$id" to id as Any, @@ -79,6 +91,8 @@ data class Table( "rowSecurity" to rowSecurity as Any, "columns" to columns as Any, "indexes" to indexes.map { it.toMap() } as Any, + "bytesMax" to bytesMax as Any, + "bytesUsed" to bytesUsed as Any, ) companion object { @@ -97,6 +111,8 @@ data class Table( rowSecurity = map["rowSecurity"] as Boolean, columns = map["columns"] as List, indexes = (map["indexes"] as List>).map { ColumnIndex.from(map = it) }, + bytesMax = (map["bytesMax"] as Number).toLong(), + bytesUsed = (map["bytesUsed"] as Number).toLong(), ) } } \ No newline at end of file diff --git a/src/main/kotlin/io/appwrite/models/UsageResources.kt b/src/main/kotlin/io/appwrite/models/UsageResources.kt new file mode 100644 index 00000000..d502bf08 --- /dev/null +++ b/src/main/kotlin/io/appwrite/models/UsageResources.kt @@ -0,0 +1,70 @@ +package io.appwrite.models + +import com.google.gson.annotations.SerializedName +import io.appwrite.extensions.jsonCast + +/** + * UsageResource + */ +data class UsageResources( + /** + * Invoice name + */ + @SerializedName("name") + val name: String, + + /** + * Invoice value + */ + @SerializedName("value") + val value: Long, + + /** + * Invoice amount + */ + @SerializedName("amount") + val amount: Double, + + /** + * Invoice rate + */ + @SerializedName("rate") + val rate: Double, + + /** + * Invoice description + */ + @SerializedName("desc") + val desc: String, + + /** + * Resource ID + */ + @SerializedName("resourceId") + val resourceId: String, + +) { + fun toMap(): Map = mapOf( + "name" to name as Any, + "value" to value as Any, + "amount" to amount as Any, + "rate" to rate as Any, + "desc" to desc as Any, + "resourceId" to resourceId as Any, + ) + + companion object { + + @Suppress("UNCHECKED_CAST") + fun from( + map: Map, + ) = UsageResources( + name = map["name"] as String, + value = (map["value"] as Number).toLong(), + amount = (map["amount"] as Number).toDouble(), + rate = (map["rate"] as Number).toDouble(), + desc = map["desc"] as String, + resourceId = map["resourceId"] as String, + ) + } +} \ No newline at end of file diff --git a/src/main/kotlin/io/appwrite/services/Account.kt b/src/main/kotlin/io/appwrite/services/Account.kt index efc9974e..27889b51 100644 --- a/src/main/kotlin/io/appwrite/services/Account.kt +++ b/src/main/kotlin/io/appwrite/services/Account.kt @@ -267,6 +267,173 @@ class Account(client: Client) : Service(client) { ) } + /** + * Get a list of all API keys from the current account. + * + * @param total When set to false, the total count returned will be 0 and will not be calculated. + * @return [io.appwrite.models.KeyList] + */ + @JvmOverloads + @Throws(AppwriteException::class) + suspend fun listKeys( + total: Boolean? = null, + ): io.appwrite.models.KeyList { + val apiPath = "/account/keys" + + val apiParams = mutableMapOf( + "total" to total, + ) + val apiHeaders = mutableMapOf( + ) + val converter: (Any) -> io.appwrite.models.KeyList = { + io.appwrite.models.KeyList.from(map = it as Map) + } + return client.call( + "GET", + apiPath, + apiHeaders, + apiParams, + responseType = io.appwrite.models.KeyList::class.java, + converter, + ) + } + + /** + * Create a new account API key. + * + * @param name Key name. Max length: 128 chars. + * @param scopes Key scopes list. Maximum of 100 scopes are allowed. + * @param expire Expiration time in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Use null for unlimited expiration. + * @return [io.appwrite.models.Key] + */ + @JvmOverloads + @Throws(AppwriteException::class) + suspend fun createKey( + name: String, + scopes: List, + expire: String? = null, + ): io.appwrite.models.Key { + val apiPath = "/account/keys" + + val apiParams = mutableMapOf( + "name" to name, + "scopes" to scopes, + "expire" to expire, + ) + val apiHeaders = mutableMapOf( + "content-type" to "application/json", + ) + val converter: (Any) -> io.appwrite.models.Key = { + io.appwrite.models.Key.from(map = it as Map) + } + return client.call( + "POST", + apiPath, + apiHeaders, + apiParams, + responseType = io.appwrite.models.Key::class.java, + converter, + ) + } + + /** + * Get a key by its unique ID. This endpoint returns details about a specific API key in your account including it's scopes. + * + * @param keyId Key unique ID. + * @return [io.appwrite.models.Key] + */ + @Throws(AppwriteException::class) + suspend fun getKey( + keyId: String, + ): io.appwrite.models.Key { + val apiPath = "/account/keys/{keyId}" + .replace("{keyId}", keyId) + + val apiParams = mutableMapOf( + ) + val apiHeaders = mutableMapOf( + ) + val converter: (Any) -> io.appwrite.models.Key = { + io.appwrite.models.Key.from(map = it as Map) + } + return client.call( + "GET", + apiPath, + apiHeaders, + apiParams, + responseType = io.appwrite.models.Key::class.java, + converter, + ) + } + + /** + * Update a key by its unique ID. Use this endpoint to update the name, scopes, or expiration time of an API key. + * + * @param keyId Key unique ID. + * @param name Key name. Max length: 128 chars. + * @param scopes Key scopes list. Maximum of 100 scopes are allowed. + * @param expire Expiration time in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Use null for unlimited expiration. + * @return [io.appwrite.models.Key] + */ + @JvmOverloads + @Throws(AppwriteException::class) + suspend fun updateKey( + keyId: String, + name: String, + scopes: List, + expire: String? = null, + ): io.appwrite.models.Key { + val apiPath = "/account/keys/{keyId}" + .replace("{keyId}", keyId) + + val apiParams = mutableMapOf( + "name" to name, + "scopes" to scopes, + "expire" to expire, + ) + val apiHeaders = mutableMapOf( + "content-type" to "application/json", + ) + val converter: (Any) -> io.appwrite.models.Key = { + io.appwrite.models.Key.from(map = it as Map) + } + return client.call( + "PUT", + apiPath, + apiHeaders, + apiParams, + responseType = io.appwrite.models.Key::class.java, + converter, + ) + } + + /** + * Delete a key by its unique ID. Once deleted, the key can no longer be used to authenticate API calls. + * + * @param keyId Key unique ID. + * @return [Any] + */ + @Throws(AppwriteException::class) + suspend fun deleteKey( + keyId: String, + ): Any { + val apiPath = "/account/keys/{keyId}" + .replace("{keyId}", keyId) + + val apiParams = mutableMapOf( + ) + val apiHeaders = mutableMapOf( + "content-type" to "application/json", + ) + return client.call( + "DELETE", + apiPath, + apiHeaders, + apiParams, + responseType = Any::class.java, + ) + } + /** * Get the list of latest security activity logs for the currently logged in user. Each log returns user IP address, location and date and time of log. * @@ -1712,7 +1879,7 @@ class Account(client: Client) : Service(client) { * * A user is limited to 10 active sessions at a time by default. [Learn more about session limits](https://appwrite.io/docs/authentication-security#limits). * - * @param provider OAuth2 Provider. Currently, supported providers are: amazon, apple, auth0, authentik, autodesk, bitbucket, bitly, box, dailymotion, discord, disqus, dropbox, etsy, facebook, figma, github, gitlab, google, linkedin, microsoft, notion, oidc, okta, paypal, paypalSandbox, podio, salesforce, slack, spotify, stripe, tradeshift, tradeshiftBox, twitch, wordpress, yahoo, yammer, yandex, zoho, zoom. + * @param provider OAuth2 Provider. Currently, supported providers are: amazon, apple, auth0, authentik, autodesk, bitbucket, bitly, box, dailymotion, discord, disqus, dropbox, etsy, facebook, figma, github, gitlab, google, linkedin, microsoft, notion, oidc, okta, paypal, paypalSandbox, podio, salesforce, slack, spotify, stripe, tradeshift, tradeshiftBox, twitch, wordpress, yahoo, yammer, yandex, zoho, zoom, githubImagine, googleImagine. * @param success URL to redirect back to your app after a successful login attempt. Only URLs from hostnames in your project's platform list are allowed. This requirement helps to prevent an [open redirect](https://cheatsheetseries.owasp.org/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html) attack against your project API. * @param failure URL to redirect back to your app after a failed login attempt. Only URLs from hostnames in your project's platform list are allowed. This requirement helps to prevent an [open redirect](https://cheatsheetseries.owasp.org/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html) attack against your project API. * @param scopes A list of custom OAuth2 scopes. Check each provider internal docs for a list of supported scopes. Maximum of 100 scopes are allowed, each 4096 characters long. diff --git a/src/main/kotlin/io/appwrite/services/Backups.kt b/src/main/kotlin/io/appwrite/services/Backups.kt new file mode 100644 index 00000000..27af48e0 --- /dev/null +++ b/src/main/kotlin/io/appwrite/services/Backups.kt @@ -0,0 +1,423 @@ +package io.appwrite.services + +import io.appwrite.Client +import io.appwrite.models.* +import io.appwrite.enums.* +import io.appwrite.exceptions.AppwriteException +import io.appwrite.extensions.classOf +import okhttp3.Cookie +import java.io.File + +/** + * +**/ +class Backups(client: Client) : Service(client) { + + /** + * List all archives for a project. + * + * @param queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. + * @return [io.appwrite.models.BackupArchiveList] + */ + @JvmOverloads + @Throws(AppwriteException::class) + suspend fun listArchives( + queries: List? = null, + ): io.appwrite.models.BackupArchiveList { + val apiPath = "/backups/archives" + + val apiParams = mutableMapOf( + "queries" to queries, + ) + val apiHeaders = mutableMapOf( + ) + val converter: (Any) -> io.appwrite.models.BackupArchiveList = { + io.appwrite.models.BackupArchiveList.from(map = it as Map) + } + return client.call( + "GET", + apiPath, + apiHeaders, + apiParams, + responseType = io.appwrite.models.BackupArchiveList::class.java, + converter, + ) + } + + /** + * Create a new archive asynchronously for a project. + * + * @param services Array of services to backup + * @param resourceId Resource ID. When set, only this single resource will be backed up. + * @return [io.appwrite.models.BackupArchive] + */ + @JvmOverloads + @Throws(AppwriteException::class) + suspend fun createArchive( + services: List, + resourceId: String? = null, + ): io.appwrite.models.BackupArchive { + val apiPath = "/backups/archives" + + val apiParams = mutableMapOf( + "services" to services, + "resourceId" to resourceId, + ) + val apiHeaders = mutableMapOf( + "content-type" to "application/json", + ) + val converter: (Any) -> io.appwrite.models.BackupArchive = { + io.appwrite.models.BackupArchive.from(map = it as Map) + } + return client.call( + "POST", + apiPath, + apiHeaders, + apiParams, + responseType = io.appwrite.models.BackupArchive::class.java, + converter, + ) + } + + /** + * Get a backup archive using it's ID. + * + * @param archiveId Archive ID. Choose a custom ID`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars. + * @return [io.appwrite.models.BackupArchive] + */ + @Throws(AppwriteException::class) + suspend fun getArchive( + archiveId: String, + ): io.appwrite.models.BackupArchive { + val apiPath = "/backups/archives/{archiveId}" + .replace("{archiveId}", archiveId) + + val apiParams = mutableMapOf( + ) + val apiHeaders = mutableMapOf( + ) + val converter: (Any) -> io.appwrite.models.BackupArchive = { + io.appwrite.models.BackupArchive.from(map = it as Map) + } + return client.call( + "GET", + apiPath, + apiHeaders, + apiParams, + responseType = io.appwrite.models.BackupArchive::class.java, + converter, + ) + } + + /** + * Delete an existing archive for a project. + * + * @param archiveId Policy ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars. + * @return [Any] + */ + @Throws(AppwriteException::class) + suspend fun deleteArchive( + archiveId: String, + ): Any { + val apiPath = "/backups/archives/{archiveId}" + .replace("{archiveId}", archiveId) + + val apiParams = mutableMapOf( + ) + val apiHeaders = mutableMapOf( + "content-type" to "application/json", + ) + return client.call( + "DELETE", + apiPath, + apiHeaders, + apiParams, + responseType = Any::class.java, + ) + } + + /** + * List all policies for a project. + * + * @param queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. + * @return [io.appwrite.models.BackupPolicyList] + */ + @JvmOverloads + @Throws(AppwriteException::class) + suspend fun listPolicies( + queries: List? = null, + ): io.appwrite.models.BackupPolicyList { + val apiPath = "/backups/policies" + + val apiParams = mutableMapOf( + "queries" to queries, + ) + val apiHeaders = mutableMapOf( + ) + val converter: (Any) -> io.appwrite.models.BackupPolicyList = { + io.appwrite.models.BackupPolicyList.from(map = it as Map) + } + return client.call( + "GET", + apiPath, + apiHeaders, + apiParams, + responseType = io.appwrite.models.BackupPolicyList::class.java, + converter, + ) + } + + /** + * Create a new backup policy. + * + * @param policyId Policy ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars. + * @param services Array of services to backup + * @param retention Days to keep backups before deletion + * @param schedule Schedule CRON syntax. + * @param name Policy name. Max length: 128 chars. + * @param resourceId Resource ID. When set, only this single resource will be backed up. + * @param enabled Is policy enabled? When set to 'disabled', no backups will be taken + * @return [io.appwrite.models.BackupPolicy] + */ + @JvmOverloads + @Throws(AppwriteException::class) + suspend fun createPolicy( + policyId: String, + services: List, + retention: Long, + schedule: String, + name: String? = null, + resourceId: String? = null, + enabled: Boolean? = null, + ): io.appwrite.models.BackupPolicy { + val apiPath = "/backups/policies" + + val apiParams = mutableMapOf( + "policyId" to policyId, + "name" to name, + "services" to services, + "resourceId" to resourceId, + "enabled" to enabled, + "retention" to retention, + "schedule" to schedule, + ) + val apiHeaders = mutableMapOf( + "content-type" to "application/json", + ) + val converter: (Any) -> io.appwrite.models.BackupPolicy = { + io.appwrite.models.BackupPolicy.from(map = it as Map) + } + return client.call( + "POST", + apiPath, + apiHeaders, + apiParams, + responseType = io.appwrite.models.BackupPolicy::class.java, + converter, + ) + } + + /** + * Get a backup policy using it's ID. + * + * @param policyId Policy ID. Choose a custom ID`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars. + * @return [io.appwrite.models.BackupPolicy] + */ + @Throws(AppwriteException::class) + suspend fun getPolicy( + policyId: String, + ): io.appwrite.models.BackupPolicy { + val apiPath = "/backups/policies/{policyId}" + .replace("{policyId}", policyId) + + val apiParams = mutableMapOf( + ) + val apiHeaders = mutableMapOf( + ) + val converter: (Any) -> io.appwrite.models.BackupPolicy = { + io.appwrite.models.BackupPolicy.from(map = it as Map) + } + return client.call( + "GET", + apiPath, + apiHeaders, + apiParams, + responseType = io.appwrite.models.BackupPolicy::class.java, + converter, + ) + } + + /** + * Update an existing policy using it's ID. + * + * @param policyId Policy ID. Choose a custom ID`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars. + * @param name Policy name. Max length: 128 chars. + * @param retention Days to keep backups before deletion + * @param schedule Cron expression + * @param enabled Is Backup enabled? When set to 'disabled', No backup will be taken + * @return [io.appwrite.models.BackupPolicy] + */ + @JvmOverloads + @Throws(AppwriteException::class) + suspend fun updatePolicy( + policyId: String, + name: String? = null, + retention: Long? = null, + schedule: String? = null, + enabled: Boolean? = null, + ): io.appwrite.models.BackupPolicy { + val apiPath = "/backups/policies/{policyId}" + .replace("{policyId}", policyId) + + val apiParams = mutableMapOf( + "name" to name, + "retention" to retention, + "schedule" to schedule, + "enabled" to enabled, + ) + val apiHeaders = mutableMapOf( + "content-type" to "application/json", + ) + val converter: (Any) -> io.appwrite.models.BackupPolicy = { + io.appwrite.models.BackupPolicy.from(map = it as Map) + } + return client.call( + "PATCH", + apiPath, + apiHeaders, + apiParams, + responseType = io.appwrite.models.BackupPolicy::class.java, + converter, + ) + } + + /** + * Delete a policy using it's ID. + * + * @param policyId Policy ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars. + * @return [Any] + */ + @Throws(AppwriteException::class) + suspend fun deletePolicy( + policyId: String, + ): Any { + val apiPath = "/backups/policies/{policyId}" + .replace("{policyId}", policyId) + + val apiParams = mutableMapOf( + ) + val apiHeaders = mutableMapOf( + "content-type" to "application/json", + ) + return client.call( + "DELETE", + apiPath, + apiHeaders, + apiParams, + responseType = Any::class.java, + ) + } + + /** + * Create and trigger a new restoration for a backup on a project. + * + * @param archiveId Backup archive ID to restore + * @param services Array of services to restore + * @param newResourceId Unique Id. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars. + * @param newResourceName Database name. Max length: 128 chars. + * @return [io.appwrite.models.BackupRestoration] + */ + @JvmOverloads + @Throws(AppwriteException::class) + suspend fun createRestoration( + archiveId: String, + services: List, + newResourceId: String? = null, + newResourceName: String? = null, + ): io.appwrite.models.BackupRestoration { + val apiPath = "/backups/restoration" + + val apiParams = mutableMapOf( + "archiveId" to archiveId, + "services" to services, + "newResourceId" to newResourceId, + "newResourceName" to newResourceName, + ) + val apiHeaders = mutableMapOf( + "content-type" to "application/json", + ) + val converter: (Any) -> io.appwrite.models.BackupRestoration = { + io.appwrite.models.BackupRestoration.from(map = it as Map) + } + return client.call( + "POST", + apiPath, + apiHeaders, + apiParams, + responseType = io.appwrite.models.BackupRestoration::class.java, + converter, + ) + } + + /** + * List all backup restorations for a project. + * + * @param queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. + * @return [io.appwrite.models.BackupRestorationList] + */ + @JvmOverloads + @Throws(AppwriteException::class) + suspend fun listRestorations( + queries: List? = null, + ): io.appwrite.models.BackupRestorationList { + val apiPath = "/backups/restorations" + + val apiParams = mutableMapOf( + "queries" to queries, + ) + val apiHeaders = mutableMapOf( + ) + val converter: (Any) -> io.appwrite.models.BackupRestorationList = { + io.appwrite.models.BackupRestorationList.from(map = it as Map) + } + return client.call( + "GET", + apiPath, + apiHeaders, + apiParams, + responseType = io.appwrite.models.BackupRestorationList::class.java, + converter, + ) + } + + /** + * Get the current status of a backup restoration. + * + * @param restorationId Restoration ID. Choose a custom ID`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars. + * @return [io.appwrite.models.BackupRestoration] + */ + @Throws(AppwriteException::class) + suspend fun getRestoration( + restorationId: String, + ): io.appwrite.models.BackupRestoration { + val apiPath = "/backups/restorations/{restorationId}" + .replace("{restorationId}", restorationId) + + val apiParams = mutableMapOf( + ) + val apiHeaders = mutableMapOf( + ) + val converter: (Any) -> io.appwrite.models.BackupRestoration = { + io.appwrite.models.BackupRestoration.from(map = it as Map) + } + return client.call( + "GET", + apiPath, + apiHeaders, + apiParams, + responseType = io.appwrite.models.BackupRestoration::class.java, + converter, + ) + } + +} \ No newline at end of file diff --git a/src/main/kotlin/io/appwrite/services/Health.kt b/src/main/kotlin/io/appwrite/services/Health.kt index a3c4e0fa..68029b2d 100644 --- a/src/main/kotlin/io/appwrite/services/Health.kt +++ b/src/main/kotlin/io/appwrite/services/Health.kt @@ -210,6 +210,68 @@ class Health(client: Client) : Service(client) { ) } + /** + * Get billing project aggregation queue. + * + * @param threshold Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000. + * @return [io.appwrite.models.HealthQueue] + */ + @JvmOverloads + @Throws(AppwriteException::class) + suspend fun getQueueBillingProjectAggregation( + threshold: Long? = null, + ): io.appwrite.models.HealthQueue { + val apiPath = "/health/queue/billing-project-aggregation" + + val apiParams = mutableMapOf( + "threshold" to threshold, + ) + val apiHeaders = mutableMapOf( + ) + val converter: (Any) -> io.appwrite.models.HealthQueue = { + io.appwrite.models.HealthQueue.from(map = it as Map) + } + return client.call( + "GET", + apiPath, + apiHeaders, + apiParams, + responseType = io.appwrite.models.HealthQueue::class.java, + converter, + ) + } + + /** + * Get billing team aggregation queue. + * + * @param threshold Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000. + * @return [io.appwrite.models.HealthQueue] + */ + @JvmOverloads + @Throws(AppwriteException::class) + suspend fun getQueueBillingTeamAggregation( + threshold: Long? = null, + ): io.appwrite.models.HealthQueue { + val apiPath = "/health/queue/billing-team-aggregation" + + val apiParams = mutableMapOf( + "threshold" to threshold, + ) + val apiHeaders = mutableMapOf( + ) + val converter: (Any) -> io.appwrite.models.HealthQueue = { + io.appwrite.models.HealthQueue.from(map = it as Map) + } + return client.call( + "GET", + apiPath, + apiHeaders, + apiParams, + responseType = io.appwrite.models.HealthQueue::class.java, + converter, + ) + } + /** * Get the number of builds that are waiting to be processed in the Appwrite internal queue server. * @@ -241,6 +303,37 @@ class Health(client: Client) : Service(client) { ) } + /** + * Get the priority builds queue size. + * + * @param threshold Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 500. + * @return [io.appwrite.models.HealthQueue] + */ + @JvmOverloads + @Throws(AppwriteException::class) + suspend fun getQueuePriorityBuilds( + threshold: Long? = null, + ): io.appwrite.models.HealthQueue { + val apiPath = "/health/queue/builds-priority" + + val apiParams = mutableMapOf( + "threshold" to threshold, + ) + val apiHeaders = mutableMapOf( + ) + val converter: (Any) -> io.appwrite.models.HealthQueue = { + io.appwrite.models.HealthQueue.from(map = it as Map) + } + return client.call( + "GET", + apiPath, + apiHeaders, + apiParams, + responseType = io.appwrite.models.HealthQueue::class.java, + converter, + ) + } + /** * Get the number of certificates that are waiting to be issued against [Letsencrypt](https://letsencrypt.org/) in the Appwrite internal queue server. * @@ -527,6 +620,37 @@ class Health(client: Client) : Service(client) { ) } + /** + * Get region manager queue. + * + * @param threshold Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 100. + * @return [io.appwrite.models.HealthQueue] + */ + @JvmOverloads + @Throws(AppwriteException::class) + suspend fun getQueueRegionManager( + threshold: Long? = null, + ): io.appwrite.models.HealthQueue { + val apiPath = "/health/queue/region-manager" + + val apiParams = mutableMapOf( + "threshold" to threshold, + ) + val apiHeaders = mutableMapOf( + ) + val converter: (Any) -> io.appwrite.models.HealthQueue = { + io.appwrite.models.HealthQueue.from(map = it as Map) + } + return client.call( + "GET", + apiPath, + apiHeaders, + apiParams, + responseType = io.appwrite.models.HealthQueue::class.java, + converter, + ) + } + /** * Get the number of metrics that are waiting to be processed in the Appwrite stats resources queue. * @@ -589,6 +713,37 @@ class Health(client: Client) : Service(client) { ) } + /** + * Get threats queue. + * + * @param threshold Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 100. + * @return [io.appwrite.models.HealthQueue] + */ + @JvmOverloads + @Throws(AppwriteException::class) + suspend fun getQueueThreats( + threshold: Long? = null, + ): io.appwrite.models.HealthQueue { + val apiPath = "/health/queue/threats" + + val apiParams = mutableMapOf( + "threshold" to threshold, + ) + val apiHeaders = mutableMapOf( + ) + val converter: (Any) -> io.appwrite.models.HealthQueue = { + io.appwrite.models.HealthQueue.from(map = it as Map) + } + return client.call( + "GET", + apiPath, + apiHeaders, + apiParams, + responseType = io.appwrite.models.HealthQueue::class.java, + converter, + ) + } + /** * Get the number of webhooks that are waiting to be processed in the Appwrite internal queue server. * diff --git a/src/main/kotlin/io/appwrite/services/Organizations.kt b/src/main/kotlin/io/appwrite/services/Organizations.kt new file mode 100644 index 00000000..13267c10 --- /dev/null +++ b/src/main/kotlin/io/appwrite/services/Organizations.kt @@ -0,0 +1,74 @@ +package io.appwrite.services + +import io.appwrite.Client +import io.appwrite.models.* +import io.appwrite.enums.* +import io.appwrite.exceptions.AppwriteException +import io.appwrite.extensions.classOf +import okhttp3.Cookie +import java.io.File + +/** + * +**/ +class Organizations(client: Client) : Service(client) { + + /** + * Delete an organization. + * + * @param organizationId Team ID. + * @return [Any] + */ + @Throws(AppwriteException::class) + suspend fun delete( + organizationId: String, + ): Any { + val apiPath = "/organizations/{organizationId}" + .replace("{organizationId}", organizationId) + + val apiParams = mutableMapOf( + ) + val apiHeaders = mutableMapOf( + "content-type" to "application/json", + ) + return client.call( + "DELETE", + apiPath, + apiHeaders, + apiParams, + responseType = Any::class.java, + ) + } + + /** + * Get estimation for deleting an organization. + * + * @param organizationId Team ID. + * @return [io.appwrite.models.EstimationDeleteOrganization] + */ + @Throws(AppwriteException::class) + suspend fun estimationDeleteOrganization( + organizationId: String, + ): io.appwrite.models.EstimationDeleteOrganization { + val apiPath = "/organizations/{organizationId}/estimations/delete-organization" + .replace("{organizationId}", organizationId) + + val apiParams = mutableMapOf( + ) + val apiHeaders = mutableMapOf( + "content-type" to "application/json", + ) + val converter: (Any) -> io.appwrite.models.EstimationDeleteOrganization = { + io.appwrite.models.EstimationDeleteOrganization.from(map = it as Map) + } + return client.call( + "PATCH", + apiPath, + apiHeaders, + apiParams, + responseType = io.appwrite.models.EstimationDeleteOrganization::class.java, + converter, + ) + } + +} \ No newline at end of file diff --git a/src/main/kotlin/io/appwrite/services/Storage.kt b/src/main/kotlin/io/appwrite/services/Storage.kt index efbe1c0a..e021eede 100644 --- a/src/main/kotlin/io/appwrite/services/Storage.kt +++ b/src/main/kotlin/io/appwrite/services/Storage.kt @@ -60,7 +60,7 @@ class Storage(client: Client) : Service(client) { * @param permissions An array of permission strings. By default, no user is granted with any permissions. [Learn more about permissions](https://appwrite.io/docs/permissions). * @param fileSecurity Enables configuring permissions for individual file. A user needs one of file or bucket level permissions to access a file. [Learn more about permissions](https://appwrite.io/docs/permissions). * @param enabled Is bucket enabled? When set to 'disabled', users cannot access the files in this bucket but Server SDKs with and API key can still access the bucket. No files are lost when this is toggled. - * @param maximumFileSize Maximum file size allowed in bytes. Maximum allowed value is 30MB. + * @param maximumFileSize Maximum file size allowed in bytes. Maximum allowed value is 5GB. * @param allowedFileExtensions Allowed file extensions. Maximum of 100 extensions are allowed, each 64 characters long. * @param compression Compression algorithm chosen for compression. Can be one of none, [gzip](https://en.wikipedia.org/wiki/Gzip), or [zstd](https://en.wikipedia.org/wiki/Zstd), For file size above 20MB compression is skipped even if it's enabled * @param encryption Is encryption enabled? For file size above 20MB encryption is skipped even if it's enabled @@ -152,7 +152,7 @@ class Storage(client: Client) : Service(client) { * @param permissions An array of permission strings. By default, the current permissions are inherited. [Learn more about permissions](https://appwrite.io/docs/permissions). * @param fileSecurity Enables configuring permissions for individual file. A user needs one of file or bucket level permissions to access a file. [Learn more about permissions](https://appwrite.io/docs/permissions). * @param enabled Is bucket enabled? When set to 'disabled', users cannot access the files in this bucket but Server SDKs with and API key can still access the bucket. No files are lost when this is toggled. - * @param maximumFileSize Maximum file size allowed in bytes. Maximum allowed value is 30MB. + * @param maximumFileSize Maximum file size allowed in bytes. Maximum allowed value is 5GB. * @param allowedFileExtensions Allowed file extensions. Maximum of 100 extensions are allowed, each 64 characters long. * @param compression Compression algorithm chosen for compression. Can be one of none, [gzip](https://en.wikipedia.org/wiki/Gzip), or [zstd](https://en.wikipedia.org/wiki/Zstd), For file size above 20MB compression is skipped even if it's enabled * @param encryption Is encryption enabled? For file size above 20MB encryption is skipped even if it's enabled diff --git a/src/main/kotlin/io/appwrite/services/Teams.kt b/src/main/kotlin/io/appwrite/services/Teams.kt index 9b4db3b9..caeeea31 100644 --- a/src/main/kotlin/io/appwrite/services/Teams.kt +++ b/src/main/kotlin/io/appwrite/services/Teams.kt @@ -319,7 +319,7 @@ class Teams(client: Client) : Service(client) { @Throws(AppwriteException::class) suspend fun createMembership( teamId: String, - roles: List, + roles: List, email: String? = null, userId: String? = null, phone: String? = null, @@ -399,7 +399,7 @@ class Teams(client: Client) : Service(client) { suspend fun updateMembership( teamId: String, membershipId: String, - roles: List, + roles: List, ): io.appwrite.models.Membership { val apiPath = "/teams/{teamId}/memberships/{membershipId}" .replace("{teamId}", teamId)