Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Azure AI Vision - Image Analysis TypeSpec files #26146

Merged
merged 119 commits into from
Dec 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
119 commits
Select commit Hold shift + click to select a range
019f7b6
First version
dargilco Oct 9, 2023
dcb3168
Add x-ms-examples to Swagger file
dargilco Oct 11, 2023
af736b5
Rename OpenAPI file, add readme.md
dargilco Oct 11, 2023
af25b12
Add generated.json
dargilco Oct 11, 2023
c6a772b
Another fix to overcome tool bug?
dargilco Oct 11, 2023
34a4094
Referene genereted.json in readme.md (will be removed later on)
dargilco Oct 11, 2023
080a9e4
Remove 'Swagger to SDK' section in readme.md'
dargilco Oct 11, 2023
7dd6bd1
rename generated.json and don't reference it in readme.md
dargilco Oct 11, 2023
06e32d6
Fixes after running `npx prettier` - new line at end of files
dargilco Oct 11, 2023
e8ba6dc
Attempt to fix error in SemanticValidation --> AzureApiValication
dargilco Oct 11, 2023
65a5547
Attempt to fix another SemanticValidation -> AzureApiValidation error
dargilco Oct 11, 2023
923b5f7
Return definition of visualFeatures, but without description field
dargilco Oct 12, 2023
f46baa0
No luck, revert last commit. I still get an error
dargilco Oct 12, 2023
afe82ae
Remove two ?api-version={apiVersion}
dargilco Oct 13, 2023
5d82d9a
Copy examples from data-plane to Vision.ImageAnalysis
dargilco Oct 13, 2023
073b05f
Fix error by adding linter line to tspconfig.yaml
dargilco Oct 13, 2023
df3e7f8
Fix error by adding doc element to shared query in models.tsp
dargilco Oct 13, 2023
3496d33
remove examples folder due to Java emitter bug
dargilco Oct 20, 2023
0e25acc
Remove manual fixing of auto-gen swagger
dargilco Oct 20, 2023
7dd745c
Check in generated.json. Remove duplicate examples
dargilco Oct 20, 2023
9d9a9c6
Fix TypeSpec Validation errors
dargilco Oct 21, 2023
658c093
Add examples folder in the TypeSpec folder. Not real one, for now, ju…
dargilco Oct 21, 2023
7616078
Fix another TypeSpec Validation error
dargilco Oct 21, 2023
5c2b003
More TypeSpec Validation errors
dargilco Oct 21, 2023
acf8090
More TypeSpec Validation fixes
dargilco Oct 21, 2023
4a2e004
More
dargilco Oct 21, 2023
b23c4cc
Recreate generated.json following Swagger update
dargilco Oct 23, 2023
1d902cd
overcome bug in OAV example generation tool
dargilco Oct 23, 2023
7ba3520
Add client.tsp to enable operator overloads in C#
rhurey Oct 25, 2023
0f87359
Add new line at end of file
rhurey Oct 26, 2023
91ea48e
change SDK output folder to sdk/vision instead of sdk/cognitiveservices
dargilco Oct 26, 2023
86d6eab
Generate tests and metadata
rhurey Oct 26, 2023
4c9b5cc
set `partial-update: true` for Java
dargilco Oct 27, 2023
888559b
Move TypeSpec files to \vision\image-analysis
dargilco Oct 27, 2023
47a225e
change folder from image-analysis to ImageAnalysis
dargilco Oct 27, 2023
aed5ddf
Forgot to fix folder name in tspconfig.yaml
dargilco Oct 27, 2023
b4f3dde
Fix casing in segmentationMode
dargilco Oct 30, 2023
1687144
Remove @action and @actionSeparator, per ask from Johan Stenberg
dargilco Nov 1, 2023
ceec878
Update generated autorest with typespec hotfixes
mikeharder Nov 2, 2023
d902a03
Add Python SDK version
dargilco Nov 2, 2023
fc5e831
Remove package-version from tspconfig.yml. Use alias instead of model…
dargilco Nov 2, 2023
76b55a2
tsp format
mikeharder Nov 2, 2023
de41fec
Update generated autorest
mikeharder Nov 2, 2023
1a8450e
Add missing examples
mikeharder Nov 3, 2023
027059d
Fix imageContent in example
mikeharder Nov 3, 2023
ea00cb2
npx prettier
mikeharder Nov 3, 2023
d7ddcb8
Update generated swagger
mikeharder Nov 3, 2023
90dd5bf
Fix examples
mikeharder Nov 3, 2023
dc16544
Update generated swagger
mikeharder Nov 3, 2023
f0c3241
npx prettier
mikeharder Nov 3, 2023
6800128
Workaround bug in oav generating examples
mikeharder Nov 3, 2023
10e9d1b
Remove redundant package-mode field
dargilco Nov 3, 2023
bc6b0c3
Update name of method argument from `mode` to `segmentationMode`, to …
dargilco Nov 3, 2023
1d008e1
Update generated autorest
mikeharder Nov 3, 2023
93f4d76
Add min/max values. Update service name
dargilco Nov 3, 2023
5617081
Fix confidence values in examples to be in the range [0,1]
dargilco Nov 4, 2023
efa82b1
Change to RLC
rhurey Nov 3, 2023
e9239f8
Don't gen metadata and tests every time
rhurey Nov 4, 2023
0e9ceac
Generate metadata and dummy tests
rhurey Nov 4, 2023
d63498f
Post first SDK review: Update some property names. Add model-version …
dargilco Nov 8, 2023
b91e97e
Merge branch 'Main' into dargilco/image-analysis-typespec
dargilco Nov 8, 2023
b4faeab
New auto-generated swagger
dargilco Nov 8, 2023
873b631
Updated swagger examples
dargilco Nov 8, 2023
cdce35c
Add min length to string query params
dargilco Nov 8, 2023
6c11a51
Update examples
dargilco Nov 8, 2023
3ae01b3
Fix swagger validation failure
dargilco Nov 8, 2023
1eba9e2
Updates after running 'npx prettier --write **/*.json`
dargilco Nov 8, 2023
82e3c5b
Merge remote-tracking branch 'origin/main' into dargilco/image-analys…
rhurey Nov 8, 2023
005b9ec
Use @@access instead of @@internal in client.tsp
dargilco Nov 8, 2023
95fb32a
reg-ex for model-version
dargilco Nov 8, 2023
37d24eb
Fix examples
dargilco Nov 8, 2023
a472e52
Forgot to copy examples...
dargilco Nov 8, 2023
f018cbc
More example fixes
dargilco Nov 8, 2023
e588e5a
More fixes to examples
dargilco Nov 8, 2023
ece5e93
Merge remote-tracking branch 'origin/main' into dargilco/image-analys…
rhurey Nov 8, 2023
7883cb2
Remove custom-model & segmentation
dargilco Nov 8, 2023
394ffe2
Update with example
dargilco Nov 8, 2023
bbdf7db
update
dargilco Nov 8, 2023
922ad0d
Another attempt
dargilco Nov 8, 2023
27a91ef
Merge branch 'dargilco/image-analysis-typespec' of https://github.com…
rhurey Nov 9, 2023
c22ea4c
Merge remote-tracking branch 'origin/main' into dargilco/image-analys…
rhurey Nov 9, 2023
5ec22c3
Move restoring internal model classes to the TSP
rhurey Nov 9, 2023
cbfe975
Merge remote-tracking branch 'origin/main' into dargilco/image-analys…
dargilco Nov 9, 2023
8d3d41b
Replace analyzeFromStream with analyzeFromBuffer
dargilco Nov 9, 2023
fdc9a2e
Add examples
dargilco Nov 9, 2023
4f7745a
Move to an internal visual features enum to enable a flags enum in C#
rhurey Nov 15, 2023
731e8d9
Add/update ref-doc comments
dargilco Nov 16, 2023
911663a
Ref-doc fix
dargilco Nov 16, 2023
c0501bd
Merge remote-tracking branch 'origin/main' into dargilco/image-analys…
dargilco Nov 16, 2023
acd3ab1
Merge remote-tracking branch 'origin/main' into dargilco/image-analys…
dargilco Nov 21, 2023
c6ba87c
Merge remote-tracking branch 'origin/main' into dargilco/image-analys…
dargilco Nov 27, 2023
d52d60f
Move location of TypeSpec files under ai\ImageAnalysis
dargilco Nov 27, 2023
1ea4f16
Merge remote-tracking branch 'origin/main' into dargilco/image-analys…
dargilco Nov 29, 2023
f5ad7ee
TypeSpec updates to support new OCR result
dargilco Nov 29, 2023
5fdba1a
Update service API version
dargilco Nov 29, 2023
ac4f61b
Add generated.json
dargilco Nov 29, 2023
443d08d
Add swagger examples
dargilco Nov 29, 2023
350ec77
npx prettier --write **/*.json
dargilco Nov 29, 2023
e95b8de
Make Java models public again. Replace pages with blocks
dargilco Nov 30, 2023
1eb0250
Update example
dargilco Nov 30, 2023
ff7d300
After running npx prettier --write **/*.json
dargilco Nov 30, 2023
4773ab2
Sort @@access by a b c
dargilco Nov 30, 2023
b5b9528
Merge remote-tracking branch 'origin/main' into dargilco/image-analys…
dargilco Nov 30, 2023
a642dec
TypeSpec validation fixes
dargilco Nov 30, 2023
6770695
Remove metadata section from TypeScript section to let magic happen
rhurey Dec 5, 2023
7472f5b
Merge remote-tracking branch 'origin/main' into dargilco/image-analys…
rhurey Dec 5, 2023
f247860
Merge remote-tracking branch 'origin/main' into dargilco/image-analys…
dargilco Dec 12, 2023
9a2a827
Update to GA endpoint
dargilco Dec 12, 2023
95537fe
Generate examples
dargilco Dec 12, 2023
daf8e65
Fix examples
dargilco Dec 12, 2023
1aacda3
Fix TypeSpec validation
dargilco Dec 12, 2023
f286100
Fix Avocado error
dargilco Dec 12, 2023
d48703c
Merge remote-tracking branch 'origin/main' into dargilco/image-analys…
dargilco Dec 12, 2023
fa10cc1
Add analyzeFromUrl example (it was not automaticly created for some r…
dargilco Dec 14, 2023
ccc0e50
Fix title in new example
dargilco Dec 14, 2023
9fa207b
Fix from npx prettier
dargilco Dec 14, 2023
7c6d4a9
Use real example
dargilco Dec 14, 2023
401887f
Copy new examples to ImageAnalysis/examples/2023-10-01
dargilco Dec 14, 2023
bb44cbd
Fixes from npx --no tsv specification/ai/ImageAnalysis
dargilco Dec 14, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 77 additions & 0 deletions specification/ai/ImageAnalysis/client.tsp
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
import "@azure-tools/typespec-client-generator-core";
import "./main.tsp";

using Azure.ClientGenerator.Core;

@@access(ImageAnalysis.analyzeFromBuffer, Access.internal, "csharp");
@@access(ImageAnalysis.analyzeFromUrl, Access.internal, "csharp");

@@access(ImageAnalysis.CaptionResult, Access.public, "csharp");
@@access(ImageAnalysis.CropRegion, Access.public, "csharp");
@@access(ImageAnalysis.DenseCaption, Access.public, "csharp");
@@access(ImageAnalysis.DenseCaptionsResult, Access.public, "csharp");
@@access(ImageAnalysis.DetectedObject, Access.public, "csharp");
@@access(ImageAnalysis.DetectedPerson, Access.public, "csharp");
@@access(ImageAnalysis.DetectedTag, Access.public, "csharp");
@@access(ImageAnalysis.DetectedTextBlock, Access.public, "csharp");
@@access(ImageAnalysis.DetectedTextLine, Access.public, "csharp");
@@access(ImageAnalysis.DetectedTextWord, Access.public, "csharp");
@@access(ImageAnalysis.ImageAnalysisResult, Access.public, "csharp");
@@access(ImageAnalysis.ImageBoundingBox, Access.public, "csharp");
@@access(ImageAnalysis.ImageMetadata, Access.public, "csharp");
@@access(ImageAnalysis.ImagePoint, Access.public, "csharp");
@@access(ImageAnalysis.ObjectsResult, Access.public, "csharp");
@@access(ImageAnalysis.PeopleResult, Access.public, "csharp");
@@access(ImageAnalysis.ReadResult, Access.public, "csharp");
@@access(ImageAnalysis.SmartCropsResult, Access.public, "csharp");
@@access(ImageAnalysis.TagsResult, Access.public, "csharp");

@@projectedName(ImageAnalysis.VisualFeatures, "csharp", "VisualFeaturesImpl");

@@access(ImageAnalysis.analyzeFromBuffer, Access.internal, "java");
@@access(ImageAnalysis.analyzeFromUrl, Access.internal, "java");

@@access(ImageAnalysis.CaptionResult, Access.public, "java");
@@access(ImageAnalysis.CropRegion, Access.public, "java");
@@access(ImageAnalysis.DenseCaption, Access.public, "java");
@@access(ImageAnalysis.DenseCaptionsResult, Access.public, "java");
@@access(ImageAnalysis.DetectedObject, Access.public, "java");
@@access(ImageAnalysis.DetectedPerson, Access.public, "java");
@@access(ImageAnalysis.DetectedTag, Access.public, "java");
@@access(ImageAnalysis.DetectedTextBlock, Access.public, "java");
@@access(ImageAnalysis.DetectedTextLine, Access.public, "java");
@@access(ImageAnalysis.DetectedTextWord, Access.public, "java");
@@access(ImageAnalysis.ImageAnalysisResult, Access.public, "java");
@@access(ImageAnalysis.ImageBoundingBox, Access.public, "java");
@@access(ImageAnalysis.ImageMetadata, Access.public, "java");
@@access(ImageAnalysis.ImagePoint, Access.public, "java");
@@access(ImageAnalysis.ObjectsResult, Access.public, "java");
@@access(ImageAnalysis.PeopleResult, Access.public, "java");
@@access(ImageAnalysis.ReadResult, Access.public, "java");
@@access(ImageAnalysis.SmartCropsResult, Access.public, "java");
@@access(ImageAnalysis.TagsResult, Access.public, "java");
@@access(ImageAnalysis.VisualFeatures, Access.public, "java");

@@access(ImageAnalysis.analyzeFromBuffer, Access.internal, "python");
@@access(ImageAnalysis.analyzeFromUrl, Access.internal, "python");

@@access(ImageAnalysis.CaptionResult, Access.public, "python");
@@access(ImageAnalysis.CropRegion, Access.public, "python");
@@access(ImageAnalysis.DenseCaption, Access.public, "python");
@@access(ImageAnalysis.DenseCaptionsResult, Access.public, "python");
@@access(ImageAnalysis.DetectedObject, Access.public, "python");
@@access(ImageAnalysis.DetectedPerson, Access.public, "python");
@@access(ImageAnalysis.DetectedTag, Access.public, "python");
@@access(ImageAnalysis.DetectedTextBlock, Access.public, "python");
@@access(ImageAnalysis.DetectedTextLine, Access.public, "python");
@@access(ImageAnalysis.DetectedTextWord, Access.public, "python");
@@access(ImageAnalysis.ImageAnalysisResult, Access.public, "python");
@@access(ImageAnalysis.ImageBoundingBox, Access.public, "python");
@@access(ImageAnalysis.ImageMetadata, Access.public, "python");
@@access(ImageAnalysis.ImagePoint, Access.public, "python");
@@access(ImageAnalysis.ObjectsResult, Access.public, "python");
@@access(ImageAnalysis.PeopleResult, Access.public, "python");
@@access(ImageAnalysis.ReadResult, Access.public, "python");
@@access(ImageAnalysis.SmartCropsResult, Access.public, "python");
@@access(ImageAnalysis.TagsResult, Access.public, "python");
@@access(ImageAnalysis.VisualFeatures, Access.public, "python");
Loading