Module: ElasticWeb::Client::Databases
- Includes:
- Users
- Included in:
- ElasticWeb::Client
- Defined in:
- lib/elasticweb/client/databases.rb,
lib/elasticweb/client/databases/users.rb
Defined Under Namespace
Modules: Users
Instance Method Summary
collapse
Methods included from Users
#create_database_user, #database_user_info, #databases_users, #delete_database_user, #update_database_user
Instance Method Details
#create_database(account_id, options) ⇒ Object
12
13
14
|
# File 'lib/elasticweb/client/databases.rb', line 12
def create_database(account_id, options)
post("/database/entry/#{account_id}", options)
end
|
#databases(account_id) ⇒ Object
8
9
10
|
# File 'lib/elasticweb/client/databases.rb', line 8
def databases(account_id)
get("/database/list/#{account_id}")
end
|
#delete_database(account_id, db_name) ⇒ Object
16
17
18
|
# File 'lib/elasticweb/client/databases.rb', line 16
def delete_database(account_id, db_name)
delete("/database/entry/#{account_id}/#{db_name}")
end
|