From 5c6c5dea78048895db4c839cbd658409b407f417 Mon Sep 17 00:00:00 2001 From: delvedor Date: Mon, 11 Mar 2019 18:34:39 +0100 Subject: [PATCH] API generation --- api/api/bulk.js | 8 -------- api/api/cat.aliases.js | 8 -------- api/api/cat.allocation.js | 8 -------- api/api/cat.count.js | 8 -------- api/api/cat.fielddata.js | 8 -------- api/api/cat.health.js | 8 -------- api/api/cat.help.js | 8 -------- api/api/cat.indices.js | 8 -------- api/api/cat.master.js | 8 -------- api/api/cat.nodeattrs.js | 8 -------- api/api/cat.nodes.js | 8 -------- api/api/cat.pending_tasks.js | 8 -------- api/api/cat.plugins.js | 8 -------- api/api/cat.recovery.js | 8 -------- api/api/cat.repositories.js | 8 -------- api/api/cat.segments.js | 8 -------- api/api/cat.shards.js | 8 -------- api/api/cat.snapshots.js | 8 -------- api/api/cat.tasks.js | 8 -------- api/api/cat.templates.js | 8 -------- api/api/cat.thread_pool.js | 8 -------- api/api/ccr.delete_auto_follow_pattern.js | 8 -------- api/api/ccr.follow.js | 8 -------- api/api/ccr.follow_info.js | 8 -------- api/api/ccr.follow_stats.js | 8 -------- api/api/ccr.get_auto_follow_pattern.js | 8 -------- api/api/ccr.pause_follow.js | 8 -------- api/api/ccr.put_auto_follow_pattern.js | 8 -------- api/api/ccr.resume_follow.js | 8 -------- api/api/ccr.stats.js | 8 -------- api/api/ccr.unfollow.js | 8 -------- api/api/clear_scroll.js | 8 -------- api/api/cluster.allocation_explain.js | 8 -------- api/api/cluster.get_settings.js | 8 -------- api/api/cluster.health.js | 8 -------- api/api/cluster.pending_tasks.js | 8 -------- api/api/cluster.put_settings.js | 8 -------- api/api/cluster.remote_info.js | 8 -------- api/api/cluster.reroute.js | 8 -------- api/api/cluster.state.js | 8 -------- api/api/cluster.stats.js | 8 -------- api/api/count.js | 8 -------- api/api/create.js | 8 -------- api/api/delete.js | 8 -------- api/api/delete_by_query.js | 8 -------- api/api/delete_by_query_rethrottle.js | 8 -------- api/api/delete_script.js | 8 -------- api/api/exists.js | 8 -------- api/api/exists_source.js | 8 -------- api/api/explain.js | 8 -------- api/api/field_caps.js | 8 -------- api/api/get.js | 8 -------- api/api/get_script.js | 8 -------- api/api/get_source.js | 8 -------- api/api/ilm.delete_lifecycle.js | 8 -------- api/api/ilm.explain_lifecycle.js | 8 -------- api/api/ilm.get_lifecycle.js | 8 -------- api/api/ilm.get_status.js | 8 -------- api/api/ilm.move_to_step.js | 8 -------- api/api/ilm.put_lifecycle.js | 8 -------- api/api/ilm.remove_policy.js | 8 -------- api/api/ilm.retry.js | 8 -------- api/api/ilm.start.js | 8 -------- api/api/ilm.stop.js | 8 -------- api/api/index.js | 8 -------- api/api/indices.analyze.js | 8 -------- api/api/indices.clear_cache.js | 8 -------- api/api/indices.close.js | 8 -------- api/api/indices.create.js | 8 -------- api/api/indices.delete.js | 8 -------- api/api/indices.delete_alias.js | 8 -------- api/api/indices.delete_template.js | 8 -------- api/api/indices.exists.js | 8 -------- api/api/indices.exists_alias.js | 8 -------- api/api/indices.exists_template.js | 8 -------- api/api/indices.exists_type.js | 8 -------- api/api/indices.flush.js | 8 -------- api/api/indices.flush_synced.js | 8 -------- api/api/indices.forcemerge.js | 8 -------- api/api/indices.freeze.js | 8 -------- api/api/indices.get.js | 8 -------- api/api/indices.get_alias.js | 8 -------- api/api/indices.get_field_mapping.js | 8 -------- api/api/indices.get_mapping.js | 8 -------- api/api/indices.get_settings.js | 8 -------- api/api/indices.get_template.js | 8 -------- api/api/indices.get_upgrade.js | 8 -------- api/api/indices.open.js | 8 -------- api/api/indices.put_alias.js | 8 -------- api/api/indices.put_mapping.js | 8 -------- api/api/indices.put_settings.js | 8 -------- api/api/indices.put_template.js | 8 -------- api/api/indices.recovery.js | 8 -------- api/api/indices.refresh.js | 8 -------- api/api/indices.rollover.js | 8 -------- api/api/indices.segments.js | 8 -------- api/api/indices.shard_stores.js | 8 -------- api/api/indices.shrink.js | 8 -------- api/api/indices.split.js | 8 -------- api/api/indices.stats.js | 8 -------- api/api/indices.unfreeze.js | 8 -------- api/api/indices.update_aliases.js | 8 -------- api/api/indices.upgrade.js | 8 -------- api/api/indices.validate_query.js | 8 -------- api/api/info.js | 8 -------- api/api/ingest.delete_pipeline.js | 8 -------- api/api/ingest.get_pipeline.js | 8 -------- api/api/ingest.processor_grok.js | 8 -------- api/api/ingest.put_pipeline.js | 8 -------- api/api/ingest.simulate.js | 8 -------- api/api/mget.js | 8 -------- api/api/ml.close_job.js | 8 -------- api/api/ml.delete_calendar.js | 8 -------- api/api/ml.delete_calendar_event.js | 8 -------- api/api/ml.delete_calendar_job.js | 8 -------- api/api/ml.delete_datafeed.js | 8 -------- api/api/ml.delete_expired_data.js | 8 -------- api/api/ml.delete_filter.js | 8 -------- api/api/ml.delete_forecast.js | 8 -------- api/api/ml.delete_job.js | 8 -------- api/api/ml.delete_model_snapshot.js | 8 -------- api/api/ml.find_file_structure.js | 8 -------- api/api/ml.flush_job.js | 8 -------- api/api/ml.forecast.js | 8 -------- api/api/ml.get_buckets.js | 8 -------- api/api/ml.get_calendar_events.js | 8 -------- api/api/ml.get_calendars.js | 8 -------- api/api/ml.get_categories.js | 8 -------- api/api/ml.get_datafeed_stats.js | 8 -------- api/api/ml.get_datafeeds.js | 8 -------- api/api/ml.get_filters.js | 8 -------- api/api/ml.get_influencers.js | 8 -------- api/api/ml.get_job_stats.js | 8 -------- api/api/ml.get_jobs.js | 8 -------- api/api/ml.get_model_snapshots.js | 8 -------- api/api/ml.get_overall_buckets.js | 8 -------- api/api/ml.get_records.js | 8 -------- api/api/ml.info.js | 8 -------- api/api/ml.open_job.js | 8 -------- api/api/ml.post_calendar_events.js | 8 -------- api/api/ml.post_data.js | 8 -------- api/api/ml.preview_datafeed.js | 8 -------- api/api/ml.put_calendar.js | 8 -------- api/api/ml.put_calendar_job.js | 8 -------- api/api/ml.put_datafeed.js | 8 -------- api/api/ml.put_filter.js | 8 -------- api/api/ml.put_job.js | 8 -------- api/api/ml.revert_model_snapshot.js | 8 -------- api/api/ml.set_upgrade_mode.js | 8 -------- api/api/ml.start_datafeed.js | 8 -------- api/api/ml.stop_datafeed.js | 8 -------- api/api/ml.update_datafeed.js | 8 -------- api/api/ml.update_filter.js | 8 -------- api/api/ml.update_job.js | 8 -------- api/api/ml.update_model_snapshot.js | 8 -------- api/api/ml.validate.js | 8 -------- api/api/ml.validate_detector.js | 8 -------- api/api/monitoring.bulk.js | 8 -------- api/api/msearch.js | 8 -------- api/api/msearch_template.js | 8 -------- api/api/mtermvectors.js | 8 -------- api/api/nodes.hot_threads.js | 8 -------- api/api/nodes.info.js | 8 -------- api/api/nodes.reload_secure_settings.js | 8 -------- api/api/nodes.stats.js | 8 -------- api/api/nodes.usage.js | 8 -------- api/api/ping.js | 8 -------- api/api/put_script.js | 8 -------- api/api/rank_eval.js | 8 -------- api/api/reindex.js | 8 -------- api/api/reindex_rethrottle.js | 8 -------- api/api/render_search_template.js | 8 -------- api/api/scripts_painless_execute.js | 8 -------- api/api/scroll.js | 8 -------- api/api/search.js | 8 -------- api/api/search_shards.js | 8 -------- api/api/search_template.js | 8 -------- api/api/security.authenticate.js | 8 -------- api/api/security.change_password.js | 8 -------- api/api/security.clear_cached_realms.js | 8 -------- api/api/security.clear_cached_roles.js | 8 -------- api/api/security.create_api_key.js | 8 -------- api/api/security.delete_privileges.js | 8 -------- api/api/security.delete_role.js | 8 -------- api/api/security.delete_role_mapping.js | 8 -------- api/api/security.delete_user.js | 8 -------- api/api/security.disable_user.js | 8 -------- api/api/security.enable_user.js | 8 -------- api/api/security.get_api_key.js | 8 -------- api/api/security.get_privileges.js | 8 -------- api/api/security.get_role.js | 8 -------- api/api/security.get_role_mapping.js | 8 -------- api/api/security.get_token.js | 8 -------- api/api/security.get_user.js | 8 -------- api/api/security.get_user_privileges.js | 8 -------- api/api/security.has_privileges.js | 8 -------- api/api/security.invalidate_api_key.js | 8 -------- api/api/security.invalidate_token.js | 8 -------- api/api/security.put_privileges.js | 8 -------- api/api/security.put_role.js | 8 -------- api/api/security.put_role_mapping.js | 8 -------- api/api/security.put_user.js | 8 -------- api/api/snapshot.create.js | 8 -------- api/api/snapshot.create_repository.js | 8 -------- api/api/snapshot.delete.js | 8 -------- api/api/snapshot.delete_repository.js | 8 -------- api/api/snapshot.get.js | 8 -------- api/api/snapshot.get_repository.js | 8 -------- api/api/snapshot.restore.js | 8 -------- api/api/snapshot.status.js | 8 -------- api/api/snapshot.verify_repository.js | 8 -------- api/api/ssl.certificates.js | 8 -------- api/api/tasks.cancel.js | 8 -------- api/api/tasks.get.js | 8 -------- api/api/tasks.list.js | 8 -------- api/api/termvectors.js | 8 -------- api/api/update.js | 8 -------- api/api/update_by_query.js | 8 -------- api/api/update_by_query_rethrottle.js | 8 -------- api/api/xpack.graph.explore.js | 8 -------- api/api/xpack.info.js | 8 -------- api/api/xpack.license.delete.js | 8 -------- api/api/xpack.license.get.js | 8 -------- api/api/xpack.license.get_basic_status.js | 8 -------- api/api/xpack.license.get_trial_status.js | 8 -------- api/api/xpack.license.post.js | 8 -------- api/api/xpack.license.post_start_basic.js | 8 -------- api/api/xpack.license.post_start_trial.js | 8 -------- api/api/xpack.migration.deprecations.js | 8 -------- api/api/xpack.migration.get_assistance.js | 8 -------- api/api/xpack.migration.upgrade.js | 8 -------- api/api/xpack.rollup.delete_job.js | 8 -------- api/api/xpack.rollup.get_jobs.js | 8 -------- api/api/xpack.rollup.get_rollup_caps.js | 8 -------- api/api/xpack.rollup.get_rollup_index_caps.js | 8 -------- api/api/xpack.rollup.put_job.js | 8 -------- api/api/xpack.rollup.rollup_search.js | 8 -------- api/api/xpack.rollup.start_job.js | 8 -------- api/api/xpack.rollup.stop_job.js | 8 -------- api/api/xpack.sql.clear_cursor.js | 8 -------- api/api/xpack.sql.query.js | 8 -------- api/api/xpack.sql.translate.js | 8 -------- api/api/xpack.usage.js | 8 -------- api/api/xpack.watcher.ack_watch.js | 8 -------- api/api/xpack.watcher.activate_watch.js | 8 -------- api/api/xpack.watcher.deactivate_watch.js | 8 -------- api/api/xpack.watcher.delete_watch.js | 8 -------- api/api/xpack.watcher.execute_watch.js | 8 -------- api/api/xpack.watcher.get_watch.js | 8 -------- api/api/xpack.watcher.put_watch.js | 8 -------- api/api/xpack.watcher.start.js | 8 -------- api/api/xpack.watcher.stats.js | 8 -------- api/api/xpack.watcher.stop.js | 8 -------- 253 files changed, 2024 deletions(-) diff --git a/api/api/bulk.js b/api/api/bulk.js index 99eac7efc..957f215e0 100644 --- a/api/api/bulk.js +++ b/api/api/bulk.js @@ -78,14 +78,6 @@ function buildBulk (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - bulk(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['body'] == null) { diff --git a/api/api/cat.aliases.js b/api/api/cat.aliases.js index 90a8b9b6c..8627157db 100644 --- a/api/api/cat.aliases.js +++ b/api/api/cat.aliases.js @@ -70,14 +70,6 @@ function buildCatAliases (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - catAliases(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/cat.allocation.js b/api/api/cat.allocation.js index d7011ee9a..767854188 100644 --- a/api/api/cat.allocation.js +++ b/api/api/cat.allocation.js @@ -72,14 +72,6 @@ function buildCatAllocation (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - catAllocation(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/cat.count.js b/api/api/cat.count.js index 847b8952f..6fa162c4a 100644 --- a/api/api/cat.count.js +++ b/api/api/cat.count.js @@ -70,14 +70,6 @@ function buildCatCount (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - catCount(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/cat.fielddata.js b/api/api/cat.fielddata.js index 39237bb99..22c9377a5 100644 --- a/api/api/cat.fielddata.js +++ b/api/api/cat.fielddata.js @@ -74,14 +74,6 @@ function buildCatFielddata (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - catFielddata(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/cat.health.js b/api/api/cat.health.js index a1fd09f95..eb255cc9a 100644 --- a/api/api/cat.health.js +++ b/api/api/cat.health.js @@ -71,14 +71,6 @@ function buildCatHealth (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - catHealth(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/cat.help.js b/api/api/cat.help.js index 86303fccf..ebea416e1 100644 --- a/api/api/cat.help.js +++ b/api/api/cat.help.js @@ -58,14 +58,6 @@ function buildCatHelp (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - catHelp(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/cat.indices.js b/api/api/cat.indices.js index fe29696f7..2ff28920d 100644 --- a/api/api/cat.indices.js +++ b/api/api/cat.indices.js @@ -76,14 +76,6 @@ function buildCatIndices (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - catIndices(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/cat.master.js b/api/api/cat.master.js index e675085ca..432dbd775 100644 --- a/api/api/cat.master.js +++ b/api/api/cat.master.js @@ -69,14 +69,6 @@ function buildCatMaster (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - catMaster(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/cat.nodeattrs.js b/api/api/cat.nodeattrs.js index 066ee65fa..2cebea1d7 100644 --- a/api/api/cat.nodeattrs.js +++ b/api/api/cat.nodeattrs.js @@ -69,14 +69,6 @@ function buildCatNodeattrs (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - catNodeattrs(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/cat.nodes.js b/api/api/cat.nodes.js index da0b693e1..dfa320a08 100644 --- a/api/api/cat.nodes.js +++ b/api/api/cat.nodes.js @@ -72,14 +72,6 @@ function buildCatNodes (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - catNodes(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/cat.pending_tasks.js b/api/api/cat.pending_tasks.js index 44793c3e0..4205042ae 100644 --- a/api/api/cat.pending_tasks.js +++ b/api/api/cat.pending_tasks.js @@ -69,14 +69,6 @@ function buildCatPendingTasks (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - catPendingTasks(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/cat.plugins.js b/api/api/cat.plugins.js index ed91b68ce..6fa73552c 100644 --- a/api/api/cat.plugins.js +++ b/api/api/cat.plugins.js @@ -69,14 +69,6 @@ function buildCatPlugins (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - catPlugins(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/cat.recovery.js b/api/api/cat.recovery.js index d002b1784..985ed4902 100644 --- a/api/api/cat.recovery.js +++ b/api/api/cat.recovery.js @@ -70,14 +70,6 @@ function buildCatRecovery (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - catRecovery(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/cat.repositories.js b/api/api/cat.repositories.js index c0d8cdd5e..742a2ce56 100644 --- a/api/api/cat.repositories.js +++ b/api/api/cat.repositories.js @@ -69,14 +69,6 @@ function buildCatRepositories (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - catRepositories(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/cat.segments.js b/api/api/cat.segments.js index c3166bd7c..2e4e5f184 100644 --- a/api/api/cat.segments.js +++ b/api/api/cat.segments.js @@ -67,14 +67,6 @@ function buildCatSegments (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - catSegments(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/cat.shards.js b/api/api/cat.shards.js index 649b07600..482dd015f 100644 --- a/api/api/cat.shards.js +++ b/api/api/cat.shards.js @@ -72,14 +72,6 @@ function buildCatShards (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - catShards(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/cat.snapshots.js b/api/api/cat.snapshots.js index bb966bf42..eaded0a18 100644 --- a/api/api/cat.snapshots.js +++ b/api/api/cat.snapshots.js @@ -71,14 +71,6 @@ function buildCatSnapshots (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - catSnapshots(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/cat.tasks.js b/api/api/cat.tasks.js index a01bbf89a..720459a6f 100644 --- a/api/api/cat.tasks.js +++ b/api/api/cat.tasks.js @@ -74,14 +74,6 @@ function buildCatTasks (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - catTasks(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/cat.templates.js b/api/api/cat.templates.js index e78d0aa2f..f3a4f11f7 100644 --- a/api/api/cat.templates.js +++ b/api/api/cat.templates.js @@ -70,14 +70,6 @@ function buildCatTemplates (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - catTemplates(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/cat.thread_pool.js b/api/api/cat.thread_pool.js index 1781e66da..44756ab39 100644 --- a/api/api/cat.thread_pool.js +++ b/api/api/cat.thread_pool.js @@ -72,14 +72,6 @@ function buildCatThreadPool (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - catThreadPool(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/ccr.delete_auto_follow_pattern.js b/api/api/ccr.delete_auto_follow_pattern.js index bbb484897..04cfe48b5 100644 --- a/api/api/ccr.delete_auto_follow_pattern.js +++ b/api/api/ccr.delete_auto_follow_pattern.js @@ -50,14 +50,6 @@ function buildCcrDeleteAutoFollowPattern (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - ccrDeleteAutoFollowPattern(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['name'] == null) { diff --git a/api/api/ccr.follow.js b/api/api/ccr.follow.js index 6a7194f88..6983bfea0 100644 --- a/api/api/ccr.follow.js +++ b/api/api/ccr.follow.js @@ -52,14 +52,6 @@ function buildCcrFollow (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - ccrFollow(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['index'] == null) { diff --git a/api/api/ccr.follow_info.js b/api/api/ccr.follow_info.js index 405600f7e..0a27de878 100644 --- a/api/api/ccr.follow_info.js +++ b/api/api/ccr.follow_info.js @@ -50,14 +50,6 @@ function buildCcrFollowInfo (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - ccrFollowInfo(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // validate headers object if (options.headers != null && typeof options.headers !== 'object') { diff --git a/api/api/ccr.follow_stats.js b/api/api/ccr.follow_stats.js index 9da5104e4..c4f53e66c 100644 --- a/api/api/ccr.follow_stats.js +++ b/api/api/ccr.follow_stats.js @@ -50,14 +50,6 @@ function buildCcrFollowStats (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - ccrFollowStats(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // validate headers object if (options.headers != null && typeof options.headers !== 'object') { diff --git a/api/api/ccr.get_auto_follow_pattern.js b/api/api/ccr.get_auto_follow_pattern.js index 2ff0087ad..6e59191e1 100644 --- a/api/api/ccr.get_auto_follow_pattern.js +++ b/api/api/ccr.get_auto_follow_pattern.js @@ -50,14 +50,6 @@ function buildCcrGetAutoFollowPattern (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - ccrGetAutoFollowPattern(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // validate headers object if (options.headers != null && typeof options.headers !== 'object') { diff --git a/api/api/ccr.pause_follow.js b/api/api/ccr.pause_follow.js index 4b411bb07..2e15a0430 100644 --- a/api/api/ccr.pause_follow.js +++ b/api/api/ccr.pause_follow.js @@ -50,14 +50,6 @@ function buildCcrPauseFollow (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - ccrPauseFollow(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['index'] == null) { diff --git a/api/api/ccr.put_auto_follow_pattern.js b/api/api/ccr.put_auto_follow_pattern.js index aabd05699..d660fafc1 100644 --- a/api/api/ccr.put_auto_follow_pattern.js +++ b/api/api/ccr.put_auto_follow_pattern.js @@ -51,14 +51,6 @@ function buildCcrPutAutoFollowPattern (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - ccrPutAutoFollowPattern(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['name'] == null) { diff --git a/api/api/ccr.resume_follow.js b/api/api/ccr.resume_follow.js index 5c77febe9..e4fec5dc5 100644 --- a/api/api/ccr.resume_follow.js +++ b/api/api/ccr.resume_follow.js @@ -51,14 +51,6 @@ function buildCcrResumeFollow (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - ccrResumeFollow(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['index'] == null) { diff --git a/api/api/ccr.stats.js b/api/api/ccr.stats.js index c8564820a..e127ae0ca 100644 --- a/api/api/ccr.stats.js +++ b/api/api/ccr.stats.js @@ -49,14 +49,6 @@ function buildCcrStats (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - ccrStats(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // validate headers object if (options.headers != null && typeof options.headers !== 'object') { diff --git a/api/api/ccr.unfollow.js b/api/api/ccr.unfollow.js index 340dbd97c..44af6a3a8 100644 --- a/api/api/ccr.unfollow.js +++ b/api/api/ccr.unfollow.js @@ -50,14 +50,6 @@ function buildCcrUnfollow (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - ccrUnfollow(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['index'] == null) { diff --git a/api/api/clear_scroll.js b/api/api/clear_scroll.js index da2f9f712..bcf7a5afc 100644 --- a/api/api/clear_scroll.js +++ b/api/api/clear_scroll.js @@ -56,14 +56,6 @@ function buildClearScroll (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - clearScroll(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // validate headers object if (options.headers != null && typeof options.headers !== 'object') { diff --git a/api/api/cluster.allocation_explain.js b/api/api/cluster.allocation_explain.js index 527c10806..9463e1e90 100644 --- a/api/api/cluster.allocation_explain.js +++ b/api/api/cluster.allocation_explain.js @@ -61,14 +61,6 @@ function buildClusterAllocationExplain (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - clusterAllocationExplain(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // validate headers object if (options.headers != null && typeof options.headers !== 'object') { diff --git a/api/api/cluster.get_settings.js b/api/api/cluster.get_settings.js index 9c8bef4e6..8f7f13c41 100644 --- a/api/api/cluster.get_settings.js +++ b/api/api/cluster.get_settings.js @@ -65,14 +65,6 @@ function buildClusterGetSettings (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - clusterGetSettings(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/cluster.health.js b/api/api/cluster.health.js index 687b0ac7c..6ff729d8a 100644 --- a/api/api/cluster.health.js +++ b/api/api/cluster.health.js @@ -82,14 +82,6 @@ function buildClusterHealth (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - clusterHealth(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/cluster.pending_tasks.js b/api/api/cluster.pending_tasks.js index b9ef45a6e..86023cb45 100644 --- a/api/api/cluster.pending_tasks.js +++ b/api/api/cluster.pending_tasks.js @@ -59,14 +59,6 @@ function buildClusterPendingTasks (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - clusterPendingTasks(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/cluster.put_settings.js b/api/api/cluster.put_settings.js index 256c4e291..110a5bf21 100644 --- a/api/api/cluster.put_settings.js +++ b/api/api/cluster.put_settings.js @@ -63,14 +63,6 @@ function buildClusterPutSettings (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - clusterPutSettings(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['body'] == null) { diff --git a/api/api/cluster.remote_info.js b/api/api/cluster.remote_info.js index c30698370..93ba95308 100644 --- a/api/api/cluster.remote_info.js +++ b/api/api/cluster.remote_info.js @@ -54,14 +54,6 @@ function buildClusterRemoteInfo (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - clusterRemoteInfo(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/cluster.reroute.js b/api/api/cluster.reroute.js index 7ee098d41..160b6b5b4 100644 --- a/api/api/cluster.reroute.js +++ b/api/api/cluster.reroute.js @@ -70,14 +70,6 @@ function buildClusterReroute (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - clusterReroute(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // validate headers object if (options.headers != null && typeof options.headers !== 'object') { diff --git a/api/api/cluster.state.js b/api/api/cluster.state.js index 3e63f2b57..91f68781c 100644 --- a/api/api/cluster.state.js +++ b/api/api/cluster.state.js @@ -79,14 +79,6 @@ function buildClusterState (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - clusterState(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/cluster.stats.js b/api/api/cluster.stats.js index 2c35519a9..a07b2a324 100644 --- a/api/api/cluster.stats.js +++ b/api/api/cluster.stats.js @@ -60,14 +60,6 @@ function buildClusterStats (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - clusterStats(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/count.js b/api/api/count.js index 5cba924c2..9dd09c294 100644 --- a/api/api/count.js +++ b/api/api/count.js @@ -93,14 +93,6 @@ function buildCount (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - count(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required url components if (params['type'] != null && (params['index'] == null)) { diff --git a/api/api/create.js b/api/api/create.js index 15047c9bc..eb18d517b 100644 --- a/api/api/create.js +++ b/api/api/create.js @@ -76,14 +76,6 @@ function buildCreate (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - create(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['id'] == null) { diff --git a/api/api/delete.js b/api/api/delete.js index f19ea699c..db3e90b35 100644 --- a/api/api/delete.js +++ b/api/api/delete.js @@ -79,14 +79,6 @@ function buildDelete (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - _delete(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['id'] == null) { diff --git a/api/api/delete_by_query.js b/api/api/delete_by_query.js index 8ee94a0ea..559bcd201 100644 --- a/api/api/delete_by_query.js +++ b/api/api/delete_by_query.js @@ -136,14 +136,6 @@ function buildDeleteByQuery (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - deleteByQuery(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['index'] == null) { diff --git a/api/api/delete_by_query_rethrottle.js b/api/api/delete_by_query_rethrottle.js index b85f8ce49..3d9cb752f 100644 --- a/api/api/delete_by_query_rethrottle.js +++ b/api/api/delete_by_query_rethrottle.js @@ -58,14 +58,6 @@ function buildDeleteByQueryRethrottle (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - deleteByQueryRethrottle(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['task_id'] == null && params['taskId'] == null) { diff --git a/api/api/delete_script.js b/api/api/delete_script.js index 53e126116..fed63e09d 100644 --- a/api/api/delete_script.js +++ b/api/api/delete_script.js @@ -60,14 +60,6 @@ function buildDeleteScript (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - deleteScript(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['id'] == null) { diff --git a/api/api/exists.js b/api/api/exists.js index 42a614052..58dba35b1 100644 --- a/api/api/exists.js +++ b/api/api/exists.js @@ -83,14 +83,6 @@ function buildExists (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - exists(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['id'] == null) { diff --git a/api/api/exists_source.js b/api/api/exists_source.js index e41c6bd03..a4280b7eb 100644 --- a/api/api/exists_source.js +++ b/api/api/exists_source.js @@ -80,14 +80,6 @@ function buildExistsSource (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - existsSource(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['id'] == null) { diff --git a/api/api/explain.js b/api/api/explain.js index a99f97bdb..cdba2dc5c 100644 --- a/api/api/explain.js +++ b/api/api/explain.js @@ -89,14 +89,6 @@ function buildExplain (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - explain(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['id'] == null) { diff --git a/api/api/field_caps.js b/api/api/field_caps.js index 29e4d12f5..79f2ad7be 100644 --- a/api/api/field_caps.js +++ b/api/api/field_caps.js @@ -66,14 +66,6 @@ function buildFieldCaps (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - fieldCaps(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/get.js b/api/api/get.js index 632db9a58..af04e37c5 100644 --- a/api/api/get.js +++ b/api/api/get.js @@ -89,14 +89,6 @@ function buildGet (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - get(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['id'] == null) { diff --git a/api/api/get_script.js b/api/api/get_script.js index d128ca89e..ef873a5ee 100644 --- a/api/api/get_script.js +++ b/api/api/get_script.js @@ -58,14 +58,6 @@ function buildGetScript (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - getScript(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['id'] == null) { diff --git a/api/api/get_source.js b/api/api/get_source.js index 376441dd6..18ad2e4e6 100644 --- a/api/api/get_source.js +++ b/api/api/get_source.js @@ -80,14 +80,6 @@ function buildGetSource (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - getSource(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['id'] == null) { diff --git a/api/api/ilm.delete_lifecycle.js b/api/api/ilm.delete_lifecycle.js index 181d51ee5..8d2c2b6b5 100644 --- a/api/api/ilm.delete_lifecycle.js +++ b/api/api/ilm.delete_lifecycle.js @@ -50,14 +50,6 @@ function buildIlmDeleteLifecycle (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - ilmDeleteLifecycle(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/ilm.explain_lifecycle.js b/api/api/ilm.explain_lifecycle.js index 34c645f8d..377959873 100644 --- a/api/api/ilm.explain_lifecycle.js +++ b/api/api/ilm.explain_lifecycle.js @@ -51,14 +51,6 @@ function buildIlmExplainLifecycle (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - ilmExplainLifecycle(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/ilm.get_lifecycle.js b/api/api/ilm.get_lifecycle.js index 8d95641e0..d4aea2190 100644 --- a/api/api/ilm.get_lifecycle.js +++ b/api/api/ilm.get_lifecycle.js @@ -50,14 +50,6 @@ function buildIlmGetLifecycle (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - ilmGetLifecycle(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/ilm.get_status.js b/api/api/ilm.get_status.js index 1e413b795..38df25c38 100644 --- a/api/api/ilm.get_status.js +++ b/api/api/ilm.get_status.js @@ -49,14 +49,6 @@ function buildIlmGetStatus (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - ilmGetStatus(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/ilm.move_to_step.js b/api/api/ilm.move_to_step.js index 1e8ce0fd2..0f6b9274f 100644 --- a/api/api/ilm.move_to_step.js +++ b/api/api/ilm.move_to_step.js @@ -51,14 +51,6 @@ function buildIlmMoveToStep (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - ilmMoveToStep(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // validate headers object if (options.headers != null && typeof options.headers !== 'object') { diff --git a/api/api/ilm.put_lifecycle.js b/api/api/ilm.put_lifecycle.js index eaa4090fd..de148ad62 100644 --- a/api/api/ilm.put_lifecycle.js +++ b/api/api/ilm.put_lifecycle.js @@ -51,14 +51,6 @@ function buildIlmPutLifecycle (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - ilmPutLifecycle(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // validate headers object if (options.headers != null && typeof options.headers !== 'object') { diff --git a/api/api/ilm.remove_policy.js b/api/api/ilm.remove_policy.js index 243ed1b9c..f0258c29c 100644 --- a/api/api/ilm.remove_policy.js +++ b/api/api/ilm.remove_policy.js @@ -50,14 +50,6 @@ function buildIlmRemovePolicy (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - ilmRemovePolicy(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/ilm.retry.js b/api/api/ilm.retry.js index 14eaea055..6568a0a40 100644 --- a/api/api/ilm.retry.js +++ b/api/api/ilm.retry.js @@ -50,14 +50,6 @@ function buildIlmRetry (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - ilmRetry(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/ilm.start.js b/api/api/ilm.start.js index 50eeecfc6..840700141 100644 --- a/api/api/ilm.start.js +++ b/api/api/ilm.start.js @@ -49,14 +49,6 @@ function buildIlmStart (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - ilmStart(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/ilm.stop.js b/api/api/ilm.stop.js index 946ef8a13..166ed28b1 100644 --- a/api/api/ilm.stop.js +++ b/api/api/ilm.stop.js @@ -49,14 +49,6 @@ function buildIlmStop (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - ilmStop(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/index.js b/api/api/index.js index 99d742324..213b41ac5 100644 --- a/api/api/index.js +++ b/api/api/index.js @@ -85,14 +85,6 @@ function buildIndex (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - _index(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['index'] == null) { diff --git a/api/api/indices.analyze.js b/api/api/indices.analyze.js index b922171ee..b4d697bc8 100644 --- a/api/api/indices.analyze.js +++ b/api/api/indices.analyze.js @@ -58,14 +58,6 @@ function buildIndicesAnalyze (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - indicesAnalyze(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // validate headers object if (options.headers != null && typeof options.headers !== 'object') { diff --git a/api/api/indices.clear_cache.js b/api/api/indices.clear_cache.js index f3d17a8c0..2d6b3be6b 100644 --- a/api/api/indices.clear_cache.js +++ b/api/api/indices.clear_cache.js @@ -74,14 +74,6 @@ function buildIndicesClearCache (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - indicesClearCache(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/indices.close.js b/api/api/indices.close.js index 855814b75..46a92f3a9 100644 --- a/api/api/indices.close.js +++ b/api/api/indices.close.js @@ -69,14 +69,6 @@ function buildIndicesClose (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - indicesClose(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['index'] == null) { diff --git a/api/api/indices.create.js b/api/api/indices.create.js index e22a3ff3f..fadcb4981 100644 --- a/api/api/indices.create.js +++ b/api/api/indices.create.js @@ -67,14 +67,6 @@ function buildIndicesCreate (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - indicesCreate(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['index'] == null) { diff --git a/api/api/indices.delete.js b/api/api/indices.delete.js index f9da306fb..5a48c7794 100644 --- a/api/api/indices.delete.js +++ b/api/api/indices.delete.js @@ -69,14 +69,6 @@ function buildIndicesDelete (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - indicesDelete(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['index'] == null) { diff --git a/api/api/indices.delete_alias.js b/api/api/indices.delete_alias.js index c4f043368..5b57fbb63 100644 --- a/api/api/indices.delete_alias.js +++ b/api/api/indices.delete_alias.js @@ -61,14 +61,6 @@ function buildIndicesDeleteAlias (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - indicesDeleteAlias(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['index'] == null) { diff --git a/api/api/indices.delete_template.js b/api/api/indices.delete_template.js index 0c4d351dc..a7fb0aca5 100644 --- a/api/api/indices.delete_template.js +++ b/api/api/indices.delete_template.js @@ -60,14 +60,6 @@ function buildIndicesDeleteTemplate (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - indicesDeleteTemplate(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['name'] == null) { diff --git a/api/api/indices.exists.js b/api/api/indices.exists.js index e92b1eb63..a25cea993 100644 --- a/api/api/indices.exists.js +++ b/api/api/indices.exists.js @@ -72,14 +72,6 @@ function buildIndicesExists (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - indicesExists(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['index'] == null) { diff --git a/api/api/indices.exists_alias.js b/api/api/indices.exists_alias.js index cb76b7dd6..9a5de4520 100644 --- a/api/api/indices.exists_alias.js +++ b/api/api/indices.exists_alias.js @@ -67,14 +67,6 @@ function buildIndicesExistsAlias (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - indicesExistsAlias(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['name'] == null) { diff --git a/api/api/indices.exists_template.js b/api/api/indices.exists_template.js index 6de62dc57..52f0ab596 100644 --- a/api/api/indices.exists_template.js +++ b/api/api/indices.exists_template.js @@ -63,14 +63,6 @@ function buildIndicesExistsTemplate (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - indicesExistsTemplate(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['name'] == null) { diff --git a/api/api/indices.exists_type.js b/api/api/indices.exists_type.js index c36e59af2..120f27f14 100644 --- a/api/api/indices.exists_type.js +++ b/api/api/indices.exists_type.js @@ -67,14 +67,6 @@ function buildIndicesExistsType (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - indicesExistsType(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['index'] == null) { diff --git a/api/api/indices.flush.js b/api/api/indices.flush.js index a50c12ec0..854665f33 100644 --- a/api/api/indices.flush.js +++ b/api/api/indices.flush.js @@ -69,14 +69,6 @@ function buildIndicesFlush (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - indicesFlush(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/indices.flush_synced.js b/api/api/indices.flush_synced.js index 838f7d6ad..ca4fa36f6 100644 --- a/api/api/indices.flush_synced.js +++ b/api/api/indices.flush_synced.js @@ -64,14 +64,6 @@ function buildIndicesFlushSynced (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - indicesFlushSynced(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/indices.forcemerge.js b/api/api/indices.forcemerge.js index ec60e5376..e4616ab7e 100644 --- a/api/api/indices.forcemerge.js +++ b/api/api/indices.forcemerge.js @@ -72,14 +72,6 @@ function buildIndicesForcemerge (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - indicesForcemerge(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/indices.freeze.js b/api/api/indices.freeze.js index 2017ff35d..bc2745c56 100644 --- a/api/api/indices.freeze.js +++ b/api/api/indices.freeze.js @@ -65,14 +65,6 @@ function buildIndicesFreeze (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - indicesFreeze(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['index'] == null) { diff --git a/api/api/indices.get.js b/api/api/indices.get.js index 01ffba1b9..bfcefdf9b 100644 --- a/api/api/indices.get.js +++ b/api/api/indices.get.js @@ -78,14 +78,6 @@ function buildIndicesGet (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - indicesGet(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['index'] == null) { diff --git a/api/api/indices.get_alias.js b/api/api/indices.get_alias.js index a19719224..e0e06505d 100644 --- a/api/api/indices.get_alias.js +++ b/api/api/indices.get_alias.js @@ -67,14 +67,6 @@ function buildIndicesGetAlias (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - indicesGetAlias(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/indices.get_field_mapping.js b/api/api/indices.get_field_mapping.js index ef9ada9a2..f4b3e968c 100644 --- a/api/api/indices.get_field_mapping.js +++ b/api/api/indices.get_field_mapping.js @@ -74,14 +74,6 @@ function buildIndicesGetFieldMapping (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - indicesGetFieldMapping(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['fields'] == null) { diff --git a/api/api/indices.get_mapping.js b/api/api/indices.get_mapping.js index dbee4ed06..1f2f2b5d9 100644 --- a/api/api/indices.get_mapping.js +++ b/api/api/indices.get_mapping.js @@ -73,14 +73,6 @@ function buildIndicesGetMapping (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - indicesGetMapping(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/indices.get_settings.js b/api/api/indices.get_settings.js index b52171127..6e444f08e 100644 --- a/api/api/indices.get_settings.js +++ b/api/api/indices.get_settings.js @@ -76,14 +76,6 @@ function buildIndicesGetSettings (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - indicesGetSettings(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/indices.get_template.js b/api/api/indices.get_template.js index 144e913e6..58fb3d83a 100644 --- a/api/api/indices.get_template.js +++ b/api/api/indices.get_template.js @@ -66,14 +66,6 @@ function buildIndicesGetTemplate (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - indicesGetTemplate(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/indices.get_upgrade.js b/api/api/indices.get_upgrade.js index a452ad1bb..a2b34458b 100644 --- a/api/api/indices.get_upgrade.js +++ b/api/api/indices.get_upgrade.js @@ -64,14 +64,6 @@ function buildIndicesGetUpgrade (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - indicesGetUpgrade(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/indices.open.js b/api/api/indices.open.js index e57a4bbca..b71427566 100644 --- a/api/api/indices.open.js +++ b/api/api/indices.open.js @@ -72,14 +72,6 @@ function buildIndicesOpen (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - indicesOpen(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['index'] == null) { diff --git a/api/api/indices.put_alias.js b/api/api/indices.put_alias.js index 8a5b4f9da..7e5566d44 100644 --- a/api/api/indices.put_alias.js +++ b/api/api/indices.put_alias.js @@ -62,14 +62,6 @@ function buildIndicesPutAlias (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - indicesPutAlias(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['index'] == null) { diff --git a/api/api/indices.put_mapping.js b/api/api/indices.put_mapping.js index 1c6e59893..da3c84df6 100644 --- a/api/api/indices.put_mapping.js +++ b/api/api/indices.put_mapping.js @@ -74,14 +74,6 @@ function buildIndicesPutMapping (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - indicesPutMapping(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['body'] == null) { diff --git a/api/api/indices.put_settings.js b/api/api/indices.put_settings.js index a98dea7f4..6fa62c36e 100644 --- a/api/api/indices.put_settings.js +++ b/api/api/indices.put_settings.js @@ -76,14 +76,6 @@ function buildIndicesPutSettings (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - indicesPutSettings(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['body'] == null) { diff --git a/api/api/indices.put_template.js b/api/api/indices.put_template.js index 0c82f6ef8..55157756a 100644 --- a/api/api/indices.put_template.js +++ b/api/api/indices.put_template.js @@ -71,14 +71,6 @@ function buildIndicesPutTemplate (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - indicesPutTemplate(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['name'] == null) { diff --git a/api/api/indices.recovery.js b/api/api/indices.recovery.js index 2cae29bbf..9fbb6c4ed 100644 --- a/api/api/indices.recovery.js +++ b/api/api/indices.recovery.js @@ -60,14 +60,6 @@ function buildIndicesRecovery (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - indicesRecovery(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/indices.refresh.js b/api/api/indices.refresh.js index 5f136a12d..87cbb843d 100644 --- a/api/api/indices.refresh.js +++ b/api/api/indices.refresh.js @@ -64,14 +64,6 @@ function buildIndicesRefresh (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - indicesRefresh(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/indices.rollover.js b/api/api/indices.rollover.js index 4e8dbd7ea..a2ad11201 100644 --- a/api/api/indices.rollover.js +++ b/api/api/indices.rollover.js @@ -71,14 +71,6 @@ function buildIndicesRollover (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - indicesRollover(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['alias'] == null) { diff --git a/api/api/indices.segments.js b/api/api/indices.segments.js index 706df722c..cc1be5728 100644 --- a/api/api/indices.segments.js +++ b/api/api/indices.segments.js @@ -66,14 +66,6 @@ function buildIndicesSegments (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - indicesSegments(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/indices.shard_stores.js b/api/api/indices.shard_stores.js index 12a04e792..8add1c770 100644 --- a/api/api/indices.shard_stores.js +++ b/api/api/indices.shard_stores.js @@ -66,14 +66,6 @@ function buildIndicesShardStores (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - indicesShardStores(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/indices.shrink.js b/api/api/indices.shrink.js index ff001b6c5..3693be4d1 100644 --- a/api/api/indices.shrink.js +++ b/api/api/indices.shrink.js @@ -68,14 +68,6 @@ function buildIndicesShrink (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - indicesShrink(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['index'] == null) { diff --git a/api/api/indices.split.js b/api/api/indices.split.js index fc023cdd2..26b6cefd6 100644 --- a/api/api/indices.split.js +++ b/api/api/indices.split.js @@ -68,14 +68,6 @@ function buildIndicesSplit (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - indicesSplit(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['index'] == null) { diff --git a/api/api/indices.stats.js b/api/api/indices.stats.js index a199b3cdf..3c0b0906f 100644 --- a/api/api/indices.stats.js +++ b/api/api/indices.stats.js @@ -73,14 +73,6 @@ function buildIndicesStats (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - indicesStats(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/indices.unfreeze.js b/api/api/indices.unfreeze.js index cb2caca29..7c40fb726 100644 --- a/api/api/indices.unfreeze.js +++ b/api/api/indices.unfreeze.js @@ -65,14 +65,6 @@ function buildIndicesUnfreeze (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - indicesUnfreeze(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['index'] == null) { diff --git a/api/api/indices.update_aliases.js b/api/api/indices.update_aliases.js index f5fb51d99..2d9dd6f15 100644 --- a/api/api/indices.update_aliases.js +++ b/api/api/indices.update_aliases.js @@ -60,14 +60,6 @@ function buildIndicesUpdateAliases (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - indicesUpdateAliases(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['body'] == null) { diff --git a/api/api/indices.upgrade.js b/api/api/indices.upgrade.js index f2c1b3bcb..6a16b1691 100644 --- a/api/api/indices.upgrade.js +++ b/api/api/indices.upgrade.js @@ -70,14 +70,6 @@ function buildIndicesUpgrade (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - indicesUpgrade(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/indices.validate_query.js b/api/api/indices.validate_query.js index 16197340b..813358340 100644 --- a/api/api/indices.validate_query.js +++ b/api/api/indices.validate_query.js @@ -87,14 +87,6 @@ function buildIndicesValidateQuery (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - indicesValidateQuery(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required url components if (params['type'] != null && (params['index'] == null)) { diff --git a/api/api/info.js b/api/api/info.js index 6a9eea357..95e6c55f7 100644 --- a/api/api/info.js +++ b/api/api/info.js @@ -54,14 +54,6 @@ function buildInfo (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - info(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/ingest.delete_pipeline.js b/api/api/ingest.delete_pipeline.js index 8bda91d4b..303c02ae1 100644 --- a/api/api/ingest.delete_pipeline.js +++ b/api/api/ingest.delete_pipeline.js @@ -60,14 +60,6 @@ function buildIngestDeletePipeline (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - ingestDeletePipeline(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['id'] == null) { diff --git a/api/api/ingest.get_pipeline.js b/api/api/ingest.get_pipeline.js index 3a087b52e..2a6aa3938 100644 --- a/api/api/ingest.get_pipeline.js +++ b/api/api/ingest.get_pipeline.js @@ -58,14 +58,6 @@ function buildIngestGetPipeline (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - ingestGetPipeline(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/ingest.processor_grok.js b/api/api/ingest.processor_grok.js index ac3e50156..d5b47b3d6 100644 --- a/api/api/ingest.processor_grok.js +++ b/api/api/ingest.processor_grok.js @@ -54,14 +54,6 @@ function buildIngestProcessorGrok (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - ingestProcessorGrok(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/ingest.put_pipeline.js b/api/api/ingest.put_pipeline.js index 124995cea..13dc50ff3 100644 --- a/api/api/ingest.put_pipeline.js +++ b/api/api/ingest.put_pipeline.js @@ -61,14 +61,6 @@ function buildIngestPutPipeline (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - ingestPutPipeline(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['id'] == null) { diff --git a/api/api/ingest.simulate.js b/api/api/ingest.simulate.js index 3f84a53c3..4d8c299f3 100644 --- a/api/api/ingest.simulate.js +++ b/api/api/ingest.simulate.js @@ -58,14 +58,6 @@ function buildIngestSimulate (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - ingestSimulate(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['body'] == null) { diff --git a/api/api/mget.js b/api/api/mget.js index 7f723bf27..5857ca38c 100644 --- a/api/api/mget.js +++ b/api/api/mget.js @@ -76,14 +76,6 @@ function buildMget (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - mget(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['body'] == null) { diff --git a/api/api/ml.close_job.js b/api/api/ml.close_job.js index 9074eba30..1b923f530 100644 --- a/api/api/ml.close_job.js +++ b/api/api/ml.close_job.js @@ -57,14 +57,6 @@ function buildMlCloseJob (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - mlCloseJob(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['job_id'] == null && params['jobId'] == null) { diff --git a/api/api/ml.delete_calendar.js b/api/api/ml.delete_calendar.js index 4a8a37d8b..2e270a081 100644 --- a/api/api/ml.delete_calendar.js +++ b/api/api/ml.delete_calendar.js @@ -50,14 +50,6 @@ function buildMlDeleteCalendar (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - mlDeleteCalendar(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['calendar_id'] == null && params['calendarId'] == null) { diff --git a/api/api/ml.delete_calendar_event.js b/api/api/ml.delete_calendar_event.js index b7df3155f..b08e2b8ff 100644 --- a/api/api/ml.delete_calendar_event.js +++ b/api/api/ml.delete_calendar_event.js @@ -51,14 +51,6 @@ function buildMlDeleteCalendarEvent (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - mlDeleteCalendarEvent(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['calendar_id'] == null && params['calendarId'] == null) { diff --git a/api/api/ml.delete_calendar_job.js b/api/api/ml.delete_calendar_job.js index f21d9ac6a..4db8a932a 100644 --- a/api/api/ml.delete_calendar_job.js +++ b/api/api/ml.delete_calendar_job.js @@ -51,14 +51,6 @@ function buildMlDeleteCalendarJob (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - mlDeleteCalendarJob(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['calendar_id'] == null && params['calendarId'] == null) { diff --git a/api/api/ml.delete_datafeed.js b/api/api/ml.delete_datafeed.js index 54a45a41a..4e51efca3 100644 --- a/api/api/ml.delete_datafeed.js +++ b/api/api/ml.delete_datafeed.js @@ -51,14 +51,6 @@ function buildMlDeleteDatafeed (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - mlDeleteDatafeed(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['datafeed_id'] == null && params['datafeedId'] == null) { diff --git a/api/api/ml.delete_expired_data.js b/api/api/ml.delete_expired_data.js index 0542e14c8..30ca5cadd 100644 --- a/api/api/ml.delete_expired_data.js +++ b/api/api/ml.delete_expired_data.js @@ -49,14 +49,6 @@ function buildMlDeleteExpiredData (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - mlDeleteExpiredData(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/ml.delete_filter.js b/api/api/ml.delete_filter.js index 6a5de9739..8a3218408 100644 --- a/api/api/ml.delete_filter.js +++ b/api/api/ml.delete_filter.js @@ -50,14 +50,6 @@ function buildMlDeleteFilter (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - mlDeleteFilter(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['filter_id'] == null && params['filterId'] == null) { diff --git a/api/api/ml.delete_forecast.js b/api/api/ml.delete_forecast.js index 9f198e4b5..85c5d9d80 100644 --- a/api/api/ml.delete_forecast.js +++ b/api/api/ml.delete_forecast.js @@ -55,14 +55,6 @@ function buildMlDeleteForecast (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - mlDeleteForecast(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['job_id'] == null && params['jobId'] == null) { diff --git a/api/api/ml.delete_job.js b/api/api/ml.delete_job.js index eaadee6a9..5b692d36b 100644 --- a/api/api/ml.delete_job.js +++ b/api/api/ml.delete_job.js @@ -53,14 +53,6 @@ function buildMlDeleteJob (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - mlDeleteJob(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['job_id'] == null && params['jobId'] == null) { diff --git a/api/api/ml.delete_model_snapshot.js b/api/api/ml.delete_model_snapshot.js index 4cf55a783..3a13c967c 100644 --- a/api/api/ml.delete_model_snapshot.js +++ b/api/api/ml.delete_model_snapshot.js @@ -51,14 +51,6 @@ function buildMlDeleteModelSnapshot (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - mlDeleteModelSnapshot(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['job_id'] == null && params['jobId'] == null) { diff --git a/api/api/ml.find_file_structure.js b/api/api/ml.find_file_structure.js index 7ffdeea43..c3cb5179f 100644 --- a/api/api/ml.find_file_structure.js +++ b/api/api/ml.find_file_structure.js @@ -82,14 +82,6 @@ function buildMlFindFileStructure (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - mlFindFileStructure(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['body'] == null) { diff --git a/api/api/ml.flush_job.js b/api/api/ml.flush_job.js index 82a25e63f..b72f9395c 100644 --- a/api/api/ml.flush_job.js +++ b/api/api/ml.flush_job.js @@ -62,14 +62,6 @@ function buildMlFlushJob (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - mlFlushJob(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['job_id'] == null && params['jobId'] == null) { diff --git a/api/api/ml.forecast.js b/api/api/ml.forecast.js index 2a85d6098..65d03b5f8 100644 --- a/api/api/ml.forecast.js +++ b/api/api/ml.forecast.js @@ -53,14 +53,6 @@ function buildMlForecast (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - mlForecast(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['job_id'] == null && params['jobId'] == null) { diff --git a/api/api/ml.get_buckets.js b/api/api/ml.get_buckets.js index c366ce6ba..4d70ccb5f 100644 --- a/api/api/ml.get_buckets.js +++ b/api/api/ml.get_buckets.js @@ -71,14 +71,6 @@ function buildMlGetBuckets (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - mlGetBuckets(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['job_id'] == null && params['jobId'] == null) { diff --git a/api/api/ml.get_calendar_events.js b/api/api/ml.get_calendar_events.js index 5fd1ce5e8..bdc373d30 100644 --- a/api/api/ml.get_calendar_events.js +++ b/api/api/ml.get_calendar_events.js @@ -60,14 +60,6 @@ function buildMlGetCalendarEvents (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - mlGetCalendarEvents(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['calendar_id'] == null && params['calendarId'] == null) { diff --git a/api/api/ml.get_calendars.js b/api/api/ml.get_calendars.js index f1495d808..810145c7f 100644 --- a/api/api/ml.get_calendars.js +++ b/api/api/ml.get_calendars.js @@ -53,14 +53,6 @@ function buildMlGetCalendars (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - mlGetCalendars(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/ml.get_categories.js b/api/api/ml.get_categories.js index 7a4962025..47c203b3e 100644 --- a/api/api/ml.get_categories.js +++ b/api/api/ml.get_categories.js @@ -55,14 +55,6 @@ function buildMlGetCategories (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - mlGetCategories(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['job_id'] == null && params['jobId'] == null) { diff --git a/api/api/ml.get_datafeed_stats.js b/api/api/ml.get_datafeed_stats.js index ed8f750e2..97c8ea3c0 100644 --- a/api/api/ml.get_datafeed_stats.js +++ b/api/api/ml.get_datafeed_stats.js @@ -51,14 +51,6 @@ function buildMlGetDatafeedStats (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - mlGetDatafeedStats(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/ml.get_datafeeds.js b/api/api/ml.get_datafeeds.js index 222ebec71..ae88fb528 100644 --- a/api/api/ml.get_datafeeds.js +++ b/api/api/ml.get_datafeeds.js @@ -51,14 +51,6 @@ function buildMlGetDatafeeds (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - mlGetDatafeeds(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/ml.get_filters.js b/api/api/ml.get_filters.js index cc312e6dc..5666cf902 100644 --- a/api/api/ml.get_filters.js +++ b/api/api/ml.get_filters.js @@ -53,14 +53,6 @@ function buildMlGetFilters (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - mlGetFilters(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/ml.get_influencers.js b/api/api/ml.get_influencers.js index 9dcf9b4db..498f13d20 100644 --- a/api/api/ml.get_influencers.js +++ b/api/api/ml.get_influencers.js @@ -68,14 +68,6 @@ function buildMlGetInfluencers (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - mlGetInfluencers(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['job_id'] == null && params['jobId'] == null) { diff --git a/api/api/ml.get_job_stats.js b/api/api/ml.get_job_stats.js index 7f7d269ce..7c8e8b653 100644 --- a/api/api/ml.get_job_stats.js +++ b/api/api/ml.get_job_stats.js @@ -51,14 +51,6 @@ function buildMlGetJobStats (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - mlGetJobStats(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/ml.get_jobs.js b/api/api/ml.get_jobs.js index 045fb72a6..fcb8734c7 100644 --- a/api/api/ml.get_jobs.js +++ b/api/api/ml.get_jobs.js @@ -51,14 +51,6 @@ function buildMlGetJobs (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - mlGetJobs(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/ml.get_model_snapshots.js b/api/api/ml.get_model_snapshots.js index 0c47346c9..f9b2aae7d 100644 --- a/api/api/ml.get_model_snapshots.js +++ b/api/api/ml.get_model_snapshots.js @@ -63,14 +63,6 @@ function buildMlGetModelSnapshots (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - mlGetModelSnapshots(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['job_id'] == null && params['jobId'] == null) { diff --git a/api/api/ml.get_overall_buckets.js b/api/api/ml.get_overall_buckets.js index c6a2ec4b5..d5e647590 100644 --- a/api/api/ml.get_overall_buckets.js +++ b/api/api/ml.get_overall_buckets.js @@ -68,14 +68,6 @@ function buildMlGetOverallBuckets (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - mlGetOverallBuckets(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['job_id'] == null && params['jobId'] == null) { diff --git a/api/api/ml.get_records.js b/api/api/ml.get_records.js index fd1608283..e38213f0f 100644 --- a/api/api/ml.get_records.js +++ b/api/api/ml.get_records.js @@ -68,14 +68,6 @@ function buildMlGetRecords (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - mlGetRecords(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['job_id'] == null && params['jobId'] == null) { diff --git a/api/api/ml.info.js b/api/api/ml.info.js index db91bad09..55c7c9e0e 100644 --- a/api/api/ml.info.js +++ b/api/api/ml.info.js @@ -49,14 +49,6 @@ function buildMlInfo (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - mlInfo(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // validate headers object if (options.headers != null && typeof options.headers !== 'object') { diff --git a/api/api/ml.open_job.js b/api/api/ml.open_job.js index b3ea5cf40..81f92ae12 100644 --- a/api/api/ml.open_job.js +++ b/api/api/ml.open_job.js @@ -52,14 +52,6 @@ function buildMlOpenJob (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - mlOpenJob(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['job_id'] == null && params['jobId'] == null) { diff --git a/api/api/ml.post_calendar_events.js b/api/api/ml.post_calendar_events.js index 58fea906c..a99b009da 100644 --- a/api/api/ml.post_calendar_events.js +++ b/api/api/ml.post_calendar_events.js @@ -51,14 +51,6 @@ function buildMlPostCalendarEvents (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - mlPostCalendarEvents(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['calendar_id'] == null && params['calendarId'] == null) { diff --git a/api/api/ml.post_data.js b/api/api/ml.post_data.js index bde273e14..702ad50a2 100644 --- a/api/api/ml.post_data.js +++ b/api/api/ml.post_data.js @@ -55,14 +55,6 @@ function buildMlPostData (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - mlPostData(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['job_id'] == null && params['jobId'] == null) { diff --git a/api/api/ml.preview_datafeed.js b/api/api/ml.preview_datafeed.js index 90fb528e3..c7b68045c 100644 --- a/api/api/ml.preview_datafeed.js +++ b/api/api/ml.preview_datafeed.js @@ -50,14 +50,6 @@ function buildMlPreviewDatafeed (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - mlPreviewDatafeed(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['datafeed_id'] == null && params['datafeedId'] == null) { diff --git a/api/api/ml.put_calendar.js b/api/api/ml.put_calendar.js index c3a7a716b..a47f770ce 100644 --- a/api/api/ml.put_calendar.js +++ b/api/api/ml.put_calendar.js @@ -51,14 +51,6 @@ function buildMlPutCalendar (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - mlPutCalendar(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['calendar_id'] == null && params['calendarId'] == null) { diff --git a/api/api/ml.put_calendar_job.js b/api/api/ml.put_calendar_job.js index 41000c788..7c23f126f 100644 --- a/api/api/ml.put_calendar_job.js +++ b/api/api/ml.put_calendar_job.js @@ -51,14 +51,6 @@ function buildMlPutCalendarJob (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - mlPutCalendarJob(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['calendar_id'] == null && params['calendarId'] == null) { diff --git a/api/api/ml.put_datafeed.js b/api/api/ml.put_datafeed.js index cb61c97bd..4a6856c83 100644 --- a/api/api/ml.put_datafeed.js +++ b/api/api/ml.put_datafeed.js @@ -51,14 +51,6 @@ function buildMlPutDatafeed (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - mlPutDatafeed(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['datafeed_id'] == null && params['datafeedId'] == null) { diff --git a/api/api/ml.put_filter.js b/api/api/ml.put_filter.js index e2b4a71f5..63d2b3ec9 100644 --- a/api/api/ml.put_filter.js +++ b/api/api/ml.put_filter.js @@ -51,14 +51,6 @@ function buildMlPutFilter (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - mlPutFilter(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['filter_id'] == null && params['filterId'] == null) { diff --git a/api/api/ml.put_job.js b/api/api/ml.put_job.js index 8d1a546f1..f5f363974 100644 --- a/api/api/ml.put_job.js +++ b/api/api/ml.put_job.js @@ -51,14 +51,6 @@ function buildMlPutJob (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - mlPutJob(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['job_id'] == null && params['jobId'] == null) { diff --git a/api/api/ml.revert_model_snapshot.js b/api/api/ml.revert_model_snapshot.js index 4a0266db9..81a70e0db 100644 --- a/api/api/ml.revert_model_snapshot.js +++ b/api/api/ml.revert_model_snapshot.js @@ -53,14 +53,6 @@ function buildMlRevertModelSnapshot (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - mlRevertModelSnapshot(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['job_id'] == null && params['jobId'] == null) { diff --git a/api/api/ml.set_upgrade_mode.js b/api/api/ml.set_upgrade_mode.js index 52895ccf5..cd95163a2 100644 --- a/api/api/ml.set_upgrade_mode.js +++ b/api/api/ml.set_upgrade_mode.js @@ -52,14 +52,6 @@ function buildMlSetUpgradeMode (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - mlSetUpgradeMode(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/ml.start_datafeed.js b/api/api/ml.start_datafeed.js index 2bd084273..1ca6a7362 100644 --- a/api/api/ml.start_datafeed.js +++ b/api/api/ml.start_datafeed.js @@ -56,14 +56,6 @@ function buildMlStartDatafeed (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - mlStartDatafeed(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['datafeed_id'] == null && params['datafeedId'] == null) { diff --git a/api/api/ml.stop_datafeed.js b/api/api/ml.stop_datafeed.js index 981a41836..13515e966 100644 --- a/api/api/ml.stop_datafeed.js +++ b/api/api/ml.stop_datafeed.js @@ -56,14 +56,6 @@ function buildMlStopDatafeed (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - mlStopDatafeed(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['datafeed_id'] == null && params['datafeedId'] == null) { diff --git a/api/api/ml.update_datafeed.js b/api/api/ml.update_datafeed.js index 9fb428ef5..e2e800fa2 100644 --- a/api/api/ml.update_datafeed.js +++ b/api/api/ml.update_datafeed.js @@ -51,14 +51,6 @@ function buildMlUpdateDatafeed (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - mlUpdateDatafeed(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['datafeed_id'] == null && params['datafeedId'] == null) { diff --git a/api/api/ml.update_filter.js b/api/api/ml.update_filter.js index c6c894cc5..b50f1cc3a 100644 --- a/api/api/ml.update_filter.js +++ b/api/api/ml.update_filter.js @@ -51,14 +51,6 @@ function buildMlUpdateFilter (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - mlUpdateFilter(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['filter_id'] == null && params['filterId'] == null) { diff --git a/api/api/ml.update_job.js b/api/api/ml.update_job.js index 34567cf42..f315e41af 100644 --- a/api/api/ml.update_job.js +++ b/api/api/ml.update_job.js @@ -51,14 +51,6 @@ function buildMlUpdateJob (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - mlUpdateJob(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['job_id'] == null && params['jobId'] == null) { diff --git a/api/api/ml.update_model_snapshot.js b/api/api/ml.update_model_snapshot.js index 938efb3d8..7d44400e5 100644 --- a/api/api/ml.update_model_snapshot.js +++ b/api/api/ml.update_model_snapshot.js @@ -52,14 +52,6 @@ function buildMlUpdateModelSnapshot (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - mlUpdateModelSnapshot(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['job_id'] == null && params['jobId'] == null) { diff --git a/api/api/ml.validate.js b/api/api/ml.validate.js index ab3767300..2f1401f3e 100644 --- a/api/api/ml.validate.js +++ b/api/api/ml.validate.js @@ -50,14 +50,6 @@ function buildMlValidate (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - mlValidate(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['body'] == null) { diff --git a/api/api/ml.validate_detector.js b/api/api/ml.validate_detector.js index 9041daa51..07570ddc6 100644 --- a/api/api/ml.validate_detector.js +++ b/api/api/ml.validate_detector.js @@ -50,14 +50,6 @@ function buildMlValidateDetector (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - mlValidateDetector(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['body'] == null) { diff --git a/api/api/monitoring.bulk.js b/api/api/monitoring.bulk.js index 12b969770..082c26acb 100644 --- a/api/api/monitoring.bulk.js +++ b/api/api/monitoring.bulk.js @@ -58,14 +58,6 @@ function buildMonitoringBulk (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - monitoringBulk(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['body'] == null) { diff --git a/api/api/msearch.js b/api/api/msearch.js index 7c9e7572b..a10558174 100644 --- a/api/api/msearch.js +++ b/api/api/msearch.js @@ -78,14 +78,6 @@ function buildMsearch (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - msearch(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['body'] == null) { diff --git a/api/api/msearch_template.js b/api/api/msearch_template.js index d5cf00668..5fd848d92 100644 --- a/api/api/msearch_template.js +++ b/api/api/msearch_template.js @@ -72,14 +72,6 @@ function buildMsearchTemplate (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - msearchTemplate(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['body'] == null) { diff --git a/api/api/mtermvectors.js b/api/api/mtermvectors.js index fe88cb988..ceb3a089c 100644 --- a/api/api/mtermvectors.js +++ b/api/api/mtermvectors.js @@ -86,14 +86,6 @@ function buildMtermvectors (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - mtermvectors(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required url components if (params['type'] != null && (params['index'] == null)) { diff --git a/api/api/nodes.hot_threads.js b/api/api/nodes.hot_threads.js index 44bd8dc3a..e78ea5213 100644 --- a/api/api/nodes.hot_threads.js +++ b/api/api/nodes.hot_threads.js @@ -68,14 +68,6 @@ function buildNodesHotThreads (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - nodesHotThreads(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/nodes.info.js b/api/api/nodes.info.js index b4ef6b8e1..41cbd98ce 100644 --- a/api/api/nodes.info.js +++ b/api/api/nodes.info.js @@ -61,14 +61,6 @@ function buildNodesInfo (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - nodesInfo(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/nodes.reload_secure_settings.js b/api/api/nodes.reload_secure_settings.js index dc185a7c9..a9fee39e7 100644 --- a/api/api/nodes.reload_secure_settings.js +++ b/api/api/nodes.reload_secure_settings.js @@ -57,14 +57,6 @@ function buildNodesReloadSecureSettings (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - nodesReloadSecureSettings(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/nodes.stats.js b/api/api/nodes.stats.js index 0ca0ac3af..f84e583de 100644 --- a/api/api/nodes.stats.js +++ b/api/api/nodes.stats.js @@ -76,14 +76,6 @@ function buildNodesStats (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - nodesStats(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/nodes.usage.js b/api/api/nodes.usage.js index a7edd6912..783066665 100644 --- a/api/api/nodes.usage.js +++ b/api/api/nodes.usage.js @@ -58,14 +58,6 @@ function buildNodesUsage (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - nodesUsage(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/ping.js b/api/api/ping.js index 92e3f970b..e696c1568 100644 --- a/api/api/ping.js +++ b/api/api/ping.js @@ -54,14 +54,6 @@ function buildPing (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - ping(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/put_script.js b/api/api/put_script.js index db75d91cf..993e2130e 100644 --- a/api/api/put_script.js +++ b/api/api/put_script.js @@ -64,14 +64,6 @@ function buildPutScript (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - putScript(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['id'] == null) { diff --git a/api/api/rank_eval.js b/api/api/rank_eval.js index e92f7e316..e3c3f39dc 100644 --- a/api/api/rank_eval.js +++ b/api/api/rank_eval.js @@ -65,14 +65,6 @@ function buildRankEval (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - rankEval(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['body'] == null) { diff --git a/api/api/reindex.js b/api/api/reindex.js index 357f98875..535fc265e 100644 --- a/api/api/reindex.js +++ b/api/api/reindex.js @@ -70,14 +70,6 @@ function buildReindex (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - reindex(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['body'] == null) { diff --git a/api/api/reindex_rethrottle.js b/api/api/reindex_rethrottle.js index 44e14ffcf..4bdf99863 100644 --- a/api/api/reindex_rethrottle.js +++ b/api/api/reindex_rethrottle.js @@ -58,14 +58,6 @@ function buildReindexRethrottle (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - reindexRethrottle(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['task_id'] == null && params['taskId'] == null) { diff --git a/api/api/render_search_template.js b/api/api/render_search_template.js index f3404c6b4..8936dc4f9 100644 --- a/api/api/render_search_template.js +++ b/api/api/render_search_template.js @@ -56,14 +56,6 @@ function buildRenderSearchTemplate (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - renderSearchTemplate(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // validate headers object if (options.headers != null && typeof options.headers !== 'object') { diff --git a/api/api/scripts_painless_execute.js b/api/api/scripts_painless_execute.js index bed28d199..0a0a8ae25 100644 --- a/api/api/scripts_painless_execute.js +++ b/api/api/scripts_painless_execute.js @@ -55,14 +55,6 @@ function buildScriptsPainlessExecute (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - scriptsPainlessExecute(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // validate headers object if (options.headers != null && typeof options.headers !== 'object') { diff --git a/api/api/scroll.js b/api/api/scroll.js index a0df2513c..beff548d2 100644 --- a/api/api/scroll.js +++ b/api/api/scroll.js @@ -64,14 +64,6 @@ function buildScroll (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - scroll(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // validate headers object if (options.headers != null && typeof options.headers !== 'object') { diff --git a/api/api/search.js b/api/api/search.js index fc74cb5e9..e5b3cdfa9 100644 --- a/api/api/search.js +++ b/api/api/search.js @@ -168,14 +168,6 @@ function buildSearch (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - search(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required url components if (params['type'] != null && (params['index'] == null)) { diff --git a/api/api/search_shards.js b/api/api/search_shards.js index dd0b89496..4ae9034ad 100644 --- a/api/api/search_shards.js +++ b/api/api/search_shards.js @@ -70,14 +70,6 @@ function buildSearchShards (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - searchShards(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/search_template.js b/api/api/search_template.js index f1b90ac28..466d669c1 100644 --- a/api/api/search_template.js +++ b/api/api/search_template.js @@ -91,14 +91,6 @@ function buildSearchTemplate (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - searchTemplate(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['body'] == null) { diff --git a/api/api/security.authenticate.js b/api/api/security.authenticate.js index d83a8967e..da504bdc4 100644 --- a/api/api/security.authenticate.js +++ b/api/api/security.authenticate.js @@ -49,14 +49,6 @@ function buildSecurityAuthenticate (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - securityAuthenticate(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/security.change_password.js b/api/api/security.change_password.js index 053b3ddaa..569dbf449 100644 --- a/api/api/security.change_password.js +++ b/api/api/security.change_password.js @@ -52,14 +52,6 @@ function buildSecurityChangePassword (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - securityChangePassword(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['body'] == null) { diff --git a/api/api/security.clear_cached_realms.js b/api/api/security.clear_cached_realms.js index 97e40cea6..97af5dcaf 100644 --- a/api/api/security.clear_cached_realms.js +++ b/api/api/security.clear_cached_realms.js @@ -51,14 +51,6 @@ function buildSecurityClearCachedRealms (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - securityClearCachedRealms(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['realms'] == null) { diff --git a/api/api/security.clear_cached_roles.js b/api/api/security.clear_cached_roles.js index efa455423..1741e5e1f 100644 --- a/api/api/security.clear_cached_roles.js +++ b/api/api/security.clear_cached_roles.js @@ -50,14 +50,6 @@ function buildSecurityClearCachedRoles (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - securityClearCachedRoles(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['name'] == null) { diff --git a/api/api/security.create_api_key.js b/api/api/security.create_api_key.js index d6d928716..b5dd7e597 100644 --- a/api/api/security.create_api_key.js +++ b/api/api/security.create_api_key.js @@ -51,14 +51,6 @@ function buildSecurityCreateApiKey (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - securityCreateApiKey(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['body'] == null) { diff --git a/api/api/security.delete_privileges.js b/api/api/security.delete_privileges.js index 53dd69bb1..fa54275d3 100644 --- a/api/api/security.delete_privileges.js +++ b/api/api/security.delete_privileges.js @@ -52,14 +52,6 @@ function buildSecurityDeletePrivileges (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - securityDeletePrivileges(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['application'] == null) { diff --git a/api/api/security.delete_role.js b/api/api/security.delete_role.js index 5cb9a7856..f8046d046 100644 --- a/api/api/security.delete_role.js +++ b/api/api/security.delete_role.js @@ -51,14 +51,6 @@ function buildSecurityDeleteRole (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - securityDeleteRole(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['name'] == null) { diff --git a/api/api/security.delete_role_mapping.js b/api/api/security.delete_role_mapping.js index 4139ef209..269c7a87d 100644 --- a/api/api/security.delete_role_mapping.js +++ b/api/api/security.delete_role_mapping.js @@ -51,14 +51,6 @@ function buildSecurityDeleteRoleMapping (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - securityDeleteRoleMapping(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['name'] == null) { diff --git a/api/api/security.delete_user.js b/api/api/security.delete_user.js index 521c45e02..f89bb0fb9 100644 --- a/api/api/security.delete_user.js +++ b/api/api/security.delete_user.js @@ -51,14 +51,6 @@ function buildSecurityDeleteUser (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - securityDeleteUser(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['username'] == null) { diff --git a/api/api/security.disable_user.js b/api/api/security.disable_user.js index b1099099c..e7f1bccde 100644 --- a/api/api/security.disable_user.js +++ b/api/api/security.disable_user.js @@ -51,14 +51,6 @@ function buildSecurityDisableUser (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - securityDisableUser(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/security.enable_user.js b/api/api/security.enable_user.js index ff070099d..58a49c9d6 100644 --- a/api/api/security.enable_user.js +++ b/api/api/security.enable_user.js @@ -51,14 +51,6 @@ function buildSecurityEnableUser (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - securityEnableUser(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/security.get_api_key.js b/api/api/security.get_api_key.js index 0bfc2d550..4d3d97769 100644 --- a/api/api/security.get_api_key.js +++ b/api/api/security.get_api_key.js @@ -56,14 +56,6 @@ function buildSecurityGetApiKey (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - securityGetApiKey(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/security.get_privileges.js b/api/api/security.get_privileges.js index 78e2be06a..d285b6822 100644 --- a/api/api/security.get_privileges.js +++ b/api/api/security.get_privileges.js @@ -51,14 +51,6 @@ function buildSecurityGetPrivileges (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - securityGetPrivileges(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/security.get_role.js b/api/api/security.get_role.js index c652efd1f..24e2f384d 100644 --- a/api/api/security.get_role.js +++ b/api/api/security.get_role.js @@ -50,14 +50,6 @@ function buildSecurityGetRole (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - securityGetRole(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/security.get_role_mapping.js b/api/api/security.get_role_mapping.js index 93652ab6a..c56e81f8b 100644 --- a/api/api/security.get_role_mapping.js +++ b/api/api/security.get_role_mapping.js @@ -50,14 +50,6 @@ function buildSecurityGetRoleMapping (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - securityGetRoleMapping(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/security.get_token.js b/api/api/security.get_token.js index 41620b779..32ea01902 100644 --- a/api/api/security.get_token.js +++ b/api/api/security.get_token.js @@ -50,14 +50,6 @@ function buildSecurityGetToken (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - securityGetToken(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['body'] == null) { diff --git a/api/api/security.get_user.js b/api/api/security.get_user.js index 23bfca1f2..6f29262a2 100644 --- a/api/api/security.get_user.js +++ b/api/api/security.get_user.js @@ -50,14 +50,6 @@ function buildSecurityGetUser (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - securityGetUser(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/security.get_user_privileges.js b/api/api/security.get_user_privileges.js index 560e07538..7a79ef740 100644 --- a/api/api/security.get_user_privileges.js +++ b/api/api/security.get_user_privileges.js @@ -49,14 +49,6 @@ function buildSecurityGetUserPrivileges (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - securityGetUserPrivileges(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/security.has_privileges.js b/api/api/security.has_privileges.js index 893604cc8..78987c6b8 100644 --- a/api/api/security.has_privileges.js +++ b/api/api/security.has_privileges.js @@ -51,14 +51,6 @@ function buildSecurityHasPrivileges (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - securityHasPrivileges(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['body'] == null) { diff --git a/api/api/security.invalidate_api_key.js b/api/api/security.invalidate_api_key.js index 75428192b..1d4a7f877 100644 --- a/api/api/security.invalidate_api_key.js +++ b/api/api/security.invalidate_api_key.js @@ -50,14 +50,6 @@ function buildSecurityInvalidateApiKey (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - securityInvalidateApiKey(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['body'] == null) { diff --git a/api/api/security.invalidate_token.js b/api/api/security.invalidate_token.js index 31e29f31a..fa2043b2c 100644 --- a/api/api/security.invalidate_token.js +++ b/api/api/security.invalidate_token.js @@ -50,14 +50,6 @@ function buildSecurityInvalidateToken (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - securityInvalidateToken(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['body'] == null) { diff --git a/api/api/security.put_privileges.js b/api/api/security.put_privileges.js index 52d46d3c7..c08e9aa01 100644 --- a/api/api/security.put_privileges.js +++ b/api/api/security.put_privileges.js @@ -51,14 +51,6 @@ function buildSecurityPutPrivileges (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - securityPutPrivileges(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['body'] == null) { diff --git a/api/api/security.put_role.js b/api/api/security.put_role.js index c4f284eb2..6bd851141 100644 --- a/api/api/security.put_role.js +++ b/api/api/security.put_role.js @@ -52,14 +52,6 @@ function buildSecurityPutRole (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - securityPutRole(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['name'] == null) { diff --git a/api/api/security.put_role_mapping.js b/api/api/security.put_role_mapping.js index 452bbe29a..c6450d155 100644 --- a/api/api/security.put_role_mapping.js +++ b/api/api/security.put_role_mapping.js @@ -52,14 +52,6 @@ function buildSecurityPutRoleMapping (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - securityPutRoleMapping(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['name'] == null) { diff --git a/api/api/security.put_user.js b/api/api/security.put_user.js index f47652fc4..16fb9182d 100644 --- a/api/api/security.put_user.js +++ b/api/api/security.put_user.js @@ -52,14 +52,6 @@ function buildSecurityPutUser (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - securityPutUser(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['username'] == null) { diff --git a/api/api/snapshot.create.js b/api/api/snapshot.create.js index e76b8414a..016a9fee6 100644 --- a/api/api/snapshot.create.js +++ b/api/api/snapshot.create.js @@ -63,14 +63,6 @@ function buildSnapshotCreate (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - snapshotCreate(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['repository'] == null) { diff --git a/api/api/snapshot.create_repository.js b/api/api/snapshot.create_repository.js index 8cca44291..284f1e821 100644 --- a/api/api/snapshot.create_repository.js +++ b/api/api/snapshot.create_repository.js @@ -63,14 +63,6 @@ function buildSnapshotCreateRepository (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - snapshotCreateRepository(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['repository'] == null) { diff --git a/api/api/snapshot.delete.js b/api/api/snapshot.delete.js index 751501653..036535eb7 100644 --- a/api/api/snapshot.delete.js +++ b/api/api/snapshot.delete.js @@ -59,14 +59,6 @@ function buildSnapshotDelete (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - snapshotDelete(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['repository'] == null) { diff --git a/api/api/snapshot.delete_repository.js b/api/api/snapshot.delete_repository.js index 09edaa681..b552268c8 100644 --- a/api/api/snapshot.delete_repository.js +++ b/api/api/snapshot.delete_repository.js @@ -60,14 +60,6 @@ function buildSnapshotDeleteRepository (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - snapshotDeleteRepository(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['repository'] == null) { diff --git a/api/api/snapshot.get.js b/api/api/snapshot.get.js index e30b56ba5..f05948fea 100644 --- a/api/api/snapshot.get.js +++ b/api/api/snapshot.get.js @@ -64,14 +64,6 @@ function buildSnapshotGet (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - snapshotGet(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['repository'] == null) { diff --git a/api/api/snapshot.get_repository.js b/api/api/snapshot.get_repository.js index 473f293ed..1b0b32129 100644 --- a/api/api/snapshot.get_repository.js +++ b/api/api/snapshot.get_repository.js @@ -60,14 +60,6 @@ function buildSnapshotGetRepository (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - snapshotGetRepository(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/snapshot.restore.js b/api/api/snapshot.restore.js index fb2e74995..13865283f 100644 --- a/api/api/snapshot.restore.js +++ b/api/api/snapshot.restore.js @@ -63,14 +63,6 @@ function buildSnapshotRestore (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - snapshotRestore(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['repository'] == null) { diff --git a/api/api/snapshot.status.js b/api/api/snapshot.status.js index 6480c6760..cb3536c40 100644 --- a/api/api/snapshot.status.js +++ b/api/api/snapshot.status.js @@ -62,14 +62,6 @@ function buildSnapshotStatus (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - snapshotStatus(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/snapshot.verify_repository.js b/api/api/snapshot.verify_repository.js index 08bc473c9..12db7c034 100644 --- a/api/api/snapshot.verify_repository.js +++ b/api/api/snapshot.verify_repository.js @@ -60,14 +60,6 @@ function buildSnapshotVerifyRepository (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - snapshotVerifyRepository(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['repository'] == null) { diff --git a/api/api/ssl.certificates.js b/api/api/ssl.certificates.js index 75b371557..7e876c609 100644 --- a/api/api/ssl.certificates.js +++ b/api/api/ssl.certificates.js @@ -49,14 +49,6 @@ function buildSslCertificates (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - sslCertificates(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/tasks.cancel.js b/api/api/tasks.cancel.js index c333e0d36..2d226efd9 100644 --- a/api/api/tasks.cancel.js +++ b/api/api/tasks.cancel.js @@ -62,14 +62,6 @@ function buildTasksCancel (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - tasksCancel(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/tasks.get.js b/api/api/tasks.get.js index 416a64cf6..032ca29a8 100644 --- a/api/api/tasks.get.js +++ b/api/api/tasks.get.js @@ -60,14 +60,6 @@ function buildTasksGet (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - tasksGet(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['task_id'] == null && params['taskId'] == null) { diff --git a/api/api/tasks.list.js b/api/api/tasks.list.js index 1683df6f0..2d9362434 100644 --- a/api/api/tasks.list.js +++ b/api/api/tasks.list.js @@ -71,14 +71,6 @@ function buildTasksList (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - tasksList(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/termvectors.js b/api/api/termvectors.js index d4c822286..cb8a10d3e 100644 --- a/api/api/termvectors.js +++ b/api/api/termvectors.js @@ -85,14 +85,6 @@ function buildTermvectors (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - termvectors(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['index'] == null) { diff --git a/api/api/update.js b/api/api/update.js index 997fb167f..a1bbe0b54 100644 --- a/api/api/update.js +++ b/api/api/update.js @@ -88,14 +88,6 @@ function buildUpdate (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - update(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['id'] == null) { diff --git a/api/api/update_by_query.js b/api/api/update_by_query.js index 6c31f79c6..a6455a813 100644 --- a/api/api/update_by_query.js +++ b/api/api/update_by_query.js @@ -141,14 +141,6 @@ function buildUpdateByQuery (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - updateByQuery(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['index'] == null) { diff --git a/api/api/update_by_query_rethrottle.js b/api/api/update_by_query_rethrottle.js index 48bdffa57..b57d94b40 100644 --- a/api/api/update_by_query_rethrottle.js +++ b/api/api/update_by_query_rethrottle.js @@ -58,14 +58,6 @@ function buildUpdateByQueryRethrottle (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - updateByQueryRethrottle(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['task_id'] == null && params['taskId'] == null) { diff --git a/api/api/xpack.graph.explore.js b/api/api/xpack.graph.explore.js index 823e7f232..c991bc53e 100644 --- a/api/api/xpack.graph.explore.js +++ b/api/api/xpack.graph.explore.js @@ -55,14 +55,6 @@ function buildXpackGraphExplore (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackGraphExplore(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required url components if (params['type'] != null && (params['index'] == null)) { diff --git a/api/api/xpack.info.js b/api/api/xpack.info.js index c4db3ea38..6881278e2 100644 --- a/api/api/xpack.info.js +++ b/api/api/xpack.info.js @@ -50,14 +50,6 @@ function buildXpackInfo (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackInfo(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/xpack.license.delete.js b/api/api/xpack.license.delete.js index f60e1546e..0ba866644 100644 --- a/api/api/xpack.license.delete.js +++ b/api/api/xpack.license.delete.js @@ -49,14 +49,6 @@ function buildXpackLicenseDelete (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackLicenseDelete(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/xpack.license.get.js b/api/api/xpack.license.get.js index c2f887c29..fe2c0a32c 100644 --- a/api/api/xpack.license.get.js +++ b/api/api/xpack.license.get.js @@ -50,14 +50,6 @@ function buildXpackLicenseGet (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackLicenseGet(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/xpack.license.get_basic_status.js b/api/api/xpack.license.get_basic_status.js index 9dc5ee6ec..0ec25ff6d 100644 --- a/api/api/xpack.license.get_basic_status.js +++ b/api/api/xpack.license.get_basic_status.js @@ -49,14 +49,6 @@ function buildXpackLicenseGetBasicStatus (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackLicenseGetBasicStatus(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/xpack.license.get_trial_status.js b/api/api/xpack.license.get_trial_status.js index 3b5d68145..09660966b 100644 --- a/api/api/xpack.license.get_trial_status.js +++ b/api/api/xpack.license.get_trial_status.js @@ -49,14 +49,6 @@ function buildXpackLicenseGetTrialStatus (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackLicenseGetTrialStatus(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/xpack.license.post.js b/api/api/xpack.license.post.js index 5539a9131..ebbd77e2d 100644 --- a/api/api/xpack.license.post.js +++ b/api/api/xpack.license.post.js @@ -51,14 +51,6 @@ function buildXpackLicensePost (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackLicensePost(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // validate headers object if (options.headers != null && typeof options.headers !== 'object') { diff --git a/api/api/xpack.license.post_start_basic.js b/api/api/xpack.license.post_start_basic.js index 10af70ddd..9e9a6faae 100644 --- a/api/api/xpack.license.post_start_basic.js +++ b/api/api/xpack.license.post_start_basic.js @@ -50,14 +50,6 @@ function buildXpackLicensePostStartBasic (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackLicensePostStartBasic(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/xpack.license.post_start_trial.js b/api/api/xpack.license.post_start_trial.js index 7d7d6eb96..ac2c11f3a 100644 --- a/api/api/xpack.license.post_start_trial.js +++ b/api/api/xpack.license.post_start_trial.js @@ -52,14 +52,6 @@ function buildXpackLicensePostStartTrial (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackLicensePostStartTrial(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/xpack.migration.deprecations.js b/api/api/xpack.migration.deprecations.js index 0eaab511e..e5fbad087 100644 --- a/api/api/xpack.migration.deprecations.js +++ b/api/api/xpack.migration.deprecations.js @@ -50,14 +50,6 @@ function buildXpackMigrationDeprecations (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackMigrationDeprecations(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/xpack.migration.get_assistance.js b/api/api/xpack.migration.get_assistance.js index cfd98bdae..1840cdd9b 100644 --- a/api/api/xpack.migration.get_assistance.js +++ b/api/api/xpack.migration.get_assistance.js @@ -57,14 +57,6 @@ function buildXpackMigrationGetAssistance (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackMigrationGetAssistance(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // validate headers object if (options.headers != null && typeof options.headers !== 'object') { diff --git a/api/api/xpack.migration.upgrade.js b/api/api/xpack.migration.upgrade.js index e86a8fc50..305428a6c 100644 --- a/api/api/xpack.migration.upgrade.js +++ b/api/api/xpack.migration.upgrade.js @@ -51,14 +51,6 @@ function buildXpackMigrationUpgrade (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackMigrationUpgrade(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['index'] == null) { diff --git a/api/api/xpack.rollup.delete_job.js b/api/api/xpack.rollup.delete_job.js index e80e0f24a..7dc7a4903 100644 --- a/api/api/xpack.rollup.delete_job.js +++ b/api/api/xpack.rollup.delete_job.js @@ -50,14 +50,6 @@ function buildXpackRollupDeleteJob (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackRollupDeleteJob(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['id'] == null) { diff --git a/api/api/xpack.rollup.get_jobs.js b/api/api/xpack.rollup.get_jobs.js index 6162d7dbd..cdb7b666a 100644 --- a/api/api/xpack.rollup.get_jobs.js +++ b/api/api/xpack.rollup.get_jobs.js @@ -50,14 +50,6 @@ function buildXpackRollupGetJobs (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackRollupGetJobs(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // validate headers object if (options.headers != null && typeof options.headers !== 'object') { diff --git a/api/api/xpack.rollup.get_rollup_caps.js b/api/api/xpack.rollup.get_rollup_caps.js index ce8fd7b8d..cb18eee62 100644 --- a/api/api/xpack.rollup.get_rollup_caps.js +++ b/api/api/xpack.rollup.get_rollup_caps.js @@ -50,14 +50,6 @@ function buildXpackRollupGetRollupCaps (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackRollupGetRollupCaps(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // validate headers object if (options.headers != null && typeof options.headers !== 'object') { diff --git a/api/api/xpack.rollup.get_rollup_index_caps.js b/api/api/xpack.rollup.get_rollup_index_caps.js index 75c68f601..de4191264 100644 --- a/api/api/xpack.rollup.get_rollup_index_caps.js +++ b/api/api/xpack.rollup.get_rollup_index_caps.js @@ -50,14 +50,6 @@ function buildXpackRollupGetRollupIndexCaps (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackRollupGetRollupIndexCaps(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['index'] == null) { diff --git a/api/api/xpack.rollup.put_job.js b/api/api/xpack.rollup.put_job.js index b4b36b414..37de0684b 100644 --- a/api/api/xpack.rollup.put_job.js +++ b/api/api/xpack.rollup.put_job.js @@ -51,14 +51,6 @@ function buildXpackRollupPutJob (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackRollupPutJob(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['id'] == null) { diff --git a/api/api/xpack.rollup.rollup_search.js b/api/api/xpack.rollup.rollup_search.js index 0b8ef2969..e8bc75395 100644 --- a/api/api/xpack.rollup.rollup_search.js +++ b/api/api/xpack.rollup.rollup_search.js @@ -56,14 +56,6 @@ function buildXpackRollupRollupSearch (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackRollupRollupSearch(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['index'] == null) { diff --git a/api/api/xpack.rollup.start_job.js b/api/api/xpack.rollup.start_job.js index 763acadf4..33c3ac5fd 100644 --- a/api/api/xpack.rollup.start_job.js +++ b/api/api/xpack.rollup.start_job.js @@ -50,14 +50,6 @@ function buildXpackRollupStartJob (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackRollupStartJob(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['id'] == null) { diff --git a/api/api/xpack.rollup.stop_job.js b/api/api/xpack.rollup.stop_job.js index ac1f503b3..5bcf1373e 100644 --- a/api/api/xpack.rollup.stop_job.js +++ b/api/api/xpack.rollup.stop_job.js @@ -54,14 +54,6 @@ function buildXpackRollupStopJob (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackRollupStopJob(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['id'] == null) { diff --git a/api/api/xpack.sql.clear_cursor.js b/api/api/xpack.sql.clear_cursor.js index 26d64e8a1..f35f3e363 100644 --- a/api/api/xpack.sql.clear_cursor.js +++ b/api/api/xpack.sql.clear_cursor.js @@ -50,14 +50,6 @@ function buildXpackSqlClearCursor (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackSqlClearCursor(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['body'] == null) { diff --git a/api/api/xpack.sql.query.js b/api/api/xpack.sql.query.js index bb5d2e381..125c577f6 100644 --- a/api/api/xpack.sql.query.js +++ b/api/api/xpack.sql.query.js @@ -51,14 +51,6 @@ function buildXpackSqlQuery (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackSqlQuery(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['body'] == null) { diff --git a/api/api/xpack.sql.translate.js b/api/api/xpack.sql.translate.js index aadec40f7..c8df293e7 100644 --- a/api/api/xpack.sql.translate.js +++ b/api/api/xpack.sql.translate.js @@ -50,14 +50,6 @@ function buildXpackSqlTranslate (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackSqlTranslate(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['body'] == null) { diff --git a/api/api/xpack.usage.js b/api/api/xpack.usage.js index fd612f4f2..dd85627f1 100644 --- a/api/api/xpack.usage.js +++ b/api/api/xpack.usage.js @@ -50,14 +50,6 @@ function buildXpackUsage (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackUsage(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/xpack.watcher.ack_watch.js b/api/api/xpack.watcher.ack_watch.js index 367fc0fa9..9a8a450c4 100644 --- a/api/api/xpack.watcher.ack_watch.js +++ b/api/api/xpack.watcher.ack_watch.js @@ -51,14 +51,6 @@ function buildXpackWatcherAckWatch (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackWatcherAckWatch(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['watch_id'] == null && params['watchId'] == null) { diff --git a/api/api/xpack.watcher.activate_watch.js b/api/api/xpack.watcher.activate_watch.js index 16b7547ad..1d114b189 100644 --- a/api/api/xpack.watcher.activate_watch.js +++ b/api/api/xpack.watcher.activate_watch.js @@ -50,14 +50,6 @@ function buildXpackWatcherActivateWatch (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackWatcherActivateWatch(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['watch_id'] == null && params['watchId'] == null) { diff --git a/api/api/xpack.watcher.deactivate_watch.js b/api/api/xpack.watcher.deactivate_watch.js index 6881f2017..1e7fe35ac 100644 --- a/api/api/xpack.watcher.deactivate_watch.js +++ b/api/api/xpack.watcher.deactivate_watch.js @@ -50,14 +50,6 @@ function buildXpackWatcherDeactivateWatch (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackWatcherDeactivateWatch(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['watch_id'] == null && params['watchId'] == null) { diff --git a/api/api/xpack.watcher.delete_watch.js b/api/api/xpack.watcher.delete_watch.js index aa7b84653..063788115 100644 --- a/api/api/xpack.watcher.delete_watch.js +++ b/api/api/xpack.watcher.delete_watch.js @@ -50,14 +50,6 @@ function buildXpackWatcherDeleteWatch (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackWatcherDeleteWatch(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['id'] == null) { diff --git a/api/api/xpack.watcher.execute_watch.js b/api/api/xpack.watcher.execute_watch.js index 25469dc54..8e14f3475 100644 --- a/api/api/xpack.watcher.execute_watch.js +++ b/api/api/xpack.watcher.execute_watch.js @@ -52,14 +52,6 @@ function buildXpackWatcherExecuteWatch (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackWatcherExecuteWatch(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // validate headers object if (options.headers != null && typeof options.headers !== 'object') { diff --git a/api/api/xpack.watcher.get_watch.js b/api/api/xpack.watcher.get_watch.js index d2a90ba0c..f18fcb992 100644 --- a/api/api/xpack.watcher.get_watch.js +++ b/api/api/xpack.watcher.get_watch.js @@ -50,14 +50,6 @@ function buildXpackWatcherGetWatch (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackWatcherGetWatch(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['id'] == null) { diff --git a/api/api/xpack.watcher.put_watch.js b/api/api/xpack.watcher.put_watch.js index 0b8ec0e0f..269e58d5a 100644 --- a/api/api/xpack.watcher.put_watch.js +++ b/api/api/xpack.watcher.put_watch.js @@ -59,14 +59,6 @@ function buildXpackWatcherPutWatch (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackWatcherPutWatch(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params['id'] == null) { diff --git a/api/api/xpack.watcher.start.js b/api/api/xpack.watcher.start.js index 0891bcfcd..e16a81eda 100644 --- a/api/api/xpack.watcher.start.js +++ b/api/api/xpack.watcher.start.js @@ -49,14 +49,6 @@ function buildXpackWatcherStart (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackWatcherStart(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/xpack.watcher.stats.js b/api/api/xpack.watcher.stats.js index 847e10ef6..6991ec20a 100644 --- a/api/api/xpack.watcher.stats.js +++ b/api/api/xpack.watcher.stats.js @@ -53,14 +53,6 @@ function buildXpackWatcherStats (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackWatcherStats(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) { diff --git a/api/api/xpack.watcher.stop.js b/api/api/xpack.watcher.stop.js index 77c5d11d2..17f5c33a3 100644 --- a/api/api/xpack.watcher.stop.js +++ b/api/api/xpack.watcher.stop.js @@ -49,14 +49,6 @@ function buildXpackWatcherStop (opts) { params = {} options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackWatcherStop(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } // check required parameters if (params.body != null) {