Module: AtlasEngine::Elasticsearch::ClientInterface
- Extended by:
- T::Helpers, T::Sig
- Included in:
- Client
- Defined in:
- app/models/atlas_engine/elasticsearch/client_interface.rb
Constant Summary collapse
- ConfigType =
T.type_alias { T::Hash[Symbol, T.untyped] }
- BodyType =
T.type_alias { T.any(String, T::Hash[T.untyped, T.untyped]) }
Instance Method Summary collapse
- #config ⇒ Object
- #delete(path, body = nil, options = config.dup) ⇒ Object
- #find_index_by(alias_name:) ⇒ Object
- #get(path, body = nil, options = config.dup) ⇒ Object
- #head(path, body = nil, options = config.dup) ⇒ Object
- #index_or_alias_exists?(name) ⇒ Boolean
- #post(path, body = nil, options = config.dup) ⇒ Object
- #put(path, body = nil, options = config.dup) ⇒ Object
- #request(method, path, body = nil, options = {}) ⇒ Object
Instance Method Details
#config ⇒ Object
15 |
# File 'app/models/atlas_engine/elasticsearch/client_interface.rb', line 15 def config; end |
#delete(path, body = nil, options = config.dup) ⇒ Object
68 69 70 |
# File 'app/models/atlas_engine/elasticsearch/client_interface.rb', line 68 def delete(path, body = nil, = config.dup) request(:delete, path, body, ) end |
#find_index_by(alias_name:) ⇒ Object
83 |
# File 'app/models/atlas_engine/elasticsearch/client_interface.rb', line 83 def find_index_by(alias_name:); end |
#get(path, body = nil, options = config.dup) ⇒ Object
24 25 26 |
# File 'app/models/atlas_engine/elasticsearch/client_interface.rb', line 24 def get(path, body = nil, = config.dup) request(:get, path, nil, ) end |
#head(path, body = nil, options = config.dup) ⇒ Object
35 36 37 |
# File 'app/models/atlas_engine/elasticsearch/client_interface.rb', line 35 def head(path, body = nil, = config.dup) request(:head, path, body, ) end |
#index_or_alias_exists?(name) ⇒ Boolean
86 |
# File 'app/models/atlas_engine/elasticsearch/client_interface.rb', line 86 def index_or_alias_exists?(name); end |
#post(path, body = nil, options = config.dup) ⇒ Object
46 47 48 |
# File 'app/models/atlas_engine/elasticsearch/client_interface.rb', line 46 def post(path, body = nil, = config.dup) request(:post, path, body, ) end |
#put(path, body = nil, options = config.dup) ⇒ Object
57 58 59 |
# File 'app/models/atlas_engine/elasticsearch/client_interface.rb', line 57 def put(path, body = nil, = config.dup) request(:put, path, body, ) end |
#request(method, path, body = nil, options = {}) ⇒ Object
80 |
# File 'app/models/atlas_engine/elasticsearch/client_interface.rb', line 80 def request(method, path, body = nil, = {}); end |