Skip to content

Commit

Permalink
Updated API to ES 7.9
Browse files Browse the repository at this point in the history
  • Loading branch information
ezimuel committed Jul 17, 2020
1 parent 0dc6475 commit 28bf0ed
Show file tree
Hide file tree
Showing 375 changed files with 1,325 additions and 395 deletions.
18 changes: 16 additions & 2 deletions src/Elasticsearch/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
use Elasticsearch\Namespaces\BooleanRequestWrapper;
use Elasticsearch\Namespaces\CatNamespace;
use Elasticsearch\Namespaces\ClusterNamespace;
use Elasticsearch\Namespaces\DanglingIndicesNamespace;
use Elasticsearch\Namespaces\IndicesNamespace;
use Elasticsearch\Namespaces\IngestNamespace;
use Elasticsearch\Namespaces\NodesNamespace;
Expand Down Expand Up @@ -44,7 +45,7 @@

/**
* Class Client
* Generated running $ php util/GenerateEndpoints.php 7.8
* Generated running $ php util/GenerateEndpoints.php 7.9
*
* @category Elasticsearch
* @package Elasticsearch
Expand All @@ -54,7 +55,7 @@
*/
class Client
{
const VERSION = '7.8';
const VERSION = '7.9';

/**
* @var Transport
Expand Down Expand Up @@ -86,6 +87,11 @@ class Client
*/
protected $cluster;

/**
* @var DanglingIndicesNamespace
*/
protected $danglingIndices;

/**
* @var IndicesNamespace
*/
Expand Down Expand Up @@ -230,6 +236,7 @@ public function __construct(Transport $transport, callable $endpoint, array $reg
$this->endpoints = $endpoint;
$this->cat = new CatNamespace($transport, $endpoint);
$this->cluster = new ClusterNamespace($transport, $endpoint);
$this->danglingIndices = new DanglingIndicesNamespace($transport, $endpoint);
$this->indices = new IndicesNamespace($transport, $endpoint);
$this->ingest = new IngestNamespace($transport, $endpoint);
$this->nodes = new NodesNamespace($transport, $endpoint);
Expand Down Expand Up @@ -632,6 +639,7 @@ public function explain(array $params = [])
* $params['allow_no_indices'] = (boolean) Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
* $params['expand_wildcards'] = (enum) Whether to expand wildcard expression to concrete indices that are open, closed or both. (Options = open,closed,hidden,none,all) (Default = open)
* $params['include_unmapped'] = (boolean) Indicates whether unmapped fields should be included in the response. (Default = false)
* $params['body'] = (array) An index filter specified with the Query DSL
*
* @param array $params Associative array of parameters
* @return array
Expand All @@ -640,11 +648,13 @@ public function explain(array $params = [])
public function fieldCaps(array $params = [])
{
$index = $this->extractArgument($params, 'index');
$body = $this->extractArgument($params, 'body');

$endpointBuilder = $this->endpoints;
$endpoint = $endpointBuilder('FieldCaps');
$endpoint->setParams($params);
$endpoint->setIndex($index);
$endpoint->setBody($body);

return $this->performRequest($endpoint);
}
Expand Down Expand Up @@ -1421,6 +1431,10 @@ public function cluster(): ClusterNamespace
{
return $this->cluster;
}
public function danglingIndices(): DanglingIndicesNamespace
{
return $this->danglingIndices;
}
public function indices(): IndicesNamespace
{
return $this->indices;
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 @@ -9,7 +9,7 @@
/**
* Class Delete
* Elasticsearch API name async_search.delete
* Generated running $ php util/GenerateEndpoints.php 7.8
* Generated running $ php util/GenerateEndpoints.php 7.9
*
* @category Elasticsearch
* @package Elasticsearch\Endpoints\AsyncSearch
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 @@ -9,7 +9,7 @@
/**
* Class Get
* Elasticsearch API name async_search.get
* Generated running $ php util/GenerateEndpoints.php 7.8
* Generated running $ php util/GenerateEndpoints.php 7.9
*
* @category Elasticsearch
* @package Elasticsearch\Endpoints\AsyncSearch
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 @@ -8,7 +8,7 @@
/**
* Class Submit
* Elasticsearch API name async_search.submit
* Generated running $ php util/GenerateEndpoints.php 7.8
* Generated running $ php util/GenerateEndpoints.php 7.9
*
* @category Elasticsearch
* @package Elasticsearch\Endpoints\AsyncSearch
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/**
* Class DeleteAutoscalingPolicy
* Elasticsearch API name autoscaling.delete_autoscaling_policy
* Generated running $ php util/GenerateEndpoints.php 7.8
* Generated running $ php util/GenerateEndpoints.php 7.9
*
* @category Elasticsearch
* @package Elasticsearch\Endpoints\Autoscaling
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/**
* Class GetAutoscalingDecision
* Elasticsearch API name autoscaling.get_autoscaling_decision
* Generated running $ php util/GenerateEndpoints.php 7.8
* Generated running $ php util/GenerateEndpoints.php 7.9
*
* @category Elasticsearch
* @package Elasticsearch\Endpoints\Autoscaling
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/**
* Class GetAutoscalingPolicy
* Elasticsearch API name autoscaling.get_autoscaling_policy
* Generated running $ php util/GenerateEndpoints.php 7.8
* Generated running $ php util/GenerateEndpoints.php 7.9
*
* @category Elasticsearch
* @package Elasticsearch\Endpoints\Autoscaling
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/**
* Class PutAutoscalingPolicy
* Elasticsearch API name autoscaling.put_autoscaling_policy
* Generated running $ php util/GenerateEndpoints.php 7.8
* Generated running $ php util/GenerateEndpoints.php 7.9
*
* @category Elasticsearch
* @package Elasticsearch\Endpoints\Autoscaling
Expand Down
2 changes: 1 addition & 1 deletion src/Elasticsearch/Endpoints/Bulk.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/**
* Class Bulk
* Elasticsearch API name bulk
* Generated running $ php util/GenerateEndpoints.php 7.8
* Generated running $ php util/GenerateEndpoints.php 7.9
*
* @category Elasticsearch
* @package Elasticsearch\Endpoints
Expand Down
2 changes: 1 addition & 1 deletion src/Elasticsearch/Endpoints/Cat/Aliases.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/**
* Class Aliases
* Elasticsearch API name cat.aliases
* Generated running $ php util/GenerateEndpoints.php 7.8
* Generated running $ php util/GenerateEndpoints.php 7.9
*
* @category Elasticsearch
* @package Elasticsearch\Endpoints\Cat
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 @@ -8,7 +8,7 @@
/**
* Class Allocation
* Elasticsearch API name cat.allocation
* Generated running $ php util/GenerateEndpoints.php 7.8
* Generated running $ php util/GenerateEndpoints.php 7.9
*
* @category Elasticsearch
* @package Elasticsearch\Endpoints\Cat
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 @@ -8,7 +8,7 @@
/**
* Class Count
* Elasticsearch API name cat.count
* Generated running $ php util/GenerateEndpoints.php 7.8
* Generated running $ php util/GenerateEndpoints.php 7.9
*
* @category Elasticsearch
* @package Elasticsearch\Endpoints\Cat
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 @@ -8,7 +8,7 @@
/**
* Class Fielddata
* Elasticsearch API name cat.fielddata
* Generated running $ php util/GenerateEndpoints.php 7.8
* Generated running $ php util/GenerateEndpoints.php 7.9
*
* @category Elasticsearch
* @package Elasticsearch\Endpoints\Cat
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 @@ -8,7 +8,7 @@
/**
* Class Health
* Elasticsearch API name cat.health
* Generated running $ php util/GenerateEndpoints.php 7.8
* Generated running $ php util/GenerateEndpoints.php 7.9
*
* @category Elasticsearch
* @package Elasticsearch\Endpoints\Cat
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 @@ -8,7 +8,7 @@
/**
* Class Help
* Elasticsearch API name cat.help
* Generated running $ php util/GenerateEndpoints.php 7.8
* Generated running $ php util/GenerateEndpoints.php 7.9
*
* @category Elasticsearch
* @package Elasticsearch\Endpoints\Cat
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 @@ -8,7 +8,7 @@
/**
* Class Indices
* Elasticsearch API name cat.indices
* Generated running $ php util/GenerateEndpoints.php 7.8
* Generated running $ php util/GenerateEndpoints.php 7.9
*
* @category Elasticsearch
* @package Elasticsearch\Endpoints\Cat
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 @@ -8,7 +8,7 @@
/**
* Class Master
* Elasticsearch API name cat.master
* Generated running $ php util/GenerateEndpoints.php 7.8
* Generated running $ php util/GenerateEndpoints.php 7.9
*
* @category Elasticsearch
* @package Elasticsearch\Endpoints\Cat
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 @@ -8,7 +8,7 @@
/**
* Class MlDataFrameAnalytics
* Elasticsearch API name cat.ml_data_frame_analytics
* Generated running $ php util/GenerateEndpoints.php 7.8
* Generated running $ php util/GenerateEndpoints.php 7.9
*
* @category Elasticsearch
* @package Elasticsearch\Endpoints\Cat
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 @@ -8,7 +8,7 @@
/**
* Class MlDatafeeds
* Elasticsearch API name cat.ml_datafeeds
* Generated running $ php util/GenerateEndpoints.php 7.8
* Generated running $ php util/GenerateEndpoints.php 7.9
*
* @category Elasticsearch
* @package Elasticsearch\Endpoints\Cat
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 @@ -8,7 +8,7 @@
/**
* Class MlJobs
* Elasticsearch API name cat.ml_jobs
* Generated running $ php util/GenerateEndpoints.php 7.8
* Generated running $ php util/GenerateEndpoints.php 7.9
*
* @category Elasticsearch
* @package Elasticsearch\Endpoints\Cat
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 @@ -8,7 +8,7 @@
/**
* Class MlTrainedModels
* Elasticsearch API name cat.ml_trained_models
* Generated running $ php util/GenerateEndpoints.php 7.8
* Generated running $ php util/GenerateEndpoints.php 7.9
*
* @category Elasticsearch
* @package Elasticsearch\Endpoints\Cat
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 @@ -8,7 +8,7 @@
/**
* Class NodeAttrs
* Elasticsearch API name cat.nodeattrs
* Generated running $ php util/GenerateEndpoints.php 7.8
* Generated running $ php util/GenerateEndpoints.php 7.9
*
* @category Elasticsearch
* @package Elasticsearch\Endpoints\Cat
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 @@ -8,7 +8,7 @@
/**
* Class Nodes
* Elasticsearch API name cat.nodes
* Generated running $ php util/GenerateEndpoints.php 7.8
* Generated running $ php util/GenerateEndpoints.php 7.9
*
* @category Elasticsearch
* @package Elasticsearch\Endpoints\Cat
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 @@ -8,7 +8,7 @@
/**
* Class PendingTasks
* Elasticsearch API name cat.pending_tasks
* Generated running $ php util/GenerateEndpoints.php 7.8
* Generated running $ php util/GenerateEndpoints.php 7.9
*
* @category Elasticsearch
* @package Elasticsearch\Endpoints\Cat
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 @@ -8,7 +8,7 @@
/**
* Class Plugins
* Elasticsearch API name cat.plugins
* Generated running $ php util/GenerateEndpoints.php 7.8
* Generated running $ php util/GenerateEndpoints.php 7.9
*
* @category Elasticsearch
* @package Elasticsearch\Endpoints\Cat
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 @@ -8,7 +8,7 @@
/**
* Class Recovery
* Elasticsearch API name cat.recovery
* Generated running $ php util/GenerateEndpoints.php 7.8
* Generated running $ php util/GenerateEndpoints.php 7.9
*
* @category Elasticsearch
* @package Elasticsearch\Endpoints\Cat
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 @@ -8,7 +8,7 @@
/**
* Class Repositories
* Elasticsearch API name cat.repositories
* Generated running $ php util/GenerateEndpoints.php 7.8
* Generated running $ php util/GenerateEndpoints.php 7.9
*
* @category Elasticsearch
* @package Elasticsearch\Endpoints\Cat
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 @@ -8,7 +8,7 @@
/**
* Class Segments
* Elasticsearch API name cat.segments
* Generated running $ php util/GenerateEndpoints.php 7.8
* Generated running $ php util/GenerateEndpoints.php 7.9
*
* @category Elasticsearch
* @package Elasticsearch\Endpoints\Cat
Expand Down
2 changes: 1 addition & 1 deletion src/Elasticsearch/Endpoints/Cat/Shards.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/**
* Class Shards
* Elasticsearch API name cat.shards
* Generated running $ php util/GenerateEndpoints.php 7.8
* Generated running $ php util/GenerateEndpoints.php 7.9
*
* @category Elasticsearch
* @package Elasticsearch\Endpoints\Cat
Expand Down
2 changes: 1 addition & 1 deletion src/Elasticsearch/Endpoints/Cat/Snapshots.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/**
* Class Snapshots
* Elasticsearch API name cat.snapshots
* Generated running $ php util/GenerateEndpoints.php 7.8
* Generated running $ php util/GenerateEndpoints.php 7.9
*
* @category Elasticsearch
* @package Elasticsearch\Endpoints\Cat
Expand Down
2 changes: 1 addition & 1 deletion src/Elasticsearch/Endpoints/Cat/Tasks.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/**
* Class Tasks
* Elasticsearch API name cat.tasks
* Generated running $ php util/GenerateEndpoints.php 7.8
* Generated running $ php util/GenerateEndpoints.php 7.9
*
* @category Elasticsearch
* @package Elasticsearch\Endpoints\Cat
Expand Down
2 changes: 1 addition & 1 deletion src/Elasticsearch/Endpoints/Cat/Templates.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/**
* Class Templates
* Elasticsearch API name cat.templates
* Generated running $ php util/GenerateEndpoints.php 7.8
* Generated running $ php util/GenerateEndpoints.php 7.9
*
* @category Elasticsearch
* @package Elasticsearch\Endpoints\Cat
Expand Down
2 changes: 1 addition & 1 deletion src/Elasticsearch/Endpoints/Cat/ThreadPool.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/**
* Class ThreadPool
* Elasticsearch API name cat.thread_pool
* Generated running $ php util/GenerateEndpoints.php 7.8
* Generated running $ php util/GenerateEndpoints.php 7.9
*
* @category Elasticsearch
* @package Elasticsearch\Endpoints\Cat
Expand Down
2 changes: 1 addition & 1 deletion src/Elasticsearch/Endpoints/Cat/Transforms.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/**
* Class Transforms
* Elasticsearch API name cat.transforms
* Generated running $ php util/GenerateEndpoints.php 7.8
* Generated running $ php util/GenerateEndpoints.php 7.9
*
* @category Elasticsearch
* @package Elasticsearch\Endpoints\Cat
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/**
* Class DeleteAutoFollowPattern
* Elasticsearch API name ccr.delete_auto_follow_pattern
* Generated running $ php util/GenerateEndpoints.php 7.8
* Generated running $ php util/GenerateEndpoints.php 7.9
*
* @category Elasticsearch
* @package Elasticsearch\Endpoints\Ccr
Expand Down
2 changes: 1 addition & 1 deletion src/Elasticsearch/Endpoints/Ccr/Follow.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/**
* Class Follow
* Elasticsearch API name ccr.follow
* Generated running $ php util/GenerateEndpoints.php 7.8
* Generated running $ php util/GenerateEndpoints.php 7.9
*
* @category Elasticsearch
* @package Elasticsearch\Endpoints\Ccr
Expand Down
Loading

0 comments on commit 28bf0ed

Please sign in to comment.