api._.go 47 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989
  1. // Licensed to Elasticsearch B.V. under one or more contributor
  2. // license agreements. See the NOTICE file distributed with
  3. // this work for additional information regarding copyright
  4. // ownership. Elasticsearch B.V. licenses this file to you under
  5. // the Apache License, Version 2.0 (the "License"); you may
  6. // not use this file except in compliance with the License.
  7. // You may obtain a copy of the License at
  8. //
  9. // http://www.apache.org/licenses/LICENSE-2.0
  10. //
  11. // Unless required by applicable law or agreed to in writing,
  12. // software distributed under the License is distributed on an
  13. // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  14. // KIND, either express or implied. See the License for the
  15. // specific language governing permissions and limitations
  16. // under the License.
  17. //
  18. // Code generated from specification version 7.17.10 (fecd68e): DO NOT EDIT
  19. package esapi
  20. // API contains the Elasticsearch APIs
  21. type API struct {
  22. Cat *Cat
  23. Cluster *Cluster
  24. Indices *Indices
  25. Ingest *Ingest
  26. Nodes *Nodes
  27. Remote *Remote
  28. Snapshot *Snapshot
  29. Tasks *Tasks
  30. AsyncSearch *AsyncSearch
  31. CCR *CCR
  32. ILM *ILM
  33. License *License
  34. Migration *Migration
  35. ML *ML
  36. Monitoring *Monitoring
  37. Rollup *Rollup
  38. Security *Security
  39. SQL *SQL
  40. SSL *SSL
  41. Watcher *Watcher
  42. XPack *XPack
  43. AutoscalingDeleteAutoscalingPolicy AutoscalingDeleteAutoscalingPolicy
  44. AutoscalingGetAutoscalingCapacity AutoscalingGetAutoscalingCapacity
  45. AutoscalingGetAutoscalingDecision AutoscalingGetAutoscalingDecision
  46. AutoscalingGetAutoscalingPolicy AutoscalingGetAutoscalingPolicy
  47. AutoscalingPutAutoscalingPolicy AutoscalingPutAutoscalingPolicy
  48. Bulk Bulk
  49. ClearScroll ClearScroll
  50. ClosePointInTime ClosePointInTime
  51. Count Count
  52. Create Create
  53. DanglingIndicesDeleteDanglingIndex DanglingIndicesDeleteDanglingIndex
  54. DanglingIndicesImportDanglingIndex DanglingIndicesImportDanglingIndex
  55. DanglingIndicesListDanglingIndices DanglingIndicesListDanglingIndices
  56. DataFrameTransformDeprecatedDeleteTransform DataFrameTransformDeprecatedDeleteTransform
  57. DataFrameTransformDeprecatedGetTransform DataFrameTransformDeprecatedGetTransform
  58. DataFrameTransformDeprecatedGetTransformStats DataFrameTransformDeprecatedGetTransformStats
  59. DataFrameTransformDeprecatedPreviewTransform DataFrameTransformDeprecatedPreviewTransform
  60. DataFrameTransformDeprecatedPutTransform DataFrameTransformDeprecatedPutTransform
  61. DataFrameTransformDeprecatedStartTransform DataFrameTransformDeprecatedStartTransform
  62. DataFrameTransformDeprecatedStopTransform DataFrameTransformDeprecatedStopTransform
  63. DataFrameTransformDeprecatedUpdateTransform DataFrameTransformDeprecatedUpdateTransform
  64. DeleteByQuery DeleteByQuery
  65. DeleteByQueryRethrottle DeleteByQueryRethrottle
  66. Delete Delete
  67. DeleteScript DeleteScript
  68. EnrichDeletePolicy EnrichDeletePolicy
  69. EnrichExecutePolicy EnrichExecutePolicy
  70. EnrichGetPolicy EnrichGetPolicy
  71. EnrichPutPolicy EnrichPutPolicy
  72. EnrichStats EnrichStats
  73. EqlDelete EqlDelete
  74. EqlGet EqlGet
  75. EqlGetStatus EqlGetStatus
  76. EqlSearch EqlSearch
  77. Exists Exists
  78. ExistsSource ExistsSource
  79. Explain Explain
  80. FeaturesGetFeatures FeaturesGetFeatures
  81. FeaturesResetFeatures FeaturesResetFeatures
  82. FieldCaps FieldCaps
  83. FleetGlobalCheckpoints FleetGlobalCheckpoints
  84. FleetMsearch FleetMsearch
  85. FleetSearch FleetSearch
  86. Get Get
  87. GetScriptContext GetScriptContext
  88. GetScriptLanguages GetScriptLanguages
  89. GetScript GetScript
  90. GetSource GetSource
  91. GraphExplore GraphExplore
  92. Index Index
  93. Info Info
  94. LogstashDeletePipeline LogstashDeletePipeline
  95. LogstashGetPipeline LogstashGetPipeline
  96. LogstashPutPipeline LogstashPutPipeline
  97. Mget Mget
  98. Msearch Msearch
  99. MsearchTemplate MsearchTemplate
  100. Mtermvectors Mtermvectors
  101. OpenPointInTime OpenPointInTime
  102. Ping Ping
  103. PutScript PutScript
  104. RankEval RankEval
  105. Reindex Reindex
  106. ReindexRethrottle ReindexRethrottle
  107. RenderSearchTemplate RenderSearchTemplate
  108. ScriptsPainlessExecute ScriptsPainlessExecute
  109. Scroll Scroll
  110. SearchMvt SearchMvt
  111. Search Search
  112. SearchShards SearchShards
  113. SearchTemplate SearchTemplate
  114. SearchableSnapshotsCacheStats SearchableSnapshotsCacheStats
  115. SearchableSnapshotsClearCache SearchableSnapshotsClearCache
  116. SearchableSnapshotsMount SearchableSnapshotsMount
  117. SearchableSnapshotsRepositoryStats SearchableSnapshotsRepositoryStats
  118. SearchableSnapshotsStats SearchableSnapshotsStats
  119. ShutdownDeleteNode ShutdownDeleteNode
  120. ShutdownGetNode ShutdownGetNode
  121. ShutdownPutNode ShutdownPutNode
  122. SlmDeleteLifecycle SlmDeleteLifecycle
  123. SlmExecuteLifecycle SlmExecuteLifecycle
  124. SlmExecuteRetention SlmExecuteRetention
  125. SlmGetLifecycle SlmGetLifecycle
  126. SlmGetStats SlmGetStats
  127. SlmGetStatus SlmGetStatus
  128. SlmPutLifecycle SlmPutLifecycle
  129. SlmStart SlmStart
  130. SlmStop SlmStop
  131. TermsEnum TermsEnum
  132. Termvectors Termvectors
  133. TextStructureFindStructure TextStructureFindStructure
  134. TransformDeleteTransform TransformDeleteTransform
  135. TransformGetTransform TransformGetTransform
  136. TransformGetTransformStats TransformGetTransformStats
  137. TransformPreviewTransform TransformPreviewTransform
  138. TransformPutTransform TransformPutTransform
  139. TransformStartTransform TransformStartTransform
  140. TransformStopTransform TransformStopTransform
  141. TransformUpdateTransform TransformUpdateTransform
  142. TransformUpgradeTransforms TransformUpgradeTransforms
  143. UpdateByQuery UpdateByQuery
  144. UpdateByQueryRethrottle UpdateByQueryRethrottle
  145. Update Update
  146. }
  147. // Cat contains the Cat APIs
  148. type Cat struct {
  149. Aliases CatAliases
  150. Allocation CatAllocation
  151. Count CatCount
  152. Fielddata CatFielddata
  153. Health CatHealth
  154. Help CatHelp
  155. Indices CatIndices
  156. MLDataFrameAnalytics CatMLDataFrameAnalytics
  157. MLDatafeeds CatMLDatafeeds
  158. MLJobs CatMLJobs
  159. MLTrainedModels CatMLTrainedModels
  160. Master CatMaster
  161. Nodeattrs CatNodeattrs
  162. Nodes CatNodes
  163. PendingTasks CatPendingTasks
  164. Plugins CatPlugins
  165. Recovery CatRecovery
  166. Repositories CatRepositories
  167. Segments CatSegments
  168. Shards CatShards
  169. Snapshots CatSnapshots
  170. Tasks CatTasks
  171. Templates CatTemplates
  172. ThreadPool CatThreadPool
  173. Transforms CatTransforms
  174. }
  175. // Cluster contains the Cluster APIs
  176. type Cluster struct {
  177. AllocationExplain ClusterAllocationExplain
  178. DeleteComponentTemplate ClusterDeleteComponentTemplate
  179. DeleteVotingConfigExclusions ClusterDeleteVotingConfigExclusions
  180. ExistsComponentTemplate ClusterExistsComponentTemplate
  181. GetComponentTemplate ClusterGetComponentTemplate
  182. GetSettings ClusterGetSettings
  183. Health ClusterHealth
  184. PendingTasks ClusterPendingTasks
  185. PostVotingConfigExclusions ClusterPostVotingConfigExclusions
  186. PutComponentTemplate ClusterPutComponentTemplate
  187. PutSettings ClusterPutSettings
  188. RemoteInfo ClusterRemoteInfo
  189. Reroute ClusterReroute
  190. State ClusterState
  191. Stats ClusterStats
  192. }
  193. // Indices contains the Indices APIs
  194. type Indices struct {
  195. AddBlock IndicesAddBlock
  196. Analyze IndicesAnalyze
  197. ClearCache IndicesClearCache
  198. Clone IndicesClone
  199. Close IndicesClose
  200. CreateDataStream IndicesCreateDataStream
  201. Create IndicesCreate
  202. DataStreamsStats IndicesDataStreamsStats
  203. DeleteAlias IndicesDeleteAlias
  204. DeleteDataStream IndicesDeleteDataStream
  205. DeleteIndexTemplate IndicesDeleteIndexTemplate
  206. Delete IndicesDelete
  207. DeleteTemplate IndicesDeleteTemplate
  208. DiskUsage IndicesDiskUsage
  209. ExistsAlias IndicesExistsAlias
  210. ExistsDocumentType IndicesExistsDocumentType
  211. ExistsIndexTemplate IndicesExistsIndexTemplate
  212. Exists IndicesExists
  213. ExistsTemplate IndicesExistsTemplate
  214. FieldUsageStats IndicesFieldUsageStats
  215. Flush IndicesFlush
  216. FlushSynced IndicesFlushSynced
  217. Forcemerge IndicesForcemerge
  218. Freeze IndicesFreeze
  219. GetAlias IndicesGetAlias
  220. GetDataStream IndicesGetDataStream
  221. GetFieldMapping IndicesGetFieldMapping
  222. GetIndexTemplate IndicesGetIndexTemplate
  223. GetMapping IndicesGetMapping
  224. Get IndicesGet
  225. GetSettings IndicesGetSettings
  226. GetTemplate IndicesGetTemplate
  227. GetUpgrade IndicesGetUpgrade
  228. MigrateToDataStream IndicesMigrateToDataStream
  229. ModifyDataStream IndicesModifyDataStream
  230. Open IndicesOpen
  231. PromoteDataStream IndicesPromoteDataStream
  232. PutAlias IndicesPutAlias
  233. PutIndexTemplate IndicesPutIndexTemplate
  234. PutMapping IndicesPutMapping
  235. PutSettings IndicesPutSettings
  236. PutTemplate IndicesPutTemplate
  237. Recovery IndicesRecovery
  238. Refresh IndicesRefresh
  239. ReloadSearchAnalyzers IndicesReloadSearchAnalyzers
  240. ResolveIndex IndicesResolveIndex
  241. Rollover IndicesRollover
  242. Segments IndicesSegments
  243. ShardStores IndicesShardStores
  244. Shrink IndicesShrink
  245. SimulateIndexTemplate IndicesSimulateIndexTemplate
  246. SimulateTemplate IndicesSimulateTemplate
  247. Split IndicesSplit
  248. Stats IndicesStats
  249. Unfreeze IndicesUnfreeze
  250. UpdateAliases IndicesUpdateAliases
  251. Upgrade IndicesUpgrade
  252. ValidateQuery IndicesValidateQuery
  253. }
  254. // Ingest contains the Ingest APIs
  255. type Ingest struct {
  256. DeletePipeline IngestDeletePipeline
  257. GeoIPStats IngestGeoIPStats
  258. GetPipeline IngestGetPipeline
  259. ProcessorGrok IngestProcessorGrok
  260. PutPipeline IngestPutPipeline
  261. Simulate IngestSimulate
  262. }
  263. // Nodes contains the Nodes APIs
  264. type Nodes struct {
  265. ClearMeteringArchive NodesClearMeteringArchive
  266. ClearRepositoriesMeteringArchive NodesClearRepositoriesMeteringArchive
  267. GetMeteringInfo NodesGetMeteringInfo
  268. GetRepositoriesMeteringInfo NodesGetRepositoriesMeteringInfo
  269. HotThreads NodesHotThreads
  270. Info NodesInfo
  271. ReloadSecureSettings NodesReloadSecureSettings
  272. Stats NodesStats
  273. Usage NodesUsage
  274. }
  275. // Remote contains the Remote APIs
  276. type Remote struct {
  277. }
  278. // Snapshot contains the Snapshot APIs
  279. type Snapshot struct {
  280. CleanupRepository SnapshotCleanupRepository
  281. Clone SnapshotClone
  282. CreateRepository SnapshotCreateRepository
  283. Create SnapshotCreate
  284. DeleteRepository SnapshotDeleteRepository
  285. Delete SnapshotDelete
  286. GetRepository SnapshotGetRepository
  287. Get SnapshotGet
  288. RepositoryAnalyze SnapshotRepositoryAnalyze
  289. Restore SnapshotRestore
  290. Status SnapshotStatus
  291. VerifyRepository SnapshotVerifyRepository
  292. }
  293. // Tasks contains the Tasks APIs
  294. type Tasks struct {
  295. Cancel TasksCancel
  296. Get TasksGet
  297. List TasksList
  298. }
  299. // AsyncSearch contains the AsyncSearch APIs
  300. type AsyncSearch struct {
  301. Delete AsyncSearchDelete
  302. Get AsyncSearchGet
  303. Status AsyncSearchStatus
  304. Submit AsyncSearchSubmit
  305. }
  306. // CCR contains the CCR APIs
  307. type CCR struct {
  308. DeleteAutoFollowPattern CCRDeleteAutoFollowPattern
  309. FollowInfo CCRFollowInfo
  310. Follow CCRFollow
  311. FollowStats CCRFollowStats
  312. ForgetFollower CCRForgetFollower
  313. GetAutoFollowPattern CCRGetAutoFollowPattern
  314. PauseAutoFollowPattern CCRPauseAutoFollowPattern
  315. PauseFollow CCRPauseFollow
  316. PutAutoFollowPattern CCRPutAutoFollowPattern
  317. ResumeAutoFollowPattern CCRResumeAutoFollowPattern
  318. ResumeFollow CCRResumeFollow
  319. Stats CCRStats
  320. Unfollow CCRUnfollow
  321. }
  322. // ILM contains the ILM APIs
  323. type ILM struct {
  324. DeleteLifecycle ILMDeleteLifecycle
  325. ExplainLifecycle ILMExplainLifecycle
  326. GetLifecycle ILMGetLifecycle
  327. GetStatus ILMGetStatus
  328. MigrateToDataTiers ILMMigrateToDataTiers
  329. MoveToStep ILMMoveToStep
  330. PutLifecycle ILMPutLifecycle
  331. RemovePolicy ILMRemovePolicy
  332. Retry ILMRetry
  333. Start ILMStart
  334. Stop ILMStop
  335. }
  336. // License contains the License APIs
  337. type License struct {
  338. Delete LicenseDelete
  339. GetBasicStatus LicenseGetBasicStatus
  340. Get LicenseGet
  341. GetTrialStatus LicenseGetTrialStatus
  342. Post LicensePost
  343. PostStartBasic LicensePostStartBasic
  344. PostStartTrial LicensePostStartTrial
  345. }
  346. // Migration contains the Migration APIs
  347. type Migration struct {
  348. Deprecations MigrationDeprecations
  349. GetFeatureUpgradeStatus MigrationGetFeatureUpgradeStatus
  350. PostFeatureUpgrade MigrationPostFeatureUpgrade
  351. }
  352. // ML contains the ML APIs
  353. type ML struct {
  354. CloseJob MLCloseJob
  355. DeleteCalendarEvent MLDeleteCalendarEvent
  356. DeleteCalendarJob MLDeleteCalendarJob
  357. DeleteCalendar MLDeleteCalendar
  358. DeleteDataFrameAnalytics MLDeleteDataFrameAnalytics
  359. DeleteDatafeed MLDeleteDatafeed
  360. DeleteExpiredData MLDeleteExpiredData
  361. DeleteFilter MLDeleteFilter
  362. DeleteForecast MLDeleteForecast
  363. DeleteJob MLDeleteJob
  364. DeleteModelSnapshot MLDeleteModelSnapshot
  365. DeleteTrainedModelAlias MLDeleteTrainedModelAlias
  366. DeleteTrainedModel MLDeleteTrainedModel
  367. EstimateModelMemory MLEstimateModelMemory
  368. EvaluateDataFrame MLEvaluateDataFrame
  369. ExplainDataFrameAnalytics MLExplainDataFrameAnalytics
  370. FindFileStructure MLFindFileStructure
  371. FlushJob MLFlushJob
  372. Forecast MLForecast
  373. GetBuckets MLGetBuckets
  374. GetCalendarEvents MLGetCalendarEvents
  375. GetCalendars MLGetCalendars
  376. GetCategories MLGetCategories
  377. GetDataFrameAnalytics MLGetDataFrameAnalytics
  378. GetDataFrameAnalyticsStats MLGetDataFrameAnalyticsStats
  379. GetDatafeedStats MLGetDatafeedStats
  380. GetDatafeeds MLGetDatafeeds
  381. GetFilters MLGetFilters
  382. GetInfluencers MLGetInfluencers
  383. GetJobStats MLGetJobStats
  384. GetJobs MLGetJobs
  385. GetModelSnapshotUpgradeStats MLGetModelSnapshotUpgradeStats
  386. GetModelSnapshots MLGetModelSnapshots
  387. GetOverallBuckets MLGetOverallBuckets
  388. GetRecords MLGetRecords
  389. GetTrainedModels MLGetTrainedModels
  390. GetTrainedModelsStats MLGetTrainedModelsStats
  391. Info MLInfo
  392. OpenJob MLOpenJob
  393. PostCalendarEvents MLPostCalendarEvents
  394. PostData MLPostData
  395. PreviewDataFrameAnalytics MLPreviewDataFrameAnalytics
  396. PreviewDatafeed MLPreviewDatafeed
  397. PutCalendarJob MLPutCalendarJob
  398. PutCalendar MLPutCalendar
  399. PutDataFrameAnalytics MLPutDataFrameAnalytics
  400. PutDatafeed MLPutDatafeed
  401. PutFilter MLPutFilter
  402. PutJob MLPutJob
  403. PutTrainedModelAlias MLPutTrainedModelAlias
  404. PutTrainedModel MLPutTrainedModel
  405. ResetJob MLResetJob
  406. RevertModelSnapshot MLRevertModelSnapshot
  407. SetUpgradeMode MLSetUpgradeMode
  408. StartDataFrameAnalytics MLStartDataFrameAnalytics
  409. StartDatafeed MLStartDatafeed
  410. StopDataFrameAnalytics MLStopDataFrameAnalytics
  411. StopDatafeed MLStopDatafeed
  412. UpdateDataFrameAnalytics MLUpdateDataFrameAnalytics
  413. UpdateDatafeed MLUpdateDatafeed
  414. UpdateFilter MLUpdateFilter
  415. UpdateJob MLUpdateJob
  416. UpdateModelSnapshot MLUpdateModelSnapshot
  417. UpgradeJobSnapshot MLUpgradeJobSnapshot
  418. ValidateDetector MLValidateDetector
  419. Validate MLValidate
  420. }
  421. // Monitoring contains the Monitoring APIs
  422. type Monitoring struct {
  423. Bulk MonitoringBulk
  424. }
  425. // Rollup contains the Rollup APIs
  426. type Rollup struct {
  427. DeleteJob RollupDeleteJob
  428. GetJobs RollupGetJobs
  429. GetCaps RollupGetRollupCaps
  430. GetIndexCaps RollupGetRollupIndexCaps
  431. PutJob RollupPutJob
  432. Rollup RollupRollup
  433. Search RollupRollupSearch
  434. StartJob RollupStartJob
  435. StopJob RollupStopJob
  436. }
  437. // Security contains the Security APIs
  438. type Security struct {
  439. Authenticate SecurityAuthenticate
  440. ChangePassword SecurityChangePassword
  441. ClearAPIKeyCache SecurityClearAPIKeyCache
  442. ClearCachedPrivileges SecurityClearCachedPrivileges
  443. ClearCachedRealms SecurityClearCachedRealms
  444. ClearCachedRoles SecurityClearCachedRoles
  445. ClearCachedServiceTokens SecurityClearCachedServiceTokens
  446. CreateAPIKey SecurityCreateAPIKey
  447. CreateServiceToken SecurityCreateServiceToken
  448. DeletePrivileges SecurityDeletePrivileges
  449. DeleteRoleMapping SecurityDeleteRoleMapping
  450. DeleteRole SecurityDeleteRole
  451. DeleteServiceToken SecurityDeleteServiceToken
  452. DeleteUser SecurityDeleteUser
  453. DisableUser SecurityDisableUser
  454. EnableUser SecurityEnableUser
  455. GetAPIKey SecurityGetAPIKey
  456. GetBuiltinPrivileges SecurityGetBuiltinPrivileges
  457. GetPrivileges SecurityGetPrivileges
  458. GetRoleMapping SecurityGetRoleMapping
  459. GetRole SecurityGetRole
  460. GetServiceAccounts SecurityGetServiceAccounts
  461. GetServiceCredentials SecurityGetServiceCredentials
  462. GetToken SecurityGetToken
  463. GetUserPrivileges SecurityGetUserPrivileges
  464. GetUser SecurityGetUser
  465. GrantAPIKey SecurityGrantAPIKey
  466. HasPrivileges SecurityHasPrivileges
  467. InvalidateAPIKey SecurityInvalidateAPIKey
  468. InvalidateToken SecurityInvalidateToken
  469. PutPrivileges SecurityPutPrivileges
  470. PutRoleMapping SecurityPutRoleMapping
  471. PutRole SecurityPutRole
  472. PutUser SecurityPutUser
  473. QueryAPIKeys SecurityQueryAPIKeys
  474. SamlAuthenticate SecuritySamlAuthenticate
  475. SamlCompleteLogout SecuritySamlCompleteLogout
  476. SamlInvalidate SecuritySamlInvalidate
  477. SamlLogout SecuritySamlLogout
  478. SamlPrepareAuthentication SecuritySamlPrepareAuthentication
  479. SamlServiceProviderMetadata SecuritySamlServiceProviderMetadata
  480. }
  481. // SQL contains the SQL APIs
  482. type SQL struct {
  483. ClearCursor SQLClearCursor
  484. DeleteAsync SQLDeleteAsync
  485. GetAsync SQLGetAsync
  486. GetAsyncStatus SQLGetAsyncStatus
  487. Query SQLQuery
  488. Translate SQLTranslate
  489. }
  490. // SSL contains the SSL APIs
  491. type SSL struct {
  492. Certificates SSLCertificates
  493. }
  494. // Watcher contains the Watcher APIs
  495. type Watcher struct {
  496. AckWatch WatcherAckWatch
  497. ActivateWatch WatcherActivateWatch
  498. DeactivateWatch WatcherDeactivateWatch
  499. DeleteWatch WatcherDeleteWatch
  500. ExecuteWatch WatcherExecuteWatch
  501. GetWatch WatcherGetWatch
  502. PutWatch WatcherPutWatch
  503. QueryWatches WatcherQueryWatches
  504. Start WatcherStart
  505. Stats WatcherStats
  506. Stop WatcherStop
  507. }
  508. // XPack contains the XPack APIs
  509. type XPack struct {
  510. Info XPackInfo
  511. Usage XPackUsage
  512. }
  513. // New creates new API
  514. func New(t Transport) *API {
  515. return &API{
  516. AutoscalingDeleteAutoscalingPolicy: newAutoscalingDeleteAutoscalingPolicyFunc(t),
  517. AutoscalingGetAutoscalingCapacity: newAutoscalingGetAutoscalingCapacityFunc(t),
  518. AutoscalingGetAutoscalingDecision: newAutoscalingGetAutoscalingDecisionFunc(t),
  519. AutoscalingGetAutoscalingPolicy: newAutoscalingGetAutoscalingPolicyFunc(t),
  520. AutoscalingPutAutoscalingPolicy: newAutoscalingPutAutoscalingPolicyFunc(t),
  521. Bulk: newBulkFunc(t),
  522. ClearScroll: newClearScrollFunc(t),
  523. ClosePointInTime: newClosePointInTimeFunc(t),
  524. Count: newCountFunc(t),
  525. Create: newCreateFunc(t),
  526. DanglingIndicesDeleteDanglingIndex: newDanglingIndicesDeleteDanglingIndexFunc(t),
  527. DanglingIndicesImportDanglingIndex: newDanglingIndicesImportDanglingIndexFunc(t),
  528. DanglingIndicesListDanglingIndices: newDanglingIndicesListDanglingIndicesFunc(t),
  529. DataFrameTransformDeprecatedDeleteTransform: newDataFrameTransformDeprecatedDeleteTransformFunc(t),
  530. DataFrameTransformDeprecatedGetTransform: newDataFrameTransformDeprecatedGetTransformFunc(t),
  531. DataFrameTransformDeprecatedGetTransformStats: newDataFrameTransformDeprecatedGetTransformStatsFunc(t),
  532. DataFrameTransformDeprecatedPreviewTransform: newDataFrameTransformDeprecatedPreviewTransformFunc(t),
  533. DataFrameTransformDeprecatedPutTransform: newDataFrameTransformDeprecatedPutTransformFunc(t),
  534. DataFrameTransformDeprecatedStartTransform: newDataFrameTransformDeprecatedStartTransformFunc(t),
  535. DataFrameTransformDeprecatedStopTransform: newDataFrameTransformDeprecatedStopTransformFunc(t),
  536. DataFrameTransformDeprecatedUpdateTransform: newDataFrameTransformDeprecatedUpdateTransformFunc(t),
  537. DeleteByQuery: newDeleteByQueryFunc(t),
  538. DeleteByQueryRethrottle: newDeleteByQueryRethrottleFunc(t),
  539. Delete: newDeleteFunc(t),
  540. DeleteScript: newDeleteScriptFunc(t),
  541. EnrichDeletePolicy: newEnrichDeletePolicyFunc(t),
  542. EnrichExecutePolicy: newEnrichExecutePolicyFunc(t),
  543. EnrichGetPolicy: newEnrichGetPolicyFunc(t),
  544. EnrichPutPolicy: newEnrichPutPolicyFunc(t),
  545. EnrichStats: newEnrichStatsFunc(t),
  546. EqlDelete: newEqlDeleteFunc(t),
  547. EqlGet: newEqlGetFunc(t),
  548. EqlGetStatus: newEqlGetStatusFunc(t),
  549. EqlSearch: newEqlSearchFunc(t),
  550. Exists: newExistsFunc(t),
  551. ExistsSource: newExistsSourceFunc(t),
  552. Explain: newExplainFunc(t),
  553. FeaturesGetFeatures: newFeaturesGetFeaturesFunc(t),
  554. FeaturesResetFeatures: newFeaturesResetFeaturesFunc(t),
  555. FieldCaps: newFieldCapsFunc(t),
  556. FleetGlobalCheckpoints: newFleetGlobalCheckpointsFunc(t),
  557. FleetMsearch: newFleetMsearchFunc(t),
  558. FleetSearch: newFleetSearchFunc(t),
  559. Get: newGetFunc(t),
  560. GetScriptContext: newGetScriptContextFunc(t),
  561. GetScriptLanguages: newGetScriptLanguagesFunc(t),
  562. GetScript: newGetScriptFunc(t),
  563. GetSource: newGetSourceFunc(t),
  564. GraphExplore: newGraphExploreFunc(t),
  565. Index: newIndexFunc(t),
  566. Info: newInfoFunc(t),
  567. LogstashDeletePipeline: newLogstashDeletePipelineFunc(t),
  568. LogstashGetPipeline: newLogstashGetPipelineFunc(t),
  569. LogstashPutPipeline: newLogstashPutPipelineFunc(t),
  570. Mget: newMgetFunc(t),
  571. Msearch: newMsearchFunc(t),
  572. MsearchTemplate: newMsearchTemplateFunc(t),
  573. Mtermvectors: newMtermvectorsFunc(t),
  574. OpenPointInTime: newOpenPointInTimeFunc(t),
  575. Ping: newPingFunc(t),
  576. PutScript: newPutScriptFunc(t),
  577. RankEval: newRankEvalFunc(t),
  578. Reindex: newReindexFunc(t),
  579. ReindexRethrottle: newReindexRethrottleFunc(t),
  580. RenderSearchTemplate: newRenderSearchTemplateFunc(t),
  581. ScriptsPainlessExecute: newScriptsPainlessExecuteFunc(t),
  582. Scroll: newScrollFunc(t),
  583. SearchMvt: newSearchMvtFunc(t),
  584. Search: newSearchFunc(t),
  585. SearchShards: newSearchShardsFunc(t),
  586. SearchTemplate: newSearchTemplateFunc(t),
  587. SearchableSnapshotsCacheStats: newSearchableSnapshotsCacheStatsFunc(t),
  588. SearchableSnapshotsClearCache: newSearchableSnapshotsClearCacheFunc(t),
  589. SearchableSnapshotsMount: newSearchableSnapshotsMountFunc(t),
  590. SearchableSnapshotsRepositoryStats: newSearchableSnapshotsRepositoryStatsFunc(t),
  591. SearchableSnapshotsStats: newSearchableSnapshotsStatsFunc(t),
  592. ShutdownDeleteNode: newShutdownDeleteNodeFunc(t),
  593. ShutdownGetNode: newShutdownGetNodeFunc(t),
  594. ShutdownPutNode: newShutdownPutNodeFunc(t),
  595. SlmDeleteLifecycle: newSlmDeleteLifecycleFunc(t),
  596. SlmExecuteLifecycle: newSlmExecuteLifecycleFunc(t),
  597. SlmExecuteRetention: newSlmExecuteRetentionFunc(t),
  598. SlmGetLifecycle: newSlmGetLifecycleFunc(t),
  599. SlmGetStats: newSlmGetStatsFunc(t),
  600. SlmGetStatus: newSlmGetStatusFunc(t),
  601. SlmPutLifecycle: newSlmPutLifecycleFunc(t),
  602. SlmStart: newSlmStartFunc(t),
  603. SlmStop: newSlmStopFunc(t),
  604. TermsEnum: newTermsEnumFunc(t),
  605. Termvectors: newTermvectorsFunc(t),
  606. TextStructureFindStructure: newTextStructureFindStructureFunc(t),
  607. TransformDeleteTransform: newTransformDeleteTransformFunc(t),
  608. TransformGetTransform: newTransformGetTransformFunc(t),
  609. TransformGetTransformStats: newTransformGetTransformStatsFunc(t),
  610. TransformPreviewTransform: newTransformPreviewTransformFunc(t),
  611. TransformPutTransform: newTransformPutTransformFunc(t),
  612. TransformStartTransform: newTransformStartTransformFunc(t),
  613. TransformStopTransform: newTransformStopTransformFunc(t),
  614. TransformUpdateTransform: newTransformUpdateTransformFunc(t),
  615. TransformUpgradeTransforms: newTransformUpgradeTransformsFunc(t),
  616. UpdateByQuery: newUpdateByQueryFunc(t),
  617. UpdateByQueryRethrottle: newUpdateByQueryRethrottleFunc(t),
  618. Update: newUpdateFunc(t),
  619. Cat: &Cat{
  620. Aliases: newCatAliasesFunc(t),
  621. Allocation: newCatAllocationFunc(t),
  622. Count: newCatCountFunc(t),
  623. Fielddata: newCatFielddataFunc(t),
  624. Health: newCatHealthFunc(t),
  625. Help: newCatHelpFunc(t),
  626. Indices: newCatIndicesFunc(t),
  627. MLDataFrameAnalytics: newCatMLDataFrameAnalyticsFunc(t),
  628. MLDatafeeds: newCatMLDatafeedsFunc(t),
  629. MLJobs: newCatMLJobsFunc(t),
  630. MLTrainedModels: newCatMLTrainedModelsFunc(t),
  631. Master: newCatMasterFunc(t),
  632. Nodeattrs: newCatNodeattrsFunc(t),
  633. Nodes: newCatNodesFunc(t),
  634. PendingTasks: newCatPendingTasksFunc(t),
  635. Plugins: newCatPluginsFunc(t),
  636. Recovery: newCatRecoveryFunc(t),
  637. Repositories: newCatRepositoriesFunc(t),
  638. Segments: newCatSegmentsFunc(t),
  639. Shards: newCatShardsFunc(t),
  640. Snapshots: newCatSnapshotsFunc(t),
  641. Tasks: newCatTasksFunc(t),
  642. Templates: newCatTemplatesFunc(t),
  643. ThreadPool: newCatThreadPoolFunc(t),
  644. Transforms: newCatTransformsFunc(t),
  645. },
  646. Cluster: &Cluster{
  647. AllocationExplain: newClusterAllocationExplainFunc(t),
  648. DeleteComponentTemplate: newClusterDeleteComponentTemplateFunc(t),
  649. DeleteVotingConfigExclusions: newClusterDeleteVotingConfigExclusionsFunc(t),
  650. ExistsComponentTemplate: newClusterExistsComponentTemplateFunc(t),
  651. GetComponentTemplate: newClusterGetComponentTemplateFunc(t),
  652. GetSettings: newClusterGetSettingsFunc(t),
  653. Health: newClusterHealthFunc(t),
  654. PendingTasks: newClusterPendingTasksFunc(t),
  655. PostVotingConfigExclusions: newClusterPostVotingConfigExclusionsFunc(t),
  656. PutComponentTemplate: newClusterPutComponentTemplateFunc(t),
  657. PutSettings: newClusterPutSettingsFunc(t),
  658. RemoteInfo: newClusterRemoteInfoFunc(t),
  659. Reroute: newClusterRerouteFunc(t),
  660. State: newClusterStateFunc(t),
  661. Stats: newClusterStatsFunc(t),
  662. },
  663. Indices: &Indices{
  664. AddBlock: newIndicesAddBlockFunc(t),
  665. Analyze: newIndicesAnalyzeFunc(t),
  666. ClearCache: newIndicesClearCacheFunc(t),
  667. Clone: newIndicesCloneFunc(t),
  668. Close: newIndicesCloseFunc(t),
  669. CreateDataStream: newIndicesCreateDataStreamFunc(t),
  670. Create: newIndicesCreateFunc(t),
  671. DataStreamsStats: newIndicesDataStreamsStatsFunc(t),
  672. DeleteAlias: newIndicesDeleteAliasFunc(t),
  673. DeleteDataStream: newIndicesDeleteDataStreamFunc(t),
  674. DeleteIndexTemplate: newIndicesDeleteIndexTemplateFunc(t),
  675. Delete: newIndicesDeleteFunc(t),
  676. DeleteTemplate: newIndicesDeleteTemplateFunc(t),
  677. DiskUsage: newIndicesDiskUsageFunc(t),
  678. ExistsAlias: newIndicesExistsAliasFunc(t),
  679. ExistsDocumentType: newIndicesExistsDocumentTypeFunc(t),
  680. ExistsIndexTemplate: newIndicesExistsIndexTemplateFunc(t),
  681. Exists: newIndicesExistsFunc(t),
  682. ExistsTemplate: newIndicesExistsTemplateFunc(t),
  683. FieldUsageStats: newIndicesFieldUsageStatsFunc(t),
  684. Flush: newIndicesFlushFunc(t),
  685. FlushSynced: newIndicesFlushSyncedFunc(t),
  686. Forcemerge: newIndicesForcemergeFunc(t),
  687. Freeze: newIndicesFreezeFunc(t),
  688. GetAlias: newIndicesGetAliasFunc(t),
  689. GetDataStream: newIndicesGetDataStreamFunc(t),
  690. GetFieldMapping: newIndicesGetFieldMappingFunc(t),
  691. GetIndexTemplate: newIndicesGetIndexTemplateFunc(t),
  692. GetMapping: newIndicesGetMappingFunc(t),
  693. Get: newIndicesGetFunc(t),
  694. GetSettings: newIndicesGetSettingsFunc(t),
  695. GetTemplate: newIndicesGetTemplateFunc(t),
  696. GetUpgrade: newIndicesGetUpgradeFunc(t),
  697. MigrateToDataStream: newIndicesMigrateToDataStreamFunc(t),
  698. ModifyDataStream: newIndicesModifyDataStreamFunc(t),
  699. Open: newIndicesOpenFunc(t),
  700. PromoteDataStream: newIndicesPromoteDataStreamFunc(t),
  701. PutAlias: newIndicesPutAliasFunc(t),
  702. PutIndexTemplate: newIndicesPutIndexTemplateFunc(t),
  703. PutMapping: newIndicesPutMappingFunc(t),
  704. PutSettings: newIndicesPutSettingsFunc(t),
  705. PutTemplate: newIndicesPutTemplateFunc(t),
  706. Recovery: newIndicesRecoveryFunc(t),
  707. Refresh: newIndicesRefreshFunc(t),
  708. ReloadSearchAnalyzers: newIndicesReloadSearchAnalyzersFunc(t),
  709. ResolveIndex: newIndicesResolveIndexFunc(t),
  710. Rollover: newIndicesRolloverFunc(t),
  711. Segments: newIndicesSegmentsFunc(t),
  712. ShardStores: newIndicesShardStoresFunc(t),
  713. Shrink: newIndicesShrinkFunc(t),
  714. SimulateIndexTemplate: newIndicesSimulateIndexTemplateFunc(t),
  715. SimulateTemplate: newIndicesSimulateTemplateFunc(t),
  716. Split: newIndicesSplitFunc(t),
  717. Stats: newIndicesStatsFunc(t),
  718. Unfreeze: newIndicesUnfreezeFunc(t),
  719. UpdateAliases: newIndicesUpdateAliasesFunc(t),
  720. Upgrade: newIndicesUpgradeFunc(t),
  721. ValidateQuery: newIndicesValidateQueryFunc(t),
  722. },
  723. Ingest: &Ingest{
  724. DeletePipeline: newIngestDeletePipelineFunc(t),
  725. GeoIPStats: newIngestGeoIPStatsFunc(t),
  726. GetPipeline: newIngestGetPipelineFunc(t),
  727. ProcessorGrok: newIngestProcessorGrokFunc(t),
  728. PutPipeline: newIngestPutPipelineFunc(t),
  729. Simulate: newIngestSimulateFunc(t),
  730. },
  731. Nodes: &Nodes{
  732. ClearMeteringArchive: newNodesClearMeteringArchiveFunc(t),
  733. ClearRepositoriesMeteringArchive: newNodesClearRepositoriesMeteringArchiveFunc(t),
  734. GetMeteringInfo: newNodesGetMeteringInfoFunc(t),
  735. GetRepositoriesMeteringInfo: newNodesGetRepositoriesMeteringInfoFunc(t),
  736. HotThreads: newNodesHotThreadsFunc(t),
  737. Info: newNodesInfoFunc(t),
  738. ReloadSecureSettings: newNodesReloadSecureSettingsFunc(t),
  739. Stats: newNodesStatsFunc(t),
  740. Usage: newNodesUsageFunc(t),
  741. },
  742. Remote: &Remote{},
  743. Snapshot: &Snapshot{
  744. CleanupRepository: newSnapshotCleanupRepositoryFunc(t),
  745. Clone: newSnapshotCloneFunc(t),
  746. CreateRepository: newSnapshotCreateRepositoryFunc(t),
  747. Create: newSnapshotCreateFunc(t),
  748. DeleteRepository: newSnapshotDeleteRepositoryFunc(t),
  749. Delete: newSnapshotDeleteFunc(t),
  750. GetRepository: newSnapshotGetRepositoryFunc(t),
  751. Get: newSnapshotGetFunc(t),
  752. RepositoryAnalyze: newSnapshotRepositoryAnalyzeFunc(t),
  753. Restore: newSnapshotRestoreFunc(t),
  754. Status: newSnapshotStatusFunc(t),
  755. VerifyRepository: newSnapshotVerifyRepositoryFunc(t),
  756. },
  757. Tasks: &Tasks{
  758. Cancel: newTasksCancelFunc(t),
  759. Get: newTasksGetFunc(t),
  760. List: newTasksListFunc(t),
  761. },
  762. AsyncSearch: &AsyncSearch{
  763. Delete: newAsyncSearchDeleteFunc(t),
  764. Get: newAsyncSearchGetFunc(t),
  765. Status: newAsyncSearchStatusFunc(t),
  766. Submit: newAsyncSearchSubmitFunc(t),
  767. },
  768. CCR: &CCR{
  769. DeleteAutoFollowPattern: newCCRDeleteAutoFollowPatternFunc(t),
  770. FollowInfo: newCCRFollowInfoFunc(t),
  771. Follow: newCCRFollowFunc(t),
  772. FollowStats: newCCRFollowStatsFunc(t),
  773. ForgetFollower: newCCRForgetFollowerFunc(t),
  774. GetAutoFollowPattern: newCCRGetAutoFollowPatternFunc(t),
  775. PauseAutoFollowPattern: newCCRPauseAutoFollowPatternFunc(t),
  776. PauseFollow: newCCRPauseFollowFunc(t),
  777. PutAutoFollowPattern: newCCRPutAutoFollowPatternFunc(t),
  778. ResumeAutoFollowPattern: newCCRResumeAutoFollowPatternFunc(t),
  779. ResumeFollow: newCCRResumeFollowFunc(t),
  780. Stats: newCCRStatsFunc(t),
  781. Unfollow: newCCRUnfollowFunc(t),
  782. },
  783. ILM: &ILM{
  784. DeleteLifecycle: newILMDeleteLifecycleFunc(t),
  785. ExplainLifecycle: newILMExplainLifecycleFunc(t),
  786. GetLifecycle: newILMGetLifecycleFunc(t),
  787. GetStatus: newILMGetStatusFunc(t),
  788. MigrateToDataTiers: newILMMigrateToDataTiersFunc(t),
  789. MoveToStep: newILMMoveToStepFunc(t),
  790. PutLifecycle: newILMPutLifecycleFunc(t),
  791. RemovePolicy: newILMRemovePolicyFunc(t),
  792. Retry: newILMRetryFunc(t),
  793. Start: newILMStartFunc(t),
  794. Stop: newILMStopFunc(t),
  795. },
  796. License: &License{
  797. Delete: newLicenseDeleteFunc(t),
  798. GetBasicStatus: newLicenseGetBasicStatusFunc(t),
  799. Get: newLicenseGetFunc(t),
  800. GetTrialStatus: newLicenseGetTrialStatusFunc(t),
  801. Post: newLicensePostFunc(t),
  802. PostStartBasic: newLicensePostStartBasicFunc(t),
  803. PostStartTrial: newLicensePostStartTrialFunc(t),
  804. },
  805. Migration: &Migration{
  806. Deprecations: newMigrationDeprecationsFunc(t),
  807. GetFeatureUpgradeStatus: newMigrationGetFeatureUpgradeStatusFunc(t),
  808. PostFeatureUpgrade: newMigrationPostFeatureUpgradeFunc(t),
  809. },
  810. ML: &ML{
  811. CloseJob: newMLCloseJobFunc(t),
  812. DeleteCalendarEvent: newMLDeleteCalendarEventFunc(t),
  813. DeleteCalendarJob: newMLDeleteCalendarJobFunc(t),
  814. DeleteCalendar: newMLDeleteCalendarFunc(t),
  815. DeleteDataFrameAnalytics: newMLDeleteDataFrameAnalyticsFunc(t),
  816. DeleteDatafeed: newMLDeleteDatafeedFunc(t),
  817. DeleteExpiredData: newMLDeleteExpiredDataFunc(t),
  818. DeleteFilter: newMLDeleteFilterFunc(t),
  819. DeleteForecast: newMLDeleteForecastFunc(t),
  820. DeleteJob: newMLDeleteJobFunc(t),
  821. DeleteModelSnapshot: newMLDeleteModelSnapshotFunc(t),
  822. DeleteTrainedModelAlias: newMLDeleteTrainedModelAliasFunc(t),
  823. DeleteTrainedModel: newMLDeleteTrainedModelFunc(t),
  824. EstimateModelMemory: newMLEstimateModelMemoryFunc(t),
  825. EvaluateDataFrame: newMLEvaluateDataFrameFunc(t),
  826. ExplainDataFrameAnalytics: newMLExplainDataFrameAnalyticsFunc(t),
  827. FindFileStructure: newMLFindFileStructureFunc(t),
  828. FlushJob: newMLFlushJobFunc(t),
  829. Forecast: newMLForecastFunc(t),
  830. GetBuckets: newMLGetBucketsFunc(t),
  831. GetCalendarEvents: newMLGetCalendarEventsFunc(t),
  832. GetCalendars: newMLGetCalendarsFunc(t),
  833. GetCategories: newMLGetCategoriesFunc(t),
  834. GetDataFrameAnalytics: newMLGetDataFrameAnalyticsFunc(t),
  835. GetDataFrameAnalyticsStats: newMLGetDataFrameAnalyticsStatsFunc(t),
  836. GetDatafeedStats: newMLGetDatafeedStatsFunc(t),
  837. GetDatafeeds: newMLGetDatafeedsFunc(t),
  838. GetFilters: newMLGetFiltersFunc(t),
  839. GetInfluencers: newMLGetInfluencersFunc(t),
  840. GetJobStats: newMLGetJobStatsFunc(t),
  841. GetJobs: newMLGetJobsFunc(t),
  842. GetModelSnapshotUpgradeStats: newMLGetModelSnapshotUpgradeStatsFunc(t),
  843. GetModelSnapshots: newMLGetModelSnapshotsFunc(t),
  844. GetOverallBuckets: newMLGetOverallBucketsFunc(t),
  845. GetRecords: newMLGetRecordsFunc(t),
  846. GetTrainedModels: newMLGetTrainedModelsFunc(t),
  847. GetTrainedModelsStats: newMLGetTrainedModelsStatsFunc(t),
  848. Info: newMLInfoFunc(t),
  849. OpenJob: newMLOpenJobFunc(t),
  850. PostCalendarEvents: newMLPostCalendarEventsFunc(t),
  851. PostData: newMLPostDataFunc(t),
  852. PreviewDataFrameAnalytics: newMLPreviewDataFrameAnalyticsFunc(t),
  853. PreviewDatafeed: newMLPreviewDatafeedFunc(t),
  854. PutCalendarJob: newMLPutCalendarJobFunc(t),
  855. PutCalendar: newMLPutCalendarFunc(t),
  856. PutDataFrameAnalytics: newMLPutDataFrameAnalyticsFunc(t),
  857. PutDatafeed: newMLPutDatafeedFunc(t),
  858. PutFilter: newMLPutFilterFunc(t),
  859. PutJob: newMLPutJobFunc(t),
  860. PutTrainedModelAlias: newMLPutTrainedModelAliasFunc(t),
  861. PutTrainedModel: newMLPutTrainedModelFunc(t),
  862. ResetJob: newMLResetJobFunc(t),
  863. RevertModelSnapshot: newMLRevertModelSnapshotFunc(t),
  864. SetUpgradeMode: newMLSetUpgradeModeFunc(t),
  865. StartDataFrameAnalytics: newMLStartDataFrameAnalyticsFunc(t),
  866. StartDatafeed: newMLStartDatafeedFunc(t),
  867. StopDataFrameAnalytics: newMLStopDataFrameAnalyticsFunc(t),
  868. StopDatafeed: newMLStopDatafeedFunc(t),
  869. UpdateDataFrameAnalytics: newMLUpdateDataFrameAnalyticsFunc(t),
  870. UpdateDatafeed: newMLUpdateDatafeedFunc(t),
  871. UpdateFilter: newMLUpdateFilterFunc(t),
  872. UpdateJob: newMLUpdateJobFunc(t),
  873. UpdateModelSnapshot: newMLUpdateModelSnapshotFunc(t),
  874. UpgradeJobSnapshot: newMLUpgradeJobSnapshotFunc(t),
  875. ValidateDetector: newMLValidateDetectorFunc(t),
  876. Validate: newMLValidateFunc(t),
  877. },
  878. Monitoring: &Monitoring{
  879. Bulk: newMonitoringBulkFunc(t),
  880. },
  881. Rollup: &Rollup{
  882. DeleteJob: newRollupDeleteJobFunc(t),
  883. GetJobs: newRollupGetJobsFunc(t),
  884. GetCaps: newRollupGetRollupCapsFunc(t),
  885. GetIndexCaps: newRollupGetRollupIndexCapsFunc(t),
  886. PutJob: newRollupPutJobFunc(t),
  887. Rollup: newRollupRollupFunc(t),
  888. Search: newRollupRollupSearchFunc(t),
  889. StartJob: newRollupStartJobFunc(t),
  890. StopJob: newRollupStopJobFunc(t),
  891. },
  892. Security: &Security{
  893. Authenticate: newSecurityAuthenticateFunc(t),
  894. ChangePassword: newSecurityChangePasswordFunc(t),
  895. ClearAPIKeyCache: newSecurityClearAPIKeyCacheFunc(t),
  896. ClearCachedPrivileges: newSecurityClearCachedPrivilegesFunc(t),
  897. ClearCachedRealms: newSecurityClearCachedRealmsFunc(t),
  898. ClearCachedRoles: newSecurityClearCachedRolesFunc(t),
  899. ClearCachedServiceTokens: newSecurityClearCachedServiceTokensFunc(t),
  900. CreateAPIKey: newSecurityCreateAPIKeyFunc(t),
  901. CreateServiceToken: newSecurityCreateServiceTokenFunc(t),
  902. DeletePrivileges: newSecurityDeletePrivilegesFunc(t),
  903. DeleteRoleMapping: newSecurityDeleteRoleMappingFunc(t),
  904. DeleteRole: newSecurityDeleteRoleFunc(t),
  905. DeleteServiceToken: newSecurityDeleteServiceTokenFunc(t),
  906. DeleteUser: newSecurityDeleteUserFunc(t),
  907. DisableUser: newSecurityDisableUserFunc(t),
  908. EnableUser: newSecurityEnableUserFunc(t),
  909. GetAPIKey: newSecurityGetAPIKeyFunc(t),
  910. GetBuiltinPrivileges: newSecurityGetBuiltinPrivilegesFunc(t),
  911. GetPrivileges: newSecurityGetPrivilegesFunc(t),
  912. GetRoleMapping: newSecurityGetRoleMappingFunc(t),
  913. GetRole: newSecurityGetRoleFunc(t),
  914. GetServiceAccounts: newSecurityGetServiceAccountsFunc(t),
  915. GetServiceCredentials: newSecurityGetServiceCredentialsFunc(t),
  916. GetToken: newSecurityGetTokenFunc(t),
  917. GetUserPrivileges: newSecurityGetUserPrivilegesFunc(t),
  918. GetUser: newSecurityGetUserFunc(t),
  919. GrantAPIKey: newSecurityGrantAPIKeyFunc(t),
  920. HasPrivileges: newSecurityHasPrivilegesFunc(t),
  921. InvalidateAPIKey: newSecurityInvalidateAPIKeyFunc(t),
  922. InvalidateToken: newSecurityInvalidateTokenFunc(t),
  923. PutPrivileges: newSecurityPutPrivilegesFunc(t),
  924. PutRoleMapping: newSecurityPutRoleMappingFunc(t),
  925. PutRole: newSecurityPutRoleFunc(t),
  926. PutUser: newSecurityPutUserFunc(t),
  927. QueryAPIKeys: newSecurityQueryAPIKeysFunc(t),
  928. SamlAuthenticate: newSecuritySamlAuthenticateFunc(t),
  929. SamlCompleteLogout: newSecuritySamlCompleteLogoutFunc(t),
  930. SamlInvalidate: newSecuritySamlInvalidateFunc(t),
  931. SamlLogout: newSecuritySamlLogoutFunc(t),
  932. SamlPrepareAuthentication: newSecuritySamlPrepareAuthenticationFunc(t),
  933. SamlServiceProviderMetadata: newSecuritySamlServiceProviderMetadataFunc(t),
  934. },
  935. SQL: &SQL{
  936. ClearCursor: newSQLClearCursorFunc(t),
  937. DeleteAsync: newSQLDeleteAsyncFunc(t),
  938. GetAsync: newSQLGetAsyncFunc(t),
  939. GetAsyncStatus: newSQLGetAsyncStatusFunc(t),
  940. Query: newSQLQueryFunc(t),
  941. Translate: newSQLTranslateFunc(t),
  942. },
  943. SSL: &SSL{
  944. Certificates: newSSLCertificatesFunc(t),
  945. },
  946. Watcher: &Watcher{
  947. AckWatch: newWatcherAckWatchFunc(t),
  948. ActivateWatch: newWatcherActivateWatchFunc(t),
  949. DeactivateWatch: newWatcherDeactivateWatchFunc(t),
  950. DeleteWatch: newWatcherDeleteWatchFunc(t),
  951. ExecuteWatch: newWatcherExecuteWatchFunc(t),
  952. GetWatch: newWatcherGetWatchFunc(t),
  953. PutWatch: newWatcherPutWatchFunc(t),
  954. QueryWatches: newWatcherQueryWatchesFunc(t),
  955. Start: newWatcherStartFunc(t),
  956. Stats: newWatcherStatsFunc(t),
  957. Stop: newWatcherStopFunc(t),
  958. },
  959. XPack: &XPack{
  960. Info: newXPackInfoFunc(t),
  961. Usage: newXPackUsageFunc(t),
  962. },
  963. }
  964. }