Class: Elasticsearch::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/elasticsearch/xpack.rb

Constant Summary collapse

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.

[
  :usage,
  :terms_enum
].freeze

Instance Method Summary collapse

Instance Method Details

#async_searchObject



121
122
123
# File 'lib/elasticsearch/xpack.rb', line 121

def async_search
  @async_search ||= xpack.async_search
end

#autoscalingObject



141
142
143
# File 'lib/elasticsearch/xpack.rb', line 141

def autoscaling
  @autoscaling ||= xpack.autoscaling
end

#catObject



125
126
127
# File 'lib/elasticsearch/xpack.rb', line 125

def cat
  @cat ||= xpack.cat
end

#cross_cluster_replicationObject



137
138
139
# File 'lib/elasticsearch/xpack.rb', line 137

def cross_cluster_replication
  @cross_cluster_replication ||= xpack.cross_cluster_replication
end

#data_frameObject



105
106
107
# File 'lib/elasticsearch/xpack.rb', line 105

def data_frame
  @data_frame ||= xpack.data_frame
end

#deprecationObject



101
102
103
# File 'lib/elasticsearch/xpack.rb', line 101

def deprecation
  @deprecation ||= xpack.deprecation
end

#enrichObject



145
146
147
# File 'lib/elasticsearch/xpack.rb', line 145

def enrich
  @enrich ||= xpack.enrich
end

#eqlObject



149
150
151
# File 'lib/elasticsearch/xpack.rb', line 149

def eql
  @eql ||= xpack.eql
end

#fleetObject



165
166
167
# File 'lib/elasticsearch/xpack.rb', line 165

def fleet
  @fleet ||= xpack.fleet
end

#graphObject



89
90
91
# File 'lib/elasticsearch/xpack.rb', line 89

def graph
  @graph ||= xpack.graph
end

#ilmObject



109
110
111
# File 'lib/elasticsearch/xpack.rb', line 109

def ilm
  @ilm ||= xpack.ilm
end

#indicesObject



129
130
131
# File 'lib/elasticsearch/xpack.rb', line 129

def indices
  @indices ||= xpack.indices
end

#licenseObject



113
114
115
# File 'lib/elasticsearch/xpack.rb', line 113

def license
  @license ||= xpack.license
end

#logstashObject



161
162
163
# File 'lib/elasticsearch/xpack.rb', line 161

def logstash
  @logstash ||= xpack.logstash
end

#migrationObject



93
94
95
# File 'lib/elasticsearch/xpack.rb', line 93

def migration
  @migration ||= xpack.migration
end

#mlObject



77
78
79
# File 'lib/elasticsearch/xpack.rb', line 77

def ml
  @ml ||= xpack.ml
end

#rollupObject



81
82
83
# File 'lib/elasticsearch/xpack.rb', line 81

def rollup
  @rollup ||= xpack.rollup
end

#searchable_snapshotsObject



133
134
135
# File 'lib/elasticsearch/xpack.rb', line 133

def searchable_snapshots
  @searchable_snapshots ||= xpack.searchable_snapshots
end

#securityObject



73
74
75
# File 'lib/elasticsearch/xpack.rb', line 73

def security
  @security ||= xpack.security
end

#snapshot_lifecycle_managementObject



153
154
155
# File 'lib/elasticsearch/xpack.rb', line 153

def snapshot_lifecycle_management
  @snapshot_lifecycle_management ||= xpack.snapshot_lifecycle_management
end

#sqlObject



97
98
99
# File 'lib/elasticsearch/xpack.rb', line 97

def sql
  @sql ||= xpack.sql
end

#text_structureObject



157
158
159
# File 'lib/elasticsearch/xpack.rb', line 157

def text_structure
  @text_structure ||= xpack.text_structure
end

#transformObject



117
118
119
# File 'lib/elasticsearch/xpack.rb', line 117

def transform
  @transform ||= xpack.transform
end

#watcherObject



85
86
87
# File 'lib/elasticsearch/xpack.rb', line 85

def watcher
  @watcher ||= xpack.watcher
end

#xpackObject



62
63
64
65
66
67
68
69
70
71
# 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 starting in 8.0.0.\n" \
      'See https://github.com/elastic/elasticsearch-ruby/issues/1274'
    )
  end
  @xpack ||= Elasticsearch::XPack::API::Client.new(self)
end