Skip to content

Commit

Permalink
Updated the endpoints for ES 7.12 + removed cpliakas/git-wrapper in f…
Browse files Browse the repository at this point in the history
…avor of symplify/git-wrapper
  • Loading branch information
ezimuel committed Mar 2, 2021
1 parent 0d81be1 commit 136d5b9
Show file tree
Hide file tree
Showing 398 changed files with 891 additions and 448 deletions.
4 changes: 1 addition & 3 deletions .ci/test-matrix.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
---
STACK_VERSION:
- 7.x-SNAPSHOT
- 7.12.0-SNAPSHOT

PHP_VERSION:
- 8.0-cli
- 7.4-cli
- 7.3-cli
- 7.2-cli
- 7.1-cli

TEST_SUITE:
- free
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ composer.phar

#editor related
.idea
.vscode

# OS generated files
.DS_Store
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
}
],
"require": {
"php": "^7.1 || ^8.0",
"php": "^7.3 || ^8.0",
"ext-json": ">=1.3.7",
"ezimuel/ringphp": "^1.1.2",
"psr/log": "~1.0"
},
"require-dev": {
"ext-yaml": "*",
"ext-zip": "*",
"cpliakas/git-wrapper": "~2.0 || ~3.0",
"symplify/git-wrapper": "~9.0",
"doctrine/inflector": "^1.3",
"mockery/mockery": "^1.2",
"phpstan/phpstan": "^0.12",
Expand Down
25 changes: 24 additions & 1 deletion src/Elasticsearch/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
use Elasticsearch\Namespaces\GraphNamespace;
use Elasticsearch\Namespaces\IlmNamespace;
use Elasticsearch\Namespaces\LicenseNamespace;
use Elasticsearch\Namespaces\LogstashNamespace;
use Elasticsearch\Namespaces\MigrationNamespace;
use Elasticsearch\Namespaces\MlNamespace;
use Elasticsearch\Namespaces\MonitoringNamespace;
Expand All @@ -52,6 +53,7 @@
use Elasticsearch\Namespaces\SlmNamespace;
use Elasticsearch\Namespaces\SqlNamespace;
use Elasticsearch\Namespaces\SslNamespace;
use Elasticsearch\Namespaces\TextStructureNamespace;
use Elasticsearch\Namespaces\TransformNamespace;
use Elasticsearch\Namespaces\WatcherNamespace;
use Elasticsearch\Namespaces\XpackNamespace;
Expand All @@ -60,7 +62,7 @@
* Class Client
*
* NOTE: this file is autogenerated using util/GenerateEndpoints.php
* and Elasticsearch 7.12.0-SNAPSHOT (8532092b1b040934004e863c98b261c8cc71817b)
* and Elasticsearch 7.12.0-SNAPSHOT (c4379e122f178e346f6402b1a4ebf382d29fec05)
*/
class Client
{
Expand Down Expand Up @@ -171,6 +173,11 @@ class Client
*/
protected $license;

/**
* @var LogstashNamespace
*/
protected $logstash;

/**
* @var MigrationNamespace
*/
Expand Down Expand Up @@ -216,6 +223,11 @@ class Client
*/
protected $ssl;

/**
* @var TextStructureNamespace
*/
protected $textStructure;

/**
* @var TransformNamespace
*/
Expand Down Expand Up @@ -260,6 +272,7 @@ public function __construct(Transport $transport, callable $endpoint, array $reg
$this->graph = new GraphNamespace($transport, $endpoint);
$this->ilm = new IlmNamespace($transport, $endpoint);
$this->license = new LicenseNamespace($transport, $endpoint);
$this->logstash = new LogstashNamespace($transport, $endpoint);
$this->migration = new MigrationNamespace($transport, $endpoint);
$this->ml = new MlNamespace($transport, $endpoint);
$this->monitoring = new MonitoringNamespace($transport, $endpoint);
Expand All @@ -269,6 +282,7 @@ public function __construct(Transport $transport, callable $endpoint, array $reg
$this->slm = new SlmNamespace($transport, $endpoint);
$this->sql = new SqlNamespace($transport, $endpoint);
$this->ssl = new SslNamespace($transport, $endpoint);
$this->textStructure = new TextStructureNamespace($transport, $endpoint);
$this->transform = new TransformNamespace($transport, $endpoint);
$this->watcher = new WatcherNamespace($transport, $endpoint);
$this->xpack = new XpackNamespace($transport, $endpoint);
Expand Down Expand Up @@ -1198,6 +1212,7 @@ public function scroll(array $params = [])
* $params['max_concurrent_shard_requests'] = (number) The number of concurrent shard requests per node this search executes concurrently. This value should be used to limit the impact of the search on the cluster in order to limit the number of concurrent shard requests (Default = 5)
* $params['pre_filter_shard_size'] = (number) A threshold that enforces a pre-filter roundtrip to prefilter search shards based on query rewriting if the number of shards the search request expands to exceeds the threshold. This filter roundtrip can limit the number of shards significantly if for instance a shard can not match any documents based on its rewrite method ie. if date filters are mandatory to match but the shard bounds and the query are disjoint.
* $params['rest_total_hits_as_int'] = (boolean) Indicates whether hits.total should be rendered as an integer or an object in the rest search response (Default = false)
* $params['min_compatible_shard_node'] = (string) The minimum compatible version that all shards involved in search should have for this request to be successful
* $params['body'] = (array) The search definition using the Query DSL
*
* @param array $params Associative array of parameters
Expand Down Expand Up @@ -1544,6 +1559,10 @@ public function license(): LicenseNamespace
{
return $this->license;
}
public function logstash(): LogstashNamespace
{
return $this->logstash;
}
public function migration(): MigrationNamespace
{
return $this->migration;
Expand Down Expand Up @@ -1580,6 +1599,10 @@ public function ssl(): SslNamespace
{
return $this->ssl;
}
public function textStructure(): TextStructureNamespace
{
return $this->textStructure;
}
public function transform(): TransformNamespace
{
return $this->transform;
Expand Down
2 changes: 1 addition & 1 deletion src/Elasticsearch/Endpoints/AsyncSearch/Delete.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* Elasticsearch API name async_search.delete
*
* NOTE: this file is autogenerated using util/GenerateEndpoints.php
* and Elasticsearch 7.12.0-SNAPSHOT (8532092b1b040934004e863c98b261c8cc71817b)
* and Elasticsearch 7.12.0-SNAPSHOT (c4379e122f178e346f6402b1a4ebf382d29fec05)
*/
class Delete extends AbstractEndpoint
{
Expand Down
2 changes: 1 addition & 1 deletion src/Elasticsearch/Endpoints/AsyncSearch/Get.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* Elasticsearch API name async_search.get
*
* NOTE: this file is autogenerated using util/GenerateEndpoints.php
* and Elasticsearch 7.12.0-SNAPSHOT (8532092b1b040934004e863c98b261c8cc71817b)
* and Elasticsearch 7.12.0-SNAPSHOT (c4379e122f178e346f6402b1a4ebf382d29fec05)
*/
class Get extends AbstractEndpoint
{
Expand Down
2 changes: 1 addition & 1 deletion src/Elasticsearch/Endpoints/AsyncSearch/Status.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* Elasticsearch API name async_search.status
*
* NOTE: this file is autogenerated using util/GenerateEndpoints.php
* and Elasticsearch 7.12.0-SNAPSHOT (8532092b1b040934004e863c98b261c8cc71817b)
* and Elasticsearch 7.12.0-SNAPSHOT (c4379e122f178e346f6402b1a4ebf382d29fec05)
*/
class Status extends AbstractEndpoint
{
Expand Down
2 changes: 1 addition & 1 deletion src/Elasticsearch/Endpoints/AsyncSearch/Submit.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* Elasticsearch API name async_search.submit
*
* NOTE: this file is autogenerated using util/GenerateEndpoints.php
* and Elasticsearch 7.12.0-SNAPSHOT (8532092b1b040934004e863c98b261c8cc71817b)
* and Elasticsearch 7.12.0-SNAPSHOT (c4379e122f178e346f6402b1a4ebf382d29fec05)
*/
class Submit extends AbstractEndpoint
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* Elasticsearch API name autoscaling.delete_autoscaling_policy
*
* NOTE: this file is autogenerated using util/GenerateEndpoints.php
* and Elasticsearch 7.12.0-SNAPSHOT (8532092b1b040934004e863c98b261c8cc71817b)
* and Elasticsearch 7.12.0-SNAPSHOT (c4379e122f178e346f6402b1a4ebf382d29fec05)
*/
class DeleteAutoscalingPolicy extends AbstractEndpoint
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* Elasticsearch API name autoscaling.get_autoscaling_capacity
*
* NOTE: this file is autogenerated using util/GenerateEndpoints.php
* and Elasticsearch 7.12.0-SNAPSHOT (8532092b1b040934004e863c98b261c8cc71817b)
* and Elasticsearch 7.12.0-SNAPSHOT (c4379e122f178e346f6402b1a4ebf382d29fec05)
*/
class GetAutoscalingCapacity extends AbstractEndpoint
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* Elasticsearch API name autoscaling.get_autoscaling_policy
*
* NOTE: this file is autogenerated using util/GenerateEndpoints.php
* and Elasticsearch 7.12.0-SNAPSHOT (8532092b1b040934004e863c98b261c8cc71817b)
* and Elasticsearch 7.12.0-SNAPSHOT (c4379e122f178e346f6402b1a4ebf382d29fec05)
*/
class GetAutoscalingPolicy extends AbstractEndpoint
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* Elasticsearch API name autoscaling.put_autoscaling_policy
*
* NOTE: this file is autogenerated using util/GenerateEndpoints.php
* and Elasticsearch 7.12.0-SNAPSHOT (8532092b1b040934004e863c98b261c8cc71817b)
* and Elasticsearch 7.12.0-SNAPSHOT (c4379e122f178e346f6402b1a4ebf382d29fec05)
*/
class PutAutoscalingPolicy extends AbstractEndpoint
{
Expand Down
3 changes: 2 additions & 1 deletion src/Elasticsearch/Endpoints/Bulk.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
* Elasticsearch API name bulk
*
* NOTE: this file is autogenerated using util/GenerateEndpoints.php
* and Elasticsearch 7.12.0-SNAPSHOT (8532092b1b040934004e863c98b261c8cc71817b)
* and Elasticsearch 7.12.0-SNAPSHOT (c4379e122f178e346f6402b1a4ebf382d29fec05)
*/
class Bulk extends AbstractEndpoint
{
Expand Down Expand Up @@ -93,4 +93,5 @@ public function setBody($body): Bulk
}
return $this;
}

}
2 changes: 1 addition & 1 deletion src/Elasticsearch/Endpoints/Cat/Aliases.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* Elasticsearch API name cat.aliases
*
* NOTE: this file is autogenerated using util/GenerateEndpoints.php
* and Elasticsearch 7.12.0-SNAPSHOT (8532092b1b040934004e863c98b261c8cc71817b)
* and Elasticsearch 7.12.0-SNAPSHOT (c4379e122f178e346f6402b1a4ebf382d29fec05)
*/
class Aliases extends AbstractEndpoint
{
Expand Down
2 changes: 1 addition & 1 deletion src/Elasticsearch/Endpoints/Cat/Allocation.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* Elasticsearch API name cat.allocation
*
* NOTE: this file is autogenerated using util/GenerateEndpoints.php
* and Elasticsearch 7.12.0-SNAPSHOT (8532092b1b040934004e863c98b261c8cc71817b)
* and Elasticsearch 7.12.0-SNAPSHOT (c4379e122f178e346f6402b1a4ebf382d29fec05)
*/
class Allocation extends AbstractEndpoint
{
Expand Down
2 changes: 1 addition & 1 deletion src/Elasticsearch/Endpoints/Cat/Count.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* Elasticsearch API name cat.count
*
* NOTE: this file is autogenerated using util/GenerateEndpoints.php
* and Elasticsearch 7.12.0-SNAPSHOT (8532092b1b040934004e863c98b261c8cc71817b)
* and Elasticsearch 7.12.0-SNAPSHOT (c4379e122f178e346f6402b1a4ebf382d29fec05)
*/
class Count extends AbstractEndpoint
{
Expand Down
2 changes: 1 addition & 1 deletion src/Elasticsearch/Endpoints/Cat/Fielddata.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* Elasticsearch API name cat.fielddata
*
* NOTE: this file is autogenerated using util/GenerateEndpoints.php
* and Elasticsearch 7.12.0-SNAPSHOT (8532092b1b040934004e863c98b261c8cc71817b)
* and Elasticsearch 7.12.0-SNAPSHOT (c4379e122f178e346f6402b1a4ebf382d29fec05)
*/
class Fielddata extends AbstractEndpoint
{
Expand Down
2 changes: 1 addition & 1 deletion src/Elasticsearch/Endpoints/Cat/Health.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* Elasticsearch API name cat.health
*
* NOTE: this file is autogenerated using util/GenerateEndpoints.php
* and Elasticsearch 7.12.0-SNAPSHOT (8532092b1b040934004e863c98b261c8cc71817b)
* and Elasticsearch 7.12.0-SNAPSHOT (c4379e122f178e346f6402b1a4ebf382d29fec05)
*/
class Health extends AbstractEndpoint
{
Expand Down
2 changes: 1 addition & 1 deletion src/Elasticsearch/Endpoints/Cat/Help.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* Elasticsearch API name cat.help
*
* NOTE: this file is autogenerated using util/GenerateEndpoints.php
* and Elasticsearch 7.12.0-SNAPSHOT (8532092b1b040934004e863c98b261c8cc71817b)
* and Elasticsearch 7.12.0-SNAPSHOT (c4379e122f178e346f6402b1a4ebf382d29fec05)
*/
class Help extends AbstractEndpoint
{
Expand Down
2 changes: 1 addition & 1 deletion src/Elasticsearch/Endpoints/Cat/Indices.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* Elasticsearch API name cat.indices
*
* NOTE: this file is autogenerated using util/GenerateEndpoints.php
* and Elasticsearch 7.12.0-SNAPSHOT (8532092b1b040934004e863c98b261c8cc71817b)
* and Elasticsearch 7.12.0-SNAPSHOT (c4379e122f178e346f6402b1a4ebf382d29fec05)
*/
class Indices extends AbstractEndpoint
{
Expand Down
2 changes: 1 addition & 1 deletion src/Elasticsearch/Endpoints/Cat/Master.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* Elasticsearch API name cat.master
*
* NOTE: this file is autogenerated using util/GenerateEndpoints.php
* and Elasticsearch 7.12.0-SNAPSHOT (8532092b1b040934004e863c98b261c8cc71817b)
* and Elasticsearch 7.12.0-SNAPSHOT (c4379e122f178e346f6402b1a4ebf382d29fec05)
*/
class Master extends AbstractEndpoint
{
Expand Down
2 changes: 1 addition & 1 deletion src/Elasticsearch/Endpoints/Cat/MlDataFrameAnalytics.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* Elasticsearch API name cat.ml_data_frame_analytics
*
* NOTE: this file is autogenerated using util/GenerateEndpoints.php
* and Elasticsearch 7.12.0-SNAPSHOT (8532092b1b040934004e863c98b261c8cc71817b)
* and Elasticsearch 7.12.0-SNAPSHOT (c4379e122f178e346f6402b1a4ebf382d29fec05)
*/
class MlDataFrameAnalytics extends AbstractEndpoint
{
Expand Down
2 changes: 1 addition & 1 deletion src/Elasticsearch/Endpoints/Cat/MlDatafeeds.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* Elasticsearch API name cat.ml_datafeeds
*
* NOTE: this file is autogenerated using util/GenerateEndpoints.php
* and Elasticsearch 7.12.0-SNAPSHOT (8532092b1b040934004e863c98b261c8cc71817b)
* and Elasticsearch 7.12.0-SNAPSHOT (c4379e122f178e346f6402b1a4ebf382d29fec05)
*/
class MlDatafeeds extends AbstractEndpoint
{
Expand Down
2 changes: 1 addition & 1 deletion src/Elasticsearch/Endpoints/Cat/MlJobs.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* Elasticsearch API name cat.ml_jobs
*
* NOTE: this file is autogenerated using util/GenerateEndpoints.php
* and Elasticsearch 7.12.0-SNAPSHOT (8532092b1b040934004e863c98b261c8cc71817b)
* and Elasticsearch 7.12.0-SNAPSHOT (c4379e122f178e346f6402b1a4ebf382d29fec05)
*/
class MlJobs extends AbstractEndpoint
{
Expand Down
2 changes: 1 addition & 1 deletion src/Elasticsearch/Endpoints/Cat/MlTrainedModels.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* Elasticsearch API name cat.ml_trained_models
*
* NOTE: this file is autogenerated using util/GenerateEndpoints.php
* and Elasticsearch 7.12.0-SNAPSHOT (8532092b1b040934004e863c98b261c8cc71817b)
* and Elasticsearch 7.12.0-SNAPSHOT (c4379e122f178e346f6402b1a4ebf382d29fec05)
*/
class MlTrainedModels extends AbstractEndpoint
{
Expand Down
2 changes: 1 addition & 1 deletion src/Elasticsearch/Endpoints/Cat/NodeAttrs.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* Elasticsearch API name cat.nodeattrs
*
* NOTE: this file is autogenerated using util/GenerateEndpoints.php
* and Elasticsearch 7.12.0-SNAPSHOT (8532092b1b040934004e863c98b261c8cc71817b)
* and Elasticsearch 7.12.0-SNAPSHOT (c4379e122f178e346f6402b1a4ebf382d29fec05)
*/
class NodeAttrs extends AbstractEndpoint
{
Expand Down
2 changes: 1 addition & 1 deletion src/Elasticsearch/Endpoints/Cat/Nodes.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* Elasticsearch API name cat.nodes
*
* NOTE: this file is autogenerated using util/GenerateEndpoints.php
* and Elasticsearch 7.12.0-SNAPSHOT (8532092b1b040934004e863c98b261c8cc71817b)
* and Elasticsearch 7.12.0-SNAPSHOT (c4379e122f178e346f6402b1a4ebf382d29fec05)
*/
class Nodes extends AbstractEndpoint
{
Expand Down
2 changes: 1 addition & 1 deletion src/Elasticsearch/Endpoints/Cat/PendingTasks.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* Elasticsearch API name cat.pending_tasks
*
* NOTE: this file is autogenerated using util/GenerateEndpoints.php
* and Elasticsearch 7.12.0-SNAPSHOT (8532092b1b040934004e863c98b261c8cc71817b)
* and Elasticsearch 7.12.0-SNAPSHOT (c4379e122f178e346f6402b1a4ebf382d29fec05)
*/
class PendingTasks extends AbstractEndpoint
{
Expand Down
2 changes: 1 addition & 1 deletion src/Elasticsearch/Endpoints/Cat/Plugins.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* Elasticsearch API name cat.plugins
*
* NOTE: this file is autogenerated using util/GenerateEndpoints.php
* and Elasticsearch 7.12.0-SNAPSHOT (8532092b1b040934004e863c98b261c8cc71817b)
* and Elasticsearch 7.12.0-SNAPSHOT (c4379e122f178e346f6402b1a4ebf382d29fec05)
*/
class Plugins extends AbstractEndpoint
{
Expand Down
2 changes: 1 addition & 1 deletion src/Elasticsearch/Endpoints/Cat/Recovery.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* Elasticsearch API name cat.recovery
*
* NOTE: this file is autogenerated using util/GenerateEndpoints.php
* and Elasticsearch 7.12.0-SNAPSHOT (8532092b1b040934004e863c98b261c8cc71817b)
* and Elasticsearch 7.12.0-SNAPSHOT (c4379e122f178e346f6402b1a4ebf382d29fec05)
*/
class Recovery extends AbstractEndpoint
{
Expand Down
2 changes: 1 addition & 1 deletion src/Elasticsearch/Endpoints/Cat/Repositories.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* Elasticsearch API name cat.repositories
*
* NOTE: this file is autogenerated using util/GenerateEndpoints.php
* and Elasticsearch 7.12.0-SNAPSHOT (8532092b1b040934004e863c98b261c8cc71817b)
* and Elasticsearch 7.12.0-SNAPSHOT (c4379e122f178e346f6402b1a4ebf382d29fec05)
*/
class Repositories extends AbstractEndpoint
{
Expand Down
2 changes: 1 addition & 1 deletion src/Elasticsearch/Endpoints/Cat/Segments.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* Elasticsearch API name cat.segments
*
* NOTE: this file is autogenerated using util/GenerateEndpoints.php
* and Elasticsearch 7.12.0-SNAPSHOT (8532092b1b040934004e863c98b261c8cc71817b)
* and Elasticsearch 7.12.0-SNAPSHOT (c4379e122f178e346f6402b1a4ebf382d29fec05)
*/
class Segments extends AbstractEndpoint
{
Expand Down
Loading

0 comments on commit 136d5b9

Please sign in to comment.