-
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.
[AutoPR cognitiveservices/data-plane/Face] [Cogs Face] Align with lat…
…est 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.
- Loading branch information
1 parent
19e7127
commit 5e6ab4f
Showing
30 changed files
with
2,268 additions
and
103 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
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
43 changes: 43 additions & 0 deletions
43
...gnitiveservices-vision-face/azure/cognitiveservices/vision/face/models/large_face_list.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,43 @@ | ||
# 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 .name_and_user_data_contract import NameAndUserDataContract | ||
|
||
|
||
class LargeFaceList(NameAndUserDataContract): | ||
"""Large face list object. | ||
All required parameters must be populated in order to send to Azure. | ||
:param name: User defined name, maximum length is 128. | ||
:type name: str | ||
:param user_data: User specified data. Length should not exceed 16KB. | ||
:type user_data: str | ||
:param large_face_list_id: Required. LargeFaceListId of the target large | ||
face list. | ||
:type large_face_list_id: str | ||
""" | ||
|
||
_validation = { | ||
'name': {'max_length': 128}, | ||
'user_data': {'max_length': 16384}, | ||
'large_face_list_id': {'required': True, 'max_length': 64, 'pattern': r'^[a-z0-9-_]+$'}, | ||
} | ||
|
||
_attribute_map = { | ||
'name': {'key': 'name', 'type': 'str'}, | ||
'user_data': {'key': 'userData', 'type': 'str'}, | ||
'large_face_list_id': {'key': 'largeFaceListId', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(LargeFaceList, self).__init__(**kwargs) | ||
self.large_face_list_id = kwargs.get('large_face_list_id', None) |
43 changes: 43 additions & 0 deletions
43
...iveservices-vision-face/azure/cognitiveservices/vision/face/models/large_face_list_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,43 @@ | ||
# 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 .name_and_user_data_contract_py3 import NameAndUserDataContract | ||
|
||
|
||
class LargeFaceList(NameAndUserDataContract): | ||
"""Large face list object. | ||
All required parameters must be populated in order to send to Azure. | ||
:param name: User defined name, maximum length is 128. | ||
:type name: str | ||
:param user_data: User specified data. Length should not exceed 16KB. | ||
:type user_data: str | ||
:param large_face_list_id: Required. LargeFaceListId of the target large | ||
face list. | ||
:type large_face_list_id: str | ||
""" | ||
|
||
_validation = { | ||
'name': {'max_length': 128}, | ||
'user_data': {'max_length': 16384}, | ||
'large_face_list_id': {'required': True, 'max_length': 64, 'pattern': r'^[a-z0-9-_]+$'}, | ||
} | ||
|
||
_attribute_map = { | ||
'name': {'key': 'name', 'type': 'str'}, | ||
'user_data': {'key': 'userData', 'type': 'str'}, | ||
'large_face_list_id': {'key': 'largeFaceListId', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, *, large_face_list_id: str, name: str=None, user_data: str=None, **kwargs) -> None: | ||
super(LargeFaceList, self).__init__(name=name, user_data=user_data, **kwargs) | ||
self.large_face_list_id = large_face_list_id |
43 changes: 43 additions & 0 deletions
43
...tiveservices-vision-face/azure/cognitiveservices/vision/face/models/large_person_group.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,43 @@ | ||
# 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 .name_and_user_data_contract import NameAndUserDataContract | ||
|
||
|
||
class LargePersonGroup(NameAndUserDataContract): | ||
"""Large person group object. | ||
All required parameters must be populated in order to send to Azure. | ||
:param name: User defined name, maximum length is 128. | ||
:type name: str | ||
:param user_data: User specified data. Length should not exceed 16KB. | ||
:type user_data: str | ||
:param large_person_group_id: Required. LargePersonGroupId of the target | ||
large person groups | ||
:type large_person_group_id: str | ||
""" | ||
|
||
_validation = { | ||
'name': {'max_length': 128}, | ||
'user_data': {'max_length': 16384}, | ||
'large_person_group_id': {'required': True, 'max_length': 64, 'pattern': r'^[a-z0-9-_]+$'}, | ||
} | ||
|
||
_attribute_map = { | ||
'name': {'key': 'name', 'type': 'str'}, | ||
'user_data': {'key': 'userData', 'type': 'str'}, | ||
'large_person_group_id': {'key': 'largePersonGroupId', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(LargePersonGroup, self).__init__(**kwargs) | ||
self.large_person_group_id = kwargs.get('large_person_group_id', None) |
Oops, something went wrong.