From b3b3f464d2ffbee481fcc3426342ff0920f9145a Mon Sep 17 00:00:00 2001 From: Kim Pepper Date: Tue, 5 Nov 2024 09:23:23 +1100 Subject: [PATCH] Revert Wlm namespace Signed-off-by: Kim Pepper --- src/OpenSearch/Namespaces/WlmNamespace.php | 124 --------------------- 1 file changed, 124 deletions(-) delete mode 100644 src/OpenSearch/Namespaces/WlmNamespace.php diff --git a/src/OpenSearch/Namespaces/WlmNamespace.php b/src/OpenSearch/Namespaces/WlmNamespace.php deleted file mode 100644 index 1cafd599..00000000 --- a/src/OpenSearch/Namespaces/WlmNamespace.php +++ /dev/null @@ -1,124 +0,0 @@ -extractArgument($params, 'body'); - - $endpoint = $this->endpointFactory->getEndpoint(\OpenSearch\Endpoints\Wlm\CreateQueryGroup::class); - $endpoint->setParams($params); - $endpoint->setBody($body); - - return $this->performRequest($endpoint); - } - - /** - * Deletes the specified QueryGroup. - * - * $params['name'] = (string) QueryGroup name. - * $params['pretty'] = (boolean) Whether to pretty format the returned JSON response. - * $params['human'] = (boolean) Whether to return human readable values for statistics. - * $params['error_trace'] = (boolean) Whether to include the stack trace of returned errors. - * $params['source'] = (string) The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - * $params['filter_path'] = (any) Used to reduce the response. This parameter takes a comma-separated list of filters. It supports using wildcards to match any field or part of a field’s name. You can also exclude fields with "-". - * - * @param array $params Associative array of parameters - * @return array - */ - public function deleteQueryGroup(array $params = []) - { - $name = $this->extractArgument($params, 'name'); - - $endpoint = $this->endpointFactory->getEndpoint(\OpenSearch\Endpoints\Wlm\DeleteQueryGroup::class); - $endpoint->setParams($params); - $endpoint->setName($name); - - return $this->performRequest($endpoint); - } - - /** - * Gets the specified QueryGroup or get all if no name is provided. - * - * $params['name'] = (string) QueryGroup name. - * $params['pretty'] = (boolean) Whether to pretty format the returned JSON response. - * $params['human'] = (boolean) Whether to return human readable values for statistics. - * $params['error_trace'] = (boolean) Whether to include the stack trace of returned errors. - * $params['source'] = (string) The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - * $params['filter_path'] = (any) Used to reduce the response. This parameter takes a comma-separated list of filters. It supports using wildcards to match any field or part of a field’s name. You can also exclude fields with "-". - * - * @param array $params Associative array of parameters - * @return array - */ - public function getQueryGroup(array $params = []) - { - $name = $this->extractArgument($params, 'name'); - - $endpoint = $this->endpointFactory->getEndpoint(\OpenSearch\Endpoints\Wlm\GetQueryGroup::class); - $endpoint->setParams($params); - $endpoint->setName($name); - - return $this->performRequest($endpoint); - } - - /** - * Updates the specified query group. - * - * $params['name'] = (string) QueryGroup name. - * $params['pretty'] = (boolean) Whether to pretty format the returned JSON response. - * $params['human'] = (boolean) Whether to return human readable values for statistics. - * $params['error_trace'] = (boolean) Whether to include the stack trace of returned errors. - * $params['source'] = (string) The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - * $params['filter_path'] = (any) Used to reduce the response. This parameter takes a comma-separated list of filters. It supports using wildcards to match any field or part of a field’s name. You can also exclude fields with "-". - * - * @param array $params Associative array of parameters - * @return array - */ - public function updateQueryGroup(array $params = []) - { - $name = $this->extractArgument($params, 'name'); - $body = $this->extractArgument($params, 'body'); - - $endpoint = $this->endpointFactory->getEndpoint(\OpenSearch\Endpoints\Wlm\UpdateQueryGroup::class); - $endpoint->setParams($params); - $endpoint->setName($name); - $endpoint->setBody($body); - - return $this->performRequest($endpoint); - } - -}