API generation

This commit is contained in:
delvedor
2019-03-19 10:04:35 +01:00
parent 2458bb5721
commit 1acfd1b895
7 changed files with 134 additions and 1031 deletions

View File

@ -53,28 +53,9 @@ function ESAPI (opts) {
threadPool: lazyLoad('cat.thread_pool', opts)
},
ccr: {
<<<<<<< HEAD
delete_auto_follow_pattern: lazyLoad('./api/ccr.delete_auto_follow_pattern.js', opts),
deleteAutoFollowPattern: lazyLoad('./api/ccr.delete_auto_follow_pattern.js', opts),
follow: lazyLoad('./api/ccr.follow.js', opts),
follow_stats: lazyLoad('./api/ccr.follow_stats.js', opts),
followStats: lazyLoad('./api/ccr.follow_stats.js', opts),
get_auto_follow_pattern: lazyLoad('./api/ccr.get_auto_follow_pattern.js', opts),
getAutoFollowPattern: lazyLoad('./api/ccr.get_auto_follow_pattern.js', opts),
pause_follow: lazyLoad('./api/ccr.pause_follow.js', opts),
pauseFollow: lazyLoad('./api/ccr.pause_follow.js', opts),
put_auto_follow_pattern: lazyLoad('./api/ccr.put_auto_follow_pattern.js', opts),
putAutoFollowPattern: lazyLoad('./api/ccr.put_auto_follow_pattern.js', opts),
resume_follow: lazyLoad('./api/ccr.resume_follow.js', opts),
resumeFollow: lazyLoad('./api/ccr.resume_follow.js', opts),
stats: lazyLoad('./api/ccr.stats.js', opts),
unfollow: lazyLoad('./api/ccr.unfollow.js', opts)
=======
delete_auto_follow_pattern: lazyLoad('ccr.delete_auto_follow_pattern', opts),
deleteAutoFollowPattern: lazyLoad('ccr.delete_auto_follow_pattern', opts),
follow: lazyLoad('ccr.follow', opts),
follow_info: lazyLoad('ccr.follow_info', opts),
followInfo: lazyLoad('ccr.follow_info', opts),
follow_stats: lazyLoad('ccr.follow_stats', opts),
followStats: lazyLoad('ccr.follow_stats', opts),
get_auto_follow_pattern: lazyLoad('ccr.get_auto_follow_pattern', opts),
@ -87,7 +68,6 @@ function ESAPI (opts) {
resumeFollow: lazyLoad('ccr.resume_follow', opts),
stats: lazyLoad('ccr.stats', opts),
unfollow: lazyLoad('ccr.unfollow', opts)
>>>>>>> 3b41c55... Feat: Support bundlers (#783)
},
clear_scroll: lazyLoad('clear_scroll', opts),
clearScroll: lazyLoad('clear_scroll', opts),
@ -220,113 +200,11 @@ function ESAPI (opts) {
putPipeline: lazyLoad('ingest.put_pipeline', opts),
simulate: lazyLoad('ingest.simulate', opts)
},
<<<<<<< HEAD
mget: lazyLoad('./api/mget.js', opts),
msearch: lazyLoad('./api/msearch.js', opts),
msearch_template: lazyLoad('./api/msearch_template.js', opts),
msearchTemplate: lazyLoad('./api/msearch_template.js', opts),
mtermvectors: lazyLoad('./api/mtermvectors.js', opts),
=======
mget: lazyLoad('mget', opts),
ml: {
close_job: lazyLoad('ml.close_job', opts),
closeJob: lazyLoad('ml.close_job', opts),
delete_calendar: lazyLoad('ml.delete_calendar', opts),
deleteCalendar: lazyLoad('ml.delete_calendar', opts),
delete_calendar_event: lazyLoad('ml.delete_calendar_event', opts),
deleteCalendarEvent: lazyLoad('ml.delete_calendar_event', opts),
delete_calendar_job: lazyLoad('ml.delete_calendar_job', opts),
deleteCalendarJob: lazyLoad('ml.delete_calendar_job', opts),
delete_datafeed: lazyLoad('ml.delete_datafeed', opts),
deleteDatafeed: lazyLoad('ml.delete_datafeed', opts),
delete_expired_data: lazyLoad('ml.delete_expired_data', opts),
deleteExpiredData: lazyLoad('ml.delete_expired_data', opts),
delete_filter: lazyLoad('ml.delete_filter', opts),
deleteFilter: lazyLoad('ml.delete_filter', opts),
delete_forecast: lazyLoad('ml.delete_forecast', opts),
deleteForecast: lazyLoad('ml.delete_forecast', opts),
delete_job: lazyLoad('ml.delete_job', opts),
deleteJob: lazyLoad('ml.delete_job', opts),
delete_model_snapshot: lazyLoad('ml.delete_model_snapshot', opts),
deleteModelSnapshot: lazyLoad('ml.delete_model_snapshot', opts),
find_file_structure: lazyLoad('ml.find_file_structure', opts),
findFileStructure: lazyLoad('ml.find_file_structure', opts),
flush_job: lazyLoad('ml.flush_job', opts),
flushJob: lazyLoad('ml.flush_job', opts),
forecast: lazyLoad('ml.forecast', opts),
get_buckets: lazyLoad('ml.get_buckets', opts),
getBuckets: lazyLoad('ml.get_buckets', opts),
get_calendar_events: lazyLoad('ml.get_calendar_events', opts),
getCalendarEvents: lazyLoad('ml.get_calendar_events', opts),
get_calendars: lazyLoad('ml.get_calendars', opts),
getCalendars: lazyLoad('ml.get_calendars', opts),
get_categories: lazyLoad('ml.get_categories', opts),
getCategories: lazyLoad('ml.get_categories', opts),
get_datafeed_stats: lazyLoad('ml.get_datafeed_stats', opts),
getDatafeedStats: lazyLoad('ml.get_datafeed_stats', opts),
get_datafeeds: lazyLoad('ml.get_datafeeds', opts),
getDatafeeds: lazyLoad('ml.get_datafeeds', opts),
get_filters: lazyLoad('ml.get_filters', opts),
getFilters: lazyLoad('ml.get_filters', opts),
get_influencers: lazyLoad('ml.get_influencers', opts),
getInfluencers: lazyLoad('ml.get_influencers', opts),
get_job_stats: lazyLoad('ml.get_job_stats', opts),
getJobStats: lazyLoad('ml.get_job_stats', opts),
get_jobs: lazyLoad('ml.get_jobs', opts),
getJobs: lazyLoad('ml.get_jobs', opts),
get_model_snapshots: lazyLoad('ml.get_model_snapshots', opts),
getModelSnapshots: lazyLoad('ml.get_model_snapshots', opts),
get_overall_buckets: lazyLoad('ml.get_overall_buckets', opts),
getOverallBuckets: lazyLoad('ml.get_overall_buckets', opts),
get_records: lazyLoad('ml.get_records', opts),
getRecords: lazyLoad('ml.get_records', opts),
info: lazyLoad('ml.info', opts),
open_job: lazyLoad('ml.open_job', opts),
openJob: lazyLoad('ml.open_job', opts),
post_calendar_events: lazyLoad('ml.post_calendar_events', opts),
postCalendarEvents: lazyLoad('ml.post_calendar_events', opts),
post_data: lazyLoad('ml.post_data', opts),
postData: lazyLoad('ml.post_data', opts),
preview_datafeed: lazyLoad('ml.preview_datafeed', opts),
previewDatafeed: lazyLoad('ml.preview_datafeed', opts),
put_calendar: lazyLoad('ml.put_calendar', opts),
putCalendar: lazyLoad('ml.put_calendar', opts),
put_calendar_job: lazyLoad('ml.put_calendar_job', opts),
putCalendarJob: lazyLoad('ml.put_calendar_job', opts),
put_datafeed: lazyLoad('ml.put_datafeed', opts),
putDatafeed: lazyLoad('ml.put_datafeed', opts),
put_filter: lazyLoad('ml.put_filter', opts),
putFilter: lazyLoad('ml.put_filter', opts),
put_job: lazyLoad('ml.put_job', opts),
putJob: lazyLoad('ml.put_job', opts),
revert_model_snapshot: lazyLoad('ml.revert_model_snapshot', opts),
revertModelSnapshot: lazyLoad('ml.revert_model_snapshot', opts),
set_upgrade_mode: lazyLoad('ml.set_upgrade_mode', opts),
setUpgradeMode: lazyLoad('ml.set_upgrade_mode', opts),
start_datafeed: lazyLoad('ml.start_datafeed', opts),
startDatafeed: lazyLoad('ml.start_datafeed', opts),
stop_datafeed: lazyLoad('ml.stop_datafeed', opts),
stopDatafeed: lazyLoad('ml.stop_datafeed', opts),
update_datafeed: lazyLoad('ml.update_datafeed', opts),
updateDatafeed: lazyLoad('ml.update_datafeed', opts),
update_filter: lazyLoad('ml.update_filter', opts),
updateFilter: lazyLoad('ml.update_filter', opts),
update_job: lazyLoad('ml.update_job', opts),
updateJob: lazyLoad('ml.update_job', opts),
update_model_snapshot: lazyLoad('ml.update_model_snapshot', opts),
updateModelSnapshot: lazyLoad('ml.update_model_snapshot', opts),
validate: lazyLoad('ml.validate', opts),
validate_detector: lazyLoad('ml.validate_detector', opts),
validateDetector: lazyLoad('ml.validate_detector', opts)
},
monitoring: {
bulk: lazyLoad('monitoring.bulk', opts)
},
msearch: lazyLoad('msearch', opts),
msearch_template: lazyLoad('msearch_template', opts),
msearchTemplate: lazyLoad('msearch_template', opts),
mtermvectors: lazyLoad('mtermvectors', opts),
>>>>>>> 3b41c55... Feat: Support bundlers (#783)
nodes: {
hot_threads: lazyLoad('nodes.hot_threads', opts),
hotThreads: lazyLoad('nodes.hot_threads', opts),
@ -336,26 +214,6 @@ function ESAPI (opts) {
stats: lazyLoad('nodes.stats', opts),
usage: lazyLoad('nodes.usage', opts)
},
<<<<<<< HEAD
ping: lazyLoad('./api/ping.js', opts),
put_script: lazyLoad('./api/put_script.js', opts),
putScript: lazyLoad('./api/put_script.js', opts),
rank_eval: lazyLoad('./api/rank_eval.js', opts),
rankEval: lazyLoad('./api/rank_eval.js', opts),
reindex: lazyLoad('./api/reindex.js', opts),
reindex_rethrottle: lazyLoad('./api/reindex_rethrottle.js', opts),
reindexRethrottle: lazyLoad('./api/reindex_rethrottle.js', opts),
render_search_template: lazyLoad('./api/render_search_template.js', opts),
renderSearchTemplate: lazyLoad('./api/render_search_template.js', opts),
scripts_painless_execute: lazyLoad('./api/scripts_painless_execute.js', opts),
scriptsPainlessExecute: lazyLoad('./api/scripts_painless_execute.js', opts),
scroll: lazyLoad('./api/scroll.js', opts),
search: lazyLoad('./api/search.js', opts),
search_shards: lazyLoad('./api/search_shards.js', opts),
searchShards: lazyLoad('./api/search_shards.js', opts),
search_template: lazyLoad('./api/search_template.js', opts),
searchTemplate: lazyLoad('./api/search_template.js', opts),
=======
ping: lazyLoad('ping', opts),
put_script: lazyLoad('put_script', opts),
putScript: lazyLoad('put_script', opts),
@ -374,58 +232,6 @@ function ESAPI (opts) {
searchShards: lazyLoad('search_shards', opts),
search_template: lazyLoad('search_template', opts),
searchTemplate: lazyLoad('search_template', opts),
security: {
authenticate: lazyLoad('security.authenticate', opts),
change_password: lazyLoad('security.change_password', opts),
changePassword: lazyLoad('security.change_password', opts),
clear_cached_realms: lazyLoad('security.clear_cached_realms', opts),
clearCachedRealms: lazyLoad('security.clear_cached_realms', opts),
clear_cached_roles: lazyLoad('security.clear_cached_roles', opts),
clearCachedRoles: lazyLoad('security.clear_cached_roles', opts),
create_api_key: lazyLoad('security.create_api_key', opts),
createApiKey: lazyLoad('security.create_api_key', opts),
delete_privileges: lazyLoad('security.delete_privileges', opts),
deletePrivileges: lazyLoad('security.delete_privileges', opts),
delete_role: lazyLoad('security.delete_role', opts),
deleteRole: lazyLoad('security.delete_role', opts),
delete_role_mapping: lazyLoad('security.delete_role_mapping', opts),
deleteRoleMapping: lazyLoad('security.delete_role_mapping', opts),
delete_user: lazyLoad('security.delete_user', opts),
deleteUser: lazyLoad('security.delete_user', opts),
disable_user: lazyLoad('security.disable_user', opts),
disableUser: lazyLoad('security.disable_user', opts),
enable_user: lazyLoad('security.enable_user', opts),
enableUser: lazyLoad('security.enable_user', opts),
get_api_key: lazyLoad('security.get_api_key', opts),
getApiKey: lazyLoad('security.get_api_key', opts),
get_privileges: lazyLoad('security.get_privileges', opts),
getPrivileges: lazyLoad('security.get_privileges', opts),
get_role: lazyLoad('security.get_role', opts),
getRole: lazyLoad('security.get_role', opts),
get_role_mapping: lazyLoad('security.get_role_mapping', opts),
getRoleMapping: lazyLoad('security.get_role_mapping', opts),
get_token: lazyLoad('security.get_token', opts),
getToken: lazyLoad('security.get_token', opts),
get_user: lazyLoad('security.get_user', opts),
getUser: lazyLoad('security.get_user', opts),
get_user_privileges: lazyLoad('security.get_user_privileges', opts),
getUserPrivileges: lazyLoad('security.get_user_privileges', opts),
has_privileges: lazyLoad('security.has_privileges', opts),
hasPrivileges: lazyLoad('security.has_privileges', opts),
invalidate_api_key: lazyLoad('security.invalidate_api_key', opts),
invalidateApiKey: lazyLoad('security.invalidate_api_key', opts),
invalidate_token: lazyLoad('security.invalidate_token', opts),
invalidateToken: lazyLoad('security.invalidate_token', opts),
put_privileges: lazyLoad('security.put_privileges', opts),
putPrivileges: lazyLoad('security.put_privileges', opts),
put_role: lazyLoad('security.put_role', opts),
putRole: lazyLoad('security.put_role', opts),
put_role_mapping: lazyLoad('security.put_role_mapping', opts),
putRoleMapping: lazyLoad('security.put_role_mapping', opts),
put_user: lazyLoad('security.put_user', opts),
putUser: lazyLoad('security.put_user', opts)
},
>>>>>>> 3b41c55... Feat: Support bundlers (#783)
snapshot: {
create: lazyLoad('snapshot.create', opts),
create_repository: lazyLoad('snapshot.create_repository', opts),
@ -441,12 +247,6 @@ function ESAPI (opts) {
verify_repository: lazyLoad('snapshot.verify_repository', opts),
verifyRepository: lazyLoad('snapshot.verify_repository', opts)
},
<<<<<<< HEAD
=======
ssl: {
certificates: lazyLoad('ssl.certificates', opts)
},
>>>>>>> 3b41c55... Feat: Support bundlers (#783)
tasks: {
cancel: lazyLoad('tasks.cancel', opts),
get: lazyLoad('tasks.get', opts),
@ -483,96 +283,96 @@ function ESAPI (opts) {
upgrade: lazyLoad('xpack.migration.upgrade', opts)
},
ml: {
close_job: lazyLoad('./api/xpack.ml.close_job.js', opts),
closeJob: lazyLoad('./api/xpack.ml.close_job.js', opts),
delete_calendar: lazyLoad('./api/xpack.ml.delete_calendar.js', opts),
deleteCalendar: lazyLoad('./api/xpack.ml.delete_calendar.js', opts),
delete_calendar_event: lazyLoad('./api/xpack.ml.delete_calendar_event.js', opts),
deleteCalendarEvent: lazyLoad('./api/xpack.ml.delete_calendar_event.js', opts),
delete_calendar_job: lazyLoad('./api/xpack.ml.delete_calendar_job.js', opts),
deleteCalendarJob: lazyLoad('./api/xpack.ml.delete_calendar_job.js', opts),
delete_datafeed: lazyLoad('./api/xpack.ml.delete_datafeed.js', opts),
deleteDatafeed: lazyLoad('./api/xpack.ml.delete_datafeed.js', opts),
delete_expired_data: lazyLoad('./api/xpack.ml.delete_expired_data.js', opts),
deleteExpiredData: lazyLoad('./api/xpack.ml.delete_expired_data.js', opts),
delete_filter: lazyLoad('./api/xpack.ml.delete_filter.js', opts),
deleteFilter: lazyLoad('./api/xpack.ml.delete_filter.js', opts),
delete_forecast: lazyLoad('./api/xpack.ml.delete_forecast.js', opts),
deleteForecast: lazyLoad('./api/xpack.ml.delete_forecast.js', opts),
delete_job: lazyLoad('./api/xpack.ml.delete_job.js', opts),
deleteJob: lazyLoad('./api/xpack.ml.delete_job.js', opts),
delete_model_snapshot: lazyLoad('./api/xpack.ml.delete_model_snapshot.js', opts),
deleteModelSnapshot: lazyLoad('./api/xpack.ml.delete_model_snapshot.js', opts),
find_file_structure: lazyLoad('./api/xpack.ml.find_file_structure.js', opts),
findFileStructure: lazyLoad('./api/xpack.ml.find_file_structure.js', opts),
flush_job: lazyLoad('./api/xpack.ml.flush_job.js', opts),
flushJob: lazyLoad('./api/xpack.ml.flush_job.js', opts),
forecast: lazyLoad('./api/xpack.ml.forecast.js', opts),
get_buckets: lazyLoad('./api/xpack.ml.get_buckets.js', opts),
getBuckets: lazyLoad('./api/xpack.ml.get_buckets.js', opts),
get_calendar_events: lazyLoad('./api/xpack.ml.get_calendar_events.js', opts),
getCalendarEvents: lazyLoad('./api/xpack.ml.get_calendar_events.js', opts),
get_calendars: lazyLoad('./api/xpack.ml.get_calendars.js', opts),
getCalendars: lazyLoad('./api/xpack.ml.get_calendars.js', opts),
get_categories: lazyLoad('./api/xpack.ml.get_categories.js', opts),
getCategories: lazyLoad('./api/xpack.ml.get_categories.js', opts),
get_datafeed_stats: lazyLoad('./api/xpack.ml.get_datafeed_stats.js', opts),
getDatafeedStats: lazyLoad('./api/xpack.ml.get_datafeed_stats.js', opts),
get_datafeeds: lazyLoad('./api/xpack.ml.get_datafeeds.js', opts),
getDatafeeds: lazyLoad('./api/xpack.ml.get_datafeeds.js', opts),
get_filters: lazyLoad('./api/xpack.ml.get_filters.js', opts),
getFilters: lazyLoad('./api/xpack.ml.get_filters.js', opts),
get_influencers: lazyLoad('./api/xpack.ml.get_influencers.js', opts),
getInfluencers: lazyLoad('./api/xpack.ml.get_influencers.js', opts),
get_job_stats: lazyLoad('./api/xpack.ml.get_job_stats.js', opts),
getJobStats: lazyLoad('./api/xpack.ml.get_job_stats.js', opts),
get_jobs: lazyLoad('./api/xpack.ml.get_jobs.js', opts),
getJobs: lazyLoad('./api/xpack.ml.get_jobs.js', opts),
get_model_snapshots: lazyLoad('./api/xpack.ml.get_model_snapshots.js', opts),
getModelSnapshots: lazyLoad('./api/xpack.ml.get_model_snapshots.js', opts),
get_overall_buckets: lazyLoad('./api/xpack.ml.get_overall_buckets.js', opts),
getOverallBuckets: lazyLoad('./api/xpack.ml.get_overall_buckets.js', opts),
get_records: lazyLoad('./api/xpack.ml.get_records.js', opts),
getRecords: lazyLoad('./api/xpack.ml.get_records.js', opts),
info: lazyLoad('./api/xpack.ml.info.js', opts),
open_job: lazyLoad('./api/xpack.ml.open_job.js', opts),
openJob: lazyLoad('./api/xpack.ml.open_job.js', opts),
post_calendar_events: lazyLoad('./api/xpack.ml.post_calendar_events.js', opts),
postCalendarEvents: lazyLoad('./api/xpack.ml.post_calendar_events.js', opts),
post_data: lazyLoad('./api/xpack.ml.post_data.js', opts),
postData: lazyLoad('./api/xpack.ml.post_data.js', opts),
preview_datafeed: lazyLoad('./api/xpack.ml.preview_datafeed.js', opts),
previewDatafeed: lazyLoad('./api/xpack.ml.preview_datafeed.js', opts),
put_calendar: lazyLoad('./api/xpack.ml.put_calendar.js', opts),
putCalendar: lazyLoad('./api/xpack.ml.put_calendar.js', opts),
put_calendar_job: lazyLoad('./api/xpack.ml.put_calendar_job.js', opts),
putCalendarJob: lazyLoad('./api/xpack.ml.put_calendar_job.js', opts),
put_datafeed: lazyLoad('./api/xpack.ml.put_datafeed.js', opts),
putDatafeed: lazyLoad('./api/xpack.ml.put_datafeed.js', opts),
put_filter: lazyLoad('./api/xpack.ml.put_filter.js', opts),
putFilter: lazyLoad('./api/xpack.ml.put_filter.js', opts),
put_job: lazyLoad('./api/xpack.ml.put_job.js', opts),
putJob: lazyLoad('./api/xpack.ml.put_job.js', opts),
revert_model_snapshot: lazyLoad('./api/xpack.ml.revert_model_snapshot.js', opts),
revertModelSnapshot: lazyLoad('./api/xpack.ml.revert_model_snapshot.js', opts),
start_datafeed: lazyLoad('./api/xpack.ml.start_datafeed.js', opts),
startDatafeed: lazyLoad('./api/xpack.ml.start_datafeed.js', opts),
stop_datafeed: lazyLoad('./api/xpack.ml.stop_datafeed.js', opts),
stopDatafeed: lazyLoad('./api/xpack.ml.stop_datafeed.js', opts),
update_datafeed: lazyLoad('./api/xpack.ml.update_datafeed.js', opts),
updateDatafeed: lazyLoad('./api/xpack.ml.update_datafeed.js', opts),
update_filter: lazyLoad('./api/xpack.ml.update_filter.js', opts),
updateFilter: lazyLoad('./api/xpack.ml.update_filter.js', opts),
update_job: lazyLoad('./api/xpack.ml.update_job.js', opts),
updateJob: lazyLoad('./api/xpack.ml.update_job.js', opts),
update_model_snapshot: lazyLoad('./api/xpack.ml.update_model_snapshot.js', opts),
updateModelSnapshot: lazyLoad('./api/xpack.ml.update_model_snapshot.js', opts),
validate: lazyLoad('./api/xpack.ml.validate.js', opts),
validate_detector: lazyLoad('./api/xpack.ml.validate_detector.js', opts),
validateDetector: lazyLoad('./api/xpack.ml.validate_detector.js', opts)
close_job: lazyLoad('xpack.ml.close_job', opts),
closeJob: lazyLoad('xpack.ml.close_job', opts),
delete_calendar: lazyLoad('xpack.ml.delete_calendar', opts),
deleteCalendar: lazyLoad('xpack.ml.delete_calendar', opts),
delete_calendar_event: lazyLoad('xpack.ml.delete_calendar_event', opts),
deleteCalendarEvent: lazyLoad('xpack.ml.delete_calendar_event', opts),
delete_calendar_job: lazyLoad('xpack.ml.delete_calendar_job', opts),
deleteCalendarJob: lazyLoad('xpack.ml.delete_calendar_job', opts),
delete_datafeed: lazyLoad('xpack.ml.delete_datafeed', opts),
deleteDatafeed: lazyLoad('xpack.ml.delete_datafeed', opts),
delete_expired_data: lazyLoad('xpack.ml.delete_expired_data', opts),
deleteExpiredData: lazyLoad('xpack.ml.delete_expired_data', opts),
delete_filter: lazyLoad('xpack.ml.delete_filter', opts),
deleteFilter: lazyLoad('xpack.ml.delete_filter', opts),
delete_forecast: lazyLoad('xpack.ml.delete_forecast', opts),
deleteForecast: lazyLoad('xpack.ml.delete_forecast', opts),
delete_job: lazyLoad('xpack.ml.delete_job', opts),
deleteJob: lazyLoad('xpack.ml.delete_job', opts),
delete_model_snapshot: lazyLoad('xpack.ml.delete_model_snapshot', opts),
deleteModelSnapshot: lazyLoad('xpack.ml.delete_model_snapshot', opts),
find_file_structure: lazyLoad('xpack.ml.find_file_structure', opts),
findFileStructure: lazyLoad('xpack.ml.find_file_structure', opts),
flush_job: lazyLoad('xpack.ml.flush_job', opts),
flushJob: lazyLoad('xpack.ml.flush_job', opts),
forecast: lazyLoad('xpack.ml.forecast', opts),
get_buckets: lazyLoad('xpack.ml.get_buckets', opts),
getBuckets: lazyLoad('xpack.ml.get_buckets', opts),
get_calendar_events: lazyLoad('xpack.ml.get_calendar_events', opts),
getCalendarEvents: lazyLoad('xpack.ml.get_calendar_events', opts),
get_calendars: lazyLoad('xpack.ml.get_calendars', opts),
getCalendars: lazyLoad('xpack.ml.get_calendars', opts),
get_categories: lazyLoad('xpack.ml.get_categories', opts),
getCategories: lazyLoad('xpack.ml.get_categories', opts),
get_datafeed_stats: lazyLoad('xpack.ml.get_datafeed_stats', opts),
getDatafeedStats: lazyLoad('xpack.ml.get_datafeed_stats', opts),
get_datafeeds: lazyLoad('xpack.ml.get_datafeeds', opts),
getDatafeeds: lazyLoad('xpack.ml.get_datafeeds', opts),
get_filters: lazyLoad('xpack.ml.get_filters', opts),
getFilters: lazyLoad('xpack.ml.get_filters', opts),
get_influencers: lazyLoad('xpack.ml.get_influencers', opts),
getInfluencers: lazyLoad('xpack.ml.get_influencers', opts),
get_job_stats: lazyLoad('xpack.ml.get_job_stats', opts),
getJobStats: lazyLoad('xpack.ml.get_job_stats', opts),
get_jobs: lazyLoad('xpack.ml.get_jobs', opts),
getJobs: lazyLoad('xpack.ml.get_jobs', opts),
get_model_snapshots: lazyLoad('xpack.ml.get_model_snapshots', opts),
getModelSnapshots: lazyLoad('xpack.ml.get_model_snapshots', opts),
get_overall_buckets: lazyLoad('xpack.ml.get_overall_buckets', opts),
getOverallBuckets: lazyLoad('xpack.ml.get_overall_buckets', opts),
get_records: lazyLoad('xpack.ml.get_records', opts),
getRecords: lazyLoad('xpack.ml.get_records', opts),
info: lazyLoad('xpack.ml.info', opts),
open_job: lazyLoad('xpack.ml.open_job', opts),
openJob: lazyLoad('xpack.ml.open_job', opts),
post_calendar_events: lazyLoad('xpack.ml.post_calendar_events', opts),
postCalendarEvents: lazyLoad('xpack.ml.post_calendar_events', opts),
post_data: lazyLoad('xpack.ml.post_data', opts),
postData: lazyLoad('xpack.ml.post_data', opts),
preview_datafeed: lazyLoad('xpack.ml.preview_datafeed', opts),
previewDatafeed: lazyLoad('xpack.ml.preview_datafeed', opts),
put_calendar: lazyLoad('xpack.ml.put_calendar', opts),
putCalendar: lazyLoad('xpack.ml.put_calendar', opts),
put_calendar_job: lazyLoad('xpack.ml.put_calendar_job', opts),
putCalendarJob: lazyLoad('xpack.ml.put_calendar_job', opts),
put_datafeed: lazyLoad('xpack.ml.put_datafeed', opts),
putDatafeed: lazyLoad('xpack.ml.put_datafeed', opts),
put_filter: lazyLoad('xpack.ml.put_filter', opts),
putFilter: lazyLoad('xpack.ml.put_filter', opts),
put_job: lazyLoad('xpack.ml.put_job', opts),
putJob: lazyLoad('xpack.ml.put_job', opts),
revert_model_snapshot: lazyLoad('xpack.ml.revert_model_snapshot', opts),
revertModelSnapshot: lazyLoad('xpack.ml.revert_model_snapshot', opts),
start_datafeed: lazyLoad('xpack.ml.start_datafeed', opts),
startDatafeed: lazyLoad('xpack.ml.start_datafeed', opts),
stop_datafeed: lazyLoad('xpack.ml.stop_datafeed', opts),
stopDatafeed: lazyLoad('xpack.ml.stop_datafeed', opts),
update_datafeed: lazyLoad('xpack.ml.update_datafeed', opts),
updateDatafeed: lazyLoad('xpack.ml.update_datafeed', opts),
update_filter: lazyLoad('xpack.ml.update_filter', opts),
updateFilter: lazyLoad('xpack.ml.update_filter', opts),
update_job: lazyLoad('xpack.ml.update_job', opts),
updateJob: lazyLoad('xpack.ml.update_job', opts),
update_model_snapshot: lazyLoad('xpack.ml.update_model_snapshot', opts),
updateModelSnapshot: lazyLoad('xpack.ml.update_model_snapshot', opts),
validate: lazyLoad('xpack.ml.validate', opts),
validate_detector: lazyLoad('xpack.ml.validate_detector', opts),
validateDetector: lazyLoad('xpack.ml.validate_detector', opts)
},
monitoring: {
bulk: lazyLoad('./api/xpack.monitoring.bulk.js', opts)
bulk: lazyLoad('xpack.monitoring.bulk', opts)
},
rollup: {
delete_job: lazyLoad('xpack.rollup.delete_job', opts),
@ -593,49 +393,49 @@ function ESAPI (opts) {
stopJob: lazyLoad('xpack.rollup.stop_job', opts)
},
security: {
authenticate: lazyLoad('./api/xpack.security.authenticate.js', opts),
change_password: lazyLoad('./api/xpack.security.change_password.js', opts),
changePassword: lazyLoad('./api/xpack.security.change_password.js', opts),
clear_cached_realms: lazyLoad('./api/xpack.security.clear_cached_realms.js', opts),
clearCachedRealms: lazyLoad('./api/xpack.security.clear_cached_realms.js', opts),
clear_cached_roles: lazyLoad('./api/xpack.security.clear_cached_roles.js', opts),
clearCachedRoles: lazyLoad('./api/xpack.security.clear_cached_roles.js', opts),
delete_privileges: lazyLoad('./api/xpack.security.delete_privileges.js', opts),
deletePrivileges: lazyLoad('./api/xpack.security.delete_privileges.js', opts),
delete_role: lazyLoad('./api/xpack.security.delete_role.js', opts),
deleteRole: lazyLoad('./api/xpack.security.delete_role.js', opts),
delete_role_mapping: lazyLoad('./api/xpack.security.delete_role_mapping.js', opts),
deleteRoleMapping: lazyLoad('./api/xpack.security.delete_role_mapping.js', opts),
delete_user: lazyLoad('./api/xpack.security.delete_user.js', opts),
deleteUser: lazyLoad('./api/xpack.security.delete_user.js', opts),
disable_user: lazyLoad('./api/xpack.security.disable_user.js', opts),
disableUser: lazyLoad('./api/xpack.security.disable_user.js', opts),
enable_user: lazyLoad('./api/xpack.security.enable_user.js', opts),
enableUser: lazyLoad('./api/xpack.security.enable_user.js', opts),
get_privileges: lazyLoad('./api/xpack.security.get_privileges.js', opts),
getPrivileges: lazyLoad('./api/xpack.security.get_privileges.js', opts),
get_role: lazyLoad('./api/xpack.security.get_role.js', opts),
getRole: lazyLoad('./api/xpack.security.get_role.js', opts),
get_role_mapping: lazyLoad('./api/xpack.security.get_role_mapping.js', opts),
getRoleMapping: lazyLoad('./api/xpack.security.get_role_mapping.js', opts),
get_token: lazyLoad('./api/xpack.security.get_token.js', opts),
getToken: lazyLoad('./api/xpack.security.get_token.js', opts),
get_user: lazyLoad('./api/xpack.security.get_user.js', opts),
getUser: lazyLoad('./api/xpack.security.get_user.js', opts),
get_user_privileges: lazyLoad('./api/xpack.security.get_user_privileges.js', opts),
getUserPrivileges: lazyLoad('./api/xpack.security.get_user_privileges.js', opts),
has_privileges: lazyLoad('./api/xpack.security.has_privileges.js', opts),
hasPrivileges: lazyLoad('./api/xpack.security.has_privileges.js', opts),
invalidate_token: lazyLoad('./api/xpack.security.invalidate_token.js', opts),
invalidateToken: lazyLoad('./api/xpack.security.invalidate_token.js', opts),
put_privileges: lazyLoad('./api/xpack.security.put_privileges.js', opts),
putPrivileges: lazyLoad('./api/xpack.security.put_privileges.js', opts),
put_role: lazyLoad('./api/xpack.security.put_role.js', opts),
putRole: lazyLoad('./api/xpack.security.put_role.js', opts),
put_role_mapping: lazyLoad('./api/xpack.security.put_role_mapping.js', opts),
putRoleMapping: lazyLoad('./api/xpack.security.put_role_mapping.js', opts),
put_user: lazyLoad('./api/xpack.security.put_user.js', opts),
putUser: lazyLoad('./api/xpack.security.put_user.js', opts)
authenticate: lazyLoad('xpack.security.authenticate', opts),
change_password: lazyLoad('xpack.security.change_password', opts),
changePassword: lazyLoad('xpack.security.change_password', opts),
clear_cached_realms: lazyLoad('xpack.security.clear_cached_realms', opts),
clearCachedRealms: lazyLoad('xpack.security.clear_cached_realms', opts),
clear_cached_roles: lazyLoad('xpack.security.clear_cached_roles', opts),
clearCachedRoles: lazyLoad('xpack.security.clear_cached_roles', opts),
delete_privileges: lazyLoad('xpack.security.delete_privileges', opts),
deletePrivileges: lazyLoad('xpack.security.delete_privileges', opts),
delete_role: lazyLoad('xpack.security.delete_role', opts),
deleteRole: lazyLoad('xpack.security.delete_role', opts),
delete_role_mapping: lazyLoad('xpack.security.delete_role_mapping', opts),
deleteRoleMapping: lazyLoad('xpack.security.delete_role_mapping', opts),
delete_user: lazyLoad('xpack.security.delete_user', opts),
deleteUser: lazyLoad('xpack.security.delete_user', opts),
disable_user: lazyLoad('xpack.security.disable_user', opts),
disableUser: lazyLoad('xpack.security.disable_user', opts),
enable_user: lazyLoad('xpack.security.enable_user', opts),
enableUser: lazyLoad('xpack.security.enable_user', opts),
get_privileges: lazyLoad('xpack.security.get_privileges', opts),
getPrivileges: lazyLoad('xpack.security.get_privileges', opts),
get_role: lazyLoad('xpack.security.get_role', opts),
getRole: lazyLoad('xpack.security.get_role', opts),
get_role_mapping: lazyLoad('xpack.security.get_role_mapping', opts),
getRoleMapping: lazyLoad('xpack.security.get_role_mapping', opts),
get_token: lazyLoad('xpack.security.get_token', opts),
getToken: lazyLoad('xpack.security.get_token', opts),
get_user: lazyLoad('xpack.security.get_user', opts),
getUser: lazyLoad('xpack.security.get_user', opts),
get_user_privileges: lazyLoad('xpack.security.get_user_privileges', opts),
getUserPrivileges: lazyLoad('xpack.security.get_user_privileges', opts),
has_privileges: lazyLoad('xpack.security.has_privileges', opts),
hasPrivileges: lazyLoad('xpack.security.has_privileges', opts),
invalidate_token: lazyLoad('xpack.security.invalidate_token', opts),
invalidateToken: lazyLoad('xpack.security.invalidate_token', opts),
put_privileges: lazyLoad('xpack.security.put_privileges', opts),
putPrivileges: lazyLoad('xpack.security.put_privileges', opts),
put_role: lazyLoad('xpack.security.put_role', opts),
putRole: lazyLoad('xpack.security.put_role', opts),
put_role_mapping: lazyLoad('xpack.security.put_role_mapping', opts),
putRoleMapping: lazyLoad('xpack.security.put_role_mapping', opts),
put_user: lazyLoad('xpack.security.put_user', opts),
putUser: lazyLoad('xpack.security.put_user', opts)
},
sql: {
clear_cursor: lazyLoad('xpack.sql.clear_cursor', opts),
@ -643,31 +443,9 @@ function ESAPI (opts) {
query: lazyLoad('xpack.sql.query', opts),
translate: lazyLoad('xpack.sql.translate', opts)
},
<<<<<<< HEAD
ssl: {
certificates: lazyLoad('./api/xpack.ssl.certificates.js', opts)
certificates: lazyLoad('xpack.ssl.certificates', opts)
},
usage: lazyLoad('./api/xpack.usage.js', opts),
watcher: {
ack_watch: lazyLoad('./api/xpack.watcher.ack_watch.js', opts),
ackWatch: lazyLoad('./api/xpack.watcher.ack_watch.js', opts),
activate_watch: lazyLoad('./api/xpack.watcher.activate_watch.js', opts),
activateWatch: lazyLoad('./api/xpack.watcher.activate_watch.js', opts),
deactivate_watch: lazyLoad('./api/xpack.watcher.deactivate_watch.js', opts),
deactivateWatch: lazyLoad('./api/xpack.watcher.deactivate_watch.js', opts),
delete_watch: lazyLoad('./api/xpack.watcher.delete_watch.js', opts),
deleteWatch: lazyLoad('./api/xpack.watcher.delete_watch.js', opts),
execute_watch: lazyLoad('./api/xpack.watcher.execute_watch.js', opts),
executeWatch: lazyLoad('./api/xpack.watcher.execute_watch.js', opts),
get_watch: lazyLoad('./api/xpack.watcher.get_watch.js', opts),
getWatch: lazyLoad('./api/xpack.watcher.get_watch.js', opts),
put_watch: lazyLoad('./api/xpack.watcher.put_watch.js', opts),
putWatch: lazyLoad('./api/xpack.watcher.put_watch.js', opts),
restart: lazyLoad('./api/xpack.watcher.restart.js', opts),
start: lazyLoad('./api/xpack.watcher.start.js', opts),
stats: lazyLoad('./api/xpack.watcher.stats.js', opts),
stop: lazyLoad('./api/xpack.watcher.stop.js', opts)
=======
usage: lazyLoad('xpack.usage', opts),
watcher: {
ack_watch: lazyLoad('xpack.watcher.ack_watch', opts),
@ -684,10 +462,10 @@ function ESAPI (opts) {
getWatch: lazyLoad('xpack.watcher.get_watch', opts),
put_watch: lazyLoad('xpack.watcher.put_watch', opts),
putWatch: lazyLoad('xpack.watcher.put_watch', opts),
restart: lazyLoad('xpack.watcher.restart', opts),
start: lazyLoad('xpack.watcher.start', opts),
stats: lazyLoad('xpack.watcher.stats', opts),
stop: lazyLoad('xpack.watcher.stop', opts)
>>>>>>> 3b41c55... Feat: Support bundlers (#783)
}
}
}