Skip to content

Commit 0ef280a

Browse files
committed
chore: regenerate
1 parent d95e204 commit 0ef280a

72 files changed

Lines changed: 4306 additions & 80 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Appwrite Ruby SDK
22

33
![License](https://img.shields.io/github/license/appwrite/sdk-for-ruby.svg?style=flat-square)
4-
![Version](https://img.shields.io/badge/api%20version-1.7.4-blue.svg?style=flat-square)
4+
![Version](https://img.shields.io/badge/api%20version-1.8.0-blue.svg?style=flat-square)
55
[![Build Status](https://img.shields.io/travis/com/appwrite/sdk-generator?style=flat-square)](https://travis-ci.com/appwrite/sdk-generator)
66
[![Twitter Account](https://img.shields.io/twitter/follow/appwrite?color=00acee&label=twitter&style=flat-square)](https://twitter.com/appwrite)
77
[![Discord](https://img.shields.io/discord/564160730845151244?label=discord&style=flat-square)](https://appwrite.io/discord)
88

9-
**This SDK is compatible with Appwrite server version 1.7.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-ruby/releases).**
9+
**This SDK is compatible with Appwrite server version 1.8.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-ruby/releases).**
1010

1111
Appwrite is an open-source backend as a service server that abstract and simplify complex and repetitive development tasks behind a very simple to use REST API. Appwrite aims to help you develop your apps faster and in a more secure way. Use the Ruby SDK to integrate your app with the Appwrite server to easily start interacting with all of Appwrite backend APIs and tools. For full API documentation and tutorials go to [https://appwrite.io/docs](https://appwrite.io/docs)
1212

appwrite.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Gem::Specification.new do |spec|
22

33
spec.name = 'appwrite'
4-
spec.version = '16.1.0'
4+
spec.version = '17.0.0'
55
spec.license = 'BSD-3-Clause'
66
spec.summary = 'Appwrite is an open-source self-hosted backend server that abstract and simplify complex and repetitive development tasks behind a very simple REST API'
77
spec.author = 'Appwrite Team'

docs/examples/databases/create-document.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ include Appwrite
44

55
client = Client.new
66
.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
7-
.set_admin('') #
87
.set_session('') # The user session to authenticate with
98
.set_key('<YOUR_API_KEY>') # Your secret API key
109
.set_jwt('<YOUR_JWT>') # Your secret JSON Web Token

docs/examples/databases/create-documents.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ include Appwrite
44

55
client = Client.new
66
.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
7+
.set_admin('') #
78
.set_key('<YOUR_API_KEY>') # Your secret API key
89

910
databases = Databases.new(client)

docs/examples/databases/upsert-document.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,14 @@ include Appwrite
44

55
client = Client.new
66
.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
7-
.set_project('<YOUR_PROJECT_ID>') # Your project ID
87
.set_session('') # The user session to authenticate with
8+
.set_key('<YOUR_API_KEY>') # Your secret API key
9+
.set_jwt('<YOUR_JWT>') # Your secret JSON Web Token
910

1011
databases = Databases.new(client)
1112

1213
result = databases.upsert_document(
1314
database_id: '<DATABASE_ID>',
1415
collection_id: '<COLLECTION_ID>',
15-
document_id: '<DOCUMENT_ID>',
16-
data: {},
17-
permissions: ["read("any")"] # optional
16+
document_id: '<DOCUMENT_ID>'
1817
)

docs/examples/databases/upsert-documents.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,12 @@ include Appwrite
44

55
client = Client.new
66
.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
7-
.set_project('<YOUR_PROJECT_ID>') # Your project ID
7+
.set_admin('') #
88
.set_key('<YOUR_API_KEY>') # Your secret API key
99

1010
databases = Databases.new(client)
1111

1212
result = databases.upsert_documents(
1313
database_id: '<DATABASE_ID>',
14-
collection_id: '<COLLECTION_ID>',
15-
documents: []
14+
collection_id: '<COLLECTION_ID>'
1615
)
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
require 'appwrite'
2+
3+
include Appwrite
4+
5+
client = Client.new
6+
.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
7+
.set_project('<YOUR_PROJECT_ID>') # Your project ID
8+
.set_key('<YOUR_API_KEY>') # Your secret API key
9+
10+
tables = Tables.new(client)
11+
12+
result = tables.create_boolean_column(
13+
database_id: '<DATABASE_ID>',
14+
table_id: '<TABLE_ID>',
15+
key: '',
16+
required: false,
17+
default: false, # optional
18+
array: false # optional
19+
)
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
require 'appwrite'
2+
3+
include Appwrite
4+
5+
client = Client.new
6+
.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
7+
.set_project('<YOUR_PROJECT_ID>') # Your project ID
8+
.set_key('<YOUR_API_KEY>') # Your secret API key
9+
10+
tables = Tables.new(client)
11+
12+
result = tables.create_datetime_column(
13+
database_id: '<DATABASE_ID>',
14+
table_id: '<TABLE_ID>',
15+
key: '',
16+
required: false,
17+
default: '', # optional
18+
array: false # optional
19+
)
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
require 'appwrite'
2+
3+
include Appwrite
4+
5+
client = Client.new
6+
.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
7+
.set_project('<YOUR_PROJECT_ID>') # Your project ID
8+
.set_key('<YOUR_API_KEY>') # Your secret API key
9+
10+
tables = Tables.new(client)
11+
12+
result = tables.create_email_column(
13+
database_id: '<DATABASE_ID>',
14+
table_id: '<TABLE_ID>',
15+
key: '',
16+
required: false,
17+
default: 'email@example.com', # optional
18+
array: false # optional
19+
)
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
require 'appwrite'
2+
3+
include Appwrite
4+
5+
client = Client.new
6+
.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
7+
.set_project('<YOUR_PROJECT_ID>') # Your project ID
8+
.set_key('<YOUR_API_KEY>') # Your secret API key
9+
10+
tables = Tables.new(client)
11+
12+
result = tables.create_enum_column(
13+
database_id: '<DATABASE_ID>',
14+
table_id: '<TABLE_ID>',
15+
key: '',
16+
elements: [],
17+
required: false,
18+
default: '<DEFAULT>', # optional
19+
array: false # optional
20+
)

0 commit comments

Comments
 (0)