Skip to content

Commit

Permalink
Add ResetSkills To SDK (Azure#15902)
Browse files Browse the repository at this point in the history
* Add ResetSkills To SDK

* Add custom words

* Address comments and fix schema

* Address comments and fix ModelValidation check

* make url aka.ms

* fix url
  • Loading branch information
shuyangmsft authored and LeiWang3 committed Mar 31, 2022
1 parent e5b3f8c commit f63e93d
Show file tree
Hide file tree
Showing 3 changed files with 77 additions and 1 deletion.
1 change: 1 addition & 0 deletions custom-words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1651,6 +1651,7 @@ reservationorders
resetapikey
resetconnection
resetdocs
resetskills
resetvpnclientsharedkey
Resolvability
resourcegraph
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"parameters": {
"endpoint": "https://myservice.search.windows.net",
"skillsetName": "mySkillset",
"api-version": "2021-04-30-preview",
"skillNames": [
"skillName1",
"skillName2"
]
},
"responses": {
"204": {}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@
},
"description": "Resets specific documents in the datasource to be selectively re-ingested by the indexer.",
"externalDocs": {
"url": "N/A"
"url": "https://aka.ms/reset-documents"
},
"parameters": [
{
Expand Down Expand Up @@ -1033,6 +1033,67 @@
}
}
},
"/skillsets('{skillsetName}')/search.resetskills": {
"post": {
"tags": [
"Skillsets"
],
"operationId": "Skillsets_ResetSkills",
"x-ms-examples": {
"SearchServiceResetSkills": {
"$ref": "./examples/SearchServiceResetSkills.json"
}
},
"description": "Reset an existing skillset in a search service.",
"externalDocs": {
"url": "https://aka.ms/reset-skills"
},
"parameters": [
{
"name": "skillsetName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the skillset to reset."
},
{
"name": "skillNames",
"in": "body",
"required": true,
"schema": {
"properties": {
"skillNames": {
"type": "array",
"items": {
"type": "string"
},
"description": "the names of skills to be reset."
}
}
},
"description": "The names of skills to reset."
},
{
"$ref": "#/parameters/ClientRequestIdParameter"
},
{
"$ref": "#/parameters/ApiVersionParameter"
}
],
"x-ms-request-id": "request-id",
"responses": {
"204": {
"description": "The skills in the skillset are successfully reset."
},
"default": {
"description": "Error response.",
"schema": {
"$ref": "#/definitions/SearchError"
}
}
}
}
},
"/synonymmaps('{synonymMapName}')": {
"put": {
"tags": [
Expand Down

0 comments on commit f63e93d

Please sign in to comment.