Skip to content

Commit fbabd86

Browse files
Auto-generated API code
1 parent a622612 commit fbabd86

31 files changed

Lines changed: 86 additions & 84 deletions

‎elasticsearch-api/lib/elasticsearch/api/actions/cat/recovery.rb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ module Actions
3030
#
3131
# @option arguments [String, Array] :index A comma-separated list of data streams, indices, and aliases used to limit the request.
3232
# Supports wildcards (`*`). To target all data streams and indices, omit this parameter or use `*` or `_all`.
33-
# @option arguments [Boolean] :active_only If `true`, the response only includes ongoing shard recoveries.
33+
# @option arguments [Boolean] :active_only If `true`, the response only includes shard recoveries that have not yet completed (excludes `done` stage).
3434
# @option arguments [Boolean] :detailed If `true`, the response includes detailed information about shard recoveries.
3535
# @option arguments [String, Array<String>] :h A comma-separated list of columns names to display.
3636
# It supports simple wildcards. Server default: ip,hp,rp,r,m,n,cpu,l.

‎elasticsearch-api/lib/elasticsearch/api/actions/cluster/allocation_explain.rb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def allocation_explain(arguments = {})
6767
Elasticsearch::API::HTTP_GET
6868
end
6969

70-
path = '_cluster/allocation/explain'
70+
path = '_cluster/allocation/explain'
7171
params = Utils.process_params(arguments)
7272

7373
Elasticsearch::API::Response.new(

‎elasticsearch-api/lib/elasticsearch/api/actions/count.rb‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,11 @@ def count(arguments = {})
109109
Elasticsearch::API::HTTP_GET
110110
end
111111

112-
path = if _index
113-
"#{Utils.listify(_index)}/_count"
114-
else
115-
'_count'
116-
end
112+
path = if _index
113+
"#{Utils.listify(_index)}/_count"
114+
else
115+
'_count'
116+
end
117117
params = Utils.process_params(arguments)
118118

119119
Elasticsearch::API::Response.new(

‎elasticsearch-api/lib/elasticsearch/api/actions/explain.rb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def explain(arguments = {})
9797
Elasticsearch::API::HTTP_GET
9898
end
9999

100-
path = "#{Utils.listify(_index)}/_explain/#{Utils.listify(_id)}"
100+
path = "#{Utils.listify(_index)}/_explain/#{Utils.listify(_id)}"
101101
params = Utils.process_params(arguments)
102102

103103
Elasticsearch::API::Response.new(

‎elasticsearch-api/lib/elasticsearch/api/actions/field_caps.rb‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,11 @@ def field_caps(arguments = {})
8282
Elasticsearch::API::HTTP_GET
8383
end
8484

85-
path = if _index
86-
"#{Utils.listify(_index)}/_field_caps"
87-
else
88-
'_field_caps'
89-
end
85+
path = if _index
86+
"#{Utils.listify(_index)}/_field_caps"
87+
else
88+
'_field_caps'
89+
end
9090
params = Utils.process_params(arguments)
9191

9292
Elasticsearch::API::Response.new(

‎elasticsearch-api/lib/elasticsearch/api/actions/indices/recovery.rb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ module Actions
4343
# @option arguments [String, Array] :index Comma-separated list of data streams, indices, and aliases used to limit the request.
4444
# Supports wildcards (`*`).
4545
# To target all data streams and indices, omit this parameter or use `*` or `_all`.
46-
# @option arguments [Boolean] :active_only If `true`, the response only includes ongoing shard recoveries.
46+
# @option arguments [Boolean] :active_only If `true`, the response only includes shard recoveries that have not yet completed (excludes `DONE` stage).
4747
# @option arguments [Boolean] :detailed If `true`, the response includes detailed information about shard recoveries.
4848
# @option arguments [Boolean] :allow_no_indices A setting that does two separate checks on the index expression.
4949
# If `false`, the request returns an error (1) if any wildcard expression

‎elasticsearch-api/lib/elasticsearch/api/actions/indices/resolve_index.rb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def resolve_index(arguments = {})
8080
Elasticsearch::API::HTTP_GET
8181
end
8282

83-
path = "_resolve/index/#{Utils.listify(_name)}"
83+
path = "_resolve/index/#{Utils.listify(_name)}"
8484
params = Utils.process_params(arguments)
8585

8686
Elasticsearch::API::Response.new(

‎elasticsearch-api/lib/elasticsearch/api/actions/indices/validate_query.rb‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,11 @@ def validate_query(arguments = {})
9393
Elasticsearch::API::HTTP_GET
9494
end
9595

96-
path = if _index
97-
"#{Utils.listify(_index)}/_validate/query"
98-
else
99-
'_validate/query'
100-
end
96+
path = if _index
97+
"#{Utils.listify(_index)}/_validate/query"
98+
else
99+
'_validate/query'
100+
end
101101
params = Utils.process_params(arguments)
102102

103103
Elasticsearch::API::Response.new(

‎elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/explain_data_frame_analytics.rb‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,11 @@ def explain_data_frame_analytics(arguments = {})
7070
Elasticsearch::API::HTTP_GET
7171
end
7272

73-
path = if _id
74-
"_ml/data_frame/analytics/#{Utils.listify(_id)}/_explain"
75-
else
76-
'_ml/data_frame/analytics/_explain'
77-
end
73+
path = if _id
74+
"_ml/data_frame/analytics/#{Utils.listify(_id)}/_explain"
75+
else
76+
'_ml/data_frame/analytics/_explain'
77+
end
7878
params = Utils.process_params(arguments)
7979

8080
Elasticsearch::API::Response.new(

‎elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_buckets.rb‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,11 @@ def get_buckets(arguments = {})
8080
Elasticsearch::API::HTTP_GET
8181
end
8282

83-
path = if _job_id && _timestamp
84-
"_ml/anomaly_detectors/#{Utils.listify(_job_id)}/results/buckets/#{Utils.listify(_timestamp)}"
85-
else
86-
"_ml/anomaly_detectors/#{Utils.listify(_job_id)}/results/buckets"
87-
end
83+
path = if _job_id && _timestamp
84+
"_ml/anomaly_detectors/#{Utils.listify(_job_id)}/results/buckets/#{Utils.listify(_timestamp)}"
85+
else
86+
"_ml/anomaly_detectors/#{Utils.listify(_job_id)}/results/buckets"
87+
end
8888
params = Utils.process_params(arguments)
8989

9090
Elasticsearch::API::Response.new(

0 commit comments

Comments
 (0)