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(, options)
  post("/database/entry/#{}", options)
end

#databases(account_id) ⇒ Object



8
9
10
# File 'lib/elasticweb/client/databases.rb', line 8

def databases()
  get("/database/list/#{}")
end

#delete_database(account_id, db_name) ⇒ Object



16
17
18
# File 'lib/elasticweb/client/databases.rb', line 16

def delete_database(, db_name)
  delete("/database/entry/#{}/#{db_name}")
end