Skip to content

Commit

Permalink
Revert autogenerated code
Browse files Browse the repository at this point in the history
  • Loading branch information
kimpepper committed Nov 4, 2024
1 parent 73b20ac commit 81a3e45
Show file tree
Hide file tree
Showing 30 changed files with 738 additions and 968 deletions.
1 change: 0 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
### Fixed
- Fixed PHP 8.4 deprecations
### Updated APIs
- Updated opensearch-php APIs to reflect [opensearch-api-specification@07e329e](https://github.com/opensearch-project/opensearch-api-specification/commit/07e329e8d01fd0576de6a0a3c35412fd5a9163db)
- Updated opensearch-php APIs to reflect [opensearch-api-specification@1db1840](https://github.com/opensearch-project/opensearch-api-specification/commit/1db184063a463c5180a2cc824b1efc1aeebfd5eb)
- Updated opensearch-php APIs to reflect [opensearch-api-specification@cb320b5](https://github.com/opensearch-project/opensearch-api-specification/commit/cb320b5482551c4f28afa26ff0d1653332699722)
### Security
Expand Down
256 changes: 122 additions & 134 deletions src/OpenSearch/Client.php

Large diffs are not rendered by default.

55 changes: 0 additions & 55 deletions src/OpenSearch/Endpoints/Wlm/CreateQueryGroup.php

This file was deleted.

62 changes: 0 additions & 62 deletions src/OpenSearch/Endpoints/Wlm/DeleteQueryGroup.php

This file was deleted.

61 changes: 0 additions & 61 deletions src/OpenSearch/Endpoints/Wlm/GetQueryGroup.php

This file was deleted.

72 changes: 0 additions & 72 deletions src/OpenSearch/Endpoints/Wlm/UpdateQueryGroup.php

This file was deleted.

16 changes: 8 additions & 8 deletions src/OpenSearch/Namespaces/AsynchronousSearchNamespace.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ public function delete(array $params = [])
{
$id = $this->extractArgument($params, 'id');

$endpoint = $this->endpointFactory->getEndpoint(\OpenSearch\Endpoints\AsynchronousSearch\Delete::class);
$endpointBuilder = $this->endpoints;
$endpoint = $endpointBuilder('AsynchronousSearch\Delete');
$endpoint->setParams($params);
$endpoint->setId($id);

return $this->performRequest($endpoint);
}

/**
* Get partial responses from asynchronous search.
*
Expand All @@ -65,13 +65,13 @@ public function get(array $params = [])
{
$id = $this->extractArgument($params, 'id');

$endpoint = $this->endpointFactory->getEndpoint(\OpenSearch\Endpoints\AsynchronousSearch\Get::class);
$endpointBuilder = $this->endpoints;
$endpoint = $endpointBuilder('AsynchronousSearch\Get');
$endpoint->setParams($params);
$endpoint->setId($id);

return $this->performRequest($endpoint);
}

/**
* Perform an asynchronous search.
*
Expand All @@ -92,13 +92,13 @@ public function search(array $params = [])
{
$body = $this->extractArgument($params, 'body');

$endpoint = $this->endpointFactory->getEndpoint(\OpenSearch\Endpoints\AsynchronousSearch\Search::class);
$endpointBuilder = $this->endpoints;
$endpoint = $endpointBuilder('AsynchronousSearch\Search');
$endpoint->setParams($params);
$endpoint->setBody($body);

return $this->performRequest($endpoint);
}

/**
* Monitoring of asynchronous searches that are running, completed, and/or persisted.
*
Expand All @@ -113,10 +113,10 @@ public function search(array $params = [])
*/
public function stats(array $params = [])
{
$endpoint = $this->endpointFactory->getEndpoint(\OpenSearch\Endpoints\AsynchronousSearch\Stats::class);
$endpointBuilder = $this->endpoints;
$endpoint = $endpointBuilder('AsynchronousSearch\Stats');
$endpoint->setParams($params);

return $this->performRequest($endpoint);
}

}
Loading

0 comments on commit 81a3e45

Please sign in to comment.