-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AutoPR] cognitiveservices/data-plane/ComputerVision (#2978)
* Generated from d796a072098d20051200552d7cbd6608587ffd23 (#2951) Enable Computer Vision Client to customize endpoint. * Generated from a3c7072f01f807edbb028085a23278d6f7980fa1 (#2990) ComputerVision: bug fixes for /describe and /analyze * Inconsistent argument type for `/analyze?details=...` between URL and stream methods * BingIU imagetype return values needs to be integral * Description `maxCandidates` argument needs to be integral * [AutoPR cognitiveservices/data-plane/ComputerVision] Split Ocr out into own Swagger file (#3543) * Generated from 0dc03413967addc6fb33eba01bf4b8074f5fe91a Split Ocr out * Packaging update of azure-cognitiveservices-vision-computervision * [AutoPR cognitiveservices/data-plane/ComputerVision] Rename examples to match generated names (#3541) * Generated from 5aa27bd9abb8f6f416b054d64536ee2f7175f662 Rename examples to match generated names * Packaging update of azure-cognitiveservices-vision-computervision * Generated from 5aa27bd9abb8f6f416b054d64536ee2f7175f662 Rename examples to match generated names * [AutoPR cognitiveservices/data-plane/ComputerVision] Add areaOfInterest and detectObject to CV API (#3997) * Generated from 0bc892729baf0d049695c873e9afe139211c259d Add areaOfInterest and detectObject * Replace the current swagger with an auto-generated one. * Add example files for areaOfInterest and detectObject. * Fix example validation errors for analyze and describe. * A few fixes for generating java sdk * Packaging update of azure-cognitiveservices-vision-computervision * Packaging update of azure-cognitiveservices-vision-computervision * Generated from 66af0936fc20f7164f70de9d36271b12fbc2a5c7 (#2985) Remove basePath from Computer Vision 2.0 swagger. * Update version.py * Update sdk_packaging.toml * Packaging update of azure-cognitiveservices-vision-computervision * [AutoPR cognitiveservices/data-plane/ComputerVision] Analyze brands (#4294) * Generated from 0ac968f914274f0f98612a60ac4f8998a60ff1af Analyze brands * Packaging update of azure-cognitiveservices-vision-computervision * [AutoPR cognitiveservices/data-plane/ComputerVision] [Computer Vision] Add read to CV OCR API. (#4473) * Generated from cbcb8cc3c280c9725bca0f4e0feb4bfc57b677ec Add read to OCR API. * Packaging update of azure-cognitiveservices-vision-computervision * Generated from 51742b3e212c2e900ed5c24f7c351fa7f896d25e Mark asyncBatchAnalyze as long running operation. * Generated from b047a112a2c4cddaa54605d5de6a7bc3faab38c7 Update page property. * Packaging update of azure-cognitiveservices-vision-computervision * 0.3.0
- Loading branch information
1 parent
024f20f
commit 6a45cf2
Showing
71 changed files
with
1,993 additions
and
771 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,6 @@ | ||
recursive-include tests *.py *.yaml | ||
include *.rst | ||
include azure/__init__.py | ||
include azure/cognitiveservices/__init__.py | ||
include azure/cognitiveservices/vision/__init__.py | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1,448 changes: 969 additions & 479 deletions
1,448
...ion/computervision/computer_vision_api.py → .../computervision/computer_vision_client.py
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
...tervision/azure/cognitiveservices/vision/computervision/models/area_of_interest_result.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. See License.txt in the project root for | ||
# license information. | ||
# | ||
# Code generated by Microsoft (R) AutoRest Code Generator. | ||
# Changes may cause incorrect behavior and will be lost if the code is | ||
# regenerated. | ||
# -------------------------------------------------------------------------- | ||
|
||
from msrest.serialization import Model | ||
|
||
|
||
class AreaOfInterestResult(Model): | ||
"""Result of AreaOfInterest operation. | ||
Variables are only populated by the server, and will be ignored when | ||
sending a request. | ||
:ivar area_of_interest: A bounding box for an area of interest inside an | ||
image. | ||
:vartype area_of_interest: | ||
~azure.cognitiveservices.vision.computervision.models.BoundingRect | ||
:param request_id: Id of the REST API request. | ||
:type request_id: str | ||
:param metadata: | ||
:type metadata: | ||
~azure.cognitiveservices.vision.computervision.models.ImageMetadata | ||
""" | ||
|
||
_validation = { | ||
'area_of_interest': {'readonly': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'area_of_interest': {'key': 'areaOfInterest', 'type': 'BoundingRect'}, | ||
'request_id': {'key': 'requestId', 'type': 'str'}, | ||
'metadata': {'key': 'metadata', 'type': 'ImageMetadata'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(AreaOfInterestResult, self).__init__(**kwargs) | ||
self.area_of_interest = None | ||
self.request_id = kwargs.get('request_id', None) | ||
self.metadata = kwargs.get('metadata', None) |
46 changes: 46 additions & 0 deletions
46
...ision/azure/cognitiveservices/vision/computervision/models/area_of_interest_result_py3.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. See License.txt in the project root for | ||
# license information. | ||
# | ||
# Code generated by Microsoft (R) AutoRest Code Generator. | ||
# Changes may cause incorrect behavior and will be lost if the code is | ||
# regenerated. | ||
# -------------------------------------------------------------------------- | ||
|
||
from msrest.serialization import Model | ||
|
||
|
||
class AreaOfInterestResult(Model): | ||
"""Result of AreaOfInterest operation. | ||
Variables are only populated by the server, and will be ignored when | ||
sending a request. | ||
:ivar area_of_interest: A bounding box for an area of interest inside an | ||
image. | ||
:vartype area_of_interest: | ||
~azure.cognitiveservices.vision.computervision.models.BoundingRect | ||
:param request_id: Id of the REST API request. | ||
:type request_id: str | ||
:param metadata: | ||
:type metadata: | ||
~azure.cognitiveservices.vision.computervision.models.ImageMetadata | ||
""" | ||
|
||
_validation = { | ||
'area_of_interest': {'readonly': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'area_of_interest': {'key': 'areaOfInterest', 'type': 'BoundingRect'}, | ||
'request_id': {'key': 'requestId', 'type': 'str'}, | ||
'metadata': {'key': 'metadata', 'type': 'ImageMetadata'}, | ||
} | ||
|
||
def __init__(self, *, request_id: str=None, metadata=None, **kwargs) -> None: | ||
super(AreaOfInterestResult, self).__init__(**kwargs) | ||
self.area_of_interest = None | ||
self.request_id = request_id | ||
self.metadata = metadata |
Oops, something went wrong.