-
Notifications
You must be signed in to change notification settings - Fork 627
/
Copy pathapi._.go
895 lines (871 loc) · 36.2 KB
/
api._.go
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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
// Code generated from specification version 6.8.8 (2f4c2240ecf): DO NOT EDIT
package esapi
// API contains the Elasticsearch APIs
//
type API struct {
Cat *Cat
Cluster *Cluster
Indices *Indices
Ingest *Ingest
Nodes *Nodes
Remote *Remote
Snapshot *Snapshot
Tasks *Tasks
CCR *CCR
ILM *ILM
License *License
Migration *Migration
ML *ML
Monitoring *Monitoring
Rollup *Rollup
Security *Security
SQL *SQL
SSL *SSL
Watcher *Watcher
XPack *XPack
Bulk Bulk
ClearScroll ClearScroll
Count Count
Create Create
DeleteByQuery DeleteByQuery
DeleteByQueryRethrottle DeleteByQueryRethrottle
Delete Delete
DeleteScript DeleteScript
Exists Exists
ExistsSource ExistsSource
Explain Explain
FieldCaps FieldCaps
Get Get
GetScript GetScript
GetSource GetSource
Index Index
Info Info
Mget Mget
Msearch Msearch
MsearchTemplate MsearchTemplate
Mtermvectors Mtermvectors
Ping Ping
PutScript PutScript
RankEval RankEval
Reindex Reindex
ReindexRethrottle ReindexRethrottle
RenderSearchTemplate RenderSearchTemplate
ScriptsPainlessExecute ScriptsPainlessExecute
Scroll Scroll
Search Search
SearchShards SearchShards
SearchTemplate SearchTemplate
Termvectors Termvectors
UpdateByQuery UpdateByQuery
UpdateByQueryRethrottle UpdateByQueryRethrottle
Update Update
}
// Cat contains the Cat APIs
type Cat struct {
Aliases CatAliases
Allocation CatAllocation
Count CatCount
Fielddata CatFielddata
Health CatHealth
Help CatHelp
Indices CatIndices
Master CatMaster
Nodeattrs CatNodeattrs
Nodes CatNodes
PendingTasks CatPendingTasks
Plugins CatPlugins
Recovery CatRecovery
Repositories CatRepositories
Segments CatSegments
Shards CatShards
Snapshots CatSnapshots
Tasks CatTasks
Templates CatTemplates
ThreadPool CatThreadPool
}
// Cluster contains the Cluster APIs
type Cluster struct {
AllocationExplain ClusterAllocationExplain
GetSettings ClusterGetSettings
Health ClusterHealth
PendingTasks ClusterPendingTasks
PutSettings ClusterPutSettings
RemoteInfo ClusterRemoteInfo
Reroute ClusterReroute
State ClusterState
Stats ClusterStats
}
// Indices contains the Indices APIs
type Indices struct {
Analyze IndicesAnalyze
ClearCache IndicesClearCache
Close IndicesClose
Create IndicesCreate
DeleteAlias IndicesDeleteAlias
Delete IndicesDelete
DeleteTemplate IndicesDeleteTemplate
ExistsAlias IndicesExistsAlias
ExistsDocumentType IndicesExistsDocumentType
Exists IndicesExists
ExistsTemplate IndicesExistsTemplate
Flush IndicesFlush
FlushSynced IndicesFlushSynced
Forcemerge IndicesForcemerge
Freeze IndicesFreeze
GetAlias IndicesGetAlias
GetFieldMapping IndicesGetFieldMapping
GetMapping IndicesGetMapping
Get IndicesGet
GetSettings IndicesGetSettings
GetTemplate IndicesGetTemplate
GetUpgrade IndicesGetUpgrade
Open IndicesOpen
PutAlias IndicesPutAlias
PutMapping IndicesPutMapping
PutSettings IndicesPutSettings
PutTemplate IndicesPutTemplate
Recovery IndicesRecovery
Refresh IndicesRefresh
Rollover IndicesRollover
Segments IndicesSegments
ShardStores IndicesShardStores
Shrink IndicesShrink
Split IndicesSplit
Stats IndicesStats
Unfreeze IndicesUnfreeze
UpdateAliases IndicesUpdateAliases
Upgrade IndicesUpgrade
ValidateQuery IndicesValidateQuery
}
// Ingest contains the Ingest APIs
type Ingest struct {
DeletePipeline IngestDeletePipeline
GetPipeline IngestGetPipeline
ProcessorGrok IngestProcessorGrok
PutPipeline IngestPutPipeline
Simulate IngestSimulate
}
// Nodes contains the Nodes APIs
type Nodes struct {
HotThreads NodesHotThreads
Info NodesInfo
ReloadSecureSettings NodesReloadSecureSettings
Stats NodesStats
Usage NodesUsage
}
// Remote contains the Remote APIs
type Remote struct {
}
// Snapshot contains the Snapshot APIs
type Snapshot struct {
CreateRepository SnapshotCreateRepository
Create SnapshotCreate
DeleteRepository SnapshotDeleteRepository
Delete SnapshotDelete
GetRepository SnapshotGetRepository
Get SnapshotGet
Restore SnapshotRestore
Status SnapshotStatus
VerifyRepository SnapshotVerifyRepository
}
// Tasks contains the Tasks APIs
type Tasks struct {
Cancel TasksCancel
Get TasksGet
List TasksList
}
// CCR contains the CCR APIs
type CCR struct {
DeleteAutoFollowPattern CCRDeleteAutoFollowPattern
FollowInfo CCRFollowInfo
Follow CCRFollow
FollowStats CCRFollowStats
ForgetFollower CCRForgetFollower
GetAutoFollowPattern CCRGetAutoFollowPattern
PauseFollow CCRPauseFollow
PutAutoFollowPattern CCRPutAutoFollowPattern
ResumeFollow CCRResumeFollow
Stats CCRStats
Unfollow CCRUnfollow
}
// ILM contains the ILM APIs
type ILM struct {
DeleteLifecycle ILMDeleteLifecycle
ExplainLifecycle ILMExplainLifecycle
GetLifecycle ILMGetLifecycle
GetStatus ILMGetStatus
MoveToStep ILMMoveToStep
PutLifecycle ILMPutLifecycle
RemovePolicy ILMRemovePolicy
Retry ILMRetry
Start ILMStart
Stop ILMStop
}
// License contains the License APIs
type License struct {
Delete XPackLicenseDelete
GetBasicStatus XPackLicenseGetBasicStatus
Get XPackLicenseGet
GetTrialStatus XPackLicenseGetTrialStatus
Post XPackLicensePost
PostStartBasic XPackLicensePostStartBasic
PostStartTrial XPackLicensePostStartTrial
}
// Migration contains the Migration APIs
type Migration struct {
Deprecations XPackMigrationDeprecations
GetAssistance XPackMigrationGetAssistance
Upgrade XPackMigrationUpgrade
}
// ML contains the ML APIs
type ML struct {
CloseJob XPackMLCloseJob
DeleteCalendarEvent XPackMLDeleteCalendarEvent
DeleteCalendarJob XPackMLDeleteCalendarJob
DeleteCalendar XPackMLDeleteCalendar
DeleteDatafeed XPackMLDeleteDatafeed
DeleteExpiredData XPackMLDeleteExpiredData
DeleteFilter XPackMLDeleteFilter
DeleteForecast XPackMLDeleteForecast
DeleteJob XPackMLDeleteJob
DeleteModelSnapshot XPackMLDeleteModelSnapshot
FindFileStructure XPackMLFindFileStructure
FlushJob XPackMLFlushJob
Forecast XPackMLForecast
GetBuckets XPackMLGetBuckets
GetCalendarEvents XPackMLGetCalendarEvents
GetCalendars XPackMLGetCalendars
GetCategories XPackMLGetCategories
GetDatafeedStats XPackMLGetDatafeedStats
GetDatafeeds XPackMLGetDatafeeds
GetFilters XPackMLGetFilters
GetInfluencers XPackMLGetInfluencers
GetJobStats XPackMLGetJobStats
GetJobs XPackMLGetJobs
GetModelSnapshots XPackMLGetModelSnapshots
GetOverallBuckets XPackMLGetOverallBuckets
GetRecords XPackMLGetRecords
Info XPackMLInfo
OpenJob XPackMLOpenJob
PostCalendarEvents XPackMLPostCalendarEvents
PostData XPackMLPostData
PreviewDatafeed XPackMLPreviewDatafeed
PutCalendarJob XPackMLPutCalendarJob
PutCalendar XPackMLPutCalendar
PutDatafeed XPackMLPutDatafeed
PutFilter XPackMLPutFilter
PutJob XPackMLPutJob
RevertModelSnapshot XPackMLRevertModelSnapshot
SetUpgradeMode XPackMLSetUpgradeMode
StartDatafeed XPackMLStartDatafeed
StopDatafeed XPackMLStopDatafeed
UpdateDatafeed XPackMLUpdateDatafeed
UpdateFilter XPackMLUpdateFilter
UpdateJob XPackMLUpdateJob
UpdateModelSnapshot XPackMLUpdateModelSnapshot
ValidateDetector XPackMLValidateDetector
Validate XPackMLValidate
}
// Monitoring contains the Monitoring APIs
type Monitoring struct {
Bulk XPackMonitoringBulk
}
// Rollup contains the Rollup APIs
type Rollup struct {
DeleteJob XPackRollupDeleteJob
GetJobs XPackRollupGetJobs
GetCaps XPackRollupGetRollupCaps
GetIndexCaps XPackRollupGetRollupIndexCaps
PutJob XPackRollupPutJob
Search XPackRollupRollupSearch
StartJob XPackRollupStartJob
StopJob XPackRollupStopJob
}
// Security contains the Security APIs
type Security struct {
CreateAPIKey SecurityCreateAPIKey
GetAPIKey SecurityGetAPIKey
InvalidateAPIKey SecurityInvalidateAPIKey
Authenticate XPackSecurityAuthenticate
ChangePassword XPackSecurityChangePassword
ClearCachedRealms XPackSecurityClearCachedRealms
ClearCachedRoles XPackSecurityClearCachedRoles
DeletePrivileges XPackSecurityDeletePrivileges
DeleteRoleMapping XPackSecurityDeleteRoleMapping
DeleteRole XPackSecurityDeleteRole
DeleteUser XPackSecurityDeleteUser
DisableUser XPackSecurityDisableUser
EnableUser XPackSecurityEnableUser
GetPrivileges XPackSecurityGetPrivileges
GetRoleMapping XPackSecurityGetRoleMapping
GetRole XPackSecurityGetRole
GetToken XPackSecurityGetToken
GetUserPrivileges XPackSecurityGetUserPrivileges
GetUser XPackSecurityGetUser
HasPrivileges XPackSecurityHasPrivileges
InvalidateToken XPackSecurityInvalidateToken
PutPrivileges XPackSecurityPutPrivileges
PutRoleMapping XPackSecurityPutRoleMapping
PutRole XPackSecurityPutRole
PutUser XPackSecurityPutUser
}
// SQL contains the SQL APIs
type SQL struct {
ClearCursor XPackSQLClearCursor
Query XPackSQLQuery
Translate XPackSQLTranslate
}
// SSL contains the SSL APIs
type SSL struct {
Certificates XPackSSLCertificates
}
// Watcher contains the Watcher APIs
type Watcher struct {
AckWatch XPackWatcherAckWatch
ActivateWatch XPackWatcherActivateWatch
DeactivateWatch XPackWatcherDeactivateWatch
DeleteWatch XPackWatcherDeleteWatch
ExecuteWatch XPackWatcherExecuteWatch
GetWatch XPackWatcherGetWatch
PutWatch XPackWatcherPutWatch
Restart XPackWatcherRestart
Start XPackWatcherStart
Stats XPackWatcherStats
Stop XPackWatcherStop
}
// XPack contains the XPack APIs
type XPack struct {
GraphExplore XPackGraphExplore
Info XPackInfo
LicenseDelete XPackLicenseDelete
LicenseGetBasicStatus XPackLicenseGetBasicStatus
LicenseGet XPackLicenseGet
LicenseGetTrialStatus XPackLicenseGetTrialStatus
LicensePost XPackLicensePost
LicensePostStartBasic XPackLicensePostStartBasic
LicensePostStartTrial XPackLicensePostStartTrial
MLCloseJob XPackMLCloseJob
MLDeleteCalendarEvent XPackMLDeleteCalendarEvent
MLDeleteCalendarJob XPackMLDeleteCalendarJob
MLDeleteCalendar XPackMLDeleteCalendar
MLDeleteDatafeed XPackMLDeleteDatafeed
MLDeleteExpiredData XPackMLDeleteExpiredData
MLDeleteFilter XPackMLDeleteFilter
MLDeleteForecast XPackMLDeleteForecast
MLDeleteJob XPackMLDeleteJob
MLDeleteModelSnapshot XPackMLDeleteModelSnapshot
MLFindFileStructure XPackMLFindFileStructure
MLFlushJob XPackMLFlushJob
MLForecast XPackMLForecast
MLGetBuckets XPackMLGetBuckets
MLGetCalendarEvents XPackMLGetCalendarEvents
MLGetCalendars XPackMLGetCalendars
MLGetCategories XPackMLGetCategories
MLGetDatafeedStats XPackMLGetDatafeedStats
MLGetDatafeeds XPackMLGetDatafeeds
MLGetFilters XPackMLGetFilters
MLGetInfluencers XPackMLGetInfluencers
MLGetJobStats XPackMLGetJobStats
MLGetJobs XPackMLGetJobs
MLGetModelSnapshots XPackMLGetModelSnapshots
MLGetOverallBuckets XPackMLGetOverallBuckets
MLGetRecords XPackMLGetRecords
MLInfo XPackMLInfo
MLOpenJob XPackMLOpenJob
MLPostCalendarEvents XPackMLPostCalendarEvents
MLPostData XPackMLPostData
MLPreviewDatafeed XPackMLPreviewDatafeed
MLPutCalendarJob XPackMLPutCalendarJob
MLPutCalendar XPackMLPutCalendar
MLPutDatafeed XPackMLPutDatafeed
MLPutFilter XPackMLPutFilter
MLPutJob XPackMLPutJob
MLRevertModelSnapshot XPackMLRevertModelSnapshot
MLSetUpgradeMode XPackMLSetUpgradeMode
MLStartDatafeed XPackMLStartDatafeed
MLStopDatafeed XPackMLStopDatafeed
MLUpdateDatafeed XPackMLUpdateDatafeed
MLUpdateFilter XPackMLUpdateFilter
MLUpdateJob XPackMLUpdateJob
MLUpdateModelSnapshot XPackMLUpdateModelSnapshot
MLValidateDetector XPackMLValidateDetector
MLValidate XPackMLValidate
MigrationDeprecations XPackMigrationDeprecations
MigrationGetAssistance XPackMigrationGetAssistance
MigrationUpgrade XPackMigrationUpgrade
MonitoringBulk XPackMonitoringBulk
RollupDeleteJob XPackRollupDeleteJob
RollupGetJobs XPackRollupGetJobs
RollupGetRollupCaps XPackRollupGetRollupCaps
RollupGetRollupIndexCaps XPackRollupGetRollupIndexCaps
RollupPutJob XPackRollupPutJob
RollupRollupSearch XPackRollupRollupSearch
RollupStartJob XPackRollupStartJob
RollupStopJob XPackRollupStopJob
SQLClearCursor XPackSQLClearCursor
SQLQuery XPackSQLQuery
SQLTranslate XPackSQLTranslate
SSLCertificates XPackSSLCertificates
SecurityAuthenticate XPackSecurityAuthenticate
SecurityChangePassword XPackSecurityChangePassword
SecurityClearCachedRealms XPackSecurityClearCachedRealms
SecurityClearCachedRoles XPackSecurityClearCachedRoles
SecurityDeletePrivileges XPackSecurityDeletePrivileges
SecurityDeleteRoleMapping XPackSecurityDeleteRoleMapping
SecurityDeleteRole XPackSecurityDeleteRole
SecurityDeleteUser XPackSecurityDeleteUser
SecurityDisableUser XPackSecurityDisableUser
SecurityEnableUser XPackSecurityEnableUser
SecurityGetPrivileges XPackSecurityGetPrivileges
SecurityGetRoleMapping XPackSecurityGetRoleMapping
SecurityGetRole XPackSecurityGetRole
SecurityGetToken XPackSecurityGetToken
SecurityGetUserPrivileges XPackSecurityGetUserPrivileges
SecurityGetUser XPackSecurityGetUser
SecurityHasPrivileges XPackSecurityHasPrivileges
SecurityInvalidateToken XPackSecurityInvalidateToken
SecurityPutPrivileges XPackSecurityPutPrivileges
SecurityPutRoleMapping XPackSecurityPutRoleMapping
SecurityPutRole XPackSecurityPutRole
SecurityPutUser XPackSecurityPutUser
Usage XPackUsage
WatcherAckWatch XPackWatcherAckWatch
WatcherActivateWatch XPackWatcherActivateWatch
WatcherDeactivateWatch XPackWatcherDeactivateWatch
WatcherDeleteWatch XPackWatcherDeleteWatch
WatcherExecuteWatch XPackWatcherExecuteWatch
WatcherGetWatch XPackWatcherGetWatch
WatcherPutWatch XPackWatcherPutWatch
WatcherRestart XPackWatcherRestart
WatcherStart XPackWatcherStart
WatcherStats XPackWatcherStats
WatcherStop XPackWatcherStop
CCR *CCR
ILM *ILM
License *License
Migration *Migration
ML *ML
Monitoring *Monitoring
Rollup *Rollup
Security *Security
SQL *SQL
SSL *SSL
Watcher *Watcher
XPack *XPack
}
// New creates new API
//
func New(t Transport) *API {
return &API{
Bulk: newBulkFunc(t),
ClearScroll: newClearScrollFunc(t),
Count: newCountFunc(t),
Create: newCreateFunc(t),
DeleteByQuery: newDeleteByQueryFunc(t),
DeleteByQueryRethrottle: newDeleteByQueryRethrottleFunc(t),
Delete: newDeleteFunc(t),
DeleteScript: newDeleteScriptFunc(t),
Exists: newExistsFunc(t),
ExistsSource: newExistsSourceFunc(t),
Explain: newExplainFunc(t),
FieldCaps: newFieldCapsFunc(t),
Get: newGetFunc(t),
GetScript: newGetScriptFunc(t),
GetSource: newGetSourceFunc(t),
Index: newIndexFunc(t),
Info: newInfoFunc(t),
Mget: newMgetFunc(t),
Msearch: newMsearchFunc(t),
MsearchTemplate: newMsearchTemplateFunc(t),
Mtermvectors: newMtermvectorsFunc(t),
Ping: newPingFunc(t),
PutScript: newPutScriptFunc(t),
RankEval: newRankEvalFunc(t),
Reindex: newReindexFunc(t),
ReindexRethrottle: newReindexRethrottleFunc(t),
RenderSearchTemplate: newRenderSearchTemplateFunc(t),
ScriptsPainlessExecute: newScriptsPainlessExecuteFunc(t),
Scroll: newScrollFunc(t),
Search: newSearchFunc(t),
SearchShards: newSearchShardsFunc(t),
SearchTemplate: newSearchTemplateFunc(t),
Termvectors: newTermvectorsFunc(t),
UpdateByQuery: newUpdateByQueryFunc(t),
UpdateByQueryRethrottle: newUpdateByQueryRethrottleFunc(t),
Update: newUpdateFunc(t),
Cat: &Cat{
Aliases: newCatAliasesFunc(t),
Allocation: newCatAllocationFunc(t),
Count: newCatCountFunc(t),
Fielddata: newCatFielddataFunc(t),
Health: newCatHealthFunc(t),
Help: newCatHelpFunc(t),
Indices: newCatIndicesFunc(t),
Master: newCatMasterFunc(t),
Nodeattrs: newCatNodeattrsFunc(t),
Nodes: newCatNodesFunc(t),
PendingTasks: newCatPendingTasksFunc(t),
Plugins: newCatPluginsFunc(t),
Recovery: newCatRecoveryFunc(t),
Repositories: newCatRepositoriesFunc(t),
Segments: newCatSegmentsFunc(t),
Shards: newCatShardsFunc(t),
Snapshots: newCatSnapshotsFunc(t),
Tasks: newCatTasksFunc(t),
Templates: newCatTemplatesFunc(t),
ThreadPool: newCatThreadPoolFunc(t),
},
Cluster: &Cluster{
AllocationExplain: newClusterAllocationExplainFunc(t),
GetSettings: newClusterGetSettingsFunc(t),
Health: newClusterHealthFunc(t),
PendingTasks: newClusterPendingTasksFunc(t),
PutSettings: newClusterPutSettingsFunc(t),
RemoteInfo: newClusterRemoteInfoFunc(t),
Reroute: newClusterRerouteFunc(t),
State: newClusterStateFunc(t),
Stats: newClusterStatsFunc(t),
},
Indices: &Indices{
Analyze: newIndicesAnalyzeFunc(t),
ClearCache: newIndicesClearCacheFunc(t),
Close: newIndicesCloseFunc(t),
Create: newIndicesCreateFunc(t),
DeleteAlias: newIndicesDeleteAliasFunc(t),
Delete: newIndicesDeleteFunc(t),
DeleteTemplate: newIndicesDeleteTemplateFunc(t),
ExistsAlias: newIndicesExistsAliasFunc(t),
ExistsDocumentType: newIndicesExistsDocumentTypeFunc(t),
Exists: newIndicesExistsFunc(t),
ExistsTemplate: newIndicesExistsTemplateFunc(t),
Flush: newIndicesFlushFunc(t),
FlushSynced: newIndicesFlushSyncedFunc(t),
Forcemerge: newIndicesForcemergeFunc(t),
Freeze: newIndicesFreezeFunc(t),
GetAlias: newIndicesGetAliasFunc(t),
GetFieldMapping: newIndicesGetFieldMappingFunc(t),
GetMapping: newIndicesGetMappingFunc(t),
Get: newIndicesGetFunc(t),
GetSettings: newIndicesGetSettingsFunc(t),
GetTemplate: newIndicesGetTemplateFunc(t),
GetUpgrade: newIndicesGetUpgradeFunc(t),
Open: newIndicesOpenFunc(t),
PutAlias: newIndicesPutAliasFunc(t),
PutMapping: newIndicesPutMappingFunc(t),
PutSettings: newIndicesPutSettingsFunc(t),
PutTemplate: newIndicesPutTemplateFunc(t),
Recovery: newIndicesRecoveryFunc(t),
Refresh: newIndicesRefreshFunc(t),
Rollover: newIndicesRolloverFunc(t),
Segments: newIndicesSegmentsFunc(t),
ShardStores: newIndicesShardStoresFunc(t),
Shrink: newIndicesShrinkFunc(t),
Split: newIndicesSplitFunc(t),
Stats: newIndicesStatsFunc(t),
Unfreeze: newIndicesUnfreezeFunc(t),
UpdateAliases: newIndicesUpdateAliasesFunc(t),
Upgrade: newIndicesUpgradeFunc(t),
ValidateQuery: newIndicesValidateQueryFunc(t),
},
Ingest: &Ingest{
DeletePipeline: newIngestDeletePipelineFunc(t),
GetPipeline: newIngestGetPipelineFunc(t),
ProcessorGrok: newIngestProcessorGrokFunc(t),
PutPipeline: newIngestPutPipelineFunc(t),
Simulate: newIngestSimulateFunc(t),
},
Nodes: &Nodes{
HotThreads: newNodesHotThreadsFunc(t),
Info: newNodesInfoFunc(t),
ReloadSecureSettings: newNodesReloadSecureSettingsFunc(t),
Stats: newNodesStatsFunc(t),
Usage: newNodesUsageFunc(t),
},
Remote: &Remote{},
Snapshot: &Snapshot{
CreateRepository: newSnapshotCreateRepositoryFunc(t),
Create: newSnapshotCreateFunc(t),
DeleteRepository: newSnapshotDeleteRepositoryFunc(t),
Delete: newSnapshotDeleteFunc(t),
GetRepository: newSnapshotGetRepositoryFunc(t),
Get: newSnapshotGetFunc(t),
Restore: newSnapshotRestoreFunc(t),
Status: newSnapshotStatusFunc(t),
VerifyRepository: newSnapshotVerifyRepositoryFunc(t),
},
Tasks: &Tasks{
Cancel: newTasksCancelFunc(t),
Get: newTasksGetFunc(t),
List: newTasksListFunc(t),
},
CCR: &CCR{
DeleteAutoFollowPattern: newCCRDeleteAutoFollowPatternFunc(t),
FollowInfo: newCCRFollowInfoFunc(t),
Follow: newCCRFollowFunc(t),
FollowStats: newCCRFollowStatsFunc(t),
ForgetFollower: newCCRForgetFollowerFunc(t),
GetAutoFollowPattern: newCCRGetAutoFollowPatternFunc(t),
PauseFollow: newCCRPauseFollowFunc(t),
PutAutoFollowPattern: newCCRPutAutoFollowPatternFunc(t),
ResumeFollow: newCCRResumeFollowFunc(t),
Stats: newCCRStatsFunc(t),
Unfollow: newCCRUnfollowFunc(t),
},
ILM: &ILM{
DeleteLifecycle: newILMDeleteLifecycleFunc(t),
ExplainLifecycle: newILMExplainLifecycleFunc(t),
GetLifecycle: newILMGetLifecycleFunc(t),
GetStatus: newILMGetStatusFunc(t),
MoveToStep: newILMMoveToStepFunc(t),
PutLifecycle: newILMPutLifecycleFunc(t),
RemovePolicy: newILMRemovePolicyFunc(t),
Retry: newILMRetryFunc(t),
Start: newILMStartFunc(t),
Stop: newILMStopFunc(t),
},
License: &License{},
Migration: &Migration{},
ML: &ML{},
Monitoring: &Monitoring{},
Rollup: &Rollup{},
Security: &Security{
CreateAPIKey: newSecurityCreateAPIKeyFunc(t),
GetAPIKey: newSecurityGetAPIKeyFunc(t),
InvalidateAPIKey: newSecurityInvalidateAPIKeyFunc(t),
},
SQL: &SQL{},
SSL: &SSL{},
Watcher: &Watcher{},
XPack: &XPack{
GraphExplore: newXPackGraphExploreFunc(t),
Info: newXPackInfoFunc(t),
LicenseDelete: newXPackLicenseDeleteFunc(t),
LicenseGetBasicStatus: newXPackLicenseGetBasicStatusFunc(t),
LicenseGet: newXPackLicenseGetFunc(t),
LicenseGetTrialStatus: newXPackLicenseGetTrialStatusFunc(t),
LicensePost: newXPackLicensePostFunc(t),
LicensePostStartBasic: newXPackLicensePostStartBasicFunc(t),
LicensePostStartTrial: newXPackLicensePostStartTrialFunc(t),
MLCloseJob: newXPackMLCloseJobFunc(t),
MLDeleteCalendarEvent: newXPackMLDeleteCalendarEventFunc(t),
MLDeleteCalendarJob: newXPackMLDeleteCalendarJobFunc(t),
MLDeleteCalendar: newXPackMLDeleteCalendarFunc(t),
MLDeleteDatafeed: newXPackMLDeleteDatafeedFunc(t),
MLDeleteExpiredData: newXPackMLDeleteExpiredDataFunc(t),
MLDeleteFilter: newXPackMLDeleteFilterFunc(t),
MLDeleteForecast: newXPackMLDeleteForecastFunc(t),
MLDeleteJob: newXPackMLDeleteJobFunc(t),
MLDeleteModelSnapshot: newXPackMLDeleteModelSnapshotFunc(t),
MLFindFileStructure: newXPackMLFindFileStructureFunc(t),
MLFlushJob: newXPackMLFlushJobFunc(t),
MLForecast: newXPackMLForecastFunc(t),
MLGetBuckets: newXPackMLGetBucketsFunc(t),
MLGetCalendarEvents: newXPackMLGetCalendarEventsFunc(t),
MLGetCalendars: newXPackMLGetCalendarsFunc(t),
MLGetCategories: newXPackMLGetCategoriesFunc(t),
MLGetDatafeedStats: newXPackMLGetDatafeedStatsFunc(t),
MLGetDatafeeds: newXPackMLGetDatafeedsFunc(t),
MLGetFilters: newXPackMLGetFiltersFunc(t),
MLGetInfluencers: newXPackMLGetInfluencersFunc(t),
MLGetJobStats: newXPackMLGetJobStatsFunc(t),
MLGetJobs: newXPackMLGetJobsFunc(t),
MLGetModelSnapshots: newXPackMLGetModelSnapshotsFunc(t),
MLGetOverallBuckets: newXPackMLGetOverallBucketsFunc(t),
MLGetRecords: newXPackMLGetRecordsFunc(t),
MLInfo: newXPackMLInfoFunc(t),
MLOpenJob: newXPackMLOpenJobFunc(t),
MLPostCalendarEvents: newXPackMLPostCalendarEventsFunc(t),
MLPostData: newXPackMLPostDataFunc(t),
MLPreviewDatafeed: newXPackMLPreviewDatafeedFunc(t),
MLPutCalendarJob: newXPackMLPutCalendarJobFunc(t),
MLPutCalendar: newXPackMLPutCalendarFunc(t),
MLPutDatafeed: newXPackMLPutDatafeedFunc(t),
MLPutFilter: newXPackMLPutFilterFunc(t),
MLPutJob: newXPackMLPutJobFunc(t),
MLRevertModelSnapshot: newXPackMLRevertModelSnapshotFunc(t),
MLSetUpgradeMode: newXPackMLSetUpgradeModeFunc(t),
MLStartDatafeed: newXPackMLStartDatafeedFunc(t),
MLStopDatafeed: newXPackMLStopDatafeedFunc(t),
MLUpdateDatafeed: newXPackMLUpdateDatafeedFunc(t),
MLUpdateFilter: newXPackMLUpdateFilterFunc(t),
MLUpdateJob: newXPackMLUpdateJobFunc(t),
MLUpdateModelSnapshot: newXPackMLUpdateModelSnapshotFunc(t),
MLValidateDetector: newXPackMLValidateDetectorFunc(t),
MLValidate: newXPackMLValidateFunc(t),
MigrationDeprecations: newXPackMigrationDeprecationsFunc(t),
MigrationGetAssistance: newXPackMigrationGetAssistanceFunc(t),
MigrationUpgrade: newXPackMigrationUpgradeFunc(t),
MonitoringBulk: newXPackMonitoringBulkFunc(t),
RollupDeleteJob: newXPackRollupDeleteJobFunc(t),
RollupGetJobs: newXPackRollupGetJobsFunc(t),
RollupGetRollupCaps: newXPackRollupGetRollupCapsFunc(t),
RollupGetRollupIndexCaps: newXPackRollupGetRollupIndexCapsFunc(t),
RollupPutJob: newXPackRollupPutJobFunc(t),
RollupRollupSearch: newXPackRollupRollupSearchFunc(t),
RollupStartJob: newXPackRollupStartJobFunc(t),
RollupStopJob: newXPackRollupStopJobFunc(t),
SQLClearCursor: newXPackSQLClearCursorFunc(t),
SQLQuery: newXPackSQLQueryFunc(t),
SQLTranslate: newXPackSQLTranslateFunc(t),
SSLCertificates: newXPackSSLCertificatesFunc(t),
SecurityAuthenticate: newXPackSecurityAuthenticateFunc(t),
SecurityChangePassword: newXPackSecurityChangePasswordFunc(t),
SecurityClearCachedRealms: newXPackSecurityClearCachedRealmsFunc(t),
SecurityClearCachedRoles: newXPackSecurityClearCachedRolesFunc(t),
SecurityDeletePrivileges: newXPackSecurityDeletePrivilegesFunc(t),
SecurityDeleteRoleMapping: newXPackSecurityDeleteRoleMappingFunc(t),
SecurityDeleteRole: newXPackSecurityDeleteRoleFunc(t),
SecurityDeleteUser: newXPackSecurityDeleteUserFunc(t),
SecurityDisableUser: newXPackSecurityDisableUserFunc(t),
SecurityEnableUser: newXPackSecurityEnableUserFunc(t),
SecurityGetPrivileges: newXPackSecurityGetPrivilegesFunc(t),
SecurityGetRoleMapping: newXPackSecurityGetRoleMappingFunc(t),
SecurityGetRole: newXPackSecurityGetRoleFunc(t),
SecurityGetToken: newXPackSecurityGetTokenFunc(t),
SecurityGetUserPrivileges: newXPackSecurityGetUserPrivilegesFunc(t),
SecurityGetUser: newXPackSecurityGetUserFunc(t),
SecurityHasPrivileges: newXPackSecurityHasPrivilegesFunc(t),
SecurityInvalidateToken: newXPackSecurityInvalidateTokenFunc(t),
SecurityPutPrivileges: newXPackSecurityPutPrivilegesFunc(t),
SecurityPutRoleMapping: newXPackSecurityPutRoleMappingFunc(t),
SecurityPutRole: newXPackSecurityPutRoleFunc(t),
SecurityPutUser: newXPackSecurityPutUserFunc(t),
Usage: newXPackUsageFunc(t),
WatcherAckWatch: newXPackWatcherAckWatchFunc(t),
WatcherActivateWatch: newXPackWatcherActivateWatchFunc(t),
WatcherDeactivateWatch: newXPackWatcherDeactivateWatchFunc(t),
WatcherDeleteWatch: newXPackWatcherDeleteWatchFunc(t),
WatcherExecuteWatch: newXPackWatcherExecuteWatchFunc(t),
WatcherGetWatch: newXPackWatcherGetWatchFunc(t),
WatcherPutWatch: newXPackWatcherPutWatchFunc(t),
WatcherRestart: newXPackWatcherRestartFunc(t),
WatcherStart: newXPackWatcherStartFunc(t),
WatcherStats: newXPackWatcherStatsFunc(t),
WatcherStop: newXPackWatcherStopFunc(t),
// Update the XPack struct
CCR: &CCR{},
ILM: &ILM{},
License: &License{
Delete: newXPackLicenseDeleteFunc(t),
GetBasicStatus: newXPackLicenseGetBasicStatusFunc(t),
Get: newXPackLicenseGetFunc(t),
GetTrialStatus: newXPackLicenseGetTrialStatusFunc(t),
Post: newXPackLicensePostFunc(t),
PostStartBasic: newXPackLicensePostStartBasicFunc(t),
PostStartTrial: newXPackLicensePostStartTrialFunc(t),
},
Migration: &Migration{
Deprecations: newXPackMigrationDeprecationsFunc(t),
GetAssistance: newXPackMigrationGetAssistanceFunc(t),
Upgrade: newXPackMigrationUpgradeFunc(t),
},
ML: &ML{
CloseJob: newXPackMLCloseJobFunc(t),
DeleteCalendarEvent: newXPackMLDeleteCalendarEventFunc(t),
DeleteCalendarJob: newXPackMLDeleteCalendarJobFunc(t),
DeleteCalendar: newXPackMLDeleteCalendarFunc(t),
DeleteDatafeed: newXPackMLDeleteDatafeedFunc(t),
DeleteExpiredData: newXPackMLDeleteExpiredDataFunc(t),
DeleteFilter: newXPackMLDeleteFilterFunc(t),
DeleteForecast: newXPackMLDeleteForecastFunc(t),
DeleteJob: newXPackMLDeleteJobFunc(t),
DeleteModelSnapshot: newXPackMLDeleteModelSnapshotFunc(t),
FindFileStructure: newXPackMLFindFileStructureFunc(t),
FlushJob: newXPackMLFlushJobFunc(t),
Forecast: newXPackMLForecastFunc(t),
GetBuckets: newXPackMLGetBucketsFunc(t),
GetCalendarEvents: newXPackMLGetCalendarEventsFunc(t),
GetCalendars: newXPackMLGetCalendarsFunc(t),
GetCategories: newXPackMLGetCategoriesFunc(t),
GetDatafeedStats: newXPackMLGetDatafeedStatsFunc(t),
GetDatafeeds: newXPackMLGetDatafeedsFunc(t),
GetFilters: newXPackMLGetFiltersFunc(t),
GetInfluencers: newXPackMLGetInfluencersFunc(t),
GetJobStats: newXPackMLGetJobStatsFunc(t),
GetJobs: newXPackMLGetJobsFunc(t),
GetModelSnapshots: newXPackMLGetModelSnapshotsFunc(t),
GetOverallBuckets: newXPackMLGetOverallBucketsFunc(t),
GetRecords: newXPackMLGetRecordsFunc(t),
Info: newXPackMLInfoFunc(t),
OpenJob: newXPackMLOpenJobFunc(t),
PostCalendarEvents: newXPackMLPostCalendarEventsFunc(t),
PostData: newXPackMLPostDataFunc(t),
PreviewDatafeed: newXPackMLPreviewDatafeedFunc(t),
PutCalendarJob: newXPackMLPutCalendarJobFunc(t),
PutCalendar: newXPackMLPutCalendarFunc(t),
PutDatafeed: newXPackMLPutDatafeedFunc(t),
PutFilter: newXPackMLPutFilterFunc(t),
PutJob: newXPackMLPutJobFunc(t),
RevertModelSnapshot: newXPackMLRevertModelSnapshotFunc(t),
SetUpgradeMode: newXPackMLSetUpgradeModeFunc(t),
StartDatafeed: newXPackMLStartDatafeedFunc(t),
StopDatafeed: newXPackMLStopDatafeedFunc(t),
UpdateDatafeed: newXPackMLUpdateDatafeedFunc(t),
UpdateFilter: newXPackMLUpdateFilterFunc(t),
UpdateJob: newXPackMLUpdateJobFunc(t),
UpdateModelSnapshot: newXPackMLUpdateModelSnapshotFunc(t),
ValidateDetector: newXPackMLValidateDetectorFunc(t),
Validate: newXPackMLValidateFunc(t),
},
Monitoring: &Monitoring{
Bulk: newXPackMonitoringBulkFunc(t),
},
Rollup: &Rollup{
DeleteJob: newXPackRollupDeleteJobFunc(t),
GetJobs: newXPackRollupGetJobsFunc(t),
GetCaps: newXPackRollupGetRollupCapsFunc(t),
GetIndexCaps: newXPackRollupGetRollupIndexCapsFunc(t),
PutJob: newXPackRollupPutJobFunc(t),
Search: newXPackRollupRollupSearchFunc(t),
StartJob: newXPackRollupStartJobFunc(t),
StopJob: newXPackRollupStopJobFunc(t),
},
Security: &Security{
Authenticate: newXPackSecurityAuthenticateFunc(t),
ChangePassword: newXPackSecurityChangePasswordFunc(t),
ClearCachedRealms: newXPackSecurityClearCachedRealmsFunc(t),
ClearCachedRoles: newXPackSecurityClearCachedRolesFunc(t),
DeletePrivileges: newXPackSecurityDeletePrivilegesFunc(t),
DeleteRoleMapping: newXPackSecurityDeleteRoleMappingFunc(t),
DeleteRole: newXPackSecurityDeleteRoleFunc(t),
DeleteUser: newXPackSecurityDeleteUserFunc(t),
DisableUser: newXPackSecurityDisableUserFunc(t),
EnableUser: newXPackSecurityEnableUserFunc(t),
GetPrivileges: newXPackSecurityGetPrivilegesFunc(t),
GetRoleMapping: newXPackSecurityGetRoleMappingFunc(t),
GetRole: newXPackSecurityGetRoleFunc(t),
GetToken: newXPackSecurityGetTokenFunc(t),
GetUserPrivileges: newXPackSecurityGetUserPrivilegesFunc(t),
GetUser: newXPackSecurityGetUserFunc(t),
HasPrivileges: newXPackSecurityHasPrivilegesFunc(t),
InvalidateToken: newXPackSecurityInvalidateTokenFunc(t),
PutPrivileges: newXPackSecurityPutPrivilegesFunc(t),
PutRoleMapping: newXPackSecurityPutRoleMappingFunc(t),
PutRole: newXPackSecurityPutRoleFunc(t),
PutUser: newXPackSecurityPutUserFunc(t),
},
SQL: &SQL{
ClearCursor: newXPackSQLClearCursorFunc(t),
Query: newXPackSQLQueryFunc(t),
Translate: newXPackSQLTranslateFunc(t),
},
SSL: &SSL{
Certificates: newXPackSSLCertificatesFunc(t),
},
Watcher: &Watcher{
AckWatch: newXPackWatcherAckWatchFunc(t),
ActivateWatch: newXPackWatcherActivateWatchFunc(t),
DeactivateWatch: newXPackWatcherDeactivateWatchFunc(t),
DeleteWatch: newXPackWatcherDeleteWatchFunc(t),
ExecuteWatch: newXPackWatcherExecuteWatchFunc(t),
GetWatch: newXPackWatcherGetWatchFunc(t),
PutWatch: newXPackWatcherPutWatchFunc(t),
Restart: newXPackWatcherRestartFunc(t),
Start: newXPackWatcherStartFunc(t),
Stats: newXPackWatcherStatsFunc(t),
Stop: newXPackWatcherStopFunc(t),
},
XPack: &XPack{},
},
}
}