Skip to content

Commit c0da13f

Browse files
committed
Merge branch '7.8' into 7.x
2 parents d207c43 + f2a0828 commit c0da13f

File tree

366 files changed

+1595
-371
lines changed

Some content is hidden

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

366 files changed

+1595
-371
lines changed

.ci/jobs/elastic+elasticsearch-php+7.7.yml renamed to .ci/jobs/elastic+elasticsearch-php+7.8.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
22
- job:
3-
name: elastic+elasticsearch-php+7.7
4-
display-name: 'elastic / elasticsearch-php # 7.7'
5-
description: Testing the elasticsearch-php 7.7 branch.
3+
name: elastic+elasticsearch-php+7.8
4+
display-name: 'elastic / elasticsearch-php # 7.8'
5+
description: Testing the elasticsearch-php 7.8 branch.
66
parameters:
77
- string:
88
name: branch_specifier
9-
default: refs/heads/7.7
9+
default: refs/heads/7.8
1010
description: the Git branch specifier to build (<branchName>, <tagName>,
1111
<commitId>, etc.)
1212
triggers:

.ci/test-matrix.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
STACK_VERSION:
3-
- 7.x-SNAPSHOT
3+
- 7.8-SNAPSHOT
44

55
PHP_VERSION:
66
- 7.4-cli

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929

3030
env:
3131
global:
32-
- STACK_VERSION="7.x-SNAPSHOT"
32+
- STACK_VERSION="7.8-SNAPSHOT"
3333

3434
before_install:
3535
- ./travis/run_es_docker.sh

src/Elasticsearch/Client.php

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
use Elasticsearch\Namespaces\MlNamespace;
3434
use Elasticsearch\Namespaces\MonitoringNamespace;
3535
use Elasticsearch\Namespaces\RollupNamespace;
36+
use Elasticsearch\Namespaces\SearchableSnapshotsNamespace;
3637
use Elasticsearch\Namespaces\SecurityNamespace;
3738
use Elasticsearch\Namespaces\SlmNamespace;
3839
use Elasticsearch\Namespaces\SqlNamespace;
@@ -43,7 +44,7 @@
4344

4445
/**
4546
* Class Client
46-
* Generated running $ php util/GenerateEndpoints.php 7.7
47+
* Generated running $ php util/GenerateEndpoints.php 7.8
4748
*
4849
* @category Elasticsearch
4950
* @package Elasticsearch
@@ -53,7 +54,7 @@
5354
*/
5455
class Client
5556
{
56-
const VERSION = '7.7.0';
57+
const VERSION = '7.8';
5758

5859
/**
5960
* @var Transport
@@ -175,6 +176,11 @@ class Client
175176
*/
176177
protected $rollup;
177178

179+
/**
180+
* @var SearchableSnapshotsNamespace
181+
*/
182+
protected $searchableSnapshots;
183+
178184
/**
179185
* @var SecurityNamespace
180186
*/
@@ -242,6 +248,7 @@ public function __construct(Transport $transport, callable $endpoint, array $reg
242248
$this->ml = new MlNamespace($transport, $endpoint);
243249
$this->monitoring = new MonitoringNamespace($transport, $endpoint);
244250
$this->rollup = new RollupNamespace($transport, $endpoint);
251+
$this->searchableSnapshots = new SearchableSnapshotsNamespace($transport, $endpoint);
245252
$this->security = new SecurityNamespace($transport, $endpoint);
246253
$this->slm = new SlmNamespace($transport, $endpoint);
247254
$this->sql = new SqlNamespace($transport, $endpoint);
@@ -1486,6 +1493,10 @@ public function rollup(): RollupNamespace
14861493
{
14871494
return $this->rollup;
14881495
}
1496+
public function searchableSnapshots(): SearchableSnapshotsNamespace
1497+
{
1498+
return $this->searchableSnapshots;
1499+
}
14891500
public function security(): SecurityNamespace
14901501
{
14911502
return $this->security;

src/Elasticsearch/Endpoints/AsyncSearch/Delete.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
/**
1010
* Class Delete
1111
* Elasticsearch API name async_search.delete
12-
* Generated running $ php util/GenerateEndpoints.php 7.7
12+
* Generated running $ php util/GenerateEndpoints.php 7.8
1313
*
1414
* @category Elasticsearch
1515
* @package Elasticsearch\Endpoints\AsyncSearch

src/Elasticsearch/Endpoints/AsyncSearch/Get.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
/**
1010
* Class Get
1111
* Elasticsearch API name async_search.get
12-
* Generated running $ php util/GenerateEndpoints.php 7.7
12+
* Generated running $ php util/GenerateEndpoints.php 7.8
1313
*
1414
* @category Elasticsearch
1515
* @package Elasticsearch\Endpoints\AsyncSearch

src/Elasticsearch/Endpoints/AsyncSearch/Submit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
/**
99
* Class Submit
1010
* Elasticsearch API name async_search.submit
11-
* Generated running $ php util/GenerateEndpoints.php 7.7
11+
* Generated running $ php util/GenerateEndpoints.php 7.8
1212
*
1313
* @category Elasticsearch
1414
* @package Elasticsearch\Endpoints\AsyncSearch
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
<?php
2+
declare(strict_types = 1);
3+
4+
namespace Elasticsearch\Endpoints\Autoscaling;
5+
6+
use Elasticsearch\Common\Exceptions\RuntimeException;
7+
use Elasticsearch\Endpoints\AbstractEndpoint;
8+
9+
/**
10+
* Class DeleteAutoscalingPolicy
11+
* Elasticsearch API name autoscaling.delete_autoscaling_policy
12+
* Generated running $ php util/GenerateEndpoints.php 7.8
13+
*
14+
* @category Elasticsearch
15+
* @package Elasticsearch\Endpoints\Autoscaling
16+
* @author Enrico Zimuel <[email protected]>
17+
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache2
18+
* @link http://elastic.co
19+
*/
20+
class DeleteAutoscalingPolicy extends AbstractEndpoint
21+
{
22+
protected $name;
23+
24+
public function getURI(): string
25+
{
26+
$name = $this->name ?? null;
27+
28+
if (isset($name)) {
29+
return "/_autoscaling/policy/$name";
30+
}
31+
throw new RuntimeException('Missing parameter for the endpoint autoscaling.delete_autoscaling_policy');
32+
}
33+
34+
public function getParamWhitelist(): array
35+
{
36+
return [];
37+
}
38+
39+
public function getMethod(): string
40+
{
41+
return 'DELETE';
42+
}
43+
44+
public function setName($name): DeleteAutoscalingPolicy
45+
{
46+
if (isset($name) !== true) {
47+
return $this;
48+
}
49+
$this->name = $name;
50+
51+
return $this;
52+
}
53+
}

src/Elasticsearch/Endpoints/Autoscaling/GetAutoscalingDecision.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
/**
99
* Class GetAutoscalingDecision
1010
* Elasticsearch API name autoscaling.get_autoscaling_decision
11-
* Generated running $ php util/GenerateEndpoints.php 7.7
11+
* Generated running $ php util/GenerateEndpoints.php 7.8
1212
*
1313
* @category Elasticsearch
1414
* @package Elasticsearch\Endpoints\Autoscaling
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
<?php
2+
declare(strict_types = 1);
3+
4+
namespace Elasticsearch\Endpoints\Autoscaling;
5+
6+
use Elasticsearch\Common\Exceptions\RuntimeException;
7+
use Elasticsearch\Endpoints\AbstractEndpoint;
8+
9+
/**
10+
* Class GetAutoscalingPolicy
11+
* Elasticsearch API name autoscaling.get_autoscaling_policy
12+
* Generated running $ php util/GenerateEndpoints.php 7.8
13+
*
14+
* @category Elasticsearch
15+
* @package Elasticsearch\Endpoints\Autoscaling
16+
* @author Enrico Zimuel <[email protected]>
17+
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache2
18+
* @link http://elastic.co
19+
*/
20+
class GetAutoscalingPolicy extends AbstractEndpoint
21+
{
22+
protected $name;
23+
24+
public function getURI(): string
25+
{
26+
$name = $this->name ?? null;
27+
28+
if (isset($name)) {
29+
return "/_autoscaling/policy/$name";
30+
}
31+
throw new RuntimeException('Missing parameter for the endpoint autoscaling.get_autoscaling_policy');
32+
}
33+
34+
public function getParamWhitelist(): array
35+
{
36+
return [];
37+
}
38+
39+
public function getMethod(): string
40+
{
41+
return 'GET';
42+
}
43+
44+
public function setName($name): GetAutoscalingPolicy
45+
{
46+
if (isset($name) !== true) {
47+
return $this;
48+
}
49+
$this->name = $name;
50+
51+
return $this;
52+
}
53+
}

0 commit comments

Comments
 (0)