diff --git a/CHANGELOG.md b/CHANGELOG.md index bb39f8eaf..d9f1efeb5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -80,6 +80,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) - Added detailed test coverage report ([#513](https://github.com/opensearch-project/opensearch-api-specification/pull/513)) - Added 404 responses to `/_alias/{name}` and `/{index}/_alias/{name}` ([#519](https://github.com/opensearch-project/opensearch-api-specification/pull/519)) - Added `asynchronous_search` ([#525](https://github.com/opensearch-project/opensearch-api-specification/pull/525)) +- Added `DELETE /_plugins/_ml/tasks/{task_id}` ([#530](https://github.com/opensearch-project/opensearch-api-specification/pull/530)) ### Changed @@ -93,6 +94,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) - Lock testing for next release of OpenSearch to a specific SHA ([#431](https://github.com/opensearch-project/opensearch-api-specification/pull/431)) - Replace nullable with null type ([#436](https://github.com/opensearch-project/opensearch-api-specification/pull/436)) - Split test suite ([#472])(https://github.com/opensearch-project/opensearch-api-specification/pull/472) +- Changed `WriteResponseBase`'s `_primary_term`, `_seq_no` & `_version` to have `int64` format ([#530](https://github.com/opensearch-project/opensearch-api-specification/pull/530)) ### Deprecated diff --git a/spec/namespaces/ml.yaml b/spec/namespaces/ml.yaml index 00054b4cb..17ee03088 100644 --- a/spec/namespaces/ml.yaml +++ b/spec/namespaces/ml.yaml @@ -83,6 +83,15 @@ paths: responses: '200': $ref: '#/components/responses/ml.get_task@200' + delete: + operationId: ml.delete_task.0 + x-operation-group: ml.delete_task + description: Deletes a task. + parameters: + - $ref: '#/components/parameters/ml.delete_task::path.task_id' + responses: + '200': + $ref: '#/components/responses/ml.delete_task@200' /_plugins/_ml/models/_search: get: operationId: ml.search_models.0 @@ -206,6 +215,11 @@ components: application/json: schema: $ref: '../schemas/_common.yaml#/components/schemas/WriteResponseBase' + ml.delete_task@200: + content: + application/json: + schema: + $ref: '../schemas/_common.yaml#/components/schemas/WriteResponseBase' ml.get_task@200: content: application/json: @@ -247,6 +261,12 @@ components: required: true schema: type: string + ml.delete_task::path.task_id: + name: task_id + in: path + required: true + schema: + type: string ml.get_task::path.task_id: name: task_id in: path diff --git a/spec/schemas/_common.yaml b/spec/schemas/_common.yaml index f89bdb9bd..903c97c04 100644 --- a/spec/schemas/_common.yaml +++ b/spec/schemas/_common.yaml @@ -174,8 +174,10 @@ components: type: string SequenceNumber: type: number + format: int64 VersionNumber: type: number + format: int64 SortResults: type: array items: @@ -1318,6 +1320,7 @@ components: $ref: '#/components/schemas/IndexName' _primary_term: type: number + format: int64 result: $ref: '#/components/schemas/Result' _seq_no: diff --git a/spec/schemas/ml._common.yaml b/spec/schemas/ml._common.yaml index 400a92fd3..219002dbe 100644 --- a/spec/schemas/ml._common.yaml +++ b/spec/schemas/ml._common.yaml @@ -146,12 +146,13 @@ components: UndeployModelResponse: type: object additionalProperties: - $ref: '#/components/schemas/UndeployModelResponseModels' - UndeployModelResponseModels: + title: nodes + $ref: '#/components/schemas/UndeployModelNode' + UndeployModelNode: type: object properties: stats: - $ref: '#/components/schemas/UndeployModelResponseStats' - UndeployModelResponseStats: + $ref: '#/components/schemas/UndeployModelNodeStats' + UndeployModelNodeStats: type: object additionalProperties: true