Skip to content

Commit 1ff5c79

Browse files
committed
Updated endpoints due to elastic/elasticsearch/pull/54438
1 parent 763d91a commit 1ff5c79

File tree

7 files changed

+49
-25
lines changed

7 files changed

+49
-25
lines changed

src/Elasticsearch/Client.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ public function delete(array $params = [])
442442
* $params['refresh'] = (boolean) Should the effected indexes be refreshed?
443443
* $params['timeout'] = (time) Time each individual bulk request should wait for shards that are unavailable. (Default = 1m)
444444
* $params['wait_for_active_shards'] = (string) Sets the number of shard copies that must be active before proceeding with the delete 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)
445-
* $params['scroll_size'] = (number) Size on the scroll request powering the delete by query
445+
* $params['scroll_size'] = (number) Size on the scroll request powering the delete by query (Default = 100)
446446
* $params['wait_for_completion'] = (boolean) Should the request should block until the delete by query is complete. (Default = true)
447447
* $params['requests_per_second'] = (number) The throttle for this request in sub-requests per second. -1 means no throttle. (Default = 0)
448448
* $params['slices'] = (number|string) The number of slices this task should be divided into. Defaults to 1, meaning the task isn't sliced into subtasks. Can be set to `auto`. (Default = 1)
@@ -698,6 +698,7 @@ public function getScript(array $params = [])
698698
*
699699
* @param array $params Associative array of parameters
700700
* @return array
701+
* @see https://www.elastic.co/guide/en/elasticsearch/painless/master/painless-contexts.html
701702
*
702703
* @note This API is EXPERIMENTAL and may be changed or removed completely in a future release
703704
*
@@ -715,6 +716,7 @@ public function getScriptContext(array $params = [])
715716
*
716717
* @param array $params Associative array of parameters
717718
* @return array
719+
* @see https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html
718720
*
719721
* @note This API is EXPERIMENTAL and may be changed or removed completely in a future release
720722
*
@@ -1360,7 +1362,7 @@ public function update(array $params = [])
13601362
* $params['refresh'] = (boolean) Should the affected indexes be refreshed?
13611363
* $params['timeout'] = (time) Time each individual bulk request should wait for shards that are unavailable. (Default = 1m)
13621364
* $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)
1363-
* $params['scroll_size'] = (number) Size on the scroll request powering the update by query
1365+
* $params['scroll_size'] = (number) Size on the scroll request powering the update by query (Default = 100)
13641366
* $params['wait_for_completion'] = (boolean) Should the request should block until the update by query operation is complete. (Default = true)
13651367
* $params['requests_per_second'] = (number) The throttle to set on this request in sub-requests per second. -1 means no throttle. (Default = 0)
13661368
* $params['slices'] = (number|string) The number of slices this task should be divided into. Defaults to 1, meaning the task isn't sliced into subtasks. Can be set to `auto`. (Default = 1)

src/Elasticsearch/Endpoints/Cat/Transform.php renamed to src/Elasticsearch/Endpoints/Cat/Transforms.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
use Elasticsearch\Endpoints\AbstractEndpoint;
77

88
/**
9-
* Class Transform
10-
* Elasticsearch API name cat.transform
9+
* Class Transforms
10+
* Elasticsearch API name cat.transforms
1111
* Generated running $ php util/GenerateEndpoints.php 7.7
1212
*
1313
* @category Elasticsearch
@@ -16,7 +16,7 @@
1616
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache2
1717
* @link http://elastic.co
1818
*/
19-
class Transform extends AbstractEndpoint
19+
class Transforms extends AbstractEndpoint
2020
{
2121
protected $transform_id;
2222

@@ -50,7 +50,7 @@ public function getMethod(): string
5050
return 'GET';
5151
}
5252

53-
public function setTransformId($transform_id): Transform
53+
public function setTransformId($transform_id): Transforms
5454
{
5555
if (isset($transform_id) !== true) {
5656
return $this;

src/Elasticsearch/Namespaces/AsyncSearchNamespace.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public function get(array $params = [])
7575
* $params['ignore_unavailable'] = (boolean) Whether specified concrete indices should be ignored when unavailable (missing or closed)
7676
* $params['ignore_throttled'] = (boolean) Whether specified concrete, expanded or aliased indices should be ignored when throttled
7777
* $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)
78-
* $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)
78+
* $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)
7979
* $params['lenient'] = (boolean) Specify whether format-based query failures (such as providing text to a numeric field) should be ignored
8080
* $params['preference'] = (string) Specify the node or shard the operation should be performed on (default: random)
8181
* $params['q'] = (string) Query in the Lucene query string syntax

src/Elasticsearch/Namespaces/CatNamespace.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public function fielddata(array $params = [])
121121
* $params['h'] = (list) Comma-separated list of column names to display
122122
* $params['help'] = (boolean) Return help information (Default = false)
123123
* $params['s'] = (list) Comma-separated list of column names or column aliases to sort by
124-
* $params['time'] = (enum) The unit in which to display time values (Options = d (Days),h (Hours),m (Minutes),s (Seconds),ms (Milliseconds),micros (Microseconds),nanos (Nanoseconds))
124+
* $params['time'] = (enum) The unit in which to display time values (Options = d,h,m,s,ms,micros,nanos)
125125
* $params['ts'] = (boolean) Set to false to disable timestamping (Default = true)
126126
* $params['v'] = (boolean) Verbose mode. Display column headers (Default = false)
127127
*
@@ -510,7 +510,7 @@ public function threadPool(array $params = [])
510510
* $params['h'] = (list) Comma-separated list of column names to display
511511
* $params['help'] = (boolean) Return help information (Default = false)
512512
* $params['s'] = (list) Comma-separated list of column names or column aliases to sort by
513-
* $params['time'] = (enum) The unit in which to display time values (Options = d (Days),h (Hours),m (Minutes),s (Seconds),ms (Milliseconds),micros (Microseconds),nanos (Nanoseconds))
513+
* $params['time'] = (enum) The unit in which to display time values (Options = d,h,m,s,ms,micros,nanos)
514514
* $params['v'] = (boolean) Verbose mode. Display column headers (Default = false)
515515
*
516516
* @param array $params Associative array of parameters
@@ -535,7 +535,7 @@ public function mlDataFrameAnalytics(array $params = [])
535535
* $params['h'] = (list) Comma-separated list of column names to display
536536
* $params['help'] = (boolean) Return help information (Default = false)
537537
* $params['s'] = (list) Comma-separated list of column names or column aliases to sort by
538-
* $params['time'] = (enum) The unit in which to display time values (Options = d (Days),h (Hours),m (Minutes),s (Seconds),ms (Milliseconds),micros (Microseconds),nanos (Nanoseconds))
538+
* $params['time'] = (enum) The unit in which to display time values (Options = d,h,m,s,ms,micros,nanos)
539539
* $params['v'] = (boolean) Verbose mode. Display column headers (Default = false)
540540
*
541541
* @param array $params Associative array of parameters
@@ -561,7 +561,7 @@ public function mlDatafeeds(array $params = [])
561561
* $params['h'] = (list) Comma-separated list of column names to display
562562
* $params['help'] = (boolean) Return help information (Default = false)
563563
* $params['s'] = (list) Comma-separated list of column names or column aliases to sort by
564-
* $params['time'] = (enum) The unit in which to display time values (Options = d (Days),h (Hours),m (Minutes),s (Seconds),ms (Milliseconds),micros (Microseconds),nanos (Nanoseconds))
564+
* $params['time'] = (enum) The unit in which to display time values (Options = d,h,m,s,ms,micros,nanos)
565565
* $params['v'] = (boolean) Verbose mode. Display column headers (Default = false)
566566
*
567567
* @param array $params Associative array of parameters
@@ -589,7 +589,7 @@ public function mlJobs(array $params = [])
589589
* $params['h'] = (list) Comma-separated list of column names to display
590590
* $params['help'] = (boolean) Return help information (Default = false)
591591
* $params['s'] = (list) Comma-separated list of column names or column aliases to sort by
592-
* $params['time'] = (enum) The unit in which to display time values (Options = d (Days),h (Hours),m (Minutes),s (Seconds),ms (Milliseconds),micros (Microseconds),nanos (Nanoseconds))
592+
* $params['time'] = (enum) The unit in which to display time values (Options = d,h,m,s,ms,micros,nanos)
593593
* $params['v'] = (boolean) Verbose mode. Display column headers (Default = false)
594594
*
595595
* @param array $params Associative array of parameters
@@ -616,19 +616,19 @@ public function mlTrainedModels(array $params = [])
616616
* $params['h'] = (list) Comma-separated list of column names to display
617617
* $params['help'] = (boolean) Return help information (Default = false)
618618
* $params['s'] = (list) Comma-separated list of column names or column aliases to sort by
619-
* $params['time'] = (enum) The unit in which to display time values (Options = d (Days),h (Hours),m (Minutes),s (Seconds),ms (Milliseconds),micros (Microseconds),nanos (Nanoseconds))
619+
* $params['time'] = (enum) The unit in which to display time values (Options = d,h,m,s,ms,micros,nanos)
620620
* $params['v'] = (boolean) Verbose mode. Display column headers (Default = false)
621621
*
622622
* @param array $params Associative array of parameters
623623
* @return array
624624
* @see https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-transforms.html
625625
*/
626-
public function transform(array $params = [])
626+
public function transforms(array $params = [])
627627
{
628628
$transform_id = $this->extractArgument($params, 'transform_id');
629629

630630
$endpointBuilder = $this->endpoints;
631-
$endpoint = $endpointBuilder('Cat\Transform');
631+
$endpoint = $endpointBuilder('Cat\Transforms');
632632
$endpoint->setParams($params);
633633
$endpoint->setTransformId($transform_id);
634634

src/Elasticsearch/Namespaces/IndicesNamespace.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ public function getMapping(array $params = [])
561561
* $params['master_timeout'] = (time) Specify timeout for connection to master
562562
* $params['ignore_unavailable'] = (boolean) Whether specified concrete indices should be ignored when unavailable (missing or closed)
563563
* $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)
564-
* $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,closed)
564+
* $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 = all)
565565
* $params['flat_settings'] = (boolean) Return settings in flat format (default: false)
566566
* $params['local'] = (boolean) Return local information, do not retrieve the state from master node (default: false)
567567
* $params['include_defaults'] = (boolean) Whether to return all default setting for each of the indices. (Default = false)
@@ -1045,12 +1045,12 @@ public function validateQuery(array $params = [])
10451045
* $params['master_timeout'] = (time) Specify timeout for connection to master
10461046
* $params['ignore_unavailable'] = (boolean) Whether specified concrete indices should be ignored when unavailable (missing or closed)
10471047
* $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)
1048-
* $params['expand_wildcards'] = (enum) Whether to expand wildcard expression to concrete indices that are open, closed or both. (Options = open,closed,none,all) (Default = closed)
1048+
* $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 = closed)
10491049
* $params['wait_for_active_shards'] = (string) Sets the number of active shards to wait for before the operation returns.
10501050
*
10511051
* @param array $params Associative array of parameters
10521052
* @return array
1053-
* @see https://www.elastic.co/guide/en/elasticsearch/reference/current/frozen.html
1053+
* @see https://www.elastic.co/guide/en/elasticsearch/reference/current/freeze-index-api.html
10541054
*/
10551055
public function freeze(array $params = [])
10561056
{
@@ -1067,7 +1067,7 @@ public function freeze(array $params = [])
10671067
* $params['index'] = (list) A comma-separated list of index names to reload analyzers for
10681068
* $params['ignore_unavailable'] = (boolean) Whether specified concrete indices should be ignored when unavailable (missing or closed)
10691069
* $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)
1070-
* $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)
1070+
* $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)
10711071
*
10721072
* @param array $params Associative array of parameters
10731073
* @return array
@@ -1090,12 +1090,12 @@ public function reloadSearchAnalyzers(array $params = [])
10901090
* $params['master_timeout'] = (time) Specify timeout for connection to master
10911091
* $params['ignore_unavailable'] = (boolean) Whether specified concrete indices should be ignored when unavailable (missing or closed)
10921092
* $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)
1093-
* $params['expand_wildcards'] = (enum) Whether to expand wildcard expression to concrete indices that are open, closed or both. (Options = open,closed,none,all) (Default = closed)
1093+
* $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 = closed)
10941094
* $params['wait_for_active_shards'] = (string) Sets the number of active shards to wait for before the operation returns.
10951095
*
10961096
* @param array $params Associative array of parameters
10971097
* @return array
1098-
* @see https://www.elastic.co/guide/en/elasticsearch/reference/current/frozen.html
1098+
* @see https://www.elastic.co/guide/en/elasticsearch/reference/current/unfreeze-index-api.html
10991099
*/
11001100
public function unfreeze(array $params = [])
11011101
{

0 commit comments

Comments
 (0)