Skip to content

Commit

Permalink
Endpoints generation for ES 7.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ezimuel committed Dec 19, 2019
1 parent 94aa242 commit ec0e0aa
Show file tree
Hide file tree
Showing 138 changed files with 160 additions and 145 deletions.
15 changes: 8 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ matrix:
fast_finish: true
include:
- php: 7.1
env: ES_VERSION="7.4.2"
env: ES_VERSION="7.5.1"
- php: 7.2
env: ES_VERSION="7.4.2"
env: ES_VERSION="7.5.1"
- php: 7.3
env: ES_VERSION="7.4.2"
env: ES_VERSION="7.5.1"
- php: 7.4
env: ES_VERSION="7.4.2"
env: ES_VERSION="7.5.1"
- php: 7.4
env: ES_VERSION="8.0.0-SNAPSHOT"
allow_failures:
Expand All @@ -41,20 +41,21 @@ install:
- composer install --prefer-dist

before_script:
- if [ $TRAVIS_PHP_VERSION = '7.3' ]; then PHPUNIT_FLAGS="--coverage-clover ./build/logs/clover.xml"; fi
- if [ $TRAVIS_PHP_VERSION = '7.4' ]; then PHPUNIT_FLAGS="--coverage-clover ./build/logs/clover.xml"; fi
- php util/RestSpecRunner.php
- php util/EnsureClusterAlive.php

script:
- if [ $TRAVIS_PHP_VERSION != '7.3' ]; then composer run-script phpcs; fi
- if [ $TRAVIS_PHP_VERSION != '7.4' ]; then composer run-script phpcs; fi
- if [ $TRAVIS_PHP_VERSION = '7.1' ]; then composer run-script phpstan7.1; fi
- if [ $TRAVIS_PHP_VERSION = '7.2' ]; then composer run-script phpstan7.1; fi
- if [ $TRAVIS_PHP_VERSION = '7.3' ]; then composer run-script phpstan; fi
- if [ $TRAVIS_PHP_VERSION = '7.4' ]; then composer run-script phpstan; fi
- vendor/bin/phpunit $PHPUNIT_FLAGS
- vendor/bin/phpunit -c phpunit-integration.xml --group sync $PHPUNIT_FLAGS

after_script:
- if [ $TRAVIS_PHP_VERSION = '7.3' ]; then php vendor/bin/coveralls; fi
- if [ $TRAVIS_PHP_VERSION = '7.4' ]; then php vendor/bin/coveralls; fi

notifications:
email: true
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
## Release 7.5.0

- Fixed `Client::extractArgument` iterable casting to array;
this allows passing a `Traversable` body for some endpoints
(e.g. Bulk, Msearch, MsearchTemplate)
[#983](https://github.com/elastic/elasticsearch-php/pull/983)
- Fixed the Response Exception if the `reason` field is null
[#980](https://github.com/elastic/elasticsearch-php/pull/980)
- Added support for PHP 7.4
[#976](https://github.com/elastic/elasticsearch-php/pull/976)

## Release 7.4.1

- We added the suppress operator `@` for the deprecation messages `@trigger_error()`.
Expand Down
8 changes: 4 additions & 4 deletions src/Elasticsearch/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
*/
class Client
{
const VERSION = '7.4.1';
const VERSION = '7.5.0';

/**
* @var Transport
Expand Down Expand Up @@ -212,7 +212,7 @@ public function count(array $params = [])
* $params['routing'] = (string) Specific routing value
* $params['timeout'] = (time) Explicit operation timeout
* $params['version'] = (number) Explicit version number for concurrency control
* $params['version_type'] = (enum) Specific version type (Options = internal,external,external_gte,force)
* $params['version_type'] = (enum) Specific version type (Options = internal,external,external_gte)
* $params['pipeline'] = (string) The pipeline id to preprocess incoming documents with
* $params['body'] = (array) The document (Required)
*
Expand Down Expand Up @@ -590,12 +590,12 @@ public function getSource(array $params = [])
* $params['index'] = (string) The name of the index (Required)
* $params['type'] = DEPRECATED (string) The type of the document
* $params['wait_for_active_shards'] = (string) Sets the number of shard copies that must be active before proceeding with the index operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1)
* $params['op_type'] = (enum) Explicit operation type (Options = index,create) (Default = index)
* $params['op_type'] = (enum) Explicit operation type. Defaults to `index` for requests with an explicit document ID, and to `create`for requests without an explicit document ID (Options = index,create)
* $params['refresh'] = (enum) If `true` then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` (the default) then do nothing with refreshes. (Options = true,false,wait_for)
* $params['routing'] = (string) Specific routing value
* $params['timeout'] = (time) Explicit operation timeout
* $params['version'] = (number) Explicit version number for concurrency control
* $params['version_type'] = (enum) Specific version type (Options = internal,external,external_gte,force)
* $params['version_type'] = (enum) Specific version type (Options = internal,external,external_gte)
* $params['if_seq_no'] = (number) only perform the index operation if the last operation that has changed the document has the specified sequence number
* $params['if_primary_term'] = (number) only perform the index operation if the last operation that has changed the document has the specified primary term
* $params['pipeline'] = (string) The pipeline id to preprocess incoming documents with
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.4.2
* Generated running $ php util/GenerateEndpoints.php 7.5.0
*
* @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.4.2
* Generated running $ php util/GenerateEndpoints.php 7.5.0
*
* @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.4.2
* Generated running $ php util/GenerateEndpoints.php 7.5.0
*
* @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.4.2
* Generated running $ php util/GenerateEndpoints.php 7.5.0
*
* @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.4.2
* Generated running $ php util/GenerateEndpoints.php 7.5.0
*
* @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.4.2
* Generated running $ php util/GenerateEndpoints.php 7.5.0
*
* @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.4.2
* Generated running $ php util/GenerateEndpoints.php 7.5.0
*
* @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.4.2
* Generated running $ php util/GenerateEndpoints.php 7.5.0
*
* @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.4.2
* Generated running $ php util/GenerateEndpoints.php 7.5.0
*
* @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.4.2
* Generated running $ php util/GenerateEndpoints.php 7.5.0
*
* @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.4.2
* Generated running $ php util/GenerateEndpoints.php 7.5.0
*
* @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.4.2
* Generated running $ php util/GenerateEndpoints.php 7.5.0
*
* @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.4.2
* Generated running $ php util/GenerateEndpoints.php 7.5.0
*
* @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.4.2
* Generated running $ php util/GenerateEndpoints.php 7.5.0
*
* @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.4.2
* Generated running $ php util/GenerateEndpoints.php 7.5.0
*
* @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.4.2
* Generated running $ php util/GenerateEndpoints.php 7.5.0
*
* @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.4.2
* Generated running $ php util/GenerateEndpoints.php 7.5.0
*
* @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.4.2
* Generated running $ php util/GenerateEndpoints.php 7.5.0
*
* @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.4.2
* Generated running $ php util/GenerateEndpoints.php 7.5.0
*
* @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.4.2
* Generated running $ php util/GenerateEndpoints.php 7.5.0
*
* @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.4.2
* Generated running $ php util/GenerateEndpoints.php 7.5.0
*
* @category Elasticsearch
* @package Elasticsearch\Endpoints\Cat
Expand Down
2 changes: 1 addition & 1 deletion src/Elasticsearch/Endpoints/ClearScroll.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/**
* Class ClearScroll
* Elasticsearch API name clear_scroll
* Generated running $ php util/GenerateEndpoints.php 7.4.2
* Generated running $ php util/GenerateEndpoints.php 7.5.0
*
* @category Elasticsearch
* @package Elasticsearch\Endpoints
Expand Down
2 changes: 1 addition & 1 deletion src/Elasticsearch/Endpoints/Cluster/AllocationExplain.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/**
* Class AllocationExplain
* Elasticsearch API name cluster.allocation_explain
* Generated running $ php util/GenerateEndpoints.php 7.4.2
* Generated running $ php util/GenerateEndpoints.php 7.5.0
*
* @category Elasticsearch
* @package Elasticsearch\Endpoints\Cluster
Expand Down
2 changes: 1 addition & 1 deletion src/Elasticsearch/Endpoints/Cluster/GetSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/**
* Class GetSettings
* Elasticsearch API name cluster.get_settings
* Generated running $ php util/GenerateEndpoints.php 7.4.2
* Generated running $ php util/GenerateEndpoints.php 7.5.0
*
* @category Elasticsearch
* @package Elasticsearch\Endpoints\Cluster
Expand Down
2 changes: 1 addition & 1 deletion src/Elasticsearch/Endpoints/Cluster/Health.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/**
* Class Health
* Elasticsearch API name cluster.health
* Generated running $ php util/GenerateEndpoints.php 7.4.2
* Generated running $ php util/GenerateEndpoints.php 7.5.0
*
* @category Elasticsearch
* @package Elasticsearch\Endpoints\Cluster
Expand Down
2 changes: 1 addition & 1 deletion src/Elasticsearch/Endpoints/Cluster/PendingTasks.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/**
* Class PendingTasks
* Elasticsearch API name cluster.pending_tasks
* Generated running $ php util/GenerateEndpoints.php 7.4.2
* Generated running $ php util/GenerateEndpoints.php 7.5.0
*
* @category Elasticsearch
* @package Elasticsearch\Endpoints\Cluster
Expand Down
2 changes: 1 addition & 1 deletion src/Elasticsearch/Endpoints/Cluster/PutSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/**
* Class PutSettings
* Elasticsearch API name cluster.put_settings
* Generated running $ php util/GenerateEndpoints.php 7.4.2
* Generated running $ php util/GenerateEndpoints.php 7.5.0
*
* @category Elasticsearch
* @package Elasticsearch\Endpoints\Cluster
Expand Down
2 changes: 1 addition & 1 deletion src/Elasticsearch/Endpoints/Cluster/RemoteInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/**
* Class RemoteInfo
* Elasticsearch API name cluster.remote_info
* Generated running $ php util/GenerateEndpoints.php 7.4.2
* Generated running $ php util/GenerateEndpoints.php 7.5.0
*
* @category Elasticsearch
* @package Elasticsearch\Endpoints\Cluster
Expand Down
2 changes: 1 addition & 1 deletion src/Elasticsearch/Endpoints/Cluster/Reroute.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/**
* Class Reroute
* Elasticsearch API name cluster.reroute
* Generated running $ php util/GenerateEndpoints.php 7.4.2
* Generated running $ php util/GenerateEndpoints.php 7.5.0
*
* @category Elasticsearch
* @package Elasticsearch\Endpoints\Cluster
Expand Down
2 changes: 1 addition & 1 deletion src/Elasticsearch/Endpoints/Cluster/State.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/**
* Class State
* Elasticsearch API name cluster.state
* Generated running $ php util/GenerateEndpoints.php 7.4.2
* Generated running $ php util/GenerateEndpoints.php 7.5.0
*
* @category Elasticsearch
* @package Elasticsearch\Endpoints\Cluster
Expand Down
2 changes: 1 addition & 1 deletion src/Elasticsearch/Endpoints/Cluster/Stats.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/**
* Class Stats
* Elasticsearch API name cluster.stats
* Generated running $ php util/GenerateEndpoints.php 7.4.2
* Generated running $ php util/GenerateEndpoints.php 7.5.0
*
* @category Elasticsearch
* @package Elasticsearch\Endpoints\Cluster
Expand Down
2 changes: 1 addition & 1 deletion src/Elasticsearch/Endpoints/Count.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/**
* Class Count
* Elasticsearch API name count
* Generated running $ php util/GenerateEndpoints.php 7.4.2
* Generated running $ php util/GenerateEndpoints.php 7.5.0
*
* @category Elasticsearch
* @package Elasticsearch\Endpoints
Expand Down
2 changes: 1 addition & 1 deletion src/Elasticsearch/Endpoints/Create.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/**
* Class Create
* Elasticsearch API name create
* Generated running $ php util/GenerateEndpoints.php 7.4.2
* Generated running $ php util/GenerateEndpoints.php 7.5.0
*
* @category Elasticsearch
* @package Elasticsearch\Endpoints
Expand Down
2 changes: 1 addition & 1 deletion src/Elasticsearch/Endpoints/Delete.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/**
* Class Delete
* Elasticsearch API name delete
* Generated running $ php util/GenerateEndpoints.php 7.4.2
* Generated running $ php util/GenerateEndpoints.php 7.5.0
*
* @category Elasticsearch
* @package Elasticsearch\Endpoints
Expand Down
Loading

0 comments on commit ec0e0aa

Please sign in to comment.