Module: ElasticsearchServerless::API::CommonClient

Defined in:
lib/elasticsearch-serverless/api.rb

Overview

Namespace definitions

Shortcuts for namespaces allows using methods for namespaces: client.namespace.action

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#clientObject (readonly)

Returns the value of attribute client.



45
46
47
# File 'lib/elasticsearch-serverless/api.rb', line 45

def client
  @client
end

Instance Method Details

#initialize(client) ⇒ Object



47
48
49
# File 'lib/elasticsearch-serverless/api.rb', line 47

def initialize(client)
  @client = client
end

#perform_request(method, path, params = {}, body = nil, headers = nil, request_opts = {}) ⇒ Object



51
52
53
# File 'lib/elasticsearch-serverless/api.rb', line 51

def perform_request(method, path, params = {}, body = nil, headers = nil, request_opts = {})
  client.perform_request(method, path, params, body, headers, request_opts)
end