Skip to content

Commit 6eddbf6

Browse files
committed
Generated Endpoints Using OpenSearch API Specifications
Signed-off-by: saimedhi <[email protected]>
1 parent 3ae14bd commit 6eddbf6

File tree

334 files changed

+11807
-5755
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

334 files changed

+11807
-5755
lines changed

src/OpenSearch/Client.php

Lines changed: 823 additions & 500 deletions
Large diffs are not rendered by default.

src/OpenSearch/Endpoints/AsyncSearch/Delete.php

Lines changed: 0 additions & 48 deletions
This file was deleted.

src/OpenSearch/Endpoints/AsyncSearch/Get.php

Lines changed: 0 additions & 52 deletions
This file was deleted.

src/OpenSearch/Endpoints/Bulk.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,12 @@ public function getParamWhitelist(): array
5454
'_source_excludes',
5555
'_source_includes',
5656
'pipeline',
57-
'require_alias'
57+
'require_alias',
58+
'pretty',
59+
'human',
60+
'error_trace',
61+
'source',
62+
'filter_path'
5863
];
5964
}
6065

src/OpenSearch/Endpoints/Cat/Aliases.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,12 @@ public function getParamWhitelist(): array
4646
'help',
4747
's',
4848
'v',
49-
'expand_wildcards'
49+
'expand_wildcards',
50+
'pretty',
51+
'human',
52+
'error_trace',
53+
'source',
54+
'filter_path'
5055
];
5156
}
5257

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
/**
6+
* SPDX-License-Identifier: Apache-2.0
7+
*
8+
* The OpenSearch Contributors require contributions made to
9+
* this file be licensed under the Apache-2.0 license or a
10+
* compatible open source license.
11+
*
12+
* Modifications Copyright OpenSearch Contributors. See
13+
* GitHub history for details.
14+
*/
15+
16+
namespace OpenSearch\Endpoints\Cat;
17+
18+
use OpenSearch\Endpoints\AbstractEndpoint;
19+
20+
class AllPitSegments extends AbstractEndpoint
21+
{
22+
public function getURI(): string
23+
{
24+
return "/_cat/pit_segments/_all";
25+
}
26+
27+
public function getParamWhitelist(): array
28+
{
29+
return [
30+
'format',
31+
'h',
32+
'help',
33+
's',
34+
'v',
35+
'bytes',
36+
'pretty',
37+
'human',
38+
'error_trace',
39+
'source',
40+
'filter_path'
41+
];
42+
}
43+
44+
public function getMethod(): string
45+
{
46+
return 'GET';
47+
}
48+
}

src/OpenSearch/Endpoints/Cat/Allocation.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,16 @@ public function getParamWhitelist(): array
4444
'bytes',
4545
'local',
4646
'master_timeout',
47+
'cluster_manager_timeout',
4748
'h',
4849
'help',
4950
's',
5051
'v',
51-
'cluster_manager_timeout'
52+
'pretty',
53+
'human',
54+
'error_trace',
55+
'source',
56+
'filter_path'
5257
];
5358
}
5459

src/OpenSearch/Endpoints/Cat/ClusterManager.php

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,27 @@ public function getParamWhitelist(): array
3535
return [
3636
'format',
3737
'local',
38+
'master_timeout',
3839
'cluster_manager_timeout',
3940
'h',
4041
'help',
4142
's',
42-
'v'
43+
'v',
44+
'pretty',
45+
'human',
46+
'error_trace',
47+
'source',
48+
'filter_path'
4349
];
4450
}
4551

4652
public function getMethod(): string
4753
{
4854
return 'GET';
4955
}
56+
57+
protected function getParamDeprecation(): array
58+
{
59+
return ['master_timeout' => 'cluster_manager_timeout'];
60+
}
5061
}

src/OpenSearch/Endpoints/Cat/Count.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,12 @@ public function getParamWhitelist(): array
4242
'h',
4343
'help',
4444
's',
45-
'v'
45+
'v',
46+
'pretty',
47+
'human',
48+
'error_trace',
49+
'source',
50+
'filter_path'
4651
];
4752
}
4853

src/OpenSearch/Endpoints/Cat/Fielddata.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,12 @@ public function getParamWhitelist(): array
4646
'help',
4747
's',
4848
'v',
49-
'fields'
49+
'fields',
50+
'pretty',
51+
'human',
52+
'error_trace',
53+
'source',
54+
'filter_path'
5055
];
5156
}
5257

0 commit comments

Comments
 (0)