Skip to content

Commit

Permalink
Merge branch 'hachiang/face-typespec' of github.com:Han-msft/azure-re…
Browse files Browse the repository at this point in the history
…st-api-specs into hachiang/face-typespec
  • Loading branch information
Han Chiang committed Mar 4, 2024
2 parents 4623e6e + ae232e8 commit ee0f986
Show file tree
Hide file tree
Showing 839 changed files with 122,122 additions and 319 deletions.
18 changes: 16 additions & 2 deletions .github/comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<li>
If this PR is targeting `main` branch, then it cannot be merged, as `azure-rest-api-specs-pr` repo `main` branch
is mirrored from `azure-rest-api-specs` `main`` branch. <br/>
If you want to publish the PR to the public repo (`Azure/azure-rest-api-specs`) `main` branch,
If you want to publish the PR to the public repo (`Azure/azure-rest-api-specs`) `main` branch,
please use [OpenAPIHub Publish PR](${openapiHub}/tools/publishpullrequest?pr=${owner}/${repo}/${PRNumber}&to=${to}).
</li><li>
For further guidance see [Spec Repos](https://eng.ms/docs/products/azure-developer-experience/design/api-specs-pr/api-repos).
Expand Down Expand Up @@ -82,7 +82,21 @@
- rule:
type: label
label: Approved-BreakingChange
booleanFilterExpression: "!(ARMSignedOff||ARMChangesRequested||Approved-OkToMerge||WaitForARMRevisit)&&ARMReview"
booleanFilterExpression: "!(ARMSignedOff||WaitForARMFeedback||ARMChangesRequested||Approved-OkToMerge||WaitForARMRevisit)&&ARMReview"
onLabeledAddLabels:
- WaitForARMFeedback

- rule:
type: label
label: BreakingChange-Approved-*
booleanFilterExpression: "!(ARMSignedOff||WaitForARMFeedback||ARMChangesRequested||Approved-OkToMerge||WaitForARMRevisit)&&ARMReview"
onLabeledAddLabels:
- WaitForARMFeedback

- rule:
type: label
label: Versioning-Approved-*
booleanFilterExpression: "!(ARMSignedOff||WaitForARMFeedback||ARMChangesRequested||Approved-OkToMerge||WaitForARMRevisit)&&ARMReview"
onLabeledAddLabels:
- WaitForARMFeedback

Expand Down
53 changes: 52 additions & 1 deletion cSpell.json
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,18 @@
"words": [
"freemium"
]
},
{
"filename": "**/specification/sql/resource-manager/Microsoft.Sql/preview/2023-02-01-preview/ManagedInstances.json",
"words": [
"freemium"
]
},
{
"filename": "**/specification/sql/resource-manager/Microsoft.Sql/preview/2023-05-01-preview/ManagedInstances.json",
"words": [
"freemium"
]
},
{
"filename": "**/specification/sql/resource-manager/Microsoft.Sql/preview/2023-08-01-preview/ManagedInstances.json",
Expand Down Expand Up @@ -1037,7 +1049,23 @@
{
"filename": "**/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/**/*.json",
"words": [
"Criterias"
"Criterias",
"nwrfc",
"Abap",
"AGRTCODES",
"AGRUSERS",
"AGRPROF",
"ADCP",
"USGRPUSER",
"USERADDR",
"DEVACCESS",
"AGRDEFINE",
"PAHI",
"AGRAGRS",
"USRSTAMP",
"AGRFLAGS",
"SNCSYSACL",
"USRACL"
]
},
{
Expand Down Expand Up @@ -1114,6 +1142,29 @@
"words": [
"headwear"
]
},
{
"filename": "**/specification/awsconnector/resource-manager/Microsoft.AwsConnector/**/*.json",
"words": [
"ACUs",
"AWSRDS",
"DCERPC",
"Dsse",
"dsse",
"dualstack",
"ENIs",
"Fargate",
"multimaster",
"nodegroup",
"Nodegroups",
"nondefault",
"ONEZONE",
"parallelquery",
"preconfigures",
"tierings",
"VPC's",
"wihtin"
]
}
],
"enableFiletypes": [
Expand Down
3 changes: 1 addition & 2 deletions specification/ai/DocumentIntelligence/client.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ using Azure.ClientGenerator.Core;
using DocumentIntelligence;

@TypeSpec.Versioning.useDependency(Azure.Core.Versions.v1_0_Preview_2)
//@TypeSpec.Versioning.useDependency(DocumentIntelligence.Versions.v2023_07_31)
@TypeSpec.Versioning.useDependency(
DocumentIntelligence.Versions.v2023_10_31_preview
DocumentIntelligence.Versions.v2024_02_29_preview
)
namespace ClientCustomizations;

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"operationId": "DocumentModels_AnalyzeDocument",
"title": "Analyze Document from Base64",
"parameters": {
"endpoint": "https://myendpoint.cognitiveservices.azure.com",
"api-version": "2024-02-29-preview",
"modelId": "prebuilt-layout",
"pages": "1-2,4",
"locale": "en-US",
"stringIndexType": "textElements",
"analyzeRequest": {
"base64Source": "e2Jhc2U2NEVuY29kZWRQZGZ9"
}
},
"responses": {
"202": {
"headers": {
"Operation-Location": "https://myendpoint.cognitiveservices.azure.com/documentintelligence/documentModels/prebuilt-layout/analyzeResults/3b31320d-8bab-4f88-b19c-2322a7f11034?api-version=2024-02-29-preview"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"operationId": "DocumentModels_AnalyzeDocumentFromStream",
"title": "Analyze Document from Url",
"parameters": {
"endpoint": "https://myendpoint.cognitiveservices.azure.com",
"api-version": "2024-02-29-preview",
"modelId": "customModel",
"pages": "1-2,4",
"locale": "en-US",
"stringIndexType": "textElements",
"input": "{binaryFile}"
},
"responses": {
"202": {
"headers": {
"Operation-Location": "https://myendpoint.cognitiveservices.azure.com/documentintelligence/documentModels/customModel/analyzeResults/3b31320d-8bab-4f88-b19c-2322a7f11034?api-version=2024-02-29-preview"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"operationId": "DocumentModels_AnalyzeDocument",
"title": "Analyze Document from Url",
"parameters": {
"endpoint": "https://myendpoint.cognitiveservices.azure.com",
"api-version": "2024-02-29-preview",
"modelId": "customModel",
"pages": "1-2,4",
"locale": "en-US",
"stringIndexType": "textElements",
"analyzeRequest": {
"urlSource": "http://host.com/doc.pdf"
}
},
"responses": {
"202": {
"headers": {
"Operation-Location": "https://myendpoint.cognitiveservices.azure.com/documentintelligence/documentModels/customModel/analyzeResults/3b31320d-8bab-4f88-b19c-2322a7f11034?api-version=2024-02-29-preview"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"operationId": "DocumentModels_AuthorizeModelCopy",
"title": "Authorize Copy of Document Model",
"parameters": {
"endpoint": "https://myendpoint.cognitiveservices.azure.com",
"api-version": "2024-02-29-preview",
"authorizeCopyRequest": {
"modelId": "targetModel",
"description": "Target model description"
}
},
"responses": {
"200": {
"body": {
"targetResourceId": "/subscriptions/targetSub/resourceGroups/targetRG/providers/Microsoft.CognitiveServices/accounts/targetService",
"targetResourceRegion": "targetResourceRegion",
"targetModelId": "targetModel",
"targetModelLocation": "https://targetEndpoint.cognitiveservices.azure.com/documentintelligence/documentModels/targetModel",
"accessToken": "accessToken",
"expirationDateTime": "2021-09-23T09:12:54.552Z"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"operationId": "DocumentClassifiers_BuildClassifier",
"title": "Build Document Classifier",
"parameters": {
"endpoint": "https://myendpoint.cognitiveservices.azure.com",
"api-version": "2024-02-29-preview",
"buildRequest": {
"classifierId": "myClassifier",
"description": "Classifier description",
"docTypes": {
"formA": {
"azureBlobSource": {
"containerUrl": "https://myStorageAccount.blob.core.windows.net/myContainer?mySasToken",
"prefix": "formADocs/"
}
},
"formB": {
"azureBlobFileListSource": {
"containerUrl": "https://myStorageAccount.blob.core.windows.net/myContainer?mySasToken",
"fileList": "formB.jsonl"
}
}
}
}
},
"responses": {
"202": {
"headers": {
"Operation-Location": "https://myendpoint.cognitiveservices.azure.com/documentintelligence/operations/b704bb00-d130-4f3f-a1d8-ca96de3eabb4?api-version=2024-02-29-preview"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"operationId": "DocumentModels_BuildModel",
"title": "Build Document Model",
"parameters": {
"endpoint": "https://myendpoint.cognitiveservices.azure.com",
"api-version": "2024-02-29-preview",
"buildRequest": {
"modelId": "myCustomModel",
"description": "Custom model description",
"buildMode": "template",
"azureBlobSource": {
"containerUrl": "https://myStorageAccount.blob.core.windows.net/myContainer?mySasToken",
"prefix": "trainingDocs/"
},
"tags": {
"createdBy": "myUserId"
}
}
},
"responses": {
"202": {
"headers": {
"Operation-Location": "https://myendpoint.cognitiveservices.azure.com/documentintelligence/operations/b704bb00-d130-4f3f-a1d8-ca96de3eabb4?api-version=2024-02-29-preview"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"operationId": "DocumentClassifiers_ClassifyDocumentFromStream",
"title": "Classify Document from Url",
"parameters": {
"endpoint": "https://myendpoint.cognitiveservices.azure.com",
"api-version": "2024-02-29-preview",
"classifierId": "classifierId",
"stringIndexType": "textElements",
"input": "{binaryFile}"
},
"responses": {
"202": {
"headers": {
"Operation-Location": "https://myendpoint.cognitiveservices.azure.com/documentintelligence/documentClassifiers/customClassifier/analyzeResults/3b31320d-8bab-4f88-b19c-2322a7f11034?api-version=2024-02-29-preview"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"operationId": "DocumentClassifiers_ClassifyDocument",
"title": "Classify Document from Url",
"parameters": {
"endpoint": "https://myendpoint.cognitiveservices.azure.com",
"api-version": "2024-02-29-preview",
"classifierId": "classifierId",
"stringIndexType": "textElements",
"classifyRequest": {
"urlSource": "http://host.com/doc.pdf"
}
},
"responses": {
"202": {
"headers": {
"Operation-Location": "https://myendpoint.cognitiveservices.azure.com/documentintelligence/documentClassifiers/customClassifier/analyzeResults/3b31320d-8bab-4f88-b19c-2322a7f11034?api-version=2024-02-29-preview"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"operationId": "DocumentModels_ComposeModel",
"title": "Compose Document Model",
"parameters": {
"endpoint": "https://myendpoint.cognitiveservices.azure.com",
"api-version": "2024-02-29-preview",
"composeRequest": {
"modelId": "composedModel",
"description": "Composed model description",
"componentModels": [
{
"modelId": "model1"
},
{
"modelId": "model2"
}
]
}
},
"responses": {
"202": {
"headers": {
"Operation-Location": "https://myendpoint.cognitiveservices.azure.com/documentintelligence/operations/b704bb00-d130-4f3f-a1d8-ca96de3eabb4?api-version=2024-02-29-preview"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"operationId": "DocumentModels_CopyModelTo",
"title": "Copy Document Model To",
"parameters": {
"endpoint": "https://myendpoint.cognitiveservices.azure.com",
"api-version": "2024-02-29-preview",
"modelId": "sourceModel",
"copyToRequest": {
"targetResourceId": "/subscriptions/targetSub/resourceGroups/targetRG/providers/Microsoft.CognitiveServices/accounts/targetService",
"targetResourceRegion": "targetResourceRegion",
"targetModelId": "targetModel",
"targetModelLocation": "https://targetEndpoint.cognitiveservices.azure.com/documentintelligence/documentModels/targetModel",
"accessToken": "accessToken",
"expirationDateTime": "2021-09-23T09:12:54.552Z"
}
},
"responses": {
"202": {
"headers": {
"Operation-Location": "https://myendpoint.cognitiveservices.azure.com/documentintelligence/operations/b704bb00-d130-4f3f-a1d8-ca96de3eabb4?api-version=2024-02-29-preview"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"operationId": "DocumentClassifiers_DeleteClassifier",
"title": "Delete Document Classifier",
"parameters": {
"endpoint": "https://myendpoint.cognitiveservices.azure.com",
"api-version": "2024-02-29-preview",
"classifierId": "myClassifier"
},
"responses": {
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"operationId": "DocumentModels_DeleteModel",
"title": "Delete Document Model",
"parameters": {
"endpoint": "https://myendpoint.cognitiveservices.azure.com",
"api-version": "2024-02-29-preview",
"modelId": "myCustomModel"
},
"responses": {
"204": {}
}
}
Loading

0 comments on commit ee0f986

Please sign in to comment.