Module: ElasticWeb::Client::Aliases
- Included in:
- ElasticWeb::Client
- Defined in:
- lib/elasticweb/client/aliases.rb
Instance Method Summary collapse
- #aliases(account_id) ⇒ Object
- #create_alias(account_id, options) ⇒ Object
- #delete_alias(alias_name) ⇒ Object
- #update_alias(alias_name, options) ⇒ Object
Instance Method Details
#aliases(account_id) ⇒ Object
4 5 6 |
# File 'lib/elasticweb/client/aliases.rb', line 4 def aliases(account_id) get("/alias/list/#{account_id}") end |
#create_alias(account_id, options) ⇒ Object
8 9 10 |
# File 'lib/elasticweb/client/aliases.rb', line 8 def create_alias(account_id, ) post("/alias/entry/#{account_id}", ) end |
#delete_alias(alias_name) ⇒ Object
16 17 18 |
# File 'lib/elasticweb/client/aliases.rb', line 16 def delete_alias(alias_name) delete("/alias/entry/#{alias_name}") end |
#update_alias(alias_name, options) ⇒ Object
12 13 14 |
# File 'lib/elasticweb/client/aliases.rb', line 12 def update_alias(alias_name, ) patch("/alias/entry/#{alias_name}", ) end |