mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Merge pull request #10828 from appwrite/fix-enum-examples
fix: a lot of enum examples generated
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
require 'appwrite'
|
||||
|
||||
include Appwrite
|
||||
include Appwrite::Enums
|
||||
|
||||
client = Client.new
|
||||
.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
|
||||
@@ -15,11 +16,11 @@ result = avatars.get_screenshot(
|
||||
viewport_width: 1, # optional
|
||||
viewport_height: 1, # optional
|
||||
scale: 0.1, # optional
|
||||
theme: ::LIGHT, # optional
|
||||
theme: Theme::LIGHT, # optional
|
||||
user_agent: '<USER_AGENT>', # optional
|
||||
fullpage: false, # optional
|
||||
locale: '<LOCALE>', # optional
|
||||
timezone: ::AFRICA_ABIDJAN, # optional
|
||||
timezone: Timezone::AFRICA_ABIDJAN, # optional
|
||||
latitude: -90, # optional
|
||||
longitude: -180, # optional
|
||||
accuracy: 0, # optional
|
||||
@@ -29,5 +30,5 @@ result = avatars.get_screenshot(
|
||||
width: 0, # optional
|
||||
height: 0, # optional
|
||||
quality: -1, # optional
|
||||
output: ::JPG # optional
|
||||
output: Output::JPG # optional
|
||||
)
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
require 'appwrite'
|
||||
|
||||
include Appwrite
|
||||
include Appwrite::Enums
|
||||
|
||||
client = Client.new
|
||||
.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
require 'appwrite'
|
||||
|
||||
include Appwrite
|
||||
include Appwrite::Enums
|
||||
|
||||
client = Client.new
|
||||
.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
|
||||
|
||||
@@ -13,7 +13,7 @@ functions = Functions.new(client)
|
||||
result = functions.create(
|
||||
function_id: '<FUNCTION_ID>',
|
||||
name: '<NAME>',
|
||||
runtime: ::NODE_14_5,
|
||||
runtime: Runtime::NODE_14_5,
|
||||
execute: ["any"], # optional
|
||||
events: [], # optional
|
||||
schedule: '', # optional
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
require 'appwrite'
|
||||
|
||||
include Appwrite
|
||||
include Appwrite::Enums
|
||||
|
||||
client = Client.new
|
||||
.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
require 'appwrite'
|
||||
|
||||
include Appwrite
|
||||
include Appwrite::Enums
|
||||
|
||||
client = Client.new
|
||||
.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
|
||||
@@ -12,7 +13,7 @@ functions = Functions.new(client)
|
||||
result = functions.update(
|
||||
function_id: '<FUNCTION_ID>',
|
||||
name: '<NAME>',
|
||||
runtime: ::NODE_14_5, # optional
|
||||
runtime: Runtime::NODE_14_5, # optional
|
||||
execute: ["any"], # optional
|
||||
events: [], # optional
|
||||
schedule: '', # optional
|
||||
|
||||
@@ -11,6 +11,6 @@ client = Client.new
|
||||
health = Health.new(client)
|
||||
|
||||
result = health.get_failed_jobs(
|
||||
name: ::V1_DATABASE,
|
||||
name: Name::V1_DATABASE,
|
||||
threshold: null # optional
|
||||
)
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
require 'appwrite'
|
||||
|
||||
include Appwrite
|
||||
include Appwrite::Enums
|
||||
|
||||
client = Client.new
|
||||
.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
require 'appwrite'
|
||||
|
||||
include Appwrite
|
||||
include Appwrite::Enums
|
||||
|
||||
client = Client.new
|
||||
.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
require 'appwrite'
|
||||
|
||||
include Appwrite
|
||||
include Appwrite::Enums
|
||||
|
||||
client = Client.new
|
||||
.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
require 'appwrite'
|
||||
|
||||
include Appwrite
|
||||
include Appwrite::Enums
|
||||
|
||||
client = Client.new
|
||||
.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
|
||||
|
||||
@@ -13,15 +13,15 @@ sites = Sites.new(client)
|
||||
result = sites.create(
|
||||
site_id: '<SITE_ID>',
|
||||
name: '<NAME>',
|
||||
framework: ::ANALOG,
|
||||
build_runtime: ::NODE_14_5,
|
||||
framework: Framework::ANALOG,
|
||||
build_runtime: BuildRuntime::NODE_14_5,
|
||||
enabled: false, # optional
|
||||
logging: false, # optional
|
||||
timeout: 1, # optional
|
||||
install_command: '<INSTALL_COMMAND>', # optional
|
||||
build_command: '<BUILD_COMMAND>', # optional
|
||||
output_directory: '<OUTPUT_DIRECTORY>', # optional
|
||||
adapter: ::STATIC, # optional
|
||||
adapter: Adapter::STATIC, # optional
|
||||
installation_id: '<INSTALLATION_ID>', # optional
|
||||
fallback_file: '<FALLBACK_FILE>', # optional
|
||||
provider_repository_id: '<PROVIDER_REPOSITORY_ID>', # optional
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
require 'appwrite'
|
||||
|
||||
include Appwrite
|
||||
include Appwrite::Enums
|
||||
|
||||
client = Client.new
|
||||
.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
|
||||
|
||||
@@ -13,15 +13,15 @@ sites = Sites.new(client)
|
||||
result = sites.update(
|
||||
site_id: '<SITE_ID>',
|
||||
name: '<NAME>',
|
||||
framework: ::ANALOG,
|
||||
framework: Framework::ANALOG,
|
||||
enabled: false, # optional
|
||||
logging: false, # optional
|
||||
timeout: 1, # optional
|
||||
install_command: '<INSTALL_COMMAND>', # optional
|
||||
build_command: '<BUILD_COMMAND>', # optional
|
||||
output_directory: '<OUTPUT_DIRECTORY>', # optional
|
||||
build_runtime: ::NODE_14_5, # optional
|
||||
adapter: ::STATIC, # optional
|
||||
build_runtime: BuildRuntime::NODE_14_5, # optional
|
||||
adapter: Adapter::STATIC, # optional
|
||||
fallback_file: '<FALLBACK_FILE>', # optional
|
||||
installation_id: '<INSTALLATION_ID>', # optional
|
||||
provider_repository_id: '<PROVIDER_REPOSITORY_ID>', # optional
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
require 'appwrite'
|
||||
|
||||
include Appwrite
|
||||
include Appwrite::Enums
|
||||
include Appwrite::Permission
|
||||
include Appwrite::Role
|
||||
|
||||
@@ -19,7 +20,7 @@ result = storage.create_bucket(
|
||||
enabled: false, # optional
|
||||
maximum_file_size: 1, # optional
|
||||
allowed_file_extensions: [], # optional
|
||||
compression: ::NONE, # optional
|
||||
compression: Compression::NONE, # optional
|
||||
encryption: false, # optional
|
||||
antivirus: false, # optional
|
||||
transformations: false # optional
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
require 'appwrite'
|
||||
|
||||
include Appwrite
|
||||
include Appwrite::Enums
|
||||
|
||||
client = Client.new
|
||||
.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
require 'appwrite'
|
||||
|
||||
include Appwrite
|
||||
include Appwrite::Enums
|
||||
include Appwrite::Permission
|
||||
include Appwrite::Role
|
||||
|
||||
@@ -19,7 +20,7 @@ result = storage.update_bucket(
|
||||
enabled: false, # optional
|
||||
maximum_file_size: 1, # optional
|
||||
allowed_file_extensions: [], # optional
|
||||
compression: ::NONE, # optional
|
||||
compression: Compression::NONE, # optional
|
||||
encryption: false, # optional
|
||||
antivirus: false, # optional
|
||||
transformations: false # optional
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
require 'appwrite'
|
||||
|
||||
include Appwrite
|
||||
include Appwrite::Enums
|
||||
|
||||
client = Client.new
|
||||
.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
require 'appwrite'
|
||||
|
||||
include Appwrite
|
||||
include Appwrite::Enums
|
||||
|
||||
client = Client.new
|
||||
.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
|
||||
|
||||
Reference in New Issue
Block a user