Module: ElasticWeb::Client::Aliases

Included in:
ElasticWeb::Client
Defined in:
lib/elasticweb/client/aliases.rb

Instance Method Summary collapse

Instance Method Details

#aliases(account_id) ⇒ Object



4
5
6
# File 'lib/elasticweb/client/aliases.rb', line 4

def aliases()
  get("/alias/list/#{}")
end

#create_alias(account_id, options) ⇒ Object



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

def create_alias(, options)
  post("/alias/entry/#{}", options)
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, options)
  patch("/alias/entry/#{alias_name}", options)
end