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

Instance Method Details

#configObject



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, options = config.dup)
  request(:delete, path, body, options)
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, options = config.dup)
  request(:get, path, nil, options)
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, options = config.dup)
  request(:head, path, body, options)
end

#index_or_alias_exists?(name) ⇒ Boolean

Returns:

  • (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, options = config.dup)
  request(:post, path, body, options)
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, options = config.dup)
  request(:put, path, body, options)
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, options = {}); end