Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/Endpoints/Security.php
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,7 @@ public function createCrossClusterApiKey(?array $params = null)
* Create a service account token
*
* @link https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-create-service-token
* @group serverless
*
* @param array{
* namespace: string, // (REQUIRED) An identifier for the namespace
Expand Down Expand Up @@ -778,6 +779,7 @@ public function deleteRoleMapping(?array $params = null)
* Delete service account tokens
*
* @link https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-delete-service-token
* @group serverless
*
* @param array{
* namespace: string, // (REQUIRED) An identifier for the namespace
Expand Down
5 changes: 3 additions & 2 deletions src/Endpoints/Transform.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,11 @@ public function getTransform(?array $params = null)
*
* @param array{
* transform_id: string|array<string>, // (REQUIRED) Comma-separated list of transform identifiers or wildcard expressions. You can get information for all transforms by using `_all`, by specifying `*` as the `<transform_id>`, or by omitting the `<transform_id>`.
* allow_no_match?: bool, // Specifies what to do when the request: 1. Contains wildcard expressions and there are no transforms that match. 2. Contains the _all string or no identifiers and there are no matches. 3. Contains wildcard expressions and there are only partial matches. If this parameter is false, the request returns a 404 status code when there are no matches or only partial matches. (DEFAULT: 1)
* basic?: bool, // If true, the response includes `id`, `state`, `node`, `stats`, `health`, and basic `checkpointing` information (the last and next checkpoint numbers, and the next checkpoint's `position` and `progress`). Skips statistics that require heavy computations to calculate: `operations_behind`, `changes_last_detected_at`, `last_search_time`, and the checkpoint timestamps.
* from?: int, // Skips the specified number of transforms.
* size?: int, // Specifies the maximum number of transforms to obtain. (DEFAULT: 100)
* timeout?: int|string, // Controls the time to wait for the stats (DEFAULT: 30s)
* allow_no_match?: bool, // Specifies what to do when the request: 1. Contains wildcard expressions and there are no transforms that match. 2. Contains the _all string or no identifiers and there are no matches. 3. Contains wildcard expressions and there are only partial matches. If this parameter is false, the request returns a 404 status code when there are no matches or only partial matches. (DEFAULT: 1)
* pretty?: bool, // Pretty format the returned JSON response. (DEFAULT: false)
* human?: bool, // Return human readable values for statistics. (DEFAULT: true)
* error_trace?: bool, // Include the stack trace of returned errors. (DEFAULT: false)
Expand All @@ -184,7 +185,7 @@ public function getTransformStats(?array $params = null)
$url = '/_transform/' . $this->encode($this->convertValue($params['transform_id'])) . '/_stats';
$method = 'GET';

$url = $this->addQueryString($url, $params, ['from','size','timeout','allow_no_match','pretty','human','error_trace','source','filter_path']);
$url = $this->addQueryString($url, $params, ['allow_no_match','basic','from','size','timeout','pretty','human','error_trace','source','filter_path']);
$headers = [
'Accept' => 'application/json',
];
Expand Down
2 changes: 1 addition & 1 deletion src/Traits/ClientEndpointsTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -1436,7 +1436,7 @@ public function rankEval(?array $params = null)
* requests_per_second?: int, // The throttle for this request in sub-requests per second. By default, there is no throttle. (DEFAULT: -1)
* scroll?: int|string, // The period of time that a consistent view of the index should be maintained for scrolled search. (DEFAULT: 5m)
* slices?: int|string, // The number of slices this task should be divided into. It defaults to one slice, which means the task isn't sliced into subtasks. Reindex supports sliced scroll to parallelize the reindexing process. This parallelization can improve efficiency and provide a convenient way to break the request down into smaller parts. NOTE: Reindexing from remote clusters does not support manual or automatic slicing. If set to `auto`, Elasticsearch chooses the number of slices to use. This setting will use one slice per shard, up to a certain limit. If there are multiple sources, it will choose the number of slices based on the index or backing index with the smallest number of shards. (DEFAULT: 1)
* max_docs?: int, // The maximum number of documents to reindex. By default, all documents are reindexed. If it is a value less then or equal to `scroll_size`, a scroll will not be used to retrieve the results for the operation. If `conflicts` is set to `proceed`, the reindex operation could attempt to reindex more documents from the source than `max_docs` until it has successfully indexed `max_docs` documents into the target or it has gone through every document in the source query.
* max_docs?: int, // The maximum number of documents to reindex. By default, all documents are reindexed. If it is a value less then or equal to `scroll_size`, a scroll will not be used to retrieve the results for the operation. If `conflicts` is set to `proceed`, the reindex operation could attempt to reindex more documents from the source than `max_docs` until it has successfully indexed `max_docs` documents into the target or it has gone through every document in the source query. If `slices` is set, the `max_docs` limit is split evenly across the slices. If the number of documents in the source is equal to or slightly more than `max_docs`, this could result in slightly fewer than `max_docs` documents being reindexed, due to skew in the slicing.
* require_alias?: bool, // If `true`, the destination must be an index alias.
* pretty?: bool, // Pretty format the returned JSON response. (DEFAULT: false)
* human?: bool, // Return human readable values for statistics. (DEFAULT: true)
Expand Down
Loading