Skip to content

Commit

Permalink
[AutoPR] cognitiveservices/data-plane/Face (#5708)
Browse files Browse the repository at this point in the history
* [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
AutorestCI authored and lmazuel committed Jun 27, 2019
1 parent 012ca4c commit 96ff764
Show file tree
Hide file tree
Showing 111 changed files with 4,152 additions and 4,636 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,26 @@
Release History
===============

0.4.0 (2019-06-27)
++++++++++++++++++

**Features**

- Add "detection_model" to operations when possible. This is a breaking change if you were using positional arguments on some scenarios

**Breaking changes**

- Operation FaceListOperations.add_face_from_stream has a new signature
- Operation FaceListOperations.add_face_from_url has a new signature
- Operation FaceOperations.detect_with_stream has a new signature
- Operation FaceOperations.detect_with_url has a new signature
- Operation LargeFaceListOperations.add_face_from_stream has a new signature
- Operation LargeFaceListOperations.add_face_from_url has a new signature
- Operation LargePersonGroupPersonOperations.add_face_from_stream has a new signature
- Operation LargePersonGroupPersonOperations.add_face_from_url has a new signature
- Operation PersonGroupPersonOperations.add_face_from_stream has a new signature
- Operation PersonGroupPersonOperations.add_face_from_url has a new signature

0.3.0 (2019-03-28)
++++++++++++++++++

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Microsoft Azure SDK for Python

This is the Microsoft Azure Cognitive Services Face Client Library.

This package has been tested with Python 2.7, 3.4, 3.5, 3.6 and 3.7.
This package has been tested with Python 2.7, 3.5, 3.6 and 3.7.

For a more complete set of Azure libraries, see the `azure <https://pypi.python.org/pypi/azure>`__ bundle package.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
# regenerated.
# --------------------------------------------------------------------------

from .face_client import FaceClient
from .version import VERSION
from ._configuration import FaceClientConfiguration
from ._face_client import FaceClient
__all__ = ['FaceClient', 'FaceClientConfiguration']

__all__ = ['FaceClient']
from .version import VERSION

__version__ = VERSION

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
Original file line number Diff line number Diff line change
Expand Up @@ -10,49 +10,20 @@
# --------------------------------------------------------------------------

from msrest.service_client import SDKClient
from msrest import Configuration, Serializer, Deserializer
from .version import VERSION
from .operations.face_operations import FaceOperations
from .operations.person_group_person_operations import PersonGroupPersonOperations
from .operations.person_group_operations import PersonGroupOperations
from .operations.face_list_operations import FaceListOperations
from .operations.large_person_group_person_operations import LargePersonGroupPersonOperations
from .operations.large_person_group_operations import LargePersonGroupOperations
from .operations.large_face_list_operations import LargeFaceListOperations
from .operations.snapshot_operations import SnapshotOperations
from msrest import Serializer, Deserializer

from ._configuration import FaceClientConfiguration
from .operations import FaceOperations
from .operations import PersonGroupPersonOperations
from .operations import PersonGroupOperations
from .operations import FaceListOperations
from .operations import LargePersonGroupPersonOperations
from .operations import LargePersonGroupOperations
from .operations import LargeFaceListOperations
from .operations import SnapshotOperations
from . import models


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)

self.add_user_agent('azure-cognitiveservices-vision-face/{}'.format(VERSION))

self.endpoint = endpoint
self.credentials = credentials


class FaceClient(SDKClient):
"""An API for face detection, verification, and identification.
Expand Down
Loading

0 comments on commit 96ff764

Please sign in to comment.