Skip to content

Commit 0b599b9

Browse files
committedFeb 8, 2019
Add the full API package
Generated from elastic/elasticsearch@5e798c1
1 parent f892fdd commit 0b599b9

File tree

125 files changed

+29035
-3
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

125 files changed

+29035
-3
lines changed
 

‎esapi/api._.go

+304-2
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,315 @@ package esapi
33
// API contains the Elasticsearch APIs
44
//
55
type API struct {
6-
Info Info
6+
Cat *Cat
7+
Cluster *Cluster
8+
Indices *Indices
9+
Ingest *Ingest
10+
Nodes *Nodes
11+
Remote *Remote
12+
Snapshot *Snapshot
13+
Tasks *Tasks
14+
15+
Bulk Bulk
16+
ClearScroll ClearScroll
17+
Count Count
18+
Create Create
19+
Delete Delete
20+
DeleteByQuery DeleteByQuery
21+
DeleteByQueryRethrottle DeleteByQueryRethrottle
22+
DeleteScript DeleteScript
23+
Exists Exists
24+
ExistsSource ExistsSource
25+
Explain Explain
26+
FieldCaps FieldCaps
27+
Get Get
28+
GetScript GetScript
29+
GetSource GetSource
30+
Index Index
31+
Info Info
32+
Mget Mget
33+
Msearch Msearch
34+
MsearchTemplate MsearchTemplate
35+
Mtermvectors Mtermvectors
36+
Ping Ping
37+
PutScript PutScript
38+
RankEval RankEval
39+
Reindex Reindex
40+
ReindexRethrottle ReindexRethrottle
41+
RenderSearchTemplate RenderSearchTemplate
42+
ScriptsPainlessExecute ScriptsPainlessExecute
43+
Scroll Scroll
44+
Search Search
45+
SearchShards SearchShards
46+
SearchTemplate SearchTemplate
47+
Termvectors Termvectors
48+
Update Update
49+
UpdateByQuery UpdateByQuery
50+
UpdateByQueryRethrottle UpdateByQueryRethrottle
51+
}
52+
53+
// Cat contains the Cat APIs
54+
type Cat struct {
55+
Aliases CatAliases
56+
Allocation CatAllocation
57+
Count CatCount
58+
Fielddata CatFielddata
59+
Health CatHealth
60+
Help CatHelp
61+
Indices CatIndices
62+
Master CatMaster
63+
Nodeattrs CatNodeattrs
64+
Nodes CatNodes
65+
PendingTasks CatPendingTasks
66+
Plugins CatPlugins
67+
Recovery CatRecovery
68+
Repositories CatRepositories
69+
Segments CatSegments
70+
Shards CatShards
71+
Snapshots CatSnapshots
72+
Tasks CatTasks
73+
Templates CatTemplates
74+
ThreadPool CatThreadPool
75+
}
76+
77+
// Cluster contains the Cluster APIs
78+
type Cluster struct {
79+
AllocationExplain ClusterAllocationExplain
80+
GetSettings ClusterGetSettings
81+
Health ClusterHealth
82+
PendingTasks ClusterPendingTasks
83+
PutSettings ClusterPutSettings
84+
RemoteInfo ClusterRemoteInfo
85+
Reroute ClusterReroute
86+
State ClusterState
87+
Stats ClusterStats
88+
}
89+
90+
// Indices contains the Indices APIs
91+
type Indices struct {
92+
Analyze IndicesAnalyze
93+
ClearCache IndicesClearCache
94+
Close IndicesClose
95+
Create IndicesCreate
96+
Delete IndicesDelete
97+
DeleteAlias IndicesDeleteAlias
98+
DeleteTemplate IndicesDeleteTemplate
99+
Exists IndicesExists
100+
ExistsAlias IndicesExistsAlias
101+
ExistsTemplate IndicesExistsTemplate
102+
ExistsType IndicesExistsType
103+
Flush IndicesFlush
104+
FlushSynced IndicesFlushSynced
105+
Forcemerge IndicesForcemerge
106+
Get IndicesGet
107+
GetAlias IndicesGetAlias
108+
GetFieldMapping IndicesGetFieldMapping
109+
GetMapping IndicesGetMapping
110+
GetSettings IndicesGetSettings
111+
GetTemplate IndicesGetTemplate
112+
GetUpgrade IndicesGetUpgrade
113+
Open IndicesOpen
114+
PutAlias IndicesPutAlias
115+
PutMapping IndicesPutMapping
116+
PutSettings IndicesPutSettings
117+
PutTemplate IndicesPutTemplate
118+
Recovery IndicesRecovery
119+
Refresh IndicesRefresh
120+
Rollover IndicesRollover
121+
Segments IndicesSegments
122+
ShardStores IndicesShardStores
123+
Shrink IndicesShrink
124+
Split IndicesSplit
125+
Stats IndicesStats
126+
UpdateAliases IndicesUpdateAliases
127+
Upgrade IndicesUpgrade
128+
ValidateQuery IndicesValidateQuery
129+
}
130+
131+
// Ingest contains the Ingest APIs
132+
type Ingest struct {
133+
DeletePipeline IngestDeletePipeline
134+
GetPipeline IngestGetPipeline
135+
ProcessorGrok IngestProcessorGrok
136+
PutPipeline IngestPutPipeline
137+
Simulate IngestSimulate
138+
}
139+
140+
// Nodes contains the Nodes APIs
141+
type Nodes struct {
142+
HotThreads NodesHotThreads
143+
Info NodesInfo
144+
ReloadSecureSettings NodesReloadSecureSettings
145+
Stats NodesStats
146+
Usage NodesUsage
147+
}
148+
149+
// Remote contains the Remote APIs
150+
type Remote struct {
151+
}
152+
153+
// Snapshot contains the Snapshot APIs
154+
type Snapshot struct {
155+
Create SnapshotCreate
156+
CreateRepository SnapshotCreateRepository
157+
Delete SnapshotDelete
158+
DeleteRepository SnapshotDeleteRepository
159+
Get SnapshotGet
160+
GetRepository SnapshotGetRepository
161+
Restore SnapshotRestore
162+
Status SnapshotStatus
163+
VerifyRepository SnapshotVerifyRepository
164+
}
165+
166+
// Tasks contains the Tasks APIs
167+
type Tasks struct {
168+
Cancel TasksCancel
169+
Get TasksGet
170+
List TasksList
7171
}
8172

9173
// New creates new API
10174
//
11175
func New(t Transport) *API {
12176
return &API{
13-
Info: newInfoFunc(t),
177+
Bulk: newBulkFunc(t),
178+
ClearScroll: newClearScrollFunc(t),
179+
Count: newCountFunc(t),
180+
Create: newCreateFunc(t),
181+
Delete: newDeleteFunc(t),
182+
DeleteByQuery: newDeleteByQueryFunc(t),
183+
DeleteByQueryRethrottle: newDeleteByQueryRethrottleFunc(t),
184+
DeleteScript: newDeleteScriptFunc(t),
185+
Exists: newExistsFunc(t),
186+
ExistsSource: newExistsSourceFunc(t),
187+
Explain: newExplainFunc(t),
188+
FieldCaps: newFieldCapsFunc(t),
189+
Get: newGetFunc(t),
190+
GetScript: newGetScriptFunc(t),
191+
GetSource: newGetSourceFunc(t),
192+
Index: newIndexFunc(t),
193+
Info: newInfoFunc(t),
194+
Mget: newMgetFunc(t),
195+
Msearch: newMsearchFunc(t),
196+
MsearchTemplate: newMsearchTemplateFunc(t),
197+
Mtermvectors: newMtermvectorsFunc(t),
198+
Ping: newPingFunc(t),
199+
PutScript: newPutScriptFunc(t),
200+
RankEval: newRankEvalFunc(t),
201+
Reindex: newReindexFunc(t),
202+
ReindexRethrottle: newReindexRethrottleFunc(t),
203+
RenderSearchTemplate: newRenderSearchTemplateFunc(t),
204+
ScriptsPainlessExecute: newScriptsPainlessExecuteFunc(t),
205+
Scroll: newScrollFunc(t),
206+
Search: newSearchFunc(t),
207+
SearchShards: newSearchShardsFunc(t),
208+
SearchTemplate: newSearchTemplateFunc(t),
209+
Termvectors: newTermvectorsFunc(t),
210+
Update: newUpdateFunc(t),
211+
UpdateByQuery: newUpdateByQueryFunc(t),
212+
UpdateByQueryRethrottle: newUpdateByQueryRethrottleFunc(t),
213+
Cat: &Cat{
214+
Aliases: newCatAliasesFunc(t),
215+
Allocation: newCatAllocationFunc(t),
216+
Count: newCatCountFunc(t),
217+
Fielddata: newCatFielddataFunc(t),
218+
Health: newCatHealthFunc(t),
219+
Help: newCatHelpFunc(t),
220+
Indices: newCatIndicesFunc(t),
221+
Master: newCatMasterFunc(t),
222+
Nodeattrs: newCatNodeattrsFunc(t),
223+
Nodes: newCatNodesFunc(t),
224+
PendingTasks: newCatPendingTasksFunc(t),
225+
Plugins: newCatPluginsFunc(t),
226+
Recovery: newCatRecoveryFunc(t),
227+
Repositories: newCatRepositoriesFunc(t),
228+
Segments: newCatSegmentsFunc(t),
229+
Shards: newCatShardsFunc(t),
230+
Snapshots: newCatSnapshotsFunc(t),
231+
Tasks: newCatTasksFunc(t),
232+
Templates: newCatTemplatesFunc(t),
233+
ThreadPool: newCatThreadPoolFunc(t),
234+
},
235+
Cluster: &Cluster{
236+
AllocationExplain: newClusterAllocationExplainFunc(t),
237+
GetSettings: newClusterGetSettingsFunc(t),
238+
Health: newClusterHealthFunc(t),
239+
PendingTasks: newClusterPendingTasksFunc(t),
240+
PutSettings: newClusterPutSettingsFunc(t),
241+
RemoteInfo: newClusterRemoteInfoFunc(t),
242+
Reroute: newClusterRerouteFunc(t),
243+
State: newClusterStateFunc(t),
244+
Stats: newClusterStatsFunc(t),
245+
},
246+
Indices: &Indices{
247+
Analyze: newIndicesAnalyzeFunc(t),
248+
ClearCache: newIndicesClearCacheFunc(t),
249+
Close: newIndicesCloseFunc(t),
250+
Create: newIndicesCreateFunc(t),
251+
Delete: newIndicesDeleteFunc(t),
252+
DeleteAlias: newIndicesDeleteAliasFunc(t),
253+
DeleteTemplate: newIndicesDeleteTemplateFunc(t),
254+
Exists: newIndicesExistsFunc(t),
255+
ExistsAlias: newIndicesExistsAliasFunc(t),
256+
ExistsTemplate: newIndicesExistsTemplateFunc(t),
257+
ExistsType: newIndicesExistsTypeFunc(t),
258+
Flush: newIndicesFlushFunc(t),
259+
FlushSynced: newIndicesFlushSyncedFunc(t),
260+
Forcemerge: newIndicesForcemergeFunc(t),
261+
Get: newIndicesGetFunc(t),
262+
GetAlias: newIndicesGetAliasFunc(t),
263+
GetFieldMapping: newIndicesGetFieldMappingFunc(t),
264+
GetMapping: newIndicesGetMappingFunc(t),
265+
GetSettings: newIndicesGetSettingsFunc(t),
266+
GetTemplate: newIndicesGetTemplateFunc(t),
267+
GetUpgrade: newIndicesGetUpgradeFunc(t),
268+
Open: newIndicesOpenFunc(t),
269+
PutAlias: newIndicesPutAliasFunc(t),
270+
PutMapping: newIndicesPutMappingFunc(t),
271+
PutSettings: newIndicesPutSettingsFunc(t),
272+
PutTemplate: newIndicesPutTemplateFunc(t),
273+
Recovery: newIndicesRecoveryFunc(t),
274+
Refresh: newIndicesRefreshFunc(t),
275+
Rollover: newIndicesRolloverFunc(t),
276+
Segments: newIndicesSegmentsFunc(t),
277+
ShardStores: newIndicesShardStoresFunc(t),
278+
Shrink: newIndicesShrinkFunc(t),
279+
Split: newIndicesSplitFunc(t),
280+
Stats: newIndicesStatsFunc(t),
281+
UpdateAliases: newIndicesUpdateAliasesFunc(t),
282+
Upgrade: newIndicesUpgradeFunc(t),
283+
ValidateQuery: newIndicesValidateQueryFunc(t),
284+
},
285+
Ingest: &Ingest{
286+
DeletePipeline: newIngestDeletePipelineFunc(t),
287+
GetPipeline: newIngestGetPipelineFunc(t),
288+
ProcessorGrok: newIngestProcessorGrokFunc(t),
289+
PutPipeline: newIngestPutPipelineFunc(t),
290+
Simulate: newIngestSimulateFunc(t),
291+
},
292+
Nodes: &Nodes{
293+
HotThreads: newNodesHotThreadsFunc(t),
294+
Info: newNodesInfoFunc(t),
295+
ReloadSecureSettings: newNodesReloadSecureSettingsFunc(t),
296+
Stats: newNodesStatsFunc(t),
297+
Usage: newNodesUsageFunc(t),
298+
},
299+
Remote: &Remote{},
300+
Snapshot: &Snapshot{
301+
Create: newSnapshotCreateFunc(t),
302+
CreateRepository: newSnapshotCreateRepositoryFunc(t),
303+
Delete: newSnapshotDeleteFunc(t),
304+
DeleteRepository: newSnapshotDeleteRepositoryFunc(t),
305+
Get: newSnapshotGetFunc(t),
306+
GetRepository: newSnapshotGetRepositoryFunc(t),
307+
Restore: newSnapshotRestoreFunc(t),
308+
Status: newSnapshotStatusFunc(t),
309+
VerifyRepository: newSnapshotVerifyRepositoryFunc(t),
310+
},
311+
Tasks: &Tasks{
312+
Cancel: newTasksCancelFunc(t),
313+
Get: newTasksGetFunc(t),
314+
List: newTasksListFunc(t),
315+
},
14316
}
15317
}

0 commit comments

Comments
 (0)
Please sign in to comment.