Skip to content

Commit cb969a7

Browse files
sush2218Sushvanth Akkireddy
andauthored
[Question Answering] Language 2022-07-01-preview (#19865)
* [Question Answering] Language 2022-07-01-preview * Add paths without /authoring * Typo in file name * Add AAD * Adding /authoring at top. Co-authored-by: Sushvanth Akkireddy <[email protected]>
1 parent 323a8c3 commit cb969a7

8 files changed

+36
-13
lines changed

dev/cognitiveservices/data-plane/Language/examples/questionanswering/authoring/SuccessfulProjectExportJobStatus.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"jobId": "635c2741-15c4-4c2c-9f78-bfd30b6b2a4a",
1818
"lastUpdatedDateTime": "2021-05-01T17:21:14Z",
1919
"status": "succeeded",
20-
"resultUrl": "https://<resource-endpoint>/language/proj1/export/job1/result"
20+
"resultUrl": "https://<resource-endpoint>/language/authoring/query-knowledgebases/projects/proj1/export/jobs/job1/result?api-version=2022-07-01-preview"
2121
}
2222
}
2323
}

dev/cognitiveservices/data-plane/Language/examples/questionanswering/authoring/SuccessfulProjectSubmitDeployJob.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"202": {
1212
"description": "A successful call results with an Operation-Location header used to check the status of the analysis job.",
1313
"headers": {
14-
"Operation-Location": "job1"
14+
"Operation-Location": "https://<resource-endpoint>/language/authoring/query-knowledgebases/projects/proj1/deployments/production/jobs/job1?api-version=2022-07-01-preview"
1515
}
1616
}
1717
}

dev/cognitiveservices/data-plane/Language/examples/questionanswering/authoring/SuccessfulProjectSubmitExportJob.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"202": {
1717
"description": "A successful call results with an Operation-Location header used to check the status of the analysis job.",
1818
"headers": {
19-
"Operation-Location": "job1"
19+
"Operation-Location": "https://<resource-endpoint>/language/authoring/query-knowledgebases/projects/proj1/export/jobs/job1?api-version=2022-07-01-preview"
2020
}
2121
}
2222
}

dev/cognitiveservices/data-plane/Language/examples/questionanswering/authoring/SuccessfulProjectSubmitImportJob.json

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,8 @@
4242
"prompts": [
4343
{
4444
"displayOrder": 1,
45-
"qnaId": 11,
45+
"qnaId": 2,
4646
"displayText": "prompt 1.1"
47-
},
48-
{
49-
"displayOrder": 2,
50-
"qnaId": 21,
51-
"displayText": "prompt 1.2"
5247
}
5348
]
5449
}
@@ -71,7 +66,7 @@
7166
"202": {
7267
"description": "A successful call results with an Operation-Location header used to check the status of the analysis job.",
7368
"headers": {
74-
"Operation-Location": "job1"
69+
"Operation-Location": "https://<resource-endpoint>/language/authoring/query-knowledgebases/projects/proj1/import/jobs/job1?api-version=2022-07-01-preview"
7570
}
7671
}
7772
}

dev/cognitiveservices/data-plane/Language/examples/questionanswering/authoring/SuccessfulUpdateQnas.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
"202": {
6868
"description": "A successful call results with an Operation-Location header used to check the status of the analysis job.",
6969
"headers": {
70-
"Operation-Location": "job1"
70+
"Operation-Location": "https://<resource-endpoint>/language/authoring/query-knowledgebases/projects/proj1/qnas/jobs/job1?api-version=2022-07-01-preview"
7171
}
7272
}
7373
}

dev/cognitiveservices/data-plane/Language/examples/questionanswering/authoring/SuccessfulUpdateSources.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"202": {
3838
"description": "A successful call results with an Operation-Location header used to check the status of the analysis job.",
3939
"headers": {
40-
"Operation-Location": "job1"
40+
"Operation-Location": "https://<resource-endpoint>/language/authoring/query-knowledgebases/projects/proj1/sources/jobs/job1?api-version=2022-07-01-preview"
4141
}
4242
}
4343
}

dev/cognitiveservices/data-plane/Language/questionanswering-authoring.json

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,33 @@
66
"version": "2022-07-01-preview"
77
},
88
"securityDefinitions": {
9+
"AADToken": {
10+
"type": "oauth2",
11+
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
12+
"flow": "implicit",
13+
"description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure role-based access](https://docs.microsoft.com/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure role-based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built-in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios, we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Notes\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* \nThe `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* \nThe Azure role-based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, PowerShell, CLI, Azure SDKs, or REST APIs.\n* \nUsage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently, Azure Active Directory [v1.0 or v2.0](https://docs.microsoft.com/azure/active-directory/develop/azure-ad-endpoint-comparison) supports Work, School, and Guests but does not support Personal accounts.",
14+
"scopes": {
15+
"https://cognitiveservices.azure.com/.default": "https://cognitiveservices.azure.com/.default"
16+
}
17+
},
918
"apim_key": {
1019
"type": "apiKey",
1120
"name": "Ocp-Apim-Subscription-Key",
1221
"in": "header"
1322
}
1423
},
1524
"security": [
25+
{
26+
"AADToken": [
27+
"https://cognitiveservices.azure.com/.default"
28+
]
29+
},
1630
{
1731
"apim_key": []
1832
}
1933
],
2034
"x-ms-parameterized-host": {
21-
"hostTemplate": "{Endpoint}/language",
35+
"hostTemplate": "{Endpoint}/language/authoring",
2236
"useSchemePrefix": false,
2337
"parameters": [
2438
{

dev/cognitiveservices/data-plane/Language/questionanswering.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,27 @@
66
"version": "2022-07-01-preview"
77
},
88
"securityDefinitions": {
9+
"AADToken": {
10+
"type": "oauth2",
11+
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
12+
"flow": "implicit",
13+
"description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure role-based access](https://docs.microsoft.com/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure role-based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built-in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios, we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Notes\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* \nThe `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* \nThe Azure role-based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, PowerShell, CLI, Azure SDKs, or REST APIs.\n* \nUsage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently, Azure Active Directory [v1.0 or v2.0](https://docs.microsoft.com/azure/active-directory/develop/azure-ad-endpoint-comparison) supports Work, School, and Guests but does not support Personal accounts.",
14+
"scopes": {
15+
"https://cognitiveservices.azure.com/.default": "https://cognitiveservices.azure.com/.default"
16+
}
17+
},
918
"apim_key": {
1019
"type": "apiKey",
1120
"name": "Ocp-Apim-Subscription-Key",
1221
"in": "header"
1322
}
1423
},
1524
"security": [
25+
{
26+
"AADToken": [
27+
"https://cognitiveservices.azure.com/.default"
28+
]
29+
},
1630
{
1731
"apim_key": []
1832
}

0 commit comments

Comments
 (0)