-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generated Ml Namespace Endpoints Using OpenSearch API Specifications (#…
…214) * Generated Ml Namespace Endpoints Using OpenSearch API Specifications Signed-off-by: saimedhi <[email protected]> * Generated Ml Namespace Endpoints Using OpenSearch API Specifications Signed-off-by: saimedhi <[email protected]> --------- Signed-off-by: saimedhi <[email protected]>
- Loading branch information
Showing
51 changed files
with
1,065 additions
and
519 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
51 changes: 0 additions & 51 deletions
51
src/OpenSearch/Endpoints/MachineLearning/ModelGroups/DeleteModelGroup.php
This file was deleted.
Oops, something went wrong.
43 changes: 0 additions & 43 deletions
43
src/OpenSearch/Endpoints/MachineLearning/ModelGroups/RegisterModelGroup.php
This file was deleted.
Oops, something went wrong.
51 changes: 0 additions & 51 deletions
51
src/OpenSearch/Endpoints/MachineLearning/Models/DeleteModel.php
This file was deleted.
Oops, something went wrong.
43 changes: 0 additions & 43 deletions
43
src/OpenSearch/Endpoints/MachineLearning/Models/GetModels.php
This file was deleted.
Oops, something went wrong.
43 changes: 0 additions & 43 deletions
43
src/OpenSearch/Endpoints/MachineLearning/Models/RegisterModel.php
This file was deleted.
Oops, something went wrong.
51 changes: 0 additions & 51 deletions
51
src/OpenSearch/Endpoints/MachineLearning/Tasks/GetTask.php
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/** | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* The OpenSearch Contributors require contributions made to | ||
* this file be licensed under the Apache-2.0 license or a | ||
* compatible open source license. | ||
* | ||
* Modifications Copyright OpenSearch Contributors. See | ||
* GitHub history for details. | ||
*/ | ||
|
||
namespace OpenSearch\Endpoints\Ml; | ||
|
||
use OpenSearch\Common\Exceptions\RuntimeException; | ||
use OpenSearch\Endpoints\AbstractEndpoint; | ||
|
||
/** | ||
* NOTE: This file is autogenerated using util/GenerateEndpoints.php | ||
*/ | ||
class DeleteModel extends AbstractEndpoint | ||
{ | ||
public function getURI(): string | ||
{ | ||
$id = $this->id ?? null; | ||
if (isset($id)) { | ||
return "/_plugins/_ml/models/$id"; | ||
} | ||
throw new RuntimeException('Missing parameter for the endpoint ml.delete_model'); | ||
} | ||
|
||
public function getParamWhitelist(): array | ||
{ | ||
return [ | ||
'pretty', | ||
'human', | ||
'error_trace', | ||
'source', | ||
'filter_path' | ||
]; | ||
} | ||
|
||
public function getMethod(): string | ||
{ | ||
return 'DELETE'; | ||
} | ||
} |
Oops, something went wrong.