Skip to content

Commit d86ae2f

Browse files
committed
[API] Update supported params for cat API endpoints
1 parent 849309b commit d86ae2f

File tree

20 files changed

+61
-48
lines changed

20 files changed

+61
-48
lines changed

elasticsearch-api/lib/elasticsearch/api/actions/cat/aliases.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,13 @@ def aliases(arguments={})
7676
#
7777
# @since 6.1.1
7878
ParamsRegistry.register(:aliases, [
79+
:format,
7980
:local,
8081
:master_timeout,
8182
:h,
8283
:help,
83-
:v,
84-
:s ].freeze)
84+
:s,
85+
:v ].freeze)
8586
end
8687
end
8788
end

elasticsearch-api/lib/elasticsearch/api/actions/cat/allocation.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,14 @@ def allocation(arguments={})
7373
#
7474
# @since 6.1.1
7575
ParamsRegistry.register(:allocation, [
76+
:format,
7677
:bytes,
7778
:local,
7879
:master_timeout,
7980
:h,
8081
:help,
81-
:v,
82-
:s ].freeze)
82+
:s,
83+
:v ].freeze)
8384
end
8485
end
8586
end

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,13 @@ def count(arguments={})
7373
#
7474
# @since 6.1.1
7575
ParamsRegistry.register(:count, [
76+
:format,
7677
:local,
7778
:master_timeout,
7879
:h,
7980
:help,
80-
:v,
81-
:s ].freeze)
81+
:s,
82+
:v ].freeze)
8283
end
8384
end
8485
end

elasticsearch-api/lib/elasticsearch/api/actions/cat/fielddata.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,14 @@ def fielddata(arguments={})
5757
#
5858
# @since 6.1.1
5959
ParamsRegistry.register(:fielddata, [
60+
:format,
6061
:bytes,
6162
:local,
6263
:master_timeout,
6364
:h,
6465
:help,
65-
:v,
6666
:s,
67+
:v,
6768
:fields ].freeze)
6869
end
6970
end

elasticsearch-api/lib/elasticsearch/api/actions/cat/health.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,14 @@ def health(arguments={})
6060
#
6161
# @since 6.1.1
6262
ParamsRegistry.register(:health, [
63+
:format,
6364
:local,
6465
:master_timeout,
6566
:h,
6667
:help,
68+
:s,
6769
:ts,
68-
:v,
69-
:s ].freeze)
70+
:v ].freeze)
7071
end
7172
end
7273
end

elasticsearch-api/lib/elasticsearch/api/actions/cat/help.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ def help(arguments={})
3939
#
4040
# @since 6.1.1
4141
ParamsRegistry.register(:help, [
42-
:help ].freeze)
42+
:help,
43+
:s ].freeze)
4344
end
4445
end
4546
end

elasticsearch-api/lib/elasticsearch/api/actions/cat/indices.rb

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,15 +86,16 @@ def indices(arguments={})
8686
#
8787
# @since 6.1.1
8888
ParamsRegistry.register(:indices, [
89+
:format,
8990
:bytes,
91+
:local,
92+
:master_timeout,
9093
:h,
9194
:health,
9295
:help,
93-
:local,
94-
:master_timeout,
9596
:pri,
96-
:v,
97-
:s ].freeze)
97+
:s,
98+
:v ].freeze)
9899
end
99100
end
100101
end

elasticsearch-api/lib/elasticsearch/api/actions/cat/master.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,13 @@ def master(arguments={})
5858
#
5959
# @since 6.1.1
6060
ParamsRegistry.register(:master, [
61+
:format,
6162
:local,
6263
:master_timeout,
6364
:h,
6465
:help,
65-
:v,
66-
:s ].freeze)
66+
:s,
67+
:v ].freeze)
6768
end
6869
end
6970
end

elasticsearch-api/lib/elasticsearch/api/actions/cat/nodeattrs.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,13 @@ def nodeattrs(arguments={})
4444
#
4545
# @since 6.1.1
4646
ParamsRegistry.register(:nodeattrs, [
47+
:format,
4748
:local,
4849
:master_timeout,
4950
:h,
5051
:help,
51-
:v,
52-
:s ].freeze)
52+
:s,
53+
:v ].freeze)
5354
end
5455
end
5556
end

elasticsearch-api/lib/elasticsearch/api/actions/cat/nodes.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,14 @@ def nodes(arguments={})
7070
#
7171
# @since 6.1.1
7272
ParamsRegistry.register(:nodes, [
73+
:format,
7374
:full_id,
7475
:local,
7576
:master_timeout,
7677
:h,
7778
:help,
78-
:v,
79-
:s ].freeze)
79+
:s,
80+
:v ].freeze)
8081
end
8182
end
8283
end

0 commit comments

Comments
 (0)