diff --git a/Appwrite/Appwrite.csproj b/Appwrite/Appwrite.csproj index a764f824..962ee238 100644 --- a/Appwrite/Appwrite.csproj +++ b/Appwrite/Appwrite.csproj @@ -2,7 +2,7 @@ netstandard2.0;net462 Appwrite - 0.25.0 + 0.25.1 Appwrite Team Appwrite Team diff --git a/Appwrite/Client.cs b/Appwrite/Client.cs index fd3cef30..957db752 100644 --- a/Appwrite/Client.cs +++ b/Appwrite/Client.cs @@ -69,11 +69,11 @@ public Client( _headers = new Dictionary() { { "content-type", "application/json" }, - { "user-agent" , $"AppwriteDotNetSDK/0.25.0 ({Environment.OSVersion.Platform}; {Environment.OSVersion.VersionString})"}, + { "user-agent" , $"AppwriteDotNetSDK/0.25.1 ({Environment.OSVersion.Platform}; {Environment.OSVersion.VersionString})"}, { "x-sdk-name", ".NET" }, { "x-sdk-platform", "server" }, { "x-sdk-language", "dotnet" }, - { "x-sdk-version", "0.25.0"}, + { "x-sdk-version", "0.25.1"}, { "X-Appwrite-Response-Format", "1.8.0" } }; diff --git a/Appwrite/Enums/BackupServices.cs b/Appwrite/Enums/BackupServices.cs new file mode 100644 index 00000000..ef9d1a17 --- /dev/null +++ b/Appwrite/Enums/BackupServices.cs @@ -0,0 +1,18 @@ +using System; + +namespace Appwrite.Enums +{ + public class BackupServices : IEnum + { + public string Value { get; private set; } + + public BackupServices(string value) + { + Value = value; + } + + public static BackupServices Databases => new BackupServices("databases"); + public static BackupServices Functions => new BackupServices("functions"); + public static BackupServices Storage => new BackupServices("storage"); + } +} diff --git a/Appwrite/Enums/BuildRuntime.cs b/Appwrite/Enums/BuildRuntime.cs index c71e7d4c..c6c549aa 100644 --- a/Appwrite/Enums/BuildRuntime.cs +++ b/Appwrite/Enums/BuildRuntime.cs @@ -33,9 +33,6 @@ public BuildRuntime(string value) public static BuildRuntime Python312 => new BuildRuntime("python-3.12"); public static BuildRuntime PythonMl311 => new BuildRuntime("python-ml-3.11"); public static BuildRuntime PythonMl312 => new BuildRuntime("python-ml-3.12"); - public static BuildRuntime Deno121 => new BuildRuntime("deno-1.21"); - public static BuildRuntime Deno124 => new BuildRuntime("deno-1.24"); - public static BuildRuntime Deno135 => new BuildRuntime("deno-1.35"); public static BuildRuntime Deno140 => new BuildRuntime("deno-1.40"); public static BuildRuntime Deno146 => new BuildRuntime("deno-1.46"); public static BuildRuntime Deno20 => new BuildRuntime("deno-2.0"); @@ -50,6 +47,7 @@ public BuildRuntime(string value) public static BuildRuntime Dart35 => new BuildRuntime("dart-3.5"); public static BuildRuntime Dart38 => new BuildRuntime("dart-3.8"); public static BuildRuntime Dart39 => new BuildRuntime("dart-3.9"); + public static BuildRuntime Dart310 => new BuildRuntime("dart-3.10"); public static BuildRuntime Dotnet60 => new BuildRuntime("dotnet-6.0"); public static BuildRuntime Dotnet70 => new BuildRuntime("dotnet-7.0"); public static BuildRuntime Dotnet80 => new BuildRuntime("dotnet-8.0"); @@ -78,5 +76,6 @@ public BuildRuntime(string value) public static BuildRuntime Flutter329 => new BuildRuntime("flutter-3.29"); public static BuildRuntime Flutter332 => new BuildRuntime("flutter-3.32"); public static BuildRuntime Flutter335 => new BuildRuntime("flutter-3.35"); + public static BuildRuntime Flutter338 => new BuildRuntime("flutter-3.38"); } } diff --git a/Appwrite/Enums/OAuthProvider.cs b/Appwrite/Enums/OAuthProvider.cs index bac7ce78..d3abcb83 100644 --- a/Appwrite/Enums/OAuthProvider.cs +++ b/Appwrite/Enums/OAuthProvider.cs @@ -50,5 +50,7 @@ public OAuthProvider(string value) public static OAuthProvider Yandex => new OAuthProvider("yandex"); public static OAuthProvider Zoho => new OAuthProvider("zoho"); public static OAuthProvider Zoom => new OAuthProvider("zoom"); + public static OAuthProvider GithubImagine => new OAuthProvider("githubImagine"); + public static OAuthProvider GoogleImagine => new OAuthProvider("googleImagine"); } } diff --git a/Appwrite/Enums/Roles.cs b/Appwrite/Enums/Roles.cs deleted file mode 100644 index 35d6e088..00000000 --- a/Appwrite/Enums/Roles.cs +++ /dev/null @@ -1,18 +0,0 @@ -using System; - -namespace Appwrite.Enums -{ - public class Roles : IEnum - { - public string Value { get; private set; } - - public Roles(string value) - { - Value = value; - } - - public static Roles Admin => new Roles("admin"); - public static Roles Developer => new Roles("developer"); - public static Roles Owner => new Roles("owner"); - } -} diff --git a/Appwrite/Enums/Runtime.cs b/Appwrite/Enums/Runtime.cs index 3dc74510..2573c6c4 100644 --- a/Appwrite/Enums/Runtime.cs +++ b/Appwrite/Enums/Runtime.cs @@ -33,9 +33,6 @@ public Runtime(string value) public static Runtime Python312 => new Runtime("python-3.12"); public static Runtime PythonMl311 => new Runtime("python-ml-3.11"); public static Runtime PythonMl312 => new Runtime("python-ml-3.12"); - public static Runtime Deno121 => new Runtime("deno-1.21"); - public static Runtime Deno124 => new Runtime("deno-1.24"); - public static Runtime Deno135 => new Runtime("deno-1.35"); public static Runtime Deno140 => new Runtime("deno-1.40"); public static Runtime Deno146 => new Runtime("deno-1.46"); public static Runtime Deno20 => new Runtime("deno-2.0"); @@ -50,6 +47,7 @@ public Runtime(string value) public static Runtime Dart35 => new Runtime("dart-3.5"); public static Runtime Dart38 => new Runtime("dart-3.8"); public static Runtime Dart39 => new Runtime("dart-3.9"); + public static Runtime Dart310 => new Runtime("dart-3.10"); public static Runtime Dotnet60 => new Runtime("dotnet-6.0"); public static Runtime Dotnet70 => new Runtime("dotnet-7.0"); public static Runtime Dotnet80 => new Runtime("dotnet-8.0"); @@ -78,5 +76,6 @@ public Runtime(string value) public static Runtime Flutter329 => new Runtime("flutter-3.29"); public static Runtime Flutter332 => new Runtime("flutter-3.32"); public static Runtime Flutter335 => new Runtime("flutter-3.35"); + public static Runtime Flutter338 => new Runtime("flutter-3.38"); } } diff --git a/Appwrite/Enums/Scopes.cs b/Appwrite/Enums/Scopes.cs index df64383d..992d13c8 100644 --- a/Appwrite/Enums/Scopes.cs +++ b/Appwrite/Enums/Scopes.cs @@ -66,5 +66,13 @@ public Scopes(string value) public static Scopes AssistantRead => new Scopes("assistant.read"); public static Scopes TokensRead => new Scopes("tokens.read"); public static Scopes TokensWrite => new Scopes("tokens.write"); + public static Scopes PoliciesWrite => new Scopes("policies.write"); + public static Scopes PoliciesRead => new Scopes("policies.read"); + public static Scopes ArchivesRead => new Scopes("archives.read"); + public static Scopes ArchivesWrite => new Scopes("archives.write"); + public static Scopes RestorationsRead => new Scopes("restorations.read"); + public static Scopes RestorationsWrite => new Scopes("restorations.write"); + public static Scopes DomainsRead => new Scopes("domains.read"); + public static Scopes DomainsWrite => new Scopes("domains.write"); } } diff --git a/Appwrite/Models/BackupArchive.cs b/Appwrite/Models/BackupArchive.cs new file mode 100644 index 00000000..37d4e87e --- /dev/null +++ b/Appwrite/Models/BackupArchive.cs @@ -0,0 +1,109 @@ + +using System; +using System.Linq; +using System.Collections.Generic; +using System.Text.Json; +using System.Text.Json.Serialization; +using Appwrite.Enums; +using Appwrite.Extensions; + +namespace Appwrite.Models +{ + public class BackupArchive + { + [JsonPropertyName("$id")] + public string Id { get; private set; } + + [JsonPropertyName("$createdAt")] + public string CreatedAt { get; private set; } + + [JsonPropertyName("$updatedAt")] + public string UpdatedAt { get; private set; } + + [JsonPropertyName("policyId")] + public string PolicyId { get; private set; } + + [JsonPropertyName("size")] + public long Size { get; private set; } + + [JsonPropertyName("status")] + public string Status { get; private set; } + + [JsonPropertyName("startedAt")] + public string StartedAt { get; private set; } + + [JsonPropertyName("migrationId")] + public string MigrationId { get; private set; } + + [JsonPropertyName("services")] + public List Services { get; private set; } + + [JsonPropertyName("resources")] + public List Resources { get; private set; } + + [JsonPropertyName("resourceId")] + public string? ResourceId { get; private set; } + + [JsonPropertyName("resourceType")] + public string? ResourceType { get; private set; } + + public BackupArchive( + string id, + string createdAt, + string updatedAt, + string policyId, + long size, + string status, + string startedAt, + string migrationId, + List services, + List resources, + string? resourceId, + string? resourceType + ) { + Id = id; + CreatedAt = createdAt; + UpdatedAt = updatedAt; + PolicyId = policyId; + Size = size; + Status = status; + StartedAt = startedAt; + MigrationId = migrationId; + Services = services; + Resources = resources; + ResourceId = resourceId; + ResourceType = resourceType; + } + + public static BackupArchive From(Dictionary map) => new BackupArchive( + id: map["$id"].ToString(), + createdAt: map["$createdAt"].ToString(), + updatedAt: map["$updatedAt"].ToString(), + policyId: map["policyId"].ToString(), + size: Convert.ToInt64(map["size"]), + status: map["status"].ToString(), + startedAt: map["startedAt"].ToString(), + migrationId: map["migrationId"].ToString(), + services: map["services"].ConvertToList(), + resources: map["resources"].ConvertToList(), + resourceId: map.TryGetValue("resourceId", out var resourceId) ? resourceId?.ToString() : null, + resourceType: map.TryGetValue("resourceType", out var resourceType) ? resourceType?.ToString() : null + ); + + public Dictionary ToMap() => new Dictionary() + { + { "$id", Id }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, + { "policyId", PolicyId }, + { "size", Size }, + { "status", Status }, + { "startedAt", StartedAt }, + { "migrationId", MigrationId }, + { "services", Services }, + { "resources", Resources }, + { "resourceId", ResourceId }, + { "resourceType", ResourceType } + }; + } +} diff --git a/Appwrite/Models/BackupArchiveList.cs b/Appwrite/Models/BackupArchiveList.cs new file mode 100644 index 00000000..6c1e0df0 --- /dev/null +++ b/Appwrite/Models/BackupArchiveList.cs @@ -0,0 +1,39 @@ + +using System; +using System.Linq; +using System.Collections.Generic; +using System.Text.Json; +using System.Text.Json.Serialization; +using Appwrite.Enums; +using Appwrite.Extensions; + +namespace Appwrite.Models +{ + public class BackupArchiveList + { + [JsonPropertyName("total")] + public long Total { get; private set; } + + [JsonPropertyName("archives")] + public List Archives { get; private set; } + + public BackupArchiveList( + long total, + List archives + ) { + Total = total; + Archives = archives; + } + + public static BackupArchiveList From(Dictionary map) => new BackupArchiveList( + total: Convert.ToInt64(map["total"]), + archives: map["archives"].ConvertToList>().Select(it => BackupArchive.From(map: it)).ToList() + ); + + public Dictionary ToMap() => new Dictionary() + { + { "total", Total }, + { "archives", Archives.Select(it => it.ToMap()) } + }; + } +} diff --git a/Appwrite/Models/BackupPolicy.cs b/Appwrite/Models/BackupPolicy.cs new file mode 100644 index 00000000..7f1a5b2a --- /dev/null +++ b/Appwrite/Models/BackupPolicy.cs @@ -0,0 +1,102 @@ + +using System; +using System.Linq; +using System.Collections.Generic; +using System.Text.Json; +using System.Text.Json.Serialization; +using Appwrite.Enums; +using Appwrite.Extensions; + +namespace Appwrite.Models +{ + public class BackupPolicy + { + [JsonPropertyName("$id")] + public string Id { get; private set; } + + [JsonPropertyName("name")] + public string Name { get; private set; } + + [JsonPropertyName("$createdAt")] + public string CreatedAt { get; private set; } + + [JsonPropertyName("$updatedAt")] + public string UpdatedAt { get; private set; } + + [JsonPropertyName("services")] + public List Services { get; private set; } + + [JsonPropertyName("resources")] + public List Resources { get; private set; } + + [JsonPropertyName("resourceId")] + public string? ResourceId { get; private set; } + + [JsonPropertyName("resourceType")] + public string? ResourceType { get; private set; } + + [JsonPropertyName("retention")] + public long Retention { get; private set; } + + [JsonPropertyName("schedule")] + public string Schedule { get; private set; } + + [JsonPropertyName("enabled")] + public bool Enabled { get; private set; } + + public BackupPolicy( + string id, + string name, + string createdAt, + string updatedAt, + List services, + List resources, + string? resourceId, + string? resourceType, + long retention, + string schedule, + bool enabled + ) { + Id = id; + Name = name; + CreatedAt = createdAt; + UpdatedAt = updatedAt; + Services = services; + Resources = resources; + ResourceId = resourceId; + ResourceType = resourceType; + Retention = retention; + Schedule = schedule; + Enabled = enabled; + } + + public static BackupPolicy From(Dictionary map) => new BackupPolicy( + id: map["$id"].ToString(), + name: map["name"].ToString(), + createdAt: map["$createdAt"].ToString(), + updatedAt: map["$updatedAt"].ToString(), + services: map["services"].ConvertToList(), + resources: map["resources"].ConvertToList(), + resourceId: map.TryGetValue("resourceId", out var resourceId) ? resourceId?.ToString() : null, + resourceType: map.TryGetValue("resourceType", out var resourceType) ? resourceType?.ToString() : null, + retention: Convert.ToInt64(map["retention"]), + schedule: map["schedule"].ToString(), + enabled: (bool)map["enabled"] + ); + + public Dictionary ToMap() => new Dictionary() + { + { "$id", Id }, + { "name", Name }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, + { "services", Services }, + { "resources", Resources }, + { "resourceId", ResourceId }, + { "resourceType", ResourceType }, + { "retention", Retention }, + { "schedule", Schedule }, + { "enabled", Enabled } + }; + } +} diff --git a/Appwrite/Models/BackupPolicyList.cs b/Appwrite/Models/BackupPolicyList.cs new file mode 100644 index 00000000..414319b2 --- /dev/null +++ b/Appwrite/Models/BackupPolicyList.cs @@ -0,0 +1,39 @@ + +using System; +using System.Linq; +using System.Collections.Generic; +using System.Text.Json; +using System.Text.Json.Serialization; +using Appwrite.Enums; +using Appwrite.Extensions; + +namespace Appwrite.Models +{ + public class BackupPolicyList + { + [JsonPropertyName("total")] + public long Total { get; private set; } + + [JsonPropertyName("policies")] + public List Policies { get; private set; } + + public BackupPolicyList( + long total, + List policies + ) { + Total = total; + Policies = policies; + } + + public static BackupPolicyList From(Dictionary map) => new BackupPolicyList( + total: Convert.ToInt64(map["total"]), + policies: map["policies"].ConvertToList>().Select(it => BackupPolicy.From(map: it)).ToList() + ); + + public Dictionary ToMap() => new Dictionary() + { + { "total", Total }, + { "policies", Policies.Select(it => it.ToMap()) } + }; + } +} diff --git a/Appwrite/Models/BackupRestoration.cs b/Appwrite/Models/BackupRestoration.cs new file mode 100644 index 00000000..ecf5d7a2 --- /dev/null +++ b/Appwrite/Models/BackupRestoration.cs @@ -0,0 +1,102 @@ + +using System; +using System.Linq; +using System.Collections.Generic; +using System.Text.Json; +using System.Text.Json.Serialization; +using Appwrite.Enums; +using Appwrite.Extensions; + +namespace Appwrite.Models +{ + public class BackupRestoration + { + [JsonPropertyName("$id")] + public string Id { get; private set; } + + [JsonPropertyName("$createdAt")] + public string CreatedAt { get; private set; } + + [JsonPropertyName("$updatedAt")] + public string UpdatedAt { get; private set; } + + [JsonPropertyName("archiveId")] + public string ArchiveId { get; private set; } + + [JsonPropertyName("policyId")] + public string PolicyId { get; private set; } + + [JsonPropertyName("status")] + public string Status { get; private set; } + + [JsonPropertyName("startedAt")] + public string StartedAt { get; private set; } + + [JsonPropertyName("migrationId")] + public string MigrationId { get; private set; } + + [JsonPropertyName("services")] + public List Services { get; private set; } + + [JsonPropertyName("resources")] + public List Resources { get; private set; } + + [JsonPropertyName("options")] + public string Options { get; private set; } + + public BackupRestoration( + string id, + string createdAt, + string updatedAt, + string archiveId, + string policyId, + string status, + string startedAt, + string migrationId, + List services, + List resources, + string options + ) { + Id = id; + CreatedAt = createdAt; + UpdatedAt = updatedAt; + ArchiveId = archiveId; + PolicyId = policyId; + Status = status; + StartedAt = startedAt; + MigrationId = migrationId; + Services = services; + Resources = resources; + Options = options; + } + + public static BackupRestoration From(Dictionary map) => new BackupRestoration( + id: map["$id"].ToString(), + createdAt: map["$createdAt"].ToString(), + updatedAt: map["$updatedAt"].ToString(), + archiveId: map["archiveId"].ToString(), + policyId: map["policyId"].ToString(), + status: map["status"].ToString(), + startedAt: map["startedAt"].ToString(), + migrationId: map["migrationId"].ToString(), + services: map["services"].ConvertToList(), + resources: map["resources"].ConvertToList(), + options: map["options"].ToString() + ); + + public Dictionary ToMap() => new Dictionary() + { + { "$id", Id }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, + { "archiveId", ArchiveId }, + { "policyId", PolicyId }, + { "status", Status }, + { "startedAt", StartedAt }, + { "migrationId", MigrationId }, + { "services", Services }, + { "resources", Resources }, + { "options", Options } + }; + } +} diff --git a/Appwrite/Models/BackupRestorationList.cs b/Appwrite/Models/BackupRestorationList.cs new file mode 100644 index 00000000..51a304c0 --- /dev/null +++ b/Appwrite/Models/BackupRestorationList.cs @@ -0,0 +1,39 @@ + +using System; +using System.Linq; +using System.Collections.Generic; +using System.Text.Json; +using System.Text.Json.Serialization; +using Appwrite.Enums; +using Appwrite.Extensions; + +namespace Appwrite.Models +{ + public class BackupRestorationList + { + [JsonPropertyName("total")] + public long Total { get; private set; } + + [JsonPropertyName("restorations")] + public List Restorations { get; private set; } + + public BackupRestorationList( + long total, + List restorations + ) { + Total = total; + Restorations = restorations; + } + + public static BackupRestorationList From(Dictionary map) => new BackupRestorationList( + total: Convert.ToInt64(map["total"]), + restorations: map["restorations"].ConvertToList>().Select(it => BackupRestoration.From(map: it)).ToList() + ); + + public Dictionary ToMap() => new Dictionary() + { + { "total", Total }, + { "restorations", Restorations.Select(it => it.ToMap()) } + }; + } +} diff --git a/Appwrite/Models/Collection.cs b/Appwrite/Models/Collection.cs index 618f72ba..a7281125 100644 --- a/Appwrite/Models/Collection.cs +++ b/Appwrite/Models/Collection.cs @@ -41,6 +41,12 @@ public class Collection [JsonPropertyName("indexes")] public List Indexes { get; private set; } + [JsonPropertyName("bytesMax")] + public long BytesMax { get; private set; } + + [JsonPropertyName("bytesUsed")] + public long BytesUsed { get; private set; } + public Collection( string id, string createdAt, @@ -51,7 +57,9 @@ public Collection( bool enabled, bool documentSecurity, List attributes, - List indexes + List indexes, + long bytesMax, + long bytesUsed ) { Id = id; CreatedAt = createdAt; @@ -63,6 +71,8 @@ List indexes DocumentSecurity = documentSecurity; Attributes = attributes; Indexes = indexes; + BytesMax = bytesMax; + BytesUsed = bytesUsed; } public static Collection From(Dictionary map) => new Collection( @@ -75,7 +85,9 @@ List indexes enabled: (bool)map["enabled"], documentSecurity: (bool)map["documentSecurity"], attributes: map["attributes"].ConvertToList(), - indexes: map["indexes"].ConvertToList>().Select(it => Index.From(map: it)).ToList() + indexes: map["indexes"].ConvertToList>().Select(it => Index.From(map: it)).ToList(), + bytesMax: Convert.ToInt64(map["bytesMax"]), + bytesUsed: Convert.ToInt64(map["bytesUsed"]) ); public Dictionary ToMap() => new Dictionary() @@ -89,7 +101,9 @@ List indexes { "enabled", Enabled }, { "documentSecurity", DocumentSecurity }, { "attributes", Attributes }, - { "indexes", Indexes.Select(it => it.ToMap()) } + { "indexes", Indexes.Select(it => it.ToMap()) }, + { "bytesMax", BytesMax }, + { "bytesUsed", BytesUsed } }; } } diff --git a/Appwrite/Models/Database.cs b/Appwrite/Models/Database.cs index 5a980bf0..7143316b 100644 --- a/Appwrite/Models/Database.cs +++ b/Appwrite/Models/Database.cs @@ -29,13 +29,21 @@ public class Database [JsonPropertyName("type")] public DatabaseType Type { get; private set; } + [JsonPropertyName("policies")] + public List Policies { get; private set; } + + [JsonPropertyName("archives")] + public List Archives { get; private set; } + public Database( string id, string name, string createdAt, string updatedAt, bool enabled, - DatabaseType type + DatabaseType type, + List policies, + List archives ) { Id = id; Name = name; @@ -43,6 +51,8 @@ DatabaseType type UpdatedAt = updatedAt; Enabled = enabled; Type = type; + Policies = policies; + Archives = archives; } public static Database From(Dictionary map) => new Database( @@ -51,7 +61,9 @@ DatabaseType type createdAt: map["$createdAt"].ToString(), updatedAt: map["$updatedAt"].ToString(), enabled: (bool)map["enabled"], - type: new DatabaseType(map["type"].ToString()!) + type: new DatabaseType(map["type"].ToString()!), + policies: map["policies"].ConvertToList>().Select(it => Index.From(map: it)).ToList(), + archives: map["archives"].ConvertToList>().Select(it => Collection.From(map: it)).ToList() ); public Dictionary ToMap() => new Dictionary() @@ -61,7 +73,9 @@ DatabaseType type { "$createdAt", CreatedAt }, { "$updatedAt", UpdatedAt }, { "enabled", Enabled }, - { "type", Type.Value } + { "type", Type.Value }, + { "policies", Policies.Select(it => it.ToMap()) }, + { "archives", Archives.Select(it => it.ToMap()) } }; } } diff --git a/Appwrite/Models/EstimationDeleteOrganization.cs b/Appwrite/Models/EstimationDeleteOrganization.cs new file mode 100644 index 00000000..a2d1c290 --- /dev/null +++ b/Appwrite/Models/EstimationDeleteOrganization.cs @@ -0,0 +1,32 @@ + +using System; +using System.Linq; +using System.Collections.Generic; +using System.Text.Json; +using System.Text.Json.Serialization; +using Appwrite.Enums; +using Appwrite.Extensions; + +namespace Appwrite.Models +{ + public class EstimationDeleteOrganization + { + [JsonPropertyName("unpaidInvoices")] + public List UnpaidInvoices { get; private set; } + + public EstimationDeleteOrganization( + List unpaidInvoices + ) { + UnpaidInvoices = unpaidInvoices; + } + + public static EstimationDeleteOrganization From(Dictionary map) => new EstimationDeleteOrganization( + unpaidInvoices: map["unpaidInvoices"].ConvertToList>().Select(it => Invoice.From(map: it)).ToList() + ); + + public Dictionary ToMap() => new Dictionary() + { + { "unpaidInvoices", UnpaidInvoices.Select(it => it.ToMap()) } + }; + } +} diff --git a/Appwrite/Models/Invoice.cs b/Appwrite/Models/Invoice.cs new file mode 100644 index 00000000..dc7ceae0 --- /dev/null +++ b/Appwrite/Models/Invoice.cs @@ -0,0 +1,179 @@ + +using System; +using System.Linq; +using System.Collections.Generic; +using System.Text.Json; +using System.Text.Json.Serialization; +using Appwrite.Enums; +using Appwrite.Extensions; + +namespace Appwrite.Models +{ + public class Invoice + { + [JsonPropertyName("$id")] + public string Id { get; private set; } + + [JsonPropertyName("$createdAt")] + public string CreatedAt { get; private set; } + + [JsonPropertyName("$updatedAt")] + public string UpdatedAt { get; private set; } + + [JsonPropertyName("$permissions")] + public List Permissions { get; private set; } + + [JsonPropertyName("teamId")] + public string TeamId { get; private set; } + + [JsonPropertyName("aggregationId")] + public string AggregationId { get; private set; } + + [JsonPropertyName("plan")] + public string Plan { get; private set; } + + [JsonPropertyName("usage")] + public List Usage { get; private set; } + + [JsonPropertyName("amount")] + public double Amount { get; private set; } + + [JsonPropertyName("tax")] + public double Tax { get; private set; } + + [JsonPropertyName("taxAmount")] + public double TaxAmount { get; private set; } + + [JsonPropertyName("vat")] + public double Vat { get; private set; } + + [JsonPropertyName("vatAmount")] + public double VatAmount { get; private set; } + + [JsonPropertyName("grossAmount")] + public double GrossAmount { get; private set; } + + [JsonPropertyName("creditsUsed")] + public double CreditsUsed { get; private set; } + + [JsonPropertyName("currency")] + public string Currency { get; private set; } + + [JsonPropertyName("clientSecret")] + public string ClientSecret { get; private set; } + + [JsonPropertyName("status")] + public string Status { get; private set; } + + [JsonPropertyName("lastError")] + public string LastError { get; private set; } + + [JsonPropertyName("dueAt")] + public string DueAt { get; private set; } + + [JsonPropertyName("from")] + public string From { get; private set; } + + [JsonPropertyName("to")] + public string To { get; private set; } + + public Invoice( + string id, + string createdAt, + string updatedAt, + List permissions, + string teamId, + string aggregationId, + string plan, + List usage, + double amount, + double tax, + double taxAmount, + double vat, + double vatAmount, + double grossAmount, + double creditsUsed, + string currency, + string clientSecret, + string status, + string lastError, + string dueAt, + string xfrom, + string to + ) { + Id = id; + CreatedAt = createdAt; + UpdatedAt = updatedAt; + Permissions = permissions; + TeamId = teamId; + AggregationId = aggregationId; + Plan = plan; + Usage = usage; + Amount = amount; + Tax = tax; + TaxAmount = taxAmount; + Vat = vat; + VatAmount = vatAmount; + GrossAmount = grossAmount; + CreditsUsed = creditsUsed; + Currency = currency; + ClientSecret = clientSecret; + Status = status; + LastError = lastError; + DueAt = dueAt; + From = xfrom; + To = to; + } + + public static Invoice From(Dictionary map) => new Invoice( + id: map["$id"].ToString(), + createdAt: map["$createdAt"].ToString(), + updatedAt: map["$updatedAt"].ToString(), + permissions: map["$permissions"].ConvertToList(), + teamId: map["teamId"].ToString(), + aggregationId: map["aggregationId"].ToString(), + plan: map["plan"].ToString(), + usage: map["usage"].ConvertToList>().Select(it => UsageResources.From(map: it)).ToList(), + amount: Convert.ToDouble(map["amount"]), + tax: Convert.ToDouble(map["tax"]), + taxAmount: Convert.ToDouble(map["taxAmount"]), + vat: Convert.ToDouble(map["vat"]), + vatAmount: Convert.ToDouble(map["vatAmount"]), + grossAmount: Convert.ToDouble(map["grossAmount"]), + creditsUsed: Convert.ToDouble(map["creditsUsed"]), + currency: map["currency"].ToString(), + clientSecret: map["clientSecret"].ToString(), + status: map["status"].ToString(), + lastError: map["lastError"].ToString(), + dueAt: map["dueAt"].ToString(), + xfrom: map["from"].ToString(), + to: map["to"].ToString() + ); + + public Dictionary ToMap() => new Dictionary() + { + { "$id", Id }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, + { "$permissions", Permissions }, + { "teamId", TeamId }, + { "aggregationId", AggregationId }, + { "plan", Plan }, + { "usage", Usage.Select(it => it.ToMap()) }, + { "amount", Amount }, + { "tax", Tax }, + { "taxAmount", TaxAmount }, + { "vat", Vat }, + { "vatAmount", VatAmount }, + { "grossAmount", GrossAmount }, + { "creditsUsed", CreditsUsed }, + { "currency", Currency }, + { "clientSecret", ClientSecret }, + { "status", Status }, + { "lastError", LastError }, + { "dueAt", DueAt }, + { "from", From }, + { "to", To } + }; + } +} diff --git a/Appwrite/Models/Key.cs b/Appwrite/Models/Key.cs new file mode 100644 index 00000000..eb02fa61 --- /dev/null +++ b/Appwrite/Models/Key.cs @@ -0,0 +1,88 @@ + +using System; +using System.Linq; +using System.Collections.Generic; +using System.Text.Json; +using System.Text.Json.Serialization; +using Appwrite.Enums; +using Appwrite.Extensions; + +namespace Appwrite.Models +{ + public class Key + { + [JsonPropertyName("$id")] + public string Id { get; private set; } + + [JsonPropertyName("$createdAt")] + public string CreatedAt { get; private set; } + + [JsonPropertyName("$updatedAt")] + public string UpdatedAt { get; private set; } + + [JsonPropertyName("name")] + public string Name { get; private set; } + + [JsonPropertyName("expire")] + public string Expire { get; private set; } + + [JsonPropertyName("scopes")] + public List Scopes { get; private set; } + + [JsonPropertyName("secret")] + public string Secret { get; private set; } + + [JsonPropertyName("accessedAt")] + public string AccessedAt { get; private set; } + + [JsonPropertyName("sdks")] + public List Sdks { get; private set; } + + public Key( + string id, + string createdAt, + string updatedAt, + string name, + string expire, + List scopes, + string secret, + string accessedAt, + List sdks + ) { + Id = id; + CreatedAt = createdAt; + UpdatedAt = updatedAt; + Name = name; + Expire = expire; + Scopes = scopes; + Secret = secret; + AccessedAt = accessedAt; + Sdks = sdks; + } + + public static Key From(Dictionary map) => new Key( + id: map["$id"].ToString(), + createdAt: map["$createdAt"].ToString(), + updatedAt: map["$updatedAt"].ToString(), + name: map["name"].ToString(), + expire: map["expire"].ToString(), + scopes: map["scopes"].ConvertToList(), + secret: map["secret"].ToString(), + accessedAt: map["accessedAt"].ToString(), + sdks: map["sdks"].ConvertToList() + ); + + public Dictionary ToMap() => new Dictionary() + { + { "$id", Id }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, + { "name", Name }, + { "expire", Expire }, + { "scopes", Scopes }, + { "secret", Secret }, + { "accessedAt", AccessedAt }, + { "sdks", Sdks } + }; + } +} diff --git a/Appwrite/Models/KeyList.cs b/Appwrite/Models/KeyList.cs new file mode 100644 index 00000000..35216f0b --- /dev/null +++ b/Appwrite/Models/KeyList.cs @@ -0,0 +1,39 @@ + +using System; +using System.Linq; +using System.Collections.Generic; +using System.Text.Json; +using System.Text.Json.Serialization; +using Appwrite.Enums; +using Appwrite.Extensions; + +namespace Appwrite.Models +{ + public class KeyList + { + [JsonPropertyName("total")] + public long Total { get; private set; } + + [JsonPropertyName("keys")] + public List Keys { get; private set; } + + public KeyList( + long total, + List keys + ) { + Total = total; + Keys = keys; + } + + public static KeyList From(Dictionary map) => new KeyList( + total: Convert.ToInt64(map["total"]), + keys: map["keys"].ConvertToList>().Select(it => Key.From(map: it)).ToList() + ); + + public Dictionary ToMap() => new Dictionary() + { + { "total", Total }, + { "keys", Keys.Select(it => it.ToMap()) } + }; + } +} diff --git a/Appwrite/Models/Table.cs b/Appwrite/Models/Table.cs index 6cde8d58..d913f17c 100644 --- a/Appwrite/Models/Table.cs +++ b/Appwrite/Models/Table.cs @@ -41,6 +41,12 @@ public class Table [JsonPropertyName("indexes")] public List Indexes { get; private set; } + [JsonPropertyName("bytesMax")] + public long BytesMax { get; private set; } + + [JsonPropertyName("bytesUsed")] + public long BytesUsed { get; private set; } + public Table( string id, string createdAt, @@ -51,7 +57,9 @@ public Table( bool enabled, bool rowSecurity, List columns, - List indexes + List indexes, + long bytesMax, + long bytesUsed ) { Id = id; CreatedAt = createdAt; @@ -63,6 +71,8 @@ List indexes RowSecurity = rowSecurity; Columns = columns; Indexes = indexes; + BytesMax = bytesMax; + BytesUsed = bytesUsed; } public static Table From(Dictionary map) => new Table( @@ -75,7 +85,9 @@ List indexes enabled: (bool)map["enabled"], rowSecurity: (bool)map["rowSecurity"], columns: map["columns"].ConvertToList(), - indexes: map["indexes"].ConvertToList>().Select(it => ColumnIndex.From(map: it)).ToList() + indexes: map["indexes"].ConvertToList>().Select(it => ColumnIndex.From(map: it)).ToList(), + bytesMax: Convert.ToInt64(map["bytesMax"]), + bytesUsed: Convert.ToInt64(map["bytesUsed"]) ); public Dictionary ToMap() => new Dictionary() @@ -89,7 +101,9 @@ List indexes { "enabled", Enabled }, { "rowSecurity", RowSecurity }, { "columns", Columns }, - { "indexes", Indexes.Select(it => it.ToMap()) } + { "indexes", Indexes.Select(it => it.ToMap()) }, + { "bytesMax", BytesMax }, + { "bytesUsed", BytesUsed } }; } } diff --git a/Appwrite/Models/UsageResources.cs b/Appwrite/Models/UsageResources.cs new file mode 100644 index 00000000..61c36d0e --- /dev/null +++ b/Appwrite/Models/UsageResources.cs @@ -0,0 +1,67 @@ + +using System; +using System.Linq; +using System.Collections.Generic; +using System.Text.Json; +using System.Text.Json.Serialization; +using Appwrite.Enums; +using Appwrite.Extensions; + +namespace Appwrite.Models +{ + public class UsageResources + { + [JsonPropertyName("name")] + public string Name { get; private set; } + + [JsonPropertyName("value")] + public long Value { get; private set; } + + [JsonPropertyName("amount")] + public double Amount { get; private set; } + + [JsonPropertyName("rate")] + public double Rate { get; private set; } + + [JsonPropertyName("desc")] + public string Desc { get; private set; } + + [JsonPropertyName("resourceId")] + public string ResourceId { get; private set; } + + public UsageResources( + string name, + long xvalue, + double amount, + double rate, + string desc, + string resourceId + ) { + Name = name; + Value = xvalue; + Amount = amount; + Rate = rate; + Desc = desc; + ResourceId = resourceId; + } + + public static UsageResources From(Dictionary map) => new UsageResources( + name: map["name"].ToString(), + xvalue: Convert.ToInt64(map["value"]), + amount: Convert.ToDouble(map["amount"]), + rate: Convert.ToDouble(map["rate"]), + desc: map["desc"].ToString(), + resourceId: map["resourceId"].ToString() + ); + + public Dictionary ToMap() => new Dictionary() + { + { "name", Name }, + { "value", Value }, + { "amount", Amount }, + { "rate", Rate }, + { "desc", Desc }, + { "resourceId", ResourceId } + }; + } +} diff --git a/Appwrite/Services/Account.cs b/Appwrite/Services/Account.cs index 94a69e85..f6bfa613 100644 --- a/Appwrite/Services/Account.cs +++ b/Appwrite/Services/Account.cs @@ -216,6 +216,164 @@ static Models.JWT Convert(Dictionary it) => } + /// + /// Get a list of all API keys from the current account. + /// + /// + public Task ListKeys(bool? total = null) + { + var apiPath = "/account/keys"; + + var apiParameters = new Dictionary() + { + { "total", total } + }; + + var apiHeaders = new Dictionary() + { + }; + + + static Models.KeyList Convert(Dictionary it) => + Models.KeyList.From(map: it); + + return _client.Call( + method: "GET", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + /// + /// Create a new account API key. + /// + /// + public Task CreateKey(string name, List scopes, string? expire = null) + { + var apiPath = "/account/keys"; + + var apiParameters = new Dictionary() + { + { "name", name }, + { "scopes", scopes?.Select(e => e.Value).ToList() }, + { "expire", expire } + }; + + var apiHeaders = new Dictionary() + { + { "content-type", "application/json" } + }; + + + static Models.Key Convert(Dictionary it) => + Models.Key.From(map: it); + + return _client.Call( + method: "POST", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + /// + /// Get a key by its unique ID. This endpoint returns details about a specific + /// API key in your account including it's scopes. + /// + /// + public Task GetKey(string keyId) + { + var apiPath = "/account/keys/{keyId}" + .Replace("{keyId}", keyId); + + var apiParameters = new Dictionary() + { + }; + + var apiHeaders = new Dictionary() + { + }; + + + static Models.Key Convert(Dictionary it) => + Models.Key.From(map: it); + + return _client.Call( + method: "GET", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + /// + /// Update a key by its unique ID. Use this endpoint to update the name, + /// scopes, or expiration time of an API key. + /// + /// + public Task UpdateKey(string keyId, string name, List scopes, string? expire = null) + { + var apiPath = "/account/keys/{keyId}" + .Replace("{keyId}", keyId); + + var apiParameters = new Dictionary() + { + { "name", name }, + { "scopes", scopes?.Select(e => e.Value).ToList() }, + { "expire", expire } + }; + + var apiHeaders = new Dictionary() + { + { "content-type", "application/json" } + }; + + + static Models.Key Convert(Dictionary it) => + Models.Key.From(map: it); + + return _client.Call( + method: "PUT", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + /// + /// Delete a key by its unique ID. Once deleted, the key can no longer be used + /// to authenticate API calls. + /// + /// + public Task DeleteKey(string keyId) + { + var apiPath = "/account/keys/{keyId}" + .Replace("{keyId}", keyId); + + var apiParameters = new Dictionary() + { + }; + + var apiHeaders = new Dictionary() + { + { "content-type", "application/json" } + }; + + + + return _client.Call( + method: "DELETE", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!); + + } + /// /// 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. diff --git a/Appwrite/Services/Backups.cs b/Appwrite/Services/Backups.cs new file mode 100644 index 00000000..51eae1ba --- /dev/null +++ b/Appwrite/Services/Backups.cs @@ -0,0 +1,392 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using Appwrite.Models; +using Appwrite.Enums; + +namespace Appwrite.Services +{ + public class Backups : Service + { + public Backups(Client client) : base(client) + { + } + + /// + /// List all archives for a project. + /// + /// + public Task ListArchives(List? queries = null) + { + var apiPath = "/backups/archives"; + + var apiParameters = new Dictionary() + { + { "queries", queries } + }; + + var apiHeaders = new Dictionary() + { + }; + + + static Models.BackupArchiveList Convert(Dictionary it) => + Models.BackupArchiveList.From(map: it); + + return _client.Call( + method: "GET", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + /// + /// Create a new archive asynchronously for a project. + /// + /// + public Task CreateArchive(List services, string? resourceId = null) + { + var apiPath = "/backups/archives"; + + var apiParameters = new Dictionary() + { + { "services", services?.Select(e => e.Value).ToList() }, + { "resourceId", resourceId } + }; + + var apiHeaders = new Dictionary() + { + { "content-type", "application/json" } + }; + + + static Models.BackupArchive Convert(Dictionary it) => + Models.BackupArchive.From(map: it); + + return _client.Call( + method: "POST", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + /// + /// Get a backup archive using it's ID. + /// + /// + public Task GetArchive(string archiveId) + { + var apiPath = "/backups/archives/{archiveId}" + .Replace("{archiveId}", archiveId); + + var apiParameters = new Dictionary() + { + }; + + var apiHeaders = new Dictionary() + { + }; + + + static Models.BackupArchive Convert(Dictionary it) => + Models.BackupArchive.From(map: it); + + return _client.Call( + method: "GET", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + /// + /// Delete an existing archive for a project. + /// + /// + public Task DeleteArchive(string archiveId) + { + var apiPath = "/backups/archives/{archiveId}" + .Replace("{archiveId}", archiveId); + + var apiParameters = new Dictionary() + { + }; + + var apiHeaders = new Dictionary() + { + { "content-type", "application/json" } + }; + + + + return _client.Call( + method: "DELETE", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!); + + } + + /// + /// List all policies for a project. + /// + /// + public Task ListPolicies(List? queries = null) + { + var apiPath = "/backups/policies"; + + var apiParameters = new Dictionary() + { + { "queries", queries } + }; + + var apiHeaders = new Dictionary() + { + }; + + + static Models.BackupPolicyList Convert(Dictionary it) => + Models.BackupPolicyList.From(map: it); + + return _client.Call( + method: "GET", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + /// + /// Create a new backup policy. + /// + /// + public Task CreatePolicy(string policyId, List services, long retention, string schedule, string? name = null, string? resourceId = null, bool? enabled = null) + { + var apiPath = "/backups/policies"; + + var apiParameters = new Dictionary() + { + { "policyId", policyId }, + { "name", name }, + { "services", services?.Select(e => e.Value).ToList() }, + { "resourceId", resourceId }, + { "enabled", enabled }, + { "retention", retention }, + { "schedule", schedule } + }; + + var apiHeaders = new Dictionary() + { + { "content-type", "application/json" } + }; + + + static Models.BackupPolicy Convert(Dictionary it) => + Models.BackupPolicy.From(map: it); + + return _client.Call( + method: "POST", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + /// + /// Get a backup policy using it's ID. + /// + /// + public Task GetPolicy(string policyId) + { + var apiPath = "/backups/policies/{policyId}" + .Replace("{policyId}", policyId); + + var apiParameters = new Dictionary() + { + }; + + var apiHeaders = new Dictionary() + { + }; + + + static Models.BackupPolicy Convert(Dictionary it) => + Models.BackupPolicy.From(map: it); + + return _client.Call( + method: "GET", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + /// + /// Update an existing policy using it's ID. + /// + /// + public Task UpdatePolicy(string policyId, string? name = null, long? retention = null, string? schedule = null, bool? enabled = null) + { + var apiPath = "/backups/policies/{policyId}" + .Replace("{policyId}", policyId); + + var apiParameters = new Dictionary() + { + { "name", name }, + { "retention", retention }, + { "schedule", schedule }, + { "enabled", enabled } + }; + + var apiHeaders = new Dictionary() + { + { "content-type", "application/json" } + }; + + + static Models.BackupPolicy Convert(Dictionary it) => + Models.BackupPolicy.From(map: it); + + return _client.Call( + method: "PATCH", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + /// + /// Delete a policy using it's ID. + /// + /// + public Task DeletePolicy(string policyId) + { + var apiPath = "/backups/policies/{policyId}" + .Replace("{policyId}", policyId); + + var apiParameters = new Dictionary() + { + }; + + var apiHeaders = new Dictionary() + { + { "content-type", "application/json" } + }; + + + + return _client.Call( + method: "DELETE", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!); + + } + + /// + /// Create and trigger a new restoration for a backup on a project. + /// + /// + public Task CreateRestoration(string archiveId, List services, string? newResourceId = null, string? newResourceName = null) + { + var apiPath = "/backups/restoration"; + + var apiParameters = new Dictionary() + { + { "archiveId", archiveId }, + { "services", services?.Select(e => e.Value).ToList() }, + { "newResourceId", newResourceId }, + { "newResourceName", newResourceName } + }; + + var apiHeaders = new Dictionary() + { + { "content-type", "application/json" } + }; + + + static Models.BackupRestoration Convert(Dictionary it) => + Models.BackupRestoration.From(map: it); + + return _client.Call( + method: "POST", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + /// + /// List all backup restorations for a project. + /// + /// + public Task ListRestorations(List? queries = null) + { + var apiPath = "/backups/restorations"; + + var apiParameters = new Dictionary() + { + { "queries", queries } + }; + + var apiHeaders = new Dictionary() + { + }; + + + static Models.BackupRestorationList Convert(Dictionary it) => + Models.BackupRestorationList.From(map: it); + + return _client.Call( + method: "GET", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + /// + /// Get the current status of a backup restoration. + /// + /// + public Task GetRestoration(string restorationId) + { + var apiPath = "/backups/restorations/{restorationId}" + .Replace("{restorationId}", restorationId); + + var apiParameters = new Dictionary() + { + }; + + var apiHeaders = new Dictionary() + { + }; + + + static Models.BackupRestoration Convert(Dictionary it) => + Models.BackupRestoration.From(map: it); + + return _client.Call( + method: "GET", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + } +} diff --git a/Appwrite/Services/Health.cs b/Appwrite/Services/Health.cs index 5b0840c4..ef8eca7b 100644 --- a/Appwrite/Services/Health.cs +++ b/Appwrite/Services/Health.cs @@ -221,6 +221,66 @@ static Models.HealthQueue Convert(Dictionary it) => } + /// + /// Get billing project aggregation queue. + /// + /// + public Task GetQueueBillingProjectAggregation(long? threshold = null) + { + var apiPath = "/health/queue/billing-project-aggregation"; + + var apiParameters = new Dictionary() + { + { "threshold", threshold } + }; + + var apiHeaders = new Dictionary() + { + }; + + + static Models.HealthQueue Convert(Dictionary it) => + Models.HealthQueue.From(map: it); + + return _client.Call( + method: "GET", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + /// + /// Get billing team aggregation queue. + /// + /// + public Task GetQueueBillingTeamAggregation(long? threshold = null) + { + var apiPath = "/health/queue/billing-team-aggregation"; + + var apiParameters = new Dictionary() + { + { "threshold", threshold } + }; + + var apiHeaders = new Dictionary() + { + }; + + + static Models.HealthQueue Convert(Dictionary it) => + Models.HealthQueue.From(map: it); + + return _client.Call( + method: "GET", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + /// /// Get the number of builds that are waiting to be processed in the Appwrite /// internal queue server. @@ -252,6 +312,36 @@ static Models.HealthQueue Convert(Dictionary it) => } + /// + /// Get the priority builds queue size. + /// + /// + public Task GetQueuePriorityBuilds(long? threshold = null) + { + var apiPath = "/health/queue/builds-priority"; + + var apiParameters = new Dictionary() + { + { "threshold", threshold } + }; + + var apiHeaders = new Dictionary() + { + }; + + + static Models.HealthQueue Convert(Dictionary it) => + Models.HealthQueue.From(map: it); + + return _client.Call( + method: "GET", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + /// /// Get the number of certificates that are waiting to be issued against /// [Letsencrypt](https://letsencrypt.org/) in the Appwrite internal queue @@ -534,6 +624,36 @@ static Models.HealthQueue Convert(Dictionary it) => } + /// + /// Get region manager queue. + /// + /// + public Task GetQueueRegionManager(long? threshold = null) + { + var apiPath = "/health/queue/region-manager"; + + var apiParameters = new Dictionary() + { + { "threshold", threshold } + }; + + var apiHeaders = new Dictionary() + { + }; + + + static Models.HealthQueue Convert(Dictionary it) => + Models.HealthQueue.From(map: it); + + return _client.Call( + method: "GET", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + /// /// Get the number of metrics that are waiting to be processed in the Appwrite /// stats resources queue. @@ -596,6 +716,36 @@ static Models.HealthQueue Convert(Dictionary it) => } + /// + /// Get threats queue. + /// + /// + public Task GetQueueThreats(long? threshold = null) + { + var apiPath = "/health/queue/threats"; + + var apiParameters = new Dictionary() + { + { "threshold", threshold } + }; + + var apiHeaders = new Dictionary() + { + }; + + + static Models.HealthQueue Convert(Dictionary it) => + Models.HealthQueue.From(map: it); + + return _client.Call( + method: "GET", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + /// /// Get the number of webhooks that are waiting to be processed in the Appwrite /// internal queue server. diff --git a/Appwrite/Services/Organizations.cs b/Appwrite/Services/Organizations.cs new file mode 100644 index 00000000..0e3f05bf --- /dev/null +++ b/Appwrite/Services/Organizations.cs @@ -0,0 +1,77 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using Appwrite.Models; +using Appwrite.Enums; + +namespace Appwrite.Services +{ + public class Organizations : Service + { + public Organizations(Client client) : base(client) + { + } + + /// + /// Delete an organization. + /// + /// + public Task Delete(string organizationId) + { + var apiPath = "/organizations/{organizationId}" + .Replace("{organizationId}", organizationId); + + var apiParameters = new Dictionary() + { + }; + + var apiHeaders = new Dictionary() + { + { "content-type", "application/json" } + }; + + + + return _client.Call( + method: "DELETE", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!); + + } + + /// + /// Get estimation for deleting an organization. + /// + /// + public Task EstimationDeleteOrganization(string organizationId) + { + var apiPath = "/organizations/{organizationId}/estimations/delete-organization" + .Replace("{organizationId}", organizationId); + + var apiParameters = new Dictionary() + { + }; + + var apiHeaders = new Dictionary() + { + { "content-type", "application/json" } + }; + + + static Models.EstimationDeleteOrganization Convert(Dictionary it) => + Models.EstimationDeleteOrganization.From(map: it); + + return _client.Call( + method: "PATCH", + path: apiPath, + headers: apiHeaders, + parameters: apiParameters.Where(it => it.Value != null).ToDictionary(it => it.Key, it => it.Value)!, + convert: Convert); + + } + + } +} diff --git a/Appwrite/Services/Teams.cs b/Appwrite/Services/Teams.cs index 1ab360e1..54b719b8 100644 --- a/Appwrite/Services/Teams.cs +++ b/Appwrite/Services/Teams.cs @@ -232,7 +232,7 @@ static Models.MembershipList Convert(Dictionary it) => /// /// /// - public Task CreateMembership(string teamId, List roles, string? email = null, string? userId = null, string? phone = null, string? url = null, string? name = null) + public Task CreateMembership(string teamId, List roles, string? email = null, string? userId = null, string? phone = null, string? url = null, string? name = null) { var apiPath = "/teams/{teamId}/memberships" .Replace("{teamId}", teamId); @@ -242,7 +242,7 @@ static Models.MembershipList Convert(Dictionary it) => { "email", email }, { "userId", userId }, { "phone", phone }, - { "roles", roles?.Select(e => e.Value).ToList() }, + { "roles", roles }, { "url", url }, { "name", name } }; @@ -305,7 +305,7 @@ static Models.Membership Convert(Dictionary it) => /// /// /// - public Task UpdateMembership(string teamId, string membershipId, List roles) + public Task UpdateMembership(string teamId, string membershipId, List roles) { var apiPath = "/teams/{teamId}/memberships/{membershipId}" .Replace("{teamId}", teamId) @@ -313,7 +313,7 @@ static Models.Membership Convert(Dictionary it) => var apiParameters = new Dictionary() { - { "roles", roles?.Select(e => e.Value).ToList() } + { "roles", roles } }; var apiHeaders = new Dictionary() diff --git a/CHANGELOG.md b/CHANGELOG.md index b6a07e12..b31cf0cd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,22 +1,11 @@ # Change Log -## 0.25.0 +## 0.25.1 -* Add array-based enum parameters (e.g., `permissions: IReadOnlyList`). -* 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. - -## 0.24.0 - -* Added ability to create columns and indexes synchronously while creating a table - -## 0.23.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 ## 0.22.0 @@ -98,10 +87,14 @@ * Added `scheduledAt` parameter to `createExecution()`: Enables creating a delayed execution #### Breaking changes -You can find the new syntax for breaking changes in the [Appwrite API references](https://appwrite.io/docs/references). Select version `1.6.x`. + +You can find the new syntax for breaking changes in the [Appwrite API references](https://appwrite.io/docs/references). +Select version `1.6.x`. + * Removed `otp` parameter from `deleteMFAAuthenticator`. * Added `scopes` parameter for create/update function. * Renamed `templateBranch` to `templateVersion` in `createFunction()`. * Renamed `downloadDeployment()` to `getDeploymentDownload()` -> **Please note: This version is compatible with Appwrite 1.6 and later only. If you do not update your Appwrite SDK, old SDKs will not break your app. Appwrite APIs are backwards compatible.** \ No newline at end of file +> **Please note: This version is compatible with Appwrite 1.6 and later only. If you do not update your Appwrite SDK, +old SDKs will not break your app. Appwrite APIs are backwards compatible.** diff --git a/README.md b/README.md index 8c737f50..2880bfb6 100644 --- a/README.md +++ b/README.md @@ -17,17 +17,17 @@ Appwrite is an open-source backend as a service server that abstracts and simpli Add this reference to your project's `.csproj` file: ```xml - + ``` You can install packages from the command line: ```powershell # Package Manager -Install-Package Appwrite -Version 0.25.0 +Install-Package Appwrite -Version 0.25.1 # or .NET CLI -dotnet add package Appwrite --version 0.25.0 +dotnet add package Appwrite --version 0.25.1 ``` diff --git a/docs/examples/account/create-anonymous-session.md b/docs/examples/account/create-anonymous-session.md index 087afeee..47a2fc6d 100644 --- a/docs/examples/account/create-anonymous-session.md +++ b/docs/examples/account/create-anonymous-session.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -10,3 +11,4 @@ Client client = new Client() Account account = new Account(client); Session result = await account.CreateAnonymousSession(); +``` diff --git a/docs/examples/account/create-email-password-session.md b/docs/examples/account/create-email-password-session.md index 8e62f30d..a2408cdc 100644 --- a/docs/examples/account/create-email-password-session.md +++ b/docs/examples/account/create-email-password-session.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -12,4 +13,4 @@ Account account = new Account(client); Session result = await account.CreateEmailPasswordSession( email: "email@example.com", password: "password" -); \ No newline at end of file +);``` diff --git a/docs/examples/account/create-email-token.md b/docs/examples/account/create-email-token.md index 0e867a00..dd012ac0 100644 --- a/docs/examples/account/create-email-token.md +++ b/docs/examples/account/create-email-token.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -13,4 +14,4 @@ Token result = await account.CreateEmailToken( userId: "", email: "email@example.com", phrase: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/account/create-email-verification.md b/docs/examples/account/create-email-verification.md index 6efee895..ca242970 100644 --- a/docs/examples/account/create-email-verification.md +++ b/docs/examples/account/create-email-verification.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -11,4 +12,4 @@ Account account = new Account(client); Token result = await account.CreateEmailVerification( url: "https://example.com" -); \ No newline at end of file +);``` diff --git a/docs/examples/account/create-jwt.md b/docs/examples/account/create-jwt.md index d3e1348f..71ea697d 100644 --- a/docs/examples/account/create-jwt.md +++ b/docs/examples/account/create-jwt.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -11,4 +12,4 @@ Account account = new Account(client); JWT result = await account.CreateJWT( duration: 0 // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/account/create-key.md b/docs/examples/account/create-key.md new file mode 100644 index 00000000..989f96d1 --- /dev/null +++ b/docs/examples/account/create-key.md @@ -0,0 +1,18 @@ +```csharp +using Appwrite; +using Appwrite.Enums; +using Appwrite.Models; +using Appwrite.Services; + +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); + +Key result = await account.CreateKey( + name: "", + scopes: new List<Scopes> { Scopes.Account }, + expire: "" // optional +);``` diff --git a/docs/examples/account/create-magic-url-token.md b/docs/examples/account/create-magic-url-token.md index 9bba5fcf..f1d22ded 100644 --- a/docs/examples/account/create-magic-url-token.md +++ b/docs/examples/account/create-magic-url-token.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -14,4 +15,4 @@ Token result = await account.CreateMagicURLToken( email: "email@example.com", url: "https://example.com", // optional phrase: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/account/create-mfa-authenticator.md b/docs/examples/account/create-mfa-authenticator.md index 9076fcd0..4bea1f21 100644 --- a/docs/examples/account/create-mfa-authenticator.md +++ b/docs/examples/account/create-mfa-authenticator.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Enums; using Appwrite.Models; @@ -12,4 +13,4 @@ Account account = new Account(client); MfaType result = await account.CreateMFAAuthenticator( type: AuthenticatorType.Totp -); \ No newline at end of file +);``` diff --git a/docs/examples/account/create-mfa-challenge.md b/docs/examples/account/create-mfa-challenge.md index 0d7a20c7..afd90663 100644 --- a/docs/examples/account/create-mfa-challenge.md +++ b/docs/examples/account/create-mfa-challenge.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Enums; using Appwrite.Models; @@ -12,4 +13,4 @@ Account account = new Account(client); MfaChallenge result = await account.CreateMFAChallenge( factor: AuthenticationFactor.Email -); \ No newline at end of file +);``` diff --git a/docs/examples/account/create-mfa-recovery-codes.md b/docs/examples/account/create-mfa-recovery-codes.md index 406fd449..89985468 100644 --- a/docs/examples/account/create-mfa-recovery-codes.md +++ b/docs/examples/account/create-mfa-recovery-codes.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -10,3 +11,4 @@ Client client = new Client() Account account = new Account(client); MfaRecoveryCodes result = await account.CreateMFARecoveryCodes(); +``` diff --git a/docs/examples/account/create-o-auth-2-token.md b/docs/examples/account/create-o-auth-2-token.md index a5e15c08..891bf4ff 100644 --- a/docs/examples/account/create-o-auth-2-token.md +++ b/docs/examples/account/create-o-auth-2-token.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Enums; using Appwrite.Models; @@ -15,4 +16,4 @@ await account.CreateOAuth2Token( success: "https://example.com", // optional failure: "https://example.com", // optional scopes: new List() // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/account/create-phone-token.md b/docs/examples/account/create-phone-token.md index 02f86ee3..af5747b3 100644 --- a/docs/examples/account/create-phone-token.md +++ b/docs/examples/account/create-phone-token.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -12,4 +13,4 @@ Account account = new Account(client); Token result = await account.CreatePhoneToken( userId: "", phone: "+12065550100" -); \ No newline at end of file +);``` diff --git a/docs/examples/account/create-phone-verification.md b/docs/examples/account/create-phone-verification.md index 185fc46e..177ea7f7 100644 --- a/docs/examples/account/create-phone-verification.md +++ b/docs/examples/account/create-phone-verification.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -10,3 +11,4 @@ Client client = new Client() Account account = new Account(client); Token result = await account.CreatePhoneVerification(); +``` diff --git a/docs/examples/account/create-recovery.md b/docs/examples/account/create-recovery.md index c2e3571d..e236ddf5 100644 --- a/docs/examples/account/create-recovery.md +++ b/docs/examples/account/create-recovery.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -12,4 +13,4 @@ Account account = new Account(client); Token result = await account.CreateRecovery( email: "email@example.com", url: "https://example.com" -); \ No newline at end of file +);``` diff --git a/docs/examples/account/create-session.md b/docs/examples/account/create-session.md index e682599e..5d2c1d2e 100644 --- a/docs/examples/account/create-session.md +++ b/docs/examples/account/create-session.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -12,4 +13,4 @@ Account account = new Account(client); Session result = await account.CreateSession( userId: "", secret: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/account/create-verification.md b/docs/examples/account/create-verification.md index 92222ea8..49be6750 100644 --- a/docs/examples/account/create-verification.md +++ b/docs/examples/account/create-verification.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -11,4 +12,4 @@ Account account = new Account(client); Token result = await account.CreateVerification( url: "https://example.com" -); \ No newline at end of file +);``` diff --git a/docs/examples/account/create.md b/docs/examples/account/create.md index d3d2ecc6..bbc8ae23 100644 --- a/docs/examples/account/create.md +++ b/docs/examples/account/create.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -14,4 +15,4 @@ User result = await account.Create( email: "email@example.com", password: "", name: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/account/delete-identity.md b/docs/examples/account/delete-identity.md index 9b084800..d68919c4 100644 --- a/docs/examples/account/delete-identity.md +++ b/docs/examples/account/delete-identity.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -11,4 +12,4 @@ Account account = new Account(client); await account.DeleteIdentity( identityId: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/account/delete-key.md b/docs/examples/account/delete-key.md new file mode 100644 index 00000000..6c885a88 --- /dev/null +++ b/docs/examples/account/delete-key.md @@ -0,0 +1,15 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +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); + +await account.DeleteKey( + keyId: "" +);``` diff --git a/docs/examples/account/delete-mfa-authenticator.md b/docs/examples/account/delete-mfa-authenticator.md index c695de29..1a552019 100644 --- a/docs/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/account/delete-mfa-authenticator.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Enums; using Appwrite.Models; @@ -12,4 +13,4 @@ Account account = new Account(client); await account.DeleteMFAAuthenticator( type: AuthenticatorType.Totp -); \ No newline at end of file +);``` diff --git a/docs/examples/account/delete-session.md b/docs/examples/account/delete-session.md index 0bca7c17..fa546c00 100644 --- a/docs/examples/account/delete-session.md +++ b/docs/examples/account/delete-session.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -11,4 +12,4 @@ Account account = new Account(client); await account.DeleteSession( sessionId: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/account/delete-sessions.md b/docs/examples/account/delete-sessions.md index 5b0e7b5c..d6051e83 100644 --- a/docs/examples/account/delete-sessions.md +++ b/docs/examples/account/delete-sessions.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -10,3 +11,4 @@ Client client = new Client() Account account = new Account(client); await account.DeleteSessions(); +``` diff --git a/docs/examples/account/get-key.md b/docs/examples/account/get-key.md new file mode 100644 index 00000000..e0eccb3d --- /dev/null +++ b/docs/examples/account/get-key.md @@ -0,0 +1,15 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +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); + +Key result = await account.GetKey( + keyId: "" +);``` diff --git a/docs/examples/account/get-mfa-recovery-codes.md b/docs/examples/account/get-mfa-recovery-codes.md index 2e5468ad..f2ba2fa7 100644 --- a/docs/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/account/get-mfa-recovery-codes.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -10,3 +11,4 @@ Client client = new Client() Account account = new Account(client); MfaRecoveryCodes result = await account.GetMFARecoveryCodes(); +``` diff --git a/docs/examples/account/get-prefs.md b/docs/examples/account/get-prefs.md index b0fce89a..75d0984b 100644 --- a/docs/examples/account/get-prefs.md +++ b/docs/examples/account/get-prefs.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -10,3 +11,4 @@ Client client = new Client() Account account = new Account(client); Preferences result = await account.GetPrefs(); +``` diff --git a/docs/examples/account/get-session.md b/docs/examples/account/get-session.md index 9aa7abae..903360ae 100644 --- a/docs/examples/account/get-session.md +++ b/docs/examples/account/get-session.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -11,4 +12,4 @@ Account account = new Account(client); Session result = await account.GetSession( sessionId: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/account/get.md b/docs/examples/account/get.md index eecb890b..0184bb9e 100644 --- a/docs/examples/account/get.md +++ b/docs/examples/account/get.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -10,3 +11,4 @@ Client client = new Client() Account account = new Account(client); User result = await account.Get(); +``` diff --git a/docs/examples/account/list-identities.md b/docs/examples/account/list-identities.md index e10d8e71..3d0b024b 100644 --- a/docs/examples/account/list-identities.md +++ b/docs/examples/account/list-identities.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -12,4 +13,4 @@ Account account = new Account(client); IdentityList result = await account.ListIdentities( queries: new List(), // optional total: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/account/list-keys.md b/docs/examples/account/list-keys.md new file mode 100644 index 00000000..3fcca0e6 --- /dev/null +++ b/docs/examples/account/list-keys.md @@ -0,0 +1,15 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +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); + +KeyList result = await account.ListKeys( + total: false // optional +);``` diff --git a/docs/examples/account/list-logs.md b/docs/examples/account/list-logs.md index f4a4052c..d73311bc 100644 --- a/docs/examples/account/list-logs.md +++ b/docs/examples/account/list-logs.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -12,4 +13,4 @@ Account account = new Account(client); LogList result = await account.ListLogs( queries: new List(), // optional total: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/account/list-mfa-factors.md b/docs/examples/account/list-mfa-factors.md index f284f6f2..37bd907e 100644 --- a/docs/examples/account/list-mfa-factors.md +++ b/docs/examples/account/list-mfa-factors.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -10,3 +11,4 @@ Client client = new Client() Account account = new Account(client); MfaFactors result = await account.ListMFAFactors(); +``` diff --git a/docs/examples/account/list-sessions.md b/docs/examples/account/list-sessions.md index 6304383c..791af973 100644 --- a/docs/examples/account/list-sessions.md +++ b/docs/examples/account/list-sessions.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -10,3 +11,4 @@ Client client = new Client() Account account = new Account(client); SessionList result = await account.ListSessions(); +``` diff --git a/docs/examples/account/update-email-verification.md b/docs/examples/account/update-email-verification.md index a336682b..ef431989 100644 --- a/docs/examples/account/update-email-verification.md +++ b/docs/examples/account/update-email-verification.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -12,4 +13,4 @@ Account account = new Account(client); Token result = await account.UpdateEmailVerification( userId: "", secret: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/account/update-email.md b/docs/examples/account/update-email.md index 06e2a2a9..5dbb8ee6 100644 --- a/docs/examples/account/update-email.md +++ b/docs/examples/account/update-email.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -12,4 +13,4 @@ Account account = new Account(client); User result = await account.UpdateEmail( email: "email@example.com", password: "password" -); \ No newline at end of file +);``` diff --git a/docs/examples/account/update-key.md b/docs/examples/account/update-key.md new file mode 100644 index 00000000..defcebbe --- /dev/null +++ b/docs/examples/account/update-key.md @@ -0,0 +1,19 @@ +```csharp +using Appwrite; +using Appwrite.Enums; +using Appwrite.Models; +using Appwrite.Services; + +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); + +Key result = await account.UpdateKey( + keyId: "", + name: "", + scopes: new List<Scopes> { Scopes.Account }, + expire: "" // optional +);``` diff --git a/docs/examples/account/update-magic-url-session.md b/docs/examples/account/update-magic-url-session.md index b1d729b4..f123e72b 100644 --- a/docs/examples/account/update-magic-url-session.md +++ b/docs/examples/account/update-magic-url-session.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -12,4 +13,4 @@ Account account = new Account(client); Session result = await account.UpdateMagicURLSession( userId: "", secret: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/account/update-mfa-authenticator.md b/docs/examples/account/update-mfa-authenticator.md index f5dd5c50..6950ba6f 100644 --- a/docs/examples/account/update-mfa-authenticator.md +++ b/docs/examples/account/update-mfa-authenticator.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Enums; using Appwrite.Models; @@ -13,4 +14,4 @@ Account account = new Account(client); User result = await account.UpdateMFAAuthenticator( type: AuthenticatorType.Totp, otp: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/account/update-mfa-challenge.md b/docs/examples/account/update-mfa-challenge.md index f9a9db46..c7108fef 100644 --- a/docs/examples/account/update-mfa-challenge.md +++ b/docs/examples/account/update-mfa-challenge.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -12,4 +13,4 @@ Account account = new Account(client); Session result = await account.UpdateMFAChallenge( challengeId: "", otp: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/account/update-mfa-recovery-codes.md b/docs/examples/account/update-mfa-recovery-codes.md index bfc6c876..3f2943d9 100644 --- a/docs/examples/account/update-mfa-recovery-codes.md +++ b/docs/examples/account/update-mfa-recovery-codes.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -10,3 +11,4 @@ Client client = new Client() Account account = new Account(client); MfaRecoveryCodes result = await account.UpdateMFARecoveryCodes(); +``` diff --git a/docs/examples/account/update-mfa.md b/docs/examples/account/update-mfa.md index b9405e7e..3480ee42 100644 --- a/docs/examples/account/update-mfa.md +++ b/docs/examples/account/update-mfa.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -11,4 +12,4 @@ Account account = new Account(client); User result = await account.UpdateMFA( mfa: false -); \ No newline at end of file +);``` diff --git a/docs/examples/account/update-name.md b/docs/examples/account/update-name.md index 6088226f..cdbf82c2 100644 --- a/docs/examples/account/update-name.md +++ b/docs/examples/account/update-name.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -11,4 +12,4 @@ Account account = new Account(client); User result = await account.UpdateName( name: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/account/update-password.md b/docs/examples/account/update-password.md index f24c703a..4c468ddc 100644 --- a/docs/examples/account/update-password.md +++ b/docs/examples/account/update-password.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -12,4 +13,4 @@ Account account = new Account(client); User result = await account.UpdatePassword( password: "", oldPassword: "password" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/account/update-phone-session.md b/docs/examples/account/update-phone-session.md index e5dbef1a..d1aada97 100644 --- a/docs/examples/account/update-phone-session.md +++ b/docs/examples/account/update-phone-session.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -12,4 +13,4 @@ Account account = new Account(client); Session result = await account.UpdatePhoneSession( userId: "", secret: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/account/update-phone-verification.md b/docs/examples/account/update-phone-verification.md index a100c0f2..fd99865b 100644 --- a/docs/examples/account/update-phone-verification.md +++ b/docs/examples/account/update-phone-verification.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -12,4 +13,4 @@ Account account = new Account(client); Token result = await account.UpdatePhoneVerification( userId: "", secret: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/account/update-phone.md b/docs/examples/account/update-phone.md index 224001dd..558fd1c8 100644 --- a/docs/examples/account/update-phone.md +++ b/docs/examples/account/update-phone.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -12,4 +13,4 @@ Account account = new Account(client); User result = await account.UpdatePhone( phone: "+12065550100", password: "password" -); \ No newline at end of file +);``` diff --git a/docs/examples/account/update-prefs.md b/docs/examples/account/update-prefs.md index 80f42aaa..4c43263b 100644 --- a/docs/examples/account/update-prefs.md +++ b/docs/examples/account/update-prefs.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -15,4 +16,4 @@ User result = await account.UpdatePrefs( timezone = "UTC", darkTheme = true } -); \ No newline at end of file +);``` diff --git a/docs/examples/account/update-recovery.md b/docs/examples/account/update-recovery.md index 18846222..a822d3e4 100644 --- a/docs/examples/account/update-recovery.md +++ b/docs/examples/account/update-recovery.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -13,4 +14,4 @@ Token result = await account.UpdateRecovery( userId: "", secret: "", password: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/account/update-session.md b/docs/examples/account/update-session.md index a98644c0..48adb6c0 100644 --- a/docs/examples/account/update-session.md +++ b/docs/examples/account/update-session.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -11,4 +12,4 @@ Account account = new Account(client); Session result = await account.UpdateSession( sessionId: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/account/update-status.md b/docs/examples/account/update-status.md index d9c5b41d..1ea1fc4b 100644 --- a/docs/examples/account/update-status.md +++ b/docs/examples/account/update-status.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -10,3 +11,4 @@ Client client = new Client() Account account = new Account(client); User result = await account.UpdateStatus(); +``` diff --git a/docs/examples/account/update-verification.md b/docs/examples/account/update-verification.md index b9dd1ded..60c397bc 100644 --- a/docs/examples/account/update-verification.md +++ b/docs/examples/account/update-verification.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -12,4 +13,4 @@ Account account = new Account(client); Token result = await account.UpdateVerification( userId: "", secret: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/avatars/get-browser.md b/docs/examples/avatars/get-browser.md index 9c7b643a..f17be7dd 100644 --- a/docs/examples/avatars/get-browser.md +++ b/docs/examples/avatars/get-browser.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Enums; using Appwrite.Models; @@ -15,4 +16,4 @@ byte[] result = await avatars.GetBrowser( width: 0, // optional height: 0, // optional quality: -1 // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/avatars/get-credit-card.md b/docs/examples/avatars/get-credit-card.md index a41ade14..6d1647ee 100644 --- a/docs/examples/avatars/get-credit-card.md +++ b/docs/examples/avatars/get-credit-card.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Enums; using Appwrite.Models; @@ -15,4 +16,4 @@ byte[] result = await avatars.GetCreditCard( width: 0, // optional height: 0, // optional quality: -1 // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/avatars/get-favicon.md b/docs/examples/avatars/get-favicon.md index 345d8567..4443daf4 100644 --- a/docs/examples/avatars/get-favicon.md +++ b/docs/examples/avatars/get-favicon.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -11,4 +12,4 @@ Avatars avatars = new Avatars(client); byte[] result = await avatars.GetFavicon( url: "https://example.com" -); \ No newline at end of file +);``` diff --git a/docs/examples/avatars/get-flag.md b/docs/examples/avatars/get-flag.md index f7a3e05c..2242497a 100644 --- a/docs/examples/avatars/get-flag.md +++ b/docs/examples/avatars/get-flag.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Enums; using Appwrite.Models; @@ -15,4 +16,4 @@ byte[] result = await avatars.GetFlag( width: 0, // optional height: 0, // optional quality: -1 // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/avatars/get-image.md b/docs/examples/avatars/get-image.md index 4a67e585..99518bed 100644 --- a/docs/examples/avatars/get-image.md +++ b/docs/examples/avatars/get-image.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -13,4 +14,4 @@ byte[] result = await avatars.GetImage( url: "https://example.com", width: 0, // optional height: 0 // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/avatars/get-initials.md b/docs/examples/avatars/get-initials.md index 55427ff6..8f6f1cd4 100644 --- a/docs/examples/avatars/get-initials.md +++ b/docs/examples/avatars/get-initials.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -14,4 +15,4 @@ byte[] result = await avatars.GetInitials( width: 0, // optional height: 0, // optional background: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/avatars/get-qr.md b/docs/examples/avatars/get-qr.md index 4591b7d9..2414e3d5 100644 --- a/docs/examples/avatars/get-qr.md +++ b/docs/examples/avatars/get-qr.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -14,4 +15,4 @@ byte[] result = await avatars.GetQR( size: 1, // optional margin: 0, // optional download: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/avatars/get-screenshot.md b/docs/examples/avatars/get-screenshot.md index eb827d51..4c35a02c 100644 --- a/docs/examples/avatars/get-screenshot.md +++ b/docs/examples/avatars/get-screenshot.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Enums; using Appwrite.Models; @@ -34,4 +35,4 @@ byte[] result = await avatars.GetScreenshot( height: 600, // optional quality: 85, // optional output: ImageFormat.Jpeg // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/backups/create-archive.md b/docs/examples/backups/create-archive.md new file mode 100644 index 00000000..4eee7308 --- /dev/null +++ b/docs/examples/backups/create-archive.md @@ -0,0 +1,17 @@ +```csharp +using Appwrite; +using Appwrite.Enums; +using Appwrite.Models; +using Appwrite.Services; + +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); + +BackupArchive result = await backups.CreateArchive( + services: new List<BackupServices> { BackupServices.Databases }, + resourceId: "" // optional +);``` diff --git a/docs/examples/backups/create-policy.md b/docs/examples/backups/create-policy.md new file mode 100644 index 00000000..a357c855 --- /dev/null +++ b/docs/examples/backups/create-policy.md @@ -0,0 +1,22 @@ +```csharp +using Appwrite; +using Appwrite.Enums; +using Appwrite.Models; +using Appwrite.Services; + +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); + +BackupPolicy result = await backups.CreatePolicy( + policyId: "", + services: new List<BackupServices> { BackupServices.Databases }, + retention: 1, + schedule: "", + name: "", // optional + resourceId: "", // optional + enabled: false // optional +);``` diff --git a/docs/examples/backups/create-restoration.md b/docs/examples/backups/create-restoration.md new file mode 100644 index 00000000..80ec86a1 --- /dev/null +++ b/docs/examples/backups/create-restoration.md @@ -0,0 +1,19 @@ +```csharp +using Appwrite; +using Appwrite.Enums; +using Appwrite.Models; +using Appwrite.Services; + +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); + +BackupRestoration result = await backups.CreateRestoration( + archiveId: "", + services: new List<BackupServices> { BackupServices.Databases }, + newResourceId: "", // optional + newResourceName: "" // optional +);``` diff --git a/docs/examples/backups/delete-archive.md b/docs/examples/backups/delete-archive.md new file mode 100644 index 00000000..2fe98e06 --- /dev/null +++ b/docs/examples/backups/delete-archive.md @@ -0,0 +1,15 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +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); + +await backups.DeleteArchive( + archiveId: "" +);``` diff --git a/docs/examples/backups/delete-policy.md b/docs/examples/backups/delete-policy.md new file mode 100644 index 00000000..cc154823 --- /dev/null +++ b/docs/examples/backups/delete-policy.md @@ -0,0 +1,15 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +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); + +await backups.DeletePolicy( + policyId: "" +);``` diff --git a/docs/examples/backups/get-archive.md b/docs/examples/backups/get-archive.md new file mode 100644 index 00000000..d06e0bc5 --- /dev/null +++ b/docs/examples/backups/get-archive.md @@ -0,0 +1,15 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +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); + +BackupArchive result = await backups.GetArchive( + archiveId: "" +);``` diff --git a/docs/examples/backups/get-policy.md b/docs/examples/backups/get-policy.md new file mode 100644 index 00000000..427fcfa0 --- /dev/null +++ b/docs/examples/backups/get-policy.md @@ -0,0 +1,15 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +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); + +BackupPolicy result = await backups.GetPolicy( + policyId: "" +);``` diff --git a/docs/examples/backups/get-restoration.md b/docs/examples/backups/get-restoration.md new file mode 100644 index 00000000..bed028bb --- /dev/null +++ b/docs/examples/backups/get-restoration.md @@ -0,0 +1,15 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +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); + +BackupRestoration result = await backups.GetRestoration( + restorationId: "" +);``` diff --git a/docs/examples/backups/list-archives.md b/docs/examples/backups/list-archives.md new file mode 100644 index 00000000..ddc46339 --- /dev/null +++ b/docs/examples/backups/list-archives.md @@ -0,0 +1,15 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +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); + +BackupArchiveList result = await backups.ListArchives( + queries: new List() // optional +);``` diff --git a/docs/examples/backups/list-policies.md b/docs/examples/backups/list-policies.md new file mode 100644 index 00000000..8ebdffdf --- /dev/null +++ b/docs/examples/backups/list-policies.md @@ -0,0 +1,15 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +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); + +BackupPolicyList result = await backups.ListPolicies( + queries: new List() // optional +);``` diff --git a/docs/examples/backups/list-restorations.md b/docs/examples/backups/list-restorations.md new file mode 100644 index 00000000..7d9712d6 --- /dev/null +++ b/docs/examples/backups/list-restorations.md @@ -0,0 +1,15 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +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); + +BackupRestorationList result = await backups.ListRestorations( + queries: new List() // optional +);``` diff --git a/docs/examples/backups/update-policy.md b/docs/examples/backups/update-policy.md new file mode 100644 index 00000000..acba52a3 --- /dev/null +++ b/docs/examples/backups/update-policy.md @@ -0,0 +1,19 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +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); + +BackupPolicy result = await backups.UpdatePolicy( + policyId: "", + name: "", // optional + retention: 1, // optional + schedule: "", // optional + enabled: false // optional +);``` diff --git a/docs/examples/databases/create-boolean-attribute.md b/docs/examples/databases/create-boolean-attribute.md index 88076485..7a2a8038 100644 --- a/docs/examples/databases/create-boolean-attribute.md +++ b/docs/examples/databases/create-boolean-attribute.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -16,4 +17,4 @@ AttributeBoolean result = await databases.CreateBooleanAttribute( required: false, default: false, // optional array: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/databases/create-collection.md b/docs/examples/databases/create-collection.md index a4cbf7c4..51398280 100644 --- a/docs/examples/databases/create-collection.md +++ b/docs/examples/databases/create-collection.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -18,4 +19,4 @@ Collection result = await databases.CreateCollection( enabled: false, // optional attributes: new List(), // optional indexes: new List() // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/databases/create-datetime-attribute.md b/docs/examples/databases/create-datetime-attribute.md index 7be72337..10f6a19e 100644 --- a/docs/examples/databases/create-datetime-attribute.md +++ b/docs/examples/databases/create-datetime-attribute.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -16,4 +17,4 @@ AttributeDatetime result = await databases.CreateDatetimeAttribute( required: false, default: "", // optional array: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/databases/create-document.md b/docs/examples/databases/create-document.md index 7efb16c1..f2eb911c 100644 --- a/docs/examples/databases/create-document.md +++ b/docs/examples/databases/create-document.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -22,4 +23,4 @@ Document result = await databases.CreateDocument( }, permissions: new List { Permission.Read(Role.Any()) }, // optional transactionId: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/databases/create-documents.md b/docs/examples/databases/create-documents.md index cc6cfb76..f026a31a 100644 --- a/docs/examples/databases/create-documents.md +++ b/docs/examples/databases/create-documents.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -14,4 +15,4 @@ DocumentList result = await databases.CreateDocuments( collectionId: "", documents: new List(), transactionId: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/databases/create-email-attribute.md b/docs/examples/databases/create-email-attribute.md index df00119f..a08ca0b3 100644 --- a/docs/examples/databases/create-email-attribute.md +++ b/docs/examples/databases/create-email-attribute.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -16,4 +17,4 @@ AttributeEmail result = await databases.CreateEmailAttribute( required: false, default: "email@example.com", // optional array: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/databases/create-enum-attribute.md b/docs/examples/databases/create-enum-attribute.md index d85e8a72..5a27fbca 100644 --- a/docs/examples/databases/create-enum-attribute.md +++ b/docs/examples/databases/create-enum-attribute.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -17,4 +18,4 @@ AttributeEnum result = await databases.CreateEnumAttribute( required: false, default: "", // optional array: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/databases/create-float-attribute.md b/docs/examples/databases/create-float-attribute.md index bc03fac7..2c8f71ed 100644 --- a/docs/examples/databases/create-float-attribute.md +++ b/docs/examples/databases/create-float-attribute.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -18,4 +19,4 @@ AttributeFloat result = await databases.CreateFloatAttribute( max: 0, // optional default: 0, // optional array: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/databases/create-index.md b/docs/examples/databases/create-index.md index c1867ce6..7f0e22af 100644 --- a/docs/examples/databases/create-index.md +++ b/docs/examples/databases/create-index.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Enums; using Appwrite.Models; @@ -18,4 +19,4 @@ Index result = await databases.CreateIndex( attributes: new List(), orders: new List<OrderBy> { OrderBy.Asc }, // optional lengths: new List() // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/databases/create-integer-attribute.md b/docs/examples/databases/create-integer-attribute.md index c8e7c133..71a02566 100644 --- a/docs/examples/databases/create-integer-attribute.md +++ b/docs/examples/databases/create-integer-attribute.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -18,4 +19,4 @@ AttributeInteger result = await databases.CreateIntegerAttribute( max: 0, // optional default: 0, // optional array: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/databases/create-ip-attribute.md b/docs/examples/databases/create-ip-attribute.md index f95c2570..666ae483 100644 --- a/docs/examples/databases/create-ip-attribute.md +++ b/docs/examples/databases/create-ip-attribute.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -16,4 +17,4 @@ AttributeIp result = await databases.CreateIpAttribute( required: false, default: "", // optional array: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/databases/create-line-attribute.md b/docs/examples/databases/create-line-attribute.md index d0de4945..ac36d800 100644 --- a/docs/examples/databases/create-line-attribute.md +++ b/docs/examples/databases/create-line-attribute.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -15,4 +16,4 @@ AttributeLine result = await databases.CreateLineAttribute( key: "", required: false, default: [[1, 2], [3, 4], [5, 6]] // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/databases/create-longtext-attribute.md b/docs/examples/databases/create-longtext-attribute.md index 5e9b4aa4..55e8573f 100644 --- a/docs/examples/databases/create-longtext-attribute.md +++ b/docs/examples/databases/create-longtext-attribute.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -16,4 +17,4 @@ AttributeLongtext result = await databases.CreateLongtextAttribute( required: false, default: "", // optional array: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/databases/create-mediumtext-attribute.md b/docs/examples/databases/create-mediumtext-attribute.md index 672bd1b5..e5c7906b 100644 --- a/docs/examples/databases/create-mediumtext-attribute.md +++ b/docs/examples/databases/create-mediumtext-attribute.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -16,4 +17,4 @@ AttributeMediumtext result = await databases.CreateMediumtextAttribute( required: false, default: "", // optional array: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/databases/create-operations.md b/docs/examples/databases/create-operations.md index 701c6432..689678a0 100644 --- a/docs/examples/databases/create-operations.md +++ b/docs/examples/databases/create-operations.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -22,4 +23,4 @@ Transaction result = await databases.CreateOperations( } } ] // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/databases/create-point-attribute.md b/docs/examples/databases/create-point-attribute.md index 4843174c..66e87640 100644 --- a/docs/examples/databases/create-point-attribute.md +++ b/docs/examples/databases/create-point-attribute.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -15,4 +16,4 @@ AttributePoint result = await databases.CreatePointAttribute( key: "", required: false, default: [1, 2] // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/databases/create-polygon-attribute.md b/docs/examples/databases/create-polygon-attribute.md index 15c8b986..66c44b12 100644 --- a/docs/examples/databases/create-polygon-attribute.md +++ b/docs/examples/databases/create-polygon-attribute.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -15,4 +16,4 @@ AttributePolygon result = await databases.CreatePolygonAttribute( key: "", required: false, default: [[[1, 2], [3, 4], [5, 6], [1, 2]]] // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/databases/create-relationship-attribute.md b/docs/examples/databases/create-relationship-attribute.md index b0f4d119..a5262ffe 100644 --- a/docs/examples/databases/create-relationship-attribute.md +++ b/docs/examples/databases/create-relationship-attribute.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Enums; using Appwrite.Models; @@ -19,4 +20,4 @@ AttributeRelationship result = await databases.CreateRelationshipAttribute( key: "", // optional twoWayKey: "", // optional onDelete: RelationMutate.Cascade // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/databases/create-string-attribute.md b/docs/examples/databases/create-string-attribute.md index 6cba31ff..9e7be5f6 100644 --- a/docs/examples/databases/create-string-attribute.md +++ b/docs/examples/databases/create-string-attribute.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -18,4 +19,4 @@ AttributeString result = await databases.CreateStringAttribute( default: "", // optional array: false, // optional encrypt: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/databases/create-text-attribute.md b/docs/examples/databases/create-text-attribute.md index 80d5e4fc..93aeaa54 100644 --- a/docs/examples/databases/create-text-attribute.md +++ b/docs/examples/databases/create-text-attribute.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -16,4 +17,4 @@ AttributeText result = await databases.CreateTextAttribute( required: false, default: "", // optional array: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/databases/create-transaction.md b/docs/examples/databases/create-transaction.md index f8d7b34f..affe6894 100644 --- a/docs/examples/databases/create-transaction.md +++ b/docs/examples/databases/create-transaction.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -11,4 +12,4 @@ Databases databases = new Databases(client); Transaction result = await databases.CreateTransaction( ttl: 60 // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/databases/create-url-attribute.md b/docs/examples/databases/create-url-attribute.md index dce1ac49..2f278ed1 100644 --- a/docs/examples/databases/create-url-attribute.md +++ b/docs/examples/databases/create-url-attribute.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -16,4 +17,4 @@ AttributeUrl result = await databases.CreateUrlAttribute( required: false, default: "https://example.com", // optional array: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/databases/create-varchar-attribute.md b/docs/examples/databases/create-varchar-attribute.md index c86beb26..7f6573ae 100644 --- a/docs/examples/databases/create-varchar-attribute.md +++ b/docs/examples/databases/create-varchar-attribute.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -17,4 +18,4 @@ AttributeVarchar result = await databases.CreateVarcharAttribute( required: false, default: "", // optional array: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/databases/create.md b/docs/examples/databases/create.md index 9b66c15c..534cd64f 100644 --- a/docs/examples/databases/create.md +++ b/docs/examples/databases/create.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -13,4 +14,4 @@ Database result = await databases.Create( databaseId: "", name: "", enabled: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/databases/decrement-document-attribute.md b/docs/examples/databases/decrement-document-attribute.md index 9ff62a08..4dc89d8e 100644 --- a/docs/examples/databases/decrement-document-attribute.md +++ b/docs/examples/databases/decrement-document-attribute.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -17,4 +18,4 @@ Document result = await databases.DecrementDocumentAttribute( value: 0, // optional min: 0, // optional transactionId: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/databases/delete-attribute.md b/docs/examples/databases/delete-attribute.md index 46eb44b4..fdf5b395 100644 --- a/docs/examples/databases/delete-attribute.md +++ b/docs/examples/databases/delete-attribute.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -13,4 +14,4 @@ await databases.DeleteAttribute( databaseId: "", collectionId: "", key: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/databases/delete-collection.md b/docs/examples/databases/delete-collection.md index e05717dc..50d6e4e7 100644 --- a/docs/examples/databases/delete-collection.md +++ b/docs/examples/databases/delete-collection.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -12,4 +13,4 @@ Databases databases = new Databases(client); await databases.DeleteCollection( databaseId: "", collectionId: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/databases/delete-document.md b/docs/examples/databases/delete-document.md index 34bdbdaf..fda3b456 100644 --- a/docs/examples/databases/delete-document.md +++ b/docs/examples/databases/delete-document.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -14,4 +15,4 @@ await databases.DeleteDocument( collectionId: "", documentId: "", transactionId: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/databases/delete-documents.md b/docs/examples/databases/delete-documents.md index 52f711b8..d6c85c9a 100644 --- a/docs/examples/databases/delete-documents.md +++ b/docs/examples/databases/delete-documents.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -14,4 +15,4 @@ await databases.DeleteDocuments( collectionId: "", queries: new List(), // optional transactionId: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/databases/delete-index.md b/docs/examples/databases/delete-index.md index 02dcf5c6..5dce6650 100644 --- a/docs/examples/databases/delete-index.md +++ b/docs/examples/databases/delete-index.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -13,4 +14,4 @@ await databases.DeleteIndex( databaseId: "", collectionId: "", key: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/databases/delete-transaction.md b/docs/examples/databases/delete-transaction.md index 713a7578..692245f6 100644 --- a/docs/examples/databases/delete-transaction.md +++ b/docs/examples/databases/delete-transaction.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -11,4 +12,4 @@ Databases databases = new Databases(client); await databases.DeleteTransaction( transactionId: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/databases/delete.md b/docs/examples/databases/delete.md index a877eabc..2c4d440b 100644 --- a/docs/examples/databases/delete.md +++ b/docs/examples/databases/delete.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -11,4 +12,4 @@ Databases databases = new Databases(client); await databases.Delete( databaseId: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/databases/get-attribute.md b/docs/examples/databases/get-attribute.md index 024f14fb..bd861538 100644 --- a/docs/examples/databases/get-attribute.md +++ b/docs/examples/databases/get-attribute.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -13,4 +14,4 @@ AttributeBoolean result = await databases.GetAttribute( databaseId: "", collectionId: "", key: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/databases/get-collection.md b/docs/examples/databases/get-collection.md index 79fe685c..90bcbd5b 100644 --- a/docs/examples/databases/get-collection.md +++ b/docs/examples/databases/get-collection.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -12,4 +13,4 @@ Databases databases = new Databases(client); Collection result = await databases.GetCollection( databaseId: "", collectionId: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/databases/get-document.md b/docs/examples/databases/get-document.md index bbafc3c8..404aeaa2 100644 --- a/docs/examples/databases/get-document.md +++ b/docs/examples/databases/get-document.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -15,4 +16,4 @@ Document result = await databases.GetDocument( documentId: "", queries: new List(), // optional transactionId: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/databases/get-index.md b/docs/examples/databases/get-index.md index 02f7b812..fb11f427 100644 --- a/docs/examples/databases/get-index.md +++ b/docs/examples/databases/get-index.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -13,4 +14,4 @@ Index result = await databases.GetIndex( databaseId: "", collectionId: "", key: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/databases/get-transaction.md b/docs/examples/databases/get-transaction.md index d66ab6e2..38441e99 100644 --- a/docs/examples/databases/get-transaction.md +++ b/docs/examples/databases/get-transaction.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -11,4 +12,4 @@ Databases databases = new Databases(client); Transaction result = await databases.GetTransaction( transactionId: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/databases/get.md b/docs/examples/databases/get.md index 174d74c4..ff8ff6ba 100644 --- a/docs/examples/databases/get.md +++ b/docs/examples/databases/get.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -11,4 +12,4 @@ Databases databases = new Databases(client); Database result = await databases.Get( databaseId: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/databases/increment-document-attribute.md b/docs/examples/databases/increment-document-attribute.md index 37a4ed76..3a6eaa2b 100644 --- a/docs/examples/databases/increment-document-attribute.md +++ b/docs/examples/databases/increment-document-attribute.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -17,4 +18,4 @@ Document result = await databases.IncrementDocumentAttribute( value: 0, // optional max: 0, // optional transactionId: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/databases/list-attributes.md b/docs/examples/databases/list-attributes.md index c14c92b3..b0ac39a0 100644 --- a/docs/examples/databases/list-attributes.md +++ b/docs/examples/databases/list-attributes.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -14,4 +15,4 @@ AttributeList result = await databases.ListAttributes( collectionId: "", queries: new List(), // optional total: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/databases/list-collections.md b/docs/examples/databases/list-collections.md index b840648c..9cc4aeff 100644 --- a/docs/examples/databases/list-collections.md +++ b/docs/examples/databases/list-collections.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -14,4 +15,4 @@ CollectionList result = await databases.ListCollections( queries: new List(), // optional search: "", // optional total: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/databases/list-documents.md b/docs/examples/databases/list-documents.md index 6d6a91ad..c5f69e3e 100644 --- a/docs/examples/databases/list-documents.md +++ b/docs/examples/databases/list-documents.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -15,4 +16,4 @@ DocumentList result = await databases.ListDocuments( queries: new List(), // optional transactionId: "", // optional total: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/databases/list-indexes.md b/docs/examples/databases/list-indexes.md index 866f1485..207d060b 100644 --- a/docs/examples/databases/list-indexes.md +++ b/docs/examples/databases/list-indexes.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -14,4 +15,4 @@ IndexList result = await databases.ListIndexes( collectionId: "", queries: new List(), // optional total: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/databases/list-transactions.md b/docs/examples/databases/list-transactions.md index 3f2ce0df..1213629c 100644 --- a/docs/examples/databases/list-transactions.md +++ b/docs/examples/databases/list-transactions.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -11,4 +12,4 @@ Databases databases = new Databases(client); TransactionList result = await databases.ListTransactions( queries: new List() // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/databases/list.md b/docs/examples/databases/list.md index cb7fa8cc..52aa1970 100644 --- a/docs/examples/databases/list.md +++ b/docs/examples/databases/list.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -13,4 +14,4 @@ DatabaseList result = await databases.List( queries: new List(), // optional search: "", // optional total: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/databases/update-boolean-attribute.md b/docs/examples/databases/update-boolean-attribute.md index aa2ed498..0b5caaa2 100644 --- a/docs/examples/databases/update-boolean-attribute.md +++ b/docs/examples/databases/update-boolean-attribute.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -16,4 +17,4 @@ AttributeBoolean result = await databases.UpdateBooleanAttribute( required: false, default: false, newKey: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/databases/update-collection.md b/docs/examples/databases/update-collection.md index 05648d9a..25ef7b6d 100644 --- a/docs/examples/databases/update-collection.md +++ b/docs/examples/databases/update-collection.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -16,4 +17,4 @@ Collection result = await databases.UpdateCollection( permissions: new List { Permission.Read(Role.Any()) }, // optional documentSecurity: false, // optional enabled: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/databases/update-datetime-attribute.md b/docs/examples/databases/update-datetime-attribute.md index e6b60c87..21517815 100644 --- a/docs/examples/databases/update-datetime-attribute.md +++ b/docs/examples/databases/update-datetime-attribute.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -16,4 +17,4 @@ AttributeDatetime result = await databases.UpdateDatetimeAttribute( required: false, default: "", newKey: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/databases/update-document.md b/docs/examples/databases/update-document.md index 8bebfdfd..58d268ba 100644 --- a/docs/examples/databases/update-document.md +++ b/docs/examples/databases/update-document.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -22,4 +23,4 @@ Document result = await databases.UpdateDocument( }, // optional permissions: new List { Permission.Read(Role.Any()) }, // optional transactionId: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/databases/update-documents.md b/docs/examples/databases/update-documents.md index d7788b43..add1deb6 100644 --- a/docs/examples/databases/update-documents.md +++ b/docs/examples/databases/update-documents.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -21,4 +22,4 @@ DocumentList result = await databases.UpdateDocuments( }, // optional queries: new List(), // optional transactionId: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/databases/update-email-attribute.md b/docs/examples/databases/update-email-attribute.md index 8d36a437..543e95be 100644 --- a/docs/examples/databases/update-email-attribute.md +++ b/docs/examples/databases/update-email-attribute.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -16,4 +17,4 @@ AttributeEmail result = await databases.UpdateEmailAttribute( required: false, default: "email@example.com", newKey: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/databases/update-enum-attribute.md b/docs/examples/databases/update-enum-attribute.md index e3ca9fe1..e71c4bdb 100644 --- a/docs/examples/databases/update-enum-attribute.md +++ b/docs/examples/databases/update-enum-attribute.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -17,4 +18,4 @@ AttributeEnum result = await databases.UpdateEnumAttribute( required: false, default: "", newKey: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/databases/update-float-attribute.md b/docs/examples/databases/update-float-attribute.md index 46328d26..14723431 100644 --- a/docs/examples/databases/update-float-attribute.md +++ b/docs/examples/databases/update-float-attribute.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -18,4 +19,4 @@ AttributeFloat result = await databases.UpdateFloatAttribute( min: 0, // optional max: 0, // optional newKey: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/databases/update-integer-attribute.md b/docs/examples/databases/update-integer-attribute.md index 91ff1897..75764af7 100644 --- a/docs/examples/databases/update-integer-attribute.md +++ b/docs/examples/databases/update-integer-attribute.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -18,4 +19,4 @@ AttributeInteger result = await databases.UpdateIntegerAttribute( min: 0, // optional max: 0, // optional newKey: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/databases/update-ip-attribute.md b/docs/examples/databases/update-ip-attribute.md index dfcb5d21..d0b25c7c 100644 --- a/docs/examples/databases/update-ip-attribute.md +++ b/docs/examples/databases/update-ip-attribute.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -16,4 +17,4 @@ AttributeIp result = await databases.UpdateIpAttribute( required: false, default: "", newKey: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/databases/update-line-attribute.md b/docs/examples/databases/update-line-attribute.md index 0cc21572..eb3a8e76 100644 --- a/docs/examples/databases/update-line-attribute.md +++ b/docs/examples/databases/update-line-attribute.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -16,4 +17,4 @@ AttributeLine result = await databases.UpdateLineAttribute( required: false, default: [[1, 2], [3, 4], [5, 6]], // optional newKey: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/databases/update-longtext-attribute.md b/docs/examples/databases/update-longtext-attribute.md index 970e6b31..ad74738f 100644 --- a/docs/examples/databases/update-longtext-attribute.md +++ b/docs/examples/databases/update-longtext-attribute.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -16,4 +17,4 @@ AttributeLongtext result = await databases.UpdateLongtextAttribute( required: false, default: "", newKey: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/databases/update-mediumtext-attribute.md b/docs/examples/databases/update-mediumtext-attribute.md index f26b4e49..b85055ef 100644 --- a/docs/examples/databases/update-mediumtext-attribute.md +++ b/docs/examples/databases/update-mediumtext-attribute.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -16,4 +17,4 @@ AttributeMediumtext result = await databases.UpdateMediumtextAttribute( required: false, default: "", newKey: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/databases/update-point-attribute.md b/docs/examples/databases/update-point-attribute.md index 3969b160..cb8d54b6 100644 --- a/docs/examples/databases/update-point-attribute.md +++ b/docs/examples/databases/update-point-attribute.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -16,4 +17,4 @@ AttributePoint result = await databases.UpdatePointAttribute( required: false, default: [1, 2], // optional newKey: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/databases/update-polygon-attribute.md b/docs/examples/databases/update-polygon-attribute.md index 13445745..5c893799 100644 --- a/docs/examples/databases/update-polygon-attribute.md +++ b/docs/examples/databases/update-polygon-attribute.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -16,4 +17,4 @@ AttributePolygon result = await databases.UpdatePolygonAttribute( required: false, default: [[[1, 2], [3, 4], [5, 6], [1, 2]]], // optional newKey: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/databases/update-relationship-attribute.md b/docs/examples/databases/update-relationship-attribute.md index 5b6dd714..5d260d97 100644 --- a/docs/examples/databases/update-relationship-attribute.md +++ b/docs/examples/databases/update-relationship-attribute.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Enums; using Appwrite.Models; @@ -16,4 +17,4 @@ AttributeRelationship result = await databases.UpdateRelationshipAttribute( key: "", onDelete: RelationMutate.Cascade, // optional newKey: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/databases/update-string-attribute.md b/docs/examples/databases/update-string-attribute.md index 918fdc0e..08337fc2 100644 --- a/docs/examples/databases/update-string-attribute.md +++ b/docs/examples/databases/update-string-attribute.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -17,4 +18,4 @@ AttributeString result = await databases.UpdateStringAttribute( default: "", size: 1, // optional newKey: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/databases/update-text-attribute.md b/docs/examples/databases/update-text-attribute.md index 2133c6de..2ead38d2 100644 --- a/docs/examples/databases/update-text-attribute.md +++ b/docs/examples/databases/update-text-attribute.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -16,4 +17,4 @@ AttributeText result = await databases.UpdateTextAttribute( required: false, default: "", newKey: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/databases/update-transaction.md b/docs/examples/databases/update-transaction.md index 056f0d86..afa8362a 100644 --- a/docs/examples/databases/update-transaction.md +++ b/docs/examples/databases/update-transaction.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -13,4 +14,4 @@ Transaction result = await databases.UpdateTransaction( transactionId: "", commit: false, // optional rollback: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/databases/update-url-attribute.md b/docs/examples/databases/update-url-attribute.md index 8766a3f2..2c78b794 100644 --- a/docs/examples/databases/update-url-attribute.md +++ b/docs/examples/databases/update-url-attribute.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -16,4 +17,4 @@ AttributeUrl result = await databases.UpdateUrlAttribute( required: false, default: "https://example.com", newKey: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/databases/update-varchar-attribute.md b/docs/examples/databases/update-varchar-attribute.md index ce7f331d..201c17de 100644 --- a/docs/examples/databases/update-varchar-attribute.md +++ b/docs/examples/databases/update-varchar-attribute.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -17,4 +18,4 @@ AttributeVarchar result = await databases.UpdateVarcharAttribute( default: "", size: 1, // optional newKey: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/databases/update.md b/docs/examples/databases/update.md index 75db2a55..7a6c2e4c 100644 --- a/docs/examples/databases/update.md +++ b/docs/examples/databases/update.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -13,4 +14,4 @@ Database result = await databases.Update( databaseId: "", name: "", // optional enabled: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/databases/upsert-document.md b/docs/examples/databases/upsert-document.md index c54bcfc5..a4714099 100644 --- a/docs/examples/databases/upsert-document.md +++ b/docs/examples/databases/upsert-document.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -22,4 +23,4 @@ Document result = await databases.UpsertDocument( }, // optional permissions: new List { Permission.Read(Role.Any()) }, // optional transactionId: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/databases/upsert-documents.md b/docs/examples/databases/upsert-documents.md index 4fefbfcc..8223f8ab 100644 --- a/docs/examples/databases/upsert-documents.md +++ b/docs/examples/databases/upsert-documents.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -14,4 +15,4 @@ DocumentList result = await databases.UpsertDocuments( collectionId: "", documents: new List(), transactionId: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/functions/create-deployment.md b/docs/examples/functions/create-deployment.md index 26c6ff4c..ec99b73c 100644 --- a/docs/examples/functions/create-deployment.md +++ b/docs/examples/functions/create-deployment.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -15,4 +16,4 @@ Deployment result = await functions.CreateDeployment( activate: false, entrypoint: "", // optional commands: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/functions/create-duplicate-deployment.md b/docs/examples/functions/create-duplicate-deployment.md index 057fe12b..e906e373 100644 --- a/docs/examples/functions/create-duplicate-deployment.md +++ b/docs/examples/functions/create-duplicate-deployment.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -13,4 +14,4 @@ Deployment result = await functions.CreateDuplicateDeployment( functionId: "", deploymentId: "", buildId: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/functions/create-execution.md b/docs/examples/functions/create-execution.md index 98d1b2f3..11a6b73a 100644 --- a/docs/examples/functions/create-execution.md +++ b/docs/examples/functions/create-execution.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Enums; using Appwrite.Models; @@ -18,4 +19,4 @@ Execution result = await functions.CreateExecution( method: ExecutionMethod.GET, // optional headers: [object], // optional scheduledAt: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/functions/create-template-deployment.md b/docs/examples/functions/create-template-deployment.md index 6fcf2398..18cb1c7b 100644 --- a/docs/examples/functions/create-template-deployment.md +++ b/docs/examples/functions/create-template-deployment.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Enums; using Appwrite.Models; @@ -18,4 +19,4 @@ Deployment result = await functions.CreateTemplateDeployment( type: TemplateReferenceType.Commit, reference: "", activate: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/functions/create-variable.md b/docs/examples/functions/create-variable.md index 6d1f85b1..c48bdd2b 100644 --- a/docs/examples/functions/create-variable.md +++ b/docs/examples/functions/create-variable.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -14,4 +15,4 @@ Variable result = await functions.CreateVariable( key: "", value: "", secret: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/functions/create-vcs-deployment.md b/docs/examples/functions/create-vcs-deployment.md index a7403ff1..02761724 100644 --- a/docs/examples/functions/create-vcs-deployment.md +++ b/docs/examples/functions/create-vcs-deployment.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Enums; using Appwrite.Models; @@ -15,4 +16,4 @@ Deployment result = await functions.CreateVcsDeployment( type: VCSReferenceType.Branch, reference: "", activate: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/functions/create.md b/docs/examples/functions/create.md index 447ad5ce..5032fc38 100644 --- a/docs/examples/functions/create.md +++ b/docs/examples/functions/create.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Enums; using Appwrite.Models; @@ -29,4 +30,4 @@ Function result = await functions.Create( providerSilentMode: false, // optional providerRootDirectory: "", // optional specification: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/functions/delete-deployment.md b/docs/examples/functions/delete-deployment.md index 33c537ad..89ed174d 100644 --- a/docs/examples/functions/delete-deployment.md +++ b/docs/examples/functions/delete-deployment.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -12,4 +13,4 @@ Functions functions = new Functions(client); await functions.DeleteDeployment( functionId: "", deploymentId: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/functions/delete-execution.md b/docs/examples/functions/delete-execution.md index 5d5ab8de..0d5958be 100644 --- a/docs/examples/functions/delete-execution.md +++ b/docs/examples/functions/delete-execution.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -12,4 +13,4 @@ Functions functions = new Functions(client); await functions.DeleteExecution( functionId: "", executionId: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/functions/delete-variable.md b/docs/examples/functions/delete-variable.md index 263c3f64..2c69a588 100644 --- a/docs/examples/functions/delete-variable.md +++ b/docs/examples/functions/delete-variable.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -12,4 +13,4 @@ Functions functions = new Functions(client); await functions.DeleteVariable( functionId: "", variableId: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/functions/delete.md b/docs/examples/functions/delete.md index ed780ac1..104a7485 100644 --- a/docs/examples/functions/delete.md +++ b/docs/examples/functions/delete.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -11,4 +12,4 @@ Functions functions = new Functions(client); await functions.Delete( functionId: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/functions/get-deployment-download.md b/docs/examples/functions/get-deployment-download.md index bfc32096..d78d52a7 100644 --- a/docs/examples/functions/get-deployment-download.md +++ b/docs/examples/functions/get-deployment-download.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Enums; using Appwrite.Models; @@ -14,4 +15,4 @@ byte[] result = await functions.GetDeploymentDownload( functionId: "", deploymentId: "", type: DeploymentDownloadType.Source // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/functions/get-deployment.md b/docs/examples/functions/get-deployment.md index 5fe31a2f..4bca044d 100644 --- a/docs/examples/functions/get-deployment.md +++ b/docs/examples/functions/get-deployment.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -12,4 +13,4 @@ Functions functions = new Functions(client); Deployment result = await functions.GetDeployment( functionId: "", deploymentId: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/functions/get-execution.md b/docs/examples/functions/get-execution.md index 8581b968..a4705dc9 100644 --- a/docs/examples/functions/get-execution.md +++ b/docs/examples/functions/get-execution.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -12,4 +13,4 @@ Functions functions = new Functions(client); Execution result = await functions.GetExecution( functionId: "", executionId: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/functions/get-variable.md b/docs/examples/functions/get-variable.md index 57ba9933..fb4bd217 100644 --- a/docs/examples/functions/get-variable.md +++ b/docs/examples/functions/get-variable.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -12,4 +13,4 @@ Functions functions = new Functions(client); Variable result = await functions.GetVariable( functionId: "", variableId: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/functions/get.md b/docs/examples/functions/get.md index baba5d0b..1c8ab331 100644 --- a/docs/examples/functions/get.md +++ b/docs/examples/functions/get.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -11,4 +12,4 @@ Functions functions = new Functions(client); Function result = await functions.Get( functionId: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/functions/list-deployments.md b/docs/examples/functions/list-deployments.md index aabb1680..ae2a3f7b 100644 --- a/docs/examples/functions/list-deployments.md +++ b/docs/examples/functions/list-deployments.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -14,4 +15,4 @@ DeploymentList result = await functions.ListDeployments( queries: new List(), // optional search: "", // optional total: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/functions/list-executions.md b/docs/examples/functions/list-executions.md index 325093bd..e3e838e1 100644 --- a/docs/examples/functions/list-executions.md +++ b/docs/examples/functions/list-executions.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -13,4 +14,4 @@ ExecutionList result = await functions.ListExecutions( functionId: "", queries: new List(), // optional total: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/functions/list-runtimes.md b/docs/examples/functions/list-runtimes.md index c2386716..c0a58ab6 100644 --- a/docs/examples/functions/list-runtimes.md +++ b/docs/examples/functions/list-runtimes.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -10,3 +11,4 @@ Client client = new Client() Functions functions = new Functions(client); RuntimeList result = await functions.ListRuntimes(); +``` diff --git a/docs/examples/functions/list-specifications.md b/docs/examples/functions/list-specifications.md index 2d868d13..2c168c03 100644 --- a/docs/examples/functions/list-specifications.md +++ b/docs/examples/functions/list-specifications.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -10,3 +11,4 @@ Client client = new Client() Functions functions = new Functions(client); SpecificationList result = await functions.ListSpecifications(); +``` diff --git a/docs/examples/functions/list-variables.md b/docs/examples/functions/list-variables.md index 4c85da89..345fd306 100644 --- a/docs/examples/functions/list-variables.md +++ b/docs/examples/functions/list-variables.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -11,4 +12,4 @@ Functions functions = new Functions(client); VariableList result = await functions.ListVariables( functionId: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/functions/list.md b/docs/examples/functions/list.md index 56b457c2..f8da87f8 100644 --- a/docs/examples/functions/list.md +++ b/docs/examples/functions/list.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -13,4 +14,4 @@ FunctionList result = await functions.List( queries: new List(), // optional search: "", // optional total: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/functions/update-deployment-status.md b/docs/examples/functions/update-deployment-status.md index 4dd70b19..819221cb 100644 --- a/docs/examples/functions/update-deployment-status.md +++ b/docs/examples/functions/update-deployment-status.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -12,4 +13,4 @@ Functions functions = new Functions(client); Deployment result = await functions.UpdateDeploymentStatus( functionId: "", deploymentId: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/functions/update-function-deployment.md b/docs/examples/functions/update-function-deployment.md index 7bdbd91b..1045b455 100644 --- a/docs/examples/functions/update-function-deployment.md +++ b/docs/examples/functions/update-function-deployment.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -12,4 +13,4 @@ Functions functions = new Functions(client); Function result = await functions.UpdateFunctionDeployment( functionId: "", deploymentId: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/functions/update-variable.md b/docs/examples/functions/update-variable.md index 2b776d69..0d2c6bba 100644 --- a/docs/examples/functions/update-variable.md +++ b/docs/examples/functions/update-variable.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -15,4 +16,4 @@ Variable result = await functions.UpdateVariable( key: "", value: "", // optional secret: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/functions/update.md b/docs/examples/functions/update.md index cb1a251c..4f9df255 100644 --- a/docs/examples/functions/update.md +++ b/docs/examples/functions/update.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Enums; using Appwrite.Models; @@ -29,4 +30,4 @@ Function result = await functions.Update( providerSilentMode: false, // optional providerRootDirectory: "", // optional specification: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/graphql/mutation.md b/docs/examples/graphql/mutation.md index b153e34d..4280455f 100644 --- a/docs/examples/graphql/mutation.md +++ b/docs/examples/graphql/mutation.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -11,4 +12,4 @@ Graphql graphql = new Graphql(client); Any result = await graphql.Mutation( query: [object] -); \ No newline at end of file +);``` diff --git a/docs/examples/graphql/query.md b/docs/examples/graphql/query.md index 61345d76..6d1c447e 100644 --- a/docs/examples/graphql/query.md +++ b/docs/examples/graphql/query.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -11,4 +12,4 @@ Graphql graphql = new Graphql(client); Any result = await graphql.Query( query: [object] -); \ No newline at end of file +);``` diff --git a/docs/examples/health/get-antivirus.md b/docs/examples/health/get-antivirus.md index 115c0e5c..f7fdc0c5 100644 --- a/docs/examples/health/get-antivirus.md +++ b/docs/examples/health/get-antivirus.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -10,3 +11,4 @@ Client client = new Client() Health health = new Health(client); HealthAntivirus result = await health.GetAntivirus(); +``` diff --git a/docs/examples/health/get-cache.md b/docs/examples/health/get-cache.md index bf66405c..d10993ff 100644 --- a/docs/examples/health/get-cache.md +++ b/docs/examples/health/get-cache.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -10,3 +11,4 @@ Client client = new Client() Health health = new Health(client); HealthStatusList result = await health.GetCache(); +``` diff --git a/docs/examples/health/get-certificate.md b/docs/examples/health/get-certificate.md index 457b7012..2db4b038 100644 --- a/docs/examples/health/get-certificate.md +++ b/docs/examples/health/get-certificate.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -11,4 +12,4 @@ Health health = new Health(client); HealthCertificate result = await health.GetCertificate( domain: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/health/get-db.md b/docs/examples/health/get-db.md index ab7a8ff6..83827fc1 100644 --- a/docs/examples/health/get-db.md +++ b/docs/examples/health/get-db.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -10,3 +11,4 @@ Client client = new Client() Health health = new Health(client); HealthStatusList result = await health.GetDB(); +``` diff --git a/docs/examples/health/get-failed-jobs.md b/docs/examples/health/get-failed-jobs.md index ee0aceaa..33a9e9bf 100644 --- a/docs/examples/health/get-failed-jobs.md +++ b/docs/examples/health/get-failed-jobs.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Enums; using Appwrite.Models; @@ -13,4 +14,4 @@ Health health = new Health(client); HealthQueue result = await health.GetFailedJobs( name: Name.V1Database, threshold: 0 // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/health/get-pub-sub.md b/docs/examples/health/get-pub-sub.md index 2ddf3963..9e44103a 100644 --- a/docs/examples/health/get-pub-sub.md +++ b/docs/examples/health/get-pub-sub.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -10,3 +11,4 @@ Client client = new Client() Health health = new Health(client); HealthStatusList result = await health.GetPubSub(); +``` diff --git a/docs/examples/health/get-queue-audits.md b/docs/examples/health/get-queue-audits.md index 24ff6ad0..9e04d1fe 100644 --- a/docs/examples/health/get-queue-audits.md +++ b/docs/examples/health/get-queue-audits.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -11,4 +12,4 @@ Health health = new Health(client); HealthQueue result = await health.GetQueueAudits( threshold: 0 // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/health/get-queue-billing-project-aggregation.md b/docs/examples/health/get-queue-billing-project-aggregation.md new file mode 100644 index 00000000..e4fcd6ef --- /dev/null +++ b/docs/examples/health/get-queue-billing-project-aggregation.md @@ -0,0 +1,15 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +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); + +HealthQueue result = await health.GetQueueBillingProjectAggregation( + threshold: 0 // optional +);``` diff --git a/docs/examples/health/get-queue-billing-team-aggregation.md b/docs/examples/health/get-queue-billing-team-aggregation.md new file mode 100644 index 00000000..5d78abb1 --- /dev/null +++ b/docs/examples/health/get-queue-billing-team-aggregation.md @@ -0,0 +1,15 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +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); + +HealthQueue result = await health.GetQueueBillingTeamAggregation( + threshold: 0 // optional +);``` diff --git a/docs/examples/health/get-queue-builds.md b/docs/examples/health/get-queue-builds.md index 5d522f03..65cea923 100644 --- a/docs/examples/health/get-queue-builds.md +++ b/docs/examples/health/get-queue-builds.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -11,4 +12,4 @@ Health health = new Health(client); HealthQueue result = await health.GetQueueBuilds( threshold: 0 // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/health/get-queue-certificates.md b/docs/examples/health/get-queue-certificates.md index c7e186e5..4457901e 100644 --- a/docs/examples/health/get-queue-certificates.md +++ b/docs/examples/health/get-queue-certificates.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -11,4 +12,4 @@ Health health = new Health(client); HealthQueue result = await health.GetQueueCertificates( threshold: 0 // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/health/get-queue-databases.md b/docs/examples/health/get-queue-databases.md index 1db6fb51..fc8312e7 100644 --- a/docs/examples/health/get-queue-databases.md +++ b/docs/examples/health/get-queue-databases.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -12,4 +13,4 @@ Health health = new Health(client); HealthQueue result = await health.GetQueueDatabases( name: "", // optional threshold: 0 // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/health/get-queue-deletes.md b/docs/examples/health/get-queue-deletes.md index 487cee34..c905fa86 100644 --- a/docs/examples/health/get-queue-deletes.md +++ b/docs/examples/health/get-queue-deletes.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -11,4 +12,4 @@ Health health = new Health(client); HealthQueue result = await health.GetQueueDeletes( threshold: 0 // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/health/get-queue-functions.md b/docs/examples/health/get-queue-functions.md index 949e3766..79751bba 100644 --- a/docs/examples/health/get-queue-functions.md +++ b/docs/examples/health/get-queue-functions.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -11,4 +12,4 @@ Health health = new Health(client); HealthQueue result = await health.GetQueueFunctions( threshold: 0 // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/health/get-queue-logs.md b/docs/examples/health/get-queue-logs.md index 58ad1ac2..50a48066 100644 --- a/docs/examples/health/get-queue-logs.md +++ b/docs/examples/health/get-queue-logs.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -11,4 +12,4 @@ Health health = new Health(client); HealthQueue result = await health.GetQueueLogs( threshold: 0 // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/health/get-queue-mails.md b/docs/examples/health/get-queue-mails.md index 2c1008c7..d0224adc 100644 --- a/docs/examples/health/get-queue-mails.md +++ b/docs/examples/health/get-queue-mails.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -11,4 +12,4 @@ Health health = new Health(client); HealthQueue result = await health.GetQueueMails( threshold: 0 // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/health/get-queue-messaging.md b/docs/examples/health/get-queue-messaging.md index 4116f19b..3a7b2daf 100644 --- a/docs/examples/health/get-queue-messaging.md +++ b/docs/examples/health/get-queue-messaging.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -11,4 +12,4 @@ Health health = new Health(client); HealthQueue result = await health.GetQueueMessaging( threshold: 0 // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/health/get-queue-migrations.md b/docs/examples/health/get-queue-migrations.md index 5a0c7a03..78bfa709 100644 --- a/docs/examples/health/get-queue-migrations.md +++ b/docs/examples/health/get-queue-migrations.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -11,4 +12,4 @@ Health health = new Health(client); HealthQueue result = await health.GetQueueMigrations( threshold: 0 // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/health/get-queue-priority-builds.md b/docs/examples/health/get-queue-priority-builds.md new file mode 100644 index 00000000..cf1796f8 --- /dev/null +++ b/docs/examples/health/get-queue-priority-builds.md @@ -0,0 +1,15 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +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); + +HealthQueue result = await health.GetQueuePriorityBuilds( + threshold: 0 // optional +);``` diff --git a/docs/examples/health/get-queue-region-manager.md b/docs/examples/health/get-queue-region-manager.md new file mode 100644 index 00000000..29c6f16b --- /dev/null +++ b/docs/examples/health/get-queue-region-manager.md @@ -0,0 +1,15 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +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); + +HealthQueue result = await health.GetQueueRegionManager( + threshold: 0 // optional +);``` diff --git a/docs/examples/health/get-queue-stats-resources.md b/docs/examples/health/get-queue-stats-resources.md index 4002cca1..1ad7d854 100644 --- a/docs/examples/health/get-queue-stats-resources.md +++ b/docs/examples/health/get-queue-stats-resources.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -11,4 +12,4 @@ Health health = new Health(client); HealthQueue result = await health.GetQueueStatsResources( threshold: 0 // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/health/get-queue-threats.md b/docs/examples/health/get-queue-threats.md new file mode 100644 index 00000000..daa6efce --- /dev/null +++ b/docs/examples/health/get-queue-threats.md @@ -0,0 +1,15 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +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); + +HealthQueue result = await health.GetQueueThreats( + threshold: 0 // optional +);``` diff --git a/docs/examples/health/get-queue-usage.md b/docs/examples/health/get-queue-usage.md index 546e9a07..a45b7473 100644 --- a/docs/examples/health/get-queue-usage.md +++ b/docs/examples/health/get-queue-usage.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -11,4 +12,4 @@ Health health = new Health(client); HealthQueue result = await health.GetQueueUsage( threshold: 0 // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/health/get-queue-webhooks.md b/docs/examples/health/get-queue-webhooks.md index 1fc8d4d6..9a670034 100644 --- a/docs/examples/health/get-queue-webhooks.md +++ b/docs/examples/health/get-queue-webhooks.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -11,4 +12,4 @@ Health health = new Health(client); HealthQueue result = await health.GetQueueWebhooks( threshold: 0 // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/health/get-storage-local.md b/docs/examples/health/get-storage-local.md index 3e853979..73aa2069 100644 --- a/docs/examples/health/get-storage-local.md +++ b/docs/examples/health/get-storage-local.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -10,3 +11,4 @@ Client client = new Client() Health health = new Health(client); HealthStatus result = await health.GetStorageLocal(); +``` diff --git a/docs/examples/health/get-storage.md b/docs/examples/health/get-storage.md index 42d4aba4..06b00580 100644 --- a/docs/examples/health/get-storage.md +++ b/docs/examples/health/get-storage.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -10,3 +11,4 @@ Client client = new Client() Health health = new Health(client); HealthStatus result = await health.GetStorage(); +``` diff --git a/docs/examples/health/get-time.md b/docs/examples/health/get-time.md index 95906011..e8a0cecf 100644 --- a/docs/examples/health/get-time.md +++ b/docs/examples/health/get-time.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -10,3 +11,4 @@ Client client = new Client() Health health = new Health(client); HealthTime result = await health.GetTime(); +``` diff --git a/docs/examples/health/get.md b/docs/examples/health/get.md index a926fe71..4b31b04b 100644 --- a/docs/examples/health/get.md +++ b/docs/examples/health/get.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -10,3 +11,4 @@ Client client = new Client() Health health = new Health(client); HealthStatus result = await health.Get(); +``` diff --git a/docs/examples/locale/get.md b/docs/examples/locale/get.md index 48b97018..c8bd51ea 100644 --- a/docs/examples/locale/get.md +++ b/docs/examples/locale/get.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -10,3 +11,4 @@ Client client = new Client() Locale locale = new Locale(client); Locale result = await locale.Get(); +``` diff --git a/docs/examples/locale/list-codes.md b/docs/examples/locale/list-codes.md index 0df7696d..ec8da7d6 100644 --- a/docs/examples/locale/list-codes.md +++ b/docs/examples/locale/list-codes.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -10,3 +11,4 @@ Client client = new Client() Locale locale = new Locale(client); LocaleCodeList result = await locale.ListCodes(); +``` diff --git a/docs/examples/locale/list-continents.md b/docs/examples/locale/list-continents.md index 7cf74cae..b53a4a1f 100644 --- a/docs/examples/locale/list-continents.md +++ b/docs/examples/locale/list-continents.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -10,3 +11,4 @@ Client client = new Client() Locale locale = new Locale(client); ContinentList result = await locale.ListContinents(); +``` diff --git a/docs/examples/locale/list-countries-eu.md b/docs/examples/locale/list-countries-eu.md index 106e140e..aa85c781 100644 --- a/docs/examples/locale/list-countries-eu.md +++ b/docs/examples/locale/list-countries-eu.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -10,3 +11,4 @@ Client client = new Client() Locale locale = new Locale(client); CountryList result = await locale.ListCountriesEU(); +``` diff --git a/docs/examples/locale/list-countries-phones.md b/docs/examples/locale/list-countries-phones.md index 38fbe24f..6a600fc5 100644 --- a/docs/examples/locale/list-countries-phones.md +++ b/docs/examples/locale/list-countries-phones.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -10,3 +11,4 @@ Client client = new Client() Locale locale = new Locale(client); PhoneList result = await locale.ListCountriesPhones(); +``` diff --git a/docs/examples/locale/list-countries.md b/docs/examples/locale/list-countries.md index 5e5d9f40..ce3e0f53 100644 --- a/docs/examples/locale/list-countries.md +++ b/docs/examples/locale/list-countries.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -10,3 +11,4 @@ Client client = new Client() Locale locale = new Locale(client); CountryList result = await locale.ListCountries(); +``` diff --git a/docs/examples/locale/list-currencies.md b/docs/examples/locale/list-currencies.md index e51a1388..526d6180 100644 --- a/docs/examples/locale/list-currencies.md +++ b/docs/examples/locale/list-currencies.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -10,3 +11,4 @@ Client client = new Client() Locale locale = new Locale(client); CurrencyList result = await locale.ListCurrencies(); +``` diff --git a/docs/examples/locale/list-languages.md b/docs/examples/locale/list-languages.md index 62aa15d1..bd9cd058 100644 --- a/docs/examples/locale/list-languages.md +++ b/docs/examples/locale/list-languages.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -10,3 +11,4 @@ Client client = new Client() Locale locale = new Locale(client); LanguageList result = await locale.ListLanguages(); +``` diff --git a/docs/examples/messaging/create-apns-provider.md b/docs/examples/messaging/create-apns-provider.md index 74bfe5ec..8f1e99d0 100644 --- a/docs/examples/messaging/create-apns-provider.md +++ b/docs/examples/messaging/create-apns-provider.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -18,4 +19,4 @@ Provider result = await messaging.CreateAPNSProvider( bundleId: "", // optional sandbox: false, // optional enabled: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/messaging/create-email.md b/docs/examples/messaging/create-email.md index 51c6db4d..1c388222 100644 --- a/docs/examples/messaging/create-email.md +++ b/docs/examples/messaging/create-email.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -22,4 +23,4 @@ Message result = await messaging.CreateEmail( draft: false, // optional html: false, // optional scheduledAt: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/messaging/create-fcm-provider.md b/docs/examples/messaging/create-fcm-provider.md index 0b72bb3f..e07bfe9a 100644 --- a/docs/examples/messaging/create-fcm-provider.md +++ b/docs/examples/messaging/create-fcm-provider.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -14,4 +15,4 @@ Provider result = await messaging.CreateFCMProvider( name: "", serviceAccountJSON: [object], // optional enabled: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/messaging/create-mailgun-provider.md b/docs/examples/messaging/create-mailgun-provider.md index 1bacbab8..352bd504 100644 --- a/docs/examples/messaging/create-mailgun-provider.md +++ b/docs/examples/messaging/create-mailgun-provider.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -20,4 +21,4 @@ Provider result = await messaging.CreateMailgunProvider( replyToName: "", // optional replyToEmail: "email@example.com", // optional enabled: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/messaging/create-msg-91-provider.md b/docs/examples/messaging/create-msg-91-provider.md index a0b73727..6abd30bc 100644 --- a/docs/examples/messaging/create-msg-91-provider.md +++ b/docs/examples/messaging/create-msg-91-provider.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -16,4 +17,4 @@ Provider result = await messaging.CreateMsg91Provider( senderId: "", // optional authKey: "", // optional enabled: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/messaging/create-push.md b/docs/examples/messaging/create-push.md index ec90fa6d..2a133fca 100644 --- a/docs/examples/messaging/create-push.md +++ b/docs/examples/messaging/create-push.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Enums; using Appwrite.Models; @@ -30,4 +31,4 @@ Message result = await messaging.CreatePush( contentAvailable: false, // optional critical: false, // optional priority: MessagePriority.Normal // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/messaging/create-resend-provider.md b/docs/examples/messaging/create-resend-provider.md index 526e7916..ea6ff5ec 100644 --- a/docs/examples/messaging/create-resend-provider.md +++ b/docs/examples/messaging/create-resend-provider.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -18,4 +19,4 @@ Provider result = await messaging.CreateResendProvider( replyToName: "", // optional replyToEmail: "email@example.com", // optional enabled: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/messaging/create-sendgrid-provider.md b/docs/examples/messaging/create-sendgrid-provider.md index 8464c47a..9df34e0a 100644 --- a/docs/examples/messaging/create-sendgrid-provider.md +++ b/docs/examples/messaging/create-sendgrid-provider.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -18,4 +19,4 @@ Provider result = await messaging.CreateSendgridProvider( replyToName: "", // optional replyToEmail: "email@example.com", // optional enabled: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/messaging/create-sms.md b/docs/examples/messaging/create-sms.md index f67a4316..45a42d3e 100644 --- a/docs/examples/messaging/create-sms.md +++ b/docs/examples/messaging/create-sms.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -17,4 +18,4 @@ Message result = await messaging.CreateSMS( targets: new List(), // optional draft: false, // optional scheduledAt: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/messaging/create-smtp-provider.md b/docs/examples/messaging/create-smtp-provider.md index d29826dd..1e28297e 100644 --- a/docs/examples/messaging/create-smtp-provider.md +++ b/docs/examples/messaging/create-smtp-provider.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Enums; using Appwrite.Models; @@ -25,4 +26,4 @@ Provider result = await messaging.CreateSMTPProvider( replyToName: "", // optional replyToEmail: "email@example.com", // optional enabled: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/messaging/create-subscriber.md b/docs/examples/messaging/create-subscriber.md index 8b37d31e..cfb3d159 100644 --- a/docs/examples/messaging/create-subscriber.md +++ b/docs/examples/messaging/create-subscriber.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -13,4 +14,4 @@ Subscriber result = await messaging.CreateSubscriber( topicId: "", subscriberId: "", targetId: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/messaging/create-telesign-provider.md b/docs/examples/messaging/create-telesign-provider.md index 37e1bd1d..14770eb5 100644 --- a/docs/examples/messaging/create-telesign-provider.md +++ b/docs/examples/messaging/create-telesign-provider.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -16,4 +17,4 @@ Provider result = await messaging.CreateTelesignProvider( customerId: "", // optional apiKey: "", // optional enabled: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/messaging/create-textmagic-provider.md b/docs/examples/messaging/create-textmagic-provider.md index 7dc0a6b2..2fbea11a 100644 --- a/docs/examples/messaging/create-textmagic-provider.md +++ b/docs/examples/messaging/create-textmagic-provider.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -16,4 +17,4 @@ Provider result = await messaging.CreateTextmagicProvider( username: "", // optional apiKey: "", // optional enabled: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/messaging/create-topic.md b/docs/examples/messaging/create-topic.md index 51eab0fd..d9b8370b 100644 --- a/docs/examples/messaging/create-topic.md +++ b/docs/examples/messaging/create-topic.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -13,4 +14,4 @@ Topic result = await messaging.CreateTopic( topicId: "", name: "", subscribe: ["any"] // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/messaging/create-twilio-provider.md b/docs/examples/messaging/create-twilio-provider.md index 0deba742..4eba8078 100644 --- a/docs/examples/messaging/create-twilio-provider.md +++ b/docs/examples/messaging/create-twilio-provider.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -16,4 +17,4 @@ Provider result = await messaging.CreateTwilioProvider( accountSid: "", // optional authToken: "", // optional enabled: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/messaging/create-vonage-provider.md b/docs/examples/messaging/create-vonage-provider.md index 8f4855aa..1407190e 100644 --- a/docs/examples/messaging/create-vonage-provider.md +++ b/docs/examples/messaging/create-vonage-provider.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -16,4 +17,4 @@ Provider result = await messaging.CreateVonageProvider( apiKey: "", // optional apiSecret: "", // optional enabled: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/messaging/delete-provider.md b/docs/examples/messaging/delete-provider.md index a1ca2a14..06dbf22f 100644 --- a/docs/examples/messaging/delete-provider.md +++ b/docs/examples/messaging/delete-provider.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -11,4 +12,4 @@ Messaging messaging = new Messaging(client); await messaging.DeleteProvider( providerId: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/messaging/delete-subscriber.md b/docs/examples/messaging/delete-subscriber.md index 9424535c..ee4b8dc4 100644 --- a/docs/examples/messaging/delete-subscriber.md +++ b/docs/examples/messaging/delete-subscriber.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -12,4 +13,4 @@ Messaging messaging = new Messaging(client); await messaging.DeleteSubscriber( topicId: "", subscriberId: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/messaging/delete-topic.md b/docs/examples/messaging/delete-topic.md index 0b4819a2..a27b4036 100644 --- a/docs/examples/messaging/delete-topic.md +++ b/docs/examples/messaging/delete-topic.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -11,4 +12,4 @@ Messaging messaging = new Messaging(client); await messaging.DeleteTopic( topicId: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/messaging/delete.md b/docs/examples/messaging/delete.md index ff041e85..8e2777a1 100644 --- a/docs/examples/messaging/delete.md +++ b/docs/examples/messaging/delete.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -11,4 +12,4 @@ Messaging messaging = new Messaging(client); await messaging.Delete( messageId: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/messaging/get-message.md b/docs/examples/messaging/get-message.md index 0dad3668..6e7d6a82 100644 --- a/docs/examples/messaging/get-message.md +++ b/docs/examples/messaging/get-message.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -11,4 +12,4 @@ Messaging messaging = new Messaging(client); Message result = await messaging.GetMessage( messageId: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/messaging/get-provider.md b/docs/examples/messaging/get-provider.md index fac5a07d..e30778d7 100644 --- a/docs/examples/messaging/get-provider.md +++ b/docs/examples/messaging/get-provider.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -11,4 +12,4 @@ Messaging messaging = new Messaging(client); Provider result = await messaging.GetProvider( providerId: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/messaging/get-subscriber.md b/docs/examples/messaging/get-subscriber.md index 516aa682..91f76b88 100644 --- a/docs/examples/messaging/get-subscriber.md +++ b/docs/examples/messaging/get-subscriber.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -12,4 +13,4 @@ Messaging messaging = new Messaging(client); Subscriber result = await messaging.GetSubscriber( topicId: "", subscriberId: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/messaging/get-topic.md b/docs/examples/messaging/get-topic.md index 3a662b31..8236a966 100644 --- a/docs/examples/messaging/get-topic.md +++ b/docs/examples/messaging/get-topic.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -11,4 +12,4 @@ Messaging messaging = new Messaging(client); Topic result = await messaging.GetTopic( topicId: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/messaging/list-message-logs.md b/docs/examples/messaging/list-message-logs.md index 8956394e..2684e747 100644 --- a/docs/examples/messaging/list-message-logs.md +++ b/docs/examples/messaging/list-message-logs.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -13,4 +14,4 @@ LogList result = await messaging.ListMessageLogs( messageId: "", queries: new List(), // optional total: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/messaging/list-messages.md b/docs/examples/messaging/list-messages.md index 68bd4079..dfdf9056 100644 --- a/docs/examples/messaging/list-messages.md +++ b/docs/examples/messaging/list-messages.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -13,4 +14,4 @@ MessageList result = await messaging.ListMessages( queries: new List(), // optional search: "", // optional total: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/messaging/list-provider-logs.md b/docs/examples/messaging/list-provider-logs.md index 50a578e1..47f3bb2f 100644 --- a/docs/examples/messaging/list-provider-logs.md +++ b/docs/examples/messaging/list-provider-logs.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -13,4 +14,4 @@ LogList result = await messaging.ListProviderLogs( providerId: "", queries: new List(), // optional total: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/messaging/list-providers.md b/docs/examples/messaging/list-providers.md index 85d357e1..3823f052 100644 --- a/docs/examples/messaging/list-providers.md +++ b/docs/examples/messaging/list-providers.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -13,4 +14,4 @@ ProviderList result = await messaging.ListProviders( queries: new List(), // optional search: "", // optional total: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/messaging/list-subscriber-logs.md b/docs/examples/messaging/list-subscriber-logs.md index 53e14032..b5db4513 100644 --- a/docs/examples/messaging/list-subscriber-logs.md +++ b/docs/examples/messaging/list-subscriber-logs.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -13,4 +14,4 @@ LogList result = await messaging.ListSubscriberLogs( subscriberId: "", queries: new List(), // optional total: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/messaging/list-subscribers.md b/docs/examples/messaging/list-subscribers.md index 1782e0cb..22a267e7 100644 --- a/docs/examples/messaging/list-subscribers.md +++ b/docs/examples/messaging/list-subscribers.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -14,4 +15,4 @@ SubscriberList result = await messaging.ListSubscribers( queries: new List(), // optional search: "", // optional total: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/messaging/list-targets.md b/docs/examples/messaging/list-targets.md index 5e44378c..d6e99c9a 100644 --- a/docs/examples/messaging/list-targets.md +++ b/docs/examples/messaging/list-targets.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -13,4 +14,4 @@ TargetList result = await messaging.ListTargets( messageId: "", queries: new List(), // optional total: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/messaging/list-topic-logs.md b/docs/examples/messaging/list-topic-logs.md index a58cfe69..0402adba 100644 --- a/docs/examples/messaging/list-topic-logs.md +++ b/docs/examples/messaging/list-topic-logs.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -13,4 +14,4 @@ LogList result = await messaging.ListTopicLogs( topicId: "", queries: new List(), // optional total: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/messaging/list-topics.md b/docs/examples/messaging/list-topics.md index d3a8b773..1002a4d9 100644 --- a/docs/examples/messaging/list-topics.md +++ b/docs/examples/messaging/list-topics.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -13,4 +14,4 @@ TopicList result = await messaging.ListTopics( queries: new List(), // optional search: "", // optional total: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/messaging/update-apns-provider.md b/docs/examples/messaging/update-apns-provider.md index 24cd49da..51550098 100644 --- a/docs/examples/messaging/update-apns-provider.md +++ b/docs/examples/messaging/update-apns-provider.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -18,4 +19,4 @@ Provider result = await messaging.UpdateAPNSProvider( teamId: "", // optional bundleId: "", // optional sandbox: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/messaging/update-email.md b/docs/examples/messaging/update-email.md index 90d1555d..10e08e13 100644 --- a/docs/examples/messaging/update-email.md +++ b/docs/examples/messaging/update-email.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -22,4 +23,4 @@ Message result = await messaging.UpdateEmail( bcc: new List(), // optional scheduledAt: "", // optional attachments: new List() // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/messaging/update-fcm-provider.md b/docs/examples/messaging/update-fcm-provider.md index df1ce204..43478a5a 100644 --- a/docs/examples/messaging/update-fcm-provider.md +++ b/docs/examples/messaging/update-fcm-provider.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -14,4 +15,4 @@ Provider result = await messaging.UpdateFCMProvider( name: "", // optional enabled: false, // optional serviceAccountJSON: [object] // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/messaging/update-mailgun-provider.md b/docs/examples/messaging/update-mailgun-provider.md index 512cb058..2cf3a83e 100644 --- a/docs/examples/messaging/update-mailgun-provider.md +++ b/docs/examples/messaging/update-mailgun-provider.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -20,4 +21,4 @@ Provider result = await messaging.UpdateMailgunProvider( fromEmail: "email@example.com", // optional replyToName: "", // optional replyToEmail: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/messaging/update-msg-91-provider.md b/docs/examples/messaging/update-msg-91-provider.md index 51355c58..7a651250 100644 --- a/docs/examples/messaging/update-msg-91-provider.md +++ b/docs/examples/messaging/update-msg-91-provider.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -16,4 +17,4 @@ Provider result = await messaging.UpdateMsg91Provider( templateId: "", // optional senderId: "", // optional authKey: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/messaging/update-push.md b/docs/examples/messaging/update-push.md index b45752c8..0075d823 100644 --- a/docs/examples/messaging/update-push.md +++ b/docs/examples/messaging/update-push.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Enums; using Appwrite.Models; @@ -30,4 +31,4 @@ Message result = await messaging.UpdatePush( contentAvailable: false, // optional critical: false, // optional priority: MessagePriority.Normal // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/messaging/update-resend-provider.md b/docs/examples/messaging/update-resend-provider.md index 0d295cf0..d6d42c85 100644 --- a/docs/examples/messaging/update-resend-provider.md +++ b/docs/examples/messaging/update-resend-provider.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -18,4 +19,4 @@ Provider result = await messaging.UpdateResendProvider( fromEmail: "email@example.com", // optional replyToName: "", // optional replyToEmail: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/messaging/update-sendgrid-provider.md b/docs/examples/messaging/update-sendgrid-provider.md index d718a715..03d1972d 100644 --- a/docs/examples/messaging/update-sendgrid-provider.md +++ b/docs/examples/messaging/update-sendgrid-provider.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -18,4 +19,4 @@ Provider result = await messaging.UpdateSendgridProvider( fromEmail: "email@example.com", // optional replyToName: "", // optional replyToEmail: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/messaging/update-sms.md b/docs/examples/messaging/update-sms.md index 3216fcff..8d1ff80c 100644 --- a/docs/examples/messaging/update-sms.md +++ b/docs/examples/messaging/update-sms.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -17,4 +18,4 @@ Message result = await messaging.UpdateSMS( content: "", // optional draft: false, // optional scheduledAt: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/messaging/update-smtp-provider.md b/docs/examples/messaging/update-smtp-provider.md index 29553887..b9f0436f 100644 --- a/docs/examples/messaging/update-smtp-provider.md +++ b/docs/examples/messaging/update-smtp-provider.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Enums; using Appwrite.Models; @@ -25,4 +26,4 @@ Provider result = await messaging.UpdateSMTPProvider( replyToName: "", // optional replyToEmail: "", // optional enabled: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/messaging/update-telesign-provider.md b/docs/examples/messaging/update-telesign-provider.md index d4f1c5e0..e9ebd80e 100644 --- a/docs/examples/messaging/update-telesign-provider.md +++ b/docs/examples/messaging/update-telesign-provider.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -16,4 +17,4 @@ Provider result = await messaging.UpdateTelesignProvider( customerId: "", // optional apiKey: "", // optional from: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/messaging/update-textmagic-provider.md b/docs/examples/messaging/update-textmagic-provider.md index 3529f9b9..b5b7b8af 100644 --- a/docs/examples/messaging/update-textmagic-provider.md +++ b/docs/examples/messaging/update-textmagic-provider.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -16,4 +17,4 @@ Provider result = await messaging.UpdateTextmagicProvider( username: "", // optional apiKey: "", // optional from: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/messaging/update-topic.md b/docs/examples/messaging/update-topic.md index 11943f70..361a2396 100644 --- a/docs/examples/messaging/update-topic.md +++ b/docs/examples/messaging/update-topic.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -13,4 +14,4 @@ Topic result = await messaging.UpdateTopic( topicId: "", name: "", // optional subscribe: ["any"] // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/messaging/update-twilio-provider.md b/docs/examples/messaging/update-twilio-provider.md index 66fc7e27..594bdee8 100644 --- a/docs/examples/messaging/update-twilio-provider.md +++ b/docs/examples/messaging/update-twilio-provider.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -16,4 +17,4 @@ Provider result = await messaging.UpdateTwilioProvider( accountSid: "", // optional authToken: "", // optional from: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/messaging/update-vonage-provider.md b/docs/examples/messaging/update-vonage-provider.md index 03addd3d..61e8c848 100644 --- a/docs/examples/messaging/update-vonage-provider.md +++ b/docs/examples/messaging/update-vonage-provider.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -16,4 +17,4 @@ Provider result = await messaging.UpdateVonageProvider( apiKey: "", // optional apiSecret: "", // optional from: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/organizations/delete.md b/docs/examples/organizations/delete.md new file mode 100644 index 00000000..57796cb9 --- /dev/null +++ b/docs/examples/organizations/delete.md @@ -0,0 +1,15 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +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); + +await organizations.Delete( + organizationId: "" +);``` diff --git a/docs/examples/organizations/estimation-delete-organization.md b/docs/examples/organizations/estimation-delete-organization.md new file mode 100644 index 00000000..e680366f --- /dev/null +++ b/docs/examples/organizations/estimation-delete-organization.md @@ -0,0 +1,15 @@ +```csharp +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +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); + +EstimationDeleteOrganization result = await organizations.EstimationDeleteOrganization( + organizationId: "" +);``` diff --git a/docs/examples/sites/create-deployment.md b/docs/examples/sites/create-deployment.md index 1bcb5d5b..d9be1a1e 100644 --- a/docs/examples/sites/create-deployment.md +++ b/docs/examples/sites/create-deployment.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -16,4 +17,4 @@ Deployment result = await sites.CreateDeployment( installCommand: "", // optional buildCommand: "", // optional outputDirectory: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/sites/create-duplicate-deployment.md b/docs/examples/sites/create-duplicate-deployment.md index 1e45aca8..acca4c7c 100644 --- a/docs/examples/sites/create-duplicate-deployment.md +++ b/docs/examples/sites/create-duplicate-deployment.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -12,4 +13,4 @@ Sites sites = new Sites(client); Deployment result = await sites.CreateDuplicateDeployment( siteId: "", deploymentId: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/sites/create-template-deployment.md b/docs/examples/sites/create-template-deployment.md index 5353b004..306a9653 100644 --- a/docs/examples/sites/create-template-deployment.md +++ b/docs/examples/sites/create-template-deployment.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Enums; using Appwrite.Models; @@ -18,4 +19,4 @@ Deployment result = await sites.CreateTemplateDeployment( type: TemplateReferenceType.Branch, reference: "", activate: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/sites/create-variable.md b/docs/examples/sites/create-variable.md index 09feb031..c6f28281 100644 --- a/docs/examples/sites/create-variable.md +++ b/docs/examples/sites/create-variable.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -14,4 +15,4 @@ Variable result = await sites.CreateVariable( key: "", value: "", secret: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/sites/create-vcs-deployment.md b/docs/examples/sites/create-vcs-deployment.md index 229549be..8a4a618d 100644 --- a/docs/examples/sites/create-vcs-deployment.md +++ b/docs/examples/sites/create-vcs-deployment.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Enums; using Appwrite.Models; @@ -15,4 +16,4 @@ Deployment result = await sites.CreateVcsDeployment( type: VCSReferenceType.Branch, reference: "", activate: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/sites/create.md b/docs/examples/sites/create.md index ed7360d5..ac31e244 100644 --- a/docs/examples/sites/create.md +++ b/docs/examples/sites/create.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Enums; using Appwrite.Models; @@ -29,4 +30,4 @@ Site result = await sites.Create( providerSilentMode: false, // optional providerRootDirectory: "", // optional specification: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/sites/delete-deployment.md b/docs/examples/sites/delete-deployment.md index f74be24a..fb457b05 100644 --- a/docs/examples/sites/delete-deployment.md +++ b/docs/examples/sites/delete-deployment.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -12,4 +13,4 @@ Sites sites = new Sites(client); await sites.DeleteDeployment( siteId: "", deploymentId: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/sites/delete-log.md b/docs/examples/sites/delete-log.md index 83d1aa12..a5aebb19 100644 --- a/docs/examples/sites/delete-log.md +++ b/docs/examples/sites/delete-log.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -12,4 +13,4 @@ Sites sites = new Sites(client); await sites.DeleteLog( siteId: "", logId: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/sites/delete-variable.md b/docs/examples/sites/delete-variable.md index 97515127..2b79ffeb 100644 --- a/docs/examples/sites/delete-variable.md +++ b/docs/examples/sites/delete-variable.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -12,4 +13,4 @@ Sites sites = new Sites(client); await sites.DeleteVariable( siteId: "", variableId: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/sites/delete.md b/docs/examples/sites/delete.md index 173c4864..2e1470f6 100644 --- a/docs/examples/sites/delete.md +++ b/docs/examples/sites/delete.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -11,4 +12,4 @@ Sites sites = new Sites(client); await sites.Delete( siteId: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/sites/get-deployment-download.md b/docs/examples/sites/get-deployment-download.md index 27c96476..25bc376b 100644 --- a/docs/examples/sites/get-deployment-download.md +++ b/docs/examples/sites/get-deployment-download.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Enums; using Appwrite.Models; @@ -14,4 +15,4 @@ byte[] result = await sites.GetDeploymentDownload( siteId: "", deploymentId: "", type: DeploymentDownloadType.Source // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/sites/get-deployment.md b/docs/examples/sites/get-deployment.md index 138c97ba..f92ffb42 100644 --- a/docs/examples/sites/get-deployment.md +++ b/docs/examples/sites/get-deployment.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -12,4 +13,4 @@ Sites sites = new Sites(client); Deployment result = await sites.GetDeployment( siteId: "", deploymentId: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/sites/get-log.md b/docs/examples/sites/get-log.md index d90b6c84..822bcdbd 100644 --- a/docs/examples/sites/get-log.md +++ b/docs/examples/sites/get-log.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -12,4 +13,4 @@ Sites sites = new Sites(client); Execution result = await sites.GetLog( siteId: "", logId: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/sites/get-variable.md b/docs/examples/sites/get-variable.md index 01f57f3b..75c28abd 100644 --- a/docs/examples/sites/get-variable.md +++ b/docs/examples/sites/get-variable.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -12,4 +13,4 @@ Sites sites = new Sites(client); Variable result = await sites.GetVariable( siteId: "", variableId: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/sites/get.md b/docs/examples/sites/get.md index 87a91ae8..6863555c 100644 --- a/docs/examples/sites/get.md +++ b/docs/examples/sites/get.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -11,4 +12,4 @@ Sites sites = new Sites(client); Site result = await sites.Get( siteId: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/sites/list-deployments.md b/docs/examples/sites/list-deployments.md index e2cae052..39acb57c 100644 --- a/docs/examples/sites/list-deployments.md +++ b/docs/examples/sites/list-deployments.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -14,4 +15,4 @@ DeploymentList result = await sites.ListDeployments( queries: new List(), // optional search: "", // optional total: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/sites/list-frameworks.md b/docs/examples/sites/list-frameworks.md index 9220b2a7..8d802f7f 100644 --- a/docs/examples/sites/list-frameworks.md +++ b/docs/examples/sites/list-frameworks.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -10,3 +11,4 @@ Client client = new Client() Sites sites = new Sites(client); FrameworkList result = await sites.ListFrameworks(); +``` diff --git a/docs/examples/sites/list-logs.md b/docs/examples/sites/list-logs.md index f4935ee3..36463eeb 100644 --- a/docs/examples/sites/list-logs.md +++ b/docs/examples/sites/list-logs.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -13,4 +14,4 @@ ExecutionList result = await sites.ListLogs( siteId: "", queries: new List(), // optional total: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/sites/list-specifications.md b/docs/examples/sites/list-specifications.md index edf82da8..a1d63a1e 100644 --- a/docs/examples/sites/list-specifications.md +++ b/docs/examples/sites/list-specifications.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -10,3 +11,4 @@ Client client = new Client() Sites sites = new Sites(client); SpecificationList result = await sites.ListSpecifications(); +``` diff --git a/docs/examples/sites/list-variables.md b/docs/examples/sites/list-variables.md index 6eb0ff70..9a989619 100644 --- a/docs/examples/sites/list-variables.md +++ b/docs/examples/sites/list-variables.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -11,4 +12,4 @@ Sites sites = new Sites(client); VariableList result = await sites.ListVariables( siteId: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/sites/list.md b/docs/examples/sites/list.md index a7593da2..fe543e7c 100644 --- a/docs/examples/sites/list.md +++ b/docs/examples/sites/list.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -13,4 +14,4 @@ SiteList result = await sites.List( queries: new List(), // optional search: "", // optional total: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/sites/update-deployment-status.md b/docs/examples/sites/update-deployment-status.md index c7415e7a..322c8cc1 100644 --- a/docs/examples/sites/update-deployment-status.md +++ b/docs/examples/sites/update-deployment-status.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -12,4 +13,4 @@ Sites sites = new Sites(client); Deployment result = await sites.UpdateDeploymentStatus( siteId: "", deploymentId: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/sites/update-site-deployment.md b/docs/examples/sites/update-site-deployment.md index 8706ff59..4f75e1f3 100644 --- a/docs/examples/sites/update-site-deployment.md +++ b/docs/examples/sites/update-site-deployment.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -12,4 +13,4 @@ Sites sites = new Sites(client); Site result = await sites.UpdateSiteDeployment( siteId: "", deploymentId: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/sites/update-variable.md b/docs/examples/sites/update-variable.md index 99718cd6..e71837a3 100644 --- a/docs/examples/sites/update-variable.md +++ b/docs/examples/sites/update-variable.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -15,4 +16,4 @@ Variable result = await sites.UpdateVariable( key: "", value: "", // optional secret: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/sites/update.md b/docs/examples/sites/update.md index 32da4833..bd65e36d 100644 --- a/docs/examples/sites/update.md +++ b/docs/examples/sites/update.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Enums; using Appwrite.Models; @@ -29,4 +30,4 @@ Site result = await sites.Update( providerSilentMode: false, // optional providerRootDirectory: "", // optional specification: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/storage/create-bucket.md b/docs/examples/storage/create-bucket.md index 758883e5..6ccdb33e 100644 --- a/docs/examples/storage/create-bucket.md +++ b/docs/examples/storage/create-bucket.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Enums; using Appwrite.Models; @@ -22,4 +23,4 @@ Bucket result = await storage.CreateBucket( encryption: false, // optional antivirus: false, // optional transformations: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/storage/create-file.md b/docs/examples/storage/create-file.md index d7cc86e1..356120e7 100644 --- a/docs/examples/storage/create-file.md +++ b/docs/examples/storage/create-file.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -14,4 +15,4 @@ File result = await storage.CreateFile( fileId: "", file: InputFile.FromPath("./path-to-files/image.jpg"), permissions: new List { Permission.Read(Role.Any()) } // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/storage/delete-bucket.md b/docs/examples/storage/delete-bucket.md index 22aa2acf..dfee759b 100644 --- a/docs/examples/storage/delete-bucket.md +++ b/docs/examples/storage/delete-bucket.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -11,4 +12,4 @@ Storage storage = new Storage(client); await storage.DeleteBucket( bucketId: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/storage/delete-file.md b/docs/examples/storage/delete-file.md index a8cc310a..a637341b 100644 --- a/docs/examples/storage/delete-file.md +++ b/docs/examples/storage/delete-file.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -12,4 +13,4 @@ Storage storage = new Storage(client); await storage.DeleteFile( bucketId: "", fileId: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/storage/get-bucket.md b/docs/examples/storage/get-bucket.md index a6f74ebd..27d9e405 100644 --- a/docs/examples/storage/get-bucket.md +++ b/docs/examples/storage/get-bucket.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -11,4 +12,4 @@ Storage storage = new Storage(client); Bucket result = await storage.GetBucket( bucketId: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/storage/get-file-download.md b/docs/examples/storage/get-file-download.md index 514fda9e..02ad30d5 100644 --- a/docs/examples/storage/get-file-download.md +++ b/docs/examples/storage/get-file-download.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -13,4 +14,4 @@ byte[] result = await storage.GetFileDownload( bucketId: "", fileId: "", token: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/storage/get-file-preview.md b/docs/examples/storage/get-file-preview.md index c9ec508b..cc3d88a8 100644 --- a/docs/examples/storage/get-file-preview.md +++ b/docs/examples/storage/get-file-preview.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Enums; using Appwrite.Models; @@ -25,4 +26,4 @@ byte[] result = await storage.GetFilePreview( background: "", // optional output: ImageFormat.Jpg, // optional token: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/storage/get-file-view.md b/docs/examples/storage/get-file-view.md index 1a27dc15..b9088d00 100644 --- a/docs/examples/storage/get-file-view.md +++ b/docs/examples/storage/get-file-view.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -13,4 +14,4 @@ byte[] result = await storage.GetFileView( bucketId: "", fileId: "", token: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/storage/get-file.md b/docs/examples/storage/get-file.md index e4c05c1e..769386ed 100644 --- a/docs/examples/storage/get-file.md +++ b/docs/examples/storage/get-file.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -12,4 +13,4 @@ Storage storage = new Storage(client); File result = await storage.GetFile( bucketId: "", fileId: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/storage/list-buckets.md b/docs/examples/storage/list-buckets.md index 6762192e..5580b727 100644 --- a/docs/examples/storage/list-buckets.md +++ b/docs/examples/storage/list-buckets.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -13,4 +14,4 @@ BucketList result = await storage.ListBuckets( queries: new List(), // optional search: "", // optional total: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/storage/list-files.md b/docs/examples/storage/list-files.md index 04dff4a3..93943019 100644 --- a/docs/examples/storage/list-files.md +++ b/docs/examples/storage/list-files.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -14,4 +15,4 @@ FileList result = await storage.ListFiles( queries: new List(), // optional search: "", // optional total: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/storage/update-bucket.md b/docs/examples/storage/update-bucket.md index 7dfed901..c68d001c 100644 --- a/docs/examples/storage/update-bucket.md +++ b/docs/examples/storage/update-bucket.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Enums; using Appwrite.Models; @@ -22,4 +23,4 @@ Bucket result = await storage.UpdateBucket( encryption: false, // optional antivirus: false, // optional transformations: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/storage/update-file.md b/docs/examples/storage/update-file.md index 36552b52..df3e7373 100644 --- a/docs/examples/storage/update-file.md +++ b/docs/examples/storage/update-file.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -14,4 +15,4 @@ File result = await storage.UpdateFile( fileId: "", name: "", // optional permissions: new List { Permission.Read(Role.Any()) } // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/tablesdb/create-boolean-column.md b/docs/examples/tablesdb/create-boolean-column.md index ff7b647f..67cefc22 100644 --- a/docs/examples/tablesdb/create-boolean-column.md +++ b/docs/examples/tablesdb/create-boolean-column.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -16,4 +17,4 @@ ColumnBoolean result = await tablesDB.CreateBooleanColumn( required: false, default: false, // optional array: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/tablesdb/create-datetime-column.md b/docs/examples/tablesdb/create-datetime-column.md index c03ba361..17214590 100644 --- a/docs/examples/tablesdb/create-datetime-column.md +++ b/docs/examples/tablesdb/create-datetime-column.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -16,4 +17,4 @@ ColumnDatetime result = await tablesDB.CreateDatetimeColumn( required: false, default: "", // optional array: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/tablesdb/create-email-column.md b/docs/examples/tablesdb/create-email-column.md index 309db628..4c07c436 100644 --- a/docs/examples/tablesdb/create-email-column.md +++ b/docs/examples/tablesdb/create-email-column.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -16,4 +17,4 @@ ColumnEmail result = await tablesDB.CreateEmailColumn( required: false, default: "email@example.com", // optional array: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/tablesdb/create-enum-column.md b/docs/examples/tablesdb/create-enum-column.md index 632bbef5..ebe5d6b7 100644 --- a/docs/examples/tablesdb/create-enum-column.md +++ b/docs/examples/tablesdb/create-enum-column.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -17,4 +18,4 @@ ColumnEnum result = await tablesDB.CreateEnumColumn( required: false, default: "", // optional array: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/tablesdb/create-float-column.md b/docs/examples/tablesdb/create-float-column.md index e7da5323..2a0c5023 100644 --- a/docs/examples/tablesdb/create-float-column.md +++ b/docs/examples/tablesdb/create-float-column.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -18,4 +19,4 @@ ColumnFloat result = await tablesDB.CreateFloatColumn( max: 0, // optional default: 0, // optional array: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/tablesdb/create-index.md b/docs/examples/tablesdb/create-index.md index 65a9973b..ec486577 100644 --- a/docs/examples/tablesdb/create-index.md +++ b/docs/examples/tablesdb/create-index.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Enums; using Appwrite.Models; @@ -18,4 +19,4 @@ ColumnIndex result = await tablesDB.CreateIndex( columns: new List(), orders: new List<OrderBy> { OrderBy.Asc }, // optional lengths: new List() // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/tablesdb/create-integer-column.md b/docs/examples/tablesdb/create-integer-column.md index 7bdb971a..4f822041 100644 --- a/docs/examples/tablesdb/create-integer-column.md +++ b/docs/examples/tablesdb/create-integer-column.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -18,4 +19,4 @@ ColumnInteger result = await tablesDB.CreateIntegerColumn( max: 0, // optional default: 0, // optional array: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/tablesdb/create-ip-column.md b/docs/examples/tablesdb/create-ip-column.md index 9359b289..bf996e72 100644 --- a/docs/examples/tablesdb/create-ip-column.md +++ b/docs/examples/tablesdb/create-ip-column.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -16,4 +17,4 @@ ColumnIp result = await tablesDB.CreateIpColumn( required: false, default: "", // optional array: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/tablesdb/create-line-column.md b/docs/examples/tablesdb/create-line-column.md index 31dc0698..e3d438a2 100644 --- a/docs/examples/tablesdb/create-line-column.md +++ b/docs/examples/tablesdb/create-line-column.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -15,4 +16,4 @@ ColumnLine result = await tablesDB.CreateLineColumn( key: "", required: false, default: [[1, 2], [3, 4], [5, 6]] // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/tablesdb/create-longtext-column.md b/docs/examples/tablesdb/create-longtext-column.md index 86e5bca1..99442d56 100644 --- a/docs/examples/tablesdb/create-longtext-column.md +++ b/docs/examples/tablesdb/create-longtext-column.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -16,4 +17,4 @@ ColumnLongtext result = await tablesDB.CreateLongtextColumn( required: false, default: "", // optional array: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/tablesdb/create-mediumtext-column.md b/docs/examples/tablesdb/create-mediumtext-column.md index 54e3bea5..05362521 100644 --- a/docs/examples/tablesdb/create-mediumtext-column.md +++ b/docs/examples/tablesdb/create-mediumtext-column.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -16,4 +17,4 @@ ColumnMediumtext result = await tablesDB.CreateMediumtextColumn( required: false, default: "", // optional array: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/tablesdb/create-operations.md b/docs/examples/tablesdb/create-operations.md index 0a8da3e8..1d5b385a 100644 --- a/docs/examples/tablesdb/create-operations.md +++ b/docs/examples/tablesdb/create-operations.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -22,4 +23,4 @@ Transaction result = await tablesDB.CreateOperations( } } ] // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/tablesdb/create-point-column.md b/docs/examples/tablesdb/create-point-column.md index a1461bcc..318e8eb7 100644 --- a/docs/examples/tablesdb/create-point-column.md +++ b/docs/examples/tablesdb/create-point-column.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -15,4 +16,4 @@ ColumnPoint result = await tablesDB.CreatePointColumn( key: "", required: false, default: [1, 2] // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/tablesdb/create-polygon-column.md b/docs/examples/tablesdb/create-polygon-column.md index e1e92b2d..f39ceeb5 100644 --- a/docs/examples/tablesdb/create-polygon-column.md +++ b/docs/examples/tablesdb/create-polygon-column.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -15,4 +16,4 @@ ColumnPolygon result = await tablesDB.CreatePolygonColumn( key: "", required: false, default: [[[1, 2], [3, 4], [5, 6], [1, 2]]] // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/tablesdb/create-relationship-column.md b/docs/examples/tablesdb/create-relationship-column.md index 95b34d02..003d9b8c 100644 --- a/docs/examples/tablesdb/create-relationship-column.md +++ b/docs/examples/tablesdb/create-relationship-column.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Enums; using Appwrite.Models; @@ -19,4 +20,4 @@ ColumnRelationship result = await tablesDB.CreateRelationshipColumn( key: "", // optional twoWayKey: "", // optional onDelete: RelationMutate.Cascade // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/tablesdb/create-row.md b/docs/examples/tablesdb/create-row.md index f0070e32..4f6112b8 100644 --- a/docs/examples/tablesdb/create-row.md +++ b/docs/examples/tablesdb/create-row.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -22,4 +23,4 @@ Row result = await tablesDB.CreateRow( }, permissions: new List { Permission.Read(Role.Any()) }, // optional transactionId: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/tablesdb/create-rows.md b/docs/examples/tablesdb/create-rows.md index c73c474f..2a8a07b7 100644 --- a/docs/examples/tablesdb/create-rows.md +++ b/docs/examples/tablesdb/create-rows.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -14,4 +15,4 @@ RowList result = await tablesDB.CreateRows( tableId: "", rows: new List(), transactionId: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/tablesdb/create-string-column.md b/docs/examples/tablesdb/create-string-column.md index ab77d4da..28f5e4c3 100644 --- a/docs/examples/tablesdb/create-string-column.md +++ b/docs/examples/tablesdb/create-string-column.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -18,4 +19,4 @@ ColumnString result = await tablesDB.CreateStringColumn( default: "", // optional array: false, // optional encrypt: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/tablesdb/create-table.md b/docs/examples/tablesdb/create-table.md index 7b622d1d..242456de 100644 --- a/docs/examples/tablesdb/create-table.md +++ b/docs/examples/tablesdb/create-table.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -18,4 +19,4 @@ Table result = await tablesDB.CreateTable( enabled: false, // optional columns: new List(), // optional indexes: new List() // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/tablesdb/create-text-column.md b/docs/examples/tablesdb/create-text-column.md index b1487e7d..aeb50d31 100644 --- a/docs/examples/tablesdb/create-text-column.md +++ b/docs/examples/tablesdb/create-text-column.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -16,4 +17,4 @@ ColumnText result = await tablesDB.CreateTextColumn( required: false, default: "", // optional array: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/tablesdb/create-transaction.md b/docs/examples/tablesdb/create-transaction.md index b42b0875..9fea42b8 100644 --- a/docs/examples/tablesdb/create-transaction.md +++ b/docs/examples/tablesdb/create-transaction.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -11,4 +12,4 @@ TablesDB tablesDB = new TablesDB(client); Transaction result = await tablesDB.CreateTransaction( ttl: 60 // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/tablesdb/create-url-column.md b/docs/examples/tablesdb/create-url-column.md index bfae1ccd..1df7b2e9 100644 --- a/docs/examples/tablesdb/create-url-column.md +++ b/docs/examples/tablesdb/create-url-column.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -16,4 +17,4 @@ ColumnUrl result = await tablesDB.CreateUrlColumn( required: false, default: "https://example.com", // optional array: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/tablesdb/create-varchar-column.md b/docs/examples/tablesdb/create-varchar-column.md index 86c3a78d..83a37c4c 100644 --- a/docs/examples/tablesdb/create-varchar-column.md +++ b/docs/examples/tablesdb/create-varchar-column.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -17,4 +18,4 @@ ColumnVarchar result = await tablesDB.CreateVarcharColumn( required: false, default: "", // optional array: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/tablesdb/create.md b/docs/examples/tablesdb/create.md index 105d838d..d34245c8 100644 --- a/docs/examples/tablesdb/create.md +++ b/docs/examples/tablesdb/create.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -13,4 +14,4 @@ Database result = await tablesDB.Create( databaseId: "", name: "", enabled: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/tablesdb/decrement-row-column.md b/docs/examples/tablesdb/decrement-row-column.md index 19498d03..b91aed74 100644 --- a/docs/examples/tablesdb/decrement-row-column.md +++ b/docs/examples/tablesdb/decrement-row-column.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -17,4 +18,4 @@ Row result = await tablesDB.DecrementRowColumn( value: 0, // optional min: 0, // optional transactionId: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/tablesdb/delete-column.md b/docs/examples/tablesdb/delete-column.md index 4cc43f20..edd94325 100644 --- a/docs/examples/tablesdb/delete-column.md +++ b/docs/examples/tablesdb/delete-column.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -13,4 +14,4 @@ await tablesDB.DeleteColumn( databaseId: "", tableId: "", key: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/tablesdb/delete-index.md b/docs/examples/tablesdb/delete-index.md index 46c899b7..e52f9655 100644 --- a/docs/examples/tablesdb/delete-index.md +++ b/docs/examples/tablesdb/delete-index.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -13,4 +14,4 @@ await tablesDB.DeleteIndex( databaseId: "", tableId: "", key: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/tablesdb/delete-row.md b/docs/examples/tablesdb/delete-row.md index 81bd084f..9186473c 100644 --- a/docs/examples/tablesdb/delete-row.md +++ b/docs/examples/tablesdb/delete-row.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -14,4 +15,4 @@ await tablesDB.DeleteRow( tableId: "", rowId: "", transactionId: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/tablesdb/delete-rows.md b/docs/examples/tablesdb/delete-rows.md index c0f656cd..57762ab4 100644 --- a/docs/examples/tablesdb/delete-rows.md +++ b/docs/examples/tablesdb/delete-rows.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -14,4 +15,4 @@ await tablesDB.DeleteRows( tableId: "", queries: new List(), // optional transactionId: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/tablesdb/delete-table.md b/docs/examples/tablesdb/delete-table.md index 4f772f3f..89af4df8 100644 --- a/docs/examples/tablesdb/delete-table.md +++ b/docs/examples/tablesdb/delete-table.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -12,4 +13,4 @@ TablesDB tablesDB = new TablesDB(client); await tablesDB.DeleteTable( databaseId: "", tableId: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/tablesdb/delete-transaction.md b/docs/examples/tablesdb/delete-transaction.md index 6e41c80c..42fdcc14 100644 --- a/docs/examples/tablesdb/delete-transaction.md +++ b/docs/examples/tablesdb/delete-transaction.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -11,4 +12,4 @@ TablesDB tablesDB = new TablesDB(client); await tablesDB.DeleteTransaction( transactionId: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/tablesdb/delete.md b/docs/examples/tablesdb/delete.md index 55395b02..051de970 100644 --- a/docs/examples/tablesdb/delete.md +++ b/docs/examples/tablesdb/delete.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -11,4 +12,4 @@ TablesDB tablesDB = new TablesDB(client); await tablesDB.Delete( databaseId: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/tablesdb/get-column.md b/docs/examples/tablesdb/get-column.md index e4c17807..521213ea 100644 --- a/docs/examples/tablesdb/get-column.md +++ b/docs/examples/tablesdb/get-column.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -13,4 +14,4 @@ ColumnBoolean result = await tablesDB.GetColumn( databaseId: "", tableId: "", key: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/tablesdb/get-index.md b/docs/examples/tablesdb/get-index.md index b48ac846..66cdd1ca 100644 --- a/docs/examples/tablesdb/get-index.md +++ b/docs/examples/tablesdb/get-index.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -13,4 +14,4 @@ ColumnIndex result = await tablesDB.GetIndex( databaseId: "", tableId: "", key: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/tablesdb/get-row.md b/docs/examples/tablesdb/get-row.md index 66f6a230..21af7c4d 100644 --- a/docs/examples/tablesdb/get-row.md +++ b/docs/examples/tablesdb/get-row.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -15,4 +16,4 @@ Row result = await tablesDB.GetRow( rowId: "", queries: new List(), // optional transactionId: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/tablesdb/get-table.md b/docs/examples/tablesdb/get-table.md index 82311e8f..9932f84c 100644 --- a/docs/examples/tablesdb/get-table.md +++ b/docs/examples/tablesdb/get-table.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -12,4 +13,4 @@ TablesDB tablesDB = new TablesDB(client); Table result = await tablesDB.GetTable( databaseId: "", tableId: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/tablesdb/get-transaction.md b/docs/examples/tablesdb/get-transaction.md index 73e09049..a3d72b1a 100644 --- a/docs/examples/tablesdb/get-transaction.md +++ b/docs/examples/tablesdb/get-transaction.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -11,4 +12,4 @@ TablesDB tablesDB = new TablesDB(client); Transaction result = await tablesDB.GetTransaction( transactionId: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/tablesdb/get.md b/docs/examples/tablesdb/get.md index ace26de4..85e7223f 100644 --- a/docs/examples/tablesdb/get.md +++ b/docs/examples/tablesdb/get.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -11,4 +12,4 @@ TablesDB tablesDB = new TablesDB(client); Database result = await tablesDB.Get( databaseId: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/tablesdb/increment-row-column.md b/docs/examples/tablesdb/increment-row-column.md index cbac61f1..fc594b90 100644 --- a/docs/examples/tablesdb/increment-row-column.md +++ b/docs/examples/tablesdb/increment-row-column.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -17,4 +18,4 @@ Row result = await tablesDB.IncrementRowColumn( value: 0, // optional max: 0, // optional transactionId: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/tablesdb/list-columns.md b/docs/examples/tablesdb/list-columns.md index 3a11c5a6..5d459077 100644 --- a/docs/examples/tablesdb/list-columns.md +++ b/docs/examples/tablesdb/list-columns.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -14,4 +15,4 @@ ColumnList result = await tablesDB.ListColumns( tableId: "", queries: new List(), // optional total: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/tablesdb/list-indexes.md b/docs/examples/tablesdb/list-indexes.md index dfbff0b2..3942b400 100644 --- a/docs/examples/tablesdb/list-indexes.md +++ b/docs/examples/tablesdb/list-indexes.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -14,4 +15,4 @@ ColumnIndexList result = await tablesDB.ListIndexes( tableId: "", queries: new List(), // optional total: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/tablesdb/list-rows.md b/docs/examples/tablesdb/list-rows.md index 8c8493e7..a0f582fc 100644 --- a/docs/examples/tablesdb/list-rows.md +++ b/docs/examples/tablesdb/list-rows.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -15,4 +16,4 @@ RowList result = await tablesDB.ListRows( queries: new List(), // optional transactionId: "", // optional total: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/tablesdb/list-tables.md b/docs/examples/tablesdb/list-tables.md index 11bf2382..1d8c95c2 100644 --- a/docs/examples/tablesdb/list-tables.md +++ b/docs/examples/tablesdb/list-tables.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -14,4 +15,4 @@ TableList result = await tablesDB.ListTables( queries: new List(), // optional search: "", // optional total: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/tablesdb/list-transactions.md b/docs/examples/tablesdb/list-transactions.md index b1a00e1a..fe7b4a43 100644 --- a/docs/examples/tablesdb/list-transactions.md +++ b/docs/examples/tablesdb/list-transactions.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -11,4 +12,4 @@ TablesDB tablesDB = new TablesDB(client); TransactionList result = await tablesDB.ListTransactions( queries: new List() // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/tablesdb/list.md b/docs/examples/tablesdb/list.md index 144f0879..f3d19ac7 100644 --- a/docs/examples/tablesdb/list.md +++ b/docs/examples/tablesdb/list.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -13,4 +14,4 @@ DatabaseList result = await tablesDB.List( queries: new List(), // optional search: "", // optional total: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/tablesdb/update-boolean-column.md b/docs/examples/tablesdb/update-boolean-column.md index b6c6d584..4c7763fd 100644 --- a/docs/examples/tablesdb/update-boolean-column.md +++ b/docs/examples/tablesdb/update-boolean-column.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -16,4 +17,4 @@ ColumnBoolean result = await tablesDB.UpdateBooleanColumn( required: false, default: false, newKey: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/tablesdb/update-datetime-column.md b/docs/examples/tablesdb/update-datetime-column.md index 8236b6af..a3d8c353 100644 --- a/docs/examples/tablesdb/update-datetime-column.md +++ b/docs/examples/tablesdb/update-datetime-column.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -16,4 +17,4 @@ ColumnDatetime result = await tablesDB.UpdateDatetimeColumn( required: false, default: "", newKey: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/tablesdb/update-email-column.md b/docs/examples/tablesdb/update-email-column.md index 88567783..6661c900 100644 --- a/docs/examples/tablesdb/update-email-column.md +++ b/docs/examples/tablesdb/update-email-column.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -16,4 +17,4 @@ ColumnEmail result = await tablesDB.UpdateEmailColumn( required: false, default: "email@example.com", newKey: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/tablesdb/update-enum-column.md b/docs/examples/tablesdb/update-enum-column.md index 58c3c65d..30024727 100644 --- a/docs/examples/tablesdb/update-enum-column.md +++ b/docs/examples/tablesdb/update-enum-column.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -17,4 +18,4 @@ ColumnEnum result = await tablesDB.UpdateEnumColumn( required: false, default: "", newKey: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/tablesdb/update-float-column.md b/docs/examples/tablesdb/update-float-column.md index 057a0767..24f28a92 100644 --- a/docs/examples/tablesdb/update-float-column.md +++ b/docs/examples/tablesdb/update-float-column.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -18,4 +19,4 @@ ColumnFloat result = await tablesDB.UpdateFloatColumn( min: 0, // optional max: 0, // optional newKey: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/tablesdb/update-integer-column.md b/docs/examples/tablesdb/update-integer-column.md index 2cc3b361..0390d353 100644 --- a/docs/examples/tablesdb/update-integer-column.md +++ b/docs/examples/tablesdb/update-integer-column.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -18,4 +19,4 @@ ColumnInteger result = await tablesDB.UpdateIntegerColumn( min: 0, // optional max: 0, // optional newKey: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/tablesdb/update-ip-column.md b/docs/examples/tablesdb/update-ip-column.md index 7e6d64f0..218342f5 100644 --- a/docs/examples/tablesdb/update-ip-column.md +++ b/docs/examples/tablesdb/update-ip-column.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -16,4 +17,4 @@ ColumnIp result = await tablesDB.UpdateIpColumn( required: false, default: "", newKey: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/tablesdb/update-line-column.md b/docs/examples/tablesdb/update-line-column.md index 7a7620a9..8aac5599 100644 --- a/docs/examples/tablesdb/update-line-column.md +++ b/docs/examples/tablesdb/update-line-column.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -16,4 +17,4 @@ ColumnLine result = await tablesDB.UpdateLineColumn( required: false, default: [[1, 2], [3, 4], [5, 6]], // optional newKey: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/tablesdb/update-longtext-column.md b/docs/examples/tablesdb/update-longtext-column.md index b73907bf..d7abb4f4 100644 --- a/docs/examples/tablesdb/update-longtext-column.md +++ b/docs/examples/tablesdb/update-longtext-column.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -16,4 +17,4 @@ ColumnLongtext result = await tablesDB.UpdateLongtextColumn( required: false, default: "", newKey: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/tablesdb/update-mediumtext-column.md b/docs/examples/tablesdb/update-mediumtext-column.md index 3bd20fac..3a8a490f 100644 --- a/docs/examples/tablesdb/update-mediumtext-column.md +++ b/docs/examples/tablesdb/update-mediumtext-column.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -16,4 +17,4 @@ ColumnMediumtext result = await tablesDB.UpdateMediumtextColumn( required: false, default: "", newKey: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/tablesdb/update-point-column.md b/docs/examples/tablesdb/update-point-column.md index 663f1838..a976260a 100644 --- a/docs/examples/tablesdb/update-point-column.md +++ b/docs/examples/tablesdb/update-point-column.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -16,4 +17,4 @@ ColumnPoint result = await tablesDB.UpdatePointColumn( required: false, default: [1, 2], // optional newKey: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/tablesdb/update-polygon-column.md b/docs/examples/tablesdb/update-polygon-column.md index ac8300ad..f19a0717 100644 --- a/docs/examples/tablesdb/update-polygon-column.md +++ b/docs/examples/tablesdb/update-polygon-column.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -16,4 +17,4 @@ ColumnPolygon result = await tablesDB.UpdatePolygonColumn( required: false, default: [[[1, 2], [3, 4], [5, 6], [1, 2]]], // optional newKey: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/tablesdb/update-relationship-column.md b/docs/examples/tablesdb/update-relationship-column.md index 9a0a36b6..36cc97d2 100644 --- a/docs/examples/tablesdb/update-relationship-column.md +++ b/docs/examples/tablesdb/update-relationship-column.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Enums; using Appwrite.Models; @@ -16,4 +17,4 @@ ColumnRelationship result = await tablesDB.UpdateRelationshipColumn( key: "", onDelete: RelationMutate.Cascade, // optional newKey: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/tablesdb/update-row.md b/docs/examples/tablesdb/update-row.md index 31dfd9dd..54e6ca16 100644 --- a/docs/examples/tablesdb/update-row.md +++ b/docs/examples/tablesdb/update-row.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -22,4 +23,4 @@ Row result = await tablesDB.UpdateRow( }, // optional permissions: new List { Permission.Read(Role.Any()) }, // optional transactionId: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/tablesdb/update-rows.md b/docs/examples/tablesdb/update-rows.md index ddd88e04..0fe6b38b 100644 --- a/docs/examples/tablesdb/update-rows.md +++ b/docs/examples/tablesdb/update-rows.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -21,4 +22,4 @@ RowList result = await tablesDB.UpdateRows( }, // optional queries: new List(), // optional transactionId: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/tablesdb/update-string-column.md b/docs/examples/tablesdb/update-string-column.md index df5308dd..c0b860db 100644 --- a/docs/examples/tablesdb/update-string-column.md +++ b/docs/examples/tablesdb/update-string-column.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -17,4 +18,4 @@ ColumnString result = await tablesDB.UpdateStringColumn( default: "", size: 1, // optional newKey: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/tablesdb/update-table.md b/docs/examples/tablesdb/update-table.md index 9e2e5672..034b74fe 100644 --- a/docs/examples/tablesdb/update-table.md +++ b/docs/examples/tablesdb/update-table.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -16,4 +17,4 @@ Table result = await tablesDB.UpdateTable( permissions: new List { Permission.Read(Role.Any()) }, // optional rowSecurity: false, // optional enabled: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/tablesdb/update-text-column.md b/docs/examples/tablesdb/update-text-column.md index 6a88a543..da4fefaa 100644 --- a/docs/examples/tablesdb/update-text-column.md +++ b/docs/examples/tablesdb/update-text-column.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -16,4 +17,4 @@ ColumnText result = await tablesDB.UpdateTextColumn( required: false, default: "", newKey: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/tablesdb/update-transaction.md b/docs/examples/tablesdb/update-transaction.md index 3b44fd5d..99e6a017 100644 --- a/docs/examples/tablesdb/update-transaction.md +++ b/docs/examples/tablesdb/update-transaction.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -13,4 +14,4 @@ Transaction result = await tablesDB.UpdateTransaction( transactionId: "", commit: false, // optional rollback: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/tablesdb/update-url-column.md b/docs/examples/tablesdb/update-url-column.md index d342fc94..10761c90 100644 --- a/docs/examples/tablesdb/update-url-column.md +++ b/docs/examples/tablesdb/update-url-column.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -16,4 +17,4 @@ ColumnUrl result = await tablesDB.UpdateUrlColumn( required: false, default: "https://example.com", newKey: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/tablesdb/update-varchar-column.md b/docs/examples/tablesdb/update-varchar-column.md index 87bbed38..948be687 100644 --- a/docs/examples/tablesdb/update-varchar-column.md +++ b/docs/examples/tablesdb/update-varchar-column.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -17,4 +18,4 @@ ColumnVarchar result = await tablesDB.UpdateVarcharColumn( default: "", size: 1, // optional newKey: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/tablesdb/update.md b/docs/examples/tablesdb/update.md index e254acb4..e03329dd 100644 --- a/docs/examples/tablesdb/update.md +++ b/docs/examples/tablesdb/update.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -13,4 +14,4 @@ Database result = await tablesDB.Update( databaseId: "", name: "", // optional enabled: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/tablesdb/upsert-row.md b/docs/examples/tablesdb/upsert-row.md index f4860bc9..5f3c4d28 100644 --- a/docs/examples/tablesdb/upsert-row.md +++ b/docs/examples/tablesdb/upsert-row.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -22,4 +23,4 @@ Row result = await tablesDB.UpsertRow( }, // optional permissions: new List { Permission.Read(Role.Any()) }, // optional transactionId: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/tablesdb/upsert-rows.md b/docs/examples/tablesdb/upsert-rows.md index fde5df71..b1fbe191 100644 --- a/docs/examples/tablesdb/upsert-rows.md +++ b/docs/examples/tablesdb/upsert-rows.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -14,4 +15,4 @@ RowList result = await tablesDB.UpsertRows( tableId: "", rows: new List(), transactionId: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/teams/create-membership.md b/docs/examples/teams/create-membership.md index 787d595e..f107bbc5 100644 --- a/docs/examples/teams/create-membership.md +++ b/docs/examples/teams/create-membership.md @@ -1,5 +1,5 @@ +```csharp using Appwrite; -using Appwrite.Enums; using Appwrite.Models; using Appwrite.Services; @@ -12,10 +12,10 @@ Teams teams = new Teams(client); Membership result = await teams.CreateMembership( teamId: "", - roles: new List<Roles> { Roles.Admin }, + roles: new List(), email: "email@example.com", // optional userId: "", // optional phone: "+12065550100", // optional url: "https://example.com", // optional name: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/teams/create.md b/docs/examples/teams/create.md index 07b102d7..ead315a9 100644 --- a/docs/examples/teams/create.md +++ b/docs/examples/teams/create.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -13,4 +14,4 @@ Team result = await teams.Create( teamId: "", name: "", roles: new List() // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/teams/delete-membership.md b/docs/examples/teams/delete-membership.md index 01a58aaa..ac7ff432 100644 --- a/docs/examples/teams/delete-membership.md +++ b/docs/examples/teams/delete-membership.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -12,4 +13,4 @@ Teams teams = new Teams(client); await teams.DeleteMembership( teamId: "", membershipId: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/teams/delete.md b/docs/examples/teams/delete.md index ee525f23..67f20dee 100644 --- a/docs/examples/teams/delete.md +++ b/docs/examples/teams/delete.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -11,4 +12,4 @@ Teams teams = new Teams(client); await teams.Delete( teamId: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/teams/get-membership.md b/docs/examples/teams/get-membership.md index cb9109df..f8c0cd0b 100644 --- a/docs/examples/teams/get-membership.md +++ b/docs/examples/teams/get-membership.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -12,4 +13,4 @@ Teams teams = new Teams(client); Membership result = await teams.GetMembership( teamId: "", membershipId: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/teams/get-prefs.md b/docs/examples/teams/get-prefs.md index f95d73af..b8a790a1 100644 --- a/docs/examples/teams/get-prefs.md +++ b/docs/examples/teams/get-prefs.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -11,4 +12,4 @@ Teams teams = new Teams(client); Preferences result = await teams.GetPrefs( teamId: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/teams/get.md b/docs/examples/teams/get.md index 339b33f6..0ad3fd3c 100644 --- a/docs/examples/teams/get.md +++ b/docs/examples/teams/get.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -11,4 +12,4 @@ Teams teams = new Teams(client); Team result = await teams.Get( teamId: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/teams/list-memberships.md b/docs/examples/teams/list-memberships.md index b3aa6838..85fe50cd 100644 --- a/docs/examples/teams/list-memberships.md +++ b/docs/examples/teams/list-memberships.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -14,4 +15,4 @@ MembershipList result = await teams.ListMemberships( queries: new List(), // optional search: "", // optional total: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/teams/list.md b/docs/examples/teams/list.md index 70bdc6e3..d345222a 100644 --- a/docs/examples/teams/list.md +++ b/docs/examples/teams/list.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -13,4 +14,4 @@ TeamList result = await teams.List( queries: new List(), // optional search: "", // optional total: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/teams/update-membership-status.md b/docs/examples/teams/update-membership-status.md index 87609aa3..05d763d3 100644 --- a/docs/examples/teams/update-membership-status.md +++ b/docs/examples/teams/update-membership-status.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -14,4 +15,4 @@ Membership result = await teams.UpdateMembershipStatus( membershipId: "", userId: "", secret: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/teams/update-membership.md b/docs/examples/teams/update-membership.md index dd942cc8..6aef545f 100644 --- a/docs/examples/teams/update-membership.md +++ b/docs/examples/teams/update-membership.md @@ -1,5 +1,5 @@ +```csharp using Appwrite; -using Appwrite.Enums; using Appwrite.Models; using Appwrite.Services; @@ -13,5 +13,5 @@ Teams teams = new Teams(client); Membership result = await teams.UpdateMembership( teamId: "", membershipId: "", - roles: new List<Roles> { Roles.Admin } -); \ No newline at end of file + roles: new List() +);``` diff --git a/docs/examples/teams/update-name.md b/docs/examples/teams/update-name.md index 9a3fb131..e3161e1b 100644 --- a/docs/examples/teams/update-name.md +++ b/docs/examples/teams/update-name.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -12,4 +13,4 @@ Teams teams = new Teams(client); Team result = await teams.UpdateName( teamId: "", name: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/teams/update-prefs.md b/docs/examples/teams/update-prefs.md index 55ff96e9..fdfa9e0d 100644 --- a/docs/examples/teams/update-prefs.md +++ b/docs/examples/teams/update-prefs.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -12,4 +13,4 @@ Teams teams = new Teams(client); Preferences result = await teams.UpdatePrefs( teamId: "", prefs: [object] -); \ No newline at end of file +);``` diff --git a/docs/examples/tokens/create-file-token.md b/docs/examples/tokens/create-file-token.md index 70f4ed39..7e575517 100644 --- a/docs/examples/tokens/create-file-token.md +++ b/docs/examples/tokens/create-file-token.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -13,4 +14,4 @@ ResourceToken result = await tokens.CreateFileToken( bucketId: "", fileId: "", expire: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/tokens/delete.md b/docs/examples/tokens/delete.md index e88147c1..22004e28 100644 --- a/docs/examples/tokens/delete.md +++ b/docs/examples/tokens/delete.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -11,4 +12,4 @@ Tokens tokens = new Tokens(client); await tokens.Delete( tokenId: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/tokens/get.md b/docs/examples/tokens/get.md index da9b4310..274b3432 100644 --- a/docs/examples/tokens/get.md +++ b/docs/examples/tokens/get.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -11,4 +12,4 @@ Tokens tokens = new Tokens(client); ResourceToken result = await tokens.Get( tokenId: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/tokens/list.md b/docs/examples/tokens/list.md index ee1066cd..0cc4dc4b 100644 --- a/docs/examples/tokens/list.md +++ b/docs/examples/tokens/list.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -14,4 +15,4 @@ ResourceTokenList result = await tokens.List( fileId: "", queries: new List(), // optional total: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/tokens/update.md b/docs/examples/tokens/update.md index b7604182..43ac4720 100644 --- a/docs/examples/tokens/update.md +++ b/docs/examples/tokens/update.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -12,4 +13,4 @@ Tokens tokens = new Tokens(client); ResourceToken result = await tokens.Update( tokenId: "", expire: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/users/create-argon-2-user.md b/docs/examples/users/create-argon-2-user.md index db6dd648..0962eff6 100644 --- a/docs/examples/users/create-argon-2-user.md +++ b/docs/examples/users/create-argon-2-user.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -14,4 +15,4 @@ User result = await users.CreateArgon2User( email: "email@example.com", password: "password", name: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/users/create-bcrypt-user.md b/docs/examples/users/create-bcrypt-user.md index bf8bf3de..bdcfd9a8 100644 --- a/docs/examples/users/create-bcrypt-user.md +++ b/docs/examples/users/create-bcrypt-user.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -14,4 +15,4 @@ User result = await users.CreateBcryptUser( email: "email@example.com", password: "password", name: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/users/create-jwt.md b/docs/examples/users/create-jwt.md index a7c57ad6..2c6d9770 100644 --- a/docs/examples/users/create-jwt.md +++ b/docs/examples/users/create-jwt.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -13,4 +14,4 @@ JWT result = await users.CreateJWT( userId: "", sessionId: "", // optional duration: 0 // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/users/create-md-5-user.md b/docs/examples/users/create-md-5-user.md index 7b7d0e77..5fc94ca7 100644 --- a/docs/examples/users/create-md-5-user.md +++ b/docs/examples/users/create-md-5-user.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -14,4 +15,4 @@ User result = await users.CreateMD5User( email: "email@example.com", password: "password", name: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/users/create-mfa-recovery-codes.md b/docs/examples/users/create-mfa-recovery-codes.md index d0c0d95a..453e66c2 100644 --- a/docs/examples/users/create-mfa-recovery-codes.md +++ b/docs/examples/users/create-mfa-recovery-codes.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -11,4 +12,4 @@ Users users = new Users(client); MfaRecoveryCodes result = await users.CreateMFARecoveryCodes( userId: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/users/create-ph-pass-user.md b/docs/examples/users/create-ph-pass-user.md index 9f5521ef..0d6b7fae 100644 --- a/docs/examples/users/create-ph-pass-user.md +++ b/docs/examples/users/create-ph-pass-user.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -14,4 +15,4 @@ User result = await users.CreatePHPassUser( email: "email@example.com", password: "password", name: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/users/create-scrypt-modified-user.md b/docs/examples/users/create-scrypt-modified-user.md index 3af99e88..640cdb8f 100644 --- a/docs/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/users/create-scrypt-modified-user.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -17,4 +18,4 @@ User result = await users.CreateScryptModifiedUser( passwordSaltSeparator: "", passwordSignerKey: "", name: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/users/create-scrypt-user.md b/docs/examples/users/create-scrypt-user.md index 79085f72..47f4d8e1 100644 --- a/docs/examples/users/create-scrypt-user.md +++ b/docs/examples/users/create-scrypt-user.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -19,4 +20,4 @@ User result = await users.CreateScryptUser( passwordParallel: 0, passwordLength: 0, name: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/users/create-session.md b/docs/examples/users/create-session.md index a021c255..78cd1d2b 100644 --- a/docs/examples/users/create-session.md +++ b/docs/examples/users/create-session.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -11,4 +12,4 @@ Users users = new Users(client); Session result = await users.CreateSession( userId: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/users/create-sha-user.md b/docs/examples/users/create-sha-user.md index 0821bf46..9c8d13b7 100644 --- a/docs/examples/users/create-sha-user.md +++ b/docs/examples/users/create-sha-user.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Enums; using Appwrite.Models; @@ -16,4 +17,4 @@ User result = await users.CreateSHAUser( password: "password", passwordVersion: PasswordHash.Sha1, // optional name: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/users/create-target.md b/docs/examples/users/create-target.md index 44ba48ac..17129125 100644 --- a/docs/examples/users/create-target.md +++ b/docs/examples/users/create-target.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Enums; using Appwrite.Models; @@ -17,4 +18,4 @@ Target result = await users.CreateTarget( identifier: "", providerId: "", // optional name: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/users/create-token.md b/docs/examples/users/create-token.md index 0e9cf43f..5e8fd9e3 100644 --- a/docs/examples/users/create-token.md +++ b/docs/examples/users/create-token.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -13,4 +14,4 @@ Token result = await users.CreateToken( userId: "", length: 4, // optional expire: 60 // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/users/create.md b/docs/examples/users/create.md index 3cf1d3af..e15c2071 100644 --- a/docs/examples/users/create.md +++ b/docs/examples/users/create.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -15,4 +16,4 @@ User result = await users.Create( phone: "+12065550100", // optional password: "", // optional name: "" // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/users/delete-identity.md b/docs/examples/users/delete-identity.md index d2bac6b7..1237f3a4 100644 --- a/docs/examples/users/delete-identity.md +++ b/docs/examples/users/delete-identity.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -11,4 +12,4 @@ Users users = new Users(client); await users.DeleteIdentity( identityId: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/users/delete-mfa-authenticator.md b/docs/examples/users/delete-mfa-authenticator.md index b4cec73a..7b311319 100644 --- a/docs/examples/users/delete-mfa-authenticator.md +++ b/docs/examples/users/delete-mfa-authenticator.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Enums; using Appwrite.Models; @@ -13,4 +14,4 @@ Users users = new Users(client); await users.DeleteMFAAuthenticator( userId: "", type: AuthenticatorType.Totp -); \ No newline at end of file +);``` diff --git a/docs/examples/users/delete-session.md b/docs/examples/users/delete-session.md index d9d36d20..5d0282d5 100644 --- a/docs/examples/users/delete-session.md +++ b/docs/examples/users/delete-session.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -12,4 +13,4 @@ Users users = new Users(client); await users.DeleteSession( userId: "", sessionId: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/users/delete-sessions.md b/docs/examples/users/delete-sessions.md index 7011e426..26b2cac1 100644 --- a/docs/examples/users/delete-sessions.md +++ b/docs/examples/users/delete-sessions.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -11,4 +12,4 @@ Users users = new Users(client); await users.DeleteSessions( userId: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/users/delete-target.md b/docs/examples/users/delete-target.md index ad900afa..60bbc5a6 100644 --- a/docs/examples/users/delete-target.md +++ b/docs/examples/users/delete-target.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -12,4 +13,4 @@ Users users = new Users(client); await users.DeleteTarget( userId: "", targetId: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/users/delete.md b/docs/examples/users/delete.md index 00ed23cf..f1ee25ff 100644 --- a/docs/examples/users/delete.md +++ b/docs/examples/users/delete.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -11,4 +12,4 @@ Users users = new Users(client); await users.Delete( userId: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/users/get-mfa-recovery-codes.md b/docs/examples/users/get-mfa-recovery-codes.md index ce945311..34dca016 100644 --- a/docs/examples/users/get-mfa-recovery-codes.md +++ b/docs/examples/users/get-mfa-recovery-codes.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -11,4 +12,4 @@ Users users = new Users(client); MfaRecoveryCodes result = await users.GetMFARecoveryCodes( userId: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/users/get-prefs.md b/docs/examples/users/get-prefs.md index 36888651..183bf14a 100644 --- a/docs/examples/users/get-prefs.md +++ b/docs/examples/users/get-prefs.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -11,4 +12,4 @@ Users users = new Users(client); Preferences result = await users.GetPrefs( userId: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/users/get-target.md b/docs/examples/users/get-target.md index 2bbf4d61..428e9248 100644 --- a/docs/examples/users/get-target.md +++ b/docs/examples/users/get-target.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -12,4 +13,4 @@ Users users = new Users(client); Target result = await users.GetTarget( userId: "", targetId: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/users/get.md b/docs/examples/users/get.md index 25971bad..f1de9cd0 100644 --- a/docs/examples/users/get.md +++ b/docs/examples/users/get.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -11,4 +12,4 @@ Users users = new Users(client); User result = await users.Get( userId: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/users/list-identities.md b/docs/examples/users/list-identities.md index 375b3df8..3c8cdd62 100644 --- a/docs/examples/users/list-identities.md +++ b/docs/examples/users/list-identities.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -13,4 +14,4 @@ IdentityList result = await users.ListIdentities( queries: new List(), // optional search: "", // optional total: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/users/list-logs.md b/docs/examples/users/list-logs.md index d6769b89..b1faf3dc 100644 --- a/docs/examples/users/list-logs.md +++ b/docs/examples/users/list-logs.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -13,4 +14,4 @@ LogList result = await users.ListLogs( userId: "", queries: new List(), // optional total: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/users/list-memberships.md b/docs/examples/users/list-memberships.md index 6f9f3fa2..b72ebb37 100644 --- a/docs/examples/users/list-memberships.md +++ b/docs/examples/users/list-memberships.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -14,4 +15,4 @@ MembershipList result = await users.ListMemberships( queries: new List(), // optional search: "", // optional total: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/users/list-mfa-factors.md b/docs/examples/users/list-mfa-factors.md index 956949d0..18f888f2 100644 --- a/docs/examples/users/list-mfa-factors.md +++ b/docs/examples/users/list-mfa-factors.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -11,4 +12,4 @@ Users users = new Users(client); MfaFactors result = await users.ListMFAFactors( userId: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/users/list-sessions.md b/docs/examples/users/list-sessions.md index 7410cdcb..3c888dda 100644 --- a/docs/examples/users/list-sessions.md +++ b/docs/examples/users/list-sessions.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -12,4 +13,4 @@ Users users = new Users(client); SessionList result = await users.ListSessions( userId: "", total: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/users/list-targets.md b/docs/examples/users/list-targets.md index f04ffd3a..d825f0b1 100644 --- a/docs/examples/users/list-targets.md +++ b/docs/examples/users/list-targets.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -13,4 +14,4 @@ TargetList result = await users.ListTargets( userId: "", queries: new List(), // optional total: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/users/list.md b/docs/examples/users/list.md index a2b22a9e..24407b55 100644 --- a/docs/examples/users/list.md +++ b/docs/examples/users/list.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -13,4 +14,4 @@ UserList result = await users.List( queries: new List(), // optional search: "", // optional total: false // optional -); \ No newline at end of file +);``` diff --git a/docs/examples/users/update-email-verification.md b/docs/examples/users/update-email-verification.md index 8add2d4d..1a9bee68 100644 --- a/docs/examples/users/update-email-verification.md +++ b/docs/examples/users/update-email-verification.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -12,4 +13,4 @@ Users users = new Users(client); User result = await users.UpdateEmailVerification( userId: "", emailVerification: false -); \ No newline at end of file +);``` diff --git a/docs/examples/users/update-email.md b/docs/examples/users/update-email.md index d0d737cb..971db635 100644 --- a/docs/examples/users/update-email.md +++ b/docs/examples/users/update-email.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -12,4 +13,4 @@ Users users = new Users(client); User result = await users.UpdateEmail( userId: "", email: "email@example.com" -); \ No newline at end of file +);``` diff --git a/docs/examples/users/update-labels.md b/docs/examples/users/update-labels.md index 6637ad04..745fcde0 100644 --- a/docs/examples/users/update-labels.md +++ b/docs/examples/users/update-labels.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -12,4 +13,4 @@ Users users = new Users(client); User result = await users.UpdateLabels( userId: "", labels: new List() -); \ No newline at end of file +);``` diff --git a/docs/examples/users/update-mfa-recovery-codes.md b/docs/examples/users/update-mfa-recovery-codes.md index ac14ccf9..f2c59a7d 100644 --- a/docs/examples/users/update-mfa-recovery-codes.md +++ b/docs/examples/users/update-mfa-recovery-codes.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -11,4 +12,4 @@ Users users = new Users(client); MfaRecoveryCodes result = await users.UpdateMFARecoveryCodes( userId: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/users/update-mfa.md b/docs/examples/users/update-mfa.md index 11149823..ea9ae97f 100644 --- a/docs/examples/users/update-mfa.md +++ b/docs/examples/users/update-mfa.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -12,4 +13,4 @@ Users users = new Users(client); User result = await users.UpdateMFA( userId: "", mfa: false -); \ No newline at end of file +);``` diff --git a/docs/examples/users/update-name.md b/docs/examples/users/update-name.md index ffa90f96..874476e9 100644 --- a/docs/examples/users/update-name.md +++ b/docs/examples/users/update-name.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -12,4 +13,4 @@ Users users = new Users(client); User result = await users.UpdateName( userId: "", name: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/users/update-password.md b/docs/examples/users/update-password.md index 6dc30d5b..0222d6f6 100644 --- a/docs/examples/users/update-password.md +++ b/docs/examples/users/update-password.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -12,4 +13,4 @@ Users users = new Users(client); User result = await users.UpdatePassword( userId: "", password: "" -); \ No newline at end of file +);``` diff --git a/docs/examples/users/update-phone-verification.md b/docs/examples/users/update-phone-verification.md index ba5ca253..fce805ce 100644 --- a/docs/examples/users/update-phone-verification.md +++ b/docs/examples/users/update-phone-verification.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -12,4 +13,4 @@ Users users = new Users(client); User result = await users.UpdatePhoneVerification( userId: "", phoneVerification: false -); \ No newline at end of file +);``` diff --git a/docs/examples/users/update-phone.md b/docs/examples/users/update-phone.md index e633740e..dce430d0 100644 --- a/docs/examples/users/update-phone.md +++ b/docs/examples/users/update-phone.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -12,4 +13,4 @@ Users users = new Users(client); User result = await users.UpdatePhone( userId: "", number: "+12065550100" -); \ No newline at end of file +);``` diff --git a/docs/examples/users/update-prefs.md b/docs/examples/users/update-prefs.md index 421a4c23..e6ebf0d0 100644 --- a/docs/examples/users/update-prefs.md +++ b/docs/examples/users/update-prefs.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -12,4 +13,4 @@ Users users = new Users(client); Preferences result = await users.UpdatePrefs( userId: "", prefs: [object] -); \ No newline at end of file +);``` diff --git a/docs/examples/users/update-status.md b/docs/examples/users/update-status.md index 3037d8dd..04057430 100644 --- a/docs/examples/users/update-status.md +++ b/docs/examples/users/update-status.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -12,4 +13,4 @@ Users users = new Users(client); User result = await users.UpdateStatus( userId: "", status: false -); \ No newline at end of file +);``` diff --git a/docs/examples/users/update-target.md b/docs/examples/users/update-target.md index 9863af19..9104e974 100644 --- a/docs/examples/users/update-target.md +++ b/docs/examples/users/update-target.md @@ -1,3 +1,4 @@ +```csharp using Appwrite; using Appwrite.Models; using Appwrite.Services; @@ -15,4 +16,4 @@ Target result = await users.UpdateTarget( identifier: "", // optional providerId: "", // optional name: "" // optional -); \ No newline at end of file +);```