-
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 (#5708)
* [AutoPR cognitiveservices/data-plane/Face] [FaceAPI] Add detection model argument on Detect and AddFace methods (#5667) * Generated from 1d8183de7f54b28cda9df52c1d35e6484d49acac [FaceAPI] Add detection model argument on Detect and AddFace methods * Generated from 4ef1c813ae58c6edbad72d07f42a57db72db5508 Update detect and detection model-related descriptions * Generated from 3445d5ce23ebb7d0321ba0a7991075d735fa3678 [FaceAPI] Amend DetectionModel parameter description * Generated from 7c460c476831442f5ada9fc57e8892f61bff939e [FaceAPI] Make Add Faces description consistent accross multiple calls * Generated from 11957f52387ddc031a08403fcbb35bf09195ca95 [FaceAPI] Correct description of PersonGroup Person - Add Face * Generated from d7666d6019f3a8bedf2596cea2995f4a50585f61 [FaceAPI] Remove all mentions of large groups in persongroup description * Face with Autorest v4 * ChangeLog * Fix Face tests * Packaging update of azure-cognitiveservices-vision-face * Fix tests
- Loading branch information
1 parent
012ca4c
commit 96ff764
Showing
111 changed files
with
4,152 additions
and
4,636 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
47 changes: 47 additions & 0 deletions
47
...azure-cognitiveservices-vision-face/azure/cognitiveservices/vision/face/_configuration.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,47 @@ | ||
# 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 import Configuration | ||
|
||
from .version import VERSION | ||
|
||
|
||
class FaceClientConfiguration(Configuration): | ||
"""Configuration for FaceClient | ||
Note that all parameters used to create this instance are saved as instance | ||
attributes. | ||
:param endpoint: Supported Cognitive Services endpoints (protocol and | ||
hostname, for example: https://westus.api.cognitive.microsoft.com). | ||
:type endpoint: str | ||
:param credentials: Subscription credentials which uniquely identify | ||
client subscription. | ||
:type credentials: None | ||
""" | ||
|
||
def __init__( | ||
self, endpoint, credentials): | ||
|
||
if endpoint is None: | ||
raise ValueError("Parameter 'endpoint' must not be None.") | ||
if credentials is None: | ||
raise ValueError("Parameter 'credentials' must not be None.") | ||
base_url = '{Endpoint}/face/v1.0' | ||
|
||
super(FaceClientConfiguration, self).__init__(base_url) | ||
|
||
# Starting Autorest.Python 4.0.64, make connection pool activated by default | ||
self.keep_alive = True | ||
|
||
self.add_user_agent('azure-cognitiveservices-vision-face/{}'.format(VERSION)) | ||
|
||
self.endpoint = endpoint | ||
self.credentials = credentials |
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
Oops, something went wrong.