-
Notifications
You must be signed in to change notification settings - Fork 970
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
1 parent
c75d690
commit 75b32b2
Showing
2 changed files
with
69 additions
and
0 deletions.
There are no files selected for viewing
48 changes: 48 additions & 0 deletions
48
src/Elasticsearch/Endpoints/Cluster/Nodes/ReloadSecureSettings.php
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,48 @@ | ||
<?php | ||
|
||
declare(strict_types = 1); | ||
|
||
namespace Elasticsearch\Endpoints\Cluster\Nodes; | ||
|
||
/** | ||
* Class ReloadSecureSettings | ||
* | ||
* @category Elasticsearch | ||
* @package Elasticsearch\Endpoints\Cluster\Nodes | ||
* @author Zachary Tong <[email protected]> | ||
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 | ||
* @link http://elastic.co | ||
*/ | ||
class ReloadSecureSettings extends AbstractNodesEndpoint | ||
{ | ||
/** | ||
* @return string | ||
*/ | ||
public function getURI() | ||
{ | ||
$nodeId = $this->nodeID; | ||
$uri = "/_nodes/reload_secure_settings"; | ||
|
||
if (isset($nodeId) === true) { | ||
$uri = "/_nodes/$nodeId/reload_secure_settings"; | ||
} | ||
|
||
return $uri; | ||
} | ||
|
||
/** | ||
* @return string[] | ||
*/ | ||
public function getParamWhitelist() | ||
{ | ||
return []; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getMethod() | ||
{ | ||
return 'POST'; | ||
} | ||
} |
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