Skip to content

Commit

Permalink
New endpoints for 7.6.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
ezimuel committed Feb 14, 2020
1 parent 051bddc commit be31f31
Show file tree
Hide file tree
Showing 139 changed files with 297 additions and 151 deletions.
47 changes: 41 additions & 6 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.5.1';
const VERSION = '7.6.0';

/**
* @var Transport
Expand Down Expand Up @@ -116,7 +116,7 @@ public function __construct(Transport $transport, callable $endpoint, array $reg
* $params['index'] = (string) Default index for items which don't provide one
* $params['type'] = DEPRECATED (string) Default document type for items which don't provide one
* $params['wait_for_active_shards'] = (string) Sets the number of shard copies that must be active before proceeding with the bulk 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['refresh'] = (enum) If `true` then refresh the effected 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['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['_source'] = (list) True or false to return the _source field or not, or default list of fields to return, can be overridden on each sub-request
Expand Down Expand Up @@ -242,7 +242,7 @@ public function create(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 delete 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['refresh'] = (enum) If `true` then refresh the effected 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['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['if_seq_no'] = (number) only perform the delete operation if the last operation that has changed the document has the specified sequence number
Expand Down Expand Up @@ -552,6 +552,40 @@ public function getScript(array $params = [])

return $this->performRequest($endpoint);
}
/**
*
* @param array $params Associative array of parameters
* @return array
*
* @note This API is EXPERIMENTAL and may be changed or removed completely in a future release
*
*/
public function getScriptContext(array $params = [])
{

$endpointBuilder = $this->endpoints;
$endpoint = $endpointBuilder('GetScriptContext');
$endpoint->setParams($params);

return $this->performRequest($endpoint);
}
/**
*
* @param array $params Associative array of parameters
* @return array
*
* @note This API is EXPERIMENTAL and may be changed or removed completely in a future release
*
*/
public function getScriptLanguages(array $params = [])
{

$endpointBuilder = $this->endpoints;
$endpoint = $endpointBuilder('GetScriptLanguages');
$endpoint->setParams($params);

return $this->performRequest($endpoint);
}
/**
* $params['id'] = (string) The document ID (Required)
* $params['index'] = (string) The name of the index (Required)
Expand Down Expand Up @@ -813,6 +847,7 @@ public function putScript(array $params = [])
* $params['ignore_unavailable'] = (boolean) Whether specified concrete indices should be ignored when unavailable (missing or closed)
* $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,none,all) (Default = open)
* $params['search_type'] = (enum) Search operation type (Options = query_then_fetch,dfs_query_then_fetch)
* $params['body'] = (array) The ranking evaluation search definition, including search requests, document ratings and ranking metric definition. (Required)
*
* @param array $params Associative array of parameters
Expand All @@ -836,7 +871,7 @@ public function rankEval(array $params = [])
return $this->performRequest($endpoint);
}
/**
* $params['refresh'] = (boolean) Should the effected indexes be refreshed?
* $params['refresh'] = (boolean) Should the affected indexes be refreshed?
* $params['timeout'] = (time) Time each individual bulk request should wait for shards that are unavailable. (Default = 1m)
* $params['wait_for_active_shards'] = (string) Sets the number of shard copies that must be active before proceeding with the reindex 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['wait_for_completion'] = (boolean) Should the request should block until the reindex is complete. (Default = true)
Expand Down Expand Up @@ -1118,7 +1153,7 @@ public function termvectors(array $params = [])
* $params['_source_excludes'] = (list) A list of fields to exclude from the returned _source field
* $params['_source_includes'] = (list) A list of fields to extract and return from the _source field
* $params['lang'] = (string) The script language (default: painless)
* $params['refresh'] = (enum) If `true` then refresh the effected 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['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['retry_on_conflict'] = (number) Specify how many times should the operation be retried when a conflict occurs (default: 0)
* $params['routing'] = (string) Specific routing value
* $params['timeout'] = (time) Explicit operation timeout
Expand Down Expand Up @@ -1178,7 +1213,7 @@ public function update(array $params = [])
* $params['version'] = (boolean) Specify whether to return document version as part of a hit
* $params['version_type'] = (boolean) Should the document increment the version number (internal) on hit or not (reindex)
* $params['request_cache'] = (boolean) Specify if request cache should be used for this request or not, defaults to index level setting
* $params['refresh'] = (boolean) Should the effected indexes be refreshed?
* $params['refresh'] = (boolean) Should the affected indexes be refreshed?
* $params['timeout'] = (time) Time each individual bulk request should wait for shards that are unavailable. (Default = 1m)
* $params['wait_for_active_shards'] = (string) Sets the number of shard copies that must be active before proceeding with the update by query 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['scroll_size'] = (number) Size on the scroll request powering the update by query
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 @@ -11,7 +11,7 @@
/**
* Class Bulk
* Elasticsearch API name bulk
* Generated running $ php util/GenerateEndpoints.php 7.5.0
* Generated running $ php util/GenerateEndpoints.php 7.6.0
*
* @category Elasticsearch
* @package Elasticsearch\Endpoints
Expand Down Expand Up @@ -82,4 +82,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 @@ -8,7 +8,7 @@
/**
* Class Aliases
* Elasticsearch API name cat.aliases
* Generated running $ php util/GenerateEndpoints.php 7.5.0
* Generated running $ php util/GenerateEndpoints.php 7.6.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.5.0
* Generated running $ php util/GenerateEndpoints.php 7.6.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.5.0
* Generated running $ php util/GenerateEndpoints.php 7.6.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.5.0
* Generated running $ php util/GenerateEndpoints.php 7.6.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.5.0
* Generated running $ php util/GenerateEndpoints.php 7.6.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.5.0
* Generated running $ php util/GenerateEndpoints.php 7.6.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.5.0
* Generated running $ php util/GenerateEndpoints.php 7.6.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.5.0
* Generated running $ php util/GenerateEndpoints.php 7.6.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.5.0
* Generated running $ php util/GenerateEndpoints.php 7.6.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.5.0
* Generated running $ php util/GenerateEndpoints.php 7.6.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.5.0
* Generated running $ php util/GenerateEndpoints.php 7.6.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.5.0
* Generated running $ php util/GenerateEndpoints.php 7.6.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.5.0
* Generated running $ php util/GenerateEndpoints.php 7.6.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.5.0
* Generated running $ php util/GenerateEndpoints.php 7.6.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.5.0
* Generated running $ php util/GenerateEndpoints.php 7.6.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.5.0
* Generated running $ php util/GenerateEndpoints.php 7.6.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.5.0
* Generated running $ php util/GenerateEndpoints.php 7.6.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.5.0
* Generated running $ php util/GenerateEndpoints.php 7.6.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.5.0
* Generated running $ php util/GenerateEndpoints.php 7.6.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.5.0
* Generated running $ php util/GenerateEndpoints.php 7.6.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.5.0
* Generated running $ php util/GenerateEndpoints.php 7.6.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.5.0
* Generated running $ php util/GenerateEndpoints.php 7.6.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.5.0
* Generated running $ php util/GenerateEndpoints.php 7.6.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.5.0
* Generated running $ php util/GenerateEndpoints.php 7.6.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.5.0
* Generated running $ php util/GenerateEndpoints.php 7.6.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.5.0
* Generated running $ php util/GenerateEndpoints.php 7.6.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.5.0
* Generated running $ php util/GenerateEndpoints.php 7.6.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.5.0
* Generated running $ php util/GenerateEndpoints.php 7.6.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.5.0
* Generated running $ php util/GenerateEndpoints.php 7.6.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.5.0
* Generated running $ php util/GenerateEndpoints.php 7.6.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.5.0
* Generated running $ php util/GenerateEndpoints.php 7.6.0
*
* @category Elasticsearch
* @package Elasticsearch\Endpoints
Expand Down
Loading

0 comments on commit be31f31

Please sign in to comment.