Module: Elastic

Defined in:
lib/elasticsearch-serverless.rb

Constant Summary collapse

ES_SERVERLESS_SERVICE_VERSION =
[:esv, client_meta_version].freeze

Class Method Summary collapse

Class Method Details

.client_meta_versionObject

If the version is X.X.X.pre/alpha/beta, use X.X.Xp for the meta-header:



106
107
108
109
110
# File 'lib/elasticsearch-serverless.rb', line 106

def self.client_meta_version
  return "#{ElasticsearchServerless::CLIENT_VERSION}p" if ElasticsearchServerless::VERSION.match(/[a-z]+/)

  ElasticsearchServerless::CLIENT_VERSION
end