Module: Legion::Extensions::ElasticAppSearch::Runners::Engines

Includes:
Helpers::Client, Helpers::Lex
Defined in:
lib/legion/extensions/elastic_app_search/runners/engines.rb

Instance Method Summary collapse

Methods included from Helpers::Client

#client

Instance Method Details

#add_meta_source(engine:, sources: [], **opts) ⇒ Object



28
29
30
# File 'lib/legion/extensions/elastic_app_search/runners/engines.rb', line 28

def add_meta_source(engine:, sources: [], **opts)
  client(opts).add_meta_engine_sources(engine, sources)
end

#create(engine:, **opts) ⇒ Object



20
21
22
# File 'lib/legion/extensions/elastic_app_search/runners/engines.rb', line 20

def create(engine:, **opts)
  client(opts).create_engine(engine)
end

#create_meta(engine:, sources: [], **opts) ⇒ Object



24
25
26
# File 'lib/legion/extensions/elastic_app_search/runners/engines.rb', line 24

def create_meta(engine:, sources: [], **opts)
  client(opts).create_meta_engine(engine, sources)
end

#delete_meta_source(engine:, sources: [], **opts) ⇒ Object



32
33
34
# File 'lib/legion/extensions/elastic_app_search/runners/engines.rb', line 32

def delete_meta_source(engine:, sources: [], **opts)
  client(opts).delete_meta_engine_sources(engine, sources)
end

#destroy(engine:, **opts) ⇒ Object



16
17
18
# File 'lib/legion/extensions/elastic_app_search/runners/engines.rb', line 16

def destroy(engine:, **opts)
  client(opts).destroy_engine(engine)
end

#get(engine:, **opts) ⇒ Object



12
13
14
# File 'lib/legion/extensions/elastic_app_search/runners/engines.rb', line 12

def get(engine:, **opts)
  client(opts).get_engine(engine)
end

#list(**opts) ⇒ Object



8
9
10
# File 'lib/legion/extensions/elastic_app_search/runners/engines.rb', line 8

def list(**opts)
  client(opts).list_engines
end