Module: ElasticWeb::Client::Databases::Users
- Included in:
- ElasticWeb::Client::Databases
- Defined in:
- lib/elasticweb/client/databases/users.rb
Instance Method Summary collapse
- #create_database_user(account_id, options) ⇒ Object
- #database_user_info(account_id, db_user_name) ⇒ Object
- #databases_users(account_id) ⇒ Object
- #delete_database_user(account_id, db_user_name) ⇒ Object
- #update_database_user(account_id, db_user_name, options) ⇒ Object
Instance Method Details
#create_database_user(account_id, options) ⇒ Object
13 14 15 |
# File 'lib/elasticweb/client/databases/users.rb', line 13 def create_database_user(account_id, ) post("/database_user/entry/#{account_id}", ) end |
#database_user_info(account_id, db_user_name) ⇒ Object
9 10 11 |
# File 'lib/elasticweb/client/databases/users.rb', line 9 def database_user_info(account_id, db_user_name) get("/database_user/entry/#{account_id}/#{db_user_name}") end |
#databases_users(account_id) ⇒ Object
5 6 7 |
# File 'lib/elasticweb/client/databases/users.rb', line 5 def databases_users(account_id) get("/database_user/list/#{account_id}") end |
#delete_database_user(account_id, db_user_name) ⇒ Object
21 22 23 |
# File 'lib/elasticweb/client/databases/users.rb', line 21 def delete_database_user(account_id, db_user_name) delete("/database_user/entry/#{account_id}/#{db_user_name}") end |
#update_database_user(account_id, db_user_name, options) ⇒ Object
17 18 19 |
# File 'lib/elasticweb/client/databases/users.rb', line 17 def update_database_user(account_id, db_user_name, ) patch("/database_user/entry/#{account_id}/#{db_user_name}", ) end |