File tree Expand file tree Collapse file tree 2 files changed +14
-12
lines changed
specification/cognitiveservices/Vision.ImageAnalysis Expand file tree Collapse file tree 2 files changed +14
-12
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,12 @@ model SharedAnalyzeQuery {
31
31
genderNeutralCaption ? : boolean = false ;
32
32
}
33
33
34
+ model SharedSegmentQuery {
35
+ @ query ("mode" )
36
+ @ doc ("The type of segmentation to perform" )
37
+ mode : segmentationMode ;
38
+ }
39
+
34
40
@ doc ("A basic rectangle" )
35
41
model BoundingBox {
36
42
@ doc ("X coordinate" )
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ op analyzeFromStream is Azure.Core.RpcOperation<
31
31
32
32
@ doc ("The image to be analyzed" )
33
33
@ body
34
- imageContents : bytes ;
34
+ imageContent : bytes ;
35
35
},
36
36
ImageAnalysisResult
37
37
>;
@@ -52,7 +52,7 @@ op analyzeFromUrl is Azure.Core.RpcOperation<
52
52
53
53
@ doc ("The image to be analyzed" )
54
54
@ body
55
- imageContents : ImageUrl ;
55
+ imageContent : ImageUrl ;
56
56
},
57
57
ImageAnalysisResult
58
58
>;
@@ -66,13 +66,11 @@ op analyzeFromUrl is Azure.Core.RpcOperation<
66
66
@ action ("segment" )
67
67
op segmentFromUrl is Azure .Core .RpcOperation <
68
68
{
69
+ ... SharedSegmentQuery ,
70
+
69
71
@ doc ("The image to be analyzed" )
70
72
@ body
71
- imageContents : ImageUrl ;
72
-
73
- @ doc ("The type of segmentation to perform" )
74
- @ query ("mode" )
75
- mode : segmentationMode ;
73
+ imageContent : ImageUrl ;
76
74
77
75
@ doc ("The format of the HTTP payload." )
78
76
@ header ()
@@ -94,17 +92,15 @@ op segmentFromUrl is Azure.Core.RpcOperation<
94
92
@ action ("segment" )
95
93
op segmentFromStream is Azure .Core .RpcOperation <
96
94
{
95
+ ... SharedSegmentQuery ,
96
+
97
97
@ doc ("The image to be analyzed" )
98
98
@ body
99
- imageContents : bytes ;
99
+ imageContent : bytes ;
100
100
101
101
@ doc ("The format of the HTTP payload." )
102
102
@ header ()
103
103
contentType : "application/octet-stream" ;
104
-
105
- @ doc ("The type of segmentation to perform" )
106
- @ query ("mode" )
107
- mode : segmentationMode ;
108
104
},
109
105
{
110
106
@ header
You can’t perform that action at this time.
0 commit comments