Skip to content

Commit 15b0f55

Browse files
committed
Updated endpoints for 7.11.0-SNAPSHOT
1 parent feb05f8 commit 15b0f55

File tree

386 files changed

+979
-476
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

386 files changed

+979
-476
lines changed

src/Elasticsearch/Client.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@
6060
* Class Client
6161
*
6262
* NOTE: this file is autogenerated using util/GenerateEndpoints.php
63-
* and Elasticsearch 7.10.0-SNAPSHOT (9546d0d53298259d9bbdfa3a26fd9b123920e299)
63+
* and Elasticsearch 7.11.0-SNAPSHOT (8513510881a3f759492a3a6c62eefeee932dfe64)
6464
*/
6565
class Client
6666
{
67-
const VERSION = '7.10.0';
67+
const VERSION = '7.11.0-SNAPSHOT';
6868

6969
/**
7070
* @var Transport

src/Elasticsearch/Endpoints/AsyncSearch/Delete.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
* Elasticsearch API name async_search.delete
2525
*
2626
* NOTE: this file is autogenerated using util/GenerateEndpoints.php
27-
* and Elasticsearch 7.10.0-SNAPSHOT (9546d0d53298259d9bbdfa3a26fd9b123920e299)
27+
* and Elasticsearch 7.11.0-SNAPSHOT (8513510881a3f759492a3a6c62eefeee932dfe64)
2828
*/
2929
class Delete extends AbstractEndpoint
3030
{

src/Elasticsearch/Endpoints/AsyncSearch/Get.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
* Elasticsearch API name async_search.get
2525
*
2626
* NOTE: this file is autogenerated using util/GenerateEndpoints.php
27-
* and Elasticsearch 7.10.0-SNAPSHOT (9546d0d53298259d9bbdfa3a26fd9b123920e299)
27+
* and Elasticsearch 7.11.0-SNAPSHOT (8513510881a3f759492a3a6c62eefeee932dfe64)
2828
*/
2929
class Get extends AbstractEndpoint
3030
{
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
<?php
2+
/**
3+
* Elasticsearch PHP client
4+
*
5+
* @link https://github.com/elastic/elasticsearch-php/
6+
* @copyright Copyright (c) Elasticsearch B.V (https://www.elastic.co)
7+
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
8+
* @license https://www.gnu.org/licenses/lgpl-2.1.html GNU Lesser General Public License, Version 2.1
9+
*
10+
* Licensed to Elasticsearch B.V under one or more agreements.
11+
* Elasticsearch B.V licenses this file to you under the Apache 2.0 License or
12+
* the GNU Lesser General Public License, Version 2.1, at your option.
13+
* See the LICENSE file in the project root for more information.
14+
*/
15+
declare(strict_types = 1);
16+
17+
namespace Elasticsearch\Endpoints\AsyncSearch;
18+
19+
use Elasticsearch\Common\Exceptions\RuntimeException;
20+
use Elasticsearch\Endpoints\AbstractEndpoint;
21+
22+
/**
23+
* Class Status
24+
* Elasticsearch API name async_search.status
25+
*
26+
* NOTE: this file is autogenerated using util/GenerateEndpoints.php
27+
* and Elasticsearch 7.11.0-SNAPSHOT (8513510881a3f759492a3a6c62eefeee932dfe64)
28+
*/
29+
class Status extends AbstractEndpoint
30+
{
31+
32+
public function getURI(): string
33+
{
34+
$id = $this->id ?? null;
35+
36+
if (isset($id)) {
37+
return "/_async_search/status/$id";
38+
}
39+
throw new RuntimeException('Missing parameter for the endpoint async_search.status');
40+
}
41+
42+
public function getParamWhitelist(): array
43+
{
44+
return [];
45+
}
46+
47+
public function getMethod(): string
48+
{
49+
return 'GET';
50+
}
51+
}

src/Elasticsearch/Endpoints/AsyncSearch/Submit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* Elasticsearch API name async_search.submit
2424
*
2525
* NOTE: this file is autogenerated using util/GenerateEndpoints.php
26-
* and Elasticsearch 7.10.0-SNAPSHOT (9546d0d53298259d9bbdfa3a26fd9b123920e299)
26+
* and Elasticsearch 7.11.0-SNAPSHOT (8513510881a3f759492a3a6c62eefeee932dfe64)
2727
*/
2828
class Submit extends AbstractEndpoint
2929
{

src/Elasticsearch/Endpoints/Autoscaling/DeleteAutoscalingPolicy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
* Elasticsearch API name autoscaling.delete_autoscaling_policy
2525
*
2626
* NOTE: this file is autogenerated using util/GenerateEndpoints.php
27-
* and Elasticsearch 7.10.0-SNAPSHOT (9546d0d53298259d9bbdfa3a26fd9b123920e299)
27+
* and Elasticsearch 7.11.0-SNAPSHOT (8513510881a3f759492a3a6c62eefeee932dfe64)
2828
*/
2929
class DeleteAutoscalingPolicy extends AbstractEndpoint
3030
{

src/Elasticsearch/Endpoints/Autoscaling/GetAutoscalingDecision.php renamed to src/Elasticsearch/Endpoints/Autoscaling/GetAutoscalingCapacity.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,19 @@
1919
use Elasticsearch\Endpoints\AbstractEndpoint;
2020

2121
/**
22-
* Class GetAutoscalingDecision
23-
* Elasticsearch API name autoscaling.get_autoscaling_decision
22+
* Class GetAutoscalingCapacity
23+
* Elasticsearch API name autoscaling.get_autoscaling_capacity
2424
*
2525
* NOTE: this file is autogenerated using util/GenerateEndpoints.php
26-
* and Elasticsearch 7.10.0-SNAPSHOT (9546d0d53298259d9bbdfa3a26fd9b123920e299)
26+
* and Elasticsearch 7.11.0-SNAPSHOT (8513510881a3f759492a3a6c62eefeee932dfe64)
2727
*/
28-
class GetAutoscalingDecision extends AbstractEndpoint
28+
class GetAutoscalingCapacity extends AbstractEndpoint
2929
{
3030

3131
public function getURI(): string
3232
{
3333

34-
return "/_autoscaling/decision";
34+
return "/_autoscaling/capacity";
3535
}
3636

3737
public function getParamWhitelist(): array

src/Elasticsearch/Endpoints/Autoscaling/GetAutoscalingPolicy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
* Elasticsearch API name autoscaling.get_autoscaling_policy
2525
*
2626
* NOTE: this file is autogenerated using util/GenerateEndpoints.php
27-
* and Elasticsearch 7.10.0-SNAPSHOT (9546d0d53298259d9bbdfa3a26fd9b123920e299)
27+
* and Elasticsearch 7.11.0-SNAPSHOT (8513510881a3f759492a3a6c62eefeee932dfe64)
2828
*/
2929
class GetAutoscalingPolicy extends AbstractEndpoint
3030
{

src/Elasticsearch/Endpoints/Autoscaling/PutAutoscalingPolicy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
* Elasticsearch API name autoscaling.put_autoscaling_policy
2525
*
2626
* NOTE: this file is autogenerated using util/GenerateEndpoints.php
27-
* and Elasticsearch 7.10.0-SNAPSHOT (9546d0d53298259d9bbdfa3a26fd9b123920e299)
27+
* and Elasticsearch 7.11.0-SNAPSHOT (8513510881a3f759492a3a6c62eefeee932dfe64)
2828
*/
2929
class PutAutoscalingPolicy extends AbstractEndpoint
3030
{

src/Elasticsearch/Endpoints/Bulk.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
* Elasticsearch API name bulk
2727
*
2828
* NOTE: this file is autogenerated using util/GenerateEndpoints.php
29-
* and Elasticsearch 7.10.0-SNAPSHOT (9546d0d53298259d9bbdfa3a26fd9b123920e299)
29+
* and Elasticsearch 7.11.0-SNAPSHOT (8513510881a3f759492a3a6c62eefeee932dfe64)
3030
*/
3131
class Bulk extends AbstractEndpoint
3232
{
@@ -93,4 +93,5 @@ public function setBody($body): Bulk
9393
}
9494
return $this;
9595
}
96+
9697
}

0 commit comments

Comments
 (0)