Skip to content

Commit

Permalink
Merge branch 'main' into mharder/tsp-client-94
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeharder authored Aug 1, 2024
2 parents 97f8075 + bafeeaa commit fb3a59b
Show file tree
Hide file tree
Showing 10 changed files with 4,714 additions and 4 deletions.
2,235 changes: 2,235 additions & 0 deletions dev/cognitiveservices/data-plane/Language/analyzedocuments.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"parameters": {
"Ocp-Apim-Subscription-Key": "{API key}",
"api-version": "2023-11-15-preview",
"Endpoint": "{Endpoint}",
"jobId": "c0f2a446-05d9-48fc-ba8f-3ef4af8d0b18"
},
"responses": {
"202": {
"headers": {
"Operation-Location": "{Endpoint}/language/analyze-documents/jobs/{jobId}?api-version=2023-11-15-preview"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
"parameters": {
"Ocp-Apim-Subscription-Key": "{API key}",
"api-version": "2023-11-15-preview",
"Endpoint": "{Endpoint}",
"jobId": "c0f2a446-05d9-48fc-ba8f-3ef4af8d0b18"
},
"responses": {
"200": {
"headers": {},
"body": {
"createdDateTime": "2020-10-01T15:00:45Z",
"displayName": "Redact PII Example",
"expirationDateTime": "2020-10-03T15:01:03Z",
"jobId": "c0f2a446-05d9-48fc-ba8f-3ef4af8d0b18",
"lastUpdatedDateTime": "2020-10-01T15:01:03Z",
"status": "succeeded",
"tasks": {
"completed": 1,
"failed": 0,
"inProgress": 0,
"total": 1,
"items": [
{
"kind": "PiiEntityRecognitionLROResults",
"taskName": "PII Redaction Task 1",
"lastUpdateDateTime": "2020-10-01T15:01:03Z",
"status": "succeeded",
"results": {
"documents": [
{
"source": {
"location": "https://myblob.blob.core.windows.net/Container/document.txt",
"kind": "AzureBlob"
},
"target": [
{
"location": "https://myblob.blob.core.windows.net/Container/0af5def0-5855-41b2-9e75-0a559fb6f545_PiiEntityRecognition_1_document.txt",
"kind": "AzureBlob"
},
{
"location": "https://myblob.blob.core.windows.net/Container/0af5def0-5855-41b2-9e75-0a559fb6f545_PiiEntityRecognition_1.json",
"kind": "AzureBlob"
}
],
"id": "1",
"warnings": []
}
],
"errors": [],
"modelVersion": "2023-09-01"
}
}
]
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"parameters": {
"Ocp-Apim-Subscription-Key": "{API key}",
"api-version": "2023-11-15-preview",
"Endpoint": "{Endpoint}",
"jobId": "{Job ID}",
"body": {
"displayName": "Redact PII Example",
"analysisInput": {
"documents": [
{
"id": "1",
"language": "en",
"source": {
"location": "https://myblob.blob.core.windows.net/Container/document.txt",
"kind": "AzureBlob",
"managedIdentityClientId": "edaa610c-d7e8-4ba2-823a-97d871d661fb"
},
"target": {
"location": "https://myblob.blob.core.windows.net/Container",
"kind": "AzureBlob"
}
}
]
},
"tasks": [
{
"kind": "PiiEntityRecognition",
"taskName": "Redact PII Task 1",
"parameters": {
"redactionCharacter": "-"
}
}
]
}
},
"responses": {
"202": {
"headers": {
"Operation-Location": "{endpoint}/language/analyze-documents/jobs/{jobId}?api-version=2023-11-15-preview"
}
}
}
}
9 changes: 5 additions & 4 deletions dev/cognitiveservices/data-plane/Language/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ This is the AutoRest configuration file the Cognitive Services Language SDK.
## Releases

The current release of Language is 2023-04-01.
The current release of Language is 2023-11-11-preview.

<!-- The current stable release of Language is 2023-04-01. -->
<!-- The current stable release of Language is 2023-11-11-preview. -->

```yaml
tag: release_2023-04-01
tag: release_2023-11-15-preview
add-credentials: true
clear-output-folder: true
openapi-type: data-plane
Expand All @@ -22,8 +22,9 @@ directive:
### Release
``` yaml $(tag) == 'release_2023-04-01'
``` yaml $(tag) == 'release_2023-11-15-preview'
input-file:
- analyzedocuments.json
- analyzetext.json
- analyzetext-authoring.json
- analyzeconversations.json
Expand Down
Loading

0 comments on commit fb3a59b

Please sign in to comment.