-
Notifications
You must be signed in to change notification settings - Fork 46
/
Copy pathopensearch.rb
139 lines (106 loc) · 4.15 KB
/
opensearch.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
# SPDX-License-Identifier: Apache-2.0
#
# The OpenSearch Contributors require contributions made to
# this file be licensed under the Apache-2.0 license or a
# compatible open source license.
# This file is generated from the OpenSearch REST API spec.
# Do not modify it by hand. Instead, modify the generator or the spec.
require 'opensearch/transport'
require 'opensearch/api'
Dir[File.expand_path('opensearch/api/**/*.rb', __dir__)].each { |f| require f }
module OpenSearch
class Client
include OpenSearch::API::Root::Actions
attr_accessor :transport
def initialize(arguments = {}, &block)
@transport = OpenSearch::Transport::Client.new(arguments, &block)
end
def asynchronous_search
@asynchronous_search ||= OpenSearch::API::Namespace.new(transport, OpenSearch::API::AsynchronousSearch::Actions)
end
def cat
@cat ||= OpenSearch::API::Namespace.new(transport, OpenSearch::API::Cat::Actions)
end
def cluster
@cluster ||= OpenSearch::API::Namespace.new(transport, OpenSearch::API::Cluster::Actions)
end
def dangling_indices
@dangling_indices ||= OpenSearch::API::Namespace.new(transport, OpenSearch::API::DanglingIndices::Actions)
end
def flow_framework
@flow_framework ||= OpenSearch::API::Namespace.new(transport, OpenSearch::API::FlowFramework::Actions)
end
def indices
@indices ||= OpenSearch::API::Namespace.new(transport, OpenSearch::API::Indices::Actions)
end
def ingest
@ingest ||= OpenSearch::API::Namespace.new(transport, OpenSearch::API::Ingest::Actions)
end
def insights
@insights ||= OpenSearch::API::Namespace.new(transport, OpenSearch::API::Insights::Actions)
end
def ism
@ism ||= OpenSearch::API::Namespace.new(transport, OpenSearch::API::Ism::Actions)
end
def knn
@knn ||= OpenSearch::API::Namespace.new(transport, OpenSearch::API::Knn::Actions)
end
def list
@list ||= OpenSearch::API::Namespace.new(transport, OpenSearch::API::List::Actions)
end
def ml
@ml ||= OpenSearch::API::Namespace.new(transport, OpenSearch::API::Ml::Actions)
end
def nodes
@nodes ||= OpenSearch::API::Namespace.new(transport, OpenSearch::API::Nodes::Actions)
end
def notifications
@notifications ||= OpenSearch::API::Namespace.new(transport, OpenSearch::API::Notifications::Actions)
end
def observability
@observability ||= OpenSearch::API::Namespace.new(transport, OpenSearch::API::Observability::Actions)
end
def ppl
@ppl ||= OpenSearch::API::Namespace.new(transport, OpenSearch::API::Ppl::Actions)
end
def query
@query ||= OpenSearch::API::Namespace.new(transport, OpenSearch::API::Query::Actions)
end
def remote_store
@remote_store ||= OpenSearch::API::Namespace.new(transport, OpenSearch::API::RemoteStore::Actions)
end
def replication
@replication ||= OpenSearch::API::Namespace.new(transport, OpenSearch::API::Replication::Actions)
end
def rollups
@rollups ||= OpenSearch::API::Namespace.new(transport, OpenSearch::API::Rollups::Actions)
end
def search_pipeline
@search_pipeline ||= OpenSearch::API::Namespace.new(transport, OpenSearch::API::SearchPipeline::Actions)
end
def security
@security ||= OpenSearch::API::Namespace.new(transport, OpenSearch::API::Security::Actions)
end
def sm
@sm ||= OpenSearch::API::Namespace.new(transport, OpenSearch::API::Sm::Actions)
end
def snapshot
@snapshot ||= OpenSearch::API::Namespace.new(transport, OpenSearch::API::Snapshot::Actions)
end
def sql
@sql ||= OpenSearch::API::Namespace.new(transport, OpenSearch::API::Sql::Actions)
end
def tasks
@tasks ||= OpenSearch::API::Namespace.new(transport, OpenSearch::API::Tasks::Actions)
end
def transforms
@transforms ||= OpenSearch::API::Namespace.new(transport, OpenSearch::API::Transforms::Actions)
end
def wlm
@wlm ||= OpenSearch::API::Namespace.new(transport, OpenSearch::API::Wlm::Actions)
end
def http
@http ||= OpenSearch::API::Namespace.new(transport, OpenSearch::API::Http::Actions)
end
end
end