Skip to content

Commit 469c08e

Browse files
authored
Fixed #1131 using old endpoint naming (#1151)
* Fixed #1131 using old endpoint naming * Removed phpcs for autogenerated files * FIxed phpstan issue * Fixed getAliases() in IndicesNamespace * Updated endpoints with ES 6.8.16 * Set symplify/git-wrapper < 9.3.27
1 parent 358d7e7 commit 469c08e

File tree

281 files changed

+371
-308
lines changed

Some content is hidden

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

281 files changed

+371
-308
lines changed

.ci/test-matrix.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
STACK_VERSION:
3-
- 6.8-SNAPSHOT
3+
- 6.8.16
44

55
PHP_VERSION:
66
- 8.0-cli

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"psr/log": "~1.0"
2020
},
2121
"require-dev": {
22-
"symplify/git-wrapper": "~9.0",
22+
"symplify/git-wrapper": ">=9.0 <9.3.27",
2323
"doctrine/inflector": "^1.3",
2424
"mockery/mockery": "^1.2",
2525
"phpstan/phpstan": "^0.12",
@@ -52,7 +52,7 @@
5252
},
5353
"scripts": {
5454
"phpcs": [
55-
"phpcs --standard=ruleset.xml --extensions=php --encoding=utf-8 --tab-width=4 -sp src",
55+
"phpcs --standard=ruleset.xml --extensions=php --encoding=utf-8 --tab-width=4 -sp src --ignore=src/Elasticsearch/Endpoints",
5656
"phpcs --standard=ruleset.xml --extensions=php --encoding=utf-8 --tab-width=4 -sp tests --ignore=tests/Elasticsearch/Tests/Yaml"
5757
],
5858
"phpstan": [

src/Elasticsearch/Client.php

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,13 @@
1818

1919
use Elasticsearch\Common\Exceptions\BadMethodCallException;
2020
use Elasticsearch\Common\Exceptions\InvalidArgumentException;
21+
use Elasticsearch\Common\Exceptions\NoNodesAvailableException;
22+
use Elasticsearch\Common\Exceptions\BadRequest400Exception;
23+
use Elasticsearch\Common\Exceptions\Missing404Exception;
24+
use Elasticsearch\Common\Exceptions\TransportException;
2125
use Elasticsearch\Endpoints\AbstractEndpoint;
2226
use Elasticsearch\Namespaces\AbstractNamespace;
27+
use Elasticsearch\Namespaces\NamespaceBuilderInterface;
2328
use Elasticsearch\Namespaces\BooleanRequestWrapper;
2429
use Elasticsearch\Namespaces\CatNamespace;
2530
use Elasticsearch\Namespaces\ClusterNamespace;
@@ -34,7 +39,6 @@
3439
use Elasticsearch\Namespaces\GraphNamespace;
3540
use Elasticsearch\Namespaces\XpackNamespace;
3641
use Elasticsearch\Namespaces\LicenseNamespace;
37-
use Elasticsearch\Namespaces\NamespaceBuilderInterface;
3842
use Elasticsearch\Namespaces\MigrationNamespace;
3943
use Elasticsearch\Namespaces\MlNamespace;
4044
use Elasticsearch\Namespaces\MonitoringNamespace;
@@ -47,11 +51,11 @@
4751
* Class Client
4852
*
4953
* NOTE: this file is autogenerated using util/GenerateEndpoints.php
50-
* and Elasticsearch 6.8.14 (dab5822)
54+
* and Elasticsearch 6.8.16 (1f62092)
5155
*/
5256
class Client
5357
{
54-
const VERSION = '6.8.1';
58+
const VERSION = '6.8.2';
5559

5660
/**
5761
* @var Transport
@@ -870,7 +874,7 @@ public function mtermvectors(array $params = [])
870874
$body = $this->extractArgument($params, 'body');
871875

872876
$endpointBuilder = $this->endpoints;
873-
$endpoint = $endpointBuilder('Mtermvectors');
877+
$endpoint = $endpointBuilder('MTermVectors');
874878
$endpoint->setParams($params);
875879
$endpoint->setIndex($index);
876880
$endpoint->setType($type);
@@ -1206,7 +1210,7 @@ public function termvectors(array $params = [])
12061210
$body = $this->extractArgument($params, 'body');
12071211

12081212
$endpointBuilder = $this->endpoints;
1209-
$endpoint = $endpointBuilder('Termvectors');
1213+
$endpoint = $endpointBuilder('TermVectors');
12101214
$endpoint->setParams($params);
12111215
$endpoint->setIndex($index);
12121216
$endpoint->setType($type);

src/Elasticsearch/Endpoints/Bulk.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
* Elasticsearch API name bulk
2828
*
2929
* NOTE: this file is autogenerated using util/GenerateEndpoints.php
30-
* and Elasticsearch 6.8.14 (dab5822)
30+
* and Elasticsearch 6.8.16 (1f62092)
3131
*/
3232
class Bulk extends AbstractEndpoint implements BulkEndpointInterface
3333
{
@@ -91,4 +91,5 @@ public function setBody($body): Bulk
9191
}
9292
return $this;
9393
}
94+
9495
}

src/Elasticsearch/Endpoints/Cat/Aliases.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* Elasticsearch API name cat.aliases
2424
*
2525
* NOTE: this file is autogenerated using util/GenerateEndpoints.php
26-
* and Elasticsearch 6.8.14 (dab5822)
26+
* and Elasticsearch 6.8.16 (1f62092)
2727
*/
2828
class Aliases extends AbstractEndpoint
2929
{

src/Elasticsearch/Endpoints/Cat/Allocation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* Elasticsearch API name cat.allocation
2424
*
2525
* NOTE: this file is autogenerated using util/GenerateEndpoints.php
26-
* and Elasticsearch 6.8.14 (dab5822)
26+
* and Elasticsearch 6.8.16 (1f62092)
2727
*/
2828
class Allocation extends AbstractEndpoint
2929
{

src/Elasticsearch/Endpoints/Cat/Count.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* Elasticsearch API name cat.count
2424
*
2525
* NOTE: this file is autogenerated using util/GenerateEndpoints.php
26-
* and Elasticsearch 6.8.14 (dab5822)
26+
* and Elasticsearch 6.8.16 (1f62092)
2727
*/
2828
class Count extends AbstractEndpoint
2929
{

src/Elasticsearch/Endpoints/Cat/Fielddata.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* Elasticsearch API name cat.fielddata
2424
*
2525
* NOTE: this file is autogenerated using util/GenerateEndpoints.php
26-
* and Elasticsearch 6.8.14 (dab5822)
26+
* and Elasticsearch 6.8.16 (1f62092)
2727
*/
2828
class Fielddata extends AbstractEndpoint
2929
{

src/Elasticsearch/Endpoints/Cat/Health.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* Elasticsearch API name cat.health
2424
*
2525
* NOTE: this file is autogenerated using util/GenerateEndpoints.php
26-
* and Elasticsearch 6.8.14 (dab5822)
26+
* and Elasticsearch 6.8.16 (1f62092)
2727
*/
2828
class Health extends AbstractEndpoint
2929
{

src/Elasticsearch/Endpoints/Cat/Help.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* Elasticsearch API name cat.help
2424
*
2525
* NOTE: this file is autogenerated using util/GenerateEndpoints.php
26-
* and Elasticsearch 6.8.14 (dab5822)
26+
* and Elasticsearch 6.8.16 (1f62092)
2727
*/
2828
class Help extends AbstractEndpoint
2929
{

src/Elasticsearch/Endpoints/Cat/Indices.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* Elasticsearch API name cat.indices
2424
*
2525
* NOTE: this file is autogenerated using util/GenerateEndpoints.php
26-
* and Elasticsearch 6.8.14 (dab5822)
26+
* and Elasticsearch 6.8.16 (1f62092)
2727
*/
2828
class Indices extends AbstractEndpoint
2929
{

src/Elasticsearch/Endpoints/Cat/Master.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* Elasticsearch API name cat.master
2424
*
2525
* NOTE: this file is autogenerated using util/GenerateEndpoints.php
26-
* and Elasticsearch 6.8.14 (dab5822)
26+
* and Elasticsearch 6.8.16 (1f62092)
2727
*/
2828
class Master extends AbstractEndpoint
2929
{

src/Elasticsearch/Endpoints/Cat/Nodeattrs.php renamed to src/Elasticsearch/Endpoints/Cat/NodeAttrs.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@
1919
use Elasticsearch\Endpoints\AbstractEndpoint;
2020

2121
/**
22-
* Class Nodeattrs
22+
* Class NodeAttrs
2323
* Elasticsearch API name cat.nodeattrs
2424
*
2525
* NOTE: this file is autogenerated using util/GenerateEndpoints.php
26-
* and Elasticsearch 6.8.14 (dab5822)
26+
* and Elasticsearch 6.8.16 (1f62092)
2727
*/
28-
class Nodeattrs extends AbstractEndpoint
28+
class NodeAttrs extends AbstractEndpoint
2929
{
3030

3131
public function getURI(): string

src/Elasticsearch/Endpoints/Cat/Nodes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* Elasticsearch API name cat.nodes
2424
*
2525
* NOTE: this file is autogenerated using util/GenerateEndpoints.php
26-
* and Elasticsearch 6.8.14 (dab5822)
26+
* and Elasticsearch 6.8.16 (1f62092)
2727
*/
2828
class Nodes extends AbstractEndpoint
2929
{

src/Elasticsearch/Endpoints/Cat/PendingTasks.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* Elasticsearch API name cat.pending_tasks
2424
*
2525
* NOTE: this file is autogenerated using util/GenerateEndpoints.php
26-
* and Elasticsearch 6.8.14 (dab5822)
26+
* and Elasticsearch 6.8.16 (1f62092)
2727
*/
2828
class PendingTasks extends AbstractEndpoint
2929
{

src/Elasticsearch/Endpoints/Cat/Plugins.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* Elasticsearch API name cat.plugins
2424
*
2525
* NOTE: this file is autogenerated using util/GenerateEndpoints.php
26-
* and Elasticsearch 6.8.14 (dab5822)
26+
* and Elasticsearch 6.8.16 (1f62092)
2727
*/
2828
class Plugins extends AbstractEndpoint
2929
{

src/Elasticsearch/Endpoints/Cat/Recovery.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* Elasticsearch API name cat.recovery
2424
*
2525
* NOTE: this file is autogenerated using util/GenerateEndpoints.php
26-
* and Elasticsearch 6.8.14 (dab5822)
26+
* and Elasticsearch 6.8.16 (1f62092)
2727
*/
2828
class Recovery extends AbstractEndpoint
2929
{

src/Elasticsearch/Endpoints/Cat/Repositories.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* Elasticsearch API name cat.repositories
2424
*
2525
* NOTE: this file is autogenerated using util/GenerateEndpoints.php
26-
* and Elasticsearch 6.8.14 (dab5822)
26+
* and Elasticsearch 6.8.16 (1f62092)
2727
*/
2828
class Repositories extends AbstractEndpoint
2929
{

src/Elasticsearch/Endpoints/Cat/Segments.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* Elasticsearch API name cat.segments
2424
*
2525
* NOTE: this file is autogenerated using util/GenerateEndpoints.php
26-
* and Elasticsearch 6.8.14 (dab5822)
26+
* and Elasticsearch 6.8.16 (1f62092)
2727
*/
2828
class Segments extends AbstractEndpoint
2929
{

src/Elasticsearch/Endpoints/Cat/Shards.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* Elasticsearch API name cat.shards
2424
*
2525
* NOTE: this file is autogenerated using util/GenerateEndpoints.php
26-
* and Elasticsearch 6.8.14 (dab5822)
26+
* and Elasticsearch 6.8.16 (1f62092)
2727
*/
2828
class Shards extends AbstractEndpoint
2929
{

src/Elasticsearch/Endpoints/Cat/Snapshots.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* Elasticsearch API name cat.snapshots
2424
*
2525
* NOTE: this file is autogenerated using util/GenerateEndpoints.php
26-
* and Elasticsearch 6.8.14 (dab5822)
26+
* and Elasticsearch 6.8.16 (1f62092)
2727
*/
2828
class Snapshots extends AbstractEndpoint
2929
{

src/Elasticsearch/Endpoints/Cat/Tasks.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* Elasticsearch API name cat.tasks
2424
*
2525
* NOTE: this file is autogenerated using util/GenerateEndpoints.php
26-
* and Elasticsearch 6.8.14 (dab5822)
26+
* and Elasticsearch 6.8.16 (1f62092)
2727
*/
2828
class Tasks extends AbstractEndpoint
2929
{

src/Elasticsearch/Endpoints/Cat/Templates.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* Elasticsearch API name cat.templates
2424
*
2525
* NOTE: this file is autogenerated using util/GenerateEndpoints.php
26-
* and Elasticsearch 6.8.14 (dab5822)
26+
* and Elasticsearch 6.8.16 (1f62092)
2727
*/
2828
class Templates extends AbstractEndpoint
2929
{

src/Elasticsearch/Endpoints/Cat/ThreadPool.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* Elasticsearch API name cat.thread_pool
2424
*
2525
* NOTE: this file is autogenerated using util/GenerateEndpoints.php
26-
* and Elasticsearch 6.8.14 (dab5822)
26+
* and Elasticsearch 6.8.16 (1f62092)
2727
*/
2828
class ThreadPool extends AbstractEndpoint
2929
{

src/Elasticsearch/Endpoints/Ccr/DeleteAutoFollowPattern.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
* Elasticsearch API name ccr.delete_auto_follow_pattern
2525
*
2626
* NOTE: this file is autogenerated using util/GenerateEndpoints.php
27-
* and Elasticsearch 6.8.14 (dab5822)
27+
* and Elasticsearch 6.8.16 (1f62092)
2828
*/
2929
class DeleteAutoFollowPattern extends AbstractEndpoint
3030
{

src/Elasticsearch/Endpoints/Ccr/Follow.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
* Elasticsearch API name ccr.follow
2525
*
2626
* NOTE: this file is autogenerated using util/GenerateEndpoints.php
27-
* and Elasticsearch 6.8.14 (dab5822)
27+
* and Elasticsearch 6.8.16 (1f62092)
2828
*/
2929
class Follow extends AbstractEndpoint
3030
{

src/Elasticsearch/Endpoints/Ccr/FollowInfo.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
* Elasticsearch API name ccr.follow_info
2525
*
2626
* NOTE: this file is autogenerated using util/GenerateEndpoints.php
27-
* and Elasticsearch 6.8.14 (dab5822)
27+
* and Elasticsearch 6.8.16 (1f62092)
2828
*/
2929
class FollowInfo extends AbstractEndpoint
3030
{

src/Elasticsearch/Endpoints/Ccr/FollowStats.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
* Elasticsearch API name ccr.follow_stats
2525
*
2626
* NOTE: this file is autogenerated using util/GenerateEndpoints.php
27-
* and Elasticsearch 6.8.14 (dab5822)
27+
* and Elasticsearch 6.8.16 (1f62092)
2828
*/
2929
class FollowStats extends AbstractEndpoint
3030
{

src/Elasticsearch/Endpoints/Ccr/ForgetFollower.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
* Elasticsearch API name ccr.forget_follower
2525
*
2626
* NOTE: this file is autogenerated using util/GenerateEndpoints.php
27-
* and Elasticsearch 6.8.14 (dab5822)
27+
* and Elasticsearch 6.8.16 (1f62092)
2828
*/
2929
class ForgetFollower extends AbstractEndpoint
3030
{

src/Elasticsearch/Endpoints/Ccr/GetAutoFollowPattern.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* Elasticsearch API name ccr.get_auto_follow_pattern
2424
*
2525
* NOTE: this file is autogenerated using util/GenerateEndpoints.php
26-
* and Elasticsearch 6.8.14 (dab5822)
26+
* and Elasticsearch 6.8.16 (1f62092)
2727
*/
2828
class GetAutoFollowPattern extends AbstractEndpoint
2929
{

src/Elasticsearch/Endpoints/Ccr/PauseFollow.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
* Elasticsearch API name ccr.pause_follow
2525
*
2626
* NOTE: this file is autogenerated using util/GenerateEndpoints.php
27-
* and Elasticsearch 6.8.14 (dab5822)
27+
* and Elasticsearch 6.8.16 (1f62092)
2828
*/
2929
class PauseFollow extends AbstractEndpoint
3030
{

src/Elasticsearch/Endpoints/Ccr/PutAutoFollowPattern.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
* Elasticsearch API name ccr.put_auto_follow_pattern
2525
*
2626
* NOTE: this file is autogenerated using util/GenerateEndpoints.php
27-
* and Elasticsearch 6.8.14 (dab5822)
27+
* and Elasticsearch 6.8.16 (1f62092)
2828
*/
2929
class PutAutoFollowPattern extends AbstractEndpoint
3030
{

src/Elasticsearch/Endpoints/Ccr/ResumeFollow.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
* Elasticsearch API name ccr.resume_follow
2525
*
2626
* NOTE: this file is autogenerated using util/GenerateEndpoints.php
27-
* and Elasticsearch 6.8.14 (dab5822)
27+
* and Elasticsearch 6.8.16 (1f62092)
2828
*/
2929
class ResumeFollow extends AbstractEndpoint
3030
{

src/Elasticsearch/Endpoints/Ccr/Stats.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* Elasticsearch API name ccr.stats
2424
*
2525
* NOTE: this file is autogenerated using util/GenerateEndpoints.php
26-
* and Elasticsearch 6.8.14 (dab5822)
26+
* and Elasticsearch 6.8.16 (1f62092)
2727
*/
2828
class Stats extends AbstractEndpoint
2929
{

src/Elasticsearch/Endpoints/Ccr/Unfollow.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
* Elasticsearch API name ccr.unfollow
2525
*
2626
* NOTE: this file is autogenerated using util/GenerateEndpoints.php
27-
* and Elasticsearch 6.8.14 (dab5822)
27+
* and Elasticsearch 6.8.16 (1f62092)
2828
*/
2929
class Unfollow extends AbstractEndpoint
3030
{

src/Elasticsearch/Endpoints/ClearScroll.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* Elasticsearch API name clear_scroll
2424
*
2525
* NOTE: this file is autogenerated using util/GenerateEndpoints.php
26-
* and Elasticsearch 6.8.14 (dab5822)
26+
* and Elasticsearch 6.8.16 (1f62092)
2727
*/
2828
class ClearScroll extends AbstractEndpoint
2929
{

src/Elasticsearch/Endpoints/Cluster/AllocationExplain.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* Elasticsearch API name cluster.allocation_explain
2424
*
2525
* NOTE: this file is autogenerated using util/GenerateEndpoints.php
26-
* and Elasticsearch 6.8.14 (dab5822)
26+
* and Elasticsearch 6.8.16 (1f62092)
2727
*/
2828
class AllocationExplain extends AbstractEndpoint
2929
{

0 commit comments

Comments
 (0)