-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
295 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ | |
|
||
class Client | ||
{ | ||
const VERSION = '8.4.0'; | ||
const VERSION = '8.5.0'; | ||
|
||
private array $config = []; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<?php | ||
|
||
/** | ||
* Elastic Enterprise Search | ||
* | ||
* @link https://github.com/elastic/enterprise-search-php | ||
* @copyright Copyright (c) Elasticsearch B.V (https://www.elastic.co) | ||
* @license https://opensource.org/licenses/MIT MIT License | ||
* | ||
* Licensed to Elasticsearch B.V under one or more agreements. | ||
* Elasticsearch B.V licenses this file to you under the MIT License. | ||
* See the LICENSE file in the project root for more information. | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Elastic\EnterpriseSearch\EnterpriseSearch\Request; | ||
|
||
use Elastic\EnterpriseSearch\Request\Request; | ||
|
||
/** | ||
* Cleanup outdated application indices | ||
* | ||
* @see https://www.elastic.co/guide/en/enterprise-search/current/storage-api.html#delete-stale-storage-api | ||
* @generated This file is generated, please do not edit | ||
*/ | ||
class DeleteStaleStorage extends Request | ||
{ | ||
public function __construct() | ||
{ | ||
$this->method = 'DELETE'; | ||
$this->path = "/api/ent/v1/internal/storage/stale"; | ||
} | ||
|
||
|
||
/** | ||
* @param bool $force The value for the "force" flag | ||
*/ | ||
public function setForce(bool $force): self | ||
{ | ||
$this->queryParams['force'] = $force; | ||
return $this; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?php | ||
|
||
/** | ||
* Elastic Enterprise Search | ||
* | ||
* @link https://github.com/elastic/enterprise-search-php | ||
* @copyright Copyright (c) Elasticsearch B.V (https://www.elastic.co) | ||
* @license https://opensource.org/licenses/MIT MIT License | ||
* | ||
* Licensed to Elasticsearch B.V under one or more agreements. | ||
* Elasticsearch B.V licenses this file to you under the MIT License. | ||
* See the LICENSE file in the project root for more information. | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Elastic\EnterpriseSearch\EnterpriseSearch\Request; | ||
|
||
use Elastic\EnterpriseSearch\Request\Request; | ||
|
||
/** | ||
* Get information on the outdated application indices | ||
* | ||
* @see https://www.elastic.co/guide/en/enterprise-search/current/storage-api.html#get-stale-storage-api | ||
* @generated This file is generated, please do not edit | ||
*/ | ||
class GetStaleStorage extends Request | ||
{ | ||
public function __construct() | ||
{ | ||
$this->method = 'GET'; | ||
$this->path = "/api/ent/v1/internal/storage/stale"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?php | ||
|
||
/** | ||
* Elastic Enterprise Search | ||
* | ||
* @link https://github.com/elastic/enterprise-search-php | ||
* @copyright Copyright (c) Elasticsearch B.V (https://www.elastic.co) | ||
* @license https://opensource.org/licenses/MIT MIT License | ||
* | ||
* Licensed to Elasticsearch B.V under one or more agreements. | ||
* Elasticsearch B.V licenses this file to you under the MIT License. | ||
* See the LICENSE file in the project root for more information. | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Elastic\EnterpriseSearch\EnterpriseSearch\Request; | ||
|
||
use Elastic\EnterpriseSearch\Request\Request; | ||
|
||
/** | ||
* Get information on the application indices and the space used | ||
* | ||
* @see https://www.elastic.co/guide/en/enterprise-search/current/storage-api.html#get-storage-api | ||
* @generated This file is generated, please do not edit | ||
*/ | ||
class GetStorage extends Request | ||
{ | ||
public function __construct() | ||
{ | ||
$this->method = 'GET'; | ||
$this->path = "/api/ent/v1/internal/storage"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
|
||
/** | ||
* Elastic Enterprise Search | ||
* | ||
* @link https://github.com/elastic/enterprise-search-php | ||
* @copyright Copyright (c) Elasticsearch B.V (https://www.elastic.co) | ||
* @license https://opensource.org/licenses/MIT MIT License | ||
* | ||
* Licensed to Elasticsearch B.V under one or more agreements. | ||
* Elasticsearch B.V licenses this file to you under the MIT License. | ||
* See the LICENSE file in the project root for more information. | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Elastic\EnterpriseSearch\EnterpriseSearch\Schema; | ||
|
||
/** | ||
* @generated This file is generated, please do not edit | ||
*/ | ||
class IndexInfo | ||
{ | ||
public string $name; | ||
public int $size_in_bytes; | ||
|
||
|
||
public function __construct(string $name, int $size_in_bytes) | ||
{ | ||
$this->name = $name; | ||
$this->size_in_bytes = $size_in_bytes; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?php | ||
|
||
/** | ||
* Elastic Enterprise Search | ||
* | ||
* @link https://github.com/elastic/enterprise-search-php | ||
* @copyright Copyright (c) Elasticsearch B.V (https://www.elastic.co) | ||
* @license https://opensource.org/licenses/MIT MIT License | ||
* | ||
* Licensed to Elasticsearch B.V under one or more agreements. | ||
* Elasticsearch B.V licenses this file to you under the MIT License. | ||
* See the LICENSE file in the project root for more information. | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Elastic\EnterpriseSearch\EnterpriseSearch\Schema; | ||
|
||
/** | ||
* @generated This file is generated, please do not edit | ||
*/ | ||
class StorageCleanupResponse | ||
{ | ||
public array $indices; | ||
public int $index_count; | ||
|
||
|
||
/** | ||
* @param string[] $indices | ||
*/ | ||
public function __construct(array $indices, int $index_count) | ||
{ | ||
$this->indices = $indices; | ||
$this->index_count = $index_count; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?php | ||
|
||
/** | ||
* Elastic Enterprise Search | ||
* | ||
* @link https://github.com/elastic/enterprise-search-php | ||
* @copyright Copyright (c) Elasticsearch B.V (https://www.elastic.co) | ||
* @license https://opensource.org/licenses/MIT MIT License | ||
* | ||
* Licensed to Elasticsearch B.V under one or more agreements. | ||
* Elasticsearch B.V licenses this file to you under the MIT License. | ||
* See the LICENSE file in the project root for more information. | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Elastic\EnterpriseSearch\EnterpriseSearch\Schema; | ||
|
||
/** | ||
* @generated This file is generated, please do not edit | ||
*/ | ||
class StorageResponse | ||
{ | ||
public array $indices; | ||
public StorageSummary $summary; | ||
|
||
|
||
/** | ||
* @param IndexInfo[] $indices | ||
*/ | ||
public function __construct(array $indices, StorageSummary $summary) | ||
{ | ||
$this->indices = $indices; | ||
$this->summary = $summary; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
|
||
/** | ||
* Elastic Enterprise Search | ||
* | ||
* @link https://github.com/elastic/enterprise-search-php | ||
* @copyright Copyright (c) Elasticsearch B.V (https://www.elastic.co) | ||
* @license https://opensource.org/licenses/MIT MIT License | ||
* | ||
* Licensed to Elasticsearch B.V under one or more agreements. | ||
* Elasticsearch B.V licenses this file to you under the MIT License. | ||
* See the LICENSE file in the project root for more information. | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Elastic\EnterpriseSearch\EnterpriseSearch\Schema; | ||
|
||
/** | ||
* @generated This file is generated, please do not edit | ||
*/ | ||
class StorageSummary | ||
{ | ||
public int $index_count; | ||
public int $size_in_bytes; | ||
|
||
|
||
public function __construct(int $index_count, int $size_in_bytes) | ||
{ | ||
$this->index_count = $index_count; | ||
$this->size_in_bytes = $size_in_bytes; | ||
} | ||
} |