-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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/Face (#3011)
* Generated from 3822585577dd1ffd3c0c742aa30b131f84d20183 (#2993) [cognitive Services] Update endpoint URL template for Face. * [AutoPR cognitiveservices/data-plane/Face] [Cogs Face] Align with latest released version of Face API with million-scale features. (#3049) * Generated from 9b4c21a58071bdaf26a5ced0fa4a283077617af1 Nit fix documentation. * Generated from a2c9e881121ab738c6142713fd66d08629b7a475 Nit path case refinement. * Generated from 40abfc7205d1bf373e19dca40394598fa9da4843 Fix LargeFaceListFace_List to LargeFaceList_ListFaces and refine example naming. * Generated from 6019c551df19f24b8a70a2c9d8f691b43cf7f195 [Minor] Person_AddPersonFace to Person_AddFace. * Generated from a43b96d1f8ebea7d96449c4fa459519b0c48335e [Minor] Amend last commit of Person_AddPersonFace to Person_AddFace. * Update face test aligning with latest changes. (#3103) * Update version.py * Packaging update of azure-cognitiveservices-vision-face * Packaging update of azure-cognitiveservices-vision-face
- Loading branch information
1 parent
824468c
commit f489206
Showing
91 changed files
with
4,475 additions
and
562 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
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
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
34 changes: 34 additions & 0 deletions
34
...cognitiveservices-vision-face/azure/cognitiveservices/vision/face/models/accessory_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,34 @@ | ||
# 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 Accessory(Model): | ||
"""Accessory item and corresponding confidence level. | ||
:param type: Type of an accessory. Possible values include: 'headWear', | ||
'glasses', 'mask' | ||
:type type: str or | ||
~azure.cognitiveservices.vision.face.models.AccessoryType | ||
:param confidence: Confidence level of an accessory | ||
:type confidence: float | ||
""" | ||
|
||
_attribute_map = { | ||
'type': {'key': 'type', 'type': 'AccessoryType'}, | ||
'confidence': {'key': 'confidence', 'type': 'float'}, | ||
} | ||
|
||
def __init__(self, *, type=None, confidence: float=None, **kwargs) -> None: | ||
super(Accessory, self).__init__(**kwargs) | ||
self.type = type | ||
self.confidence = confidence |
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
41 changes: 41 additions & 0 deletions
41
...cognitiveservices-vision-face/azure/cognitiveservices/vision/face/models/api_error_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,41 @@ | ||
# 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 | ||
from msrest.exceptions import HttpOperationError | ||
|
||
|
||
class APIError(Model): | ||
"""Error information returned by the API. | ||
:param error: | ||
:type error: ~azure.cognitiveservices.vision.face.models.Error | ||
""" | ||
|
||
_attribute_map = { | ||
'error': {'key': 'error', 'type': 'Error'}, | ||
} | ||
|
||
def __init__(self, *, error=None, **kwargs) -> None: | ||
super(APIError, self).__init__(**kwargs) | ||
self.error = error | ||
|
||
|
||
class APIErrorException(HttpOperationError): | ||
"""Server responsed with exception of type: 'APIError'. | ||
:param deserialize: A deserializer | ||
:param response: Server response to be deserialized. | ||
""" | ||
|
||
def __init__(self, deserialize, response, *args): | ||
|
||
super(APIErrorException, self).__init__(deserialize, response, 'APIError', *args) |
Oops, something went wrong.