-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generated from 3822585577dd1ffd3c0c742aa30b131f84d20183 (#2993)
[cognitive Services] Update endpoint URL template for Face.
- Loading branch information
1 parent
eed1e22
commit 19e7127
Showing
81 changed files
with
2,261 additions
and
518 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
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) |
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
azure-cognitiveservices-vision-face/azure/cognitiveservices/vision/face/models/blur_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 Blur(Model): | ||
"""Properties describing any presence of blur within the image. | ||
:param blur_level: An enum value indicating level of blurriness. Possible | ||
values include: 'Low', 'Medium', 'High' | ||
:type blur_level: str or | ||
~azure.cognitiveservices.vision.face.models.BlurLevel | ||
:param value: A number indicating level of blurriness ranging from 0 to 1. | ||
:type value: float | ||
""" | ||
|
||
_attribute_map = { | ||
'blur_level': {'key': 'blurLevel', 'type': 'BlurLevel'}, | ||
'value': {'key': 'value', 'type': 'float'}, | ||
} | ||
|
||
def __init__(self, *, blur_level=None, value: float=None, **kwargs) -> None: | ||
super(Blur, self).__init__(**kwargs) | ||
self.blur_level = blur_level | ||
self.value = value |
Oops, something went wrong.