From ae4d980c8c806db8981ee6af48edd3e5322396d2 Mon Sep 17 00:00:00 2001 From: Jake Landis Date: Wed, 29 Apr 2020 08:40:11 -0500 Subject: [PATCH] [7.x] json spec - add description for autoscaling (#55748) (#55901) --- x-pack/plugin/build.gradle | 3 --- .../api/autoscaling.delete_autoscaling_policy.json | 3 ++- .../rest-api-spec/api/autoscaling.get_autoscaling_policy.json | 3 ++- .../rest-api-spec/api/autoscaling.put_autoscaling_policy.json | 3 ++- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/x-pack/plugin/build.gradle b/x-pack/plugin/build.gradle index 2312de4d2e7..3d3634e9933 100644 --- a/x-pack/plugin/build.gradle +++ b/x-pack/plugin/build.gradle @@ -157,9 +157,6 @@ testClusters.integTest { } validateRestSpec { - ignore 'autoscaling.delete_autoscaling_policy.json' - ignore 'autoscaling.get_autoscaling_policy.json' - ignore 'autoscaling.put_autoscaling_policy.json' ignore 'ml.validate.json' ignore 'ml.validate_detector.json' } diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/autoscaling.delete_autoscaling_policy.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/autoscaling.delete_autoscaling_policy.json index de5be0f94b8..aeab848247d 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/autoscaling.delete_autoscaling_policy.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/autoscaling.delete_autoscaling_policy.json @@ -1,7 +1,8 @@ { "autoscaling.delete_autoscaling_policy":{ "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/autoscaling-delete-autoscaling-policy.html" + "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/autoscaling-delete-autoscaling-policy.html", + "description":"Deletes an autoscaling policy." }, "stability":"experimental", "url":{ diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/autoscaling.get_autoscaling_policy.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/autoscaling.get_autoscaling_policy.json index 1e591a2f170..309f9a9a559 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/autoscaling.get_autoscaling_policy.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/autoscaling.get_autoscaling_policy.json @@ -1,7 +1,8 @@ { "autoscaling.get_autoscaling_policy":{ "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/autoscaling-get-autoscaling-policy.html" + "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/autoscaling-get-autoscaling-policy.html", + "description": "Retrieves an autoscaling policy." }, "stability":"experimental", "url":{ diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/autoscaling.put_autoscaling_policy.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/autoscaling.put_autoscaling_policy.json index b6258cdf59e..6d1fe4b6312 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/autoscaling.put_autoscaling_policy.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/autoscaling.put_autoscaling_policy.json @@ -1,7 +1,8 @@ { "autoscaling.put_autoscaling_policy":{ "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/autoscaling-put-autoscaling-policy.html" + "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/autoscaling-put-autoscaling-policy.html", + "description": "Creates a new autoscaling policy." }, "stability":"experimental", "url":{