class Elasticsearch::Client

Constants

TOP_LEVEL_METHODS

When a method is called on the client, if it's one of the xpack root namespace methods, send them to the xpack client. E.g.: client.xpack.usage => client.usage Excluding `info` since OSS and XPACK both have info endpoints.

Public Instance Methods

autoscaling() click to toggle source
# File lib/elasticsearch/xpack.rb, line 141
def autoscaling
  @autoscaling ||= xpack.autoscaling
end
cat() click to toggle source
# File lib/elasticsearch/xpack.rb, line 125
def cat
  @cat ||= xpack.cat
end
cross_cluster_replication() click to toggle source
# File lib/elasticsearch/xpack.rb, line 137
def cross_cluster_replication
  @cross_cluster_replication ||= xpack.cross_cluster_replication
end
data_frame() click to toggle source
# File lib/elasticsearch/xpack.rb, line 105
def data_frame
  @data_frame ||= xpack.data_frame
end
deprecation() click to toggle source
# File lib/elasticsearch/xpack.rb, line 101
def deprecation
  @deprecation ||= xpack.deprecation
end
enrich() click to toggle source
# File lib/elasticsearch/xpack.rb, line 145
def enrich
  @enrich ||= xpack.enrich
end
eql() click to toggle source
# File lib/elasticsearch/xpack.rb, line 149
def eql
  @eql ||= xpack.eql
end
fleet() click to toggle source
# File lib/elasticsearch/xpack.rb, line 165
def fleet
  @fleet ||= xpack.fleet
end
graph() click to toggle source
# File lib/elasticsearch/xpack.rb, line 89
def graph
  @graph ||= xpack.graph
end
ilm() click to toggle source
# File lib/elasticsearch/xpack.rb, line 109
def ilm
  @ilm ||= xpack.ilm
end
indices() click to toggle source
# File lib/elasticsearch/xpack.rb, line 129
def indices
  @indices ||= xpack.indices
end
license() click to toggle source
# File lib/elasticsearch/xpack.rb, line 113
def license
  @license ||= xpack.license
end
logstash() click to toggle source
# File lib/elasticsearch/xpack.rb, line 161
def logstash
  @logstash ||= xpack.logstash
end
migration() click to toggle source
# File lib/elasticsearch/xpack.rb, line 93
def migration
  @migration ||= xpack.migration
end
ml() click to toggle source
# File lib/elasticsearch/xpack.rb, line 77
def ml
  @ml ||= xpack.ml
end
rollup() click to toggle source
# File lib/elasticsearch/xpack.rb, line 81
def rollup
  @rollup ||= xpack.rollup
end
searchable_snapshots() click to toggle source
# File lib/elasticsearch/xpack.rb, line 133
def searchable_snapshots
  @searchable_snapshots ||= xpack.searchable_snapshots
end
security() click to toggle source
# File lib/elasticsearch/xpack.rb, line 73
def security
  @security ||= xpack.security
end
snapshot_lifecycle_management() click to toggle source
# File lib/elasticsearch/xpack.rb, line 153
def snapshot_lifecycle_management
  @snapshot_lifecycle_management ||= xpack.snapshot_lifecycle_management
end
sql() click to toggle source
# File lib/elasticsearch/xpack.rb, line 97
def sql
  @sql ||= xpack.sql
end
text_structure() click to toggle source
# File lib/elasticsearch/xpack.rb, line 157
def text_structure
  @text_structure ||= xpack.text_structure
end
transform() click to toggle source
# File lib/elasticsearch/xpack.rb, line 117
def transform
  @transform ||= xpack.transform
end
watcher() click to toggle source
# File lib/elasticsearch/xpack.rb, line 85
def watcher
  @watcher ||= xpack.watcher
end
xpack() click to toggle source
# File lib/elasticsearch/xpack.rb, line 62
def xpack
  unless @xpack
    warn(
      'Deprecation notice: The elasticsearch-xpack gem will be deprecated and all the ' \
      "functionality will be available from elasticsearch-api.\n" \
      'See https://github.com/elastic/elasticsearch-ruby/issues/1274'
    )
  end
  @xpack ||= Elasticsearch::XPack::API::Client.new(self)
end